:root {
    color-scheme: dark;
    --bg: #070a14;
    --ink: #f7f8ff;
    --ink-2: rgba(238, 242, 255, 0.76);
    --ink-3: rgba(238, 242, 255, 0.5);
    --line: rgba(255, 255, 255, 0.16);
    --glass: rgba(11, 16, 31, 0.58);
    --accent: #a5b4fc;
    --accent-2: #7dd3fc;
    --accent-3: #f0abfc;
    --ease-out: cubic-bezier(0.22, 0.9, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    color: var(--ink);
    background: var(--bg);
    font-family: "Inter", "SF Pro Display", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

::selection {
    color: #10152b;
    background: var(--accent-2);
}

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

.skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 999px;
    color: #10152b;
    background: #fff;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.motion-nav {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    left: 50%;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(1120px, calc(100% - 32px));
    min-height: 54px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 12, 24, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 50px rgba(2, 5, 14, 0.28);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    transform: translateX(-50%);
}

.home-link {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.86rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease-out);
}

.home-link:hover,
.home-link:focus-visible {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-2px);
}

.nav-title,
.nav-counter {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-2);
}

.nav-title span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 14px rgba(125, 211, 252, 0.95);
}

.nav-counter {
    justify-self: end;
    padding-right: 14px;
    color: var(--ink-3);
}

.fluid-track {
    position: relative;
    height: 140svh;
}

.fluid-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background: #0a1426;
    touch-action: pan-y;
}

.fluid-fallback,
#fluid-canvas,
.fluid-shade,
.grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.fluid-fallback {
    z-index: -4;
    background-image: url("assets/bg11-720.webp");
    background-position: center;
    background-size: cover;
    filter: saturate(0.78) brightness(0.76);
    transform: scale(1.015);
}

#fluid-canvas {
    z-index: -3;
    display: block;
    opacity: 0;
    transition: opacity 700ms ease;
}

.fluid-ready #fluid-canvas {
    opacity: 1;
}

.fluid-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 9, 20, 0.8) 0%, rgba(5, 9, 20, 0.4) 43%, rgba(5, 9, 20, 0.12) 68%, rgba(5, 9, 20, 0.3) 100%),
        linear-gradient(180deg, rgba(5, 8, 17, 0.42), transparent 30%, transparent 68%, rgba(5, 8, 17, 0.78));
    pointer-events: none;
}

.grain {
    z-index: -1;
    opacity: 0.13;
    pointer-events: none;
    background-image:
        repeating-radial-gradient(circle at 17% 32%, transparent 0, rgba(255, 255, 255, 0.22) 0.7px, transparent 1.1px, transparent 4px);
    background-size: 7px 7px;
    mix-blend-mode: soft-light;
}

.fluid-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    gap: clamp(28px, 6vw, 90px);
    align-items: end;
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    padding: clamp(120px, 15vh, 170px) 0 clamp(90px, 11vh, 120px);
}

