/* =============================================================
   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);
}

/* ── 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;
}
.vx2-page ::selection {
    background: #fff;
    color: #000;
}

/* ── 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);
}

/* ──────────────────────────────────────────────────────────────
   §1  HERO SCROLL SEQUENCE
────────────────────────────────────────────────────────────── */
.vx2-hero {
    position: relative;
    height: 300vh;
    background: var(--vx2-dark);
}
.vx2-hero__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Show a dark frame while the first canvas frame loads */
    background: var(--vx2-dark);
}
#vx2-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

/* Overlay container */
.vx2-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    padding: 0 1.5rem;
}
@media (min-width: 768px) {
    .vx2-overlay { padding: 0 6rem; }
}

/* Individual overlay panels */
.vx2-ovr {
    position: absolute;
    inset: 0;
    display: flex;
}
/* Pre-hide panels 2 & 3 — GSAP reveals them on scroll; prevents
   all three showing simultaneously before deferred scripts run. */
.vx2-ovr--s2,
.vx2-ovr--s3 {
    display: none;
}
.vx2-ovr--s1 {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
}
.vx2-ovr__logo {
    width: 160px;
    height: auto;
}
@media (min-width: 768px) {
    .vx2-ovr__logo { width: 208px; }
}
.vx2-ovr__scroll {
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--vx2-muted);
    text-transform: uppercase;
    font-weight: 300;
}
.vx2-ovr--s2 {
    align-items: center;
    justify-content: flex-start;
    padding-left: clamp(1.5rem, 8vw, 9rem);
}
.vx2-ovr--s3 {
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    padding-right: clamp(1.5rem, 8vw, 9rem);
}
.vx2-ovr__heading {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: clamp(260px, 38vw, 520px);
}
.vx2-ovr__heading--right {
    text-align: right;
}

/* ──────────────────────────────────────────────────────────────
   §2  PROJECTS — "We bring ideas to life"
────────────────────────────────────────────────────────────── */
.vx2-projects {
    position: relative;
    height: 600vh;
    background: var(--vx2-white);
}
.vx2-projects__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.vx2-projects__inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}
@media (min-width: 768px) {
    .vx2-projects__inner { padding: 0 3.5rem; }
}
.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;
}
.vx2-pb__headline {
    line-height: 0.88;
    letter-spacing: -0.06em;
}
.vx2-pb__line {
    /* Reference: 72px mobile → 120px @768px → 160px @1024px */
    font-size: clamp(4.5rem, 15.625vw, 10rem);
    font-weight: 600;
    color: var(--vx2-ink);
    line-height: 0.88;
    letter-spacing: -0.06em;
    /* No overflow:hidden here — block-0 words have no Y-animation and
       hiding it clips descenders (g, y) on the tight 0.88 line-height */
}
/* Individual word spans injected by JS */
.vx2-word {
    display: inline-block;
    margin-right: 0.25em;
    will-change: transform, opacity, filter;
}
.vx2-pb__para {
    margin-top: 2.5rem;
    /* Reference: text-lg (18px) → text-2xl (24px) @768px */
    font-size: clamp(1.125rem, 3.125vw, 1.5rem);
    line-height: 1.45;
    color: var(--vx2-tan);
    max-width: 56rem;
    opacity: 0;
    will-change: opacity;
}
.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;
}

/* ──────────────────────────────────────────────────────────────
   §3  CITATIONS — "What We Build"
────────────────────────────────────────────────────────────── */
.vx2-citations {
    position: relative;
    height: 500vh;
    background: #0D0D0D;
}
.vx2-cit__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    width: 100%;
}

/* Full-bleed image stack */
.vx2-cit__images {
    position: absolute;
    inset: 0;
}
.vx2-cit__img-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.1s var(--vx2-ease), transform 1.1s var(--vx2-ease);
}
.vx2-cit__img-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.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%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 1.5rem 3rem;
}
@media (min-width: 768px) { .vx2-cit__rail { padding: 3rem 4rem; } }
@media (min-width: 1024px) { .vx2-cit__rail { padding: 3rem 6rem; } }

