/* Formulate Robotics — vanilla landing page */

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

:root {
    --bg: #000;
    --fg: #fff;
    --muted: rgba(255,255,255,0.55);
    --border: rgba(255,255,255,0.1);
    --pad-x: clamp(2rem, 5vw, 4rem);
    --nav-pad-x: clamp(1.125rem, 3vw, 2.25rem);
    --nav-h: 4.25rem;
    --font: "Inter", ui-sans-serif, system-ui, sans-serif;
    --mono: ui-monospace, "Cascadia Code", monospace;
}

@media (min-width: 640px) {
    :root { --nav-h: 5rem; }
}

html, body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none;
}

[id] {
    scroll-margin-top: var(--nav-h);
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.container { max-width: 80rem; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.container-wide { max-width: 90rem; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section-pad { padding: clamp(8rem, 12vw, 12rem) 0; }
.text-center { text-align: center; }
.text-muted { color: rgba(255,255,255,0.55); }

.eyebrow {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.section-headline {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-subhead {
    max-width: 48rem;
    margin: 1.5rem auto 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.5;
    color: var(--muted);
    text-wrap: balance;
}

.text-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.5rem;
    transition: color 0.3s, border-color 0.3s;
}
.text-link:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.text-link span { transition: transform 0.3s; }
.text-link:hover span { transform: translateX(4px); }

/* ── Nav ── */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--nav-h);
    transition: transform 0.5s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(24px);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.site-header.is-scrolled .site-header__bg { opacity: 1; }

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    padding: 0 var(--nav-pad-x);
}
.site-nav__logo img { height: 1.75rem; width: auto; }
@media (min-width: 640px) { .site-nav__logo img { height: 2.25rem; } }
.site-nav__logo { transition: opacity 0.3s; z-index: 10; }
.site-nav__logo:hover { opacity: 0.7; }

.site-nav__links {
    display: none;
    list-style: none;
    align-items: center;
    gap: 2.25rem;
}
@media (min-width: 1024px) { .site-nav__links { display: flex; } }

.site-nav__links button,
.site-nav__links a {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}
.site-nav__links button::after,
.site-nav__links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.site-nav__links button:hover,
.site-nav__links a:hover { color: #fff; }
.site-nav__links button:hover::after,
.site-nav__links a:hover::after { transform: scaleX(1); }

.site-nav__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    z-index: 10;
}
@media (min-width: 640px) {
    .site-nav__menu-btn { width: 2.5rem; height: 2.5rem; }
}
@media (min-width: 1024px) { .site-nav__menu-btn { display: none; } }

.site-nav__menu-icon { position: relative; display: block; width: 1.5rem; height: 0.75rem; }
.site-nav__menu-icon span {
    position: absolute;
    left: 0;
    display: block;
    height: 1px;
    background: #fff;
    transition: all 0.3s ease;
}
.site-nav__menu-icon span:first-child { top: 0; width: 100%; }
.site-nav__menu-icon span:last-child { bottom: 0; width: 66%; }
.site-nav__menu-btn.is-open .site-nav__menu-icon span:first-child {
    top: 50%; transform: translateY(-50%) rotate(45deg);
}
.site-nav__menu-btn.is-open .site-nav__menu-icon span:last-child {
    bottom: 50%; width: 100%; transform: translateY(50%) rotate(-45deg);
}

/* Overlay menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(40px);
    visibility: hidden;
}
.nav-overlay__spacer { height: var(--nav-h); flex-shrink: 0; }
.nav-overlay__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--nav-pad-x); }
.nav-overlay__nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.nav-overlay__nav button,
.nav-overlay__nav a {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    width: 100%;
    text-align: left;
    padding: 0.25rem 0;
}
.nav-overlay__num { font-family: var(--mono); font-size: 0.75rem; color: rgba(255,255,255,0.3); transition: color 0.3s; }
.nav-overlay__label {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}
.nav-overlay__nav button:hover .nav-overlay__num,
.nav-overlay__nav a:hover .nav-overlay__num { color: rgba(255,255,255,0.6); }
.nav-overlay__nav button:hover .nav-overlay__label,
.nav-overlay__nav a:hover .nav-overlay__label { color: #fff; transform: translateX(8px); }

.nav-overlay__footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 var(--nav-pad-x) 2.5rem;
}
@media (min-width: 640px) {
    .nav-overlay__footer { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.nav-overlay__footer a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.nav-overlay__footer a:hover { color: #fff; }
.nav-overlay__footer p { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.3); }

.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(24px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
    transition: all 0.5s ease;
}
@media (min-width: 640px) { .scroll-top { bottom: 2rem; right: 2rem; width: 3.5rem; height: 3.5rem; } }
.scroll-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.2); }
.scroll-top svg { width: 1.25rem; height: 1.25rem; transition: transform 0.3s; }
.scroll-top:hover svg { transform: translateY(-2px); }

/* ── Hero ── */
.hero {
    position: relative;
    height: 100svh;
    overflow: hidden;
    background: #000;
}
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}
.hero__spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    pointer-events: none;
}
.hero__spinner div {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    border-top-color: rgba(255,255,255,0.8);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}
.hero__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.75rem;
    height: 100%;
    padding: var(--pad-x);
    opacity: 0;
    transform: translateY(24px);
}
.hero__play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    padding: 0.625rem 1.25rem 0.625rem 0.625rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.3s, border-color 0.3s;
}
.hero__play-btn:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.2); }
.hero__play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff;
    color: #000;
    transition: transform 0.3s;
}
.hero__play-btn:hover .hero__play-icon { transform: scale(1.05); }
.hero__play-icon svg { width: 0.875rem; height: 0.875rem; margin-left: 2px; }