.fluid-copy {
    align-self: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: rgba(247, 248, 255, 0.74);
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    font-weight: 750;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow span {
    display: inline-flex;
    min-width: 35px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

h1 {
    max-width: 930px;
    margin: 0 0 26px;
    font-size: clamp(3.65rem, 9.6vw, 8.9rem);
    font-weight: 820;
    line-height: 0.89;
    letter-spacing: -0.065em;
    text-wrap: balance;
    text-shadow: 0 20px 70px rgba(0, 0, 0, 0.46);
}

h1 span {
    color: transparent;
    background: linear-gradient(92deg, #fff 0%, #b8e9ff 32%, #a5b4fc 64%, #f0abfc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 10px 30px rgba(125, 211, 252, 0.2));
}

.hero-lead {
    max-width: 610px;
    margin: 0 0 28px;
    color: var(--ink-2);
    font-size: clamp(0.96rem, 1.5vw, 1.08rem);
    line-height: 1.85;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.pointer-instruction {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(247, 248, 255, 0.84);
    background: rgba(8, 13, 27, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.motion-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 5px rgba(125, 211, 252, 0.12), 0 0 18px rgba(125, 211, 252, 0.95);
    animation: breathe 1.8s ease-in-out infinite;
}

.telemetry {
    align-self: end;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(12, 18, 35, 0.68), rgba(12, 18, 35, 0.36));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 24px 70px rgba(2, 6, 17, 0.26);
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
}

.telemetry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.16em;
}

.live-state {
    color: #a7f3d0;
}

.fluid-static .live-state {
    color: #fcd34d;
}

.telemetry dl {
    display: grid;
    gap: 0;
    margin: 6px 0 16px;
}

.telemetry dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry dt,
.telemetry dd {
    margin: 0;
    font-size: 0.78rem;
}

.telemetry dt {
    color: var(--ink-3);
}

.telemetry dd {
    color: var(--ink-2);
    font-weight: 650;
}

.signal-lines {
    display: flex;
    height: 38px;
    align-items: end;
    gap: 5px;
}

.signal-lines span {
    flex: 1;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, var(--accent-2), rgba(165, 180, 252, 0.24));
    transform-origin: bottom;
    animation: signal 1.6s ease-in-out infinite alternate;
}

.signal-lines span:nth-child(1) { height: 38%; animation-delay: -0.8s; }
.signal-lines span:nth-child(2) { height: 76%; animation-delay: -0.2s; }
.signal-lines span:nth-child(3) { height: 54%; animation-delay: -1.1s; }
.signal-lines span:nth-child(4) { height: 92%; animation-delay: -0.5s; }
.signal-lines span:nth-child(5) { height: 62%; animation-delay: -1.3s; }

.scroll-cue {
    position: absolute;
    right: clamp(20px, 4vw, 58px);
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(247, 248, 255, 0.48);
    font-size: 0.63rem;
    font-weight: 750;
    letter-spacing: 0.18em;
}

.scroll-cue i {
    position: relative;
    width: 42px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
}

.scroll-cue i::after {
    position: absolute;
    inset: 0;
    content: "";
    background: #fff;
    transform: translateX(-100%);
    animation: sweep 1.8s var(--ease-out) infinite;
}

.no-script {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    max-width: 360px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    color: #10152b;
    background: #fff;
}

@keyframes breathe {
    50% { transform: scale(0.72); opacity: 0.65; }
}

@keyframes signal {
    to { transform: scaleY(0.38); opacity: 0.48; }
}

@keyframes sweep {
    55%, 100% { transform: translateX(100%); }
}

@media (max-width: 760px) {
    .motion-nav {
        grid-template-columns: 1fr auto;
    }

    .nav-title {
        display: none;
    }

    .fluid-stage {
        min-height: 590px;
    }

    .fluid-content {
        grid-template-columns: 1fr;
        align-items: center;
        width: min(100% - 28px, 620px);
        padding-top: 104px;
        padding-bottom: 88px;
    }

    .fluid-copy {
        align-self: end;
    }

    h1 {
        font-size: clamp(3.3rem, 17vw, 6.1rem);
        line-height: 0.94;
    }

    .hero-lead {
        max-width: 520px;
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .telemetry {
        display: none;
    }

    .scroll-cue {
        right: 16px;
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fluid-track {
        height: 100svh;
    }

    .motion-dot,
    .signal-lines span,
    .scroll-cue i::after {
        animation: none;
    }

    #fluid-canvas {
        display: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .motion-nav,
    .pointer-instruction,
    .telemetry {
        background: #11182d;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ---------- 滚动扩展转场 ---------- */

.motion-nav::after {
    position: absolute;
    right: 20px;
    bottom: -1px;
    left: 20px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.5);
    transform: scaleX(var(--page-progress, 0));
    transform-origin: left;
}

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

.expansion-track {
    position: relative;
    height: 240svh;
    background: #05070d;
}

.expansion-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(165, 180, 252, 0.08), transparent 48%),
        #05070d;
}

.expansion-plane {
    --clip-x: clamp(22px, 11vw, 170px);
    --clip-y: clamp(92px, 14vh, 140px);
    --clip-radius: 34px;
    --image-scale: 1.08;
    position: absolute;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(var(--clip-y) var(--clip-x) round var(--clip-radius));
    will-change: clip-path;
}

.expansion-plane::before,
.expansion-plane::after {
    position: absolute;
    inset: -2%;
    z-index: -2;
    content: "";
}

.expansion-plane::before {
    background-image: url("assets/bg0-720.webp");
    background-position: center;
    background-size: cover;
    filter: saturate(0.92) contrast(1.04);
    transform: scale(var(--image-scale));
    will-change: transform;
}

.expansion-plane::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 8, 18, 0.78) 0%, rgba(8, 8, 18, 0.38) 43%, rgba(8, 8, 18, 0.08) 72%),
        linear-gradient(180deg, rgba(5, 6, 14, 0.38), transparent 38%, rgba(5, 6, 14, 0.6));
}

