/* =============================================================
   front-page-v2.css  —  ViitorX Homepage v2
   Tailwind → plain CSS translation  |  prefix: vx2-
   ============================================================= */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --vx2-dark: #121212;
    --vx2-darker: #0A0A0A;
    --vx2-darkest: #050505;
    --vx2-white: #FFFFFF;
    --vx2-tan: #A47764;
    --vx2-rust: #815948;
    --vx2-muted: #B09B8B;
    --vx2-ink: #131313;
    --vx2-cream: #F0F0E5;
    --vx2-gray: #9A9FA1;
    --vx2-mid-gray: #7A7A7A;
    --vx2-rule: #E8E8E8;
    --vx2-ease: cubic-bezier(0.22, 1, 0.36, 1);
    /* Older standard section gap — 100px at ~1429px+ viewports, scaling
       down on narrower widths. The white run and Blog now use
       --vx2-section-py below instead. */
    --vx2-section-gap: clamp(3rem, 7vw, 6.25rem);
    /* THE section vertical spacing for the white run and Blog (Work →
       Stats → Industries → Clients → Gallery, Blog) — one value for every
       top and bottom, so every gap on the page matches:
       - exactly 160px from ~1905px (a 1920px screen minus its scrollbar),
         scaling down on narrower screens;
       - never below the fixed nav + 24px (~104px), so a heading is never
         tucked under the nav when a scroll snap lands on a section top.
         (A separate nav-safe top value used to mix ~104px tops with
         smaller bottoms below ~1240px.)
       round() keeps it on whole pixels (8.33vw gave 158.686px at 1905px).
       Each gap between two sections comes from ONE side only, never both
       stacked. */
    --vx2-section-py: max(round(clamp(64px, 8.4vw, 160px), 1px), calc(var(--nav-bar-outer-height, 80px) + 24px));
}

/* marketing-shared.css sets html{scroll-behavior:smooth} unconditionally, only
   overridden back to auto once Lenis's JS loads and tags <html> with
   .lenis.lenis-smooth — leaving a real window right after first paint where a
   scroll input triggers the browser's own native smooth-scroll animation
   before Lenis has attached and taken over, which then hands off mid-motion
   into Lenis's own scroll-jacked animation. Reads as "scrolls a little, then
   starts to animate." Loaded after marketing-shared.css (depends on it), so
   this wins the cascade — auto from first paint, no JS timing dependency. */
html {
    scroll-behavior: auto;
}

/* ── Page base ─────────────────────────────────────────────── */
.vx2-page {
    background: var(--vx2-dark);
    font-family: 'Lenia Sans', Arial, sans-serif;
    /* clip does NOT create a scroll container (unlike hidden) so position:sticky
       on child sections scrolls relative to the viewport, not this element. */
    overflow-x: clip;
}

/* ── Shared util ───────────────────────────────────────────── */
.vx2-accent-rust {
    color: var(--vx2-rust);
}

/* Scroll-reveal base state — JS adds .is-revealed */
.vx2-inview {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s var(--vx2-ease), transform 1.2s var(--vx2-ease);
}

.vx2-inview.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Homepage: GSAP drives the entrance (initInView, front-page-v2-animations.js
   adds this class) — a CSS transition left on would lag every GSAP frame.
   Only until revealed, so hover transitions afterwards are untouched. */
html.vx2-gsap-reveal .vx2-inview:not(.is-revealed) {
    transition: none;
}

/* ──────────────────────────────────────────────────────────────
   §1  HERO
────────────────────────────────────────────────────────────── */
.vx2-hero {
    position: relative;
    min-height: 100vh;
    background: var(--vx2-dark);
}

.vx2-hero__sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Show a dark frame while the video/poster loads */
    background: var(--vx2-dark);
}

.vx2-hero__video {
    position: absolute;
    top: -7.5%;
    left: -7.5%;
    width: 115%;
    height: 115%;
    object-fit: cover;
    display: block;
    z-index: 0;
    will-change: transform;
    transform-origin: center center;
}

/* Soft gradient between the video and the text overlay — guarantees the
   white headings stay readable against arbitrary video content without
   heavily obscuring the footage itself. */
.vx2-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.38) 100%);
}

/* Overlay container */
.vx2-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    padding: 0 1.5rem;
}

.vx2-hero__top {
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.vx2-ovr__logo {
    width: 160px;
    height: auto;
}

@media (min-width: 768px) {
    .vx2-ovr__logo {
        width: 208px;
    }
}

.vx2-hero__bottom-text {
    position: absolute;
    left: 50%;
    bottom: 70px;
    transform: translateX(-50%);
    text-align: center;
    color: #F0F0E5;
    font-family: 'Lenia Sans', sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.01em;
    width: calc(100% - 3rem);
    max-width: 700px;
}

/* ──────────────────────────────────────────────────────────────
   §2  PROJECTS — "We bring ideas to life"
────────────────────────────────────────────────────────────── */
.vx2-projects {
    position: relative;
    /* Was 320vh (long continuous scroll-scrub) — now a single-viewport,
       non-pinned block: scrolling past it is one ordinary scroll gesture.
       The blocks auto-advance on their own timer instead (see initProjects
       in front-page-v2-animations.js), independent of scroll. */
    min-height: 100vh;
    background: var(--vx2-white);
}

.vx2-projects__sticky {
    /* top offset reserves clearance for the fixed nav — same fix as
       .vx2-cit__sticky/.vx2-ind__sticky and the mobile override below. */
    position: sticky;
    top: var(--nav-bar-outer-height, 0px);
    min-height: calc(100vh - var(--nav-bar-outer-height, 0px));
    overflow: hidden;
    display: flex;
    align-items: center;
}

.vx2-projects__inner {
    /* Fluid width instead of a fixed side padding — scales continuously
       with the viewport instead of jumping between breakpoint values, and
       matches every other standardized section (Work/Blog/Clients/
       Citations' text rail) exactly, since they all use this same
       width/max-width/margin formula now. */
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
}

.vx2-projects__stage {
    position: relative;
    width: 100%;
    height: min(600px, 85vh);
    display: flex;
    align-items: center;
}

/* Blocks — all absolutely stacked, JS controls opacity/y */
.vx2-pb {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    will-change: transform, opacity;
}

/* Individual word spans injected by JS */
.vx2-word {
    display: inline-block;
    margin-right: 0.25em;
    will-change: transform, opacity, filter;
}

.vx2-pb--phi {}

.vx2-pb__phi-eyebrow {
    /* Reference: 22px → 30px @768px */
    font-size: clamp(1.375rem, 3.9vw, 1.875rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--vx2-tan);
    margin-bottom: 1.5rem;
}

.vx2-pb__phi-body {
    /* Reference: 45px → 68px @640px → 82px @768px → 96px @1024px → 108px @1280px */
    font-size: clamp(2.8125rem, 10.7vw, 6.75rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--vx2-ink);
    max-width: 1300px;
}

.vx2-pb__phi-author {
    /* Fluid across every width: 18px at a 375px phone → 32px at 1440px,
       capped there (was clamp(1.5rem, 4.2vw, 2rem): a fixed 24px on phones
       and a flat 32px on everything from ~760px up). */
    font-size: clamp(1.125rem, 0.817rem + 1.315vw, 2rem);
    /* Whole pixels only (same fluid size, snapped) — older browsers
       without round() keep the line above. */
    font-size: round(clamp(1.125rem, 0.817rem + 1.315vw, 2rem), 1px);
    font-weight: 500;
    color: var(--vx2-tan);
    margin-top: 1.5rem;
}

/* Autoplay indicator — a delicate traced ring, not a button: no fill, no
   border box, no cursor:pointer, nothing to click. Drawn as real SVG stroke
   (crisp at any size/DPI, unlike the CSS conic-gradient + mask hack this
   replaced, which visibly aliased at 30px) — the fill circle's
   stroke-dashoffset is animated by GSAP in initProjects
   (front-page-v2-animations.js) to trace clockwise over each slide's dwell
   time. Hovering the (slightly enlarged, see ::after below) hit area is the
   entire interaction — it pauses the deck for as long as the pointer rests
   there. Pinned to the stage's own corner so its position holds steady
   across both the fixed-height desktop stage and the inset:0 mobile
   override below; z-index keeps it above the absolutely-stacked .vx2-pb
   blocks regardless of DOM order. */
.vx2-pb-indicator {
    /* A real <button> now (see front-page-v2.php) so it's tap/click/
       keyboard operable — reset the UA button chrome so it still reads as
       the plain traced-ring glyph it was as a <div>. */
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    position: absolute;
    /* top/left are set inline by JS (positionIndicatorNear in
       front-page-v2-animations.js), which measures each slide's own
       eyebrow text and places the ring right beside it — the eyebrow's
       own box always spans the full row width (flex column stretch)
       even though the italic text is much narrower, so a static CSS
       position can't track it. These are just a pre-JS fallback. No
       position transition here on purpose — the ring's move to a new
       slide's eyebrow is a fade out/reposition/fade in (also driven by
       JS), not a slide/drag across the stage. */
    top: 2rem;
    left: 0;
    z-index: 2;
    width: 30px;
    height: 30px;
}

.vx2-pb-indicator:focus-visible {
    outline: 2px solid var(--vx2-tan);
    outline-offset: 4px;
    border-radius: 50%;
}

.vx2-pb-indicator::after {
    /* Larger invisible tap/click target than the visual 30px ring itself —
       same trick as .vx2-ind__dot::before elsewhere in this file. */
    content: '';
    position: absolute;
    inset: -10px;
}

.vx2-pb-indicator__ring {
    position: absolute;
    inset: 0;
    /* SVG arcs start at 3 o'clock by default — rotate so the fill traces
       from 12 o'clock instead, the conventional "loading ring" start point. */
    transform: rotate(-90deg);
    transition: transform 0.3s var(--vx2-ease);
}

.vx2-pb-indicator__track,
.vx2-pb-indicator__fill {
    fill: none;
    stroke-width: 2;
}

.vx2-pb-indicator__track {
    stroke: rgba(19, 19, 19, 0.16);
}

.vx2-pb-indicator__fill {
    stroke: var(--vx2-tan);
    stroke-linecap: round;
    /* stroke-dasharray/stroke-dashoffset are set from JS, in lockstep with
       the circle's own r="14" (its real circumference) — see initProjects. */
}

/* Play/pause glyphs at the ring's center — only one is ever visible at a
   time: pause bars while autoplay is running (what tapping will do next),
   swapping to a play triangle once paused. Both are always in the DOM and
   cross-fade via opacity, so no layout shift on toggle. */
.vx2-pb-indicator__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    fill: var(--vx2-tan);
    opacity: 0;
    transition: opacity 0.2s var(--vx2-ease);
}

.vx2-pb-indicator__icon--pause {
    opacity: 1;
}

.vx2-projects.is-paused .vx2-pb-indicator__ring {
    transform: rotate(-90deg) scale(1.15);
}

.vx2-projects.is-paused .vx2-pb-indicator__icon--pause {
    opacity: 0;
}

.vx2-projects.is-paused .vx2-pb-indicator__icon--play {
    opacity: 1;
}

/* ──────────────────────────────────────────────────────────────
   §3  CITATIONS — "What We Build"
────────────────────────────────────────────────────────────── */
.vx2-citations {
    position: relative;
    height: 200vh;
    background: #0D0D0D;
    z-index: 1;
}

/* Scroll-driven slides (initCitations, JS — adds this class and sets
   --cit-steps to the slide count): one viewport of scroll per slide, plus
   the final viewport that .vx2-work (margin-top:-100vh) slides up over.
   Two-class selector so it outranks the flat 200vh rules in the mobile /
   svh blocks below. Without JS (or with reduced motion) the class is never
   added and those rules apply unchanged. */
.vx2-citations.is-scroll-steps {
    height: calc((var(--cit-steps, 1) + 1) * 100vh);
}

.vx2-cit__sticky {
    /* top/height reserve clearance for the fixed nav — same fix as
       .vx2-projects__sticky and .vx2-ind__sticky. */
    position: sticky;
    top: var(--nav-bar-outer-height, 0px);
    height: calc(100vh - var(--nav-bar-outer-height, 0px));
    overflow: hidden;
    width: 100%;
    /* Same stable-layer fix as .vx2-ind__sticky (see its comment). */
    will-change: transform;
}

