/* ============================================================
   XENIAL STUDIO — 2026 Redesign
   Dark cinematic theme · Poppins · #FE6612
   ============================================================ */

:root {
    --orange: #fe6612;
    --orange-soft: #ff9a3d;
    --orange-deep: #c94c08;
    --ink: #0b0b0c;
    --ink-2: #121214;
    --ink-3: #19191c;
    --paper: #f6f3ef;
    --muted: #a3a3a3;
    --muted-2: #6b6b6b;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --glow: rgba(254, 102, 18, 0.35);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--ink);
    color: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}

::selection { background: var(--orange); color: #fff; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ------------------------------------------------------------
   Grain + ambient background
   ------------------------------------------------------------ */
.grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 3%); }
    50% { transform: translate(3%, -2%); }
    75% { transform: translate(-3%, -3%); }
    100% { transform: translate(2%, 2%); }
}

.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}
.ambient::before,
.ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}
.ambient::before {
    width: 60vw; height: 60vw;
    top: -25vw; right: -20vw;
    background: radial-gradient(circle at center, rgba(254,102,18,0.16) 0%, rgba(254,102,18,0.05) 45%, transparent 70%);
    animation: ambient-a 26s ease-in-out infinite alternate;
}
.ambient::after {
    width: 50vw; height: 50vw;
    bottom: -20vw; left: -15vw;
    background: radial-gradient(circle at center, rgba(255,154,61,0.10) 0%, rgba(254,102,18,0.04) 45%, transparent 70%);
    animation: ambient-b 32s ease-in-out infinite alternate;
}
@keyframes ambient-a { to { transform: translate(-10vw, 14vh) scale(1.15); } }
@keyframes ambient-b { to { transform: translate(12vw, -12vh) scale(0.9); } }

/* ------------------------------------------------------------
   Custom cursor (desktop, fine pointers only)
   ------------------------------------------------------------ */
#cursor-dot, #cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
    #cursor-dot, #cursor-ring {
        display: block;
        position: fixed;
        top: 0; left: 0;
        pointer-events: none;
        z-index: 9999;
        border-radius: 50%;
        will-change: transform;
    }
    #cursor-dot {
        width: 8px; height: 8px;
        background: var(--orange);
        transform: translate(-50%, -50%);
    }
    #cursor-ring {
        width: 40px; height: 40px;
        border: 1.5px solid rgba(254, 102, 18, 0.55);
        transform: translate(-50%, -50%);
        transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                    border-color 0.3s ease, background-color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #cursor-ring .cursor-label {
        font-size: 0;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.08em;
        transition: font-size 0.2s ease;
        user-select: none;
    }
    #cursor-ring.is-hover {
        width: 64px; height: 64px;
        background: rgba(254, 102, 18, 0.12);
        border-color: rgba(254, 102, 18, 0.9);
    }
    #cursor-ring.is-view {
        width: 88px; height: 88px;
        background: rgba(11, 11, 12, 0.55);
        backdrop-filter: blur(4px);
        border-color: var(--orange);
    }
    #cursor-ring.is-view .cursor-label { font-size: 0.72rem; }
    body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ------------------------------------------------------------
   Scroll progress
   ------------------------------------------------------------ */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--orange), var(--orange-soft));
    z-index: 100;
    will-change: transform;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 90;
    padding: 1.4rem 0;
    transition: padding 0.4s var(--ease-out), background-color 0.4s ease,
                border-color 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}
#main-header.header-scrolled {
    padding: 0.7rem 0;
    background: rgba(11, 11, 12, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.header-logo img { height: 36px; width: auto; }

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1.5px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--paper); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

@media (min-width: 900px) {
    .desktop-nav { display: flex; }
    #mobile-menu-btn-wrapper { display: none; }
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
    isolation: isolate;
}
.btn .btn-fill {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform 0.45s var(--ease-expo);
}
.btn:hover .btn-fill { transform: translateY(0); }
.btn svg, .btn i { transition: transform 0.35s var(--ease-out); }
.btn:hover svg, .btn:hover i { transform: translateX(4px); }