.vx2-cit__eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.vx2-cit__eyebrow-line {
    display: block;
    width: 1.5rem;
    height: 1px;
    background: var(--vx2-tan);
}
.vx2-cit__eyebrow-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--vx2-tan);
    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: var(--vx2-tan);
    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; }

.vx2-cit__tag {
    position: absolute;
    top: 0; left: 0;
    display: inline-block;
    border: 1px solid rgba(164,119,100,0.4);
    color: var(--vx2-tan);
    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;
    inset: 0;
    font-size: clamp(2.6rem, 5vw, 6rem);
    font-weight: 600;
    color: #fff;
    line-height: 0.92;
    letter-spacing: -0.05em;
    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: rgba(255,255,255,0.6);
    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;
}
.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; }
}

/* ──────────────────────────────────────────────────────────────
   §4  WORK — "The Worlds We've Built"
────────────────────────────────────────────────────────────── */
.vx2-work {
    background: var(--vx2-white);
    position: relative;
    width: 100%;
    overflow: hidden;
}
.vx2-work__header {
    max-width: 80rem;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
    text-align: center;
}
@media (min-width: 768px) {
    .vx2-work__header { padding: 7rem 3rem 5rem; }
}
.vx2-work__heading {
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--vx2-ink);
    line-height: 1;
    margin-bottom: 1.5rem;
}
.vx2-work__sub {
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--vx2-tan);
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.7;
}

.vx2-work__list {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 1024px) {
    .vx2-work__list { padding: 0; }
}

/* Individual work item */
.vx2-wi {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4rem 0;
}
@media (min-width: 1024px) {
    .vx2-wi {
        flex-direction: row;
        align-items: stretch;
        padding: 2rem 0;
    }
}

.vx2-wi__text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 2rem;
}
@media (min-width: 1024px) {
    .vx2-wi__text { width: 40%; padding: 0 3rem; padding-bottom: 0; }
    .vx2-wi--img-left  .vx2-wi__text { order: 2; }
    .vx2-wi--img-right .vx2-wi__text { order: 1; }
}

.vx2-wi__title {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--vx2-ink);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.vx2-wi__desc {
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--vx2-gray);
    line-height: 1.7;
    max-width: 380px;
}

/* Read more CTA */
.vx2-read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    text-decoration: none;
    color: var(--vx2-tan);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    gap: 0.3em;
    transition: color 0.3s;
}
.vx2-read-more:hover { color: #8B6355; }
.vx2-read-more span  { position: relative; }
.vx2-read-more__underline {
    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-read-more:hover .vx2-read-more__underline {
    transform-origin: left;
    transform: scaleX(1);
}
.vx2-read-more__arrow {
    width: 0.65em;
    height: 0.65em;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
}
.vx2-read-more:hover .vx2-read-more__arrow {
    opacity: 1;
    transform: translateY(0);
}

/* View More CTA below work list */
.vx2-work__cta {
    display: flex;
    justify-content: center;
    padding: 3rem 1.5rem 5rem;
}
.vx2-work__cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    background: var(--vx2-tan);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}
.vx2-work__cta-btn:hover {
    transform: scale(1.02);
    background: #8B6355;
}

/* Image column */
.vx2-wi__img-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
@media (min-width: 1024px) {
    .vx2-wi__img-wrap { width: 60%; }
    .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: 16 / 9;
    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;
}
.vx2-wi__img-wrap: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__img-wrap:hover .vx2-wi__img-overlay { opacity: 0.7; }

/* ──────────────────────────────────────────────────────────────
   §5  INDUSTRIES — "Where We Belong"
────────────────────────────────────────────────────────────── */
.vx2-industries {
    position: relative;
    height: 400vh;
    background: var(--vx2-white);
}
.vx2-ind__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vx2-ind__hdr {
    padding: 5rem 1.5rem 3rem;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
@media (min-width: 768px) { .vx2-ind__hdr { padding: 5rem 4rem 3rem; } }
.vx2-ind__heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--vx2-ink);
    line-height: 1.05;
}
.vx2-ind__sub {
    font-size: clamp(0.9rem, 1.1vw, 1.125rem);
    color: var(--vx2-tan);
    margin-top: 1rem;
}

