/* ============================================================
   DECORATION, BATHROOM & KITCHEN RENOVATIONS — style.css
   Premium Home Renovation Website
   Design: Dark luxury editorial, gold accents, Syne typography
   ============================================================ */

/* ===================== CSS VARIABLES ===================== */
:root {
    --gold:       #e1b261;
    --gold-light: #f0ca8a;
    --dark:       #222224;
    --dark-alt:   #1a1a1c;
    --dark-2:     #2e2e30;
    --dark-3:     #464646;
    --mid:        #5c5c5e;
    --text:       #a7a7a7;
    --white:      #ffffff;
    --black:      #000000;

    --font-disp: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);

    --section-pad: 130px 0;
    --section-pad-sm: 90px 0;
    --container: 1300px;
    --container-sm: 1100px;
    --gap: 24px;
    --radius: 2px;

    --header-h: 88px;
    --header-h-scroll: 68px;
    --topbar-h: 42px;
}

/* ===================== BASE RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
em { font-style: normal; }

/* ===================== UTILITIES ===================== */
.gold { color: var(--gold); }
.gold-text { color: var(--gold); }

.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.sec-title {
    font-family: var(--font-disp);
    font-size: clamp(34px, 3.6vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 28px;
}

.sec-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 18px;
}

.section { padding: var(--section-pad); }

/* ===================== BUTTONS ===================== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    background: var(--gold);
    color: var(--dark);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
    z-index: 0;
}

.btn-gold:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-gold:hover { color: var(--gold); }
.btn-gold span, .btn-gold i { position: relative; z-index: 1; }
.btn-gold i { position: relative; z-index: 1; transition: transform 0.3s var(--ease); }
.btn-gold:hover i { transform: translateX(5px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.35s var(--ease);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
    transition: gap 0.3s var(--ease);
}

.btn-ghost-sm:hover { gap: 14px; }

.btn-full { width: 100%; justify-content: center; }
.btn-cta { padding: 18px 44px; font-size: 12px; }

/* ===================== PRELOADER ===================== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--dark-alt);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s var(--ease), visibility 0.7s;
}

#preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner { text-align: center; }

.preloader-brand {
    font-family: var(--font-disp);
    font-size: clamp(13px, 3.4vw, 40px);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: clamp(1px, 0.32vw, 4px);
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    animation: plPulse 1.6s var(--ease) infinite alternate;
}

.preloader-line-wrap {
    width: 120px;
    height: 1px;
    background: rgba(225,178,97,0.2);
    margin: 20px auto 16px;
    overflow: hidden;
}

.preloader-line {
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    animation: plLine 1.4s var(--ease) 0.3s forwards;
}

.preloader-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: clamp(2px, 1vw, 6px);
    color: var(--mid);
    text-transform: uppercase;
}

@keyframes plPulse {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}
@keyframes plLine {
    to { transform: scaleX(1); }
}

/* ===================== CUSTOM CURSOR ===================== */
.cursor-dot,
.cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(225,178,97,0.6);
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                border-color 0.3s, background 0.3s;
}

body.cursor-hover .cursor-ring {
    width: 54px;
    height: 54px;
    border-color: var(--gold);
    background: rgba(225,178,97,0.08);
}

@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ===================== HEADER ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    overflow: visible;
    transition: background 0.45s var(--ease), padding 0.45s var(--ease), border-color 0.45s;
    border-bottom: 1px solid transparent;
}

/* ── Mobile top-bar (phone + email strip) ── */
.mobile-topbar {
    display: none;                          /* desktop: hidden */
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--dark-alt);
    border-bottom: 1px solid rgba(225,178,97,0.18);
    z-index: 950;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0 20px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}

.topbar-item i {
    color: var(--gold);
    font-size: 11px;
    flex-shrink: 0;
}

.topbar-item:hover { color: var(--gold); }

.topbar-sep {
    width: 1px;
    height: 18px;
    background: rgba(225,178,97,0.25);
    flex-shrink: 0;
}

/* ── Floating desktop social icons (fixed right rail) ── */
.floating-socials {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floating-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--gold);          /* default: gold fill */
    color: var(--dark);               /* default: dark icon */
    font-size: 13px;
    text-decoration: none;
    border-left: 3px solid var(--gold-light);
    transition: background 0.3s var(--ease),
                color 0.3s var(--ease),
                border-color 0.3s var(--ease),
                transform 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
    box-shadow: -3px 0 12px rgba(225,178,97,0.25);
}

.floating-socials a:hover {
    background: rgba(22,22,24,0.96);  /* hover: dark fill */
    color: var(--gold);               /* hover: gold icon */
    border-left-color: rgba(225,178,97,0.4);
    transform: translateX(-7px);
    box-shadow: -5px 0 18px rgba(225,178,97,0.15);
}

.floating-socials a:first-child { border-radius: 8px 0 0 0; }
.floating-socials a:last-child  { border-radius: 0 0 0 8px; }

.header.transparent {  background-image: url('../images/texture-dark-1.png'); padding: 20px 0; }

.header.scrolled {
    background: rgba(34,34,36,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 0;
    border-bottom-color: rgba(225,178,97,0.12);
}

.header-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    overflow: visible;
}

.logo { flex-shrink: 0; }

.logo img {
    height: 68px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Desktop Nav */
#desktopNav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
}

.nav-link .fa-chevron-down {
    font-size: 9px;
    transition: transform 0.3s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--white); }

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }

/* Dropdown */
.nav-has-dropdown {
    position: relative;
    overflow: visible;
}

/* Invisible bridge so mouse crossing the gap keeps :hover active */
.nav-has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -12px;
    right: -12px;
    height: 22px;          /* same height as the gap to dropdown */
    background: transparent;
}

.nav-has-dropdown:hover .nav-link .fa-chevron-down { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    background: #1c1c1e;
    border: 1px solid rgba(225,178,97,0.15);
    min-width: 230px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(12px);
    transition: all 0.3s var(--ease);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.nav-has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown li a {
    display: block;
    padding: 11px 22px;
    font-size: 13px;
    color: var(--text);
    border-left: 2px solid transparent;
    transition: all 0.25s;
}

.nav-dropdown li a:hover {
    color: var(--gold);
    border-left-color: var(--gold);
    padding-left: 28px;
    background: rgba(225,178,97,0.04);
}

/* Header CTA — Merraki style */
.header-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    transition: color 0.3s;
}

.header-phone i { color: var(--gold); font-size: 11px; }
.header-phone:hover { color: var(--white); }

.header-contact-text {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    transition: color 0.3s;
}

.header-contact-text:hover { color: var(--gold); }

.header-arrow-btn {
    width: 44px;
    height: 44px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease), background 0.3s;
}

.header-arrow-btn:hover {
    background: var(--white);
    transform: scale(1.06) rotate(-45deg);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.ham-bar {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.35s var(--ease);
    transform-origin: center;
}

.hamburger.open .ham-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===================== MOBILE MENU ===================== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 950;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
}

.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100dvh;
    background: #18181a;
    z-index: 960;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(225,178,97,0.1);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-logo { height: 56px; max-width: 180px; width: auto; object-fit: contain; }

.mobile-close {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: border-color 0.3s, color 0.3s;
}

.mobile-close:hover { border-color: var(--gold); color: var(--gold); }

.mobile-nav {
    flex: 1;
    padding: 20px 0;
}

.mob-link {
    display: block;
    padding: 14px 28px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    border-left: 2px solid transparent;
    transition: all 0.25s;
    font-family: var(--font-body);
}

.mob-link:hover, .mob-link:focus {
    color: var(--gold);
    border-left-color: var(--gold);
    padding-left: 36px;
}

.mob-sub-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    text-align: left;
    cursor: pointer;
    transition: color 0.25s;
}

.mob-sub-btn .fa-chevron-down { font-size: 10px; transition: transform 0.3s var(--ease); }
.mob-sub-btn.open .fa-chevron-down { transform: rotate(180deg); }
.mob-sub-btn:hover, .mob-sub-btn.open { color: var(--gold); }

.mob-sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
    background: rgba(225,178,97,0.04);
}

.mob-sub-list.open { max-height: 300px; }

.mob-sub-link { padding-left: 44px; font-size: 14px; }

.mobile-menu-foot {
    padding: 24px 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu-foot a, .mobile-menu-foot p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 12px;
}

.mobile-menu-foot i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.mobile-menu-foot a:hover { color: var(--gold); }

/* ===================== HERO — MERRAKI SPLIT LAYOUT ===================== */
/* ================================================================
   HERO — 3D COVERFLOW CAROUSEL
   ================================================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: var(--dark-alt);
}

/* Ambient texture background */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

/* Hero background video — above the texture, below the vignette */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    border: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

/* Faded in by JS once the first frames are decoded */
.hero-video.is-ready { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
}

/* Dark vignette overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(14,14,16,0.55) 0%,
        rgba(14,14,16,0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Social icons — left rail */
.hero-socials {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-socials a {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, transform 0.3s;
}

.hero-socials a:hover { color: var(--gold); transform: translateX(2px); }

/* Gold vertical accent line */
.hero-accent-line {
    position: absolute;
    left: 74px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 110px;
    background: var(--gold);
    z-index: 30;
}

/* Progress bar */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 0%;
    z-index: 40;
    transition: width 0.08s linear;
}

/* ── 3D Scene — perspective parent ── */
.c3d-scene {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
    perspective-origin: 50% 45%;
    overflow: hidden;
}

/* ── Track — holds all cards ── */
.c3d-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Individual card ── */
.c3d-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(300px, 48vw, 680px);
    height: clamp(380px, 68vh, 600px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    will-change: transform, opacity;
    transition: transform 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity   0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.85s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    outline: none;
}

.c3d-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Background photo fills the card */
.c3d-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-out;
}

/* Active card Ken-Burns */
.c3d-card.c3d-active .c3d-img {
    animation: c3dKenBurns 9s ease-out forwards;
}

@keyframes c3dKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}

/* Dark gradient from bottom — text backing */
.c3d-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,12,0.96) 0%,
        rgba(10,10,12,0.55) 38%,
        rgba(10,10,12,0.1)  65%,
        transparent 100%
    );
    pointer-events: none;
}

/* Gold shimmer border on active card */
.c3d-card.c3d-active {
    box-shadow:
        0 30px 80px rgba(0,0,0,0.7),
        0 0 0 1.5px rgba(225,178,97,0.35),
        0 0 40px rgba(225,178,97,0.12);
}

/* Slide number badge — top right */
.c3d-number {
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.6s var(--ease) 0.3s, transform 0.6s var(--ease) 0.3s;
    pointer-events: none;
}

