@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Orbitron:wght@500;700;800;900&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
    --void: #05080d;
    --night: #09111d;
    --panel: #101b2a;
    --steel: #9aacc0;
    --paper: #edf4f7;
    --arc: #69f4ff;
    --arc-bright: #c8fbff;
    --gold: #ffc857;
    --forge: #ef493f;
    --line: rgba(164, 198, 217, 0.2);
    --display: 'Orbitron', sans-serif;
    --body: 'Space Grotesk', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --page-pad: clamp(1.25rem, 4vw, 4.5rem);
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    background: var(--void);
    color: var(--paper);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(105, 244, 255, 0.018) 3px 4px);
    content: '';
    pointer-events: none;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

code,
.mono-label,
.eyebrow,
.chapter-index {
    font-family: var(--mono);
}

code {
    color: var(--arc-bright);
    font-size: 0.88em;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    padding: 0.65rem 1rem;
    background: var(--gold);
    color: var(--void);
    font-weight: 700;
    transform: translateY(-200%);
}

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

.briefing-header {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 72px;
    padding: 0 var(--page-pad);
    border-bottom: 1px solid var(--line);
    background: rgba(5, 8, 13, 0.88);
    backdrop-filter: blur(18px);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: max-content;
    font-family: var(--display);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-decoration: none;
}

.wordmark-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--arc);
    color: var(--arc);
    box-shadow: inset 0 0 12px rgba(105, 244, 255, 0.15), 0 0 12px rgba(105, 244, 255, 0.12);
}

.briefing-nav {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.5rem);
}

.briefing-nav a,
.return-link,
.briefing-footer > a:last-child {
    color: var(--steel);
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.briefing-nav a:hover,
.return-link:hover,
.briefing-footer > a:last-child:hover {
    color: var(--arc);
}

.return-link {
    justify-self: end;
    color: var(--paper);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 7rem);
    min-height: calc(100vh - 72px);
    padding: clamp(4rem, 8vw, 8.5rem) var(--page-pad);
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 45%, rgba(24, 93, 112, 0.26), transparent 28%),
        linear-gradient(115deg, #08101b 0 48%, #05080d 48% 100%);
}