.btn-orange {
    background: linear-gradient(120deg, var(--orange), var(--orange-soft));
    color: #fff;
    box-shadow: 0 8px 30px -8px var(--glow);
}
.btn-orange .btn-fill { background: #fff; }
.btn-orange:hover { color: var(--ink); box-shadow: 0 14px 40px -8px var(--glow); }

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.btn-ghost .btn-fill { background: var(--orange); }
.btn-ghost:hover { color: #fff; border-color: var(--orange); }

.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.9rem; }

/* Hamburger */
.hamburger-btn {
    width: 40px; height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 96;
    position: relative;
}
.hamburger-line {
    width: 26px; height: 2px;
    background: var(--paper);
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
    transform-origin: center;
}
.hamburger-btn.active .line-1 { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.active .line-2 { opacity: 0; transform: translateX(-8px); }
.hamburger-btn.active .line-3 { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
/* Sits below the header so the logo and close (hamburger) button stay usable */
#mobile-menu-dropdown {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(11, 11, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu-dropdown.open { opacity: 1; visibility: visible; }
#mobile-menu-dropdown nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.mobile-menu-link {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    font-weight: 700;
    padding: 0.35rem 1rem;
    color: var(--paper);
    opacity: 0;
    transform: translateY(24px);
    transition: color 0.3s ease;
}
#mobile-menu-dropdown.open .mobile-menu-link {
    animation: menu-link-in 0.5s var(--ease-expo) forwards;
}
@keyframes menu-link-in { to { opacity: 1; transform: translateY(0); } }
.mobile-menu-link:hover, .mobile-menu-link.active { color: var(--orange); }

/* ------------------------------------------------------------
   Typography helpers
   ------------------------------------------------------------ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(254, 102, 18, 0.35);
    background: rgba(254, 102, 18, 0.07);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange-soft);
}
.eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--orange);
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(254, 102, 18, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(254, 102, 18, 0); }
}

.h-display {
    font-size: clamp(3rem, 9.5vw, 8.5rem);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.04em;
}
.h-section {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.h-sub {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--muted);
    font-weight: 400;
}
.grad-text {
    background: linear-gradient(95deg, var(--orange) 10%, var(--orange-soft) 60%, #ffc37a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.outline-text {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(246, 243, 239, 0.35);
}

.section { padding: clamp(5rem, 12vh, 9rem) 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.4rem; }
.section-head .h-sub { margin-top: 1.2rem; }

/* Split-text reveal targets — bottom padding keeps descenders (g, y, p)
   from being clipped by the overflow mask */
.split-lines .line-mask { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.split-lines .line-inner { display: block; will-change: transform; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
#hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-content .eyebrow { margin-bottom: 2.2rem; }
.hero-title .strong { font-weight: 600; }
.hero-sub {
    margin: 2.2rem auto 0;
    max-width: 640px;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--muted);
}
.hero-cta {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.hero-meta {
    margin-top: 3.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2.2rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}
.hero-meta .meta-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta svg { color: var(--orange); }
.hero-meta .sep { width: 1px; height: 18px; background: var(--line-strong); }

.scroll-cue {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 30px; height: 50px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 9px;
}
.scroll-cue span {
    width: 4px; height: 10px;
    border-radius: 4px;
    background: var(--orange);
    animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(16px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ------------------------------------------------------------
   Logo marquee
   ------------------------------------------------------------ */
.marquee-section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ink-2);
    overflow: hidden;
}
.marquee-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 2.2rem;
}
.marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
    padding-right: clamp(3rem, 7vw, 6rem);
    flex-shrink: 0;
    animation: marquee-scroll 32s linear infinite;
    will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-100%); } }
/* These are client wins — they need to READ, not be decoration.
   The set spans a huge luminance range (Firstloop is pure black, Jio is a
   bright solid tile), so one filter can't serve all: a white silhouette
   (brightness(0) invert(1)) makes every mark an unrecognisable blob.
   Instead everything is desaturated to 0% saturation and normalised to a
   light monochrome family, preserving internal detail. */