.c3d-card.c3d-active .c3d-number {
    opacity: 1;
    transform: translateY(0);
}

/* Content — eyebrow + title + sub + buttons */
.c3d-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 42px 48px;
    z-index: 5;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease) 0.2s, transform 0.7s var(--ease) 0.2s;
    pointer-events: none;
}

.c3d-card.c3d-active .c3d-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.c3d-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.c3d-title {
    font-family: var(--font-disp);
    font-size: clamp(26px, 3.2vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.c3d-gold { color: var(--gold); font-style: normal; }

.c3d-sub {
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 380px;
}

.c3d-btns {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Ghost text button */
.c3d-btn-ghost {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255,255,255,0.45);
    transition: color 0.3s, border-color 0.3s;
}

.c3d-btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* Gold arrow circle */
.c3d-btn-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.3s var(--ease);
}

.c3d-btn-circle:hover {
    background: var(--gold-light);
    transform: scale(1.1) rotate(-45deg);
}

/* ── Arrow buttons ── */
.c3d-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(14,14,16,0.55);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s;
}

.c3d-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(225,178,97,0.12);
    transform: translateY(-50%) scale(1.08);
}

.c3d-arrow-prev { left: clamp(90px, 7vw, 120px); }
.c3d-arrow-next { right: clamp(16px, 4vw, 40px); }

/* ── Slide counter ── */
.c3d-counter {
    position: absolute;
    bottom: 36px;
    right: clamp(16px, 4vw, 40px);
    z-index: 20;
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

#c3dCurr { color: var(--gold); font-size: 18px; font-weight: 700; }
.c3d-counter-sep { opacity: 0.4; }

/* ── Dot indicators ── */
.c3d-dots {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}

.c3d-dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.22);
    cursor: pointer;
    transition: background 0.35s var(--ease), width 0.35s var(--ease);
    border: none;
}

.c3d-dot.active {
    background: var(--gold);
    width: 48px;
}

/* ================================================================
   RESPONSIVE
================================================================ */

/* Tablet — smaller cards, reduced Z travel */
@media (max-width: 1024px) {
    .c3d-arrow-prev { left: 80px; }
    .c3d-counter    { bottom: 28px; right: 16px; }

    .c3d-card {
        width: clamp(280px, 62vw, 520px);
        height: clamp(340px, 60vh, 520px);
    }

    .c3d-content { padding: 28px 28px 36px; }
    .c3d-title   { font-size: clamp(22px, 3.5vw, 38px); }
    .c3d-sub     { display: none; }
}

/* Mobile — single full-width card, flat (no 3D) */
@media (max-width: 768px) {
    .hero-socials  { display: none; }
    .hero-accent-line { display: none; }

    .c3d-scene { perspective: none; }

    .c3d-card {
        width: 82vw;
        height: 68vh;
        border-radius: 14px;
        /* JS still positions; mobile transform neutralised in JS */
    }

    .c3d-arrow-prev { left: 12px; width: 40px; height: 40px; font-size: 12px; }
    .c3d-arrow-next { right: 12px; width: 40px; height: 40px; font-size: 12px; }

    .c3d-content { padding: 22px 22px 30px; }
    .c3d-title   { font-size: clamp(22px, 5.5vw, 34px); }
    .c3d-sub     { font-size: 12.5px; max-width: 100%; }
    .c3d-counter { display: none; }
}

@media (max-width: 480px) {
    .c3d-card { width: 90vw; height: 72vh; }
    .c3d-title { font-size: 22px; }
    .c3d-sub   { display: none; }
}

/* ===================== MARQUEE ===================== */
.marquee-strip {
    background: var(--gold);
    overflow: hidden;
    padding: 13px 0;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-flex;
    gap: 28px;
    animation: marqueeAnim 22s linear infinite;
}

.marquee-inner span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dark);
    font-weight: 600;
}

.m-sep { opacity: 0.5; }

@keyframes marqueeAnim {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===================== ABOUT ===================== */
.about-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}
/* Dark overlay */
.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
	
	/*background: linear-gradient(
        135deg,
        rgba(14,14,16,0.2) 0%,
        rgba(20,20,22,0.2) 50%,
        rgba(14,14,16,0.2) 100%
    );*/
   
    z-index: 0;
    pointer-events: none;
}
.about-section .about-inner { position: relative; z-index: 1; }

.about-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    overflow: hidden;
}

.about-img-wrap img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    transform: scale(1.06);
    transition: transform 1.4s var(--ease);
}

.about-img-wrap.revealed img { transform: scale(1); }

.about-badge {
    position: absolute;
    bottom: 32px;
    right: -20px;
    background: var(--gold);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 5;
}

.badge-num {
    font-family: var(--font-disp);
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.badge-num sup { font-size: 22px; vertical-align: super; }

.badge-txt {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(34,34,36,0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-feats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 36px;
}

.about-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text);
}

.about-feat i { color: var(--gold); font-size: 13px; flex-shrink: 0; }

/* ===================== STATISTICS ===================== */
.stats-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    border-top: 1px solid rgba(225,178,97,0.12);
    border-bottom: 1px solid rgba(225,178,97,0.12);
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14,14,16, 0.87);
    z-index: 0;
    pointer-events: none;
}
.stats-inner { position: relative; z-index: 1; }

.stats-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 70px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 30px;
}

.stat-num {
    font-family: var(--font-disp);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text);
}

