/* ==========================================================================
   OptiVault white paper — investor "vision" page (dark)
   ========================================================================== */

:root {
    --bg: #07090a;
    --bg-2: #0d1110;
    --surface: #111614;
    --surface-2: #161c19;
    --text: #f2f5ee;
    --muted: #9aa398;
    --muted-2: #6f786d;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.16);
    --lime: #c8f34a;
    --lime-dim: rgba(200, 243, 74, 0.14);
    --blue: #7c9cff;
    --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shell: 1240px;
    --gutter: clamp(16px, 4vw, 48px);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: dark;
}

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

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

html:not(.lenis) {
    scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
    height: auto;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    color: var(--text);
    background:
        radial-gradient(60% 40% at 80% 0%, rgba(200, 243, 74, 0.08), transparent 70%),
        var(--bg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

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

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    color: var(--bg);
    background: var(--lime);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s;
}

.skip-link:focus {
    transform: none;
}

.shell {
    width: min(100% - 2 * var(--gutter), var(--shell));
    margin-inline: auto;
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    height: 3px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* Buttons ---------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15.5px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.2s;
}

.button svg {
    width: 18px;
    height: 18px;
}

.button-lime {
    color: #0b0d08;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(200, 243, 74, 0);
}

.button-lime:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -12px rgba(200, 243, 74, 0.6);
}

.button-outline {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1.5px var(--line-2);
}

.button-outline:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.button-small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--lime);
}

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

/* Split / reveal (words are wrapped by js/shared/motion.js) */
.split .w {
    display: inline-block;
    overflow: clip;
    overflow-clip-margin: 0.12em;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.split .w > span {
    display: inline-block;
}

.motion .split:not(.is-in) .w > span {
    transform: translateY(105%);
}

.motion .split.is-in .w > span {
    transition: transform 0.9s var(--ease-out);
    transition-delay: calc(var(--wi) * 45ms);
}

.motion .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.motion .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--rd, 0s);
}

/* Header ------------------------------------------------------------------ */

