/* ==========================================================================
   SignAI — site stylesheet
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-var-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-var-latin.woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --ink: #0b1024;
    --ink-2: #121a3a;
    --ink-3: #1b2450;
    --text: #0f1430;
    --text-2: #474e6c;
    --text-3: #6b7290;
    --line: #e5e7f0;
    --line-2: #d6d9e6;
    --bg: #ffffff;
    --tint: #f5f6fb;
    --brand: #404c94;          /* logo blue */
    --primary: #3f4fd0;
    --primary-hover: #3240b5;
    --primary-soft: #eceefe;
    --accent: #aab6ff;         /* on dark */
    --mint: #2fd0a2;
    --caption: #ffd447;       /* subtitle yellow, used only for captions */
    --mint-ink: #0c7a5c;
    --amber: #f5b84a;
    --on-dark: #ffffff;
    --on-dark-2: #c3c9e8;
    --on-dark-3: #8d95bf;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-line: rgba(255, 255, 255, 0.11);

    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(15, 20, 48, 0.06);
    --shadow: 0 1px 2px rgba(15, 20, 48, 0.04), 0 8px 24px rgba(15, 20, 48, 0.06);
    --shadow-lg: 0 2px 4px rgba(15, 20, 48, 0.06), 0 24px 64px rgba(15, 20, 48, 0.14);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --container: 1320px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --section-y: clamp(80px, 11vw, 136px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: "cv11", "ss01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    /* Long compounds (Gebärdensprachdolmetscherinnen) and URLs must never push past a narrow column */
    overflow-wrap: break-word;
}
@media (max-width: 640px) {
    :lang(de) p, :lang(de) li, :lang(de) dd, :lang(de) dt, :lang(de) h3 { -webkit-hyphens: auto; hyphens: auto; }
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; color: inherit; }
strong, b { font-weight: 620; }
sup { font-size: 0.65em; line-height: 0; }
sup a { padding: 0 2px; }
button { font: inherit; }

::selection { background: #c9d0ff; color: var(--ink); }

:focus-visible {
    outline: 2.5px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
}
.hero-dark :focus-visible,
.section-dark :focus-visible,
.cta-panel :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent); }

.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: fixed;
    top: 12px; left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; text-decoration: none; }

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.narrow { max-width: calc(820px + 2 * var(--gutter)); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Typography ---------- */
.display {
    font-size: clamp(2.4rem, 4.7vw, 4.6rem);        /* the longest word (Gebärdensprache,) must fit its column */
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 650;
    text-wrap: balance;
}
.display em,
.h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.015em;
    font-size: 1.08em;
    line-height: 0.9;
}
.hero-dark .display em { color: var(--accent); white-space: nowrap; }

.h2 {
    font-size: clamp(2rem, 3.8vw, 3.05rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; }
.h4 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; }
.h5 { font-size: 1.05rem; line-height: 1.35; letter-spacing: -0.01em; }

.lead {
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-2);
    max-width: 40em;
}
.hero-dark .lead { color: var(--on-dark-2); }

.eyebrow {
    margin: 0 0 16px;
    font-size: 0.8rem;
    font-weight: 650;
        color: var(--primary);
}
.eyebrow-light { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.2;
    text-align: center;
    padding-block: 10px;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(63, 79, 208, 0.3), 0 8px 20px -6px rgba(63, 79, 208, 0.45); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--text-3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef0ff; }
