/* Anouk marketing site: motion-graphics showreel.
   No framework, no build step. Motion is driven by site.js (IntersectionObserver + one rAF scroll loop)
   and collapses to plain fades under prefers-reduced-motion. */

:root {
    --bg: #050706;
    --bg-2: #0a0e0d;
    --surface: #0f1513;
    --surface-2: #141c19;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f3f6f5;
    --text-2: #c4cdca;
    --muted: #94a19c;
    --text-muted: var(--muted); /* used by inline links inside the translated footer.copyright */
    --brand: #5bb99a;
    --brand-2: #8fd9bd;
    --brand-deep: #2f7a63;
    --lime: #b6e27c;
    --danger: #ff7a7a;
    --grad: linear-gradient(100deg, #5bb99a 0%, #8fd9bd 45%, #b6e27c 100%);

    --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1280px;
    --radius: 18px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 2000;
    background: var(--lime); color: #071009; padding: 10px 16px; border-radius: 10px;
    font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── Type ─── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brand-2);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); margin: 18px 0 18px; }
.section-head p { color: var(--text-2); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 620px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin: 0 auto; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 26px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
    text-decoration: none; border: 0; cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--brand); color: #04110c; box-shadow: 0 10px 40px -10px rgba(91, 185, 154, 0.65); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(143, 217, 189, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ─── Navigation ─── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
    transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
    background: rgba(5, 7, 6, 0.72);
    -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px);
    box-shadow: 0 1px 0 var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 34px; height: 34px; }
.nav-logo span { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 6px; list-style: none; margin-left: auto; }
.nav-links a {
    display: block; padding: 8px 14px; border-radius: 999px;
    color: var(--text-2); text-decoration: none; font-size: 0.93rem; font-weight: 500;
    transition: color 0.25s, background-color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

.lang-selector { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); border-radius: 999px;
    color: var(--text-2); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.lang-btn:hover { color: var(--text); border-color: var(--brand); }
.lang-btn svg { width: 14px; height: 14px; transition: transform 0.25s; }
.lang-selector.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px;
    background: rgba(15, 21, 19, 0.96); border: 1px solid var(--line-strong); border-radius: 14px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.25s var(--ease);
}
.lang-selector.open .lang-dropdown { opacity: 1; visibility: visible; transform: none; }
.lang-option {
    display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px;
    background: none; color: var(--text-2); font-size: 0.92rem; cursor: pointer;
}
.lang-option:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang-option.active { color: var(--brand-2); font-weight: 600; }

.menu-btn {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04); cursor: pointer; position: relative;
}
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.nav.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── Hero ─── */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    padding: calc(var(--nav-h) + clamp(40px, 8vh, 96px)) 0 0;
    isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform;
}
.aurora.a1 { width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(91, 185, 154, 0.55), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora.a2 { width: 50vw; height: 50vw; max-width: 760px; max-height: 760px; right: -16vw; top: 6vh; background: radial-gradient(circle, rgba(182, 226, 124, 0.32), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora.a3 { width: 70vw; height: 40vw; left: 15vw; bottom: -18vw; background: radial-gradient(ellipse, rgba(47, 122, 99, 0.6), transparent 70%); animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-10vw, 10vh, 0) scale(0.9); } }
.grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
    opacity: 0.55;
}

.hero-copy { position: relative; text-align: center; max-width: 1080px; margin: 0 auto; }
.live-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
    background: rgba(91, 185, 154, 0.1); box-shadow: inset 0 0 0 1px rgba(91, 185, 154, 0.35);
    color: var(--brand-2); font-size: 0.86rem; font-weight: 500;
}
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.live-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--lime); opacity: 0; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 {
    font-size: clamp(2.9rem, 8vw, 7.2rem); font-weight: 650; letter-spacing: -0.045em; line-height: 0.95;
    margin: 28px 0 26px;
}
.kin-line { display: block; overflow: hidden; padding: 0.04em 0 0.1em; margin-bottom: -0.1em; }
.kin-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.kin-line:nth-child(2) > span { transition-delay: 0.12s; }
.kin-line:nth-child(3) > span { transition-delay: 0.24s; }
.is-ready .kin-line > span { transform: none; }