.hero__cta {
    max-width: 28rem;
    font-size: clamp(1.875rem, 3.25vw, 2.625rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: rgba(255,255,255,0.95);
    transition: color 0.3s;
    text-wrap: balance;
}
@media (min-width: 1024px) {
    .hero__cta {
        font-size: clamp(2.75rem, 4vw, 3.5rem);
        max-width: 40rem;
        line-height: 1.08;
    }
}
.hero__cta:hover { color: #fff; }

/* Video modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.video-modal.is-open { opacity: 1; pointer-events: auto; }
.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
}
.video-modal__inner { position: relative; width: 100%; max-width: 64rem; }
.video-modal__close {
    position: absolute;
    top: -3rem;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}
.video-modal__close:hover { color: #fff; }
.video-modal__close span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.3s;
}
.video-modal__close:hover span { border-color: rgba(255,255,255,0.5); }
.video-modal__close svg { width: 1rem; height: 1rem; }
.video-modal__player {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}
.video-modal__player video { width: 100%; height: 100%; }

/* ── Manifesto ── */
.manifesto {
    position: relative;
    height: 100svh;
    overflow: hidden;
    background: #000;
}
.manifesto__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.manifesto__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.90);
    pointer-events: none;
}
.manifesto__lines {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    height: 100%;
    padding: var(--pad-x);
}
.manifesto__line {
    grid-area: 1 / 1;
    max-width: 72rem;
    text-align: center;
    font-size: clamp(2.25rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
    opacity: 0;
    will-change: transform, opacity, filter;
}

/* ── Core system ── */
.core-system {
    overflow-x: clip;
}
.core-system .section-headline {
    width: 100%;
    margin-inline: auto;
    text-align: center;
}
.core-system__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
}
@media (min-width: 1024px) {
    .core-system__grid {
        grid-template-columns: 1fr 140px 1fr;
        gap: 0;
        margin-top: 6rem;
    }
}
.core-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.015);
    opacity: 0;
    cursor: default;
    transition:
        border-color 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.core-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        120% 80% at 50% 100%,
        rgba(255, 255, 255, 0.14) 0%,
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 3;
}
.core-card:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 28px 80px -24px rgba(255, 255, 255, 0.22),
        0 0 48px -12px rgba(255, 255, 255, 0.12);
}
.core-card:hover::after {
    opacity: 1;
}
.core-card__body {
    position: absolute;
    inset: 0;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.core-card:hover .core-card__body {
    transform: scale(1.045) translateY(-5px);
}
@media (min-width: 640px) { .core-card { aspect-ratio: 5/4; } }
@media (min-width: 1024px) { .core-card { aspect-ratio: 4/5; } }

.core-card canvas,
.gen3-core-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}
.core-card:hover canvas {
    transform: scale(1.07);
}
.core-card__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 1.5rem 1.5rem;
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    z-index: 2;
    transition: background 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.core-card:hover .core-card__footer {
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.82) 55%, transparent 100%);
}
@media (min-width: 640px) { .core-card__footer { padding: 5rem 2rem 2rem; } }
.core-card__footer h3 {
    margin-top: 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
}
.core-card__footer p { margin-top: 0.375rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.45s ease; }
.core-card:hover .core-card__footer h3 { color: #fff; }
.core-card:hover .core-card__footer p { color: rgba(255,255,255,0.78); }
.core-card:hover .core-card__footer .eyebrow { color: rgba(255,255,255,0.55); }
@media (prefers-reduced-motion: reduce) {
    .core-card,
    .core-card__body,
    .core-card canvas,
    .core-card::after,
    .core-card__footer { transition: none; }
    .core-card:hover .core-card__body,
    .core-card:hover canvas { transform: none; }
}
.core-card[data-scroll] { cursor: pointer; }
.core-card[data-scroll]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
}
@media (min-width: 640px) { .core-card__footer p { font-size: 1rem; } }