/* Full-bleed image stack */
.vx2-cit__images {
    position: absolute;
    inset: 0;
}

.vx2-cit__img-slide {
    position: absolute;
    inset: 0;
    /* Keeps the reveal's slight image zoom/drift (wipeReveal, JS) inside
       the slide, including on mobile where .vx2-cit__images isn't clipped. */
    overflow: hidden;
    /* opacity:0 is the only safe CSS default — position/scale/x are fully
       GSAP-owned now (initCitations' setActive, JS), which drives a
       directional horizontal slide instead of a plain crossfade. Slide 0's
       initial visible state is set the same way, from JS, at setup. */
    opacity: 0;
}

.vx2-cit__img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Left text rail */
.vx2-cit__rail {
    position: relative;
    z-index: 20;
    height: 100%;
    /* Fluid width instead of a fixed side padding — scales continuously
       with the viewport and matches every other standardized section
       (Projects/Work/Blog/Clients), which all use this same formula. */
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* .vx2-cit__sticky's own top offset already reserves nav clearance for
       the whole container — this padding is just the rail's normal spacing. */
    padding: 3rem 0;
}

.vx2-cit__eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vx2-cit__eyebrow-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #fff;
    font-weight: 300;
}

.vx2-cit__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
}

.vx2-cit__counter {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 0.15em;
    font-variant-numeric: tabular-nums;
}

/* Slot-based animated items (tag/title/desc) */
.vx2-cit__tag-rail {
    position: relative;
    overflow: hidden;
    height: 26px;
    margin-bottom: 1rem;
}

.vx2-cit__title-rail {
    position: relative;
    overflow: hidden;
    height: clamp(120px, 18vw, 260px);
    margin-bottom: 1.5rem;
}

.vx2-cit__desc-rail {
    position: relative;
    overflow: hidden;
    height: 80px;
}

/* Title rail: sized to the ACTIVE title by initCitations (no empty space
   under shorter titles), but not clipped — overflow:hidden made the incoming
   title's lines wipe in or not depending on whether the rail was growing or
   shrinking, so each slide's title animated differently. The ID beats the
   per-breakpoint rules. Motion only; the reduced-motion fallback is static. */
@media (prefers-reduced-motion: no-preference) {
    #vx2-citations .vx2-cit__title-rail {
        overflow: visible;
    }

    /* Desc rail: was a fixed height per breakpoint (80 / 64 / 88px) sized for
       the longest possible copy, so a 2-line desc left a big empty gap above
       the Explore button. The desc layers now share one grid cell, so the
       rail is exactly as tall as the longest actual desc (they're all of
       similar length) — no JS sizing, no inline style. */
    #vx2-citations .vx2-cit__desc-rail {
        display: grid;
        height: auto;
    }

    #vx2-citations .vx2-cit__desc {
        position: relative;
        inset: auto;
        grid-area: 1 / 1;
    }

    /* Every layer initCitations slides (tag / title / desc / Explore, plus the
       desc + Explore rails it moves when the title height changes) gets its
       own compositor layer. Otherwise the browser re-rasterised the text on
       every frame of the y-tween and snapped the glyphs to the pixel grid at
       each fractional offset — the shimmer/"bouncing" text. On its own layer
       the text is drawn once and moved as a whole. */
    /* Same reason for the whole sticky panel: while Lenis smooth-scrolls the
       page into the section (the engage snap), the panel travels through
       fractional offsets, and un-composited its text was re-snapped to the
       pixel grid every frame — so it wobbled as the section arrived. As one
       layer, the panel moves as a single image. */
    #vx2-citations .vx2-cit__sticky {
        will-change: transform;
    }

    #vx2-citations .vx2-cit__tag,
    #vx2-citations .vx2-cit__title,
    #vx2-citations .vx2-cit__desc,
    #vx2-citations .vx2-cit__cta,
    #vx2-citations .vx2-cit__desc-rail,
    #vx2-citations .vx2-cit__cta-rail {
        will-change: transform, opacity;
        backface-visibility: hidden;
    }
}

/* "Explore" link per slide (front-page-v2.php). Stacked in one spot like
   the desc layers and crossfaded with them by initCitations (TEXT_LAYERS);
   hidden ones are only opacity:0, so pointer-events (and `inert`, set in
   JS) keep the invisible links from catching the active one's clicks. */
/* Height = space above the link + the link itself (shared viitorx_link,
   16px text). The space is the layer's own `top`, since an absolutely
   positioned layer ignores the rail's padding. */
.vx2-cit__cta-rail {
    position: relative;
    height: calc(clamp(16px, 1.25vw, 24px) + 24px);
}

.vx2-cit__cta {
    position: absolute;
    top: clamp(16px, 1.25vw, 24px);
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.vx2-cit__cta.is-active {
    pointer-events: auto;
}

/* Shared viitorx_link() in white on this dark, image-backed section. */
.vx2-cit__cta-link {
    --link-color: var(--vx2-white);
}


.vx2-cit__tag {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    opacity: 0;
    /* transitions driven by GSAP */
}

.vx2-cit__title {
    position: absolute;
    /* top/left/right, not inset:0 — no `bottom`, deliberately, so this
       isn't height-locked to the rail's current height. That let
       scrollHeight only ever report the rail's own (possibly taller, from
       some other title) height back for a shorter title, since scrollHeight
       is max(clientHeight, contentHeight) — it can detect "needs more" but
       never "needs less". Left/right still stretch it to the rail's full
       width so wrapping (and therefore line count) is unaffected. */
    top: 0;
    left: 0;
    right: 0;
    /* Capped at the 80px (5rem) homepage heading size. */
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 600;
    color: #fff;
    line-height: 0.92;
    letter-spacing: -0.02em;
    opacity: 0;
    /* transitions driven by GSAP */
}

.vx2-cit__desc {
    position: absolute;
    inset: 0;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    line-height: 1.55;
    color: #fff;
    max-width: 440px;
    opacity: 0;
    /* transitions driven by GSAP */
}

/* Step tabs */
.vx2-cit__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    /* Labels top-aligned — a one-line label otherwise sat centred against
       its two-line neighbours. */
    align-items: start;
}

.vx2-cit__tab {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.vx2-cit__tab-line {
    height: 1px;
    background: var(--vx2-tan);
    margin-bottom: 0.75rem;
    transform-origin: left;
    opacity: 0.2;
    transform: scaleX(0.6);
    transition: opacity 0.4s, transform 0.4s;
}

.vx2-cit__tab.is-active .vx2-cit__tab-line {
    opacity: 1;
    transform: scaleX(1);
}

.vx2-cit__tab-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.3;
    transition: color 0.3s;
}

.vx2-cit__tab.is-active .vx2-cit__tab-label {
    color: #fff;
}

/* Scroll nudge */
.vx2-cit__nudge {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0.8;
}

.vx2-cit__nudge span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #fff;
    transform: rotate(90deg);
    transform-origin: center;
}

.vx2-cit__nudge-line {
    width: 1px;
    height: 2.5rem;
    background: #fff;
    animation: vx2NudgePulse 1.6s ease-in-out infinite;
}

@keyframes vx2NudgePulse {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.4;
    }
}

/* Compact vertical rhythm on short laptop viewports — .vx2-cit__sticky is a
   fixed 100vh box with overflow:hidden, and title-rail's vw-based height
   doesn't shrink with viewport height. */
@media (min-width: 1024px) and (max-height: 820px) {
    .vx2-cit__rail {
        padding: 1.5rem 0;
    }

    .vx2-cit__title-rail {
        height: clamp(90px, 12vw, 180px);
        margin-bottom: 1rem;
    }

    .vx2-cit__tag-rail {
        margin-bottom: 0.5rem;
    }

    .vx2-cit__desc-rail {
        height: 64px;
    }

    .vx2-cit__title {
        font-size: clamp(2rem, 3.5vw, 4rem);
    }
}

/* ──────────────────────────────────────────────────────────────
   §4  WORK — "The Worlds We've Built"
────────────────────────────────────────────────────────────── */
.vx2-work {
    background: var(--vx2-white);
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 10;
    margin-top: -100vh;
    /* Same spacing as .vx2-clients: section padding owns the vertical
       rhythm (the header has none) — 160px top/bottom at 1920px, scaling
       down to the nav + 24px floor (--vx2-section-py): the
       Citations → Work snap lands exactly on this section's top. */
    padding: var(--vx2-section-py) 0 var(--vx2-section-py);
}

/* Cursor follower (initWorkCardCursor, JS) — one shared element, moved to
   the raw pointer position via GSAP quickTo. Position/scale/opacity are
   then owned entirely by JS (GSAP inline styles) — but opacity:0 is set
   here in CSS too, as the safe default the element paints with BEFORE
   that deferred JS ever runs (otherwise it briefly flashes fully visible,
   sitting at its untransformed top:0/left:0 position, on every load) —
   and permanently, if JS never runs at all (mobile/reduced-motion, where
   initWorkCardCursor's guard returns before ever touching opacity). GSAP's
   inline style simply overrides this the instant it does run. */
.vx2-work-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--vx2-white);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}

.vx2-work-cursor svg {
    width: 28px;
    height: 28px;
}

.vx2-work__header {
    width: 92%;
    max-width: 1600px;
    /* No padding — .vx2-work sets the section's top/bottom spacing; the
       bottom margin is the 50px heading block → work list gap. */
    margin: 0 auto 50px;
    padding: 0;
    text-align: center;
}

.vx2-work__heading {
    /* Type comes from the shared section-heading rule (§5 Industries). */
    /* Heading → sub gap: 20px on every section (same as Industries). */
    margin-bottom: 20px;
}

.vx2-work__sub {
    max-width: 40rem;
    margin: 0 auto;
}

.vx2-work__list {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 6vw, 100px);
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Individual work item */
.vx2-wi {
    position: relative;
    display: flex;
    flex-direction: column;
    /* Fluid, not a flat 2rem — that stayed the same between the logo,
       title, description, and link at every width, from the narrowest
       phone up to desktop, instead of tightening up on smaller screens
       the way .vx2-work__list's own between-card gap already does. */
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Hide the native cursor wherever the custom follower (.vx2-work-cursor)
   actually takes over. initWorkCardCursor adds this class itself, only
   once it has actually set the follower up (gated on !isMobile &&
   !prefersReducedMotion there) — tying it to a class the JS controls
   directly, instead of a parallel CSS media query trying to guess the
   same condition, so the two can never drift out of sync. The universal
   descendant selector is deliberate: .vx2-wi__img-wrap (and possibly
   other inner elements) sets its own explicit cursor:pointer, which only
   inheriting cursor:none on the card itself wouldn't reliably beat over
   every child — this forces it on every element inside the card too. */
.vx2-wi--cursor-none,
.vx2-wi--cursor-none * {
    cursor: none !important;
}

@media (min-width: 1024px) {
    .vx2-wi {
        flex-direction: row;
        align-items: center;
        padding: 0;
        /* Fluid, not a fixed 136px — that stayed flat at every width from
           1024px up to 1920px+, eating a proportionally huge chunk of a
           laptop-width row and squeezing the text column. Reaches ~136px
           only around the 1920px width it was originally tuned for. */
        gap: clamp(2rem, 7vw, 136px);
    }
}

.vx2-wi.vx2-inview {
    opacity: 0;
    transform: translateY(70px) scale(0.94);
    transition: opacity 1.1s var(--vx2-ease), transform 1.2s var(--vx2-ease);
}

.vx2-wi.vx2-inview.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vx2-wi__text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

@media (min-width: 1024px) {
    .vx2-wi__text {
        flex: 1;
        width: auto;
        padding: 32px 0;
    }

    .vx2-wi--img-left .vx2-wi__text {
        order: 2;
    }

    .vx2-wi--img-right .vx2-wi__text {
        order: 1;
    }
}

.vx2-wi__logo {
    display: block;
    width: auto;
    height: clamp(40px, 3.4vw, 65px);
    max-height: 65px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    margin-bottom: clamp(1rem, 2vw, 2.5rem);
}

.vx2-wi__title {
    /* Was a flat 52px, same at 1024px as at 1920px+ — the mobile override
       below only kicks in at 767px, leaving the whole tablet/laptop range
       stuck at the size tuned for a much wider screen. Reaches ~52px only
       around the 1920px width it was originally designed for. */
    font-size: clamp(1.9rem, 2.7vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--vx2-ink);
    line-height: 1.15;
    margin-bottom: clamp(0.75rem, 1.2vw, 1.25rem);
}

.vx2-wi__desc {
    font-size: clamp(1rem, 1.05vw, 1.25rem);
    color: #484848;
    line-height: 1.7;
    max-width: 540px;
}

/* Read more CTA — now the shared .viitorx-link component (see
   viitorx_link() in functions.php); this is just the layout position plus
   the ancestor-hover hook, since .vx2-read-more is a plain <span> inside
   the whole-card <a> (see front-page-v2.php), not its own link. */
.vx2-read-more {
    margin-top: clamp(1.25rem, 1.5vw, 1.875rem);
}

.vx2-wi:hover .vx2-read-more {
    color: #8B6355;
}

.vx2-wi:hover .vx2-read-more .viitorx-link__underline {
    transform-origin: left;
    transform: scaleX(1);
}

.vx2-wi:hover .vx2-read-more .viitorx-link__arrow {
    opacity: 1;
    transform: translateY(0);
}

/* View More CTA below work list */
.vx2-work__cta {
    display: flex;
    justify-content: center;
    /* No bottom padding — the section's own padding follows. */
    padding: clamp(2.5rem, 4vw, 4rem) 1.5rem 0;
}


/* Image column */
.vx2-wi__img-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Stacked layout (<1024px): image above the text. The DOM order is
       text → image, so the image is pulled to the front here; the
       ≥1024px rules below set each card's own left/right order. */
    order: -1;
}