.cycler-row { font-family: var(--font-display); font-size: clamp(1.15rem, 2.3vw, 1.75rem); font-weight: 400; color: var(--text-2); margin-bottom: 18px; }
.cycler { display: grid; justify-items: center; margin-top: 2px; height: 1.35em; overflow: hidden; color: var(--text); font-weight: 600; }
.cycler > span { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); white-space: nowrap; }
.cycler > span.on { transform: none; opacity: 1; }
.cycler > span.off { transform: translateY(-110%); opacity: 0; }
.cycler > span::after { content: ''; display: block; height: 2px; margin-top: -2px; background: var(--grad); transform-origin: left; }

.hero-desc { max-width: 680px; margin: 0 auto 36px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-ready .fade-up { opacity: 1; transform: none; }
.is-ready .fade-up.d1 { transition-delay: 0.35s; }
.is-ready .fade-up.d2 { transition-delay: 0.5s; }
.is-ready .fade-up.d3 { transition-delay: 0.65s; }
.is-ready .fade-up.d4 { transition-delay: 0.8s; }

/* Hero stage: a browser frame that tilts flat as you scroll (--hp = 0..1 set by site.js). */
.hero-stage {
    --hp: 0;
    position: relative; margin: clamp(48px, 8vh, 88px) auto 0; max-width: 1180px;
    perspective: 1600px; perspective-origin: 50% 0%;
}
.hero-stage .frame-main {
    transform-origin: 50% 0%;
    transform: rotateX(calc(26deg * (1 - var(--hp)))) scale(calc(0.88 + 0.12 * var(--hp))) translateY(calc(30px * (1 - var(--hp))));
    opacity: 0; transition: opacity 1.4s var(--ease) 0.5s;
    will-change: transform;
}
.is-ready .hero-stage .frame-main { opacity: 1; }
.hero-stage::before {
    content: ''; position: absolute; left: 8%; right: 8%; top: -40px; height: 220px; z-index: -1;
    background: radial-gradient(ellipse at 50% 100%, rgba(91, 185, 154, 0.5), transparent 70%); filter: blur(30px);
}
.float-card {
    position: absolute; width: 30%; z-index: 2;
    opacity: 0; transition: opacity 1.2s var(--ease) 1s;
}
.is-ready .float-card { opacity: 1; }
.float-card.left { left: -6%; top: 34%; }
.float-card.right { right: -6%; top: 14%; }
.float-card .frame { box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-strong); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--bg)); z-index: 3; pointer-events: none; }

.scroll-cue {
    position: absolute; left: 50%; bottom: 26px; z-index: 4; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--brand), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ─── Browser frame ─── */