.hero::before {
    position: absolute;
    right: -9rem;
    bottom: -12rem;
    width: 35rem;
    height: 35rem;
    border: 1px solid rgba(105, 244, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(105, 244, 255, 0.025), 0 0 0 8rem rgba(105, 244, 255, 0.015);
    content: '';
}

.hero-copy,
.cutaway {
    position: relative;
    z-index: 1;
}

.eyebrow,
.chapter-index,
.mono-label {
    margin: 0;
    color: var(--steel);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.45;
    text-transform: uppercase;
}

.eyebrow span {
    margin-right: 0.8rem;
    color: var(--arc);
}

.hero h1 {
    max-width: 760px;
    margin: 1.4rem 0 1.5rem;
    font-family: var(--display);
    font-size: clamp(3rem, 5.6vw, 6.8rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.97;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
    font-weight: 500;
}

.hero-lede {
    max-width: 630px;
    margin: 0;
    color: #b9c5d2;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.2rem;
}

.primary-action,
.console-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-width: 190px;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--arc);
    background: var(--arc);
    color: var(--void);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 5px 5px 0 rgba(105, 244, 255, 0.18);
    cursor: pointer;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.primary-action:hover,
.console-button:hover {
    box-shadow: 2px 2px 0 rgba(105, 244, 255, 0.2);
    transform: translate(3px, 3px);
}

.text-action {
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    font-size: 0.86rem;
    text-decoration: none;
}

.text-action:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-facts {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin: clamp(3rem, 6vw, 5.5rem) 0 0;
}

.hero-facts div {
    display: grid;
    gap: 0.1rem;
}

.hero-facts dt {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 700;
}

.hero-facts dd {
    margin: 0;
    color: var(--steel);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.cutaway {
    margin: 0;
    perspective: 1100px;
}

.viewport-shell {
    position: relative;
    aspect-ratio: 1.16;
    overflow: hidden;
    border: 1px solid rgba(105, 244, 255, 0.5);
    background: #02050a;
    box-shadow: 0 0 60px rgba(31, 174, 192, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.8);
    clip-path: polygon(4% 0, 96% 0, 100% 8%, 100% 92%, 96% 100%, 4% 100%, 0 92%, 0 8%);
    transform: rotateY(-5deg) rotateX(1deg);
    transform-origin: center;
}

.cutaway-world {
    width: 100%;
    height: 100%;
    transition: opacity 300ms ease, filter 300ms ease;
}

.cutaway-world.layer-off {
    opacity: 0.08;
    filter: grayscale(1);
}

.cutaway-hud {
    position: absolute;
    inset: 0;
    color: var(--arc);
    font-family: var(--mono);
    text-shadow: 0 0 8px currentColor;
    transition: opacity 300ms ease;
}

.cutaway-hud.layer-off {
    opacity: 0.06;
}

.demo-compass {
    position: absolute;
    top: 5%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding: 0.3rem 1.5rem;
    border-bottom: 1px solid currentColor;
    font-size: 0.72rem;
    transform: translateX(-50%);
}

.demo-compass strong {
    color: var(--gold);
    font-size: 0.95rem;
}

.demo-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(105, 244, 255, 0.55);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.demo-reticle::before,
.demo-reticle::after,
.demo-reticle i::before,
.demo-reticle i::after {
    position: absolute;
    background: var(--arc);
    content: '';
}

.demo-reticle::before { top: -11px; left: 50%; width: 1px; height: 20px; }
.demo-reticle::after { bottom: -11px; left: 50%; width: 1px; height: 20px; }
.demo-reticle i::before { top: 50%; left: -11px; width: 20px; height: 1px; }
.demo-reticle i::after { top: 50%; right: -11px; width: 20px; height: 1px; }

.demo-target {
    position: absolute;
    top: 35%;
    right: 25%;
    display: grid;
    width: 65px;
    height: 65px;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.72rem;
    animation: target-drift 5s ease-in-out infinite alternate;
}

.demo-target b {
    position: absolute;
    top: 100%;
    margin-top: 0.2rem;
    font-weight: 400;
}

.demo-altitude,
.demo-power {
    position: absolute;
    display: grid;
    gap: 0.15rem;
    font-size: 0.72rem;
}

.demo-altitude { right: 5%; bottom: 13%; text-align: right; }
.demo-power { left: 5%; bottom: 13%; }
.demo-altitude strong,
.demo-power strong { color: var(--paper); font-size: 1.1rem; font-weight: 500; }
.demo-altitude small { color: var(--arc); }

.demo-horizon {
    position: absolute;
    top: 58%;
    left: 20%;
    width: 60%;
    border-top: 1px solid rgba(105, 244, 255, 0.4);
    transform: rotate(-4deg);
}

.viewport-vignette {
    position: absolute;
    inset: 0;
    border: 18px solid rgba(7, 12, 20, 0.68);
    border-right-width: 34px;
    border-left-width: 34px;
    box-shadow: inset 0 0 70px #000;
    pointer-events: none;
}

.viewport-label {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    margin: 0;
    color: rgba(237, 244, 247, 0.42);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    transform: translateX(-50%);
    white-space: nowrap;
}

.layer-console {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0 2rem;
}

.layer-console p,
.cutaway figcaption {
    margin: 0;
    color: var(--steel);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.layer-toggle {
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.74rem;
    cursor: pointer;
}

.layer-toggle[aria-pressed='false'] {
    color: var(--steel);
    opacity: 0.65;
}

.layer-toggle i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.35rem;
    border-radius: 50%;
}

.cyan-dot { background: var(--arc); box-shadow: 0 0 7px var(--arc); }
.gold-dot { background: var(--gold); box-shadow: 0 0 7px var(--gold); }

.cutaway figcaption {
    max-width: 420px;
    margin: 0.75rem 0 0 2rem;
    text-transform: none;
}

.tour-strip {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 52px;
    padding: 0 var(--page-pad);
    border-block: 1px solid var(--line);
    background: rgba(9, 17, 29, 0.94);
    backdrop-filter: blur(14px);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    scrollbar-width: none;
}

.tour-strip::-webkit-scrollbar {
    display: none;
}

.tour-strip > span {
    color: var(--gold);
}

.tour-strip ol {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

.tour-strip a {
    color: var(--steel);
    text-decoration: none;
}

.tour-strip a:hover {
    color: var(--arc);
}

.chapter {
    padding: clamp(5.5rem, 10vw, 10rem) var(--page-pad);
}

.chapter > * {
    width: min(100%, var(--content));
    margin-inline: auto;
}

.chapter-header {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 0 5rem;
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

.chapter-header .chapter-index {
    grid-column: 1 / -1;
    margin-bottom: 1.35rem;
    color: var(--forge);
}

.chapter-header h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.chapter-header > p:last-child {
    align-self: end;
    margin: 0;
    color: var(--steel);
    font-size: 1.05rem;
}

.chapter-header.compact {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
}

.boot-sequence {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.boot-sequence article {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 330px;
    padding: 1.2rem 1.5rem 2rem;
    border-right: 1px solid var(--line);
}

.boot-sequence article:last-child {
    border-right: 0;
}

.boot-sequence article::before {
    position: absolute;
    top: -4px;
    left: -1px;
    width: 8px;
    height: 8px;
    background: var(--arc);
    box-shadow: 0 0 12px var(--arc);
    content: '';
}

.sequence-number {
    color: rgba(105, 244, 255, 0.18);
    font-family: var(--display);
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1;
}

.boot-sequence h3,
.world-tech-grid h3,
.dt-explainer h3,
.system-effects h3,
.audio-note h3,
.performance-grid h3 {
    margin: 0.55rem 0;
    font-family: var(--display);
    font-size: 1.05rem;
    line-height: 1.3;
}

.boot-sequence p:last-child,
.world-tech-grid p:last-child,
.performance-grid p,
.system-effects p,
.audio-note p:last-child {
    margin: 0;
    color: var(--steel);
    font-size: 0.92rem;
}

.code-note {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(105, 244, 255, 0.25);
    background: rgba(105, 244, 255, 0.035);
}

.code-note-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--arc);
    color: var(--arc);
    font-size: 1.6rem;
}

.code-note p:last-child {
    margin: 0.3rem 0 0;
    color: #c1ced9;
}

.code-note a {
    color: var(--arc);
    font-family: var(--mono);
    font-size: 0.76rem;
    text-decoration: none;
    text-transform: uppercase;
}

.dark-chapter {
    max-width: none;
    background:
        linear-gradient(rgba(105, 244, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 244, 255, 0.025) 1px, transparent 1px),
        #020508;
    background-size: 42px 42px;
}

.frame-rail {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line);
}

.frame-card {
    position: relative;
    min-height: 210px;
    padding: 1.4rem;
    background: #09111b;
}

.frame-card:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -7px;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--arc);
    border-right: 1px solid var(--arc);
    background: #09111b;
    content: '';
    transform: rotate(45deg);
}

