/* ==========================================================================
   7th UNIT — Design System
   Single stylesheet. Mobile-first. Vanilla CSS.
   Aesthetic: dark industrial cinematic. Hardware-grade software.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
    /* Stitch-aligned token system. Warm dark, off-white text, cyan accent. */
    --bg:               #0A0A0A;
    --bg-page:          #0e0e0c;
    --bg-lifted:        #131311;
    --bg-inlay:         #1c1c1a;
    --text:             #e5e2de;   /* warm off-white */
    --text-muted:       #bdc9cb;   /* cool muted */
    --text-dim:         #879396;
    --border:           rgba(229, 226, 222, 0.08);
    --border-strong:    rgba(229, 226, 222, 0.16);
    --outline-variant:  #3e494b;
    --accent:           #5DC5D9;   /* industrial cyan */
    --accent-strong:    #7be1f6;
    --accent-glow:      rgba(93, 197, 217, 0.14);

    /* Literata serif + JetBrains Mono. No Inter / Roboto / Open Sans. */
    --font-serif:   'Literata', Georgia, 'Times New Roman', serif;
    --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    --font-sans:    var(--font-mono);   /* short UI copy is mono in this system */

    /* Layout */
    --container-max:    1440px;
    --container-narrow: 880px;
    --gutter:           24px;
    --section-pad-y:    160px;
    --section-pad-x:    64px;
    --nav-height:       70px;

    /* Motion — slow + soft for cinematic feel */
    --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft:        cubic-bezier(0.4, 0, 0.2, 1);
    --ease-cinema:      cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1024px) {
    :root {
        --section-pad-y: 112px;
        --section-pad-x: 32px;
        --nav-height:    68px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-pad-y: 80px;
        --section-pad-x: 20px;
        --nav-height:    64px;
    }
}


/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--bg-page);
}

body {
    background: var(--bg-page);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* geometricPrecision renders blurry on Windows DirectWrite — use optimizeLegibility */
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

@media (max-width: 640px) {
    body { font-size: 18px; }
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

/* Literata display + headlines at 300, JetBrains Mono lede / body. */

.display {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(42px, 6.2vw, 86px);
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--text);
}

.headline {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--text);
}

.subhead {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(22px, 2.1vw, 28px);
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--text);
}

/* Lede / sub under hero or section headline. Mono, slightly larger than body. */
.lede {
    font-family: var(--font-mono);
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: -0.005em;
    max-width: 62ch;
}

.body {
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 62ch;
}

/* Long-form prose (About page paragraphs) — Literata serif, larger size */
.prose-serif {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 21px;
    line-height: 1.6;
    color: var(--text);
}

.eyebrow,
.label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow--accent { color: var(--accent); }

.mono {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.serif-em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text);
}


/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--section-pad-x);
}
.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: var(--section-pad-y);
}

.section--bordered {
    border-top: 1px solid var(--border);
}

.divider {
    height: 1px;
    background: var(--border);
    border: 0;
}

.rule {
    display: block;
    height: 1px;
    background: var(--border);
    width: 100%;
}


/* --------------------------------------------------------------------------
   5. Top navigation
   -------------------------------------------------------------------------- */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--bg-page);
    border-bottom: 1px solid var(--outline-variant, rgba(229, 226, 222, 0.14));
}

.nav__inner {
    height: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--section-pad-x);
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__brand {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(24px, 2.2vw, 34px);
    letter-spacing: 0.015em;
    color: var(--text);
    line-height: 1;
    text-transform: uppercase;
    transition: opacity 0.2s var(--ease-soft);
    flex-shrink: 0;
}
.nav__brand:hover { opacity: 0.7; }

.nav__panel {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 52px;
    list-style: none;
}

.nav__link {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding-block: 10px;
    transition: color 0.2s var(--ease-soft);
    white-space: nowrap;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--text); }
.nav__link::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--ease-soft);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--text); }

/* Nav has no CTA button. The active page gets a thin cyan underline only.
   Leaving .nav__cta hidden by default in case markup still references it. */
.nav__cta { display: none; }

.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    margin-left: auto;
}
.nav__toggle-bar {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    position: relative;
}
.nav__toggle-bar::before,
.nav__toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform 0.25s var(--ease-soft), top 0.25s var(--ease-soft);
}
.nav__toggle-bar::before { top: -6px; }
.nav__toggle-bar::after  { top:  6px; }

@media (max-width: 920px) {
    .nav__inner { gap: 16px; }
    .nav__panel {
        position: fixed;
        inset: var(--nav-height) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px var(--section-pad-x) 36px;
        background: var(--bg-page);
        border-bottom: 1px solid var(--border);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
        margin: 0;
    }
    .nav__panel[data-open="true"] {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav__links { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 24px; }
    .nav__link {
        padding-block: 20px;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
    }
    .nav__link::after { display: none; }
    .nav__cta { justify-content: center; padding: 18px 20px; font-size: 12px; }
    .nav__toggle { display: flex; }
}

main { padding-top: var(--nav-height); }


/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-page);
    padding-block: 88px 48px;
}
.footer__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--section-pad-x);
    display: grid;
    gap: 40px;
}
.footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 720px) {
    .footer__main { grid-template-columns: minmax(360px, 1.6fr) repeat(3, minmax(140px, 0.7fr)); gap: 72px; }
}
.footer__brand {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(30px, 2.8vw, 42px);
    line-height: 1;
    text-transform: uppercase;
    color: var(--text);
    letter-spacing: 0.015em;
    margin-bottom: 24px;
}
.footer__tag {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(22px, 2.1vw, 30px);
    letter-spacing: 0;
    color: var(--text);
    max-width: 12ch;
    line-height: 1.08;
}
.footer__col-title {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}
.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer__link {
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    transition: color 0.2s var(--ease-soft);
}
.footer__link:hover { color: var(--text); }
.footer__base {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}