.frame {
    position: relative; border-radius: 14px; overflow: hidden; background: #0b0b0b;
    box-shadow: 0 0 0 1px var(--line-strong), 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 30px 80px -40px rgba(91, 185, 154, 0.35);
}
.frame-bar {
    display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
    background: linear-gradient(#1b1f1e, #141716); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f3d; flex-shrink: 0; }
.frame-bar i:nth-child(1) { background: #ff6159; }
.frame-bar i:nth-child(2) { background: #ffbd2e; }
.frame-bar i:nth-child(3) { background: #28c941; }
.frame-title {
    flex: 1; text-align: center; margin-right: 44px; font-size: 0.74rem; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #0b0b0b; }
.frame.sm .frame-bar { height: 22px; padding: 0 9px; gap: 5px; }
.frame.sm .frame-bar i { width: 7px; height: 7px; }
.frame.sm .frame-title { display: none; }

.hero-logo { width: clamp(170px, 18vw, 220px); height: auto; margin: 0 auto 22px; }

/* ─── Brand backgrounds (the curtain and light streaks of the original site) + the hero grid, reused ───
   Each background is a .bg-layer inside a clipping .sec-bg at the back of a .has-bg section. With motion allowed,
   site.js moves the layer by -s * (section top) per frame (s = data-pbg): s = 1 is background-attachment: fixed,
   smaller is a slower scroll. --s also sizes the layer, (1 - s) * section + s * viewport tall, which is the least
   height that keeps the visible part of the section covered for the whole pass. Transform only, so it composites
   on the GPU; under reduced motion the layer simply fills the section and stays put.
   The images load only once the section comes near (site.js adds .bg-in); image-set() picks AVIF, WebP or JPEG,
   the media queries below pick the size (portrait crops on phones). Built by showreel/prepare-backgrounds.py. */
.has-bg { position: relative; isolation: isolate; }
.sec-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-layer {
    --s: 0;
    position: absolute; left: 0; right: 0; top: 0; height: calc((1 - var(--s)) * 100% + var(--s) * 100vh); min-height: 100%;
    background-repeat: no-repeat; background-position: center; background-size: cover; will-change: transform;
}
.bg-layer[data-pbg="0.25"] { --s: 0.25; }
.bg-layer[data-pbg="0.5"] { --s: 0.5; }
.bg-layer[data-pbg="0.75"] { --s: 0.75; }

:root {
    --curtain-jpg: url("../media/bg/curtain-1920.jpg");
    --curtain-webp: url("../media/bg/curtain-1920.webp");
    --curtain-avif: url("../media/bg/curtain-1920.avif");
    --streaks-jpg: url("../media/bg/streaks-1920.jpg");
    --streaks-webp: url("../media/bg/streaks-1920.webp");
    --streaks-avif: url("../media/bg/streaks-1920.avif");
}
@media (max-width: 1100px) and (max-resolution: 1.5dppx) {
    :root {
        --curtain-jpg: url("../media/bg/curtain-1280.jpg"); --curtain-webp: url("../media/bg/curtain-1280.webp"); --curtain-avif: url("../media/bg/curtain-1280.avif");
        --streaks-jpg: url("../media/bg/streaks-1280.jpg"); --streaks-webp: url("../media/bg/streaks-1280.webp"); --streaks-avif: url("../media/bg/streaks-1280.avif");
    }
}
@media (min-width: 1700px), (min-width: 1101px) and (min-resolution: 1.5dppx) {
    :root {
        --curtain-jpg: url("../media/bg/curtain-2560.jpg"); --curtain-webp: url("../media/bg/curtain-2560.webp"); --curtain-avif: url("../media/bg/curtain-2560.avif");
        --streaks-jpg: url("../media/bg/streaks-2560.jpg"); --streaks-webp: url("../media/bg/streaks-2560.webp"); --streaks-avif: url("../media/bg/streaks-2560.avif");
    }
}
@media (max-width: 760px) and (orientation: portrait) {
    :root {
        --curtain-jpg: url("../media/bg/curtain-portrait.jpg"); --curtain-webp: url("../media/bg/curtain-portrait.webp"); --curtain-avif: url("../media/bg/curtain-portrait.avif");
        --streaks-jpg: url("../media/bg/streaks-portrait.jpg"); --streaks-webp: url("../media/bg/streaks-portrait.webp"); --streaks-avif: url("../media/bg/streaks-portrait.avif");
    }
}
.bg-in .curtain, .no-js .curtain {
    background-image: var(--curtain-jpg);
    background-image: image-set(var(--curtain-avif) type("image/avif"), var(--curtain-webp) type("image/webp"), var(--curtain-jpg) type("image/jpeg"));
}
.bg-in .streaks, .no-js .streaks {
    background-image: var(--streaks-jpg);
    background-image: image-set(var(--streaks-avif) type("image/avif"), var(--streaks-webp) type("image/webp"), var(--streaks-jpg) type("image/jpeg"));
}
.curtain, .streaks { opacity: 0; transition: opacity 1.2s var(--ease); }
.bg-in .curtain, .bg-in .streaks, .no-js .curtain, .no-js .streaks { opacity: 1; }
/* Light from the bottom left, as on the original hero. */
.curtain { background-position: 20% 100%; }
/* Blend every image band into the page (fade to --bg at the top and bottom) and darken where the copy sits. */
.sec-bg::after { content: ''; position: absolute; inset: 0; }
/* The curtain fades out through a mask (not a colour), so where it overlaps the demo wall both stay visible. */
.curtain-bg {
    -webkit-mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.12) 10%, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.88) 30%, #000 38%, #000 62%, rgba(0, 0, 0, 0.88) 72%, rgba(0, 0, 0, 0.4) 86%, transparent);
    mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.12) 10%, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.88) 30%, #000 38%, #000 62%, rgba(0, 0, 0, 0.88) 72%, rgba(0, 0, 0, 0.4) 86%, transparent);
}
.showreel .curtain-bg { -webkit-mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.3) 5%, rgba(0, 0, 0, 0.8) 11%, #000 16%, #000 72%, rgba(0, 0, 0, 0.6) 86%, transparent); mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.3) 5%, rgba(0, 0, 0, 0.8) 11%, #000 16%, #000 72%, rgba(0, 0, 0, 0.6) 86%, transparent); }
.curtain-bg::after { background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(5, 7, 6, 0.5), rgba(5, 7, 6, 0.12) 80%); }

/* The hero's square grid with its soft green glow, carried into features, sectors and about. The edge fade is on
   the static clip box, so the lines drift through it (s = 0.25) while the glow and the fade stay put. */
.grid-bg {
    -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.grid {
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px; background-repeat: repeat; background-position: center top; opacity: 0.85;
}
.grid-bg::after { z-index: -1; }
.grid-bg.glow-right::after { background: radial-gradient(ellipse 50% 45% at 82% 30%, rgba(91, 185, 154, 0.22), transparent 70%); }
.grid-bg.glow-left::after { background: radial-gradient(ellipse 50% 50% at 12% 55%, rgba(47, 122, 99, 0.34), transparent 70%); }
.grid-bg.glow-center::after { background: radial-gradient(ellipse 55% 45% at 50% 40%, rgba(91, 185, 154, 0.16), transparent 70%); }
.glow-right .grid { -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 20%, transparent 80%); }
.glow-left .grid { -webkit-mask-image: radial-gradient(ellipse 75% 70% at 25% 55%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 75% 70% at 25% 55%, #000 20%, transparent 80%); }
.glow-center .grid { -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%); }

/* ─── Divider bands (original divider copy) ─── */
.divider-band { overflow: hidden; padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--line); background: var(--bg-2); }
/* "Driving Innovation Forward": a full-bleed light-streaks band, the type running along its darker lower edge. */
.streaks-band {
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: clamp(420px, 78vh, 820px); padding: 0 0 clamp(36px, 6vh, 72px); border: 0; background: var(--bg);
}
.streaks { background-position: 50% 30%; }
.streaks-bg::after {
    background: linear-gradient(var(--bg), rgba(5, 7, 6, 0) 16%, rgba(5, 7, 6, 0) 52%, rgba(5, 7, 6, 0.78) 82%, var(--bg));
}
.streaks-band .divider-track span { text-shadow: 0 2px 30px rgba(5, 7, 6, 0.6); }
.divider-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.divider-track span {
    padding-right: 0.8em; white-space: nowrap; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em;
    font-size: clamp(2.6rem, 8vw, 7rem); line-height: 1; color: rgba(143, 217, 189, 0.32);
}
.divider-track span:nth-child(odd) { color: var(--text); }
/* "Ready to Transform": the curtain band; it rises into the demo section's faded lower edge. */
.divider-cta { text-align: center; margin-top: calc(-1 * clamp(60px, 9vw, 140px)); padding: clamp(120px, 16vw, 230px) 0 clamp(90px, 12vw, 170px); }
.divider-cta h3 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.divider-cta p { margin-top: 12px; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }

/* ─── Marquee ─── */
.marquee { position: relative; padding: clamp(40px, 6vw, 72px) 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-row { display: flex; width: max-content; gap: 0; animation: marquee 60s linear infinite; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 70s; margin-top: 14px; }
.marquee-row span {
    display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px);
    font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 5vw, 4.4rem); letter-spacing: -0.03em; white-space: nowrap;
}
.marquee-row span::after { content: ''; width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--brand); }
/* Filled, not outlined: -webkit-text-stroke on the variable Outfit font draws every overlapping glyph contour. */
.marquee-row.rev span { color: rgba(255, 255, 255, 0.16); }
.marquee-row.rev span::after { background: var(--lime); opacity: 0.7; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Showreel player: rendered video + localised HTML caption layer ─── */
.showreel { padding-bottom: clamp(60px, 8vw, 110px); }
.player { position: relative; max-width: 1180px; margin: 0 auto; container-type: inline-size; container-name: player; }
.player-screen {
    position: relative; border-radius: 22px; overflow: hidden; background: #050706; aspect-ratio: 16 / 9;
    box-shadow: 0 0 0 1px var(--line-strong), 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 40px 100px -50px rgba(91, 185, 154, 0.5);
}
.player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.play-btn {
    position: absolute; right: 2.2cqw; top: 2.2cqw; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgba(5, 7, 6, 0.6); color: var(--text);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-strong);
    transition: background-color 0.2s, transform 0.3s var(--ease);
}
.play-btn:hover { background: var(--brand); color: #04110c; transform: scale(1.06); }
.play-btn svg { width: 22px; height: 22px; fill: currentColor; }
.play-btn .i-pause { display: none; }
.player.playing .play-btn .i-pause { display: block; }
.player.playing .play-btn .i-play { display: none; }
.player:not(.started) .play-btn { left: 50%; top: 50%; right: auto; width: 84px; height: 84px; transform: translate(-50%, -50%); background: var(--brand); color: #04110c; box-shadow: 0 20px 60px -10px rgba(91, 185, 154, 0.8); }
.player:not(.started) .play-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.player:not(.started) .play-btn svg { width: 30px; height: 30px; }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, 0.1); }
.player-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--pp, 0)); }