.marquee-track img {
    /* --logo-h / --logo-h-m come from the admin's global size sliders
       (written onto .marquee-track); --s is the per-logo scale written
       onto each <img>. The values here are the fallback defaults. */
    height: calc(var(--logo-h, 52px) * var(--s, 1));
    width: auto;
    max-width: calc(190px * var(--s, 1));
    object-fit: contain;
    filter: grayscale(1) brightness(1.12) contrast(1.05);
    opacity: 0.85;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease,
                background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Dark artwork (avg luminance < ~90) would disappear on the ink background —
   invert lifts it into the same light-gray family while keeping its shapes. */
.marquee-track img.logo-dark {
    filter: grayscale(1) invert(1) brightness(1.05) contrast(1.05);
}
/* Hover reveals the TRUE brand colours (grayscale is the rest state only).
   Gated on hover-capable devices so a phone tap can't latch the state. */
@media (hover: hover) {
    .marquee-track img:hover {
        opacity: 1;
        transform: scale(1.06);
        filter: none;
    }
    /* Dark artwork in true colour would vanish on the ink strip — a soft
       light chip appears behind it. box-shadow spread fakes the chip's
       padding with ZERO layout impact: the marquee is a continuously
       translating flex track, and any real padding/size change on hover
       would shift the track width and make the whole strip stutter. */
    .marquee-track img.logo-dark:hover {
        filter: none;
        background-color: rgba(246, 243, 239, 0.96);
        border-radius: 6px;
        box-shadow: 0 0 0 10px rgba(246, 243, 239, 0.96);
    }
}
@media (max-width: 899px) {
    .marquee-track img {
        height: calc(var(--logo-h-m, 42px) * var(--s, 1));
        max-width: calc(150px * var(--s, 1));
        opacity: 0.9;
    }
}

/* ------------------------------------------------------------
   Work — pinned horizontal gallery
   ------------------------------------------------------------ */
#work { overflow: hidden; }
#work .work-head { padding-top: clamp(5rem, 12vh, 9rem); }
.work-viewport { position: relative; }
/* Top padding clears the fixed header while the section is pinned;
   card height is budgeted against 100vh so the pinned view never clips */
.work-track {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: 6.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
    will-change: transform;
    width: max-content;
}
.work-card {
    position: relative;
    width: min(78vw, 900px);
    height: min(calc(100vh - 10.5rem), 620px);
    flex-shrink: 0;
    border-radius: 1.6rem;
    overflow: hidden;
    background: var(--ink-3);
    border: 1px solid var(--line);
    transform: translateZ(0);
}
.work-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}
.work-card:hover video { transform: scale(1.04); }
.work-card .work-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(5,5,6,0.82) 0%, rgba(5,5,6,0.25) 45%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 4vw, 3rem);
}
.work-tag {
    color: var(--orange-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.work-title {
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
    color: #fff;
}
.work-desc {
    max-width: 520px;
    color: rgba(246, 243, 239, 0.85);
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
}
.work-index {
    position: absolute;
    top: 1.6rem;
    right: 1.8rem;
    z-index: 1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
}
.work-progress {
    height: 2px;
    background: var(--line);
    margin: 0 clamp(1.25rem, 4vw, 3rem) 0;
    border-radius: 2px;
    overflow: hidden;
}
.work-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--orange), var(--orange-soft));
}

/* Mobile: vertical stack */
@media (max-width: 899px) {
    .work-track {
        flex-direction: column;
        width: 100%;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .work-card { width: 100%; height: 62vh; }
    .work-progress { display: none; }
}

/* ------------------------------------------------------------
   Services — spotlight grid
   ------------------------------------------------------------ */
#services { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: block;
    padding: 2rem 1.7rem;
    min-height: 240px;
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s var(--ease-out), background-color 0.35s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--mx) var(--my), rgba(254, 102, 18, 0.16), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
/* Hover glow only on devices that truly hover — on touch, sticky :hover
   fires on accidental taps; there the scroll-driven .in-focus takes over */
@media (hover: hover) {
    .service-card:hover { border-color: rgba(254, 102, 18, 0.5); background: rgba(255,255,255,0.04); }
    .service-card:hover::before { opacity: 1; }
}
.service-card.in-focus { border-color: rgba(254, 102, 18, 0.5); background: rgba(255,255,255,0.04); }
.service-card.in-focus::before { opacity: 1; }
.service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 102, 18, 0.1);
    border: 1px solid rgba(254, 102, 18, 0.25);
    color: var(--orange);
    margin-bottom: 1.4rem;
    transition: background 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