.expansion-chapter {
    position: absolute;
    top: max(104px, calc(var(--clip-y) + 30px), calc(env(safe-area-inset-top) + 82px));
    left: max(clamp(34px, 6vw, 92px), calc(var(--clip-x) + 36px));
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.expansion-chapter span {
    color: #ffccb6;
}

.expansion-copy {
    position: absolute;
    left: max(clamp(34px, 6vw, 92px), calc(var(--clip-x) + 36px));
    bottom: max(clamp(78px, 11vh, 124px), calc(var(--clip-y) + 32px));
    width: min(810px, calc(100% - 68px));
    will-change: transform, opacity;
}

.expansion-copy h1,
.outro-copy h2 {
    margin: 0 0 24px;
    font-size: clamp(3.2rem, 8vw, 7.8rem);
    font-weight: 820;
    line-height: 0.93;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.expansion-copy h1 span,
.outro-copy h2 span {
    color: transparent;
    background: linear-gradient(94deg, #fff1ea, #ffc2a7 40%, #f0abfc 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.expansion-copy > p:last-child {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 245, 241, 0.78);
    font-size: clamp(0.95rem, 1.5vw, 1.07rem);
    line-height: 1.82;
}

.expansion-readout {
    position: absolute;
    right: max(clamp(34px, 5vw, 76px), calc(var(--clip-x) + 28px));
    bottom: max(clamp(32px, 5vh, 58px), calc(var(--clip-y) + 24px));
    display: grid;
    grid-template-columns: auto minmax(60px, 9vw);
    gap: 7px 12px;
    align-items: center;
    color: rgba(255, 255, 255, 0.58);
}

.expansion-readout > span {
    color: #fff;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.expansion-readout i {
    position: relative;
    width: 100%;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.24);
}

.expansion-readout i::after {
    position: absolute;
    inset: 0;
    content: "";
    background: #fff;
    transform: scaleX(var(--expand-progress, 0));
    transform-origin: left;
}

.expansion-readout small {
    grid-column: 1 / -1;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.edge-label {
    position: absolute;
    top: 50%;
    right: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    transform: translateY(-50%) rotate(90deg) translateX(50%);
    transform-origin: right center;
}

/* ---------- 滚动场景切换 ---------- */

.scene-track {
    position: relative;
    height: 420svh;
    background: #05070d;
}

.scene-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background: #05070d;
}

.scene {
    --scene-scale: 1.055;
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    overflow: hidden;
    background: #090b13;
    transform: scale(var(--scene-scale));
    transform-origin: center;
    will-change: opacity, transform;
}

.scene-active {
    opacity: 1;
}

.scene::before,
.scene::after {
    position: absolute;
    inset: 0;
    content: "";
}

.scene::before {
    z-index: -2;
    background-image: var(--scene-image);
    background-position: center;
    background-size: cover;
}

.scene::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 7, 15, 0.72), rgba(4, 7, 15, 0.18) 52%, rgba(4, 7, 15, 0.42)),
        linear-gradient(180deg, rgba(4, 7, 15, 0.42), transparent 33%, rgba(4, 7, 15, 0.76));
}

.scene:nth-of-type(2)::after {
    background:
        radial-gradient(circle at 50% 45%, transparent 0, rgba(0, 0, 0, 0.12) 44%, rgba(0, 0, 0, 0.68) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 45%, rgba(0, 0, 0, 0.72));
}

.scene-copy {
    position: absolute;
    left: clamp(24px, 6vw, 94px);
    bottom: clamp(72px, 11vh, 118px);
    z-index: 2;
    width: min(560px, calc(100% - 48px));
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(7, 12, 24, 0.68), rgba(7, 12, 24, 0.34));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 28px 70px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    transform: translate3d(0, var(--copy-y, 0), 0);
    will-change: transform;
}

.scene-copy.align-right {
    right: clamp(24px, 6vw, 94px);
    left: auto;
}

.scene-code {
    margin: 0 0 14px;
    color: var(--scene-accent);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.18em;
}