/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

/* Buttons are outlined text with an arrow. Never filled rectangles.
   The amber accent appears only on the arrow and hover state. */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 20px 30px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 0;
    cursor: pointer;
    transition:
        color 0.25s var(--ease-soft),
        border-color 0.25s var(--ease-soft);
    user-select: none;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:hover:not(:disabled),
.btn:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

/* Aliases kept so existing markup doesn't break. All buttons share one style. */
.btn--primary { /* same as .btn */ }
.btn--ghost   { /* same as .btn */ }

.btn__arrow {
    color: var(--accent);
    display: inline-block;
    transition: transform 0.2s var(--ease-soft);
}
.btn:hover .btn__arrow { transform: translateX(6px); }


/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 32px; }
.form__row { display: grid; gap: 32px; }
@media (min-width: 720px) {
    .form__row--2col { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field__label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.field__input,
.field__textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    padding: 14px 0;
    transition: border-color 0.25s var(--ease-soft);
    border-radius: 0;
}
.field__textarea { resize: vertical; min-height: 120px; }
.field__input::placeholder,
.field__textarea::placeholder { color: var(--text-dim); }
.field__input:focus,
.field__textarea:focus { border-bottom-color: var(--accent); }
.field__error {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    min-height: 14px;
    margin-top: 4px;
}

.form__status {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-height: 18px;
}
.form__status[data-state="success"] { color: var(--accent); }
.form__status[data-state="error"]   { color: #FF6B6B; }

.form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 16px;
}


/* --------------------------------------------------------------------------
   9. Fade-up + reduced motion
   -------------------------------------------------------------------------- */

.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1.4s var(--ease-cinema), transform 1.4s var(--ease-cinema);
    will-change: opacity, transform;
}
.fade-up[data-revealed="true"] { opacity: 1; transform: translateY(0); }

.fade-up--soft {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1.6s var(--ease-cinema), transform 1.6s var(--ease-cinema);
}
.fade-up--soft[data-revealed="true"] { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .fade-up, .fade-up--soft {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}


/* ==========================================================================
   CINEMA — Reusable full-bleed image-driven section
   Used by homepage S1/S2/S3 and product showcase blocks.
   ========================================================================== */

.cinema {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-page);
}
.cinema--shorter { min-height: 80vh; }

.cinema__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cinema__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.06);
    filter: brightness(0.18) saturate(0.7);
    transition:
        opacity 2.6s var(--ease-cinema),
        transform 8s var(--ease-cinema),
        filter 3.2s var(--ease-cinema);
}
.cinema__image--hero-native {
    position: absolute;
    width: auto;
    height: min(118vh, 1180px);
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center right;
    left: auto;
    right: clamp(-40px, 1vw, 24px);
    top: 54%;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 100%);
}
.cinema__image[data-lit="true"] {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0.85) saturate(0.95);
}
.cinema__image--hero-native[data-lit="true"] {
    transform: translateY(-50%);
    filter: brightness(0.88) saturate(0.95) contrast(1.04);
}
.cinema__image--soft[data-lit="true"] {
    filter: brightness(0.7) saturate(0.85) contrast(1.05);
}
.cinema__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Left-content treatment: dark on the LEFT, image visible on the right */
.cinema__veil--left {
    background:
        linear-gradient(to right, var(--bg-page) 0%, rgba(5,5,5,0.88) 30%, rgba(5,5,5,0.35) 60%, transparent 88%),
        linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(5,5,5,0.7) 92%, var(--bg-page) 100%);
}
/* Right-content treatment: dark on the RIGHT, image visible on the left */
.cinema__veil--right {
    background:
        linear-gradient(to left, var(--bg-page) 0%, rgba(5,5,5,0.88) 30%, rgba(5,5,5,0.35) 60%, transparent 88%),
        linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(5,5,5,0.7) 92%, var(--bg-page) 100%);
}
/* Centered treatment: dark vignette around the edges */
.cinema__veil--center {
    background:
        radial-gradient(ellipse 75% 65% at 50% 50%, transparent 0%, rgba(5,5,5,0.55) 65%, rgba(5,5,5,0.9) 100%),
        linear-gradient(to bottom, rgba(5,5,5,0.6) 0%, transparent 22%, transparent 78%, var(--bg-page) 100%);
}

.cinema__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: 0 var(--section-pad-x);
    display: flex;
}
.cinema__inner--left  { justify-content: flex-start; }
.cinema__inner--right { justify-content: flex-end; }
.cinema__inner--center { justify-content: center; text-align: center; }