.core-system__connector {
    display: none;
    position: relative;
}
@media (min-width: 1024px) { .core-system__connector { display: block; } }
.core-system__connector canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.core-system__tagline {
    margin-top: 4rem;
    text-align: center;
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.7);
    opacity: 0;
}
@media (min-width: 1024px) { .core-system__tagline { margin-top: 5rem; } }

/* ── Gen3 reveal ── */
.gen3-reveal {
    position: relative;
    height: 100svh;
    overflow: hidden;
    background: #000;
}
.gen3-reveal__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gen3-reveal__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}
.gen3-reveal__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.gen3-reveal__top { padding: 3rem var(--pad-x) 0; }
@media (min-width: 640px) { .gen3-reveal__top { padding-top: 4rem; } }
.gen3-reveal__headline {
    margin-top: 0.75rem;
    max-width: 56rem;
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.gen3-reveal__bottom {
    margin-top: auto;
    padding: 0 var(--pad-x) 3rem;
}
@media (min-width: 640px) { .gen3-reveal__bottom { padding-bottom: 4rem; } }

.gen3-module-panels {
    display: grid;
    position: relative;
    min-height: 7.5rem;
}
.gen3-module-panel {
    grid-area: 1 / 1;
    opacity: 0;
    will-change: opacity, transform, filter;
    pointer-events: none;
}
.gen3-module-panel.is-active {
    pointer-events: auto;
}
.gen3-reveal__bottom h3 {
    margin-top: 0.5rem;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.gen3-reveal__bottom p {
    margin-top: 0.75rem;
    max-width: 28rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
}
@media (min-width: 640px) { .gen3-reveal__bottom p { font-size: 1rem; } }

/* ── Learning loop ── */
.learning-loop .section-headline,
.learning-loop .section-subhead {
    width: 100%;
    margin-inline: auto;
    text-align: center;
}
.learning-loop__viz {
    position: relative;
    aspect-ratio: 1;
    width: 80%;
    max-width: 640px;
    margin: 5rem auto 0;
    opacity: 0;
}
@media (min-width: 1024px) { .learning-loop__viz { width: 100%; margin-top: 7rem; } }
.learning-loop__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.learning-loop__core-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.learning-loop__core-name {
    margin-top: 0.375rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.learning-loop__stage {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: nowrap;
}
.learning-loop__stage-num {
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}
.learning-loop__stage-label {
    margin-top: 0.2rem;
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}
@media (min-width: 640px) {
    .learning-loop__stage-num {
        font-size: 0.59375rem;
        letter-spacing: 0.24em;
    }
    .learning-loop__stage-label {
        margin-top: 0.25rem;
        font-size: 0.6875rem;
        letter-spacing: 0.18em;
    }
}
.learning-loop__stage.is-active .learning-loop__stage-label { color: #fff; }

.learning-loop__streams {
    margin-top: 5rem;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}
@media (min-width: 1024px) { .learning-loop__streams { margin-top: 7rem; } }
.streams-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.streams-divider > div:first-child { width: 1px; height: 1.5rem; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2)); }
.streams-divider .eyebrow { text-align: center; }
.streams-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    align-items: center;
    gap: 0.75rem 1.25rem;
    width: 100%;
    max-width: 52rem;
    margin: 2rem auto 0;
    padding: 0 clamp(0.25rem, 2vw, 1rem);
}
@media (max-width: 359px) {
    .streams-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}
@media (min-width: 640px) {
    .streams-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.875rem 2.25rem;
        max-width: 56rem;
    }
}
@media (min-width: 1024px) {
    .streams-grid { gap: 1rem 2.75rem; max-width: 60rem; }
}
.stream-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.625rem;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    text-align: left;
}
@media (min-width: 640px) {
    .stream-pill { min-width: 11.25rem; width: auto; font-size: 0.9375rem; }
}
@media (min-width: 1024px) {
    .stream-pill { min-width: 12rem; }
}
.stream-pill__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.learning-loop__tagline {
    margin-top: 6rem;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    opacity: 0;
}
.learning-loop__cta { margin-top: 3rem; display: flex; justify-content: center; opacity: 0; }