.frame-card span {
    color: var(--arc);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}

.frame-card strong {
    display: block;
    margin: 3rem 0 0.5rem;
    font-family: var(--display);
    font-size: 0.95rem;
}

.frame-card p {
    margin: 0;
    color: var(--steel);
    font-size: 0.9rem;
}

.frame-card.accent { background: #0b2831; }
.frame-card.gold span { color: var(--gold); }

.dt-explainer {
    display: grid;
    grid-template-columns: auto minmax(0, 720px);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 5rem;
}

.dt-dial {
    position: relative;
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: conic-gradient(var(--arc) 0 18%, transparent 18% 100%);
    box-shadow: inset 0 0 0 16px #020508;
    color: var(--paper);
    font-family: var(--display);
    font-size: 2rem;
}

.dt-dial i {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 1px;
    height: 28px;
    background: var(--gold);
    transform-origin: 0 67px;
    animation: dial-tick 1.8s steps(8) infinite;
}

.dt-explainer h3 {
    margin: 0.7rem 0;
    font-size: 1.5rem;
}

.dt-explainer p:last-child {
    margin: 0;
    color: var(--steel);
}

.world-chapter {
    background: #dfe7e9;
    color: #0d151b;
}

.world-chapter .chapter-header > p:last-child,
.world-chapter .mono-label,
.world-tech-grid p:last-child {
    color: #52636c;
}

.world-demo {
    display: grid;
    grid-template-columns: minmax(350px, 1.1fr) minmax(300px, 0.9fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.tile-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    aspect-ratio: 1;
    border: 1px solid #9eafb5;
    background: #cbd5d8;
    box-shadow: 12px 12px 0 rgba(13, 21, 27, 0.08);
    overflow: hidden;
}

.tile {
    position: relative;
    border: 1px solid rgba(13, 21, 27, 0.18);
    background:
        linear-gradient(90deg, transparent 46%, rgba(13, 21, 27, 0.12) 46% 54%, transparent 54%),
        linear-gradient(transparent 46%, rgba(13, 21, 27, 0.12) 46% 54%, transparent 54%);
}

.tile::before,
.tile::after {
    position: absolute;
    width: 17%;
    height: 27%;
    border: 1px solid rgba(13, 21, 27, 0.36);
    background: rgba(13, 21, 27, 0.08);
    content: '';
}

.tile::before { top: 12%; left: 13%; box-shadow: 35px 30px 0 rgba(13, 21, 27, 0.08); }
.tile::after { right: 12%; bottom: 12%; box-shadow: -33px -28px 0 rgba(13, 21, 27, 0.08); }
.tile span { position: absolute; right: 5px; bottom: 3px; color: #75858c; font-family: var(--mono); font-size: 0.68rem; }
.tile.origin { background-color: rgba(105, 244, 255, 0.1); }
.tile.origin::before { background: var(--forge); border-color: var(--forge); }

.tile-pilot {
    position: absolute;
    top: 47%;
    left: 70%;
    z-index: 2;
    color: #087784;
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 0 #fff);
    transform: translate(-50%, -50%) rotate(90deg);
}

.tile-pilot.crossing {
    animation: world-crossing 2.5s ease-in-out both;
}

.tile-axis {
    position: absolute;
    color: #485960;
    font-family: var(--mono);
    font-size: 0.72rem;
}

.tile-axis.x { right: 5px; top: 50%; }
.tile-axis.z { bottom: 5px; left: 50%; }

.world-demo-copy h3 {
    margin: 0.6rem 0 1rem;
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.world-demo-copy > p:not(.mono-label) {
    color: #52636c;
}

.coordinate-readout {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0 1rem;
    padding: 1rem 0;
    border-block: 1px solid rgba(13, 21, 27, 0.2);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.coordinate-readout output {
    color: #087784;
    font-weight: 600;
}

.world-demo .console-button {
    border-color: #0d151b;
    background: #0d151b;
    color: var(--paper);
    box-shadow: 5px 5px 0 rgba(13, 21, 27, 0.18);
}

.world-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: clamp(5rem, 9vw, 9rem);
    background: rgba(13, 21, 27, 0.2);
}

.world-tech-grid article {
    padding: 0 2rem 2rem;
    background: #dfe7e9;
}

.tech-illustration {
    position: relative;
    height: 170px;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid rgba(13, 21, 27, 0.2);
}

.tech-illustration.instances {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 5px;
    perspective: 300px;
}

.instances i {
    width: 11%;
    height: var(--h, 55%);
    border: 1px solid #52636c;
    background: repeating-linear-gradient(0deg, rgba(13, 21, 27, 0.14) 0 3px, transparent 3px 7px);
    transform: rotateY(-18deg);
}

.instances i:nth-child(2) { --h: 85%; }
.instances i:nth-child(3) { --h: 45%; }
.instances i:nth-child(4) { --h: 70%; }
.instances i:nth-child(5) { --h: 95%; }
.instances i:nth-child(6) { --h: 40%; }

.tech-illustration.texture {
    background:
        linear-gradient(90deg, transparent 15%, #f6c86d 15% 21%, transparent 21% 31%, #91d1df 31% 37%, transparent 37% 47%, #f6c86d 47% 53%, transparent 53% 63%, #87959b 63% 69%, transparent 69% 79%, #f6c86d 79% 85%, transparent 85%),
        linear-gradient(#0d151b 0 20%, transparent 20% 100%);
    background-color: #64747c;
    background-size: 100% 27px;
}

.tech-illustration.collision {
    background: linear-gradient(90deg, rgba(13, 21, 27, 0.14) 1px, transparent 1px), linear-gradient(rgba(13, 21, 27, 0.14) 1px, transparent 1px);
    background-size: 20% 20%;
}

.collision i {
    position: absolute;
    top: 40%;
    left: 40%;
    width: 20%;
    height: 20%;
    border: 2px solid var(--forge);
    background: rgba(239, 73, 63, 0.18);
}

.collision span {
    position: absolute;
    top: 49%;
    left: 49%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0d151b;
}

.lab-chapter {
    background: #0a131f;
}

.flight-lab {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    border: 1px solid var(--line);
    background: #05090e;
}

.attitude-display {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background: linear-gradient(#102839 0 50%, #191714 50% 100%);
}

.attitude-display::after {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.65) 100%);
    content: '';
    pointer-events: none;
}

.lab-horizon {
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 100%;
    border-top: 2px solid var(--arc);
    background:
        repeating-linear-gradient(90deg, transparent 0 60px, rgba(105, 244, 255, 0.18) 60px 61px),
        rgba(13, 34, 48, 0.75);
    transform: translateY(0) rotate(0deg);
    transition: transform 120ms linear;
}

.lab-horizon span {
    position: absolute;
    top: -32px;
    left: 50%;
    width: 120px;
    height: 64px;
    border-top: 1px solid rgba(105, 244, 255, 0.55);
    border-bottom: 1px solid rgba(105, 244, 255, 0.55);
    transform: translateX(-50%);
}

.lab-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 140px;
    border-bottom: 2px solid var(--gold);
    color: var(--gold);
    font-size: 2rem;
    line-height: 0;
    text-align: center;
    transform: translate(-50%, -50%);
}

.lab-reticle::before,
.lab-reticle::after {
    position: absolute;
    bottom: -2px;
    width: 35px;
    border-bottom: 2px solid var(--gold);
    content: '';
}

.lab-reticle::before { left: -30px; transform: rotate(18deg); transform-origin: right; }
.lab-reticle::after { right: -30px; transform: rotate(-18deg); transform-origin: left; }

.lab-readouts {
    position: absolute;
    inset: auto 1.5rem 1.5rem;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    color: var(--arc);
    font-family: var(--mono);
}

.lab-readouts div {
    padding: 0.8rem;
    border-left: 1px solid rgba(105, 244, 255, 0.4);
}

.lab-readouts dt { font-size: 0.72rem; }
.lab-readouts dd { margin: 0; color: var(--paper); font-size: 1.35rem; }
.lab-readouts small { color: var(--arc); font-size: 0.72rem; }

.lab-warning {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    z-index: 2;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(105, 244, 255, 0.4);
    color: var(--arc);
    font-family: var(--mono);
    font-size: 0.72rem;
    transform: translateX(-50%);
}

.lab-warning.alert {
    border-color: var(--forge);
    color: var(--forge);
}

.flight-controls,
.target-controls {
    padding: clamp(2rem, 5vw, 4rem);
}

.control-heading {
    margin-bottom: 2.5rem;
}

.control-heading p:last-child {
    color: var(--steel);
    font-size: 0.88rem;
}

.flight-controls > label,
.target-controls > label {
    display: flex;
    justify-content: space-between;
    margin-top: 1.8rem;
    color: #cbd6df;
    font-family: var(--mono);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.flight-controls label output,
.target-controls label output {
    color: var(--arc);
}

input[type='range'] {
    width: 100%;
    height: 3px;
    margin: 1rem 0;
    appearance: none;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(105, 244, 255, 0.3), var(--arc));
}

input[type='range']::-webkit-slider-thumb {
    width: 14px;
    height: 22px;
    appearance: none;
    border: 1px solid var(--arc);
    background: var(--void);
    box-shadow: 0 0 10px rgba(105, 244, 255, 0.35);
    cursor: ew-resize;
}

input[type='range']::-moz-range-thumb {
    width: 14px;
    height: 22px;
    border: 1px solid var(--arc);
    border-radius: 0;
    background: var(--void);
    cursor: ew-resize;
}

.toggle-row {
    display: grid;
    gap: 0.8rem;
    margin-top: 2rem;
}

.switch-control {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--steel);
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    cursor: pointer;
}

.switch-control input {
    position: absolute;
    opacity: 0;
}

.switch-control span {
    position: relative;
    width: 34px;
    height: 16px;
    border: 1px solid #536577;
}

.switch-control span::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: #536577;
    content: '';
    transition: transform 150ms ease, background 150ms ease;
}

.switch-control input:checked + span { border-color: var(--arc); }
.switch-control input:checked + span::after { background: var(--arc); transform: translateX(18px); }
.switch-control input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.control-footnote {
    margin-top: 2rem;
    color: #718397;
    font-size: 0.88rem;
}

.equation-strip {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.86rem;
}

.equation-strip > span { color: var(--gold); }
.equation-strip > i { color: var(--steel); font-style: normal; }
.equation-strip > small { color: var(--steel); }

.combat-chapter {
    background: #e9ece8;
    color: #12171a;
}

.combat-chapter .chapter-header > p:last-child,
.combat-chapter .mono-label,
.projection-steps p {
    color: #5c696e;
}

.targeting-lab {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    border: 1px solid #aeb8b9;
    background: #0a1014;
    color: var(--paper);
}

.target-scope {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-right: 1px solid rgba(105, 244, 255, 0.22);
    background:
        radial-gradient(circle at center, rgba(105, 244, 255, 0.08), transparent 52%),
        linear-gradient(rgba(105, 244, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 244, 255, 0.035) 1px, transparent 1px),
        #071016;
    background-size: auto, 38px 38px, 38px 38px, auto;
}

.scope-cone {
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 50%;
    width: 38%;
    border-inline: 1px solid rgba(255, 200, 87, 0.4);
    background: linear-gradient(90deg, transparent, rgba(255, 200, 87, 0.08), transparent);
    clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
    transform: translateX(-50%);
}

.scope-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(105, 244, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.scope-crosshair::before,
.scope-crosshair::after {
    position: absolute;
    background: var(--arc);
    content: '';
}

.scope-crosshair::before { top: 50%; left: -30px; width: 140px; height: 1px; }
.scope-crosshair::after { top: -30px; left: 50%; width: 1px; height: 140px; }

.scope-contact {
    position: absolute;
    top: 45%;
    left: 79%;
    z-index: 2;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid var(--forge);
    color: var(--forge);
    font-family: var(--mono);
    font-size: 0.72rem;
    transform: translate(-50%, -50%);
    transition: left 120ms linear, top 120ms linear;
}

.scope-contact.candidate {
    border-color: var(--gold);
    color: var(--gold);
}

.scope-contact.locked {
    border-color: var(--forge);
    color: var(--forge);
    box-shadow: 0 0 18px rgba(239, 73, 63, 0.35);
}

.scope-contact i {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(currentColor var(--progress, 0%), transparent 0);
    mask: radial-gradient(transparent 58%, #000 60%);
}

.scope-label {
    position: absolute;
    bottom: 2rem;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.scope-label.left { left: 31%; }
.scope-label.right { right: 31%; }

.lock-state {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--forge);
    color: var(--forge);
    font-family: var(--mono);
    font-size: 0.74rem;
    transform: translateX(-50%);
}

.target-controls {
    background: #0d171e;
}

.lock-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 3rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.lock-specs div {
    padding: 1rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.lock-specs dt { color: var(--steel); font-family: var(--mono); font-size: 0.72rem; }
.lock-specs dd { margin: 0.25rem 0 0; color: var(--arc); font-family: var(--display); }

.projection-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 4rem;
    background: #aeb8b9;
}

.projection-steps article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.4rem;
    background: #e9ece8;
}

.projection-steps article > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #12171a;
    font-family: var(--mono);
    font-size: 0.74rem;
}

.projection-steps h3 { margin: 0; font-family: var(--display); font-size: 0.85rem; }
.projection-steps p { margin: 0.45rem 0 0; font-size: 0.88rem; }

.integration-chapter {
    background: #07101a;
}

.systems-diagram {
    display: grid;
    grid-template-columns: 1fr minmax(100px, 0.4fr) 1fr minmax(100px, 0.4fr) 1fr;
    align-items: stretch;
}

.system-node {
    position: relative;
    min-height: 220px;
    padding: 2rem;
    border: 1px solid var(--line);
    background: #0d1825;
}

.system-node > span {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    color: rgba(105, 244, 255, 0.14);
    font-family: var(--display);
    font-size: 2.5rem;
    font-weight: 800;
}

.system-node h3 {
    margin: 3.5rem 0 0.3rem;
    font-family: var(--display);
    font-size: 1.15rem;
}

.system-node p:last-child { margin: 0; color: var(--steel); font-size: 0.85rem; }
.system-node.engine { border-color: rgba(105, 244, 255, 0.55); box-shadow: inset 0 0 35px rgba(105, 244, 255, 0.05); }
.system-node.output { border-color: rgba(255, 200, 87, 0.38); }

.data-link {
    position: relative;
    display: grid;
    place-items: center;
    color: var(--steel);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.data-link i {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--arc);
}

.data-link i::after {
    position: absolute;
    top: -4px;
    right: 0;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--arc);
    border-right: 1px solid var(--arc);
    content: '';
    transform: rotate(45deg);
}

.data-link span {
    z-index: 1;
    padding: 0.3rem;
    background: #07101a;
}

.system-effects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 2rem;
    background: var(--line);
}