.cinema__content {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.cinema__content--wide { max-width: 960px; }
.cinema .display {
    font-size: clamp(34px, 4.3vw, 60px);
    line-height: 1.06;
    max-width: 13.5ch;
}

.cinema__eyebrow { color: var(--accent); }
.cinema__meta {
    margin-top: 12px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cinema__meta-row { display: flex; flex-direction: column; gap: 6px; }
.cinema__meta-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.cinema__meta-value {
    font-family: var(--font-mono);
    font-size: 17px;
    line-height: 1.4;
    color: var(--text);
    letter-spacing: 0.02em;
}

.cinema__marker {
    position: absolute;
    bottom: 32px;
    left: var(--section-pad-x);
    right: var(--section-pad-x);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    pointer-events: none;
}
.cinema__marker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(93, 197, 217, 0.14);
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}
@media (max-width: 640px) {
    .cinema__marker { font-size: 9px; }
}

/* On narrow screens, all cinema sections collapse to a single bottom-text layout */
@media (max-width: 900px) {
    .cinema { min-height: 90vh; }
    .cinema__veil--left,
    .cinema__veil--right {
        background:
            linear-gradient(to bottom, rgba(5,5,5,0.45) 0%, rgba(5,5,5,0.7) 55%, rgba(5,5,5,0.95) 100%);
    }
    .cinema__inner--right,
    .cinema__inner--left,
    .cinema__inner--center { justify-content: flex-start; align-items: flex-end; text-align: left; }
    .cinema__image--hero-native {
        width: auto;
        height: min(88vh, 820px);
        max-width: none;
        max-height: none;
        right: 50%;
        top: 52%;
        transform: translate(50%, -50%);
    }
    .cinema__image--hero-native[data-lit="true"] {
        transform: translate(50%, -50%);
    }
}

/* HOMEPAGE — Section 2: plain black with transparent robot concept */
.work-section {
    background: #000;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding-block: 0;
}
.work-section__inner {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--section-pad-x);
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}
@media (min-width: 900px) {
    .work-section__inner {
        grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1fr);
        gap: 96px;
    }
}
.work-section__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-height));
}
.work-section__visual img {
    display: block;
    width: auto;
    height: min(82vh, 740px);
    max-width: 52vw;
    object-fit: contain;
}
.work-section__copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.work-section .display {
    font-size: clamp(32px, 3.8vw, 52px);
    line-height: 1.08;
    max-width: 12ch;
}
@media (max-width: 899px) {
    .work-section {
        min-height: 100vh;
        padding-block: var(--section-pad-y);
    }
    .work-section__inner {
        justify-items: center;
        gap: 44px;
        text-align: center;
    }
    .work-section__visual {
        min-height: auto;
        width: 100%;
    }
    .work-section__visual img {
        height: min(48vh, 410px);
        max-width: 88vw;
        margin-inline: auto;
    }
    .work-section__copy {
        align-items: center;
        gap: 22px;
        width: 100%;
    }
    .work-section .display {
        font-size: clamp(29px, 8.2vw, 36px);
        max-width: 11.5ch;
    }
    .work-section .lede {
        font-size: 15px;
        max-width: 30ch;
    }
}

/* Hero copy fade-in choreography */
.cinema__rise {
    opacity: 0;
    transform: translateY(20px);
    animation: cinema-rise 1.6s var(--ease-cinema) forwards;
}
.cinema__rise--1 { animation-delay: 0.08s; }
.cinema__rise--2 { animation-delay: 0.16s; }
.cinema__rise--3 { animation-delay: 0.24s; }
.cinema__rise--4 { animation-delay: 0.32s; }
.cinema__rise--5 { animation-delay: 0.48s; }
@keyframes cinema-rise {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .cinema__rise { opacity: 1; transform: none; animation: none; }
}


/* ==========================================================================
   HOMEPAGE — S3 (Intelligence Layer)
   The phone overlays a portrait backdrop. Text on the left.
   ========================================================================== */

.s3-stage {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-block: var(--section-pad-y);
}
.s3-stage__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.s3-stage__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    opacity: 0.32;
    filter: brightness(0.6) blur(2px) saturate(0.7);
}
.s3-stage__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 35% 50%, transparent 0%, rgba(5,5,5,0.6) 60%, rgba(5,5,5,0.95) 100%),
        linear-gradient(to bottom, var(--bg-page) 0%, transparent 15%, transparent 85%, var(--bg-page) 100%);
    pointer-events: none;
}
.s3-stage__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: 0 var(--section-pad-x);
}
.s3-stage__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}
@media (min-width: 960px) {
    .s3-stage__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
.s3-stage__copy { display: flex; flex-direction: column; gap: 32px; }
.s3-stage .display {
    font-size: clamp(32px, 3.8vw, 52px);
    line-height: 1.08;
    max-width: 12.5ch;
}

/* Phone */
.phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 660px;
    perspective: 1600px;
}
.phone-stage::before {
    content: "";
    position: absolute;
    inset: 8% 0 0 0;
    background: radial-gradient(ellipse 55% 50% at 50% 60%, var(--accent-glow) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}
.phone {
    position: relative;
    width: 340px;
    aspect-ratio: 340 / 700;
    background: linear-gradient(165deg, #1f1f22, #050505);
    border-radius: 48px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 30px 80px rgba(0, 0, 0, 0.75),
        0 60px 140px rgba(0, 0, 0, 0.55);
    transform: rotate(-10deg);
    z-index: 1;
}
@media (max-width: 540px) { .phone { transform: rotate(-6deg) scale(0.86); } }
.phone__screen {
    background: #0B0B0E;
    border-radius: 36px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.phone__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #050505;
    border-radius: 999px;
    z-index: 3;
}
.phone__statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 26px 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}
.phone__chat-header {
    margin-top: 32px;
    padding: 18px 22px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.phone__chat-header-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(93, 197, 217, 0.18);
}
.phone__chat-header-text {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--text);
}
.phone__chat-header-meta {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    text-transform: uppercase;
}
.phone__messages {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 86%; }
.msg__id {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding-inline: 2px;
}
.msg__bubble {
    background: #18181B;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 12px 2px;
    padding: 13px 15px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
}
.msg--out { align-self: flex-end; align-items: flex-end; }
.msg--out .msg__bubble {
    background: rgba(93, 197, 217, 0.12);
    border-color: rgba(93, 197, 217, 0.24);
    border-radius: 12px 12px 2px 12px;
}
.msg--in { align-self: flex-start; }