.btn-ghost-light { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.btn-link { padding: 0 6px; min-height: 48px; color: var(--primary); }
.btn-link .icon { transition: transform 0.2s var(--ease); }
.btn-link:hover { transform: none; }
.btn-link:hover .icon { transform: translateX(3px); }
.btn-disabled, .btn[disabled] {
    background: var(--tint);
    color: var(--text-3);
    border-color: var(--line);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.btn-row-center { justify-content: center; }
/* On phones, buttons stack full-width so every language gets the same tidy column, however long its labels */
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Pills & tags ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 550;
    line-height: 1.2;
}
.pill-dark { color: var(--on-dark-2); background: var(--glass); border: 1px solid var(--glass-line); }
a.pill-dark:hover { color: #fff; background: rgba(255, 255, 255, 0.09); text-decoration: none; }
.pill .icon { width: 14px; height: 14px; }
.pill-dot, .live-dot {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--mint);
    flex: none;
}
.pill-dot::after, .live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--mint);
    opacity: 0;
    animation: ping 2.4s var(--ease) infinite;
}
.pill-dot-amber { background: var(--amber); }
.pill-dot-amber::after { border-color: var(--amber); }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-2);
    background: var(--tint);
    border: 1px solid var(--line);
    white-space: nowrap;
}
.tag-live { color: var(--mint-ink); background: #e5f8f1; border-color: #c4eedf; }
.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.tag-muted { color: var(--text-3); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    color: #fff;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
    color: var(--text);
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; height: 100%; gap: 24px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 50%; }

.nav-menu { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    display: block;
    padding: 8px 12px;
    border-radius: 999px;
    color: inherit;
    opacity: 0.78;
    font-size: 0.94rem;
    font-weight: 520;
    transition: opacity 0.2s, background-color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; text-decoration: none; }
.nav-links a[aria-current] { background: rgba(127, 139, 200, 0.16); }
.nav-cta { white-space: nowrap; }
.site-header:not(.is-scrolled):not(.is-open) .nav-cta { background: #fff; color: var(--ink); box-shadow: none; }
.site-header:not(.is-scrolled):not(.is-open) .nav-cta:hover { background: #eef0ff; }

.nav-toggle {
    display: none;
    position: relative;
    width: 44px; height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    position: absolute;
    left: 50%;
    width: 20px; height: 2px;
    margin-left: -10px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { transform: translateY(-6px); }
.nav-toggle-bar::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); background: currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: rotate(-45deg); background: currentColor; }

@media (min-width: 1101px) {
    .nav { display: grid; grid-template-columns: 1fr auto auto 1fr; column-gap: 0; }
    .nav-menu { display: contents; }
    .brand { justify-self: start; }
    .nav-cta { justify-self: end; }
    /* 12 + 3 + 1px border + 12 = the same 28px as between the links (12 + 4 + 12) */
    .lang-switch { margin-left: 3px; }
}

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px var(--gutter) 28px;
        background: #fff;
        color: var(--text);
        box-shadow: 0 24px 48px rgba(15, 20, 48, 0.12);
        border-top: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    }
    .site-header.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links a { padding: 14px 4px; border-radius: 0; font-size: 1.05rem; opacity: 1; border-bottom: 1px solid var(--line); }
    .nav-links a[aria-current] { background: none; color: var(--primary); }
    .nav-cta { width: 100%; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-dark { background: var(--ink); color: var(--on-dark); }
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(76, 92, 220, 0.45), transparent 60%),
        radial-gradient(50% 60% at 0% 100%, rgba(64, 76, 148, 0.5), transparent 65%);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1.1px, transparent 1.3px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.85) 65%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.85) 65%, transparent 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 5vw, 88px);
    padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
    padding-bottom: clamp(72px, 9vw, 120px);
}
.hero-compact .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.hero-center { text-align: center; }
.hero-center .container {
    padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
    padding-bottom: clamp(72px, 9vw, 120px);
}
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .crumbs { justify-content: center; }
.hero-full { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
/* A full-screen hero sizes its spacing by the screen height, so short laptop screens still fit it */
.hero-full .hero-grid {
    padding-top: calc(var(--header-h) + clamp(24px, 6vh, 104px));
    padding-bottom: clamp(64px, 9vh, 128px);
}
/* The hero keeps the page grid so it lines up with the nav; in German the headline is capped so Gebärdensprache, still fits its half */
/* The lower bound shrinks on the narrowest phones so Gebärdensprache, still fits; the cap keeps FR/ES at three lines on big screens */
.hero-full .display { font-size: clamp(min(2.4rem, 10.5vw), 5.2vw, 4.75rem); }
.hero-full .display:lang(de) { font-size: clamp(min(2.4rem, 10.5vw), 4.7vw, 4.5rem); }
/* Stacked on tablets, the headline gets more of the width so it doesn't look lost above the demo */
@media (max-width: 900px) {
    .hero-full .display, .hero-full .display:lang(de) { font-size: clamp(min(2.4rem, 10.5vw), 6.6vw, 3.5rem); }
}
/* Side by side down to 901px, so tablets in landscape (1024) see the demo on the first screen */
@media (min-width: 901px) and (max-width: 1024px) {
    .hero-full .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* On short screens the demo (frame 20:17) is sized by the screen height so the whole hero still fits; it hugs the right edge like the nav button */
.hero-full .demo { max-width: calc((100svh - 268px) * 20 / 17); margin-left: auto; }
@media (max-width: 1024px) { .hero-full .demo { max-width: none; } }
/* Side by side, the demo sits a little higher than the copy so the signer's head is level with the headline's first line */
@media (min-width: 1025px) {
    .hero-full .hero-visual { position: relative; top: -20px; }
    .hero-full .hero-copy { position: relative; top: -15px; }
}
/* Entrance: the copy rises in line by line, then the demo (JS only, so nothing stays hidden without it) */
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: no-preference) {
    .js .hero-full .hero-copy > *,
    .js .hero-full .demo { animation: hero-in 0.8s var(--ease) both; }
    .js .hero-full .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
    .js .hero-full .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
    .js .hero-full .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
    .js .hero-full .demo { animation-delay: 0.15s; }
}

/* Scroll hint at the bottom of the full-screen hero */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: clamp(16px, 3vh, 32px);
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--on-dark-2);
    transition: color 0.2s, background-color 0.2s;
}
.scroll-hint:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.scroll-hint .icon { width: 26px; height: 26px; animation: scroll-hint 1.8s ease-in-out infinite; }
@keyframes scroll-hint { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(5px); opacity: 1; } }
@media (max-width: 1024px), (max-height: 800px) { .scroll-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint .icon { animation: none; } }
.hero .display { margin-bottom: 24px; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 36px;
    color: var(--on-dark-3);
    font-size: 0.84rem;
}
.hero-meta li { white-space: nowrap; }
.hero .lead { max-width: 34em; text-wrap: pretty; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--accent); width: 16px; height: 16px; }

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--on-dark-3);
}
.crumbs a { color: var(--on-dark-2); }

@media (max-width: 1024px) {
    .hero-grid, .hero-compact .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-visual { max-width: 720px; }
}

/* ---------- Keypoint illustration ---------- */
.kp-grid line { stroke: rgba(255, 255, 255, 0.035); stroke-width: 1; }
.kp-bone { stroke: rgba(170, 182, 255, 0.6); stroke-width: 2.2; stroke-linecap: round; }
.kp-joint { fill: #fff; }
.kp-fpt { fill: rgba(200, 210, 255, 0.6); }
.kp-mpt { fill: var(--mint); }
.kp-finger { stroke: #92a3ff; stroke-width: 1.6; stroke-linecap: round; }
.kp-hpt { fill: #fff; }
.kp-box { fill: none; stroke-width: 1.2; stroke-dasharray: 4 3; }
.kp-box-hand { stroke: rgba(146, 163, 255, 0.75); fill: rgba(146, 163, 255, 0.85); }
rect.kp-box-hand { fill: none; }
.kp-box-mouth { stroke: rgba(47, 208, 162, 0.85); fill: rgba(47, 208, 162, 0.95); }
rect.kp-box-mouth { fill: none; }
.kp-label { font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.06em; stroke: none; }
.kp-anim { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4.5s ease-in-out infinite alternate; }
.kp-hand-l { transform-box: fill-box; transform-origin: 0% 50%; animation: sway2 3.2s ease-in-out infinite alternate; }
.kp-mouth { transform-box: fill-box; transform-origin: center; animation: mouth 1.6s ease-in-out infinite alternate; }


/* ---------- Recognition strip ---------- */
.recognition { border-bottom: 1px solid var(--line); background: var(--bg); }
.recognition-row {
    display: grid;
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 28px;
}
.award { display: flex; align-items: center; gap: 16px; }
.award p { margin: 0; text-wrap: balance; }
.award strong { display: block; font-size: 0.95rem; line-height: 1.35; color: var(--text); }
.award p span { display: block; margin-top: 3px; font-size: 0.84rem; line-height: 1.4; color: var(--text-2); }
.award-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    flex: none;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fff3cf, #f2c45c 55%, #c98d1e);
    color: #4a3205;
    font-weight: 750;
    font-size: 1.1rem;
    letter-spacing: -0.04em;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.4), 0 6px 16px -6px rgba(201, 141, 30, 0.7);
}
.award-mark sup { font-size: 0.55em; line-height: 1; vertical-align: 0.55em; }
.recognition-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}
.press-row { min-width: 0; display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
    .recognition-row { grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; }
    .award { max-width: 480px; }
    .press-row { padding: 4px 0 4px 48px; border-top: 0; border-left: 1px solid var(--line); }
}
.press-marquee {
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.press-list { display: flex; align-items: center; width: max-content; animation: press-scroll 45s linear infinite; }
.press-list li { flex: none; padding-right: 48px; }
.press-marquee:hover .press-list, .press-marquee:focus-within .press-list { animation-play-state: paused; }
@keyframes press-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .press-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .press-list { animation: none; }
    .press-dup { display: none; }
}
.press-list a { display: block; }
.press-list img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.65;
    transition: filter 0.2s, opacity 0.2s;
}
.press-list a:hover img, .press-list a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 599px) {
    .award-mark { width: 46px; height: 46px; font-size: 1rem; }
    .press-list li { padding-right: 36px; }
    .press-list img { height: 30px; max-width: 200px; }
}