.stat-div {
    width: 1px;
    height: 80px;
    background: rgba(225,178,97,0.2);
    flex-shrink: 0;
}

/* ===================== SERVICES ===================== */
.services-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14,14,16, 0.2);
    z-index: 0;
    pointer-events: none;
}
.services-section .sec-head,
.services-section .services-grid,
.services-section .explore-wrap { position: relative; z-index: 1; }

.sec-head {
    max-width: var(--container);
    margin: 0 auto 60px;
    padding: 0 40px;
}

.services-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

/* -------- 3D Card Wrapper -------- */
.svc-card-wrap {
    perspective: 900px;
    perspective-origin: 50% 50%;
    will-change: transform;
}

.svc-card {
    background: var(--dark-2);
    overflow: visible;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
    will-change: transform;
}

/* Lifted shadow when tilting */
.svc-card.tilt-active {
    box-shadow:
        0 20px 60px rgba(0,0,0,0.55),
        0 0 0 1px rgba(225,178,97,0.18),
        0 4px 16px rgba(225,178,97,0.12);
}

/* Elements elevated above card surface (3D layering) */
.svc-card .svc-body {
    transform: translateZ(0);
    transition: transform 0.5s var(--ease), padding 0.5s var(--ease);
}
.svc-card.tilt-active .svc-body { transform: translateZ(18px); }

.svc-card .svc-name {
    transition: color 0.3s, transform 0.5s var(--ease);
}
.svc-card.tilt-active .svc-name { transform: translateZ(10px); }

.svc-card .svc-link {
    transition: gap 0.3s var(--ease), transform 0.5s var(--ease);
}
.svc-card.tilt-active .svc-link { transform: translateZ(14px); }

/* Gold shine sweep on tilt */
.svc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(225,178,97,0) 0%,
        rgba(225,178,97,0.06) 40%,
        rgba(225,178,97,0.13) 50%,
        rgba(225,178,97,0.06) 60%,
        rgba(225,178,97,0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
}
.svc-card.tilt-active::after { opacity: 1; }

/* Reset on touch/no-hover devices */
@media (hover: none) {
    .svc-card { transform: none !important; box-shadow: none !important; }
    .svc-card::after { display: none; }
    .svc-card .svc-body,
    .svc-card .svc-name,
    .svc-card .svc-link { transform: none !important; }
}

.svc-img {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.svc-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.svc-card:hover .svc-img img { transform: scale(1.07); }

.svc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(34,34,36,0.7) 0%, transparent 60%);
    transition: background 0.4s;
}

.svc-card:hover .svc-overlay {
    background: linear-gradient(to top, rgba(34,34,36,0.85) 0%, rgba(34,34,36,0.2) 100%);
}

/* ── Service icon badge ─────────────────────────────────────────── */
.svc-icon-badge {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 18px rgba(225,178,97,0.5);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
}

.svc-icon-badge svg {
    width: 28px;
    height: 28px;
    color: #fff;
    display: block;
    transition: transform 0.35s var(--ease);
}

.svc-card:hover .svc-icon-badge {
    transform: translateX(-50%) scale(1.12) translateY(-4px);
    background: var(--gold-light);
    box-shadow: 0 10px 30px rgba(225,178,97,0.65);
}

.svc-card:hover .svc-icon-badge svg {
    transform: scale(1.1);
}

/* Extra top padding in body so badge clears the centred icon */
.svc-body {
    padding: 44px 26px 26px;
    position: relative;
}

.svc-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}

.svc-card:hover .svc-body::before { transform: scaleX(1); }

.svc-num {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.svc-name {
    font-family: var(--font-disp);
    font-size: 19px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.svc-card:hover .svc-name { color: var(--gold); }

.svc-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 18px;
}

.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    transition: gap 0.3s var(--ease);
}

.svc-link:hover { gap: 14px; }

/* Spotlight radial glow — separate layer so bg-image is preserved */
.services-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--spotlight-x, -9999px) var(--spotlight-y, -9999px),
        rgba(225,178,97,0.06),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}
.services-section.spotlight-active::after { opacity: 1; }

/* ===================== EDITORIAL ===================== */
.editorial-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}
/* Dark overlay */
.editorial-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14,14,16, 0.1);
    z-index: 0;
    pointer-events: none;
}

.editorial-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 120px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.editorial-headline {
    margin-bottom: 36px;
}

.ed-line {
    font-family: var(--font-disp);
    font-size: clamp(44px, 5.5vw, 78px);
    font-weight: 800;
    line-height: 1.0;
    color: var(--white);
    letter-spacing: -1px;
}

.ed-gold { color: var(--gold); }

.editorial-copy p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 28px;
    max-width: 400px;
}

.editorial-imgs {
    position: relative;
    height: 600px;
}

.ed-img {
    position: absolute;
    overflow: hidden;
}

.ed-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 1.4s var(--ease);
}

.ed-img.revealed img { transform: scale(1); }

.ed-img-a {
    top: 0; left: 0;
    width: 65%; height: 68%;
}

.ed-img-b {
    bottom: 0; right: 0;
    width: 55%; height: 56%;
    border: 5px solid var(--dark);
}

.ed-gold-bar {
    position: absolute;
    bottom: 80px;
    left: -20px;
    width: 4px;
    height: 160px;
    background: var(--gold);
}