.vx2-ind__body {
    flex: 1;
    display: flex;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem 2.5rem;
    gap: 2rem;
}
@media (min-width: 768px) { .vx2-ind__body { gap: 6rem; padding: 0 4rem 2.5rem; } }

/* Left text column */
.vx2-ind__text-col {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) { .vx2-ind__text-col { width: 300px; } }
.vx2-ind__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s var(--vx2-ease), transform 0.6s var(--vx2-ease);
}
.vx2-ind__slide.is-active { opacity: 1; transform: translateY(0); }

.vx2-ind__num {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--vx2-tan);
    display: block;
    margin-bottom: 1.5rem;
}
.vx2-ind__name {
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    font-weight: 600;
    color: var(--vx2-ink);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.vx2-ind__desc {
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--vx2-gray);
    line-height: 1.6;
    max-width: 260px;
}

/* Centre image rail */
.vx2-ind__rail-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}
.vx2-ind__rail {
    width: 100%;
    will-change: transform;
    transition: transform 0.6s var(--vx2-ease);
}
.vx2-ind__rail-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.vx2-ind__rail-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right stats */
.vx2-ind__stats {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3.5rem;
}
@media (min-width: 768px) { .vx2-ind__stats { width: 220px; } }

.vx2-stat { display: flex; flex-direction: column; }
.vx2-stat__num {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--vx2-ink);
    line-height: 1;
}
.vx2-stat__label {
    font-size: 0.85rem;
    color: var(--vx2-gray);
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
}

/* Progress dots */
.vx2-ind__dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding-bottom: 2rem;
}
.vx2-ind__dot {
    height: 3px;
    border-radius: 9999px;
    background: var(--vx2-ink);
    width: 6px;
    opacity: 0.3;
    transition: width 0.4s var(--vx2-ease), opacity 0.4s;
}
.vx2-ind__dot.is-active { width: 24px; opacity: 1; }

/* ──────────────────────────────────────────────────────────────
   §6  CLIENTS — "Built with the Best"
────────────────────────────────────────────────────────────── */
.vx2-clients {
    background: var(--vx2-white);
    position: relative;
    width: 100%;
    overflow: hidden;
}
.vx2-clients__hdr {
    max-width: 80rem;
    margin: 0 auto;
    padding: 7rem 1.5rem 3.5rem;
    text-align: center;
}
.vx2-clients__heading {
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--vx2-ink);
    line-height: 1;
    margin-bottom: 1.25rem;
}
.vx2-clients__sub {
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--vx2-tan);
    line-height: 1.7;
}
.vx2-clients__divider {
    max-width: 80rem;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    height: 1px;
    background: var(--vx2-rule);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s var(--vx2-ease);
}
.vx2-clients__divider.is-revealed { transform: scaleX(1); }
.vx2-clients__grid {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem 7rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}
@media (min-width: 640px)  { .vx2-clients__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .vx2-clients__grid { grid-template-columns: repeat(4, 1fr); gap: 0.75rem 1.5rem; } }
@media (min-width: 1024px) { .vx2-clients__grid { grid-template-columns: repeat(5, 1fr); } }

.vx2-logo-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    cursor: pointer;
    transition: transform 0.3s var(--vx2-ease);
    padding: 0.5rem 0.75rem;
    /* stagger delay from --d custom prop, set inline */
    transition-delay: var(--d, 0s);
}
.vx2-logo-card:hover { transform: scale(1.05); }
.vx2-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}
.vx2-logo-card:hover img { transform: scale(1.05); }
.vx2-clients__foot-rule {
    height: 1px;
    background: var(--vx2-rule);
}