/* ---------- Sections ---------- */
.section { --pad: var(--section-y); padding: var(--pad) 0; position: relative; }
/* A link to a section lands with its heading just below the header, not below the section's empty top padding */
.section[id] { scroll-margin-top: calc(12px - var(--pad)); }
.section-tint { background: var(--tint); }
#roadmap { padding-bottom: clamp(24px, 4vw, 48px); }
.section-dark { background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 60% at 100% 0%, rgba(76, 92, 220, 0.35), transparent 60%),
        radial-gradient(40% 50% at 0% 100%, rgba(64, 76, 148, 0.35), transparent 60%);
}
.section-dark p { color: var(--on-dark-2); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .h2 { margin-bottom: 20px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .section-lead { margin-left: auto; margin-right: auto; }
/* Title left, intro right: a short header, so the content below starts higher */
.split-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px clamp(32px, 6vw, 96px); align-items: end; max-width: none; }
.split-head .h2 { margin-bottom: 0; }
/* Intro starts level with the title instead of rising above it when it is the taller column */
.split-head-top { align-items: start; }
.split-head-top > div { padding-top: 0.5em; }
.split-head p { color: var(--text-2); font-size: 1.06rem; }
.split-head p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .split-head { grid-template-columns: minmax(0, 1fr); } }
.section-lead { font-size: 1.12rem; color: var(--text-2); max-width: 44em; }
.section-dark .section-lead, .cta-panel .section-lead { color: var(--on-dark-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.stat { position: relative; padding-top: 24px; }
.stat::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--line-2);
    transform-origin: left;
}
.stat-num {
    margin-bottom: 12px;
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.stat-label { color: var(--text-2); max-width: 22em; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Motion ----------
   Scroll reveal: main.js adds .is-in to these blocks as they enter the viewport and sets --i on each
   child, so children rise in one after another. Keep the selector list in sync with REVEAL in main.js.
   Only with JS and when motion is welcome; everything is visible otherwise. */
@keyframes reveal { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } }
@media (prefers-reduced-motion: no-preference) {
    .js :is([data-reveal], .section-head, .split-copy, .mission-points, .steps, .streams, .principles, .features, .timeline, .cards, .contact-row, .faq-list, .signup, .sources-inner, .footer-brand, .footer-cols, .footer-bottom):not(.is-in) > * { opacity: 0; }
    .js .is-in > * { animation: reveal 0.9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }

    /* Principles slide in sideways: the top row from the left, the bottom row from the right
       (on two columns and one column, alternating) */
    .js .principles.is-in > * { animation: slide-l 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 110ms); }
    .js .principles.is-in > :nth-child(n+4) { animation-name: slide-r; }
    @media (max-width: 900px) {
        .js .principles.is-in > :nth-child(odd) { animation-name: slide-l; }
        .js .principles.is-in > :nth-child(even) { animation-name: slide-r; }
    }
    @keyframes slide-l { from { opacity: 0; transform: translateX(-72px); filter: blur(6px); } }
    @keyframes slide-r { from { opacity: 0; transform: translateX(72px); filter: blur(6px); } }

    /* Icons pop in just after their card */
    .js .is-in > * :is(.card-icon, .principle-icon, .feature-icon, .stream-icon, .flow-icon) {
        animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
        animation-delay: calc(var(--i, 0) * 90ms + 0.2s);
    }

    /* Photos settle in from a slight zoom */
    .js .photo.is-in > img { animation: photo-in 1.6s var(--ease) backwards; }
    @keyframes photo-in { from { opacity: 0; transform: scale(1.08); } }

    /* Lines draw themselves */
    .stat::before, .step::before { transform-origin: left; transition: transform 1s var(--ease) calc(var(--i, 0) * 90ms + 0.25s); }
    .js .stats:not(.is-in) .stat::before, .js .steps:not(.is-in) .step::before { transform: scaleX(0); }

    /* Technology streams: the connectors draw downwards, then a light keeps running through them into Fusion */
    .stream + .stream::before { transform-origin: top; transition: transform 0.5s var(--ease) calc(var(--i, 0) * 120ms + 0.3s); }
    .js .streams:not(.is-in) .stream + .stream::before { transform: scaleY(0); }
    .stream + .stream::after {
        content: "";
        position: absolute;
        left: 46px; top: -19px;
        width: 2px; height: 8px;
        border-radius: 2px;
        background: #fff;
        box-shadow: 0 0 8px 1px rgba(170, 182, 255, 0.9);
        opacity: 0;
    }
    .js .streams.is-in .stream + .stream::after { animation: stream-flow 3.6s ease-in infinite; animation-delay: calc(var(--i, 0) * 0.4s + 1.6s); }
    .js .streams.is-in > .stream-fusion { animation: reveal 0.9s var(--ease) backwards, fuse-glow 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 90ms), 2.8s; }
    @keyframes stream-flow {
        0% { transform: translateY(0); opacity: 0; }
        4% { opacity: 1; }
        12% { transform: translateY(11px); opacity: 1; }
        16%, 100% { transform: translateY(11px); opacity: 0; }
    }
    @keyframes fuse-glow {
        0%, 100% { box-shadow: 0 0 0 0 rgba(120, 135, 255, 0); border-color: rgba(170, 182, 255, 0.3); }
        20% { box-shadow: 0 0 44px -6px rgba(120, 135, 255, 0.6); border-color: rgba(170, 182, 255, 0.7); }
    }

    /* Timeline stage: each dot lights up as the line reaches it (main.js marks it .is-passed) */
    .tl-item::before { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
    .tl-scroll .tl-item:not(.is-passed)::before { background: var(--tint); border-color: var(--line-2); box-shadow: none; transform: scale(0.7); }
    .tl-scroll .tl-item.is-next.is-passed::before { border-color: var(--primary); }
    .tl-item.is-now.is-passed::before { animation: demo-dot 1.8s ease-out infinite; }

    /* Hover: cards and tiles lift a little */
    .card:hover, .stream:hover { transform: translateY(-4px); }
    .stream { transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
    .stream:hover { border-color: rgba(170, 182, 255, 0.35); }
    :is(.principle, .feature, .mission-point) :is(.principle-icon, .feature-icon, .flow-icon) { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
    :is(.principle, .feature, .mission-point):hover :is(.principle-icon, .feature-icon, .flow-icon) { transform: translateY(-3px) rotate(-6deg); }
}

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split-top { align-items: start; }
.split-copy .h2 { margin-bottom: 24px; }
.split-copy > p { color: var(--text-2); font-size: 1.06rem; }
.section-dark .split-copy > p { color: var(--on-dark-2); }
.split-copy .btn-row { margin-top: 36px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.checklist { display: grid; gap: 14px; margin-top: 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist strong { color: var(--text); }
.checklist .icon {
    width: 22px; height: 22px;
    padding: 4px;
    margin-top: 1px;
    border-radius: 50%;
    color: var(--primary);
    background: var(--primary-soft);
    stroke-width: 2.5;
}

.flow-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.flow-step { display: flex; align-items: center; gap: 18px; }
.flow-icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    flex: none;
    border-radius: 16px;
    color: var(--primary);
    background: var(--primary-soft);
}
.flow-icon .icon { width: 26px; height: 26px; }
.flow-icon-accent { color: #fff; background: linear-gradient(135deg, var(--primary), var(--brand)); box-shadow: 0 10px 24px -8px rgba(63, 79, 208, 0.6); }
.flow-title { margin: 0 0 2px; font-weight: 650; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--text); }
.flow-text { margin: 0; color: var(--text-3); font-size: 0.95rem; }
.flow-line { width: 2px; height: 32px; margin: 8px 0 8px 27px; background: linear-gradient(var(--line-2), var(--primary-soft)); border-radius: 2px; }

/* ---------- Photos ----------
   Cropped to their frame; each sets its own focus point with object-position. Where a card sits over the
   bottom of a photo (mission, contact), the negative margin is the overlap. */
/* isolation keeps the rounded clip while the zoom-in animation runs (Chromium drops it on composited children) */
.photo { position: relative; isolation: isolate; margin: 0; overflow: hidden; border-radius: var(--radius-xl); background: var(--line); }
.photo :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-wide { aspect-ratio: 21 / 9; }
.photo-tall { aspect-ratio: 4 / 5; }
.why-photo { margin-top: clamp(56px, 8vw, 96px); }
.why-photo img { object-position: 50% 30%; }
/* Mission: the photo fills its bento cell */
.mission-photo { min-height: 420px; }
.mission-photo img { position: absolute; inset: 0; object-position: 50% 62%; }
.how-photo { aspect-ratio: 4 / 3; }
.how-photo video { object-position: 38% 50%; }
.work-photo { aspect-ratio: 16 / 7; }
.work-photo img { object-position: 50% 40%; }
.work-cards { position: relative; margin: -120px clamp(16px, 3vw, 40px) 0; }
@media (max-width: 900px) {
    .photo-tall { aspect-ratio: 4 / 3; }
    .mission-photo { min-height: 0; aspect-ratio: 16 / 9; }
    .work-photo { aspect-ratio: 2 / 1; }
    .work-cards { margin-top: -80px; }
}
@media (max-width: 760px) {
    .photo { border-radius: var(--radius-lg); }
    .photo-wide, .work-photo, .mission-photo { aspect-ratio: 4 / 3; }
    .work-cards { margin: -48px 12px 0; }
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--line);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card p { color: var(--text-2); font-size: 0.98rem; }
.card .h4 { margin-top: 8px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
}
.card-icon .icon { width: 22px; height: 22px; }
.card-feature { border-color: #cfd5fb; background: linear-gradient(180deg, #f6f7ff, #fff 60%); }
.card-muted { background: var(--tint); }
.card-muted .card-icon { color: var(--text-3); background: #e9ebf3; }
.card-muted .btn { margin-top: auto; align-self: flex-start; }
.card-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.card-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.card-link:hover { text-decoration: none; }
.card-link:hover .icon { transform: translateX(3px); }

.card-dark { background: var(--glass); border-color: var(--glass-line); color: var(--on-dark); }
.card-dark:hover { border-color: rgba(255, 255, 255, 0.2); box-shadow: none; background: rgba(255, 255, 255, 0.07); }
.card-dark p { color: var(--on-dark-2); }
.card-dark .card-icon { color: var(--accent); background: rgba(170, 182, 255, 0.12); }
.card-dark .card-link { color: var(--accent); }

.dim {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-3);
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--tint);
    border: 1px solid var(--line);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--primary); }
/* The blue part of the line fills up from step to step */
.steps-2 .step:nth-child(1)::before { width: 12%; }
.steps-2 .step:nth-child(2)::before { width: 38%; }
.steps-2 .step:nth-child(3)::before { width: 64%; }
.steps-2 .step:nth-child(4)::before { width: 90%; }
.steps-5 .step:nth-child(2)::before { width: 25%; }
.steps-5 .step:nth-child(3)::before { width: 50%; }
.steps-5 .step:nth-child(4)::before { width: 75%; }
.steps-5 .step:nth-child(5)::before { width: 100%; }
.step-num { display: block; margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--primary); }
.step .h4 { margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 0.98rem; }
@media (max-width: 1024px) { .steps, .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .steps, .steps-5 { grid-template-columns: 1fr; } }

/* ---------- Technology band ---------- */
/* The streams read top to bottom into Fusion: a short connector joins each card's icon to the next */
.streams { display: grid; gap: 18px; }
.stream {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: var(--glass);
    border: 1px solid var(--glass-line);
}
.stream + .stream::before {
    content: "";
    position: absolute;
    left: 46px;
    top: -19px;
    width: 2px;
    height: 18px;
    background: linear-gradient(rgba(170, 182, 255, 0.15), rgba(170, 182, 255, 0.55));
}
.stream .h5 { margin: 0; }
.stream p { margin: 4px 0 0; font-size: 0.95rem; color: var(--on-dark-2); }
.stream-icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    flex: none;
    border-radius: 14px;
    color: var(--accent);
    background: rgba(170, 182, 255, 0.12);
}
.stream-fusion { background: linear-gradient(135deg, rgba(63, 79, 208, 0.45), rgba(64, 76, 148, 0.2)); border-color: rgba(170, 182, 255, 0.3); }
.stream-fusion .stream-icon { color: #fff; background: rgba(255, 255, 255, 0.14); }

/* ---------- Principles & features ---------- */
#principles { overflow-x: clip; }   /* the slide-in starts off to the side */
.principles, .features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.principle .h5, .feature .h5 { margin: 18px 0 8px; }
.principle p, .feature p { color: var(--text-2); font-size: 0.98rem; }
.principle-icon, .feature-icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
}
@media (max-width: 900px) { .principles, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles, .features { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Timeline ----------
   A plain list with the line filled up to "now". With JS and motion it becomes a pinned stage (.tl-scroll on
   .tl-track): the stage sticks while you scroll through the track and main.js moves the steps past an anchor,
   setting on each step --y (anchor to its dot), --len (its dot to the next), --a (distance from the active step,
   0 = active) and --p (how much of its line segment is filled), and on the track --pos (the active step, fractional). */
.timeline { position: relative; list-style: none; max-width: 880px; }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 60px; }
.tl-item::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 6px;
    left: 182px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--tint);
    border: 2px solid var(--line-2);
}
/* The line runs in segments, from each dot (centre 13px down) to the next */
.tl-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 188px;
    width: 2px; height: var(--len, 100%);
    background: linear-gradient(var(--primary), var(--primary)) top / 100% calc(var(--p, 0) * 100%) no-repeat, var(--line-2);
}
.tl-item.is-done { --p: 1; }
.tl-item.is-done::before { background: var(--primary); border-color: var(--primary); }
.tl-item.is-now::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 6px rgba(47, 208, 162, 0.2); }
.tl-date { grid-row: span 2; margin: 0; padding-top: 1px; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--text-3); text-align: right; }
.tl-item.is-now .tl-date { color: var(--mint-ink); }
.tl-title { margin-bottom: 6px; }
.tl-text { color: var(--text-2); font-size: 0.98rem; }
.tl-count { display: none; }
@media (max-width: 680px) {
    .tl-item:not(:last-child)::after { left: 6px; }
    .tl-item { padding-left: 36px; }
    .tl-body { grid-template-columns: 1fr; }
    .tl-item::before { left: 0; }
    .tl-date { grid-row: auto; text-align: left; margin-bottom: 6px; }
}