@media (hover: hover) {
    .service-card:hover .service-icon {
        background: var(--orange);
        color: #fff;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 25px -6px var(--glow);
    }
}
.service-card.in-focus .service-icon {
    background: var(--orange);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px -6px var(--glow);
}
.service-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
    color: var(--paper);
}
.service-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}
.service-arrow {
    position: absolute;
    top: 1.6rem; right: 1.6rem;
    color: var(--muted-2);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: all 0.35s var(--ease-out);
}
@media (hover: hover) {
    .service-card:hover .service-arrow {
        opacity: 1;
        transform: translate(0, 0);
        color: var(--orange);
    }
}
.service-card.in-focus .service-arrow {
    opacity: 1;
    transform: translate(0, 0);
    color: var(--orange);
}

/* ------------------------------------------------------------
   Reels — 3D tilt phones
   ------------------------------------------------------------ */
.reels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1040px;
    margin: 0 auto;
}
@media (min-width: 760px) {
    .reels-grid { grid-template-columns: repeat(3, 1fr); align-items: center; }
    .reel-tilt:nth-child(2) { transform: translateY(-2.2rem); }
}
.reel-tilt { perspective: 1000px; }
.reel-card {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 1.8rem;
    overflow: hidden;
    background: var(--ink-3);
    border: 1px solid var(--line-strong);
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
    will-change: transform;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
.reel-card:hover { box-shadow: 0 30px 70px -20px rgba(254, 102, 18, 0.25); }
.reel-card video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.reel-card .reel-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.08) 45%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.reel-card:hover .reel-shine { opacity: 1; }

/* ------------------------------------------------------------
   Process — sticky steps
   ------------------------------------------------------------ */