/* Captions sit in the video's calm left column (the composition keeps x < 31% free above the step rail). */
.captions {
    position: absolute; z-index: 2; left: 3.4cqw; bottom: 7.5cqw; width: 26cqw; pointer-events: none;
}
.captions::before {
    content: ''; position: absolute; inset: -40% -30% -30% -20%; z-index: -1;
    background: radial-gradient(ellipse at 30% 60%, rgba(5, 7, 6, 0.85), transparent 70%);
}
.cap { position: relative; }
.cap-step { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--font-mono); font-size: max(11px, 1.1cqw); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2); }
.cap-step b { color: var(--lime); font-weight: 600; }
.cap-title { display: block; margin: 0.55cqw 0 0.6cqw; font-family: var(--font-display); font-weight: 650; font-size: max(17px, 2.5cqw); line-height: 1.08; letter-spacing: -0.025em; color: var(--text); text-wrap: balance; }
.cap-line { display: block; font-size: max(12px, 1.3cqw); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.cap-cta { display: inline-flex; margin-top: 1.2cqw; pointer-events: auto; min-height: 40px; padding: 0 18px; font-size: max(13px, 1.2cqw); }
.cap .w { display: inline-block; }
.cap.enter .cap-step, .cap.enter .cap-line, .cap.enter .cap-cta { animation: capFade 0.7s var(--ease) both; }
.cap.enter .cap-line { animation-delay: 0.35s; }
.cap.enter .cap-cta { animation-delay: 0.5s; }
.cap.enter .w { animation: capWord 0.75s var(--ease) both; animation-delay: calc(0.08s + var(--wi) * 45ms); }
.cap.leave { animation: capOut 0.35s ease-in both; position: absolute; left: 0; right: 0; bottom: 0; }
@keyframes capFade { from { opacity: 0; transform: translateY(14px); } }
@keyframes capWord { from { opacity: 0; transform: translateY(0.6em) rotate(2deg); filter: blur(6px); } }
@keyframes capOut { to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }

@container player (max-width: 700px) {
    .play-btn { width: 42px; height: 42px; right: 10px; top: 10px; }
    .play-btn svg { width: 18px; height: 18px; }
    .player:not(.started) .play-btn { width: 64px; height: 64px; }
    .captions { position: relative; left: 0; bottom: auto; width: auto; margin-top: 18px; min-height: 140px; }
    .captions::before { display: none; }
    .cap-title { font-size: 1.35rem; margin: 6px 0; }
    .cap-line { font-size: 0.95rem; }
    .cap-step { font-size: 0.75rem; }
    .cap-cta { margin-top: 12px; }
}

/* Hero video card */
.video-frame { aspect-ratio: 16 / 9; border-radius: 22px; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ─── Story: 9 steps, sticky stage cross-fades scenes (main screen + insets) ─── */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.steps { list-style: none; }
.step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; opacity: 0.25; transition: opacity 0.6s var(--ease); }
.step.active { opacity: 1; }
.step-num { font-family: var(--font-mono); font-size: 0.82rem; color: var(--lime); letter-spacing: 0.14em; }
.step-num i { font-style: normal; color: var(--muted); }
.step-kicker { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2); }
.step h3 { font-size: clamp(1.75rem, 3.2vw, 2.8rem); margin: 14px 0 16px; text-wrap: balance; }
.step p { color: var(--text-2); font-size: 1.04rem; max-width: 480px; }
.step-points { list-style: none; margin-top: 22px; display: grid; gap: 10px; max-width: 480px; }
.step-points li { position: relative; padding-left: 30px; color: var(--text); font-size: 0.97rem; }
.step-points li::before {
    content: ''; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 6px;
    background: rgba(91, 185, 154, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6e27c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.step-media { display: none; margin-top: 28px; }
.step-insets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

.story-stage { position: sticky; top: calc(var(--nav-h) + max(2vh, (100vh - var(--nav-h) - min(36vw, 500px)) / 2)); }
.scenes { position: relative; aspect-ratio: 16 / 12; }
.scene { position: absolute; inset: 0; pointer-events: none; }
.scene .frame { position: absolute; opacity: 0; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease); }
.scene .main { left: 0; top: 0; width: 88%; transform: translateY(40px) scale(0.96); filter: blur(6px); }
.scene .main.wide img { aspect-ratio: 16 / 7; }
.scene.n0 .main { width: 100%; }
.scene .inset { width: 46%; right: 0; transform: translateX(40px) rotate(2deg); }
.scene .inset:nth-of-type(2) { top: 30%; }
.scene .inset:nth-of-type(3) { top: 56%; right: 12%; }
.scene.n1 .inset:nth-of-type(2) { top: 46%; }
.scene.active .frame { opacity: 1; transform: none; filter: none; }
.scene.active .inset { transition-delay: 0.18s; }
.scene.active .inset:nth-of-type(3) { transition-delay: 0.3s; }
.story-progress { display: flex; gap: 6px; margin-top: 18px; }
.story-progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; position: relative; }
.story-progress i::after { content: ''; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.story-progress i.done::after { transform: scaleX(1); }

/* ─── Integrations ─── */
.integrations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.integ {
    position: relative; padding: 28px 24px 30px; border-radius: var(--radius); background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.integ::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 185, 154, 0.18), transparent 60%);
}
.integ:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(91, 185, 154, 0.4); }
.integ:hover::before { opacity: 1; }
.integ-mark {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 22px;
    background: rgba(91, 185, 154, 0.12); color: var(--brand-2); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.integ h3 { font-size: 1.35rem; margin-bottom: 10px; }
.integ p { color: var(--muted); font-size: 0.95rem; position: relative; }

/* ─── Feature bento ─── */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card {
    position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(143, 217, 189, 0.14), transparent 60%);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(91, 185, 154, 0.35); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(91, 185, 154, 0.12); color: var(--brand-2); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -0.015em; }