/* Pinned stage: heading and a rolling step counter on the left, the steps on the right */
.tl-scroll { height: calc(100vh - var(--header-h) + (var(--n) - 1) * 60vh); height: calc(100svh - var(--header-h) + (var(--n) - 1) * 60svh); }
.tl-scroll .tl-stage {
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: center;
    padding-bottom: 7vh;            /* lifts everything (heading, counter, the active dot) a little above the true middle */
}
/* Heading and counter are one centred block */
.tl-scroll .tl-head { margin: 0; text-align: center; }   /* its middle is the stage's middle, level with the active dot */
.tl-scroll .tl-head .h2 { font-size: clamp(2.3rem, 3.8vw, 3.6rem); text-wrap: balance; }
.tl-scroll .tl-count { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: clamp(28px, 5vh, 56px) 0 0; font-family: var(--font-mono); font-weight: 600; color: var(--text-3); }
.tl-odo { display: inline-flex; flex-direction: column; height: 1.1em; line-height: 1.1; overflow: hidden; font-size: clamp(3.2rem, 6vw, 5.6rem); letter-spacing: -0.05em; color: var(--primary); }
.tl-odo span { transform: translateY(calc(var(--pos, 0) * -100%)); }
.tl-of { padding-bottom: 0.9em; font-size: 0.95rem; }