@media (min-width: 1024px) {
    /* flex-basis is a PROPORTION (58% ≈ the original 921/1600 split), not a
       fixed 921px — that stayed flat at every width from 1024px up to
       1920px+, so on any laptop-width viewport it alone could exceed the
       whole row's available space, crushing .vx2-wi__text (flex:1) down to
       little or nothing. max-width keeps it from exceeding the original
       921px once the row is wide enough to reach it (~1920px). */
    .vx2-wi__img-wrap {
        width: auto;
        max-width: 921px;
        /* grow:0 — only .vx2-wi__text (flex:1) absorbs any extra space
           beyond this basis; letting both grow would keep skewing the
           split further toward the image as the row gets wider. */
        flex: 0 1 58%;
    }

    .vx2-wi--img-left .vx2-wi__img-wrap {
        order: 1;
    }

    .vx2-wi--img-right .vx2-wi__img-wrap {
        order: 2;
    }
}

.vx2-wi__img-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 921 / 518;
    overflow: hidden;
    border-radius: 1rem;
}

.vx2-wi__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--vx2-ease), filter 0.7s;
}

/* Hovering anywhere on the card (not just the image itself) triggers the
   zoom/overlay — the whole card is one clickable unit now. */
.vx2-wi:hover .vx2-wi__img {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.vx2-wi__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 40%, transparent 100%);
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.8s;
}

.vx2-wi:hover .vx2-wi__img-overlay {
    opacity: 0.7;
}

/* ──────────────────────────────────────────────────────────────
   §4b  STATS BAR — key numbers, standalone section above Industries
────────────────────────────────────────────────────────────── */
.vx2-stats-bar {
    background: var(--vx2-white);
    /* No padding: Work's bottom padding is the gap above, Industries'
       top padding the gap below (the card is already 92% wide). */
    padding: 0;
    /* body's own background is near-black (--vx2-ink) — every marketing
       section paints its own opaque bg on top of it, same reasoning as
       .vx2-work/.vx2-ind__sticky elsewhere in this file. A sub-pixel
       rounding gap at this section's edges (fractional device-pixel-ratio
       zoom, common on Linux) can otherwise let that dark body colour bleed
       through as a thin grey hairline above/below. box-shadow repaints 1px
       of white past both edges to guarantee the neighbouring sections'
       backgrounds always overlap, without affecting layout/box size. */
    box-shadow: 0 -1px 0 var(--vx2-white), 0 1px 0 var(--vx2-white);
}

.vx2-stats-bar__card {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    background: var(--vx2-cream);
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
}

.vx2-stats-bar .vx2-stat {
    flex: 1 1 45%;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.25rem;
}

@media (min-width: 640px) {
    .vx2-stats-bar__card {
        flex-wrap: nowrap;
        padding: 50px 75px;
    }

    .vx2-stats-bar .vx2-stat {
        flex: 1;
        padding: 0 2rem;
    }

    .vx2-stats-bar .vx2-stat:first-child {
        padding-left: 0;
    }

    .vx2-stats-bar .vx2-stat:last-child {
        padding-right: 0;
    }

    .vx2-stats-bar .vx2-stat:not(:first-child) {
        border-left: 1px solid rgba(19, 19, 19, 0.1);
    }
}

/* ≤639px: 2×2 grid — a vertical divider between columns and a horizontal
   one between rows read clearer than 4 stacked full-width rows. */
@media (max-width: 639px) {
    .vx2-stats-bar .vx2-stat:nth-child(odd) {
        border-right: 1px solid rgba(19, 19, 19, 0.1);
    }

    .vx2-stats-bar .vx2-stat:nth-child(-n+2) {
        border-bottom: 1px solid rgba(19, 19, 19, 0.1);
    }
}

.vx2-stats-bar .vx2-stat__num {
    font-size: clamp(2.25rem, 5vw, 54px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--vx2-tan);
    line-height: 1;
}

.vx2-stats-bar .vx2-stat__label {
    font-size: clamp(0.95rem, 1.4vw, 20px);
    color: var(--vx2-ink);
    margin-top: 0.6rem;
    letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────────────────────────
   §5  INDUSTRIES — "Where We Belong"
   Desktop (≥1024px): a numbered list — count | name | image | description.
   Hovering a row pops a tilted image card up in its image column; it
   glides between rows and swaps to the hovered row's image
   (initIndustries, JS).
   Tablet/mobile (≤1023px): the stage pins and scrolling steps through
   the rows; only the active row expands to show its image + description.
────────────────────────────────────────────────────────────── */
.vx2-industries {
    position: relative;
    /* Top: the one gap below the stats bar (which has no padding). No
       bottom — Clients' top padding is the gap below (see
       --vx2-section-py). Phones/tablets override the top for the pinned
       layout. */
    padding-top: var(--vx2-section-py);
    background: var(--vx2-white);
}

/* Positioning context for the hover card (.vx2-ind__float). */
.vx2-ind__sticky {
    position: relative;
    background: var(--vx2-white);
}

.vx2-ind__hdr {
    width: 92%;
    max-width: 1600px;
    /* 50px heading block → list gap, same as every other section. */
    margin: 0 auto 50px;
    text-align: center;
}

/* Section headings — every homepage section uses the Industries heading
   style (font, size, weight, spacing, colour). */
.vx2-work__heading,
.vx2-ind__heading,
.vx2-clients__heading,
.vx2-gallery__heading,
.vx2-blog__heading {
    font-family: 'Lenia Sans', Arial, sans-serif;
    /* Same 2.4rem floor as the Work/Clients headings on mobile; capped at
       the 80px (5rem) design size, reached at ~1096px wide. */
    font-size: clamp(2.4rem, 7.3vw, 5rem);
    /* Whole pixels only (same fluid size, snapped) — older browsers
       without round() keep the line above. */
    font-size: round(clamp(2.4rem, 7.3vw, 5rem), 1px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    color: var(--vx2-ink);
}

/* Section sub-headings — every homepage section uses the Industries
   sub style (font, size, weight, colour); spacing stays per section. */
.vx2-work__sub,
.vx2-ind__sub,
.vx2-clients__sub,
.vx2-gallery__sub,
.vx2-blog__sub {
    font-family: 'Archivo', sans-serif;
    /* Same 0.85rem floor as the Clients sub on mobile; 22px design size at ~1420px+. */
    font-size: clamp(0.85rem, 1.55vw, 1.375rem);
    font-size: round(clamp(0.85rem, 1.55vw, 1.375rem), 1px);
    font-weight: 300;
    line-height: 1.55;
    color: var(--vx2-ink);
}

/* Blog sits on a dark band — same style, inverted colour. */
.vx2-blog__heading,
.vx2-blog__sub {
    color: var(--vx2-white);
}

.vx2-ind__sub {
    margin-top: 20px;
}

.vx2-ind__list {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.vx2-ind__row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) clamp(16rem, 25%, 25rem);
    align-items: center;
    column-gap: 32px;
    padding: 44px 0;
    border-bottom: 1px solid var(--vx2-rule);
    /* Title size, shared with .vx2-ind__count to line it up with the title's
       first line. 40px design size at ~1430px+. */
    --ind-name-size: clamp(1.25rem, 2.8vw, 2.5rem);
}

.vx2-ind__count {
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: var(--vx2-mid-gray);
    transition: color 0.3s ease;
    /* Centred on the title's FIRST line, not the whole (possibly wrapped)
       title block — both use line-height 1, so the offset is half the
       difference in size. */
    align-self: start;
    margin-top: calc((var(--ind-name-size) - 15px) / 2);
    margin-top: calc((round(var(--ind-name-size), 1px) - 15px) / 2);
}

.vx2-ind__name {
    margin: 0;
    font-family: 'Lenia Sans', Arial, sans-serif;
    /* --ind-name-size (on .vx2-ind__row): mobile matches the Work item
       titles (.vx2-wi__title: 1.3rem + 4.5vw); 64px design size at ~1440px+. */
    font-size: var(--ind-name-size);
    font-size: round(var(--ind-name-size), 1px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    /* Inactive rows share the description's muted colour. */
    color: #5A5A5A;
    transition: color 0.3s ease;
}

.vx2-ind__desc {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    /* Mobile matches the Work item descriptions (.vx2-wi__desc: 0.9rem); 17px design size at ~1440px+. */
    font-size: clamp(0.9rem, 1.18vw, 1.0625rem);
    font-size: round(clamp(0.9rem, 1.18vw, 1.0625rem), 1px);
    font-weight: 400;
    line-height: 1.55;
    color: #5A5A5A;
    transition: color 0.3s ease;
}

@media (min-width: 1024px) {

    /* Empty column between title and description — the hover card
       (.vx2-ind__float) sits in it. Same width as the card. */
    .vx2-ind__row {
        grid-template-columns: 60px minmax(0, 1fr) clamp(220px, 22vw, 317.24px) clamp(16rem, 25%, 25rem);
    }

    .vx2-ind__desc {
        grid-column: 4;
    }

    /* Hovered row (JS) — accent title/count. */
    .vx2-ind__row.is-hover .vx2-ind__count,
    .vx2-ind__row.is-hover .vx2-ind__name {
        color: var(--vx2-tan);
    }

    .vx2-ind__row.is-hover .vx2-ind__desc {
        color: var(--vx2-ink);
    }
}

/* Hover card — 317×400 at the design size, centred in the hovered row's
   image column and tilted ±4° by the row (JS). Hidden until a row is
   hovered. */
.vx2-ind__float {
    display: none;
}

@media (min-width: 1024px) and (hover: hover) {
    .vx2-ind__float {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3;
        width: clamp(220px, 22vw, 317.24px);
        aspect-ratio: 317.24 / 400;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        will-change: transform, opacity;
    }

    .vx2-ind__float-card {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 24.83px;
        overflow: hidden;
        background: var(--vx2-dark);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    }

    .vx2-ind__float-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .vx2-ind__float-img.is-active {
        opacity: 1;
    }
}

/* ── Tablet / mobile: pinned list, image opens under the active row ──
   Layout only. Pinning (ScrollTrigger) and every movement — rows sliding
   (y), the image + description uncovering (clipPath) — are GSAP-driven in
   initIndustries (JS); there are deliberately no CSS transitions here. */
.vx2-ind__media {
    display: none;
}

@media (min-width: 1024px) {
    /* Description drops straight into the row's third grid column. */
    .vx2-ind__reveal,
    .vx2-ind__reveal-inner {
        display: contents;
    }
}

@media (max-width: 1023px) {

    /* Same section spacing as everywhere else (it already clears the
       fixed nav the stage pins under). Was nav + 1rem (~96px). */
    .vx2-industries {
        padding-top: var(--vx2-section-py);
    }

    /* Pinned by ScrollTrigger just under the header; own background so
       nothing shows through while pinned. */
    .vx2-ind__sticky {
        padding: 1.5rem 0;
        background: var(--vx2-white);
    }

    .vx2-ind__hdr {
        margin-bottom: 2rem;
    }

    .vx2-work__sub,
    .vx2-ind__sub,
    .vx2-clients__sub,
    .vx2-gallery__sub {
        color: #5A5A5A;
    }

    .vx2-ind__row {
        --ind-row-pad: clamp(1rem, 3.5vw, 1.5rem);
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: clamp(1rem, 3vw, 1.5rem);
        padding: var(--ind-row-pad) 0;
    }

    /* Active row = the scroll step (JS). */
    .vx2-ind__row.is-active .vx2-ind__count,
    .vx2-ind__row.is-active .vx2-ind__name {
        color: var(--vx2-tan);
    }

    .vx2-ind__row.is-active .vx2-ind__desc {
        color: var(--vx2-ink);
    }

    /* No-JS fallback: a static list, only the first row open. */
    .vx2-ind__reveal {
        grid-column: 1 / -1;
        display: none;
    }

    .vx2-ind__row.is-active .vx2-ind__reveal {
        display: block;
    }

    .vx2-ind__media {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 32vh;
        max-height: 32svh;
        margin-top: 1.25rem;
        border-radius: 1rem;
        overflow: hidden;
        background: var(--vx2-dark);
    }

    .vx2-ind__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Two lines reserved so a shorter description doesn't leave the open
       row noticeably shorter than the space the list reserves. */
    .vx2-ind__desc {
        min-height: 3.1em;
        margin-top: 1rem;
    }

    /* GSAP mode (JS adds the class): each row's image + description hangs
       below its title and every row stays in place in the layout — GSAP
       moves them with transforms. The list's bottom padding (GSAP) reserves
       one open row; the rules sit on border-top (+ one closing line on the
       list) so they travel with their row. */
    .vx2-industries.is-scroll-steps .vx2-ind__list {
        position: relative;
    }

    .vx2-industries.is-scroll-steps .vx2-ind__list::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        border-bottom: 1px solid var(--vx2-rule);
    }

    .vx2-industries.is-scroll-steps .vx2-ind__row {
        position: relative;
        border-bottom: 0;
        background: var(--vx2-white);
    }

    .vx2-industries.is-scroll-steps .vx2-ind__row:not(:first-child) {
        border-top: 1px solid var(--vx2-rule);
    }

    .vx2-industries.is-scroll-steps .vx2-ind__reveal {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% - var(--ind-row-pad));
    }
}