/* Editable iPhone-style mockup used on homepage Section 3. */
.iphone-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 620px;
}
.iphone-stage::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 130px;
    border-radius: 50%;
    background: rgba(93, 197, 217, 0.13);
    filter: blur(50px);
    bottom: 42px;
}
.iphone-frame {
    position: relative;
    width: 338px;
    height: 704px;
    border-radius: 58px;
    padding: 11px;
    background:
        linear-gradient(135deg, #777b7c 0%, #191b1d 18%, #050607 48%, #4b5052 82%, #b3b6b5 100%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.16),
        inset 0 0 0 3px rgba(0,0,0,0.75),
        0 34px 80px rgba(0,0,0,0.65);
    transform: rotate(-7deg);
}
.iphone-frame__button {
    position: absolute;
    width: 3px;
    background: #2a2d2f;
    border-radius: 4px;
}
.iphone-frame__button--left {
    left: -4px;
    top: 142px;
    height: 86px;
}
.iphone-frame__button--right {
    right: -4px;
    top: 190px;
    height: 112px;
}
.iphone-screen {
    position: relative;
    background: #101114;
    border-radius: 47px;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.iphone-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0.10), transparent 26%, transparent 70%, rgba(255,255,255,0.04));
    opacity: 0.55;
}
.iphone-dynamic-island {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 104px;
    height: 30px;
    border-radius: 18px;
    background: #000;
    z-index: 3;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.iphone-screen .phone__statusbar {
    padding: 22px 24px 0;
}
.iphone-screen .phone__chat-header {
    margin-top: 38px;
}
@media (max-width: 540px) {
    .s3-stage {
        padding-block: 64px 80px;
    }
    .s3-stage__grid {
        justify-items: center;
        gap: 34px;
        text-align: center;
    }
    .s3-stage__copy {
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    .s3-stage .display {
        font-size: clamp(27px, 7.6vw, 33px);
        max-width: 12ch;
    }
    .s3-stage .lede {
        font-size: 14.5px;
        max-width: 32ch;
    }
    .s3-stage .btn {
        justify-content: center;
        width: 100%;
        max-width: 330px;
    }
    .iphone-stage {
        min-height: 450px;
        width: 100%;
        justify-content: center;
        overflow: visible;
    }
    .iphone-stage::before {
        left: 50%;
        transform: translateX(-50%);
    }
    .iphone-frame {
        transform: translateX(-1px) rotate(-4deg) scale(0.68);
        transform-origin: center center;
    }
}


/* ==========================================================================
   HOMEPAGE — Numbered marquee between sections
   ========================================================================== */

.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-page);
    padding-block: 24px;
}
.marquee__track {
    display: flex;
    align-items: center;
    gap: 56px;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-dim);
    animation: marquee-scroll 60s linear infinite;
}
.marquee__item { display: inline-flex; align-items: center; gap: 14px; }
.marquee__dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; }
}


/* ==========================================================================
   GENERIC: image plate with mono caption (used by product page)
   ========================================================================== */

.plate {
    position: relative;
    border: 1px solid var(--border);
    background: var(--bg-lifted);
    overflow: hidden;
}
.plate__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.plate__corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--border-strong);
    pointer-events: none;
}
.plate__corner--tl { top: 12px;    left: 12px;    border-right: 0; border-bottom: 0; }
.plate__corner--tr { top: 12px;    right: 12px;   border-left: 0;  border-bottom: 0; }
.plate__corner--bl { bottom: 12px; left: 12px;    border-right: 0; border-top: 0; }
.plate__corner--br { bottom: 12px; right: 12px;   border-left: 0;  border-top: 0; }
.plate__caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(5, 5, 5, 0.7);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.plate__caption-accent { color: var(--accent); }

/* Placeholder plate: atmospheric gradient + mono label. No grid patterns. */
.plate--placeholder {
    background:
        radial-gradient(ellipse 70% 60% at 50% 35%, var(--accent-glow) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-lifted) 0%, var(--bg) 100%);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.plate--placeholder__label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    max-width: 30ch;
}


/* ==========================================================================
   PRODUCT page
   ========================================================================== */

.product-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    padding-block: 180px 88px;
    overflow: hidden;
    background: var(--bg-page);
}
.product-hero--minimal { min-height: calc(100vh - var(--nav-height)); }
.product-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.product-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 50%;
    opacity: 0.78;
    filter: brightness(1) contrast(1.06) saturate(0.9);
}
.product-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--bg-page) 0%, rgba(14,14,12,0.62) 32%, rgba(14,14,12,0.08) 68%, transparent 100%),
        linear-gradient(to bottom, rgba(14,14,12,0.12) 0%, transparent 40%, transparent 72%, var(--bg-page) 100%);
}
.product-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--section-pad-x);
}
.product-hero__content {
    max-width: 920px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.product-hero__stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 600px;
}
.product-hero__stat-figure {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.2vw, 40px);
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.product-hero__stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-intro {
    padding-block: 128px;
    border-top: 1px solid var(--border);
    background: var(--bg-page);
}
.product-intro__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1080px;
}
@media (min-width: 960px) {
    .product-intro__grid {
        grid-template-columns: 180px 1.1fr 0.9fr;
        gap: 56px;
        align-items: start;
    }
}
.product-intro__specs { margin-top: 80px; }