#process { background: var(--ink-2); border-top: 1px solid var(--line); }
.process-wrap {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}
.process-rail {
    position: absolute;
    left: 27px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--line);
}
.process-rail span {
    display: block;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--orange), var(--orange-soft));
}
.process-step {
    position: relative;
    display: flex;
    gap: 2rem;
    padding: 0 0 3.5rem 0;
}
.process-step:last-child { padding-bottom: 0; }
.process-num {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    border: 1.5px solid var(--line-strong);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    transition: all 0.45s var(--ease-out);
}
.process-step.is-active .process-num {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 0 0 8px rgba(254, 102, 18, 0.12), 0 10px 30px -8px var(--glow);
}
.process-body { padding-top: 0.35rem; }
.process-kicker {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.process-body h3 {
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    font-weight: 700;
    margin: 0.5rem 0 0.7rem;
    letter-spacing: -0.02em;
}
.process-body p { color: var(--muted); max-width: 560px; }

/* ------------------------------------------------------------
   Results
   ------------------------------------------------------------ */
#results {
    background: linear-gradient(135deg, var(--orange-deep) 0%, var(--orange) 45%, #ff8434 100%);
    position: relative;
    overflow: hidden;
}
#results::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px circle at 80% 20%, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    position: relative;
}
@media (min-width: 760px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-number {
    font-size: clamp(3.4rem, 7.5vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
    display: inline-block;
    text-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.stat-label {
    margin-top: 0.9rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* ------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------ */
/* The ACTIVE slide sits in normal flow so the slider is always exactly
   as tall as the visible quote — no dead space after short quotes.
   Hidden slides overlay it absolutely for the crossfade. */
.testimonial-slider {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}
.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    pointer-events: none;
    text-align: center;
}
.testimonial-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.testimonial-slide .quote-mark {
    font-size: 4.5rem;
    line-height: 0.6;
    color: var(--orange);
    font-weight: 800;
    display: block;
    margin-bottom: 1.6rem;
}
.testimonial-slide blockquote {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--paper);
}
.testimonial-slide cite {
    display: block;
    margin-top: 2rem;
    font-style: normal;
    font-weight: 700;
    font-size: 1.05rem;
}
.testimonial-slide cite span {
    display: block;
    margin-top: 0.2rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--muted);
}
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 3rem;
}
.testimonial-dot {
    width: 34px; height: 4px;
    border-radius: 4px;
    border: none;
    background: var(--line-strong);
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}
.testimonial-dot .fill {
    position: absolute;
    inset: 0;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
}
.testimonial-dot.active .fill {
    transform: scaleX(1);
    transition: transform 6s linear;
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
#contact { background: var(--ink-2); border-top: 1px solid var(--line); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: start;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }
.contact-info .h-section { margin-bottom: 1.4rem; }
.contact-info p.lead { color: var(--muted); max-width: 440px; font-size: 1.05rem; }
.contact-lines { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-line {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--paper);
    font-weight: 500;
    transition: color 0.3s ease;
    width: fit-content;
}
.contact-line svg { color: var(--orange); flex-shrink: 0; }
a.contact-line:hover { color: var(--orange-soft); }

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 1.6rem;
    padding: clamp(1.6rem, 4vw, 2.8rem);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.field { position: relative; }
.field input, .field textarea {
    width: 100%;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 1.05rem 1.3rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--paper);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(254, 102, 18, 0.15);
}
#formMsg { font-weight: 600; text-align: center; }
#formMsg.ok { color: #4ade80; }
#formMsg.err { color: #f87171; }
.hidden { display: none; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
    background: #070708;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.footer-mega {
    padding: clamp(3rem, 8vw, 5rem) 0 0;
    text-align: center;
    user-select: none;
}
.footer-mega span {
    font-size: clamp(2.4rem, 9.5vw, 8.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    display: inline-block;
    background: linear-gradient(180deg, rgba(246,243,239,0.14) 0%, rgba(246,243,239,0.02) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.6rem;
    padding: 3.5rem 0;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { margin-top: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    transform: translateY(-3px);
}
.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col li { color: var(--muted); font-size: 0.95rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 1.6rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted-2);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a { transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--paper); }
.footer-bottom .links { display: flex; gap: 1.6rem; }

/* ------------------------------------------------------------
   Reveal defaults (JS sets initial states; this is the no-JS fallback)
   ------------------------------------------------------------ */
.gs-reveal { opacity: 1; }

/* ------------------------------------------------------------
   Mobile polish
   ------------------------------------------------------------ */
@media (max-width: 899px) {
    .header-logo img { height: 26px; }
    .footer-brand img { height: 28px; }

    /* ---- Mobile hero: fewer, calmer elements ----
       The phone is the primary surface, so the hero is trimmed to one
       clear idea: badge → headline → one-line promise → one action. */

    /* The wireframe was dense enough to compete with the copy. Pull it
       back and add a soft scrim so text sits on near-solid ink. */
    #hero-canvas { opacity: 0.3; }
    #hero::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: radial-gradient(ellipse 90% 55% at 50% 48%,
            rgba(11, 11, 12, 0.82) 0%,
            rgba(11, 11, 12, 0.55) 45%,
            rgba(11, 11, 12, 0) 78%);
    }

    #hero { padding-top: 4.5rem; padding-bottom: 3rem; }

    .hero-content .eyebrow {
        margin-bottom: 1.25rem;
        font-size: 0.62rem;
        padding: 0.42rem 0.9rem;
        letter-spacing: 0.16em;
    }

    .hero-title { letter-spacing: -0.045em; }

    /* Drop the closing flourish on phones — the first sentence carries
       the value; the second only added a fifth line of text. */
    .hero-sub .sub-flourish { display: none; }
    .hero-sub {
        margin-top: 1.4rem;
        font-size: 0.97rem;
        line-height: 1.55;
        max-width: 22rem;
        color: #9b9b9b;
    }

    /* Stack CTAs at one consistent width */
    .hero-cta {
        margin-top: 1.9rem;
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
    }
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.85rem 1.6rem;
        font-size: 0.95rem;
    }

    /* Trust items: one compact wrapped row instead of three tall rows */
    .hero-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem 1.1rem;
        margin-top: 1.9rem;
        font-size: 0.78rem;
    }
    .hero-meta .sep { display: none; }
    .hero-meta .meta-item { gap: 0.35rem; }
    .hero-meta svg { width: 14px !important; height: 14px !important; }

    .scroll-cue { display: none; }

    /* Give the bigger logos room to breathe */
    .marquee-section { padding: 2.75rem 0; }
    .marquee-label { margin-bottom: 1.6rem; }
    .marquee-track { gap: 2.75rem; padding-right: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    .grain { display: none; }
    #hero-canvas { display: none; }
}