.scene-copy h2,
.scene-copy h3 {
    margin: 0 0 18px;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.scene-copy > p:last-child {
    max-width: 470px;
    margin: 0;
    color: var(--ink-2);
    font-size: 0.96rem;
    line-height: 1.78;
}

.scene-rail {
    position: absolute;
    top: 50%;
    right: clamp(20px, 3vw, 46px);
    z-index: 10;
    display: grid;
    justify-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.56);
    transform: translateY(-50%);
}

.scene-rail > p {
    margin: 0;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
}

.scene-rail > p span {
    color: #fff;
}

.scene-dots {
    display: grid;
    gap: 10px;
}

.scene-dot {
    width: 4px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    transition: height 260ms var(--ease-out), background 260ms ease, box-shadow 260ms ease;
}

.scene-dot.dot-active {
    height: 54px;
    background: #fff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.48);
}

.rail-label {
    position: absolute;
    top: calc(100% + 70px);
    white-space: nowrap;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    transform: rotate(90deg);
}

/* ---------- 收束 ---------- */

.motion-outro {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    padding: 150px 24px 110px;
    background:
        radial-gradient(circle at 50% 42%, rgba(125, 211, 252, 0.14), transparent 24%),
        radial-gradient(circle at 52% 45%, rgba(240, 171, 252, 0.12), transparent 46%),
        #070a14;
}

.outro-copy {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
    text-align: center;
}

.outro-copy .eyebrow {
    justify-content: center;
}

.outro-copy h2 {
    font-size: clamp(3.4rem, 8.8vw, 8.4rem);
}

.outro-copy h2 span {
    background-image: linear-gradient(94deg, var(--accent-2), var(--accent), var(--accent-3));
}

.outro-copy > p {
    max-width: 650px;
    margin: 0 auto 34px;
    color: var(--ink-2);
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.85;
}