.system-effects article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    padding: 1.5rem;
    background: #0b1520;
}

.system-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(105, 244, 255, 0.35);
    color: var(--arc);
    font-size: 1.4rem;
}

.system-effects h3 { margin-top: 0; }

.performance-chapter {
    background: #10151b;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}

.performance-grid article {
    min-height: 270px;
    padding: 1.7rem;
    background: #0b1016;
}

.performance-grid strong {
    display: block;
    margin-bottom: 3.5rem;
    color: var(--arc);
    font-family: var(--display);
    font-size: 3rem;
}

.audio-note {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
    margin-top: 5rem;
    padding: 3rem;
    border: 1px solid rgba(255, 200, 87, 0.3);
    background: rgba(255, 200, 87, 0.025);
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 140px;
}

.waveform i {
    width: 4px;
    height: var(--wave, 30%);
    background: var(--gold);
    transform-origin: center;
    animation: waveform 1.2s ease-in-out infinite alternate;
}

.waveform i:nth-child(2) { --wave: 70%; animation-delay: -0.2s; }
.waveform i:nth-child(3) { --wave: 45%; animation-delay: -0.6s; }
.waveform i:nth-child(4) { --wave: 90%; animation-delay: -0.9s; }
.waveform i:nth-child(5) { --wave: 55%; animation-delay: -0.4s; }
.waveform i:nth-child(6) { --wave: 100%; animation-delay: -0.7s; }
.waveform i:nth-child(7) { --wave: 60%; animation-delay: -1s; }
.waveform i:nth-child(8) { --wave: 85%; animation-delay: -0.5s; }
.waveform i:nth-child(9) { --wave: 40%; animation-delay: -0.8s; }
.waveform i:nth-child(10) { --wave: 65%; animation-delay: -0.1s; }
.waveform i:nth-child(11) { --wave: 25%; animation-delay: -0.65s; }

.audio-note h3 { font-size: 1.6rem; }

.closing-brief {
    display: grid;
    justify-items: center;
    padding: clamp(7rem, 14vw, 14rem) var(--page-pad);
    background:
        radial-gradient(circle at center, rgba(105, 244, 255, 0.12), transparent 30%),
        #020508;
    text-align: center;
}

.closing-brief h2 {
    margin: 1.4rem 0 0.8rem;
    font-family: var(--display);
    font-size: clamp(2.8rem, 6vw, 6rem);
    letter-spacing: -0.05em;
}

.closing-brief > p:not(.eyebrow) {
    max-width: 560px;
    margin: 0 0 2.2rem;
    color: var(--steel);
}

.briefing-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 100px;
    padding: 1.5rem var(--page-pad);
    border-top: 1px solid var(--line);
    background: #020508;
}