/* ===================== PROCESS ===================== */
.process-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    padding: var(--section-pad);
}
.process-section::before {
    content: '';
    position: absolute;
    inset: 0;
   background: rgba(14, 14, 16, 0.2);
    z-index: 0;
    pointer-events: none;
}
.process-head,
.process-grid { position: relative; z-index: 1; }

.process-head {
    max-width: var(--container);
    margin: 0 auto 70px;
    padding: 0 40px;
    text-align: center;
}

.process-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(25% - 50px);
    right: calc(25% - 50px);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(225,178,97,0.3), transparent);
    pointer-events: none;
}

.proc-step {
    padding: 0 30px;
    position: relative;
    text-align: center;
}

.proc-icon {
    width: 56px; height: 56px;
    border: 1px solid rgba(225,178,97,0.35);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 18px;
    color: var(--gold);
    transition: background 0.3s, border-color 0.3s;
}

.proc-step:hover .proc-icon {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.proc-conn {
    position: absolute;
    top: 28px;
    right: -15%;
    width: 30%;
    height: 1px;
    background: rgba(225,178,97,0.2);
}

.proc-step:last-child .proc-conn { display: none; }

.proc-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 10px;
}

.proc-title {
    font-family: var(--font-disp);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.proc-body {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text);
}

/* ===================== PROJECTS ===================== */
.projects-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
.projects-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14,14,16, 0.88);
    z-index: 0;
    pointer-events: none;
}
.proj-head,
.projects-grid { position: relative; z-index: 1; }

.proj-head {
    max-width: var(--container);
    margin: 0 auto 60px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.projects-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--gap);
}

.proj-card { overflow: hidden; position: relative; }

.proj-card.proj-large { grid-row: span 1; }

.proj-card:nth-child(3) { grid-column: 1; }
.proj-card:nth-child(4) { grid-column: 2; }

.proj-img {
    position: relative;
    overflow: hidden;
}

.proj-card.proj-large .proj-img { aspect-ratio: 4/3; }
.proj-card.proj-sm .proj-img { aspect-ratio: 3/2.4; }

.proj-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.proj-card:hover .proj-img img { transform: scale(1.06); }

.proj-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,22,24,0.9) 0%, rgba(22,22,24,0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.proj-card:hover .proj-overlay { opacity: 1; }

.proj-cat {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.proj-name {
    font-family: var(--font-disp);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.proj-loc {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}

.proj-arrow {
    width: 42px; height: 42px;
    border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    transition: background 0.3s, color 0.3s;
    align-self: flex-end;
    flex-shrink: 0;
}

.proj-card:hover .proj-arrow { background: var(--gold); color: var(--dark); }

/* ===================== GALLERY ===================== */
.gallery-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 16, 0.2);
    z-index: 0;
    pointer-events: none;
}
/* ─── gallery section content ─────────────────────────────── */
.gal-head,
.gallery-grid { position: relative; z-index: 1; }

.gal-head {
    max-width: var(--container);
    margin: 0 auto 60px;
    padding: 0 40px;
}

.gallery-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 14px;
}

.gal-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.gal-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
    display: block;
}

.gal-item:hover img { transform: scale(1.07); }

.gal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14,14,16,0.55);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    border: 1px solid rgba(225,178,97,0);
}

.gal-item:hover .gal-overlay {
    opacity: 1;
    border-color: rgba(225,178,97,0.6);
}

.gal-overlay i {
    font-size: 20px;
    color: var(--gold);
    transform: rotate(0deg) scale(0.6);
    transition: transform 0.4s var(--ease);
}

.gal-item:hover .gal-overlay i { transform: rotate(90deg) scale(1); }

.gal-view-more {
    text-align: center;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 38px;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-disp);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s var(--ease), color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-view-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
    z-index: 0;
}

.btn-view-more:hover::before { transform: scaleX(1); }

.btn-view-more span,
.btn-view-more i {
    position: relative;
    z-index: 1;
}

.btn-view-more:hover {
    color: var(--dark);
}

/* ================================================================
   GALLERY — 21st.dev-style clip-path wipe reveal + cinematic hover
   ================================================================ */

/* Gallery items — staggered fade + lift via reveal-up */
.gallery-section .gal-item {
    /* reveal-up handles opacity/transform; these add box-shadow */
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: box-shadow 0.4s var(--ease), transform 0.8s var(--ease);
}

.gallery-section .gal-item.revealed {
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Cinematic hover overlay — gold film slides up */
.gal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(14,14,16,0.88) 0%,
        rgba(225,178,97,0.18) 55%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 18px 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
    border: 1.5px solid rgba(225,178,97,0);
    border-radius: 4px;
}

.gal-item:hover .gal-overlay {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(225,178,97,0.5);
}

/* Plus icon inside overlay */
.gal-overlay i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gold);
    transform: rotate(-90deg) scale(0.7);
    transition: transform 0.4s var(--ease);
    align-self: flex-end;
}

.gal-item:hover .gal-overlay i {
    transform: rotate(0deg) scale(1);
}

/* Subtle zoom on hover */
.gal-item:hover img { transform: scale(1.08); }

/* Gold shimmer line that draws across image on hover */
.gal-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--gold);
    transition: width 0.5s var(--ease);
    z-index: 6;
}
.gal-item:hover::after { width: 100%; }


/* ================================================================
   ABOUT SECTION — 21st.dev split-reveal animation
   ================================================================ */