.outro-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.outro-link {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 220ms var(--ease-out), background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.outro-link.primary {
    color: #10152b;
    background: #f7f8ff;
}

.outro-link:hover,
.outro-link:focus-visible {
    color: #10152b;
    border-color: #fff;
    background: #fff;
    transform: translateY(-3px);
}

.outro-orbit,
.outro-orbit i {
    position: absolute;
    border: 1px solid rgba(165, 180, 252, 0.15);
    border-radius: 50%;
}

.outro-orbit {
    top: 50%;
    left: 50%;
    width: min(76vw, 880px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    animation: orbit 26s linear infinite;
}

.outro-orbit i:nth-child(1) {
    inset: 12%;
    border-color: rgba(125, 211, 252, 0.16);
}

.outro-orbit i:nth-child(2) {
    inset: 27%;
    border-color: rgba(240, 171, 252, 0.18);
}

.outro-orbit i:nth-child(3) {
    top: 8%;
    left: 48%;
    width: 10px;
    height: 10px;
    border: 0;
    background: var(--accent-2);
    box-shadow: 0 0 24px rgba(125, 211, 252, 0.85);
}

.motion-footer {
    position: absolute;
    right: clamp(20px, 4vw, 60px);
    bottom: max(26px, env(safe-area-inset-bottom));
    left: clamp(20px, 4vw, 60px);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--ink-3);
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

@keyframes orbit {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 760px) {
    .expansion-copy {
        right: max(24px, calc(var(--clip-x) + 20px));
        bottom: max(92px, calc(var(--clip-y) + 24px));
        left: max(24px, calc(var(--clip-x) + 20px));
        width: auto;
    }

    .expansion-copy h1,
    .outro-copy h2 {
        font-size: clamp(3.1rem, 15.5vw, 5.9rem);
        line-height: 0.96;
    }

    .expansion-chapter {
        top: max(98px, calc(var(--clip-y) + 22px));
        left: max(24px, calc(var(--clip-x) + 20px));
    }

    .expansion-readout {
        right: max(24px, calc(var(--clip-x) + 20px));
        bottom: max(28px, calc(var(--clip-y) + 18px));
    }

    .expansion-readout,
    .edge-label,
    .scene-rail {
        display: none;
    }

    .scene-copy,
    .scene-copy.align-right {
        right: 14px;
        bottom: max(24px, env(safe-area-inset-bottom));
        left: 14px;
        width: auto;
        padding: 22px;
        border-radius: 20px;
    }

    .scene-copy h2,
    .scene-copy h3 {
        font-size: clamp(2.35rem, 12vw, 4.2rem);
    }

    .scene-copy > p:last-child {
        font-size: 0.9rem;
        line-height: 1.68;
    }

    .motion-outro {
        padding-right: 18px;
        padding-left: 18px;
    }

    .outro-orbit {
        width: 130vw;
    }

    .motion-footer {
        justify-content: center;
        text-align: center;
    }

    .motion-footer span:last-child {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-nav::after {
        display: none;
    }

    .expansion-track,
    .scene-track {
        height: auto;
    }

    .expansion-sticky,
    .scene-sticky {
        position: relative;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .expansion-plane {
        position: relative;
        min-height: 100svh;
        clip-path: none;
    }

    .expansion-copy {
        opacity: 1 !important;
        transform: none !important;
    }

    .scene {
        position: relative;
        min-height: 82svh;
        opacity: 1 !important;
        transform: none !important;
    }

    .scene-copy {
        transform: none !important;
    }

    .scene-rail {
        display: none;
    }

    .outro-orbit {
        animation: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .scene-copy {
        background: #11182d;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .motion-nav {
        top: max(8px, env(safe-area-inset-top));
        min-height: 46px;
    }

    .fluid-stage,
    .expansion-sticky,
    .scene-sticky {
        min-height: 100svh;
    }

    .fluid-content {
        grid-template-columns: 1fr;
        width: min(940px, calc(100% - 48px));
        padding-top: 72px;
        padding-bottom: 30px;
    }

    h1 {
        margin-bottom: 12px;
        font-size: clamp(2.8rem, 15vh, 5rem);
    }

    .eyebrow {
        margin-bottom: 10px;
    }

    .hero-lead {
        max-width: 720px;
        margin-bottom: 14px;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .pointer-instruction {
        min-height: 38px;
    }

    .telemetry,
    .scroll-cue {
        display: none;
    }

    .expansion-chapter {
        top: max(70px, calc(var(--clip-y) + 16px));
    }

    .expansion-copy {
        bottom: max(28px, calc(var(--clip-y) + 16px));
    }

    .expansion-copy .eyebrow,
    .expansion-copy > p:last-child,
    .expansion-readout,
    .edge-label,
    .scene-rail {
        display: none;
    }

    .expansion-copy h1 {
        margin-bottom: 0;
        font-size: clamp(2.6rem, 14vh, 4.6rem);
    }

    .scene-copy,
    .scene-copy.align-right {
        right: auto;
        bottom: 22px;
        left: clamp(22px, 5vw, 58px);
        width: min(500px, calc(100% - 44px));
        padding: 18px 20px;
    }

    .scene-code {
        margin-bottom: 8px;
    }

    .scene-copy h2,
    .scene-copy h3 {
        margin-bottom: 10px;
        font-size: clamp(2.1rem, 11vh, 3.6rem);
    }

    .scene-copy > p:last-child {
        font-size: 0.82rem;
        line-height: 1.48;
    }
}

/* ---------- Standalone experiment ending ---------- */

.experiment-end {
    position: relative;
    display: grid;
    min-height: 72svh;
    place-content: center;
    overflow: hidden;
    padding: 120px 24px 90px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(125, 211, 252, 0.12), transparent 30%),
        #070a14;
}

.experiment-end::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(62vw, 650px);
    aspect-ratio: 1;
    border: 1px solid rgba(165, 180, 252, 0.13);
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%);
}

.experiment-end > * {
    position: relative;
    z-index: 1;
}

.experiment-end .eyebrow {
    justify-content: center;
}

.experiment-end h2 {
    margin: 0 0 22px;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 820;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.experiment-end > p {
    max-width: 590px;
    margin: 0 auto 30px;
    color: var(--ink-2);
    line-height: 1.8;
}

.experiment-end-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.experiment-end-actions a {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 18px;
    padding: 0 23px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease, transform 220ms var(--ease-out);
}

.experiment-end-actions a:first-child {
    color: #10152b;
    background: #fff;
}

.experiment-end-actions a:hover,
.experiment-end-actions a:focus-visible {
    color: #10152b;
    background: #fff;
    transform: translateY(-3px);
}

@media (max-width: 760px) {
    .experiment-end {
        min-height: 76svh;
        padding-right: 18px;
        padding-left: 18px;
    }

    .experiment-end::before {
        width: 115vw;
    }
}