.tl-scroll .timeline {
    --anchor: 50%;                   /* the active step's centre rests here: the middle of the stage, level with the heading */
    --inset: 20px;                   /* room around the line, so the dots' rings aren't clipped by overflow */
    align-self: stretch;
    max-width: none;
    margin-left: calc(var(--inset) * -1);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.tl-scroll .tl-item {
    position: absolute;
    left: var(--inset); right: 0;
    top: var(--anchor);
    padding: 0 0 0 52px;             /* main.js sets --y (item top) and --v (visible height); the dot sits at --v / 2 */
    transform: translateY(var(--y, 0));
    cursor: pointer;
}
.tl-scroll .tl-item.is-active { cursor: auto; }
.tl-scroll .tl-item::before { top: calc(var(--v, 26px) / 2 - 9px); left: -1px; width: 18px; height: 18px; opacity: clamp(0, 2.4 - var(--a, 0), 1); }
.tl-scroll .tl-item.is-active:not(.is-now)::before { box-shadow: 0 0 0 6px rgba(63, 79, 208, 0.14); }
/* The line fades out with the steps, so it doesn't run on into empty space */
.tl-scroll .tl-item::after { top: calc(var(--v, 26px) / 2); left: 7px; opacity: clamp(0, 2.2 - var(--a, 0), 1); }
.tl-scroll .tl-body {
    display: block;
    max-width: 640px;
    transform-origin: 0 0;
    scale: calc(1 - min(var(--a, 0), 1) * 0.2);              /* keep 0.2 in sync with SMALL in main.js */
    opacity: clamp(0, 1 - var(--a, 0) * 0.4, 1);
}
.tl-scroll .tl-date { margin-bottom: 14px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: left; }
.tl-scroll .is-done .tl-date { color: var(--primary); }
.tl-scroll .tl-title { margin-bottom: 16px; font-size: clamp(1.55rem, 2.7vw, 2.45rem); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.tl-scroll .tl-text { max-width: 34em; font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.6; opacity: clamp(0, 1 - var(--a, 0) * 1.6, 1); }
@media (max-width: 900px) {
    .tl-scroll .tl-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding: 28px 0 0; }
    .tl-scroll .tl-head .h2 { margin-bottom: 0; font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .tl-scroll .timeline { --inset: 12px; }
    .tl-scroll .tl-count { margin-top: 10px; }
    .tl-odo { font-size: 2.2rem; }
    .tl-of { padding-bottom: 0.35em; }
    .tl-scroll .tl-item { padding-left: 40px; }
}

.notice {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--line);
    max-width: 880px;
}
.notice p { color: var(--text-2); font-size: 0.96rem; }
.notice strong { color: var(--text); }
.notice-icon {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    flex: none;
    border-radius: 50%;
    color: #8a5a00;
    background: #fff3d8;
}
.notice-icon .icon { width: 18px; height: 18px; }

/* ---------- CTA panel ---------- */
.cta-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
    border-radius: var(--radius-xl);
    background: var(--ink);
    color: var(--on-dark);
}
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(76, 92, 220, 0.55), transparent 65%),
        radial-gradient(40% 50% at 100% 100%, rgba(47, 208, 162, 0.12), transparent 70%);
}
.contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-line);
}
.contact-row a { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark-2); font-weight: 550; }
.contact-row a:hover { color: #fff; text-decoration: none; }
.contact-row .icon { color: var(--accent); }
@media (max-width: 520px) { .contact-row { flex-direction: column; align-items: center; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
@media (max-width: 900px) {
    .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .faq-grid .section-head { position: static; }
}
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { min-width: 0; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.faq-icon {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    color: var(--text-2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.faq-icon .icon { width: 16px; height: 16px; }
.faq-item[open]:not(.is-closing) .faq-icon { transform: rotate(135deg); background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-item summary:hover .faq-icon { border-color: var(--primary); color: var(--primary); }
.faq-item[open]:not(.is-closing) summary:hover .faq-icon { color: #fff; }
.faq-q { transition: color 0.2s; }
.faq-item summary:hover .faq-q, .faq-item[open]:not(.is-closing) .faq-q { color: var(--primary); }
.faq-a { padding: 0 52px 24px 0; color: var(--text-2); }
.faq-item.is-animating .faq-a { overflow: hidden; }

/* ---------- Sources ---------- */
.sources { padding: clamp(40px, 6vw, 64px) 0; }
.sources-inner { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px clamp(24px, 5vw, 64px); }
.sources-title { margin: 0; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.sources-list { list-style: none; counter-reset: src; font-size: 0.88rem; line-height: 1.55; color: var(--text-2); }
.sources-list li { position: relative; padding: 12px 0 12px 2.2em; border-top: 1px solid var(--line); counter-increment: src; transition: color 0.2s; }
.sources-list li:first-child { padding-top: 0; border-top: 0; }
.sources-list li::before { content: counter(src); position: absolute; left: 0; color: var(--text-3); font-weight: 650; font-variant-numeric: tabular-nums; }
.sources-list li:target, .sources-list li:target::before { color: var(--primary); }
.sources a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.sources a:hover { text-decoration-color: currentColor; }
.sources-credit { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 0.82rem; color: var(--text-3); }
@media (max-width: 760px) { .sources-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Technology page ---------- */
.pipeline-photo { margin-top: clamp(56px, 8vw, 96px); }
.pipeline-photo { aspect-ratio: 2 / 1; }   /* taller than photo-wide so the signer's head stays in frame */
.pipeline-photo video { object-position: 50% 0%; }
@media (max-width: 760px) { .pipeline-photo { aspect-ratio: 4 / 3; } }

.stream-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .stream-cards { grid-template-columns: 1fr; } }
.fusion-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 24px 28px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--ink-3), var(--brand));
    color: #fff;
}
.fusion-bar p { color: var(--on-dark-2); }
.fusion-bar strong { color: #fff; }
.fusion-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, 0.14); }
@media (max-width: 560px) { .fusion-bar { flex-direction: column; align-items: flex-start; } }

.code-card {
    border-radius: var(--radius-lg);
    background: var(--ink);
    border: 1px solid var(--ink-3);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.code-title {
    margin: 0;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--on-dark-3);
}
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; }
.code-card code { font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.75; color: var(--on-dark-2); }
.c-k { color: var(--accent); font-weight: 600; }
.c-s { color: #7debc9; }

.flow-card { border-radius: var(--radius-lg); background: var(--ink); border: 1px solid var(--ink-3); box-shadow: var(--shadow-lg); overflow: hidden; }
.flow { list-style: none; margin: 0; padding: 18px 22px 22px; display: grid; gap: 16px; }
.flow-step { position: relative; display: grid; align-items: start; justify-items: start; gap: 8px; padding-left: 36px; }
.flow-step::before { content: ""; position: absolute; left: 7px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(170, 182, 255, 0.16); }
.flow-step:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: -14px; width: 2px; background: linear-gradient(var(--accent), rgba(170, 182, 255, 0.1)); }
.flow-label { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-3); }
.flow-label em { margin-left: 8px; padding: 2px 8px; border-radius: 99px; font-style: normal; letter-spacing: 0; text-transform: none; background: rgba(125, 235, 201, 0.14); color: #7debc9; }
.flow-signs, .flow-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-sign { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: var(--accent); }
.flow-sign svg { width: 20px; height: 20px; }
.flow-chips span { padding: 5px 13px; border-radius: 99px; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--ink); background: var(--accent); }
.flow-out { margin: 0; font-size: 1.05rem; line-height: 1.4; font-weight: 600; color: #fff; }
.flow-final .flow-out { padding: 10px 14px; border-radius: var(--radius); border: 1px dashed rgba(125, 235, 201, 0.5); background: rgba(125, 235, 201, 0.06); }

.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.stack-label { margin: 0; font-size: 0.78rem; font-weight: 650; color: var(--text-3); }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.stack li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-2); }

.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.banner .h3 { margin-bottom: 10px; }
.banner p { color: var(--text-2); max-width: 36em; }
.banner .btn-row { margin-top: 0; flex: none; }
@media (max-width: 860px) { .banner { flex-direction: column; align-items: flex-start; } }

.pilot-card {
    padding: clamp(28px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--tint);
    border: 1px solid var(--line);
}
.pilot-card .checklist { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: clamp(64px, 8vw, 96px) 0 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 48px; }
.footer-brand p { max-width: 26em; margin: 18px 0 20px; color: var(--on-dark-3); font-size: 0.96rem; }
.brand-light { color: #fff; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 550; }
.footer-mail .icon { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-title { margin-bottom: 16px; font-size: 0.8rem; font-weight: 650; color: var(--on-dark-3); }
.footer-col ul { display: grid; gap: 10px; list-style: none; }
.footer-col a { color: var(--on-dark-2); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    color: var(--on-dark-3);
}
.footer-bottom-links { display: flex; align-items: center; gap: 16px; }
.footer-social { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--on-dark-2); border: 1px solid rgba(255, 255, 255, 0.12); }
.footer-social:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.footer-social .icon { width: 18px; height: 18px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-bottom { flex-direction: column-reverse; align-items: flex-start; } }

/* ---------- Hero demo (signer replay + caption) ---------- */
.demo { margin: 0; }
.demo-bar,
.demo-frame { border: 1px solid rgba(255, 255, 255, 0.09); }
.demo-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: #161a38;
    font-size: 0.76rem;
    color: var(--on-dark-2);
}
.demo-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); transition: background-color 0.3s; }
.demo.is-reading .demo-dot { background: var(--mint); animation: demo-dot 1.4s ease-out infinite; }
.demo.is-done .demo-dot { background: var(--caption); }
@keyframes demo-dot { from { box-shadow: 0 0 0 0 rgba(47, 208, 162, 0.55); } to { box-shadow: 0 0 0 7px rgba(47, 208, 162, 0); } }
.demo-title { font-weight: 600; color: #fff; }
.demo-tag { padding: 1px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); font-size: 0.68rem; }
.demo-pair { margin-left: auto; color: var(--on-dark-3); font-size: 0.72rem; }
.demo-frame {
    position: relative;
    overflow: hidden;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #0d1130;
    box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.7);
}
.demo-frame .signer { display: block; width: 100%; height: auto; }
.demo-frame.is-live .signer { visibility: hidden; }
/* 10% of the width = 40 of 400 drawing units: the frame is 400×340 (VH in main.js), taller than the 4:3 placeholder SVG */
.demo-frame { padding-bottom: 10%; }
.signer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.demo-frame.is-live .signer-canvas { display: block; animation: demo-in 0.7s var(--ease) both; }
@keyframes demo-in { from { opacity: 0; } }
/* With JS the box stays empty until the motion data is in and the signer fades in, instead of flashing the static fallback first */
.js .demo-frame:not(.is-live):not(.is-static) .signer,
.js .demo-frame:not(.is-live):not(.is-static) .demo-caption { opacity: 0; transition: none; }
.demo-caption {
    position: absolute;
    left: 0; right: 0; bottom: 34px;
    margin: 0;
    padding: 0 28px;
    text-align: center;
    line-height: 1.75;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-caption.is-shown { opacity: 1; transform: none; }
.demo-caption > span {
    padding: 0.2em 0.55em;
    border-radius: 4px;
    background: rgba(14, 17, 41, 0.86);
    color: var(--caption);
    font-size: clamp(1rem, 1.55vw, 1.3rem);
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: color 0.3s ease;
}
/* While signing, the translation builds up word by word: provisional text with a cursor */
.demo-caption:not(.is-final) > span { color: rgba(255, 255, 255, 0.86); }
.demo-caption:not(.is-final) > span::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    vertical-align: -0.14em;
    background: var(--mint);
    animation: demo-caret 1s steps(1) infinite;
}
@keyframes demo-caret { 50% { opacity: 0; } }
/* A word the recogniser corrected lights up briefly */
.demo-caption .w { border-radius: 3px; }
.demo-caption .w.is-fixed { animation: demo-fix 1.2s ease-out; }
@keyframes demo-fix {
    0%, 25% { background: rgba(47, 208, 162, 0.42); color: #fff; }
    100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .demo.is-reading .demo-dot, .demo-caption > span::after, .demo-caption .w.is-fixed { animation: none; }
}
.demo-note { margin: 12px 2px 0; font-size: 0.76rem; line-height: 1.5; color: var(--on-dark-3); text-wrap: pretty; }
.demo-note sup { margin-left: 1px; font-size: 0.7em; }
.demo-note sup a { color: var(--on-dark-2); text-decoration: none; }
.demo-note sup a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 520px) {
    .demo-caption { bottom: 22px; padding: 0 14px; }
}