/* ──────────────────────────────────────────────────────────────
   §7  GALLERY (parallax)
────────────────────────────────────────────────────────────── */
.vx2-gallery {
    background: var(--vx2-white);
    position: relative;
    width: 100%;
    overflow: hidden;
}
.vx2-gallery__grid {
    position: relative;
    display: flex;
    height: 175vh;
    gap: 2vw;
    overflow: hidden;
    padding: 2vw;
    box-sizing: border-box;
}
.vx2-gallery__col {
    position: relative;
    display: flex;
    height: 100%;
    width: 25%;
    flex-direction: column;
    gap: 2vw;
    will-change: transform;
}
/* Column offsets — positions columns above grid so they scroll into view downward */
.vx2-gallery__col:nth-child(1) { top: -45%; }
.vx2-gallery__col:nth-child(2) { top: -95%; }
.vx2-gallery__col:nth-child(3) { top: -45%; }
.vx2-gallery__col:nth-child(4) { top: -75%; }
.vx2-gallery__cell {
    position: relative;
    /* flex: 1 1 0 + min-height: 0 ensures cells share the column height equally
       regardless of image count — avoids visible gaps from height: 100% ambiguity.
       This matches the reference design 1:1 (equal-height cells, object-cover) —
       every column renders exactly 3 images, each filling its share of the
       column with no gaps and no image left unrendered. */
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
}
.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-white);
    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-partners__headlines {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6rem;
}
.vx2-partners__h {
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--vx2-ink);
    white-space: nowrap;
    user-select: none;
}
.vx2-partners__h--italic {
    margin-top: -0.75rem;
    font-size: clamp(4rem, 10vw, 8rem);
    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;
    margin-bottom: 4rem;
}
.vx2-partner-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 110px;
    border-radius: 18px;
    background: var(--vx2-cream);
    border: 1px solid rgba(164,119,100,0.2);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s var(--vx2-ease);
}
.vx2-partner-card:hover { 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;
}

/* 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: 200vh;
    background: #000;
}
.vx2-cta__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vx2-cta__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -100px; /* compensates for y: -80 shift + scale overshoot at end of scroll */
    z-index: 0;
    will-change: transform;
}
.vx2-cta__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vx2-cta__dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10;
}
.vx2-cta__content {
    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 {
    font-size: clamp(2.4rem, 7vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: #F5F2EB;
}
.vx2-cta__line-wrap:last-of-type { margin-bottom: 3.5rem; }
.vx2-cta__h2 {
    font-size: clamp(2.8rem, 8vw, 9rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: #fff;
}
.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: 1.25rem 2.5rem;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.3s;
}
.vx2-cta__btn:active { transform: scale(0.97); }
.vx2-cta__btn-fill {
    position: absolute;
    inset: 0;
    background: rgba(195,158,136,0.2);
    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-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
}
.vx2-cta__bot-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;
}
.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: var(--vx2-darker);
    position: relative;
    width: 100%;
    overflow: hidden;
}
.vx2-blog__hdr {
    max-width: 100rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: end;
}
@media (min-width: 640px) { .vx2-blog__hdr { padding: 4rem 2.5rem 4rem; } }
@media (min-width: 1024px) {
    .vx2-blog__hdr {
        grid-template-columns: repeat(14, 1fr);
        padding: 4rem 3.5rem 4rem;
    }
    .vx2-blog__title-col { grid-column: span 7; }
    .vx2-blog__desc-col  { grid-column: 9 / span 4; }
}
.vx2-blog__heading {
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 600;
    color: #F5F5F5;
    max-width: 900px;
}
.vx2-blog__sub {
    font-size: clamp(0.9rem, 1.1vw, 1.125rem);
    color: var(--vx2-mid-gray);
    line-height: 1.4;
    max-width: 320px;
}
.vx2-blog__grid {
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 1.5rem 7rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@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); gap: 2rem; padding: 0 3.5rem 7rem; }
}

.vx2-blog-card { display: flex; flex-direction: column; }
.vx2-blog-card__img-link { display: block; }
.vx2-blog-card__img-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1.75rem;
    background: #181818;
    margin-bottom: 1.25rem;
}
.vx2-blog-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}
.vx2-blog-card:hover .vx2-blog-card__img-wrap img { transform: scale(1.03); }
.vx2-blog-card__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
}
.vx2-blog-card__title {
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: #F5F5F5;
}
.vx2-blog-card__title a { color: inherit; text-decoration: none; }
.vx2-blog-card__title a:hover { color: var(--vx2-muted); }
.vx2-blog-card__desc {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--vx2-mid-gray);
}