/* Showcase: alternating two-column rows */
.product-showcase { padding-block: var(--section-pad-y); border-top: 1px solid var(--border); }
.product-showcase__head { max-width: 760px; margin-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.product-showcase__rows { display: grid; gap: 112px; }
.product-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 960px) {
    .product-row { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
    .product-row--flip > :first-child { order: 2; }
}
.product-row__copy { display: flex; flex-direction: column; gap: 24px; }
.product-row__copy h3 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1.1;
    color: var(--text);
}
.product-row__copy p { font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 56ch; }
.product-row__list {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.product-row__list-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 12px 0;
    align-items: baseline;
}
.product-row__list-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
}
.product-row__list-text {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-muted);
}
.product-row__visual { position: relative; aspect-ratio: 4 / 3.2; }

/* Spec table */
.product-specs { padding-block: var(--section-pad-y); border-top: 1px solid var(--border); background: var(--bg); }
.product-specs__head { max-width: 760px; margin-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.spec-table {
    display: grid;
    border-top: 1px solid var(--border);
}
.spec-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) { .spec-row { grid-template-columns: 200px 1fr 1fr; gap: 32px; } }
.spec-row__label {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.spec-row__value {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1.2;
    color: var(--text);
}
.spec-row__note {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 40ch;
}

/* Deployment timeline */
.product-timeline { padding-block: var(--section-pad-y); border-top: 1px solid var(--border); }
.product-timeline__head { max-width: 760px; margin-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.timeline {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}
.timeline__step {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
    .timeline__step { grid-template-columns: 220px auto 1fr; gap: 48px; align-items: start; }
}
.timeline__num {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: 6px;
}
.timeline__title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.15;
    color: var(--text);
}
.timeline__body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 60ch;
}

/* Form section */
.product-form-section { padding: var(--section-pad-y) 0 200px; border-top: 1px solid var(--border); background: var(--bg); }
.product-form-section__inner { max-width: 880px; margin: 0 auto; padding-inline: var(--section-pad-x); display: grid; gap: 80px; }
.product-form-section__header { display: flex; flex-direction: column; gap: 24px; }

/* Single-purpose product lead form. */
.lead-form-page {
    min-height: calc(100vh - var(--nav-height));
    padding: 96px var(--section-pad-x) 120px;
}
.lead-form-page--light {
    background: #f4f4f3;
    color: #242424;
}
.lead-form-page--brand {
    background:
        radial-gradient(ellipse 50% 34% at 50% 0%, rgba(93,197,217,0.08) 0%, transparent 68%),
        var(--bg-page);
    color: var(--text);
}
.lead-form-page__inner {
    max-width: 860px;
    margin-inline: auto;
}
.lead-form-page__mark-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: start;
    gap: 34px;
    margin-bottom: 112px;
}
.lead-form-page__mark-row h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
    color: #242424;
}
.lead-form-page--brand .lead-form-page__mark-row h1 {
    font-family: var(--font-serif);
    font-weight: 300;
    color: var(--text);
}
.pixel-mark {
    position: relative;
    width: 40px;
    height: 52px;
    margin-top: 8px;
}
.pixel-mark::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: #242424;
    box-shadow: 20px -18px 0 #242424, 20px 18px 0 #242424;
}
.lead-form-page--brand .pixel-mark::before {
    background: var(--accent);
    box-shadow: 20px -18px 0 var(--accent), 20px 18px 0 var(--accent);
}
.pixel-mark--right { transform: scaleX(-1); }
.lead-form {
    display: grid;
    gap: 34px;
}
.lead-form__row {
    display: grid;
    gap: 56px;
}
@media (min-width: 720px) {
    .lead-form__row--2col { grid-template-columns: 1fr 1fr; }
}
.lead-field {
    display: grid;
    gap: 16px;
}
.lead-field__label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.2;
    color: #242424;
}
.lead-form-page--brand .lead-field__label {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}
.lead-field__input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #242424;
    background: transparent;
    color: #242424;
    padding: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 21px;
    line-height: 1.4;
    border-radius: 0;
}
.lead-form-page--brand .lead-field__input {
    border-bottom-color: rgba(229, 226, 222, 0.34);
    color: var(--text);
}
.lead-field__input::placeholder { color: #a8a8a8; opacity: 1; }
.lead-form-page--brand .lead-field__input::placeholder {
    color: rgba(229, 226, 222, 0.72);
}
.lead-field__select {
    appearance: auto;
    color: #242424;
}
.lead-form-page--brand .lead-field__select {
    color: var(--text);
    background: var(--bg-page);
}
.lead-form-page--brand .lead-field__select option {
    background: var(--bg-page);
    color: var(--text);
}
.lead-field__textarea {
    min-height: 128px;
    resize: vertical;
}
.lead-form__actions {
    display: grid;
    justify-items: center;
    gap: 20px;
    padding-top: 112px;
}
.lead-form__submit {
    min-width: min(430px, 100%);
    border-radius: 9px;
    background: #242424;
    color: #f4f4f3;
    padding: 24px 36px;
    font-family: var(--font-mono);
    font-size: 22px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}
.lead-form-page--brand .lead-form__submit {
    border-radius: 0;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
}
.lead-form-page--brand .lead-form__submit:hover,
.lead-form-page--brand .lead-form__submit:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}
.lead-form__submit:disabled { opacity: 0.58; cursor: not-allowed; }
.lead-form__status { color: #242424; }
.lead-form-page--brand .lead-form__status { color: var(--text-muted); }
@media (max-width: 640px) {
    .lead-form-page { padding-block: 72px 96px; }
    .lead-form-page__mark-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 72px;
    }
    .pixel-mark { display: none; }
    .lead-form-page__mark-row h1 { font-size: 34px; }
    .lead-field__label { font-size: 17px; }
    .lead-field__input { font-size: 18px; }
    .lead-form__actions { padding-top: 48px; }
    .lead-form__submit { font-size: 16px; }
}