/* Image panel: slides in from left with clip-path */
/* Gold accent border behind image */
.about-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    transform: translate(14px, 14px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s var(--ease) 0.8s, transform 0.6s var(--ease) 0.8s;
    pointer-events: none;
}

.about-img-wrap.revealed::before {
    opacity: 0.45;
    transform: translate(18px, 18px);
}

/* Title word-line animation — each line revealed from below */
.about-line-wrap {
    overflow: hidden;
    display: block;
}

.about-line-inner {
    display: block;
    transform: translateY(105%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease;
}

.about-line-inner.revealed {
    transform: translateY(0);
    opacity: 1;
}

/* Feature items — slide in from left (triggered by initAboutAnimation) */
.about-feat {
    opacity: 0;
    transform: translateX(-22px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    /* Note: the .about-feats wrapper has reveal-up;
       feats start at opacity:0 and are revealed via JS stagger
       AFTER the wrapper becomes visible */
}

.about-feat.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Gold accent rule left of the about text column */
.about-txt-col {
    position: relative;
}

.about-txt-col::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, var(--gold), transparent);
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.about-txt-col.revealed::before {
    height: 100%;
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] { display: none; }

.lb-bg {
    position: absolute;
    inset: 0;
    background: rgba(12,12,14,0.96);
    cursor: pointer;
}

.lb-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 90vw;
    max-height: 90vh;
    padding: 20px;
}

.lb-img-wrap {
    max-width: 80vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lbImg {
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    width: 50px; height: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    z-index: 3;
    transition: all 0.3s;
    background: rgba(34,34,36,0.8);
}

.lb-close { top: -20px; right: -20px; }
.lb-prev  { left: -60px; }
.lb-next  { right: -60px; }

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.lb-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
}

/* ===================== TESTIMONIALS ===================== */
.testimonials-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    padding: var(--section-pad);
}
.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
   background: rgba(14, 14, 16, 0.2);
    z-index: 0;
    pointer-events: none;
}
.test-head,
.test-slider { position: relative; z-index: 1; }

.test-head {
    max-width: 800px;
    margin: 0 auto 70px;
    padding: 0 40px;
    text-align: center;
}

.test-slider {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    min-height: 260px;
}

.test-slide {
    display: none;
    animation: testFade 0.7s var(--ease);
}

.test-slide.active { display: block; }

@keyframes testFade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.test-quote-mark {
    font-family: var(--font-disp);
    font-size: 90px;
    line-height: 0.6;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 20px;
    font-weight: 800;
}

.test-text {
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255,255,255,0.82);
    font-style: italic;
    margin-bottom: 36px;
    font-weight: 300;
    text-align: center;
}

.test-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.test-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-disp);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
}

.test-info { text-align: left; }

.test-info strong {
    display: block;
    font-size: 15px;
    color: var(--white);
    margin-bottom: 2px;
    font-weight: 600;
}

.test-info span {
    font-size: 12.5px;
    color: var(--text);
}

.test-stars { color: var(--gold); font-size: 12px; margin-left: auto; }

.test-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 44px;
}

.t-dot {
    width: 28px; height: 2px;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s, width 0.3s;
    cursor: pointer;
}

.t-dot.active { background: var(--gold); width: 44px; }

/* ===================== FAQ ===================== */
.faq-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    padding: var(--section-pad);
}
.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 16, 0.2);
    z-index: 0;
    pointer-events: none;
}
.faq-inner { position: relative; z-index: 1; }

.faq-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.faq-head { position: sticky; top: 120px; }

.faq-list { border-top: 1px solid rgba(255,255,255,0.08); }

.faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    text-align: left;
    cursor: pointer;
    gap: 20px;
    transition: color 0.3s;
}

.faq-q span:first-child {
    font-size: 15px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.5;
    flex: 1;
}

.faq-q:hover span:first-child { color: var(--gold); }

.faq-icon {
    width: 30px; height: 30px;
    border: 1px solid rgba(225,178,97,0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.35s var(--ease);
}

.faq-item.open .faq-icon { background: var(--gold); border-color: var(--gold); color: var(--dark); transform: rotate(45deg); }
.faq-item.open .faq-q span:first-child { color: var(--gold); }

.faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s var(--ease), visibility 0.45s;
    visibility: hidden;
}

.faq-item.open .faq-a {
    max-height: 400px;
    visibility: visible;
}

.faq-a p {
    padding: 0 0 24px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--text);
}

/* ===================== CTA ===================== */
.cta-section {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(22,22,24,0.88), rgba(22,22,24,0.82));
}