/* Tablet: 672×380 image (design at 768px), 18px corners. Full row width
   with the design's ratio, capped at its 380px height (no phone 32svh cap).
   Description at the design's 17px. */
@media (min-width: 768px) and (max-width: 1023px) {
    .vx2-ind__media {
        aspect-ratio: 672 / 380;
        max-height: 380px;
        border-radius: 18px;
    }

    .vx2-ind__desc {
        font-size: 17px;
    }
}

/* Phones: count on its own line above the title. */
@media (max-width: 767px) {
    .vx2-ind__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .vx2-ind__count {
        margin-top: 0;
    }

    .vx2-ind__name {
        margin-top: 0.5rem;
    }
}

/* ──────────────────────────────────────────────────────────────
   §6  CLIENTS — "Built with the Best"
────────────────────────────────────────────────────────────── */
.vx2-clients {
    background: var(--vx2-white);
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Section padding owns the vertical rhythm (the header has none):
       160px top/bottom at 1920px, scaling down to the nav + 24px floor (--vx2-section-py).
       Top never drops below the fixed nav + 24px, so the heading stays
       clear of the nav when a scroll snap lands on this section's top. */
    padding: var(--vx2-section-py) 0 var(--vx2-section-py);
}

.vx2-clients__hdr {
    /* Fluid width — same formula as Projects/Work/Blog/Citations' text
       rail, scales continuously instead of jumping at breakpoints. */
    width: 92%;
    max-width: 1600px;
    /* No padding — .vx2-clients sets the section's top/bottom spacing;
       the bottom margin is the 50px heading block → logo grid gap. */
    margin: 0 auto 50px;
    padding: 0;
    text-align: center;
}

.vx2-clients__heading {
    margin-bottom: 20px;
}


.vx2-clients__grid {
    width: 92%;
    max-width: 1600px;
    /* Spacing comes from the header's 50px bottom margin and the
       section's own padding. */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Ruled table: a line above the first row, a line under every row
       (cell border-bottom) and a line between columns (cell border-left,
       see .vx2-logo-card). overflow:hidden clips the first column's left
       line so the table has no outer side edges. */
    border-top: 1px solid var(--vx2-rule);
    overflow: hidden;
}

/* Column counts are 2 → 4 → 8 only: they all divide the 32 logos evenly,
   so every row is full and the ruled table never ends on a short row with
   an empty, unlined slot (3 and 6 columns left 2 logos over). Keep the
   logo count a multiple of 8 when editing them in wp-admin. */