/* ── Closed loop ── */
.closed-loop.section-pad {
    padding-top: clamp(3rem, 5vw, 4.5rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}
.closed-loop__headline { margin-top: 0; }
.closed-loop__flow-wrap {
    position: relative;
    margin-top: 2rem;
    padding-top: 2.5rem;
    opacity: 0;
}
@media (min-width: 1024px) {
    .closed-loop__flow-wrap { margin-top: 2.5rem; padding-top: 3rem; }
}
.closed-loop__flow-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.closed-loop__cards {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .closed-loop__cards { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.loop-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.015);
    padding: 1.25rem;
    transition: border-color 0.5s, background 0.5s, box-shadow 0.5s;
}
.loop-card[data-active="true"] {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.035);
    box-shadow: 0 0 40px -12px rgba(255,255,255,0.18);
}
.loop-card__header { display: flex; align-items: baseline; gap: 0.5rem; }
.loop-card__num { font-family: var(--mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em; color: rgba(255,255,255,0.35); }
.loop-card__sep { font-size: 0.625rem; color: rgba(255,255,255,0.3); }
.loop-card__title { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.02em; }
.loop-card__sub { margin-top: 0.25rem; font-size: 0.65625rem; color: rgba(255,255,255,0.4); }
.loop-card__body { margin-top: 1.25rem; font-size: 0.65625rem; }
.loop-card__label { font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.loop-card__row { display: flex; justify-content: space-between; color: rgba(255,255,255,0.65); font-family: var(--mono); font-size: 0.65625rem; }
.loop-card__row span:last-child { color: rgba(255,255,255,0.85); }
.loop-card__metric { display: flex; justify-content: space-between; align-items: baseline; }
.loop-card__metric-label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.4); }
.loop-card__metric-value { font-family: var(--mono); font-size: 0.6875rem; color: rgba(255,255,255,0.85); }
.loop-card__prompt {
    margin-top: 1.25rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.4);
}
.loop-card__prompt-cmd { font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.loop-card__prompt-text { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.5; color: rgba(255,255,255,0.9); }
.loop-card__cursor { display: inline-block; width: 0.45em; height: 0.9em; margin-left: 2px; background: rgba(255,255,255,0.8); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.loop-card__bars { display: flex; align-items: flex-end; gap: 2px; height: 2.5rem; margin-top: 0.5rem; }
.loop-card__bar { flex: 1; border-radius: 2px; background: rgba(255,255,255,0.3); }
.loop-vessel { height: 5rem; width: 5rem; }
@media (min-width: 640px) { .loop-vessel { height: 6rem; width: 6rem; } }
.loop-curve { height: 4rem; width: 100%; display: block; }
.closed-loop__tagline {
    margin-top: 3rem;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    opacity: 0;
}

/* ── Industries ── */
.industries {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100svh;
    overflow: hidden;
    background: #000;
}
.industries__header {
    flex-shrink: 0;
    padding: calc(var(--nav-h) + 1rem) var(--pad-x) 0;
}
@media (min-width: 640px) {
    .industries__header { padding-top: calc(var(--nav-h) + 1.25rem); }
}
@media (min-width: 1024px) {
    .industries__header {
        padding-top: calc(var(--nav-h) + 2rem);
        padding-bottom: 0.5rem;
    }
}
@media (min-width: 1280px) {
    .industries__header {
        padding-top: calc(var(--nav-h) + 2.5rem);
        padding-bottom: 1rem;
    }
}
.industries__headline {
    margin-top: 0;
    font-size: clamp(1.875rem, 4vw, 3.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.industries__subhead {
    max-width: 48rem;
    margin: 0.75rem auto 0;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--muted);
    text-wrap: balance;
}
@media (min-width: 1024px) {
    .industries__subhead { margin-top: 1rem; }
}

.industries__track-wrap {
    flex: 1;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 0;
    margin-top: 1.25rem;
    padding-bottom: 4.5rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 64px, black calc(100% - 64px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 64px, black calc(100% - 64px), transparent 100%);
}
@media (min-width: 1024px) {
    .industries__track-wrap {
        align-items: center;
        margin-top: 3rem;
        padding-bottom: 5rem;
    }
}
@media (min-width: 1280px) {
    .industries__track-wrap { margin-top: 4rem; }
}
.industries__track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 0 var(--pad-x);
    will-change: transform;
    opacity: 0;
}
@media (min-width: 640px) { .industries__track { gap: 1.25rem; } }
@media (min-width: 1280px) { .industries__track { padding-left: 8rem; padding-right: 8rem; } }

.industry-card {
    --industry-card-h: 22.5rem;
    --industry-media-h: 10.5rem;
    flex-shrink: 0;
    width: 16.5rem;
    height: var(--industry-card-h);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.015);
    transition: border-color 0.5s, background 0.5s, transform 0.5s;
}
@media (min-width: 640px) {
    .industry-card {
        width: 18.5rem;
        --industry-card-h: 23.5rem;
        --industry-media-h: 11rem;
    }
}
@media (min-width: 1024px) {
    .industry-card {
        width: 20rem;
        --industry-card-h: 27.5rem;
        --industry-media-h: 13rem;
    }
}
@media (min-width: 1280px) {
    .industry-card {
        width: 22rem;
        --industry-card-h: 29rem;
        --industry-media-h: 14rem;
    }
}
.industry-card:hover {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.035);
    transform: translateY(-4px);
}
.industry-card__media {
    flex: 0 0 var(--industry-media-h);
    height: var(--industry-media-h);
    overflow: hidden;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.industry-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.industry-card:hover .industry-card__media img {
    transform: scale(1.06);
    opacity: 0.95;
}
.industry-card__body {
    flex: 1 1 auto;
    height: calc(var(--industry-card-h) - var(--industry-media-h));
    min-height: calc(var(--industry-card-h) - var(--industry-media-h));
    max-height: calc(var(--industry-card-h) - var(--industry-media-h));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.1rem 1.35rem 1.15rem;
    overflow: hidden;
}
@media (min-width: 640px) { .industry-card__body { padding: 1.15rem 1.45rem 1.2rem; } }
.industry-card__meta {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-height: 1rem;
}
.industry-card__num {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.35);
}
.industry-card__sep { font-size: 0.625rem; color: rgba(255,255,255,0.3); }
.industry-card__count {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.25);
}
.industry-card__title {
    flex: 0 0 auto;
    margin: 0.6rem 0 0;
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.96);
}
.industry-card__subtitle {
    flex: 0 0 auto;
    margin: 0.28rem 0 0;
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.72);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.industry-card p {
    flex: 0 0 auto;
    margin: 0.38rem 0 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.5);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.industry-card:hover .industry-card__subtitle { color: rgba(255,255,255,0.82); }