/* CTA banner */
.cta-banner {
    padding-block: var(--section-pad-y);
    border-top: 1px solid var(--border);
    text-align: center;
}
.cta-banner__inner {
    max-width: 880px;
    margin: 0 auto;
    padding-inline: var(--section-pad-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}


/* ==========================================================================
   OS page
   ========================================================================== */

.os-hero { padding: 136px 0 88px; }
.os-hero__inner { max-width: 920px; display: flex; flex-direction: column; gap: 28px; }
.os-hero .display {
    font-size: clamp(46px, 5vw, 76px);
    line-height: 1.06;
    max-width: 12.5ch;
}
.os-hero__cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* Editorial numbered list — replaces the banned icon+title+body card grid */
.os-capabilities { padding-block: 112px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.os-capabilities__list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}
.capability {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}
@media (min-width: 720px) {
    .capability { grid-template-columns: 100px 280px 1fr; gap: 48px; }
}
.capability__num {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}
.capability__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-variation-settings: "opsz" 48;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text);
}
.capability__body {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 60ch;
}

.os-features { padding-block: var(--section-pad-y); display: grid; gap: 120px; }
.os-feature { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 960px) {
    .os-feature { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
    .os-feature--flip > :first-child { order: 2; }
}
.os-feature__copy { display: flex; flex-direction: column; gap: 24px; }
.os-feature__visual {
    aspect-ratio: 16 / 11;
    border: 1px solid var(--border);
    background: var(--bg-lifted);
    position: relative;
    overflow: hidden;
}
.os-feature__visual-inner {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 50%, rgba(93,197,217,0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-lifted) 0%, var(--bg) 100%);
}

.terminal-section { padding-block: 112px; border-top: 1px solid var(--border); }
.terminal {
    background: #0A0A0E;
    border: 1px solid var(--border-strong);
    padding: 0;
    max-width: 960px;
    margin-inline: auto;
}
.terminal__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.terminal__body {
    padding: 28px 32px;
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    overflow-x: auto;
}
.terminal__comment { color: var(--text-dim); }
.terminal__prompt  { color: var(--text-muted); user-select: none; }
.terminal__out     { color: var(--accent); }

.os-cta { padding: 120px 0 160px; border-top: 1px solid var(--border); text-align: center; }
.os-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }

/* ==========================================================================
   UNIT OS final page
   ========================================================================== */

.unit-os-page {
    background: #000;
}
.unit-os-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--section-pad-x);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.unit-os-hero__inner {
    max-width: 980px;
    display: grid;
    gap: 28px;
}
.unit-os-hero h1 {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(44px, 6.2vw, 88px);
    line-height: 1.02;
    letter-spacing: 0;
    color: var(--text);
}
.unit-os-hero p {
    max-width: 760px;
    margin-inline: auto;
    font-family: var(--font-mono);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.65;
    color: var(--text-muted);
}
.unit-os-section {
    padding: 128px var(--section-pad-x);
    border-bottom: 1px solid var(--border);
}
.unit-os-section--centered {
    display: grid;
    justify-items: center;
    gap: 48px;
}
.unit-os-section__head {
    max-width: var(--container-max);
    margin: 0 auto 40px;
}
.unit-os-kicker {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.05;
    color: var(--text);
    text-align: center;
}
.os-matched-card {
    width: min(760px, 100%);
    min-height: 430px;
    border-radius: 22px;
    border: 1px solid rgba(229, 226, 222, 0.14);
    background: linear-gradient(180deg, #111312 0%, #090a0a 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.05) inset,
        0 44px 110px rgba(0,0,0,0.6),
        0 0 80px rgba(93,197,217,0.08);
}
.os-product-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(22px, 5vw, 56px);
}
.os-chat-window {
    width: min(560px, 100%);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(229,226,222,0.12);
    background: #0f1114;
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
    font-family: Arial, Helvetica, sans-serif;
}
.os-chat-window__top {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-inline: 18px;
    border-bottom: 1px solid rgba(229,226,222,0.08);
    background: #15181b;
}
.os-chat-window__top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(229,226,222,0.32);
}
.os-chat-window__body {
    display: grid;
    gap: 24px;
    padding: clamp(22px, 4vw, 38px);
}
.os-chat-message {
    display: grid;
    gap: 8px;
    max-width: 82%;
}
.os-chat-message span {
    font-size: 12px;
    color: rgba(229,226,222,0.54);
}
.os-chat-message p {
    margin: 0;
    padding: 15px 17px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.45;
    color: #f4f2ee;
}
.os-chat-message--user {
    justify-self: end;
    text-align: right;
}
.os-chat-message--user p {
    background: rgba(93,197,217,0.18);
    border: 1px solid rgba(93,197,217,0.28);
}
.os-chat-message--robot p {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
}
.cursor-blink,
.terminal-cursor {
    display: inline-block;
    width: 0.62em;
    height: 1em;
    margin-left: 4px;
    vertical-align: -0.16em;
    background: currentColor;
    animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.os-product-copy {
    width: min(920px, 100%);
    display: grid;
    justify-items: center;
    gap: 34px;
    text-align: center;
}
.os-product-copy h2 {
    max-width: 760px;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    color: var(--text);
}
.os-product-copy > p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}
.os-feature-list {
    width: 100%;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
    text-align: left;
}
.os-feature-list article {
    display: grid;
    gap: 8px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}
