/* FishingROV public site — single stylesheet, no build step. */
@import url("fonts.css");

:root {
    --abyss: #020b13;
    --deep: #041725;
    --sea: #072336;
    --panel: rgba(9, 36, 54, 0.72);
    --line: rgba(127, 220, 255, 0.16);
    --line-strong: rgba(127, 220, 255, 0.38);
    --text: #e6f4fa;
    --dim: #9bb7c6;
    --hud: #7fdcff;
    --coral: #ff9f6e;
    --gold: #ffbe5c;
    --pink: #ff80be;
    --red: #ff6060;
    --green: #8cffbe;
    --radius: 14px;
    --max: 1180px;
    --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    font-family: var(--body);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    background: linear-gradient(180deg, var(--deep) 0%, var(--sea) 18%, #05192a 55%, var(--abyss) 100%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--hud); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b9ecff; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
h3 { font-size: 21px; margin-bottom: 8px; }
p + p { margin-top: 14px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.kicker {
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--hud); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #cfe6f1; max-width: 62ch; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--hud); color: #001; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ nav */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
    display: flex; align-items: center; transition: background 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(2, 14, 24, 0.82); backdrop-filter: blur(12px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; }
.nav-links a { color: var(--dim); text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav .page-tab { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 42px; border: 1px solid var(--coral); border-radius: 8px; padding: 0 11px; }
.scroll-tabs { display: flex; align-items: center; box-sizing: border-box; min-height: 42px; border: 1px solid var(--coral); border-radius: 8px; padding: 0 11px; }
.scroll-tab-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600;
    padding: 12px 22px; border-radius: 999px; text-decoration: none; font-size: 16px; border: 1px solid var(--line-strong);
    color: var(--text); background: rgba(127, 220, 255, 0.06); transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--hud); color: var(--text); background: rgba(127, 220, 255, 0.12); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #1c0b02; }
.btn.primary:hover { background: #ffb28a; color: #1c0b02; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-start; overflow: hidden; padding: 0; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2, 12, 20, 0.92) 0%, rgba(2, 12, 20, 0.7) 38%, rgba(2, 12, 20, 0) 70%),
        linear-gradient(0deg, var(--sea) 0%, rgba(7, 35, 54, 0) 22%);
}
.hero-copy { position: relative; z-index: 2; padding: clamp(76px, 10vh, 96px) 0 112px; }
.hero h1 { font-size: clamp(42px, 6.6vw, 84px); max-width: 13ch; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--hud); }
.hero .lead { max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 26px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.2em; text-align: center; }
.scroll-cue span { display: block; width: 1px; height: 36px; margin: 8px auto 0; background: linear-gradient(var(--hud), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ------------------------------------------------------------ depth gauge */
.depth {
    position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
    font-family: var(--mono); font-size: 11px; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0; transition: opacity 0.4s;
}
.depth.on { opacity: 1; }
.depth-track { width: 2px; height: 180px; background: var(--line); position: relative; border-radius: 2px; }
.depth-fill { position: absolute; top: 0; left: 0; width: 100%; background: var(--hud); border-radius: 2px; box-shadow: 0 0 10px var(--hud); }
.depth-val { color: var(--hud); font-size: 13px; min-width: 52px; text-align: center; }

/* ------------------------------------------------------------ sections */
section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    position: relative; backdrop-filter: blur(4px);
}
.card .icon { font-size: 26px; margin-bottom: 14px; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(127, 220, 255, 0.08); border: 1px solid var(--line); }
.card p { color: #c3dbe6; font-size: 16px; }
.hud-corners { position: relative; }
.hud-corners::before, .hud-corners::after {
    content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--hud); opacity: 0.55; pointer-events: none;
}
.hud-corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.hud-corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }

/* ------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(4, 23, 37, 0.92); padding: 30px 28px; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.6vw, 56px); color: var(--hud); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 0.5em; color: var(--dim); margin-left: 4px; }
.stat .label { margin-top: 10px; font-size: 15px; color: #c3dbe6; }
.stats.two-up { grid-template-columns: repeat(2, 1fr); }
.compare { margin-top: 22px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 24px; align-items: center; padding: 26px 28px; border-radius: var(--radius); border: 1px dashed rgba(255, 190, 92, 0.45); background: rgba(255, 190, 92, 0.04); }
.cmp .num { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--hud); }
.cmp.dredge .num { color: var(--gold); }
.cmp .label { margin-top: 10px; font-size: 15px; color: #c3dbe6; }
.cmp .tag { margin-top: 10px; display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.cmp-vs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.cmp-note { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 190, 92, 0.2); font-size: 13.5px; line-height: 1.55; color: #e6d3b8; }
.goal { margin-top: 22px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(127, 220, 255, 0.08), rgba(140, 255, 190, 0.04)); }
.goal h3 { margin: 6px 0 8px; }
.goal p:last-child { color: #d6ebf4; max-width: 80ch; }
@media (max-width: 760px) { .stats.two-up { grid-template-columns: 1fr; } .compare { grid-template-columns: 1fr; gap: 16px; } .cmp-vs { justify-self: start; } }
.stat .tag { margin-top: 10px; display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.caveat { margin-top: 22px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed rgba(255, 190, 92, 0.45); background: rgba(255, 190, 92, 0.05); color: #f0dcc0; font-size: 15px; }
.caveat strong { color: var(--gold); }
.caveat p { margin: 0; font-size: 14px; line-height: 1.55; }
.progress-notes { margin-top: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.progress-notes p { margin: 0; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(127, 220, 255, 0.05); color: #d6ebf4; font-size: 15.5px; }
.progress-notes strong { color: var(--hud); }
.progress-notes .david-note { border-color: var(--line); background: transparent; color: var(--dim); font-style: italic; }
@media (max-width: 760px) { .progress-notes { grid-template-columns: 1fr; } }

.done-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; margin-top: 46px; }
.done-list li { position: relative; padding-left: 36px; color: #c9dfe9; font-size: 16px; }
.done-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(140, 255, 190, 0.12); color: var(--green); font-size: 13px; font-weight: 700; }

/* ------------------------------------------------------------ gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #03121d; cursor: zoom-in; transition: transform 0.25s, border-color 0.25s; }
.shot:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px 14px; font-size: 14px; color: #bcd5e1; }
.shot figcaption b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.shot figcaption b { color: var(--hud); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 0; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; background: var(--c); vertical-align: -1px; }
.attribution { margin-top: 16px; font-size: 13px; color: var(--dim); }
.lightbox { position: fixed; inset: 0; background: rgba(1, 6, 11, 0.94); z-index: 200; display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 10px; border: 1px solid var(--line-strong); }
.lightbox p { color: var(--dim); text-align: center; margin-top: 12px; font-size: 14px; }

/* ------------------------------------------------------------ pipeline */
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 22px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 12px; color: var(--hud); display: block; margin-bottom: 10px; letter-spacing: 0.1em; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--hud); font-size: 16px; z-index: 2; }
.step h3 { font-size: 18px; }
.step p { font-size: 14px; color: #bcd5e1; }
.step.human { border-color: rgba(255, 159, 110, 0.55); background: rgba(255, 159, 110, 0.07); }
.step.human::before { color: var(--coral); }
.callout { margin-top: 34px; text-align: center; font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); color: #d9eef7; }
.callout em { font-style: normal; color: var(--coral); }

/* ------------------------------------------------------------ rig */
.rig { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; margin-top: 56px; }
.rig-visual { position: sticky; top: 96px; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.rig-head { display: grid; grid-template-columns: 1fr 1.45fr; gap: 56px; align-items: end; margin-bottom: 30px; }
.rig-head .lead { max-width: none; }
/* Frames drawn to scale: flex-grow follows frame width (1080p = 1, 4K = 2, SBS = 4). */
.pixels { display: flex; align-items: flex-end; gap: 22px; }
.px-step { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.px-step.p1080 { flex: 1 1 0; }
.px-step.p4k { flex: 2 1 0; }
.px-step.psbs { flex: 4.06 1 0; }
.px-step.p3d { flex: 2.6 1 0; }
.px-frame { position: relative; aspect-ratio: 16 / 9; border: 1.5px solid var(--hud); border-radius: 4px; overflow: hidden; background: #062234; box-shadow: 0 0 22px rgba(127, 220, 255, 0.18); }
.px-frame.grey { border-color: #6d7a82; background: #2c3439; box-shadow: none; }
.px-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.px-res { position: absolute; left: 6px; top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--hud); text-shadow: 0 1px 2px #000; }
.px-frame.grey .px-res { color: #b5c0c6; }
.px-sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px dashed rgba(255, 159, 110, 0.55); border-radius: 6px; }
.px-3d { position: relative; aspect-ratio: 5 / 4; border-radius: 10px; background: radial-gradient(ellipse at 50% 70%, rgba(255, 159, 110, 0.12), transparent 65%); }
.px-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.px-step figcaption { display: flex; flex-direction: column; gap: 6px; min-height: 96px; }
.px-step.p1080 .stream-num { color: var(--dim); }
.px-step.p3d .stream-num { color: var(--coral); }
@media (max-width: 960px) {
    .rig-head { grid-template-columns: 1fr; gap: 18px; }
    .pixels { flex-wrap: wrap; align-items: flex-start; }
    .px-step, .px-step.p1080, .px-step.p4k, .px-step.psbs, .px-step.p3d { flex: 1 1 100%; }
    .px-step.p1080 .px-frame { width: 25%; }
    .px-step.p4k .px-frame { width: 50%; }
    .px-step.p3d .px-3d { max-width: 420px; }
    .px-step figcaption { min-height: 0; }
    .rig-visual { position: relative; top: 0; }
}
.rig-visual svg { width: 100%; height: 100%; }
.spec { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.spec li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 23, 37, 0.6); font-size: 15.5px; color: #cfe3ec; }
.spec li strong { color: var(--text); }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.chip.built { color: var(--green); border-color: rgba(140, 255, 190, 0.4); }
.chip.dev { color: var(--hud); border-color: rgba(127, 220, 255, 0.4); }
.chip.plan { color: var(--gold); border-color: rgba(255, 190, 92, 0.4); }

.stream { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 26px; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--line); }
.stream-step { background: rgba(4, 23, 37, 0.92); padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.stream-num { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--hud); }
.stream-step:first-child .stream-num { color: var(--dim); }
.stream-step.stereo { background: rgba(255, 159, 110, 0.08); }
.stream-step.stereo .stream-num { color: var(--coral); }
.stream-label { font-size: 14px; color: var(--text); line-height: 1.35; }
.stream-label small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--dim); }
@media (max-width: 560px) { .stream { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ roadmap */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phase { padding: 34px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.phase.one { border-color: rgba(127, 220, 255, 0.45); box-shadow: 0 0 0 1px rgba(127, 220, 255, 0.08), 0 30px 80px -40px rgba(127, 220, 255, 0.35); }
.phase .badge { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud); }
.phase.two .badge { color: var(--coral); }
.phase h3 { font-size: 28px; margin: 8px 0 6px; }
.phase .sub { color: var(--dim); margin-bottom: 20px; }
.phase ul { list-style: none; display: grid; gap: 14px; }
.phase li { padding-left: 28px; position: relative; color: #cfe3ec; font-size: 16px; }
.phase li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border: 2px solid var(--hud); border-radius: 2px; transform: rotate(45deg); }
.phase.two li::before { border-color: var(--coral); }
.phase li strong { color: var(--text); }
.phase li ul { margin-top: 10px; gap: 6px; }
.phase li li { padding-left: 18px; font-size: 15px; color: #bcd5e1; }
.phase li li::before { content: "–"; border: 0; transform: none; width: auto; height: auto; left: 0; top: 0; color: var(--coral); }
.target { margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: rgba(127, 220, 255, 0.06); border: 1px solid var(--line); font-size: 15px; }
.target b { font-family: var(--display); font-size: 26px; color: var(--hud); display: block; }
.funding-brief { margin: 0 0 24px; }
.funding-brief h3 { font-size: 25px; margin: 0 0 12px; }
.funding-brief-intro { color: #cfe3ec; max-width: 78ch; margin-bottom: 20px; }
.funding-brief .grid { gap: 18px; }
.funding-brief .grid article { border-left: 2px solid var(--line-strong); padding-left: 14px; }
.funding-brief .grid h4 { font-family: var(--display); font-size: 17px; margin-bottom: 5px; }
.funding-brief .grid p { color: #c3dbe6; font-size: 15px; }
.funding-brief-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.draft-note { color: var(--gold); font-family: var(--mono); font-size: 12px; }

/* ------------------------------------------------------------ review note */
.review-note {
    max-width: 90ch;
    margin: 24px auto 18px;
    padding: 16px 20px;
    border-left: 3px solid var(--coral);
    border-radius: 0 10px 10px 0;
    background: rgba(255, 159, 110, 0.07);
    color: #cfe3ec;
    font-size: 15px;
}
.review-note strong { color: var(--coral); }

/* ------------------------------------------------------------ story */
.timeline { position: relative; display: grid; gap: 30px; margin-top: 10px; }
.timeline::before { content: ""; position: absolute; left: 116px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--hud), var(--coral)); opacity: 0.5; }
.moment { display: grid; grid-template-columns: 96px 1fr; gap: 42px; align-items: start; }
.moment .year { font-family: var(--mono); color: var(--hud); font-size: 15px; text-align: right; padding-top: 3px; position: relative; }
.moment .year::after { content: ""; position: absolute; right: -27px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--deep); border: 2px solid var(--hud); }
.moment.pause .year { color: var(--dim); }
.moment.pause .year::after { border-color: var(--dim); }
.moment.now .year { color: var(--coral); }
.moment.now .year::after { border-color: var(--coral); background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.moment h3 { font-size: 20px; }
.moment p { color: #c3dbe6; font-size: 16px; max-width: 68ch; }

/* ------------------------------------------------------------ support */
.need { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 52px; }
.need .card { padding: 22px; }
.need .card h3 { font-size: 17px; }
.need .card p { font-size: 14.5px; }
.need .card.hungry { border-color: rgba(255, 96, 96, 0.45); background: rgba(255, 96, 96, 0.06); }
.audiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cta-band {
    margin-top: 60px; padding: 46px; border-radius: 22px; text-align: center;
    background: radial-gradient(ellipse at top, rgba(127, 220, 255, 0.16), rgba(127, 220, 255, 0) 70%), var(--panel);
    border: 1px solid var(--line-strong);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #cfe3ec; max-width: 60ch; margin: 0 auto 26px; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------ open + footer */
.open-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.open-grid a.card { text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
.open-grid a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.credits { margin-top: 34px; font-size: 14.5px; color: var(--dim); max-width: 80ch; }
footer { border-top: 1px solid var(--line); padding: 46px 0 60px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--dim); }
footer .disclaimer { max-width: 64ch; }

/* ------------------------------------------------------------ motion */
/* Keep content visible to crawlers and visitors without JavaScript. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-cue span { animation: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
    .pipeline { grid-template-columns: repeat(3, 1fr); }
    .step:nth-child(3)::after { display: none; }
    .need { grid-template-columns: repeat(3, 1fr); }
    .open-grid, .audiences { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    body { font-size: 16px; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(2, 14, 24, 0.97); border-bottom: 1px solid var(--line); padding: 8px 0; }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; padding: 12px 24px; }
    .nav-links > li > a.page-tab { display: block; min-height: 0; padding: 12px 24px; }
    .scroll-tabs { width: fit-content; max-width: calc(100% - 24px); margin: 4px 12px; padding: 4px 8px; }
    .scroll-tab-links { flex-direction: column; align-items: stretch; gap: 0; }
    .scroll-tab-links a { padding: 8px 12px; }
    .nav-toggle { display: block; }
    .nav .btn.small { display: none; }
    .grid.three, .grid.two, .stats, .gallery, .phases, .rig, .done-list { grid-template-columns: 1fr; }
    .pipeline { grid-template-columns: 1fr 1fr; }
    .step::after { display: none; }
    .need { grid-template-columns: 1fr 1fr; }
    .hero::after { background: linear-gradient(0deg, rgba(2, 12, 20, 0.95) 10%, rgba(2, 12, 20, 0.55) 100%); }
    .timeline::before { left: 8px; }
    .moment { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
    .moment .year { text-align: left; }
    .moment .year::after { left: -32px; right: auto; }
    .depth { display: none; }
}
@media (max-width: 560px) {
    .need, .open-grid, .audiences, .pipeline { grid-template-columns: 1fr; }
    .cta-band { padding: 30px 20px; }
}

/* ------------------------------------------------------------ credits page */
.page-head { padding: 140px 0 40px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 68px); margin-bottom: 18px; }
.credit-group { padding: 34px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 260px 1fr; gap: 36px; }
.credit-group > h2 { font-size: 24px; margin: 0; }
.credit-group > h2 small { display: block; margin-top: 8px; font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--dim); line-height: 1.5; }
.credit-list { list-style: none; display: grid; gap: 14px; }
.credit-list li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 23, 37, 0.6); color: #cfe3ec; font-size: 15.5px; }
.credit-list li strong { color: var(--text); font-family: var(--display); font-size: 17px; display: block; margin-bottom: 4px; }
.credit-list li.feature { border-color: var(--line-strong); background: var(--panel); }
.credit-list .cite { display: block; margin-top: 8px; font-size: 14px; color: var(--dim); }
.lic { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(140, 255, 190, 0.35); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
.tool-grid li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 23, 37, 0.6); font-size: 14.5px; color: #c3dbe6; }
.tool-grid li a { font-weight: 600; }
@media (max-width: 860px) {
    .credit-group { grid-template-columns: 1fr; gap: 16px; }
    .tool-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ lab page */
.archive-callout { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 30px 32px; margin-bottom: 18px; border-radius: 18px; border: 1px solid rgba(255, 159, 110, 0.45); background: radial-gradient(ellipse at top left, rgba(255, 159, 110, 0.14), rgba(255, 159, 110, 0) 65%), var(--panel); }
.archive-callout > div:first-child { flex: 1 1 520px; }
.archive-callout h2 { font-size: 26px; margin-bottom: 10px; }
.archive-callout p { color: #cfe3ec; font-size: 16px; }
.archive-callout strong { color: var(--coral); }
.archive-callout .row { display: flex; gap: 12px; flex-wrap: wrap; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow li { position: relative; padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 23, 37, 0.6); display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #bcd5e1; }
.flow li strong { color: var(--text); font-family: var(--display); font-size: 16px; }
.flow-icon { font-size: 24px; }
.rules { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.rules li { padding: 14px 16px; border-left: 3px solid var(--hud); background: rgba(127, 220, 255, 0.05); border-radius: 0 10px 10px 0; font-size: 15px; color: #cfe3ec; }
.rules li strong { color: var(--text); }
.lab-exps .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.lab-exps .filters button { border: 1px solid var(--line-strong); background: transparent; color: var(--dim); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.lab-exps .filters button[aria-pressed="true"] { background: var(--hud); border-color: var(--hud); color: #02121e; }
.lab-exps .filters input { flex: 1 1 200px; min-width: 160px; background: rgba(4, 23, 37, 0.8); border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 14px; }
.small { font-size: 14px; }
.exp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.exp { padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--dim); border-radius: 12px; background: rgba(4, 23, 37, 0.65); }
.exp.adopted { border-left-color: var(--green); }
.exp.provisional { border-left-color: var(--hud); }
.exp.exploratory { border-left-color: var(--gold); }
.exp.negative { border-left-color: var(--red); }
.exp header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.exp-status { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.exp.adopted .exp-status { color: var(--green); }
.exp.provisional .exp-status { color: var(--hud); }
.exp.exploratory .exp-status { color: var(--gold); }
.exp.negative .exp-status { color: var(--red); }
.exp-meta { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.exp h3 { font-size: 18px; margin: 6px 0 10px; }
.exp dl { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 14.5px; }
.exp dt { color: var(--dim); font-family: var(--mono); font-size: 12px; padding-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.exp dd { color: #cfe3ec; }
@media (max-width: 1080px) { .exp-list { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } .rules { grid-template-columns: 1fr; } .archive-callout { padding: 24px 20px; } }
@media (max-width: 560px) { .exp dl { grid-template-columns: 1fr; gap: 2px; } .exp dd { margin-bottom: 8px; } }

.results-hold { padding: 28px 26px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(160, 170, 180, 0.12); color: var(--text); font-size: 16px; }
.results-hold p { margin: 0; }
.results-hold p + p { margin-top: 14px; }
.px-frame.grey canvas { filter: grayscale(0.85) contrast(0.95); }
.p1080 .px-res { font-size: 9px; left: 4px; top: 2px; }

/* ------------------------------------------------------------ three pipelines (How it works) */
.chip.warn { color: var(--coral); border-color: rgba(255, 159, 110, 0.5); }
.pipes { display: grid; gap: 18px; }
.pipe { --c: var(--hud); --c-soft: rgba(127, 220, 255, 0.08); display: grid; grid-template-columns: 250px 1fr 250px; gap: 22px; align-items: center; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line-strong); background: linear-gradient(90deg, var(--c-soft), rgba(4, 23, 37, 0.6) 40%); }
.pipe.stock { --c: var(--coral); --c-soft: rgba(255, 159, 110, 0.1); border-color: rgba(255, 159, 110, 0.45); }
.pipe-kind { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); margin: 0 0 4px; }
.pipe-head h3 { font-size: 20px; margin: 0 0 8px; }
.pipe-head .chip { display: inline-block; margin-bottom: 8px; }
.pipe-head p:last-child { font-size: 13.5px; color: #bcd5e1; margin: 0; }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: stretch; margin: 0; padding: 0; }
.node { position: relative; flex: 1 1 120px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 23, 37, 0.75); }
.node strong { display: block; font-size: 14.5px; color: var(--text); }
.node small { display: block; font-size: 12.5px; color: var(--dim); line-height: 1.35; }
.ico { width: 26px; height: 26px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--c-soft)); }
ol.flow .node:not(:last-child)::after { content: "›"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); color: var(--c); font-size: 22px; line-height: 1; }
.flow.parallel { flex-wrap: nowrap; gap: 8px; }
.flow.parallel .node { flex: 1 1 0; min-width: 0; padding: 10px; }
.flow.parallel .node strong { font-size: 13.5px; }
.flow.parallel .node small { font-size: 11.5px; }
.pipe-out { display: flex; align-items: center; gap: 12px; }
.out-arrow { flex: 0 0 38px; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: flowdash 0.9s linear infinite; }
.out-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--c); border-right: 0; }
@keyframes flowdash { to { background-position: 22px 0; } }
.out { flex: 1; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; border: 1.5px solid var(--c); background: var(--c-soft); box-shadow: 0 0 22px var(--c-soft); }
.out .ico { width: 34px; height: 34px; flex: 0 0 34px; }
.out strong { display: block; font-size: 15px; }
.out small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--dim); }
.out small .ico { width: 14px; height: 14px; flex: 0 0 14px; }
.out.future { border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .out-arrow { animation: none; } }
@media (max-width: 1100px) {
    .pipe { grid-template-columns: 1fr; }
    .flow.parallel { flex-wrap: wrap; }
    .flow.parallel .node { flex: 1 1 140px; }
}
@media (max-width: 560px) {
    ol.flow .node:not(:last-child)::after { content: "⌄"; right: auto; left: 50%; top: auto; bottom: -16px; transform: translateX(-50%); font-size: 16px; }
    .node { flex-basis: 100%; }
}

/* The edge pipeline sits inside a box standing for the vehicle, with a tether and thrusters. */
.vehicle { position: relative; padding: 30px 14px 14px; margin-top: 14px; border: 1.5px solid rgba(127, 220, 255, 0.55); border-radius: 26px; background: linear-gradient(180deg, rgba(127, 220, 255, 0.1), rgba(4, 23, 37, 0.4)); box-shadow: inset 0 0 30px rgba(127, 220, 255, 0.06); }
.vehicle::before { content: ""; position: absolute; left: 50%; top: -16px; width: 2px; height: 16px; background: linear-gradient(var(--hud), rgba(127, 220, 255, 0.2)); }
.vehicle::after { content: ""; position: absolute; left: -9px; right: -9px; top: 50%; height: 26px; transform: translateY(-50%); border-left: 6px solid rgba(127, 220, 255, 0.45); border-right: 6px solid rgba(127, 220, 255, 0.45); border-radius: 4px; pointer-events: none; }
.vehicle-tag { position: absolute; left: 16px; top: 8px; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hud); }
.vehicle-tag .ico { width: 15px; height: 15px; }
.vehicle-tag { white-space: nowrap; }
@media (max-width: 560px) { .vehicle-tag { font-size: 9px; letter-spacing: 0.06em; } }
.hero .hero-note { max-width: 690px; font-size: 12.5px; line-height: 1.75; }

.hero-old { margin-top: 14px; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 16px; line-height: 1.25; }
.hero-old small { font-family: var(--mono); font-size: 11px; color: var(--dim); font-weight: 400; }