/* ──────────────────────────────────────────────────────────────
   §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-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    background: var(--vx2-tan);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    font-family: inherit;
}
.vx2-submit-btn:hover {
    transform: scale(1.02);
    background: #8B6355;
}

.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 (rendered in footer.php for VIITORX_V2_TEMPLATE)
────────────────────────────────────────────────────────────── */
.vx2-footer {
    position: relative;
    overflow: hidden;
    background: var(--vx2-darkest);
    color: #fff;
}
/* Glow blobs */
.vx2-footer__glow-l,
.vx2-footer__glow-c,
.vx2-footer__glow-r {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(140px);
    opacity: 0.9;
}
.vx2-footer__glow-l {
    left: -10%;
    bottom: -20%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(164,119,100,0.55) 0%, rgba(164,119,100,0.15) 40%, transparent 75%);
}
.vx2-footer__glow-c {
    left: 50%;
    transform: translateX(-50%);
    bottom: -30%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(164,119,100,0.45) 0%, rgba(164,119,100,0.10) 45%, transparent 80%);
    filter: blur(160px);
}
.vx2-footer__glow-r {
    right: -10%;
    bottom: -20%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(164,119,100,0.60) 0%, rgba(164,119,100,0.12) 40%, transparent 75%);
}

.vx2-footer__inner {
    position: relative;
    z-index: 10;
    max-width: 106.25rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 2.5rem;
}
@media (min-width: 768px) { .vx2-footer__inner { padding: 5rem 2.5rem 2.5rem; } }
@media (min-width: 1024px) { .vx2-footer__inner { padding: 6rem 3.5rem 2.5rem; } }

.vx2-footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.vx2-footer__logo-wrap {
    margin-top: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vx2-footer__logo {
    width: 100%;
    height: auto;
    max-width: 400px;
    opacity: 0.96;
    user-select: none;
    pointer-events: none;
}
.vx2-footer__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
}
.vx2-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    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.1);
    transform: translateY(-2px);
}
.vx2-footer__social-link img {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}
.vx2-footer__social-link:hover img { opacity: 1; transform: scale(1.1); }

.vx2-footer__nav {
    margin-top: 3.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2.5rem;
}
.vx2-footer__nav a {
    position: relative;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}
.vx2-footer__nav a:hover {
    color: #E6C6B7;
    transform: translateY(-2px);
}
.vx2-footer__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 1px;
    width: 0;
    background: var(--vx2-tan);
    transition: width 0.3s;
}
.vx2-footer__nav a:hover::after { width: 100%; }