.site-header {
    position: fixed;
    inset: 14px 0 auto;
    z-index: 20;
    pointer-events: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(100% - 2 * var(--gutter), 1160px);
    margin-inline: auto;
    padding: 7px 7px 7px 18px;
    background: rgba(12, 15, 13, 0.7);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: saturate(1.4) blur(18px);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.brand-wordmark {
    width: 100px;
    height: auto;
}

.brand-tag {
    padding: 4px 10px;
    color: var(--lime);
    background: var(--lime-dim);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.nav-link {
    padding: 9px 13px;
    color: var(--muted);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
    display: none;
}

@media (max-width: 960px) {
    .menu-toggle {
        display: grid;
        place-content: center;
        gap: 6px;
        order: 3;
        width: 42px;
        height: 42px;
        padding: 0;
        background: rgba(255, 255, 255, 0.08);
        border: 0;
        border-radius: 50%;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: transform 0.3s var(--ease-out);
    }

    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

    .site-nav > .button {
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        inset: 78px var(--gutter) auto;
        flex-direction: column;
        gap: 2px;
        margin: 0;
        padding: 12px;
        background: rgba(12, 15, 13, 0.97);
        border: 1px solid var(--line);
        border-radius: 26px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0.25s;
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-link {
        padding: 15px 16px;
        font-size: 17px;
    }
}

.nav-link-pdf {
    display: none;
}

@media (max-width: 520px) {
    .brand-tag,
    .site-nav > .button {
        display: none;
    }

    .nav-link-pdf {
        display: block;
        color: var(--lime);
    }

    .menu-toggle {
        margin-left: auto;
    }
}

/* Hero -------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 130px 0 100px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 220px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.hero-globe {
    position: absolute;
    top: 50%;
    right: -9vw;
    width: min(820px, 60vw);
    aspect-ratio: 1;
    transform: translateY(-46%);
}

.hero-globe canvas,
.billion-globe canvas {
    width: 100% !important;
    height: 100% !important;
}

.globe-fallback {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, transparent 57%, rgba(200, 243, 74, 0.25) 60%, transparent 64%),
        radial-gradient(circle, rgba(200, 243, 74, 0.35) 1px, transparent 1.5px) 0 0 / 14px 14px;
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 60%);
    mask-image: radial-gradient(circle, #000 58%, transparent 60%);
    opacity: 0.6;
    transition: opacity 0.8s;
}

.globe-live .globe-fallback {
    opacity: 0;
}

.globe-live .globe-fallback {
    position: absolute;
    inset: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-title {
    max-width: 760px;
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: clamp(44px, 6.2vw, 90px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.hero-title .line {
    display: block;
}

.motion .hero .eyebrow,
.motion .hero-title .line,
.motion .hero-intro,
.motion .hero .hero-actions,
.motion .hero-stats {
    animation: rise 1s var(--ease-out) both;
}

.motion .hero-title .line:nth-child(2) { animation-delay: 0.1s; }
.motion .hero-intro { animation-delay: 0.22s; }
.motion .hero .hero-actions { animation-delay: 0.32s; }
.motion .hero-stats { animation-delay: 0.42s; }

/* Transform only: fading from opacity 0 would delay Largest Contentful Paint. */
@keyframes rise {
    from {
        transform: translateY(28px);
    }
}

.hero-intro {
    max-width: 31em;
    margin-top: 26px;
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 20px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 44px;
    margin-top: 44px;
}

.hero-stats dt {
    color: var(--muted-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-stats dd {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.hero-stats div:first-child dd {
    color: var(--lime);
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: start center;
    width: 26px;
    height: 42px;
    padding-top: 8px;
    border: 2px solid var(--line-2);
    border-radius: 999px;
    transform: translateX(-50%);
}

.scroll-cue span {
    width: 4px;
    height: 8px;
    background: var(--lime);
    border-radius: 4px;
    animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    80% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 0; }
}

@media (max-width: 900px) {
    .hero {
        align-items: flex-end;
        padding-top: 120px;
    }

    .hero-globe {
        top: 40px;
        right: -38vw;
        width: 118vw;
        transform: none;
        opacity: 0.5;
    }

    .hero-inner::before {
        content: "";
        position: absolute;
        inset: -60px calc(-1 * var(--gutter)) -20px;
        z-index: -1;
        background: linear-gradient(180deg, rgba(7, 9, 10, 0) 0%, rgba(7, 9, 10, 0.82) 22%, rgba(7, 9, 10, 0.9) 100%);
    }

    .scroll-cue {
        display: none;
    }
}

/* Paper layout --------------------------------------------------------------- */

.paper {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
    padding: 40px 0 120px;
}

.toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding-right: 6px;
}

.toc-title {
    margin-bottom: 14px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.toc-list {
    display: grid;
    gap: 2px;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--line);
}

.toc-list a {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 7px 0 7px 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-list a::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--lime);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease-out);
}

.toc-list a span {
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
}

.toc-list a:hover,
.toc-list a.is-active {
    color: var(--text);
}

.toc-list a.is-active::before {
    transform: none;
}

.toc-list a.is-active span {
    color: var(--lime);
}

.toc-download {
    display: inline-flex;
    margin-top: 22px;
    color: var(--lime);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .paper {
        grid-template-columns: minmax(0, 1fr);
    }

    .toc {
        display: none;
    }
}

/* Paper typography */

.paper-body {
    counter-reset: section;
    max-width: 860px;
}

.paper-body > section {
    padding: 70px 0 30px;
    scroll-margin-top: 90px;
    border-top: 1px solid var(--line);
}

.paper-body > section:first-child {
    border-top: 0;
    padding-top: 30px;
}

.paper-body h2 {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 26px;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.paper-body h2::before {
    counter-increment: section;
    content: counter(section, decimal-leading-zero);
    flex: none;
    color: var(--lime);
    font-size: 0.34em;
    letter-spacing: 0.04em;
    transform: translateY(-0.6em);
}

.paper-body h3 {
    margin: 36px 0 14px;
    font-family: var(--font-display);
    font-size: 23px;
    letter-spacing: -0.02em;
}

.paper-body h4 {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: -0.01em;
}

.paper-body p {
    margin-bottom: 18px;
    color: #c3cabf;
    font-size: 17px;
}

.paper-body p.lede {
    color: var(--text);
    font-size: clamp(19px, 1.8vw, 23px);
    line-height: 1.5;
}

.paper-body strong {
    color: var(--text);
}

.paper-body ul,
.paper-body ol {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
    color: #c3cabf;
    font-size: 16.5px;
}

.paper-body ul > li {
    position: relative;
    padding-left: 26px;
}

.paper-body ul > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 2px;
    transform: rotate(45deg);
}

.paper-body ol {
    counter-reset: item;
}

.paper-body ol > li {
    position: relative;
    padding-left: 40px;
    counter-increment: item;
}

.paper-body ol > li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--bg);
    background: var(--lime);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

.stat-highlight {
    color: var(--lime);
    font-weight: 700;
}

/* Feature boxes (also rendered by the PDF builder) */
.feature-box {
    position: relative;
    margin: 16px 0;
    padding: 24px 26px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.paper-body .feature-box h3,
.paper-body .compare-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.feature-box p:last-child,
.feature-box ul:last-child {
    margin-bottom: 0;
}

.vision-stage {
    padding-left: 96px;
}

.stage-label {
    position: absolute;
    top: 24px;
    left: 24px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--lime);
    background: var(--surface-2);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1.5px rgba(200, 243, 74, 0.4);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.vision-stage.is-now .stage-label {
    color: var(--bg);
    background: var(--lime);
    box-shadow: 0 0 24px -6px var(--lime);
}

.vision-evolution {
    margin: 28px 0;
    padding: 26px 28px;
    background: linear-gradient(135deg, rgba(200, 243, 74, 0.14), rgba(124, 156, 255, 0.08));
    border: 1px solid rgba(200, 243, 74, 0.35);
    border-radius: 22px;
}

.evolution-label,
.ambition-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--lime);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vision-evolution .evolution-path {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 600;
    line-height: 1.55;
}

.ambition-box {
    border-color: rgba(200, 243, 74, 0.35);
    background: radial-gradient(circle at 90% 0%, rgba(200, 243, 74, 0.14), var(--surface) 60%);
}

.ambition-box h3 {
    margin-top: 0;
}

.comparison-table {
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.comparison-table table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table th {
    padding: 16px 18px;
    color: var(--lime);
    background: rgba(200, 243, 74, 0.08);
    text-align: left;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.comparison-table td {
    padding: 16px 18px;
    color: #c3cabf;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

.comparison-table td strong {
    color: var(--text);
}

@media (max-width: 640px) {
    .vision-stage {
        padding: 90px 22px 22px;
    }

    .stage-label {
        top: 22px;
        left: 22px;
    }
}

/* Visuals ---------------------------------------------------------------------- */

.visual {
    margin: 30px 0 34px;
}

.summary-grid,
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.summary-card,
.why-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.summary-card:nth-child(2),
.why-card:nth-child(2) { --rd: 0.1s; }
.summary-card:nth-child(3),
.why-card:nth-child(3) { --rd: 0.2s; }

.summary-card span {
    color: var(--lime);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.summary-card strong,
.why-card strong {
    display: block;
    margin: 6px 0 6px;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.summary-card p,
.why-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.why-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    color: var(--bg);
    background: var(--lime);
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stat {
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.stat:nth-child(2) { --rd: 0.08s; }
.stat:nth-child(3) { --rd: 0.16s; }
.stat:nth-child(4) { --rd: 0.24s; }

.stat strong {
    display: block;
    color: var(--lime);
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 48px);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 820px) {
    .summary-grid,
    .why-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Category comparison cards (moved from the old homepage) */
.compare-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.compare-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.compare-card:nth-child(2) { --rd: 0.1s; }
.compare-card:nth-child(3) { --rd: 0.2s; }

.compare-index {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-2);
    font-family: var(--font-display);
    font-weight: 700;
}

.compare-index img {
    width: 20px;
    height: 20px;
}

.paper-body .compare-card h3 {
    margin: 10px 0 6px;
}

.compare-card > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14.5px;
}

.compare-card dl {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.compare-card dt {
    color: var(--muted-2);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compare-card dd {
    font-size: 14.5px;
    font-weight: 600;
}

.compare-card-ov {
    background: linear-gradient(180deg, rgba(200, 243, 74, 0.16), var(--surface) 70%);
    border-color: rgba(200, 243, 74, 0.45);
}

.compare-card-ov .compare-index {
    color: var(--lime);
}

.compare-card-ov .compare-index img {
    filter: invert(1);
}

@media (max-width: 820px) {
    .compare-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Product gallery */
.gallery {
    overflow: hidden;
    margin-inline: calc(-1 * min(80px, var(--gutter)));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.gallery-track {
    display: flex;
    gap: 22px;
    width: max-content;
    padding: 10px 60px 20px;
    animation: gallery 40s linear infinite alternate;
}

.gallery figure {
    width: 200px;
}

.gallery img {
    width: 100%;
    height: auto;
    border: 7px solid #1d201e;
    border-radius: 34px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
}

.gallery figcaption {
    margin-top: 12px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

@keyframes gallery {
    to { transform: translateX(calc(-100% + min(860px, 90vw))); }
}

/* Pipeline */
.pipeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.pipe-line {
    position: absolute;
    top: 36px;
    left: 8%;
    width: 84%;
    height: 20px;
    z-index: 0;
    overflow: visible;
}

.pipe-line path {
    fill: none;
    stroke: var(--lime);
    stroke-width: 2;
    stroke-dasharray: 3 5;
    vector-effect: non-scaling-stroke;
    animation: dash 1.2s linear infinite;
    opacity: 0.6;
}

@keyframes dash {
    to { stroke-dashoffset: -8; }
}

.pipe-node {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    text-align: center;
}

.pipe-node:nth-child(2) { --rd: 0.08s; }
.pipe-node:nth-child(3) { --rd: 0.16s; }
.pipe-node:nth-child(4) { --rd: 0.24s; }
.pipe-node:nth-child(5) { --rd: 0.32s; }

.pipe-node span {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    color: var(--lime);
    background: var(--bg);
    border: 1.5px solid rgba(200, 243, 74, 0.5);
    border-radius: 22px;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 0 0 30px -10px rgba(200, 243, 74, 0.6);
}

.pipe-node:nth-child(3) span {
    color: var(--bg);
    background: var(--lime);
}

.pipe-node strong {
    font-family: var(--font-display);
    font-size: 17px;
}

.pipe-node small {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 640px) {
    .pipeline {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .pipe-line {
        display: none;
    }

    .pipe-node {
        grid-template-columns: 56px 1fr;
        justify-items: start;
        align-items: center;
        column-gap: 14px;
        text-align: left;
    }

    .pipe-node span {
        grid-row: span 2;
        width: 56px;
        height: 56px;
        margin: 0;
    }
}

/* Intelligence engine (orbit) */
.engine {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1;
    margin-inline: auto;
}

.engine-orbit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Rotate inside the SVG so the spinning square never widens the page. */
.engine-base {
    fill: none;
    stroke: var(--line-2);
    stroke-width: 1.5;
    stroke-dasharray: 2 8;
    transform-origin: 320px 320px;
    animation: spin 60s linear infinite;
}

.engine-flow {
    fill: none;
    stroke: var(--lime);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 18 82;
    animation: flow 6s linear infinite;
    filter: drop-shadow(0 0 8px var(--lime));
}

@keyframes flow {
    to { stroke-dashoffset: -100; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.engine-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    justify-items: center;
    width: 42%;
    padding: 24px 12px;
    text-align: center;
    background: radial-gradient(circle, rgba(200, 243, 74, 0.14), var(--surface) 70%);
    border: 1px solid rgba(200, 243, 74, 0.3);
    border-radius: 50%;
    aspect-ratio: 1;
    align-content: center;
    transform: translate(-50%, -50%);
}

.engine-core img {
    width: 34px;
    height: 34px;
    filter: invert(1);
}

.engine-core small {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.engine-core strong {
    font-family: var(--font-display);
    font-size: 19px;
}

.engine-core span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--lime);
    font-size: 12px;
    font-weight: 600;
}

.engine-core span i {
    width: 7px;
    height: 7px;
    background: var(--lime);
    border-radius: 50%;
}

.engine-node {
    position: absolute;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    width: 170px;
    padding: 10px 12px;
    background: rgba(13, 17, 16, 0.92);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    transform: translate(-50%, -50%);
}

.engine-node span {
    grid-row: span 2;
    color: var(--lime);
    font-family: var(--font-display);
    font-weight: 700;
}

.engine-node strong {
    font-size: 14.5px;
}

.engine-node small {
    color: var(--muted);
    font-size: 12px;
}

.engine-node.n1 { left: 50%; top: 13.7%; }
.engine-node.n2 { left: 85%; top: 38.8%; }
.engine-node.n3 { left: 71.6%; top: 79.5%; }
.engine-node.n4 { left: 28.4%; top: 79.5%; }
.engine-node.n5 { left: 15%; top: 38.8%; }

@media (max-width: 560px) {
    .engine-node {
        width: 128px;
        padding: 8px 10px;
    }

    .engine-node strong {
        font-size: 12.5px;
    }

    .engine-node small {
        display: none;
    }

    .engine-core {
        width: 46%;
        padding: 10px;
    }

    .engine-core small,
    .engine-core span {
        display: none;
    }
}

@media (max-width: 400px) {
    .engine-node {
        width: 104px;
    }

    .engine-node.n2 { left: 79%; }
    .engine-node.n5 { left: 21%; }
    .engine-node.n3 { left: 68%; }
    .engine-node.n4 { left: 32%; }
}

/* Roadmap timeline */
.roadmap {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding-top: 10px;
}

.roadmap-line {
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--line-2);
    border-radius: 3px;
    overflow: hidden;
}

.roadmap-line i {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--lime), #e2fb97);
    transform: scaleX(var(--p, 0.1));
    transform-origin: 0 50%;
}

.roadmap-step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
}

.roadmap-dot {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    color: var(--lime);
    background: var(--bg);
    border: 2px solid var(--line-2);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    transition: background 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
}

.roadmap-step.is-lit .roadmap-dot,
.roadmap-step.is-live .roadmap-dot {
    color: var(--bg);
    background: var(--lime);
    border-color: var(--lime);
    box-shadow: 0 0 24px rgba(200, 243, 74, 0.5);
}

.roadmap-step em {
    color: var(--muted-2);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.roadmap-step strong {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.2;
}

.roadmap-os .roadmap-dot {
    border-color: rgba(200, 243, 74, 0.5);
}

@media (max-width: 640px) {
    .roadmap {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .roadmap-line {
        top: 20px;
        bottom: 20px;
        left: 22px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .roadmap-line i {
        transform: scaleY(var(--p, 0.1));
        transform-origin: 50% 0;
    }

    .roadmap-step {
        grid-template-columns: 46px 1fr;
        justify-items: start;
        column-gap: 14px;
        text-align: left;
    }

    .roadmap-dot {
        grid-row: span 2;
        margin: 0;
    }
}

/* One billion: globe + phases */
.billion {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: start;
}

.billion-globe {
    position: sticky;
    top: 110px;
    aspect-ratio: 1;
}

.billion-phases {
    display: grid;
    gap: 14px;
    padding: 12vh 0;
}

.phase-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    opacity: 0.45;
    transform: scale(0.97);
    transition: opacity 0.5s, transform 0.5s var(--ease-out), border-color 0.5s, background 0.5s;
}

.phase-card.is-active {
    opacity: 1;
    transform: none;
    border-color: rgba(200, 243, 74, 0.5);
    background: linear-gradient(180deg, rgba(200, 243, 74, 0.12), var(--surface) 80%);
}

.phase-num {
    color: var(--lime);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.phase-card strong {
    display: block;
    margin: 6px 0;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.phase-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.no-motion .phase-card,
html:not(.motion) .phase-card {
    opacity: 1;
    transform: none;
}

@media (max-width: 760px) {
    .billion {
        grid-template-columns: minmax(0, 1fr);
    }

    .billion-globe {
        position: relative;
        top: 0;
        width: min(100%, 420px);
        margin-inline: auto;
    }

    .billion-phases {
        padding: 0;
    }

    .phase-card {
        opacity: 1;
        transform: none;
    }
}

/* Business flywheel */
.flywheel {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 1;
    margin-inline: auto;
}

.flywheel svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.fly-ring {
    fill: none;
    stroke: var(--line-2);
    stroke-width: 2;
}

.fly-flow {
    fill: none;
    stroke: var(--lime);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 24 76;
    animation: flow 5s linear infinite;
    transform-origin: 50% 50%;
    filter: drop-shadow(0 0 8px var(--lime));
}

.fly-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 40%;
    aspect-ratio: 1;
    text-align: center;
    background: radial-gradient(circle, rgba(200, 243, 74, 0.2), var(--surface) 70%);
    border: 1px solid rgba(200, 243, 74, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    align-content: center;
}

.fly-core strong {
    font-family: var(--font-display);
    font-size: 26px;
}

.fly-core small {
    color: var(--muted);
}

.fly-item {
    position: absolute;
    padding: 9px 14px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.fly-item.f1 { left: 50%; top: 12.5%; }
.fly-item.f2 { left: 87.5%; top: 50%; }
.fly-item.f3 { left: 50%; top: 87.5%; }
.fly-item.f4 { left: 12.5%; top: 50%; }

@media (max-width: 520px) {
    .fly-item {
        font-size: 12px;
        padding: 7px 10px;
    }

    .fly-item.f2 { left: 80%; }
    .fly-item.f4 { left: 20%; }
}

/* Trillion */
.trillion {
    padding: 30px;
    background: radial-gradient(80% 90% at 50% 100%, rgba(200, 243, 74, 0.12), transparent 70%), var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
}

.trillion-number {
    margin: 0 !important;
    color: var(--lime) !important;
    font-family: var(--font-display);
    font-size: clamp(30px, 6vw, 68px) !important;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1 !important;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.trillion-ladder {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    height: 200px;
    margin-top: 30px;
}

.trillion-ladder div {
    position: relative;
    height: var(--h);
    background: linear-gradient(180deg, rgba(200, 243, 74, 0.5), rgba(200, 243, 74, 0.08));
    border-radius: 12px 12px 4px 4px;
    transform-origin: 50% 100%;
    transition: transform 1.2s var(--ease-out);
}

.trillion-ladder div.is-os {
    background: linear-gradient(180deg, var(--lime), rgba(200, 243, 74, 0.3));
    box-shadow: 0 0 40px -10px var(--lime);
}

.motion .trillion:not(.is-in) .trillion-ladder div {
    transform: scaleY(0);
}

.trillion-ladder div:nth-child(2) { transition-delay: 0.1s; }
.trillion-ladder div:nth-child(3) { transition-delay: 0.2s; }
.trillion-ladder div:nth-child(4) { transition-delay: 0.3s; }
.trillion-ladder div:nth-child(5) { transition-delay: 0.4s; }

.trillion-ladder span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    padding: 0 4px;
    color: var(--text);
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
}

.trillion-ladder .is-os span {
    color: var(--bg);
}

.trillion-note {
    margin: 16px 0 0 !important;
    color: var(--muted-2) !important;
    font-size: 13px !important;
}

/* Invest ------------------------------------------------------------------ */

.invest {
    padding: clamp(90px, 12vw, 150px) 0;
    background:
        radial-gradient(50% 70% at 50% 100%, rgba(200, 243, 74, 0.18), transparent 70%),
        var(--bg-2);
    border-top: 1px solid var(--line);
    text-align: center;
}

.invest-inner {
    display: grid;
    justify-items: center;
}

.invest h2 {
    max-width: 800px;
    margin-top: 22px;
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    letter-spacing: -0.04em;
    line-height: 1;
}

.invest-inner > p:not(.eyebrow) {
    max-width: 34em;
    margin-top: 20px;
    color: var(--muted);
    font-size: 19px;
}

.invest .hero-actions {
    justify-content: center;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted-2);
    font-size: 13.5px;
}

.footer-row nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-row nav a {
    color: var(--muted);
    text-decoration: none;
}

.footer-row nav a:hover {
    color: var(--lime);
}

/* Reduced motion -------------------------------------------------------------- */

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