@media (min-width: 640px) {
    .vx2-clients__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 8 columns only once each column fits the 122px logo plus side padding. */
@media (min-width: 1400px) {
    .vx2-clients__grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

.vx2-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Narrow side padding below 1024px so the 4-column tablet cells
       (≈147px at 640px) still fit the full 122px logo. */
    padding: 28px 0.5rem;
    border-bottom: 1px solid var(--vx2-rule);
    /* Column divider on the LEFT, with the cell pulled 1px left (it grows
       1px to still fill its track). The first column's line then always
       sits wholly outside the grid's left edge and is clipped — no
       sub-pixel sliver like the old right-hand shadow left at the right
       edge when fractional column widths didn't reach it. */
    border-left: 1px solid var(--vx2-rule);
    margin-left: -1px;
}

@media (min-width: 768px) {
    .vx2-logo-card {
        padding: 45px 0.5rem;
    }
}

@media (min-width: 1024px) {
    .vx2-logo-card {
        padding: 45px 1rem;
    }
}

.vx2-logo-card img {
    /* Fixed 122×48 logo box. contain, not cover: cover cropped the marks
       (worst on narrow cells, where the box shrinks below 122px wide and
       cover trims the sides). contain always shows the whole logo. */
    display: block;
    width: 122px;
    max-width: 100%;
    height: 48px;
    object-fit: contain;
    object-position: center;
}

/* ──────────────────────────────────────────────────────────────
   §7  GALLERY
────────────────────────────────────────────────────────────── */
.vx2-gallery {
    background: var(--vx2-white);
    position: relative;
    width: 100%;
    overflow: hidden;
    /* No top padding: Clients sits directly above on the same white, and
       its 160px bottom padding is already the gap between the two (both
       paddings stacked to 320px). Bottom matches .vx2-clients — 160px at
       1920px, scaling down to the nav + 24px floor. */
    padding: 0 0 var(--vx2-section-py);
}

.vx2-gallery__hdr {
    /* Same fluid content-container formula as Projects/Work/Blog/Clients.
       No padding — the section sets top/bottom spacing; the bottom margin
       is the 50px heading block → image rows gap. */
    width: 92%;
    max-width: 1600px;
    margin: 0 auto 50px;
    padding: 0;
    text-align: center;
}

.vx2-gallery__heading {
    margin-bottom: 20px;
}

.vx2-gallery__sub {
    max-width: 40rem;
    margin: 0 auto;
}

.vx2-gallery__rows {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Each row clips its track — the track itself is duplicated and looped
   continuously by JS (see initGalleryMarquee), so it always bleeds past
   the row's edges on both sides regardless of image count. */
.vx2-gallery__row {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.vx2-gallery__track {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

.vx2-gallery__cell {
    position: relative;
    flex: 0 0 auto;
    width: 241px;
    height: 300px;
    overflow: hidden;
    border-radius: 24px;
}

.vx2-gallery__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    /* bias the crop upward — most source photos frame the subject in the upper two-thirds */
    pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
   §8  PARTNERS — "Shaping Experiences Together"
────────────────────────────────────────────────────────────── */
.vx2-partners {
    position: relative;
    background: var(--vx2-dark);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.vx2-partners__sticky {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx2-partners__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 7rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* --vx2-section-gap is the page's standard fluid gap token (already
       used for section-to-section padding elsewhere in this file) —
       reused here so the space between the headline/logos/CTA rows scales
       smoothly with viewport width instead of jumping at a breakpoint. */
    gap: var(--vx2-section-gap);
}

.vx2-partners__headlines {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vx2-partners__h {
    font-size: clamp(4rem, 10vw, 6rem);
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--vx2-cream);
    white-space: nowrap;
    user-select: none;
}

.vx2-partners__h--italic {
    margin-top: -0.4rem;
    font-size: clamp(4rem, 10vw, 6rem);
    line-height: 0.8;
    font-style: italic;
    color: var(--vx2-tan);
}

.vx2-partners__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.vx2-partner-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 110px;
    border-radius: 18px;
    /* Subtle light-on-dark card (same convention as this file's other
       dark-surface cards, e.g. lines ~2807/2815) — the original
       var(--vx2-cream) fill only worked because it sat on this section's
       own white background; against dark it would just be a plain white
       box instead of a understated card. */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(164, 119, 100, 0.25);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s var(--vx2-ease), background 0.4s var(--vx2-ease);
}

.vx2-partner-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px) scale(1.02);
}

.vx2-partner-card__hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(164, 119, 100, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.vx2-partner-card:hover .vx2-partner-card__hover {
    opacity: 1;
}

.vx2-partner-card img {
    width: 180px;
    height: auto;
    object-fit: contain;
    max-height: 80px;
}

/* .vx2-partners__cta (the "Join Our Partners Network" link, see
   template-partners.php) is the shared .viitorx-link component
   (marketing-shared.css), scoped-overridden here only. viitorx_link()'s
   own default font-size (20px, fixed) is fine on desktop but never
   shrinks on narrower screens — at mobile widths that forced this text
   onto 2 lines. Since .viitorx-link__underline is one absolutely
   positioned span sized against the whole (now multi-line) label, a
   wrap broke its position/width entirely, not just the line length.
   Fluid instead of fixed keeps it on one line down to phone widths. */
.vx2-partners__cta {
    font-size: clamp(0.8rem, 2.6vw, 1.25rem);
}

/* Everywhere else that component's underline stays hidden until hover.
   This one shows its underline immediately, and on hover the underline
   retracts to the right then redraws from the left, replaying that
   sweep each time instead of a one-shot appear, since it's already
   visible before you ever hover it. transform stays a static scaleX(1)
   — never itself animated — the sweep is driven by clip-path instead:
   animating transform:scaleX() on a 2px line visibly rescaled/softened
   it thinner mid-transition than its static resting thickness (a
   rasterization artifact of scaling a thin element), whereas clip-path
   only changes which part of the same unscaled 2px line is visible, so
   its thickness never changes. */
.vx2-partners__cta .viitorx-link__underline {
    transform: scaleX(1);
    height: 2px !important;
    min-height: 2px;
}

@keyframes vx2-partners-cta-underline-sweep {
    0% { clip-path: inset(0 0 0 0); }
    50% { clip-path: inset(0 0 0 100%); }
    50.01% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

.vx2-partners__cta:hover .viitorx-link__underline,
.vx2-partners__cta:focus-visible .viitorx-link__underline {
    animation: vx2-partners-cta-underline-sweep 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shared text link style (with underline reveal) */
.vx2-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    text-decoration: none;
    font-size: clamp(0.85rem, 1vw, 0.9375rem);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    color: var(--vx2-ink);
    transition: color 0.3s;
}

.vx2-text-link span {
    position: relative;
}

.vx2-text-link__ul {
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 100%;
    background: currentColor;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vx2-text-link:hover .vx2-text-link__ul {
    transform-origin: left;
    transform: scaleX(1);
}

.vx2-text-link svg {
    width: 0.65em;
    height: 0.65em;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
}

.vx2-text-link:hover svg {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────────────────────────────────────
   §9  CTA — "Ideas are invisible."
────────────────────────────────────────────────────────────── */
.vx2-cta {
    position: relative;
    height: 100vh;
    background: #000;
}

.vx2-cta__sticky {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: 3fr auto 0.5fr;
}

.vx2-cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform;
}

.vx2-cta__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.vx2-cta__dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10;
}

.vx2-cta__content {
    grid-row: 2;
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    will-change: transform, opacity;
}

@media (min-width: 768px) {
    .vx2-cta__content {
        padding: 0 3rem;
    }
}

.vx2-cta__line-wrap {
    overflow: hidden;
    margin-bottom: 1rem;
}

.vx2-cta__h1 {
    /* Capped at the 80px (5rem) homepage heading size. */
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: #F5F2EB;
    white-space: nowrap;
}

.vx2-cta__line-wrap:last-of-type {
    margin-bottom: 3rem;
}

.vx2-cta__h2 {
    /* Capped at the 80px (5rem) homepage heading size. */
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: #fff;
    white-space: nowrap;
}

.vx2-cta__btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 36px;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    /* --cta-btn-y is set once by initCTA's entrance code (JS only ever
       touches opacity via GSAP) — CSS keeps sole control of transform so
       :hover/:active below can layer the same lift/scale the shared
       .viitorx-btn component uses, without anything overriding it. */
    transform: translateY(var(--cta-btn-y, 0px));
    transition: transform 0.3s, box-shadow 0.3s;
}

.vx2-cta__btn:hover,
.vx2-cta__btn:focus-visible {
    transform: translateY(calc(var(--cta-btn-y, 0px) - 3px));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.vx2-cta__btn:active {
    transform: translateY(var(--cta-btn-y, 0px)) scale(0.97);
}

.vx2-cta__btn-fill {
    position: absolute;
    inset: 0;
    background: #FFFFFF;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s var(--vx2-ease);
}

.vx2-cta__btn:hover .vx2-cta__btn-fill {
    transform: scaleX(1);
}

.vx2-cta__btn-text {
    position: relative;
    z-index: 10;
    font-family: 'Archivo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: color 0.35s var(--vx2-ease);
}

.vx2-cta__btn:hover .vx2-cta__btn-text {
    color: #131313;
}

.vx2-cta__edge-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10rem;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    z-index: 20;
    pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
   §10  BLOG — "Where Ideas Become Experiences"
────────────────────────────────────────────────────────────── */
.vx2-blog {
    background: #191919;
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Vertical rhythm lives on the section, not the header: the CTA → Blog
       snap (initSectionSnap run C) lands on this section's top, and the
       old header padding (section gap + nav height) left it stopping with
       an oversized gap above the heading. Same --vx2-section-py as the
       white run, which never drops below the fixed nav + 24px. */
    padding: var(--vx2-section-py) 0 var(--vx2-section-py);
}

.vx2-blog__hdr {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    /* Top spacing comes from .vx2-blog's padding; only the header→cards gap here. */
    padding: 0 0 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Main title and desc gap — 20px, same as every other section. */
    gap: 20px;
}

.vx2-blog__heading {
    margin: 0 auto;
}

.vx2-blog__sub {
    margin: 0 auto;
}

.vx2-blog__grid {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    /* Column (and row) gap between cards. */
    gap: 30px;
}

@media (min-width: 768px) {
    .vx2-blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vx2-blog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* "View All" button — reuses the exact same brown/tan glass-pill treatment
   as .vx2-cta__btn (see §CTA above) under its own scoped class names. */
.vx2-blog__footer {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Cards — the shared template-parts/blog-card.php component. These rules
   mirror the blog listing's card (css/blog.css, scoped there to
   body.viitorx-blog-listing-body, which this page doesn't load), so the
   homepage card and its hover match the rest of the theme (image zooms to
   1.05). The "Read More" link is hidden here (show_link => false). */
.vx2-blog {
    --blog-text: #F0F0E5;
    --blog-muted: #B3B3B3;
}

.vx2-blog .blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.vx2-blog .blog-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 514 / 300;
    flex-shrink: 0;
    border-radius: clamp(12px, 2vw, 18px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.vx2-blog .blog-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vx2-blog .blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--blog-muted);
    margin-bottom: 16px;
}

.vx2-blog .blog-card__dot {
    font-size: 6px;
}

.vx2-blog .blog-card__title {
    min-width: 0;
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--blog-text);
    margin: 0 0 8px;
    transition: color 0.3s var(--vx2-ease);
}

/* Title turns the theme brown while the card is hovered or focused. */
.vx2-blog .blog-card:hover .blog-card__title,
.vx2-blog .blog-card:focus-visible .blog-card__title {
    color: var(--vx2-tan);
}

.vx2-blog .blog-card__desc {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: var(--blog-muted);
    margin: 0;
}

@media (hover: hover) and (pointer: fine) {
    .vx2-blog .blog-card:hover .blog-card__img {
        transform: scale(1.05);
    }
}

.vx2-blog .blog-card:focus-visible {
    outline: 2px solid rgba(240, 240, 229, 0.55);
    outline-offset: 6px;
}

@media (max-width: 640px) {
    .vx2-blog .blog-card__img-wrap {
        border-radius: 12px;
    }

    .vx2-blog .blog-card__title {
        font-size: 18px;
        line-height: 1.25;
    }
}

/* ──────────────────────────────────────────────────────────────
   §11  INQUIRY / CONTACT FORM
────────────────────────────────────────────────────────────── */
.vx2-inquiry {
    background: var(--vx2-darker);
    overflow: hidden;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .vx2-inquiry {
        padding: 3rem 2rem;
    }
}

@media (min-width: 1024px) {
    .vx2-inquiry {
        padding: 3rem 3rem;
    }
}

.vx2-inquiry__card {
    position: relative;
    max-width: 93.75rem;
    width: 100%;
    margin: 0 auto;
    background: var(--vx2-cream);
    border-radius: 2.25rem;
    border: 3px solid #000;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
    padding: 2.5rem 1.5rem;
}

@media (min-width: 640px) {
    .vx2-inquiry__card {
        padding: 3.5rem 2rem;
    }
}

@media (min-width: 768px) {
    .vx2-inquiry__card {
        padding: 3.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .vx2-inquiry__card {
        padding: 5rem 3.5rem;
    }
}

@media (min-width: 1280px) {
    .vx2-inquiry__card {
        padding: 5rem 5rem;
    }
}

.vx2-inquiry__form,
.vx2-inquiry__cf7-wrap {
    width: 100%;
}

/* Stacked field: label on top, full-width underline input below */
.vx2-inquiry__field {
    display: block;
}

.vx2-inquiry__field+.vx2-inquiry__field {
    margin-top: 2.5rem;
}

.vx2-inquiry__label {
    display: block;
    font-size: clamp(1.5rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: #111;
    margin-bottom: 0.6rem;
}

.vx2-inquiry__input {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #D7D1C7;
    color: #111;
    font-size: clamp(1.5rem, 4.5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.2;
    padding-bottom: 0.6rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.vx2-inquiry__input::placeholder {
    color: #BDB8AF;
    font-weight: 400;
}

.vx2-inquiry__input:focus {
    border-color: var(--vx2-tan);
    outline: none;
}

.vx2-inquiry__input--accent {
    border-color: var(--vx2-tan);
}

.vx2-inquiry__curious {
    margin-top: 4rem;
}

.vx2-inquiry__curious-head {
    font-size: clamp(1.1rem, 4.5vw, 3rem);
    letter-spacing: -0.04em;
    font-weight: 600;
    color: #111;
    margin-bottom: 1.75rem;
    line-height: 1.2;
}

.vx2-inquiry__capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vx2-capsule {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid #1B1B1B;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    background: transparent;
    color: #111;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.vx2-capsule.is-active {
    background: #151515;
    color: #fff;
    border-color: #151515;
}

/* CF7 radio buttons rendered as capsule pills */
.vx2-inquiry__capsules .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vx2-inquiry__capsules .wpcf7-list-item {
    margin: 0;
}

.vx2-inquiry__capsules .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid #1B1B1B;
    background: transparent;
    color: #111;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.vx2-inquiry__capsules .wpcf7-list-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
}

.vx2-inquiry__capsules .wpcf7-list-item:has(input[type="radio"]:checked) label {
    background: #151515;
    color: #fff;
    border-color: #151515;
}

/* CF7 field control-wrap: must be block so width:100% on the input works */
.vx2-inquiry__cf7-wrap .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* CF7 response output (replaces .vx2-inquiry__status) */
.vx2-inquiry__cf7-wrap .wpcf7-response-output {
    margin-top: 1rem;
    font-size: 0.9rem;
    border: none;
    padding: 0;
    color: var(--vx2-ink);
}

.vx2-inquiry__cf7-wrap .wpcf7-mail-sent-ok {
    color: #1ea45f;
}

.vx2-inquiry__cf7-wrap .wpcf7-validation-errors,
.vx2-inquiry__cf7-wrap .wpcf7-mail-sent-ng,
.vx2-inquiry__cf7-wrap .wpcf7-spam-blocked {
    color: #c0392b;
}

/* CF7 inline validation tip */
.vx2-inquiry__cf7-wrap .wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #c0392b;
    margin-top: 0.25rem;
    display: block;
}

.vx2-inquiry__contact {
    margin-top: 4rem;
}

.vx2-inquiry__submit-row {
    margin-top: 4rem;
}


.vx2-inquiry__status {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.25rem;
    color: var(--vx2-ink);
}

.vx2-inquiry__status.is-success {
    color: #1ea45f;
}

.vx2-inquiry__status.is-error {
    color: #c0392b;
}

.vx2-inquiry__meta-row {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #DDD7CC;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.vx2-inquiry__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--vx2-mid-gray);
}

.vx2-inquiry__meta-item a {
    color: inherit;
    text-decoration: none;
}

.vx2-inquiry__meta-item a:hover {
    color: var(--vx2-ink);
}

/* ──────────────────────────────────────────────────────────────
   §12  FOOTER V2 — 2-column redesign
   Left: partners + quick links + socials
   Right: contact form
────────────────────────────────────────────────────────────── */
.vx2-footer {
    position: relative;
    overflow: hidden;
    background: #191919;
    color: #fff;
}

/* Glow blobs - Hidden as requested for plain #191919 bg */
.vx2-footer__glow-l,
.vx2-footer__glow-c,
.vx2-footer__glow-r {
    display: none;
}

/* ── Inner wrapper ───────────────────────────────────────────── */
.vx2-footer__inner {
    position: relative;
    z-index: 10;
    max-width: 106.25rem;
    margin: 0 auto;
    /* Top: 160px at 1920, scaling down with the viewport. */
    padding: clamp(48px, 8.33vw, 160px) 3.5rem 0;
}

@media (max-width: 1023px) {
    .vx2-footer__inner {
        padding: clamp(48px, 8.33vw, 160px) 2.5rem 0;
    }
}

@media (max-width: 767px) {
    .vx2-footer__inner {
        padding: clamp(48px, 8.33vw, 160px) 1.5rem 0;
    }
}

/* ── Headline + inquiry form ───────────────────────────────────
   Single centred column now — no more 2-col grid / left partner
   logos column (removed entirely, per redesign). */
.vx2-footer__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 52px;
    /* 52px between headline and form, per spec */
}

.vx2-footer__headline {
    font-size: 80px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #F0F0E5;
    max-width: 77rem;
    margin: 0;
}

/* ── Quick Links + socials ─────────────────────────────────────
   220px above (gap from the form), 52px between the two rows,
   70px below (gap before the bottom bar) — all per spec. */
.vx2-footer__links-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
    /* The footer no longer holds the inquiry form (it moved to the shared
       contact section above the footer), so the gap below the logo is the
       same 70px the no-form variant used. */
    margin-top: 70px;
    margin-bottom: 70px;
}



/* ── Nav block (Quick Links) ─────────────────────────────────── */
.vx2-footer__nav-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vx2-footer__nav-label {
    font-size: 1.5rem;
    /* 24px as specified */
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #F0F0E5;
    margin: 0 0 1rem 0;
}

.vx2-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /* 16px between wrapped rows, 40px between links on a row. */
    gap: 16px 40px;
}

.vx2-footer__nav a {
    position: relative;
    font-size: 1.25rem;
    /* 20px as specified */
    font-weight: 400;
    letter-spacing: -0.02em;
    color: rgba(240, 240, 229, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ── Social icons ─────────────────────────────────────────────── */
.vx2-footer__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    /* 18px between icons */
}

.vx2-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    /* 60×60 as specified */
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1F1F1F;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
    text-decoration: none;
}

.vx2-footer__social-link:hover {
    border-color: var(--vx2-tan);
    background: rgba(164, 119, 100, 0.12);
    transform: translateY(-2px);
}

.vx2-footer__social-link img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.vx2-footer__social-link:hover img {
    opacity: 1;
    transform: scale(1.08);
}

/* ── Inquiry form — Name/Company + Email/Contact in a 2x2 grid of
   equal-width columns, submit pill centered below ── no outer box or
   dividers any more; each field's own bottom border is the only
   visible "box" it gets.
   "Footer Inquiry" CF7 form (see wp-admin → Contact), built with its
   own vx2-ftr-form__* classes rather than reusing .vx2-inquiry__*
   (that one belongs to the homepage's own, much larger multi-field
   inquiry section — unrelated to this form). */
.vx2-footer__cf7-wrap {
    /* max-width here too (not just on .vx2-ftr-form__row below) — this
       wrapper resolves its own width:100% against .vx2-footer__hero,
       which is as wide as .vx2-footer__inner (up to ~1700px), so without
       a cap of its own it can end up far wider than the form needs before
       anything else constrains it. Widened from 700px so the now
       equal-width Name/Company/Email/Contact columns have real room
       instead of squeezing four fields into a narrow strip. */
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.vx2-footer__cf7-wrap form {
    width: 100%;
}

.vx2-footer__cf7-wrap .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Wraps both field rows + the submit row, stacked — see the CF7 "Form"
   template (wp-admin → Contact → Footer Inquiry). align-items:stretch
   (not center) so each row's fields can actually stretch to fill equal
   width, rather than shrinking to fit-content. */
.vx2-ftr-form__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 6px;
}

.vx2-ftr-form__row {
    /* Two equal-width columns per row (Name/Company, Email/Contact) —
       flex:1 on each .vx2-ftr-form__field below does the actual
       equal-sizing; this just lays them out side by side with a gap
       instead of the old bordered pill box. */
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: clamp(16px, 4vw, 48px);
}

.vx2-ftr-form__field {
    /* flex:1 1 0 — equal width regardless of each placeholder's own
       length (replaces the old ch-sized, fit-content fields). min-width:0
       lets the field shrink below its content's intrinsic width instead
       of overflowing the row on narrow screens. */
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 14px 0;
}

.vx2-ftr-form__input {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    /* The only visible "box" a field gets now — no outer border, no
       vertical divider between fields, just this underline. */
    border-bottom: 1px solid rgba(240, 240, 229, 0.35);
    padding-bottom: 8px;
    outline: none;
    color: #F0F0E5;
    /* 28px at full width — fluid via clamp() so it scales continuously
       on narrower screens instead of jumping straight from 28px to a
       much smaller fixed mobile size. */
    font-size: clamp(1rem, 2.2vw, 28px);
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.vx2-ftr-form__input:focus {
    border-color: rgba(240, 240, 229, 0.85);
}

.vx2-ftr-form__input::placeholder {
    color: rgba(240, 240, 229, 0.55);
    font-size: clamp(1rem, 2.2vw, 28px);
    text-align: center;
    font-style: italic;
    transition: opacity 0.15s ease;
}

/* Placeholder reads as a caption/label here (italic, sitting on the
   input's own underline), not a typing hint, so it should clear out of
   the way the moment the field is focused — not linger until the first
   character is typed, which is the native <input> default. Restores
   automatically on blur if the field is still empty, since this only
   touches the focused state. */
.vx2-ftr-form__input:focus::placeholder {
    opacity: 0;
}

/* Browser autofill forces its own light background + black text —
   same fix as the homepage inquiry form (see its own comment). */
.vx2-ftr-form__input:-webkit-autofill,
.vx2-ftr-form__input:-webkit-autofill:hover,
.vx2-ftr-form__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #F0F0E5;
    transition: background-color 600000s ease-in-out 0s, color 600000s ease-in-out 0s;
    caret-color: #F0F0E5;
}

/* intl-tel-input wraps the actual <input> in its own .iti div at runtime
   (see spf_cf7.js) — without these, that wrapper stays at its default
   inline-block/intrinsic width instead of filling the field's equal
   column share like every other input here. */
.vx2-ftr-form__field--phone .wpcf7-form-control-wrap,
.vx2-ftr-form__field--phone .iti {
    display: block;
    width: 100%;
}

/* Dark-theme override for the flag/dial-code dropdown button — its
   default intl-tel-input styling is a light box, which reads as a broken
   white patch against this footer's dark background. Country-list panel
   itself is already dark-themed globally (see common.css). */
.vx2-ftr-form__field--phone .iti__selected-flag {
    background: transparent;
}

.vx2-ftr-form__field--phone .iti__selected-flag:hover,
.vx2-ftr-form__field--phone .iti__selected-flag:focus {
    background: rgba(240, 240, 229, 0.08);
}

.vx2-ftr-form__field--phone .iti__arrow {
    border-top-color: rgba(240, 240, 229, 0.55);
}

/* The Smart Phone Field plugin's own live validation (spf_style.css:
   .spf_wrap .valid / .invalid) paints a green check / red cross as a
   background-image inside the input's right-hand padding. Cleared here
   for both states — no icon, and no color change on a merely "valid"
   number either (only genuinely invalid gets feedback, same red as every
   other field's .wpcf7-not-valid border below). Selector specificity
   (3 classes) beats the plugin's own (2 classes) without !important. */
.vx2-ftr-form__field--phone .spf_wrap .valid,
.vx2-ftr-form__field--phone .spf_wrap .invalid {
    background-image: none;
}

.vx2-ftr-form__field--phone .vx2-ftr-form__input.invalid {
    border-color: #f87171;
}

/* Below the 2x2 field grid — holds the Turnstile widget stacked above the
   submit button (see the CF7 "Form" template: [turnstile] comes first,
   [submit] right after it), both centered. Slightly more margin than the
   old single-button version since there's no bordered card any more to
   visually separate this row from the fields above. */
.vx2-ftr-form__submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

/* Cloudflare Turnstile widget — added explicitly via a [turnstile] tag in
   the CF7 "Form" template (see wp-admin → Contact → Footer Inquiry), with
   the theme:dark option so it doesn't render as a stray white box against
   the dark footer. No margin of its own — spacing from the submit button
   comes from .vx2-ftr-form__submit-row's own gap (CF7 renders the widget
   as one div carrying both these classes). */
.vx2-footer__cf7-wrap .wpcf7-turnstile.cf-turnstile {
    display: flex;
    justify-content: center;
}

.vx2-ftr-form__submit {
    flex: none;
    display: flex;
    align-items: center;
    /* Anchor for .wpcf7-spinner below — CF7's JS inserts the spinner as a
       plain sibling right after the button, which would otherwise show up
       as a separate floating dot next to the pill instead of replacing
       the arrow inside it. */
    position: relative;
}

.vx2-ftr-form__btn {
    /* A pill housing a text label now (was icon-only) — wider horizontal
       padding than an icon needs, scaling down with clamp() on narrower
       screens. Height stays fluid (clamp(), not a fixed 56px + a separate
       hard-coded mobile override) so it scales continuously down to phone
       widths instead of jumping straight to one fixed small size. */
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(44px, 8vw, 58px);
    padding: 0 clamp(28px, 5vw, 48px);
    border-radius: 9999px;
    border: none;
    background: #3A3A3A;
    color: #F0F0E5;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s, transform 0.3s;
}

.vx2-ftr-form__btn:hover {
    background: var(--vx2-tan);
    transform: scale(1.05);
}

/* Visual feedback while the SMTP send is in flight (can take several
   seconds). The label hides and the spinner (base animation defined
   in common.css) is repositioned on top of the button in its place,
   instead of showing up as a separate element beside the pill. */
form.submitting .vx2-ftr-form__btn {
    opacity: 0.6;
    pointer-events: none;
}

form.submitting .vx2-ftr-form__btn-text {
    visibility: hidden;
}

.vx2-ftr-form__submit .wpcf7-spinner {
    /* Centered with a negative margin (half of the 20x20 size set in
       common.css), not `transform: translate()` — the spinner's spin
       animation already animates `transform: rotate()`, and a static
       translate() on the same property fights it frame-by-frame, which is
       what made it look like it was sliding instead of rotating in place. */
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    color: #F0F0E5;
}

/* CF7 response / validation messages — this CF7 version (includes/js/index.js)
   drives status via short classes it adds to the <form> itself
   (init/invalid/sent/failed/spam/unaccepted/aborted), not the older
   wpcf7-mail-sent-ok/wpcf7-validation-errors/wpcf7-mail-sent-ng/
   wpcf7-spam-blocked class names those rules used to target directly on
   .wpcf7-response-output — those never matched in this version, which is
   why the summary message was rendering in the default gray below
   instead of red/green. */
.vx2-footer__cf7-wrap .wpcf7-response-output {
    margin: 0.75rem auto 0;
    max-width: 960px;
    font-size: 0.85rem;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.7);
}

.vx2-footer__cf7-wrap form.sent .wpcf7-response-output {
    color: #4ade80;
}

.vx2-footer__cf7-wrap form.invalid .wpcf7-response-output,
.vx2-footer__cf7-wrap form.unaccepted .wpcf7-response-output,
.vx2-footer__cf7-wrap form.spam .wpcf7-response-output,
.vx2-footer__cf7-wrap form.aborted .wpcf7-response-output,
.vx2-footer__cf7-wrap form.failed .wpcf7-response-output {
    color: #f87171;
}

/* Per-field "Please fill out this field." tips (CF7 inserts one inside
   each invalid field's own box) duplicated the single combined summary
   message already shown below the whole form (.wpcf7-response-output,
   styled above) — one message, in one place, is enough. */
.vx2-footer__cf7-wrap .wpcf7-not-valid-tip {
    display: none;
}

/* Field-level error indicator — each field's own underline (the only
   "box" it has, see .vx2-ftr-form__input above) turns red when CF7 flags
   it invalid (adds .wpcf7-not-valid to the <input> on submit), instead
   of a shared row/card border reacting for the whole row. */
.vx2-ftr-form__input.wpcf7-not-valid {
    border-color: #f87171;
}

/* ── Divider ─────────────────────────────────────────────────── */
.vx2-footer__rule {
    display: none;
}

.vx2-footer__bottom {
    /* No top padding — .vx2-footer__links-block's own margin-bottom (70px,
       per spec) is the gap between it and this bar now. */
    padding: 0 0 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.vx2-footer__copy {
    flex: 1 1 0;
    text-align: left;
}

.vx2-footer__powered {
    flex: 1 1 0;
    text-align: center;
}

.vx2-footer__legal {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

@media (max-width: 1023px) {
    .vx2-footer__bottom {
        padding-top: 1.5rem;
    }

    .vx2-footer__copy {
        flex: 0 0 100%;
        margin-bottom: 0.5rem;
    }

    .vx2-footer__powered {
        /* flex:0 0 100% (not auto) + min-width:0 — auto sized this to its
           own unbroken content width (the full "ViitorX, A ViitorCloud
           Technologies Studio" line), which doesn't fit a narrow column
           and instead overflowed straight into the back-to-top button
           next to it instead of wrapping. */
        flex: 0 0 100%;
        min-width: 0;
        text-align: left;
    }

    .vx2-footer__legal {
        flex: 0 0 auto;
    }
}

.vx2-footer__copy,
.vx2-footer__powered,
.vx2-footer__legal {
    font-size: 20px;
    letter-spacing: -0.02em;
    color: #F0F0E5;
}

.vx2-footer__powered a,
.vx2-footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Footer link hover = the header nav's (#sticky-nav .nav-links a:hover in
   marketing-shared-responsive.css): brand brown, no underline, mouse only. */
@media (hover: hover) and (pointer: fine) {
    .vx2-footer__nav a:hover,
    .vx2-footer__powered a:hover,
    .vx2-footer__legal a:hover {
        color: #a47764;
    }
}

.vx2-footer__legal span {
    opacity: 0.3;
}

/* Legal links (Privacy Policy | Terms of Use | Cookie settings) never
   break mid-label; the bar's layout below makes room for them instead. */
.vx2-footer__legal > * {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Desktop bottom bar: the studio line stays exactly centred at every
   width. The two side columns share the leftover space equally (flex
   1 1 0) around the studio line (sized to its text), so they're always
   the same width. To keep the legal links fitting that width, the bar's
   text scales with the bar's own width (container query units, so the
   scrollbar and gutters don't matter): 20px from ~1240px of bar (1536px+
   screens), ~17.8px at 1280px, down to 13px (the mobile size) at 1024px.
   Formula: the row needs about 1096px per 20px of text plus 144px of
   fixed gaps. Under 1024px viewport the tablet/mobile rules take over. */
@media (min-width: 1024px) {
    .vx2-footer__bottom {
        container-type: inline-size;
        flex-wrap: nowrap;
    }

    .vx2-footer__copy,
    .vx2-footer__legal {
        flex: 1 1 0;
    }

    .vx2-footer__powered {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .vx2-footer__copy,
    .vx2-footer__powered,
    .vx2-footer__legal {
        font-size: clamp(13px, calc(1.8cqi - 3px), 20px);
    }
}

/* .back-to-top itself is the shared button from marketing-shared.css (same
   markup/styling as every other marketing page) — everything below is
   scoped to this footer only, layered on top of that shared base:
   - z-index: lifts it above .vx2-footer__watermark's z-index:1 below,
     which it would otherwise sit behind since it has no z-index of its own.
   - bottom: .vx2-footer__inner has no bottom padding of its own (the
     watermark is the last thing in it), so the shared bottom:60px landed
     right at — and visually got clipped by — the true end of the page.
     Raised well clear of that edge, into the watermark's own tall
     (21vw font-size) empty space instead of adding dead space below it.
   - backdrop-filter: frosted-glass fill, same technique as .vx2-cta__btn.
   - transition/hover: lifts and brightens on hover; entrance handled by
     the .vx2-inview class on the markup (existing initInView() IntersectionObserver,
     no JS changes needed) fading/rising it in the first time it scrolls
     into view, matching every other reveal on this page. */
.vx2-footer__inner .back-to-top {
    z-index: 2;
    bottom: 140px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.25s;
}

/* Simple: background tint only — no lift, no border-color change. */
.vx2-footer__inner .back-to-top:hover {
    background: rgba(255, 255, 255, 0.14);
}

.vx2-footer__inner .back-to-top.vx2-inview {
    opacity: 0;
    transform: translateY(30px);
}

.vx2-footer__inner .back-to-top.vx2-inview.is-revealed {
    opacity: 1;
    transform: translateY(0);
    /* Being the most specific rule, this REPLACES the base rule's transition
       entirely once .is-revealed is added (permanently) — so it has to
       restate the base rule's background too, or hover stops smoothly
       transitioning it after the entrance has played once. transform's
       own transition only matters for the entrance rise itself now (hover
       no longer touches transform). */
    transition: opacity 1s var(--vx2-ease), transform 1s var(--vx2-ease), background 0.25s;
}

/* ── Watermark ───────────────────────────────────────────────── */
.vx2-footer__watermark {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 21vw;
    font-weight: 700;
    letter-spacing: 0;
    background: linear-gradient(180deg, rgba(240, 240, 229, 0.04) 18.84%, rgba(240, 240, 229, 0) 69.29%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    user-select: none;
    pointer-events: none;
    line-height: 0.75;
    margin-top: 1.5rem;
    margin-bottom: -3.5vw;
    /* Reveal a bit more text vertically */
    overflow: hidden;
    width: 100%;
}

@media (min-width: 1800px) {
    .vx2-footer__watermark {
        font-size: 378px;
        margin-bottom: -63px;
    }
}


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

/* ── Use svh so mobile browser chrome never changes layout measurements.
      svh = small viewport height = chrome-visible height = constant.
      This prevents ScrollTrigger position jumps when chrome shows/hides. ── */
@supports (height: 1svh) {

    /* Sticky containers */
    .vx2-hero__sticky {
        min-height: 100svh;
    }

    /* Repeats the nav-offset from the base rules — this block's cascade
       position would otherwise override it back to a flat height. */
    .vx2-projects__sticky {
        min-height: calc(100svh - var(--nav-bar-outer-height, 0px));
    }

    .vx2-cit__sticky {
        height: calc(100svh - var(--nav-bar-outer-height, 0px));
    }

    .vx2-cta__sticky {
        height: 100svh;
    }

    /* Section scroll distances on mobile — lock to svh so ScrollTrigger
       doesn't recalculate when the browser chrome shows/hides mid-scroll. */
    @media (max-width: 767px) {

        /* Hero/Projects/Citations: were 240svh/320svh/400svh (continuous
           scroll-scrub); now single-viewport blocks, not scroll distance —
           see front-page-v2.css's .vx2-hero/.vx2-projects/.vx2-citations
           base rules. Hero and Citations still drive their own slides via
           createSlideDeck's wheel/touch-lock (front-page-v2-animations.js);
           Projects instead auto-advances its slides on a timer and isn't
           scroll-locked at all — see initProjects in the same file. */
        .vx2-hero {
            min-height: 100svh;
        }

        .vx2-projects {
            min-height: 100svh;
        }

        .vx2-citations {
            height: 200vh;
        }

        /* Locks the visible box to svh on mobile like everything else —
           CTA is a single-viewport locked deck (see initCTA), not a
           continuous-scroll pinned section, so no extra height needed. */
        .vx2-cta {
            height: 100svh;
        }
    }

}

/* ═══════════════════════════════════════════════════════════
   MOBILE  ≤ 767px
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    .vx2-ovr__logo {
        width: 200px;
    }

    /* ── §2 PROJECTS ("We bring ideas to life") ─────────────
       Stage is positioned absolute inside the sticky so it
       always fills 100svh regardless of flex/% chain issues.  */
    .vx2-projects {
        height: 100svh;
    }

    /* Sticky pins at top:0, putting its content behind the fixed nav (~80px)
       and making .vx2-pb's padding-top: 22svh (below) measure "22% down"
       against the full viewport instead of the space actually visible below
       the nav — same root cause as the industries section's nav-overlap bug,
       fixed the same way there. */
    .vx2-projects__sticky {
        top: var(--nav-bar-outer-height);
        height: calc(100svh - var(--nav-bar-outer-height));
    }

    /* Stage fills the sticky directly — bypasses inner's height chain */
    .vx2-projects__stage {
        position: absolute;
        inset: 0;
        height: auto;
        /* overrides desktop height: 600px */
    }

    /* Blocks: left-aligned text, vertically centered in the stage */
    .vx2-pb {
        padding: 0 1.5rem;
        justify-content: center;
    }

    .vx2-pb__phi-body {
        font-size: clamp(2.8rem, 15vw, 5.5rem);
    }

    /* Eyebrow ("Why.", "How.", "What.") — clearly readable above the body */
    .vx2-pb__phi-eyebrow {
        font-size: clamp(1.6rem, 7vw, 2.8rem);
        margin-bottom: 1rem;
    }

    /* ── §3 CITATIONS ("What We Build") ─────────────────────
       Stacked card: image across the top ~half of the sticky,
       fading into the section's black, with the copy below it
       and a row of short step lines bottom-right (in place of
       the labelled tabs). The active line's colour is tweened
       by initCitations (gsap.matchMedia, ≤767px only). */
    .vx2-citations {
        height: 200vh;
    }

    /* Image: top half of the screen (50svh, from the top of the panel
       under the nav). The slide wipe/parallax (wipeReveal, JS) runs
       inside this box exactly as it does full-bleed on larger screens. */
    .vx2-cit__images {
        bottom: auto;
        height: 50svh;
    }

    /* Copy stacks top-down from 20px under the image; the step lines
       sit at the bottom of the panel (margin-top:auto on .vx2-cit__tabs).
       Spacing between items is set on each item below, with explicit
       line-heights so each gap is measured box to box. */
    .vx2-cit__rail {
        padding: calc(50svh + 20px) 0 1.25rem;
        justify-content: flex-start;
    }

    .vx2-cit__eyebrow-text {
        font-size: 12px;
        line-height: 1.2;
        color: rgba(255, 255, 255, 0.75);
    }

    .vx2-cit__main {
        flex: 0 0 auto;
        margin-top: 30px;
    }

    .vx2-cit__counter {
        margin-bottom: 24px;
        font-size: 14px;
        line-height: 1.2;
    }

    /* Fixed-width number box. Lenia Sans has no tabular figures (the
       base rule's tabular-nums has no effect), and its "1" is much
       narrower than the other digits, so on 01 ↔ 02 the visible " / 04"
       slid ~4.4px sideways mid-swap — the jump on slide change. 1.65em
       (23.1px at 14px) fits the widest number ("03", 22.75px). */
    #vx2-cit-cur {
        display: inline-block;
        min-width: 1.65em;
    }

    /* Rail = the pill's own height (14px line + 4px vertical padding
       + 1px border = 24px), so the title gap below is exact. */
    .vx2-cit__tag-rail {
        height: 24px;
        margin-bottom: 16px;
    }

    /* Fixed 24px box (border included): browsers round the 1px border to
       device pixels (0.8px on some screens), which made the pill 23.6px
       and the title gap 16.4px instead of 16px. */
    .vx2-cit__tag {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        height: 24px;
        font-size: 11px;
        line-height: 14px;
        padding: 0 12px;
    }

    /* Height is set by initCitations to the tallest title's (this is the
       no-JS / first-paint fallback for one line). */
    .vx2-cit__title-rail {
        height: 26px;
        margin-bottom: 10px;
    }

    /* Whole-pixel line-height: the rail is sized from scrollHeight (an
       integer), so a fractional line box would leave the desc gap off. */
    .vx2-cit__title {
        font-size: 22px;
        font-weight: 500;
        line-height: 26px;
        letter-spacing: -0.01em;
    }

    .vx2-cit__desc-rail {
        height: 42px;
    }

    .vx2-cit__desc {
        font-size: 14px;
        line-height: 21px;
        color: rgba(255, 255, 255, 0.8);
    }

    /* Link 20px under the desc: the layer's top is the gap, the rail
       is gap + link height. */
    .vx2-cit__cta-rail {
        height: 44px;
    }

    /* flex: the link box starts at the layer's top edge (as an inline
       element it sat a few px lower on the layer's line box). */
    .vx2-cit__cta {
        top: 20px;
        display: flex;
    }

    .vx2-cit__cta-link {
        --link-size: 16px;
    }

    /* Step lines, bottom-right. Labels are dropped visually — each
       button already carries an aria-label ("Jump to …"). */
    .vx2-cit__tabs {
        display: flex;
        justify-content: flex-end;
        gap: 6px;
        max-width: none;
        margin-top: auto;
    }

    /* Padding keeps the tap target bigger than the 2px line */
    .vx2-cit__tab {
        padding: 12px 0;
    }

    /* Colour change is owned by GSAP here (initCitations) — no CSS
       transition, so the two never fight over the same property. The
       .is-active rule is the no-JS / reduced-motion state. */
    .vx2-cit__tab-line {
        width: 26px;
        height: 2px;
        margin-bottom: 0;
        background: rgba(255, 255, 255, 0.25);
        opacity: 1;
        transform: none;
        transition: none;
    }

    .vx2-cit__tab.is-active .vx2-cit__tab-line {
        background: var(--vx2-tan);
        transform: none;
    }

    .vx2-cit__tab-label {
        display: none;
    }

    .vx2-cit__nudge {
        display: none;
    }

    /* Bottom fade into the section's #0D0D0D, done as a mask on the
       whole band rather than a gradient overlay per slide. With an
       overlay, the image and overlay shared a fractional bottom edge
       and the image peeked out under it as a 1px line while slides
       moved. With a mask, the band itself fades to transparent, so
       there's no edge left to show. overflow clips the incoming
       slide's curtain travel (curtainReveal, JS) to the band, and
       the slides/images get their own layers for that transform. */
    @media (prefers-reduced-motion: no-preference) {
        .vx2-cit__images {
            overflow: hidden;
            -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
        }

        .vx2-cit__img-slide,
        .vx2-cit__img-slide img {
            will-change: transform;
            backface-visibility: hidden;
        }

        /* Each slide overhangs the band by 12px top and bottom (clipped by
           the band's overflow). The curtain eases to a stop exactly at its
           end position, so with the slide flush to the band the last 1–2px
           of the previous image lingered along the band's edge and then
           vanished — a bright line that popped away at the end of every
           slide change. With the overhang the incoming slide's leading edge
           is already outside the band for the slow final stretch, so the
           old image's strip shrinks to nothing while the edge is still
           moving. Same curtain, same timing; the picture is just framed
           24px taller (object-fit: cover). */
        .vx2-cit__img-slide {
            inset: -12px 0;
        }
    }

    /* ── §4 WORK ─────────────────────────────────────────── */
    .vx2-wi__title {
        font-size: clamp(1.3rem, 4.5vw, 1.9rem);
    }

    .vx2-wi__desc {
        font-size: 0.9rem;
    }

    /* ── §6 CLIENTS ──────────────────────────────────────── */
    /* Header/grid spacing comes from the fluid base rules (section gap +
       clamp()), so no fixed mobile padding overrides here. */
    .vx2-clients__sub {
        white-space: normal;
    }

    /* ── §7 GALLERY ─────────────────────────────────────────
       Marquee keeps auto-playing on mobile too, just at a smaller cell
       size — the row stays clipped (overflow:hidden), same as desktop. */
    .vx2-gallery__rows {
        gap: 16px;
    }

    .vx2-gallery__track {
        gap: 16px;
    }

    .vx2-gallery__cell {
        width: clamp(140px, 45vw, 200px);
        height: auto;
        aspect-ratio: 241 / 300;
    }

    /* ── §8 PARTNERS ("Shaping Experiences Together") ────── */
    /* Was min-height:0 — collapsed the section down to its own content
       height on phones instead of filling the screen, so the base rule's
       align-items/justify-content centering (still active here, only
       min-height was reset) had no extra space to actually center
       within — content just sat at the top instead. 100svh (small
       viewport height — excludes the mobile browser's address-bar
       chrome, unlike 100vh) keeps it filling and centered on phones too. */
    .vx2-partners {
        min-height: 100svh;
    }

    .vx2-partners__content {
        padding: 4rem 1.5rem;
    }

    .vx2-partners__h {
        font-size: clamp(2rem, 8.5vw, 3.8rem);
        white-space: normal;
        word-break: break-word;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .vx2-partners__h--italic {
        font-size: clamp(1.8rem, 7.5vw, 3.4rem);
        margin-top: 0.15rem;
        line-height: 1.0;
    }

    .vx2-partner-card {
        width: 160px;
        height: 80px;
    }

    /* Card shrinks at this breakpoint but the logo img itself wasn't
       scaled down with it (only the ≤480px block below did), so the
       180px-wide desktop img was overflowing the 160px card with no
       padding around it. Same ~0.75 width / ~0.73 height ratio as the
       desktop (180/240, 80/110) and ≤480px (105/140, 50/70) rules. */
    .vx2-partner-card img {
        width: 120px;
        max-height: 58px;
    }

    /* ── §9 CTA ──────────────────────────────────────────── */
    .vx2-cta {
        height: 100svh;
    }

    .vx2-cta__content {
        padding: 0 1.5rem;
    }

    .vx2-cta__h1 {
        font-size: clamp(1.8rem, 6.5vw, 3.5rem);
    }

    .vx2-cta__h2 {
        font-size: clamp(2rem, 7.5vw, 4.5rem);
    }

    /* ── §10 BLOG ────────────────────────────────────────── */
    .vx2-blog__grid {
        padding-bottom: 2.5rem;
        gap: 30px;
    }

    .vx2-blog__view-all {
        padding: 1rem 2rem;
    }

    /* ── §11 INQUIRY ─────────────────────────────────────── */
    .vx2-inquiry {
        padding: 1rem;
    }

    .vx2-inquiry__card {
        border-radius: 1.5rem;
        padding: 2rem 1.25rem;
    }

    .vx2-inquiry__label,
    .vx2-inquiry__input {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .vx2-inquiry__field+.vx2-inquiry__field {
        margin-top: 40px;
    }

    .vx2-inquiry__contact {
        margin-top: 2rem;
    }

    .vx2-inquiry__curious {
        margin-top: 2rem;
    }

    .vx2-inquiry__curious-head {
        font-size: clamp(1rem, 4vw, 1.8rem);
    }

    .vx2-inquiry__submit-row {
        margin-top: 2rem;
    }

    .vx2-inquiry__meta-row {
        margin-top: 2rem;
    }

    /* ── §12 FOOTER ──────────────────────────────────────── */
    .vx2-footer__headline {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
    }

    .vx2-footer__hero {
        gap: 28px;
    }

    /* Desktop's 70px/52px/70px are section-scale gaps sized for a full
       viewport width — far too much on a phone screen. */
    .vx2-footer__links-block {
        gap: 28px;
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }

    /* Form: smaller, fixed sizes on phones instead of relying purely on
       the desktop-oriented vw-based clamp()s — those still cap out too
       large for how little width a phone actually has, and there's no
       room here to shrink further gracefully like on tablet/desktop
       widths. (Button height/padding and the arrow svg's width stay on
       the base rule's clamp() — that already scales them down fluidly,
       no separate fixed override needed here any more.)

       The 2x2 grid (Name/Company, Email/Contact) also collapses into a
       single stacked column here — two fields squeezed side by side on a
       ~360px screen left almost no room per field. .vx2-ftr-form__grid's
       own gap is bumped to match .vx2-ftr-form__row's, so all four
       stacked fields read as one even column instead of two tight pairs
       with a bigger gap between the pairs than within them. */
    .vx2-ftr-form__grid {
        gap: 20px;
    }

    .vx2-ftr-form__row {
        flex-direction: column;
        gap: 20px;
    }

    .vx2-ftr-form__field {
        flex: none;
        padding: 10px 0;
    }

    .vx2-ftr-form__input,
    .vx2-ftr-form__input::placeholder {
        font-size: 13px;
    }

    .vx2-ftr-form__submit-row {
        margin-top: 20px;
    }

    .vx2-footer__nav {
        gap: 12px 24px;
    }

    .vx2-footer__nav a {
        font-size: 0.875rem;
    }

    .vx2-footer__socials {
        gap: 14px;
    }

    .vx2-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    /* 20px (the desktop size) had no mobile override at all — on a
       stacked single-column layout that's what let the long "ViitorX, A
       ViitorCloud Technologies Studio" line run wide enough to overflow
       into the back-to-top button. */
    .vx2-footer__copy,
    .vx2-footer__powered,
    .vx2-footer__legal {
        font-size: 13px;
    }

    .vx2-footer__legal {
        justify-content: flex-start;
    }

    /* Watermark scales fluidly with vw, no mobile override needed */
}

/* ═══════════════════════════════════════════════════════════
   TABLET  768px – 1023px
═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {

    /* §2 Projects — default clamp hits ~120px at 768px; scale down so
       headlines fit within the sticky without overflowing the stage */
    .vx2-pb__phi-body {
        font-size: clamp(2rem, 6.5vw, 4.5rem);
    }

    /* 26px at 768px → 30px at 1023px, meeting the desktop size (30px) at
       1024px with no jump, and staying larger than the tan description
       line under the statement (.vx2-pb__phi-author: 23–26px here). Was
       clamp(1.1rem, 2.5vw, 1.6rem): 19–26px, smaller than that line. */
    .vx2-pb__phi-eyebrow {
        font-size: clamp(1.625rem, 0.872rem + 1.569vw, 1.875rem);
        font-size: round(clamp(1.625rem, 0.872rem + 1.569vw, 1.875rem), 1px);
    }

    /* Industries no longer needs tablet-specific column tightening — it now
       uses the same stacked mobile layout as ≤767px (see the dedicated
       max-width: 1023px block above), which doesn't have side-by-side
       columns at all. */

    /* Partners: allow wrapping — white-space:nowrap with 7vw font at 768px
       can still overflow on narrow tablet screens */
    .vx2-partners__h {
        font-size: clamp(3rem, 7vw, 6rem);
        white-space: normal;
        word-break: break-word;
    }

    /* Citations title rail */
    .vx2-cit__title-rail {
        height: clamp(130px, 14vw, 200px);
    }

    /* Four tabs fill the rail at this width — the floating scroll nudge
       is lifted above the tab row (rail bottom padding + tab height + a
       little air, incl. the line's 10px pulse) instead of sitting on the
       last label. */
    .vx2-cit__nudge {
        bottom: 8rem;
    }

    /* CTA: slight reduction */
    .vx2-cta__h1 {
        font-size: clamp(2.8rem, 6vw, 6rem);
    }

    .vx2-cta__h2 {
        font-size: clamp(3rem, 7vw, 7rem);
    }
}

/* ═══════════════════════════════════════════════════════════
   SMALL MOBILE  ≤ 480px  — tightest screens
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .vx2-pb__phi-body {
        font-size: clamp(2.6rem, 15vw, 4.5rem);
    }

    .vx2-pb__phi-eyebrow {
        font-size: clamp(1.4rem, 6.5vw, 2.2rem);
    }

    /* Citations: sized in the ≤767px block (stacked card layout). */

    .vx2-cta__h1 {
        font-size: clamp(1.6rem, 6vw, 2.8rem);
    }

    .vx2-cta__h2 {
        font-size: clamp(1.8rem, 7vw, 3.5rem);
    }

    .vx2-partner-card {
        width: 140px;
        height: 70px;
    }

    .vx2-partner-card img {
        width: 105px;
        max-height: 50px;
    }

    .vx2-partners__h {
        font-size: clamp(1.8rem, 8vw, 3.2rem);
    }
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP ≥ 1024px — form + sub-text enhancements
═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {}

/* ═══════════════════════════════════════════════════════════
   WIDE ≥ 1200px — restore intentional single-line subtitle
═══════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {

    /* Safe to keep on one line only at widths where it fits */
    .vx2-clients__sub {
        white-space: nowrap;
    }
}

/* =============================================================
   PROGRESS BAR
   Fixed 3px bar at the top edge — fills as user scrolls.
   Uses JS to set --vx2-scroll-progress (0–1) which drives width.
============================================================= */
.vx2-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9800;
    pointer-events: none;
    background: transparent;
}

.vx2-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--vx2-tan) 0%, #c8927e 50%, var(--vx2-tan) 100%);
    background-size: 200% 100%;
    will-change: width;
    transition: width 0.05s linear;
}