.industry-card:hover p { color: rgba(255,255,255,0.68); }

.industries__progress {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}
.industries__scroll-label { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.industries__progress-bar { position: relative; width: 6rem; height: 1px; background: rgba(255,255,255,0.12); overflow: hidden; }
@media (min-width: 640px) { .industries__progress-bar { width: 8rem; } }
.industries__progress-bar div { position: absolute; inset: 0; background: rgba(255,255,255,0.7); transform-origin: left; transform: scaleX(0); }

/* ── CTA ── */
.cta-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: clamp(5rem, 12vh, 8rem) 0;
    box-sizing: border-box;
}
@media (min-width: 1024px) {
    .cta-section {
        min-height: 100svh;
        padding: clamp(7rem, 14vh, 10rem) 0;
    }
}
.cta-section .container { width: 100%; }
.cta-section__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-section__email {
    position: relative;
    display: inline-block;
    max-width: calc(100vw - 2 * var(--pad-x));
    font-size: min(5.5rem, calc((100vw - 2 * var(--pad-x)) / 16));
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    white-space: nowrap;
}
.cta-section__email::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.12em;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, #fff 12%, #fff 88%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 1;
    pointer-events: none;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-section__email:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-section__email:not(:hover)::after {
    transform-origin: right center;
    transition: transform 0.7s cubic-bezier(0.55, 0, 0.45, 1);
}
.cta-section__email-in {
    position: relative;
    display: inline-block;
}
.cta-section__email-glow {
    position: absolute;
    inset: 0;
    color: #fff;
    opacity: 0;
    filter: blur(22px);
    pointer-events: none;
    user-select: none;
    will-change: opacity, filter, transform;
    transition: opacity 0.55s ease;
}
.cta-section__email-text {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition:
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        letter-spacing 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-section__email:hover .cta-section__email-glow {
    opacity: 1;
    animation: cta-email-glow-pulse 1.35s ease-in-out 0.15s infinite;
}
.cta-section__email:hover .cta-section__email-text {
    transform: scale(1.05);
    letter-spacing: 0.02em;
}
@keyframes cta-email-glow-pulse {
    0%, 100% {
        opacity: 0.45;
        filter: blur(18px);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        filter: blur(32px);
        transform: scale(1.05);
    }
}
@media (prefers-reduced-motion: reduce) {
    .cta-section__email::after { animation: none; transform: scaleX(0); }
    .cta-section__email:hover::after { transform: scaleX(1); }
    .cta-section__email-text { transition: none; }
    .cta-section__email-glow { display: none; }
    .cta-section__email:hover .cta-section__email-text {
        transform: none;
        letter-spacing: -0.03em;
    }
}

/* Animation initial states */
[data-animate] { opacity: 0; transform: translateY(32px); }
.clause { display: inline-block; opacity: 0; transform: translateY(28px); }