.os-feature-list h3 {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}
.os-feature-list p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
}
.skill-library-panel {
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 26px;
    background: #f2f2ef;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.5) inset,
        0 44px 100px rgba(0,0,0,0.58);
}
.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.skill-card {
    min-height: 116px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(10,10,10,0.08);
    border-radius: 18px;
    background: #fbfbfa;
    color: #161616;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.skill-card:hover,
.skill-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.12);
}
.skill-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    display: grid;
    place-items: center;
}
.skill-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}
.skill-icon--steel { background: #4f6f84; }
.skill-icon--orange { background: #e58036; }
.skill-icon--blue { background: #2878c7; }
.skill-icon--purple { background: #7554c7; }
.skill-icon--green { background: #1f5e4d; }
.skill-icon--red { background: #c9493f; }
.skill-card__copy {
    display: grid;
    gap: 5px;
}
.skill-card__copy strong {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.2;
}
.skill-card__copy small {
    color: rgba(22,22,22,0.58);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.35;
}
.skill-card__unlock {
    align-self: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: #e8e8e5;
    color: #2878c7;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
}
.skill-library-copy {
    width: min(860px, 100%);
    margin: 54px auto 0;
    display: grid;
    justify-items: center;
    gap: 22px;
    text-align: center;
}
.skill-library-copy p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}
.build-card {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 26px;
}
.build-card p {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.folder-icon {
    width: 136px;
    height: 104px;
    position: relative;
    border-radius: 18px;
    background: linear-gradient(180deg, #d8b657 0%, #b98528 100%);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.folder-icon::before {
    content: "";
    position: absolute;
    left: 12px;
    top: -18px;
    width: 58px;
    height: 32px;
    border-radius: 12px 12px 0 0;
    background: #e2c46c;
}
.folder-icon span {
    position: absolute;
    inset: 20px 0 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #f0cc65 0%, #c9912e 100%);
}
.unit-os-closing {
    padding: 150px var(--section-pad-x) 170px;
    display: grid;
    place-items: center;
    text-align: center;
}
.unit-os-closing > div {
    display: grid;
    justify-items: center;
    gap: 24px;
}
.unit-os-closing h2 {
    max-width: 760px;
    font-family: var(--font-serif);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.06;
    color: var(--text);
}
.unit-os-closing p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 18px;
}
.terminal-modal,
.waitlist-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: var(--section-pad-x);
}
.terminal-modal[hidden],
.waitlist-modal[hidden] {
    display: none;
}
.terminal-modal__backdrop,
.waitlist-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}
.terminal-modal__window,
.waitlist-modal__panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    animation: modal-open 0.2s var(--ease-soft);
}
@keyframes modal-open {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.terminal-modal__window {
    background: #050606;
    border: 1px solid rgba(98, 255, 151, 0.25);
    box-shadow: 0 40px 110px rgba(0,0,0,0.75);
    color: #69ff96;
}
.terminal-modal__window pre {
    margin: 0;
    padding: 42px;
    white-space: pre-wrap;
    font-family: "Courier New", var(--font-mono);
    font-size: 15px;
    line-height: 1.65;
}
.terminal-modal__close,
.waitlist-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
}
.terminal-modal__close:hover,
.waitlist-modal__close:hover {
    color: var(--accent);
}
.waitlist-modal__panel {
    background: #0b0c0c;
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 110px rgba(0,0,0,0.75);
    padding: clamp(28px, 5vw, 54px);
    display: grid;
    gap: 22px;
}
.waitlist-modal__panel h2 {
    max-width: 560px;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}
.waitlist-modal__panel > p {
    max-width: 560px;
    color: var(--text-muted);
    line-height: 1.65;
}
body[data-modal-open] {
    overflow: hidden;
}
@media (max-width: 760px) {
    .unit-os-hero {
        min-height: 64vh;
        padding-block: 96px;
    }
    .unit-os-hero h1 {
        font-size: clamp(38px, 10vw, 54px);
    }
    .unit-os-section {
        padding-block: 88px;
    }
    .os-matched-card {
        min-height: 360px;
        border-radius: 18px;
    }
    .skill-grid {
        grid-template-columns: 1fr;
    }
    .skill-card {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        padding: 16px;
    }
    .skill-card__unlock {
        padding-inline: 12px;
    }
    .terminal-modal {
        padding: 0;
    }
    .terminal-modal__window {
        width: 100%;
        height: 100%;
        max-height: none;
        border: 0;
    }
    .terminal-modal__window pre {
        padding: 72px 22px 28px;
        font-size: 14px;
    }
}


/* ==========================================================================
   ABOUT page — much wider editorial column, larger type
   ========================================================================== */

.about-hero { padding: 132px 0 48px; }
.about-hero__inner {
    max-width: 1180px;
    margin-inline: auto;
    padding: 0 var(--section-pad-x);
}
.about-hero .eyebrow { display: none; }
.about-hero__display {
    max-width: 14ch;
    font-size: clamp(56px, 7.2vw, 104px);
    line-height: 0.96;
}

.about-prose {
    max-width: 1080px;
    margin-inline: auto;
    padding: 0 var(--section-pad-x) 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.about-prose > p {
    font-family: var(--font-serif);
    font-size: clamp(19px, 1.35vw, 22px);
    line-height: 1.68;
    color: var(--text);
    font-weight: 300;
    letter-spacing: 0;
    max-width: 58ch;
}
.about-prose > p.muted { color: var(--text-muted); max-width: 60ch; }
.about-prose__h2 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-top: 56px;
    max-width: 20ch;
}
.about-prose__eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 40px;
}

.about-stats {
    max-width: 1180px;
    margin: 96px auto 112px;
    padding: 0 var(--section-pad-x);
    display: grid;
    gap: 0;
}
.stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: baseline;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}
.stat:last-child { border-bottom: 1px solid var(--border); }
.stat__figure {
    font-family: var(--font-serif);
    font-size: clamp(64px, 9vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--accent);
    white-space: nowrap;
}
.stat__caption {
    font-family: var(--font-mono);
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 40ch;
}

.about-roadmap {
    max-width: 1180px;
    margin: 96px auto;
    padding: 0 var(--section-pad-x);
}
.about-roadmap__title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.1;
    margin-bottom: 56px;
    color: var(--text);
    max-width: 24ch;
}
.about-roadmap__list { display: grid; gap: 0; }
.milestone {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 36px 0;
    border-top: 1px solid var(--border);
}
.milestone:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 720px) { .milestone { grid-template-columns: 220px 1fr; gap: 48px; } }
.milestone__phase {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: 6px;
}
.milestone__body { font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 62ch; }