.briefing-footer p {
    color: var(--steel);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.briefing-footer > a:last-child {
    justify-self: end;
}

@keyframes target-drift {
    to { transform: translate(-35px, 15px); }
}

@keyframes dial-tick {
    to { transform: rotate(360deg); }
}

@keyframes world-crossing {
    0% { left: 70%; }
    48% { left: 102%; opacity: 1; }
    49% { opacity: 0; }
    50% { left: 35%; opacity: 0; }
    55% { opacity: 1; }
    100% { left: 55%; }
}

@keyframes waveform {
    to { opacity: 0.45; transform: scaleY(0.4); }
}

@media (max-width: 1050px) {
    .briefing-nav { display: none; }
    .briefing-header { grid-template-columns: 1fr 1fr; }
    .hero { grid-template-columns: 1fr; }
    .cutaway { width: min(100%, 760px); margin-inline: auto; }
    .chapter-header,
    .chapter-header.compact { grid-template-columns: 1fr; gap: 1.5rem; }
    .chapter-header h2 { max-width: 760px; }
    .chapter-header > p:last-child { max-width: 660px; }
    .boot-sequence { grid-template-columns: repeat(2, 1fr); }
    .boot-sequence article:nth-child(2) { border-right: 0; }
    .boot-sequence article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .frame-rail { grid-template-columns: repeat(3, 1fr); }
    .frame-card:nth-child(3)::after { display: none; }
    .frame-card:nth-child(n+4) { border-top: 1px solid var(--line); }
    .world-tech-grid,
    .performance-grid { grid-template-columns: repeat(2, 1fr); }
    .systems-diagram { grid-template-columns: 1fr; gap: 0; }
    .data-link { min-height: 70px; }
    .data-link i { top: 0; bottom: 0; left: 50%; width: 1px; height: auto; }
    .data-link i::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
}

@media (max-width: 760px) {
    :root { --page-pad: 1.15rem; }
    .briefing-header { min-height: 62px; }
    .wordmark { font-size: 0.72rem; }
    .wordmark-mark { width: 26px; height: 26px; }
    .return-link { font-size: 0; }
    .return-link span { font-size: 1rem; }
    .hero { min-height: auto; padding-top: 4rem; background: radial-gradient(circle at 70% 35%, rgba(24, 93, 112, 0.2), transparent 30%), var(--void); }
    .hero h1 { font-size: clamp(2.75rem, 13vw, 4.5rem); }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-facts { justify-content: space-between; gap: 0.6rem; }
    .hero-facts dt { font-size: 0.9rem; }
    .hero-facts dd { max-width: 95px; font-size: 0.72rem; }
    .viewport-shell { transform: none; }
    .layer-console { align-items: flex-start; flex-wrap: wrap; margin-left: 0; }
    .layer-console p { width: 100%; }
    .cutaway figcaption { margin-left: 0; }
    .tour-strip { overflow-x: auto; gap: 1rem; }
    .tour-strip ol { gap: 1.25rem; white-space: nowrap; }
    .tour-strip > span { display: none; }
    .chapter { padding-block: 5.5rem; }
    .chapter-header { margin-bottom: 3rem; }
    .chapter-header h2 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
    .boot-sequence { grid-template-columns: 1fr; }
    .boot-sequence article { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
    .boot-sequence article:last-child { border-bottom: 0; }
    .code-note { grid-template-columns: auto 1fr; }
    .code-note a { grid-column: 2; }
    .frame-rail { display: block; background: none; }
    .frame-card { min-height: 170px; border-bottom: 1px solid var(--line); }
    .frame-card::after { display: none; }
    .frame-card strong { margin-top: 2rem; }
    .dt-explainer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .world-demo { grid-template-columns: 1fr; }
    .world-tech-grid,
    .performance-grid { grid-template-columns: 1fr; }
    .world-tech-grid article { padding-inline: 0; }
    .flight-lab,
    .targeting-lab { grid-template-columns: 1fr; }
    .attitude-display,
    .target-scope { min-height: 420px; border-right: 0; border-bottom: 1px solid var(--line); }
    .flight-controls,
    .target-controls { padding: 2rem 1.25rem; }
    .equation-strip { align-items: center; flex-direction: column; text-align: center; }
    .projection-steps { grid-template-columns: 1fr; }
    .system-effects { grid-template-columns: 1fr; }
    .audio-note { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
    .briefing-footer { grid-template-columns: 1fr auto; }
    .briefing-footer p { display: none; }
}

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