/* ---------- Mission points ----------
   Bento grid: the photo spans two rows on the left; the accent point and the dark CTA tile sit on a diagonal */
.mission-points { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 20px; }
.mission-photo { grid-row: span 2; }
.mission-point {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: clamp(22px, 2.4vw, 32px);
    border-radius: var(--radius-xl);
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.mission-point .h5 { margin: auto 0 8px; padding-top: 24px; color: var(--text); }
.mission-point p { margin: 0; color: var(--text-2); font-size: 1rem; }
.mission-point-accent { background: linear-gradient(135deg, var(--primary), var(--brand)); border-color: transparent; }
.mission-point-accent .h5 { color: #fff; }
.mission-point-accent p { color: rgba(255, 255, 255, 0.84); }
:is(.mission-point-accent, .mission-cta) .flow-icon { color: #fff; background: rgba(255, 255, 255, 0.14); }
.mission-cta { grid-column: 2; grid-row: 2; background: var(--ink); border-color: var(--ink); text-decoration: none; }
.mission-cta .h5 { margin-bottom: 0; padding-right: 44px; color: #fff; font-size: 1.3rem; }
.mission-cta-arrow { position: absolute; right: clamp(22px, 2.4vw, 32px); bottom: clamp(22px, 2.4vw, 32px); color: #fff; transition: transform 0.25s var(--ease); }
.mission-cta-arrow .icon { width: 26px; height: 26px; }
.mission-cta:hover .mission-cta-arrow { transform: translateX(4px); }
.mission-cta:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 900px) {
    .mission-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mission-photo { grid-column: 1 / -1; grid-row: auto; }
    .mission-cta { grid-column: auto; grid-row: auto; }
}
@media (max-width: 760px) {
    .mission-points { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .mission-point { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; min-height: 0; border-radius: var(--radius-lg); }
    .mission-point .flow-icon { grid-row: span 2; }
    .mission-point .h5 { margin: 2px 0 6px; padding-top: 0; }
    .mission-cta { align-items: center; }
    .mission-cta .h5 { margin: 0; }
}

.tl-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.tl-link .icon { width: 15px; height: 15px; }
.faq-cta { margin-top: 28px; }

/* ---------- Sign-up ---------- */
.signup-section { --pad: clamp(56px, 8vw, 96px); }
.signup {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    padding: clamp(32px, 6vw, 72px);
    border-radius: var(--radius-xl);
    background: var(--ink);
    color: var(--on-dark);
}
.signup::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 90% at 0% 0%, rgba(76, 92, 220, 0.55), transparent 65%),
        radial-gradient(45% 60% at 100% 100%, rgba(47, 208, 162, 0.14), transparent 70%);
}
.signup .h2 { margin-bottom: 18px; }
.signup-lead { color: var(--on-dark-2); font-size: 1.08rem; max-width: 30em; }
.signup-perks { display: grid; gap: 10px; margin-top: 26px; color: var(--on-dark-2); font-size: 0.95rem; }
.signup-perks li { display: flex; align-items: center; gap: 10px; }
.signup-perks .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #05261c; background: var(--mint); stroke-width: 3; }
@media (max-width: 900px) { .signup { grid-template-columns: minmax(0, 1fr); } }

.signup-form {
    display: grid;
    gap: 20px;
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.signup-form, .field { grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--on-dark-2); }
.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 8, 22, 0.45);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--on-dark-3); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(170, 182, 255, 0.25); }
.field input[aria-invalid="true"] { border-color: #ff8f8f; }
.field-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Email + button share one rounded bar */
.signup-row {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 8, 22, 0.5);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.signup-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(170, 182, 255, 0.25); }
.signup-row:has(input[aria-invalid="true"]) { border-color: #ff8f8f; }
.field .signup-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 0; background: transparent; box-shadow: none; }
.signup-row .btn { flex: none; min-height: 48px; padding: 0 20px; border-radius: 11px; }
@media (max-width: 480px) {
    .signup-row { flex-direction: column; }
    .signup-row .btn { width: 100%; }
}