/* =============================================================
   REDUCED MOTION — Projects + Citations slide-deck fallback
   The JS (initProjects/initCitations in front-page-v2-animations.js)
   skips creating the wheel/touch-lock slide deck entirely for this
   media query and returns early — no scroll-lock, no tweening. All
   8 slides render here as a plain, always-visible stacked list
   instead, reachable with normal page scrolling. Mirrors the same
   reduced-motion fallback pattern already used in
   css/archive-case-study.css.
============================================================= */
@media (prefers-reduced-motion: reduce) {
    .vx2-hero {
        height: auto;
    }

    .vx2-hero__sticky {
        position: relative;
        /* not static — .vx2-hero__video is absolutely positioned against it */
        height: auto;
        min-height: 100vh;
        overflow: visible;
        display: block;
        padding: 4rem 0;
    }

    .vx2-projects,
    .vx2-citations {
        height: auto;
    }

    .vx2-projects__sticky,
    .vx2-cit__sticky {
        position: static;
        height: auto;
        overflow: visible;
    }

    .vx2-projects__stage {
        position: static;
        height: auto;
    }

    .vx2-pb {
        position: static;
        padding: 3rem 1.5rem;
        opacity: 1 !important;
        transform: none !important;
    }

    /* No autoplay timer runs under reduced motion (initProjects returns
       early — see front-page-v2-animations.js), so there's nothing for the
       ring to represent and no hover handler ever gets attached to pause. */
    .vx2-pb-indicator {
        display: none;
    }

    .vx2-word {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .vx2-cit__images {
        position: static;
        height: 50vh;
    }

    .vx2-cit__img-slide {
        position: static;
        display: block;
        height: 50vh;
        margin-bottom: 1rem;
        opacity: 1 !important;
        transform: none !important;
    }

    .vx2-cit__rail {
        position: static;
        height: auto;
    }

    .vx2-cit__tag-rail,
    .vx2-cit__title-rail,
    .vx2-cit__desc-rail,
    .vx2-cit__cta-rail {
        height: auto;
        overflow: visible;
    }

    .vx2-cit__cta {
        position: static;
        margin-bottom: 1rem;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
    }

    .vx2-cit__tag,
    .vx2-cit__title,
    .vx2-cit__desc {
        position: static;
        margin-bottom: 1rem;
        opacity: 1 !important;
        transform: none !important;
    }

    .vx2-cit__nudge {
        display: none;
    }

    /* Work cards (.vx2-wi) — just show them plainly, no entrance transition. */
    .vx2-wi.vx2-inview {
        opacity: 1 !important;
        transform: none !important;
    }
}