.feature-card p { color: var(--muted); font-size: 0.96rem; }

/* ─── Sectors: kinetic list ─── */
.sector-list { list-style: none; border-top: 1px solid var(--line); counter-reset: sector; }
.sector-list li {
    counter-increment: sector; display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 16px;
    padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.2;
    color: var(--text-2); transition: color 0.3s, padding-left 0.4s var(--ease);
}
.sector-list li::before { content: counter(sector, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.85rem; color: var(--brand-2); letter-spacing: 0.1em; }
.sector-list li:hover { color: var(--text); padding-left: 12px; }

/* ─── About + stats ─── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-bottom: 20px; }
.about-text p { color: var(--text-2); margin-bottom: 18px; }
.about-text .btn { margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stat-number { display: block; font-family: var(--font-display); font-weight: 650; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* ─── Demo CTA over a parallax screenshot wall ─── */
.demo { position: relative; overflow: hidden; padding: clamp(110px, 16vw, 200px) 0; isolation: isolate; }
.wall {
    position: absolute; inset: -20% -10%; z-index: -2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
    transform: rotate(-8deg) scale(1.1); opacity: 0.6;
}
.wall-col { display: flex; flex-direction: column; gap: 22px; will-change: transform; }
.wall-col .frame { box-shadow: 0 0 0 1px var(--line); border-radius: 10px; }
.demo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(5, 7, 6, 0.35), rgba(5, 7, 6, 0.92) 90%), linear-gradient(var(--bg), transparent 18%, transparent 82%, var(--bg)); }
.demo-panel {
    position: relative; max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 64px);
    border-radius: 28px; background: rgba(10, 14, 13, 0.72); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
    box-shadow: inset 0 0 0 1px var(--line-strong), 0 60px 120px -40px rgba(0, 0, 0, 0.9);
}
.demo-panel h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin: 18px 0 18px; }
.demo-step { display: block; margin-bottom: 14px; }
.demo-title { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--brand-2); margin-bottom: 10px; }
.demo-panel > p { color: var(--text-2); max-width: 540px; margin: 0 auto 32px; }
.demo-form { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-strong); }
.demo-form:focus-within { box-shadow: inset 0 0 0 1px var(--brand); }
.demo-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; border: 0; background: none; color: var(--text); font-size: 1rem; font-family: var(--font-sans); }
.demo-form input::placeholder { color: var(--muted); }
.demo-form input:focus-visible { outline: none; }
.demo-note { margin-top: 22px; color: var(--muted); font-size: 0.88rem; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-info h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 16px; }
.contact-info > p { color: var(--text-2); margin-bottom: 28px; }
.contact-details { list-style: none; display: grid; gap: 14px; }
.contact-details li { display: flex; align-items: center; gap: 14px; color: var(--text-2); }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--brand-2); }
.contact-details svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(91, 185, 154, 0.12); color: var(--brand-2); flex-shrink: 0; }
.contact-form { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 500; color: var(--text-2); }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
    color: var(--text); font-size: 1rem; font-family: var(--font-sans); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #7b8783; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 185, 154, 0.18); }
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { width: 100%; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading svg { opacity: 0; }
.btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #04110c; border-top-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 0.95rem; text-align: center; }
.form-status.show { display: block; }
.form-status.success { background: rgba(91, 185, 154, 0.14); color: var(--brand-2); }
.form-status.error { background: rgba(255, 122, 122, 0.12); color: var(--danger); }

/* ─── Footer ─── */
footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 56px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 0.93rem; max-width: 340px; }
.footer-live { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--brand-2); font-size: 0.86rem; }
.footer-links h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0; }
.footer-links ul { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.93rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.footer-bottom a { color: var(--muted); }
.social-links { display: flex; gap: 10px; }
.social-links a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); transition: color 0.2s, box-shadow 0.2s; }
.social-links a:hover { color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand); }
.social-links svg { width: 18px; height: 18px; }