/* Consent: custom checkbox, no panel */
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.consent {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--on-dark-3);
    cursor: pointer;
}
.consent:hover .check-box { border-color: var(--accent); }
.check-box {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    flex: none;
    border-radius: 7px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: background-color 0.2s, border-color 0.2s;
}
.check-box .icon { width: 14px; height: 14px; stroke-width: 3.5; color: #05261c; transform: scale(0); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.consent input:checked + .check-box { background: var(--mint); border-color: var(--mint); }
.consent input:checked + .check-box .icon { transform: none; }
.consent:has(input:checked) { color: var(--on-dark-2); }
.consent input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent.is-invalid .check-box { border-color: #ff8f8f; }
.consent.is-invalid { color: #ffb4b4; }
@media (max-width: 600px) {
    .signup { padding: 28px 16px 16px; border-radius: var(--radius-lg); }
    .signup-copy { padding: 0 6px; }
    .signup-form { padding: 18px 14px; }
}
.form-status { margin: 0; min-height: 1.2em; font-size: 0.88rem; color: var(--on-dark-2); }
.form-status.is-error { color: #ffb4b4; }
.form-success { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: rgba(47, 208, 162, 0.12); border: 1px solid rgba(47, 208, 162, 0.35); }
.form-success[hidden] { display: none; }
.form-success p { color: var(--on-dark-2); }
.form-success strong { color: #fff; display: block; margin-bottom: 2px; }
.form-success-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--mint); color: #05261c; }
.form-success-icon .icon { stroke-width: 3; width: 18px; height: 18px; }
.signup-form.is-done .field, .signup-form.is-done .consent, .signup-form.is-done .form-status { display: none; }

/* ---------- Contact row on light ---------- */
.contact-row-light { border-top-color: var(--line); }
.contact-row-light a { color: var(--text-2); }
.contact-row-light a:hover { color: var(--text); }
.contact-row-light .icon { color: var(--primary); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.85;
    cursor: pointer;
    list-style: none;
    border: 1px solid transparent;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { opacity: 1; border-color: rgba(127, 139, 200, 0.35); }
.lang-switch summary .icon { width: 17px; height: 17px; }
/* Chevron that flips while the menu is open */
.lang-switch summary::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 0 0 1px;
    border: solid currentColor;
    border-width: 0 1.6px 1.6px 0;
    opacity: 0.6;
    transform: rotate(45deg);
    transition: transform 0.2s var(--ease), margin 0.2s var(--ease);
}
.lang-switch[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    min-width: 180px;
    padding: 6px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.lang-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 520;
}
.lang-menu a:hover { background: var(--tint); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--primary); font-weight: 650; }
/* Checkmark on the language you are reading */
.lang-menu a[aria-current="true"]::after {
    content: "";
    width: 5px;
    height: 10px;
    margin: -2px 3px 0 auto;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.lang-code {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 22px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    color: var(--text-3);
}
.lang-menu a[aria-current="true"] .lang-code { color: var(--primary); border-color: currentColor; }
@keyframes lang-pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
@media (max-width: 1100px) {
    .lang-switch summary { border-color: var(--line); opacity: 1; }
    .lang-menu { position: static; margin-top: 8px; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; }
    .lang-menu a[aria-current="true"] { background: var(--primary-soft); }
}
/* On the desktop nav the menu is dark glass, centred under the button, to sit with the hero instead of a white box */
@media (min-width: 1101px) {
    .lang-switch[open] summary { background: rgba(127, 139, 200, 0.14); }
    .lang-menu {
        top: calc(100% + 10px);
        right: auto;
        left: 50%;
        width: 208px;
        min-width: 0;
        margin-left: -104px;
        border-radius: 16px;
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(16, 22, 52, 0.92);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        backdrop-filter: blur(18px) saturate(160%);
        box-shadow: 0 24px 60px -12px rgba(5, 8, 24, 0.6), 0 2px 6px rgba(5, 8, 24, 0.3);
        transform-origin: 50% 0;
    }
    .lang-switch[open] .lang-menu { animation: lang-pop 0.18s var(--ease); }
    .lang-menu a { padding: 9px 10px; color: var(--on-dark-2); }
    .lang-menu a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
    .lang-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
    .lang-menu a[aria-current="true"] { color: #fff; background: rgba(170, 182, 255, 0.14); }
    .lang-code { border-color: rgba(255, 255, 255, 0.16); color: var(--on-dark-3); }
    .lang-menu a[aria-current="true"] .lang-code { color: var(--accent); border-color: rgba(170, 182, 255, 0.55); }
}

/* ---------- Language suggestion banner ---------- */
.lang-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 12px 0; background: var(--ink); color: var(--on-dark-2); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25); font-size: 0.92rem; }
.lang-banner[hidden], .cookie-bar[hidden] { display: none; }
.lang-banner-inner, .cookie-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lang-banner p, .cookie-bar p { margin: 0; }

/* Cookie bar: a floating pill, centred above the bottom edge (and above the language banner) */
.cookie-bar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 160; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 6px 6px 6px 20px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: rgba(11, 16, 36, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--on-dark-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); font-size: 0.88rem; line-height: 1.45; animation: cookie-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
body:has(.cookie-bar:not([hidden])) .lang-banner { display: none; }   /* one bottom banner at a time */
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (prefers-reduced-motion: reduce) { .cookie-bar { animation: none; } }
.cookie-bar-actions { display: flex; flex: none; gap: 6px; }
.cookie-btn { padding: 6px 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.cookie-btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.cookie-btn:focus-visible, .footer-cookie:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer-cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 640px) {
    .cookie-bar { padding: 14px; border-radius: 20px; }
    .cookie-bar-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-btn { flex: 1; }
}
.lang-banner a { color: #fff; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.lang-banner-close { flex: none; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: transparent; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }

.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; }
.footer-langs a { color: var(--on-dark-3); font-size: 0.86rem; }
.footer-langs a:hover, .footer-langs a[aria-current="true"] { color: #fff; text-decoration: none; }

/* ---------- Scroll reveal (enabled by JS only) ---------- */

/* ---------- Animations ---------- */
@keyframes ping {
    0% { transform: scale(0.6); opacity: 0.7; }
    80%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes sway {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(-3px, -6px) rotate(-2.5deg); }
}
@keyframes sway2 {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(2px, 3px) rotate(3deg); }
}
@keyframes mouth {
    from { transform: scaleY(1); }
    to { transform: scaleY(1.45); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
    .site-header, .hero-bg, .mock-wrap, .skip-link { display: none !important; }
    .hero-dark, .section-dark, .cta-panel, .site-footer { background: #fff !important; color: #000 !important; }
}