.founder {
    max-width: 1180px;
    margin: 112px auto 0;
    padding: 112px var(--section-pad-x) 0;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
}
@media (min-width: 720px) {
    .founder { grid-template-columns: 320px 1fr; gap: 72px; align-items: start; }
}
.founder__portrait {
    border: 1px solid var(--border);
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    background: var(--bg-lifted);
}
.founder__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.15) contrast(1.05);
}
.founder__body { display: flex; flex-direction: column; gap: 20px; max-width: 56ch; }
.founder__name {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.05;
    color: var(--text);
}
.founder__role {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.founder__bio { font-size: 18px; line-height: 1.65; color: var(--text-muted); max-width: 60ch; }


/* ==========================================================================
   CAREERS page
   ========================================================================== */

.careers-hero { padding: 112px 0 24px; }
.careers-hero__inner { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.careers-hero .display {
    font-size: clamp(52px, 6.4vw, 88px);
    line-height: 1.02;
    max-width: 8ch;
}

.careers-roles { padding-bottom: 144px; }
.careers-roles__inner { max-width: 960px; }
.careers-roles__head { margin-bottom: 24px; color: var(--text-muted); }
.role-list {
    border-top: 1px solid var(--border-strong);
}
.role-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text);
    transition: color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft);
}
.role-card:hover,
.role-card:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.role-card__title {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0;
}
.role-card__meta {
    display: block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.role-card__arrow {
    font-size: 30px;
    color: var(--outline-variant, #3e494b);
    transition: transform 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}
.role-card:hover .role-card__arrow,
.role-card:focus-visible .role-card__arrow {
    transform: translateX(8px);
    color: var(--accent);
}
.careers-note {
    margin-top: 48px;
    color: var(--text-muted);
}
.careers-note a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
}

.careers-form-section { padding: 112px 0 200px; border-top: 1px solid var(--border); }
.careers-form-section__inner { max-width: 880px; display: grid; gap: 64px; }

.careers-hero--featured { padding-bottom: 80px; border-bottom: 1px solid var(--border); }
.careers-hero--featured .careers-hero__inner { max-width: 980px; }
.careers-roles--structured { padding-block: 96px 120px; }
.role-category {
    display: grid;
    gap: 24px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
}
.role-category:first-child { padding-top: 0; border-top: 0; }
.role-category__title {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}
.role-accordion {
    display: grid;
    border-top: 1px solid var(--border-strong);
}
.role-detail {
    border-bottom: 1px solid var(--border);
}
.role-detail summary {
    list-style: none;
    cursor: pointer;
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
    color: var(--text);
}
.role-detail summary::-webkit-details-marker { display: none; }
.role-detail summary::after {
    content: "+";
    flex: 0 0 auto;
    font-family: var(--font-mono);
    color: var(--accent);
}
.role-detail[open] summary::after { content: "-"; }
.role-detail p {
    max-width: 82ch;
    padding: 0 0 30px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.72;
}


/* ==========================================================================
   FILM pages
   ========================================================================== */

.film-hero { padding: 160px 0 80px; }
.film-hero__inner { max-width: 820px; display: flex; flex-direction: column; gap: 28px; }

.film-explainer { padding: 64px 0 112px; border-top: 1px solid var(--border); }
.film-explainer__inner { max-width: 820px; display: grid; gap: 48px; }
.film-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.film-step:first-child { border-top: 0; padding-top: 0; }
.film-step__num {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: 8px;
    min-width: 44px;
}
.film-step__title {
    font-family: var(--font-serif);
    font-size: clamp(26px, 2.8vw, 34px);
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
}
.film-step__body { font-size: 17px; line-height: 1.6; color: var(--text-muted); }

.film-form-section { padding: 80px 0 200px; border-top: 1px solid var(--border); }
.film-form-section__inner { max-width: 820px; display: grid; gap: 40px; }
.film-copy-section,
.film-faq {
    padding: 88px 0;
    border-top: 1px solid var(--border);
}
.film-copy-section__inner,
.film-faq__inner {
    max-width: 820px;
    display: grid;
    gap: 56px;
}
.film-copy-block {
    display: grid;
    gap: 18px;
}
.film-bullets {
    display: grid;
    gap: 10px;
    padding-left: 22px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
}