.cta-inner {
    position: relative;
    z-index: 10;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.cta-title {
    font-family: var(--font-disp);
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.cta-body {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 44px;
}

.cta-content .eyebrow { margin-bottom: 20px; }

/* ===================== CONTACT ===================== */
.contact-section {
    background-color: var(--dark-alt);
    background-image: url('../images/texture-dark-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14,14,16, 0.88);
    z-index: 0;
    pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }

.contact-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.contact-details { margin-top: 36px; }

.c-detail {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 26px;
}

.c-icon {
    width: 42px; height: 42px;
    border: 1px solid rgba(225,178,97,0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 14px;
    flex-shrink: 0;
}

.c-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 4px;
}

.c-val {
    display: block;
    font-size: 14.5px;
    color: var(--white);
    line-height: 1.6;
    transition: color 0.3s;
}

a.c-val:hover { color: var(--gold); }

/* Contact Form */
.contact-form { padding: 50px 48px; background: #1c1c1e; border: 1px solid rgba(255,255,255,0.06); }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.f-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form-row-2 .f-group { margin-bottom: 0; }

.f-group label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mid);
}

.f-group input,
.f-group select,
.f-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.f-group input::placeholder,
.f-group textarea::placeholder { color: var(--mid); }

.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus {
    border-color: var(--gold);
    background: rgba(225,178,97,0.04);
}

.f-group textarea { resize: vertical; min-height: 120px; }

.f-group select option { background: #222224; color: var(--white); }

.contact-form .btn-gold { margin-top: 8px; }

.form-success {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(225,178,97,0.1);
    border: 1px solid rgba(225,178,97,0.3);
    color: var(--gold);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===================== FOOTER ===================== */
.footer { background: var(--dark-alt); border-top: 1px solid rgba(255,255,255,0.06); }

.footer-main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 40px 60px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-logo { height: 70px; max-width: 220px; width: auto; object-fit: contain; margin-bottom: 22px; }

.footer-desc {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 26px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s;
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(225,178,97,0.06);
}

.footer-h {
    font-family: var(--font-disp);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 13.5px;
    color: var(--text);
    transition: color 0.3s, padding-left 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    color: var(--gold);
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-links a:hover i { transform: translateX(3px); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.6;
}

.footer-contact i { color: var(--gold); margin-top: 3px; flex-shrink: 0; font-size: 12px; }
.footer-contact a:hover { color: var(--gold); }

.footer-base {
    max-width: var(--container);
    margin: 0 auto;
    padding: 22px 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-base p {
    font-size: 12.5px;
    color: var(--mid);
}

/* ===================== SCROLL ANIMATIONS ===================== */
.reveal-up {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image {
    overflow: hidden;
}

.reveal-image img {
    transform: scale(1.08);
    transition: transform 1.3s var(--ease);
}

.reveal-image.revealed img {
    transform: scale(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-up, .reveal-image { opacity: 1 !important; transform: none !important; }
    .reveal-image img { transform: none !important; }
    .hero-img.active { animation: none !important; }
    .marquee-inner { animation: none !important; }
}

/* ===================== MEDIA QUERIES ===================== */

/* Large desktop */
@media (max-width: 1300px) {
    :root { --container: 1160px; }
    .header-wrap { padding: 0 30px; justify-content:space-between }
}

/* Laptop */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
    .footer-main .footer-col:last-child { grid-column: 1; }
    .faq-inner { grid-template-columns: 1fr; gap: 50px; }
    .faq-head { position: static; }
}

/* Tablet landscape */
@media (max-width: 1024px) {
    :root { --section-pad: 100px 0; }

    /* Show mobile top bar, push header down */
    .mobile-topbar { display: flex; }
    .header { top: var(--topbar-h); }
    .floating-socials { display: none; }

    .header-cta { display: none; }
    .hamburger { display: flex; }
    #desktopNav { display: none; }

    /* Hero: collapse to full-width overlay */
    .hero-layout { grid-template-columns: 1fr; }

    .hero-left {
        padding: 160px 40px 60px 110px;
        background: linear-gradient(
            90deg,
            rgba(22,22,24,0.92) 0%,
            rgba(22,22,24,0.78) 80%,
            transparent 100%
        );
        z-index: 10;
    }

    .hero-right {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .hero-bg-pattern { -webkit-mask-image: none; mask-image: none; opacity: 1; }
    .hero-pendants { display: none; }

    .about-inner { grid-template-columns: 1fr; gap: 60px; }
    .about-img-col { max-width: 600px; margin: 0 auto; width: 100%; }
    .about-badge { right: 0; }

    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .process-grid::before { display: none; }
    .proc-conn { display: none; }

    .projects-grid { grid-template-columns: 1fr 1fr; }

    .contact-inner { grid-template-columns: 1fr; gap: 60px; }
    .contact-form { padding: 40px; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    :root { --section-pad: 80px 0; }

    /* Topbar: tighten spacing on smaller tablets */
    .mobile-topbar { gap: 16px; padding: 0 16px; }
    .topbar-item { font-size: 11.5px; }

    /* iOS: fixed attachment causes rendering bugs — use scroll instead */
    .about-section,
    .stats-section,
    .services-section,
    .editorial-section,
    .process-section,
    .projects-section,
    .gallery-section,
    .testimonials-section,
    .faq-section,
    .contact-section { background-attachment: scroll; }

    .hero-left { padding: 110px 24px 56px 80px; }
    .hero-socials { left: 18px; gap: 16px; }
    .hero-accent-line { left: 56px; height: 80px; }
    .hero-controls { right: 20px; bottom: 28px; gap: 10px; }
    .hero-arr { width: 38px; height: 38px; }
    .hero-count { padding: 6px 12px; font-size: 10.5px; }

    .about-inner,
    .editorial-inner,
    .contact-inner { padding: 0 24px; }

    .sec-head,
    .proj-head,
    .process-head,
    .faq-inner { padding: 0 24px; }

    .services-grid { padding: 0 24px; grid-template-columns: 1fr; }
    /* animated gallery responsive handled by .agal-* rules */

    .projects-grid { padding: 0 24px; grid-template-columns: 1fr; }
    .proj-card.proj-large .proj-img,
    .proj-card.proj-sm .proj-img { aspect-ratio: 16/9; }
    .proj-overlay { opacity: 1; }

    .editorial-inner { grid-template-columns: 1fr; padding: 80px 24px; }
    .editorial-imgs { height: 400px; }

    .process-grid { padding: 0 24px; grid-template-columns: 1fr; }
    .proc-step { text-align: left; display: flex; gap: 20px; align-items: flex-start; }
    .proc-icon { flex-shrink: 0; margin: 0; }
    .proc-step > div:last-child { flex: 1; }

    .stats-inner { padding: 60px 24px; flex-wrap: wrap; }
    .stat-item { min-width: calc(50% - 40px); }
    .stat-div { display: none; }

    .faq-inner { padding: 0 24px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .contact-form { padding: 30px 24px; }

    .footer-main { grid-template-columns: 1fr 1fr; padding: 60px 24px 40px; gap: 40px; }
    .footer-brand { grid-column: span 2; }
    .footer-base { padding: 20px 24px; }

    .test-slider, .test-head { padding: 0 24px; }
    .marquee-strip { padding: 10px 0; }

    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
    .lb-close { top: 10px; right: 10px; }
}

/* Mobile */
@media (max-width: 576px) {
    :root {
        --section-pad: 70px 0;
        --topbar-h: 64px;   /* taller to fit two rows */
    }

    /* Stack topbar items vertically on small phones */
    .mobile-topbar {
        flex-direction: column;
        gap: 3px;
        padding: 6px 16px;
        justify-content: center;
    }
    .topbar-sep { display: none; }
    .topbar-item { font-size: 11px; }

    .header-wrap { padding: 0 20px; }
    .logo img { height: 44px; }

    .hero-left { padding: 140px 20px 50px 72px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
    .hero-socials { left: 14px; gap: 14px; }
    .hero-socials a { font-size: 11px; }
    .hero-accent-line { left: 48px; height: 65px; }
    .hero-title { font-size: clamp(28px, 8vw, 44px); }
    .hero-sub { font-size: 13.5px; max-width: 100%; }
    .hero-btns { gap: 14px; }
    .hero-controls { bottom: 20px; right: 14px; gap: 8px; }
    .hero-arr { width: 36px; height: 36px; font-size: 11px; }
    .hero-count { display: none; }

    .about-inner,
    .editorial-inner,
    .process-grid,
    .services-grid,
    .projects-grid,
    .sec-head,
    .proj-head,
    .process-head,
    .test-slider,
    .test-head,
    .faq-inner,
    .contact-inner,
    .stats-inner,
    .footer-main,
    .footer-base,
    .cta-inner { padding-left: 20px; padding-right: 20px; }

    .sec-title { font-size: clamp(28px, 7vw, 38px); }
    .cta-title { font-size: clamp(30px, 7vw, 44px); }
    .ed-line { font-size: clamp(36px, 9vw, 54px); }

    /* animated gallery responsive handled by .agal-* rules */

    .about-badge { right: 0; bottom: 16px; padding: 16px 20px; }
    .badge-num { font-size: 32px; }

    .editorial-imgs { height: 300px; }

    .footer-main { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-base { flex-direction: column; text-align: center; }

    .stat-item { min-width: 100%; }

    .contact-form { padding: 24px 20px; }
    .mobile-menu { width: 290px; }

    .test-text { font-size: 15px; }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-left { padding: 90px 16px 44px 62px; }
    .hero-title { font-size: 26px; }
    .hero-accent-line { display: none; }
    .hero-socials { display: none; }
    /* animated gallery responsive handled by .agal-* rules */
}


/* ============================================================
   TYPEWRITER HEADINGS
   Applied to [data-typewriter] blocks. js/script.js measures each
   line, then the width animation steps once per character so the
   text genuinely types itself out, with a gold caret.
   ============================================================ */

/* Neutralise the existing slide-up / fade reveals on typed lines so
   the two effects don't fight each other. */
[data-typewriter] .about-line-inner { transform: none !important; }
[data-typewriter] .reveal-up { opacity: 1; transform: none; }

.tw-line {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    border-right: 2px solid transparent;
}

/* Before typing starts — collapsed, nothing visible */
.tw-line.tw-armed {
    width: 0;
    border-right-color: transparent;
}

/* Typing: width steps once per character, caret blinks */
.tw-line.tw-typing {
    border-right-color: var(--gold);
    animation:
        twType var(--tw-dur, 1.2s) steps(var(--tw-steps, 12), end) forwards,
        twCaret 0.72s step-end infinite;
}

@keyframes twType {
    from { width: 0; }
    to   { width: var(--tw-w, 100%); }
}

@keyframes twCaret {
    0%, 100% { border-right-color: var(--gold); }
    50%      { border-right-color: transparent; }
}

/* Finished — release the fixed width so the line reflows normally */
.tw-line.tw-done {
    width: auto;
    animation: none;
    border-right-color: transparent;
}

/* The last line keeps a slow blinking caret as a finishing touch */
.tw-line.tw-done.tw-last {
    border-right-color: var(--gold);
    animation: twCaret 1.1s step-end infinite;
}

/* Subtle gold glow while a line is actively typing */
.tw-line.tw-typing::selection { background: rgba(225,178,97,0.3); }

@media (prefers-reduced-motion: reduce) {
    .tw-line,
    .tw-line.tw-armed,
    .tw-line.tw-typing,
    .tw-line.tw-done {
        width: auto;
        animation: none !important;
        border-right-color: transparent;
    }
}