/* ─── Scroll reveals (site.js adds .in) ─── */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal="scale"] { transform: translateY(30px) scale(0.96); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal], .no-js .fade-up, .no-js .kin-line > span, .no-js .hero-stage .frame-main, .no-js .float-card { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 1080px) {
    .nav-links { gap: 0; }
    .nav-links a { padding: 8px 10px; }
    .integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .menu-btn { display: block; }
    .nav-cta { display: none; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 4px; margin: 0;
        padding: 16px var(--gutter) 24px; background: rgba(5, 7, 6, 0.97); border-bottom: 1px solid var(--line);
        opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s var(--ease);
    }
    .nav.menu-open { background: rgba(5, 7, 6, 0.97); }
    .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
    .nav-right { margin-left: auto; }

    .float-card { display: none; }
    .story { grid-template-columns: minmax(0, 1fr); }
    .story-stage { display: none; }
    .step { min-height: 0; opacity: 1; padding: 28px 0 44px; }
    .step-media { display: block; }
    .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wall-col:nth-child(n+3) { display: none; }
}

@media (max-width: 600px) {
    :root { --nav-h: 64px; }
    .nav-inner { gap: 12px; }
    .nav-logo span { display: none; }
    .hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
    .hero-ctas .btn { flex: 1 1 100%; }
    .hero-stage { margin-top: 40px; }
    .hero-stage .frame-main { transform: rotateX(calc(14deg * (1 - var(--hp)))) scale(calc(0.96 + 0.04 * var(--hp))); }
    .frame-bar { height: 24px; padding: 0 10px; gap: 5px; }
    .frame-bar i { width: 7px; height: 7px; }
    .frame-title { font-size: 0.66rem; margin-right: 24px; }
    .scroll-cue { display: none; }
    .integrations, .features-grid { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat { padding: 22px 16px; }
    .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sector-list li { grid-template-columns: 44px 1fr; }
    .demo-form { flex-direction: column; border-radius: 22px; }
    .demo-form .btn { width: 100%; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── Reduced motion: no transforms, no loops; content simply fades in. ─── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
    .aurora, .marquee-row, .divider-track, .live-dot::after, .scroll-cue i { animation: none !important; }
    .divider-track span:not(:first-child) { display: none; }
    .divider-track { width: auto; justify-content: center; }
    .marquee-row { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 6px; }
    .marquee-row span[aria-hidden="true"] { display: none; }
    .kin-line > span, .fade-up, [data-reveal], [data-reveal="scale"] { transform: none !important; transition: opacity 0.6s ease !important; }
    .hero-stage .frame-main { transform: none !important; }
    .scene .frame { transform: none !important; filter: none !important; transition: opacity 0.5s ease !important; }
    .cap, .cap * { animation: none !important; }
    .cycler > span { transform: none !important; transition: opacity 0.5s ease !important; }
    .btn, .feature-card, .integ, .sector-list li { transition: none; }
    .btn:hover, .feature-card:hover, .integ:hover { transform: none; }
    .wall { transform: rotate(-8deg) scale(1.1) !important; }
    .wall-col { transform: none !important; }
    .bg-layer { height: 100%; transform: none !important; }
}