.vx2-footer__rule {
    margin-top: 4rem;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.vx2-footer__bottom {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .vx2-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
}
.vx2-footer__powered,
.vx2-footer__copy,
.vx2-footer__tagline {
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
}
.vx2-footer__powered { color: rgba(255,255,255,0.45); }
.vx2-footer__powered strong { color: #E6C6B7; font-weight: 600; }
.vx2-footer__copy {
    color: rgba(255,255,255,0.45);
}
@media (min-width: 768px) {
    .vx2-footer__copy {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}
.vx2-footer__tagline { color: rgba(255,255,255,0.35); }

/* =============================================================
   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,
    .vx2-projects__sticky,
    .vx2-cit__sticky,
    .vx2-ind__sticky,
    .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) {
        .vx2-hero       { height: 300svh; }
        /* Projects: last block no longer fades out, so reduced from 600svh → 320svh
           to keep dead scroll after final word-reveal to ~1 swipe (~490px).
           Citations/Industries: 4 slides × 100svh each → 1 full viewport height per slide,
           preventing a single momentum swipe from jumping 2+ slides. */
        .vx2-projects   { height: 320svh; }
        .vx2-citations  { height: 400svh; }
        .vx2-industries { height: 400svh; }
        .vx2-cta        { height: 150svh; }
    }
}

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

    /* ── §1 HERO ────────────────────────────────────────────
       On mobile the X fills most of the width. Place text
       ABOVE and BELOW the canvas rather than left/right.   */
    .vx2-ovr__scroll  { display: none; }
    .vx2-ovr__logo    { width: 200px; }
    .vx2-ovr--s2 {
        flex-direction:  column;
        justify-content: flex-start;
        align-items:     center;
        padding:         6rem 2rem 0;
    }
    .vx2-ovr--s3 {
        flex-direction:  column;
        justify-content: flex-end;
        align-items:     center;
        padding:         0 2rem 6rem;
    }
    .vx2-ovr--s2 .vx2-ovr__heading,
    .vx2-ovr--s3 .vx2-ovr__heading { text-align: center; max-width: min(90vw, 320px); }
    .vx2-ovr__heading--right { text-align: center; }
    .vx2-ovr__heading { font-size: clamp(2.2rem, 8vw, 3.5rem); max-width: min(88vw, 320px); }

    /* ── §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: 320svh; }
    /* 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-pad for text, top offset anchors content at ~22% from top
       so text reads as intentionally placed rather than dead-centred in void */
    .vx2-pb {
        padding: 0 1.5rem;
        padding-top: 22svh;
        justify-content: flex-start;
    }
    .vx2-pb__line       { font-size: clamp(3.5rem, 20vw, 7rem); }
    .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;
    }
    /* Subtitle paragraph — larger and comfortably readable */
    .vx2-pb__para {
        font-size: clamp(1.25rem, 6vw, 1.8rem);
        margin-top: 1.5rem;
        max-width: 95%;
    }

    /* ── §3 CITATIONS ("What We Build") ─────────────────────
       Full-bleed image fills the sticky. Text sits at the
       bottom over a strong bottom-up gradient — no black gap. */
    .vx2-citations { height: 400svh; }
    /* Shorter transition prevents overlapping CSS animations when scrolling
       quickly through slides, which was causing a visual jerk on real devices. */
    .vx2-cit__img-slide { transition-duration: 0.4s; }

    /* Restore full-bleed (remove any top-only restriction) */
    .vx2-cit__images { bottom: 0; height: auto; }

    /* Strong upward gradient so text is always readable */
    
    /* Eyebrow visible on mobile — slightly larger for readability over images */
    .vx2-cit__eyebrow { display: flex; }
    .vx2-cit__eyebrow-text { font-size: 0.75rem; }

    /* Rail: eyebrow at top, main content pushed to bottom */
    .vx2-cit__rail {
        padding: 1.5rem 1.5rem 2.25rem;
        justify-content: space-between;
        gap: 1rem;
    }
    .vx2-cit__main { flex: 0 0 auto; }
    .vx2-cit__title-rail { height: clamp(80px, 20vw, 150px); margin-bottom: 0.5rem; }
    .vx2-cit__title      { font-size: clamp(1.5rem, 5.8vw, 2.6rem); }
    .vx2-cit__desc-rail  { height: 88px; }
    .vx2-cit__tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-width: 100%;
    }
    /* Larger tap targets + readable text */
    .vx2-cit__tab { padding: 0.6rem 0.5rem; }
    .vx2-cit__tab-label { font-size: 0.82rem; line-height: 1.35; }
    .vx2-cit__nudge { display: none; }

    /* ── §4 WORK ─────────────────────────────────────────── */
    .vx2-work__header { padding: 4rem 1.5rem 2.5rem; }
    .vx2-wi { padding: 2.5rem 0; }
    .vx2-wi__title { font-size: clamp(1.3rem, 4.5vw, 1.9rem); }
    .vx2-wi__desc  { font-size: 0.9rem; }

    /* ── §5 INDUSTRIES ("Where We Belong") ──────────────────
       Layout: image (4:3) on top → industry text → stats row.
       The stats counter is shown in a horizontal strip.     */
    .vx2-industries { height: 400svh; }
    .vx2-ind__sticky { justify-content: flex-start; }
    /* Faster transitions prevent overlapping animations when scrolling quickly */
    .vx2-ind__rail  { transition-duration: 0.3s; }
    .vx2-ind__slide { transition-duration: 0.3s; }

    /* Compact header */
    .vx2-ind__hdr {
        padding: 1.25rem 1.25rem 0.5rem;
        text-align: left;
    }
    .vx2-ind__heading { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
    .vx2-ind__sub     { font-size: 0.78rem; margin-top: 0.2rem; }

    /* Body: vertical column that fills the sticky's remaining height */
    .vx2-ind__body {
        flex-direction: column;
        flex: 1;
        padding: 0.5rem 1.25rem 1rem;
        gap: 0.5rem;
    }

    /* 1st: image expands to fill all space not taken by text/stats/dots */
    .vx2-ind__rail-wrap {
        order: 1;
        flex: 1;
        width: 100%;
        min-height: 160px;
        height: auto;
        border-radius: 0.75rem;
        overflow: hidden;
    }

    /* 2nd: industry name + description — generous height so long titles
       don't clip; slides are position:absolute so height must be explicit */
    .vx2-ind__text-col {
        order: 2;
        display: flex;
        width: 100%;
        height: 150px;
        flex-shrink: 0;
        overflow: hidden;
    }
    .vx2-ind__name {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
        white-space: normal;
        word-break: break-word;
        margin-bottom: 0.25rem;
    }
    .vx2-ind__desc { font-size: 0.82rem; line-height: 1.45; }
    .vx2-ind__num  { margin-bottom: 0.5rem; }

    /* 3rd: stats — horizontal row (un-hide) */
    .vx2-ind__stats {
        display: flex;
        order: 3;
        flex-direction: row;
        flex: none;
        width: 100%;
        gap: 0;
        justify-content: space-around;
        padding: 0.6rem 0 0.4rem;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
    }
    .vx2-stat {
        flex: 1;
        align-items: center;
        text-align: center;
    }
    .vx2-stat__num   { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
    .vx2-stat__label { font-size: 0.75rem; margin-top: 0.3rem; }

    /* Dots: sit naturally below the stats row, not pushed to screen bottom */
    .vx2-ind__dots { margin-top: 0.75rem; padding-bottom: 0.5rem; }

    /* ── §6 CLIENTS ──────────────────────────────────────── */
    .vx2-clients__hdr { padding: 4rem 1.5rem 2rem; }
    .vx2-clients__sub { white-space: normal; }
    .vx2-clients__grid { padding: 0 1.5rem 5rem; gap: 0.5rem; }

    /* ── §7 GALLERY ─────────────────────────────────────────
       Static 2-column grid on mobile — all images visible.
       JS returns early on isMobile so no GSAP transforms
       are applied to the columns.                           */
    .vx2-gallery__grid {
        height: auto;
        overflow: visible;
        flex-wrap: wrap;
        gap: 3vw;
        padding: 4vw 3vw;
    }
    .vx2-gallery__col {
        width: calc(50% - 1.5vw);
        height: auto;
        min-width: 0;
        top: 0;
        gap: 3vw;
        will-change: auto;
    }
    .vx2-gallery__col:nth-child(3),
    .vx2-gallery__col:nth-child(4) { display: flex; }
    .vx2-gallery__cell {
        flex: none;       /* cancel desktop flex:1 1 0 so aspect-ratio drives the height */
        min-height: auto; /* cancel desktop min-height:0 */
        height: auto;
        aspect-ratio: 4 / 3;
        width: 100%;
    }

    /* ── §8 PARTNERS ("Shaping Experiences Together") ────── */
    .vx2-partners { min-height: 0; }
    .vx2-partners__content { padding: 4rem 1.5rem; }
    .vx2-partners__headlines { margin-bottom: 2.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; }

    /* ── §9 CTA ──────────────────────────────────────────── */
    .vx2-cta { height: 150svh; }
    .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__hdr    { padding: 2.5rem 1.5rem 3rem; }
    .vx2-blog__grid   { padding: 0 1.5rem 4rem; gap: 1.25rem; }
    .vx2-blog__heading { font-size: clamp(2.2rem, 7vw, 3.5rem); }

    /* ── §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: 1.75rem; }
    .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__inner    { padding: 3rem 1.5rem 2rem; }
    .vx2-footer__logo     { max-width: 240px; }
    .vx2-footer__logo-wrap { margin-top: 2.5rem; }
    .vx2-footer__nav { gap: 1rem 2rem; margin-top: 2.5rem; }
    .vx2-footer__nav a { font-size: 0.95rem; }
    /* Center the three bottom items (powered / copyright / tagline) on mobile */
    .vx2-footer__bottom {
        align-items: center;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   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__line        { font-size: clamp(3rem, 8vw, 7rem); }
    .vx2-pb__phi-body    { font-size: clamp(2rem, 6.5vw, 4.5rem); }
    .vx2-pb__phi-eyebrow { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
    .vx2-pb__para        { font-size: clamp(1rem, 2vw, 1.25rem); }

    /* Industries: tighter columns so image rail gets more width at 768px
       (at 768px with gap:2.5rem the image rail was only ~195px) */
    .vx2-ind__body     { gap: 1.5rem; padding: 0 2.5rem 2rem; }
    .vx2-ind__text-col { width: 175px; }
    .vx2-ind__stats    { width: 130px; }

    /* Gallery: remove min-width clamp so columns shrink naturally */
    .vx2-gallery__col { min-width: 0; }

    /* 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); }

    /* 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__line         { font-size: clamp(3rem, 18vw, 5.5rem); }
    .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); }
    .vx2-pb__para         { font-size: clamp(1.1rem, 5.5vw, 1.6rem); }
    .vx2-cit__title     { font-size: clamp(1.3rem, 5.5vw, 2rem); }
    .vx2-cit__title-rail { height: clamp(80px, 22vw, 150px); }
    .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-ovr__heading   { font-size: clamp(2rem, 7.5vw, 3rem); }
    .vx2-ind__text-col  { height: 130px; }
    /* Slightly tighter minimum on tiny phones */
    .vx2-ind__rail-wrap { min-height: 140px; }
    .vx2-ind__stat__num { font-size: clamp(1.4rem, 5vw, 2rem); }
    .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;
}

/* =============================================================
   CUSTOM CURSOR
   Only activated on devices with a fine pointer (mouse/trackpad).
   Uses mix-blend-mode: difference so dot + ring invert correctly
   on both dark (hero, citations) and light (projects) sections.
============================================================= */

/* Hidden on all devices by default; shown only when the media query below matches */
.vx2-cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
    /* Hide the browser cursor site-wide on the v2 page */
    .vx2-page,
    .vx2-page * {
        cursor: none !important;
    }

    .vx2-cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        opacity: 0; /* hidden until first mousemove — JS sets opacity:1 */
    }

    /* Small filled dot — moves instantly to mouse position */
    .vx2-cursor__dot {
        position: absolute;
        width: 8px;
        height: 8px;
        background: #ffffff;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        will-change: transform;
        transition: opacity 0.2s, transform 0.15s;
    }

    /* Larger ring — lags slightly behind for a fluid trailing effect */
    .vx2-cursor__ring {
        position: absolute;
        width: 38px;
        height: 38px;
        border: 1.5px solid #ffffff;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        will-change: transform;
        transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    opacity 0.25s;
    }

    /* Hover state — ring expands, dot shrinks */
    .vx2-cursor--hover .vx2-cursor__ring {
        width: 56px;
        height: 56px;
        opacity: 0.6;
    }
    .vx2-cursor--hover .vx2-cursor__dot {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    /* Click state — quick squeeze */
    .vx2-cursor--click .vx2-cursor__ring {
        width: 24px;
        height: 24px;
        opacity: 1;
        transition-duration: 0.08s;
    }
    .vx2-cursor--click .vx2-cursor__dot {
        transform: translate(-50%, -50%) scale(1.6);
    }
}
