@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('/fonts/archivo-var.woff2') format('woff2'); }
@font-face { font-family: 'Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plex Mono'; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --fg: #fff;
  --mid: #a8a8a8;
  --dim: #6c6c6c;
  --line: rgba(255, 255, 255, 0.16);
  --fail: #ff3d8b;
  --pass: #b4f03c;
  --gutter: clamp(20px, 4vw, 56px);
  --page: 1320px;
}

* { box-sizing: border-box; margin: 0; }
html { background: #000; }
body { background: #000; color: var(--fg); font: 400 17px/1.55 'Archivo', system-ui, sans-serif; font-stretch: 100%; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mono { font-family: 'Plex Mono', ui-monospace, monospace; }
.display { font-weight: 800; font-stretch: 115%; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
[hidden] { display: none !important; }
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 72px; padding-inline: var(--gutter); border-bottom: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease; }
.top.solid { background: rgba(0, 0, 0, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-stretch: 108%; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.plain { color: var(--mid); }
.plain:hover { color: #fff; }

.btn { display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 8px 0 24px; background: #fff; color: #000; font-weight: 650; font-size: 16px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.btn .go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #000; transition: transform 0.2s ease; }
.btn .go::before { content: ''; width: 9px; height: 9px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: translateX(-2px) rotate(45deg); }
.btn:hover .go { transform: translateX(3px); }
.btn.small { height: 40px; padding: 0 5px 0 17px; font-size: 14.5px; gap: 10px; }
.btn.small .go { width: 30px; height: 30px; }
.btn.small .go::before { width: 7px; height: 7px; }

.kicker { display: flex; align-items: center; gap: 10px; font: 500 13px 'Plex Mono', monospace; color: var(--mid); }
/* The scrolling scene */
.story { position: relative; height: 575vh; height: 575svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.5) 24%, rgba(0, 0, 0, 0) 46%), linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 24%, rgba(0, 0, 0, 0) 44%), linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 14%); }

.hero { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) clamp(32px, 6vh, 64px); pointer-events: none; }
.hero a { pointer-events: auto; }
h1 { font-size: clamp(40px, 7.4vw, 122px); }
h1 span { display: block; }
.ghost { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.under { display: flex; align-items: center; gap: 32px 48px; flex-wrap: wrap; margin-top: clamp(20px, 3.4vh, 36px); }
.lede { max-width: 470px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: #cfcfcf; }

.rail { position: absolute; z-index: 3; left: var(--gutter); top: calc(50% + 28px); width: min(410px, 34vw); transform: translateY(-50%); opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s; }
.stage:not([data-step='0']) .rail, .stage:not([data-step='0']) .hud { opacity: 1; visibility: visible; }
.rail h2 { margin: 16px 0 28px; font-size: clamp(28px, 2.9vw, 44px); }
.steps li { border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps button { display: grid; grid-template-columns: 46px 1fr; align-items: baseline; width: 100%; padding: 17px 0 15px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--dim); font-weight: 650; font-stretch: 108%; font-size: 20px; letter-spacing: -0.012em; transition: color 0.25s ease; }
.steps button:hover { color: #d0d0d0; }
.steps .n { font: 500 12px 'Plex Mono', monospace; letter-spacing: 0; }
.steps li.on button { color: #fff; }
.steps .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.steps li.on .more { grid-template-rows: 1fr; }
.steps .more p { overflow: hidden; padding-left: 46px; font-size: 16px; line-height: 1.5; color: var(--mid); }
.steps li.on .more p { padding-bottom: 20px; }

.hud { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(24px, 5vh, 52px); width: min(430px, 34vw); opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s; }
.hud .h { display: none; }
.stage[data-step='1'] .h[data-for='1'], .stage[data-step='2'] .h[data-for='2'], .stage[data-step='3'] .h[data-for='3'], .stage[data-step='4'] .h[data-for='4'] { display: block; }
.hud .cap { margin-bottom: 14px; font-weight: 650; font-stretch: 106%; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.hud dl { display: flex; gap: 28px; padding-top: 12px; border-top: 1px solid var(--line); }
.hud dt { font: 400 12px 'Plex Mono', monospace; color: var(--mid); }
.hud dd { margin: 2px 0 0; font: 400 13px 'Plex Mono', monospace; color: var(--mid); white-space: nowrap; }
.hud dd b { font-weight: 500; font-size: 20px; color: #fff; }
.verdict { display: flex; align-items: center; gap: 10px; margin-top: 12px; font: 500 14px 'Plex Mono', monospace; opacity: 0.25; }
.verdict.on { opacity: 1; }
.verdict.fail { color: var(--fail); }
.verdict.pass { color: var(--pass); }
.verdict .dot { width: 9px; height: 9px; flex: none; transform: rotate(45deg); background: currentColor; }
.verdict.pass .dot { background: none; border: 1.5px solid currentColor; }
.tally { display: grid; grid-template-columns: 78px auto 1fr; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font: 400 12px 'Plex Mono', monospace; color: var(--mid); }
.tally ol { display: flex; gap: 12px; min-height: 22px; }
.tally li { min-width: 30px; font-weight: 500; font-size: 16px; }
.tally.fail li { color: var(--fail); }
.tally.pass li { color: var(--pass); }
.tally em { font-style: normal; text-align: right; }

/* Sections below the scene */
.redteam, .systems, .report, .contact { padding-block: clamp(72px, 9vw, 136px); }
.redteam { padding-top: clamp(96px, 12vw, 176px); }
.systems, .report, .contact { border-top: 1px solid var(--line); }
main h2 { font-size: clamp(32px, 4.8vw, 76px); }
.rail h2 { font-size: clamp(28px, 2.9vw, 44px); }
.redteam h2, .systems h2 { max-width: 1100px; margin-top: 18px; }
.intro { max-width: 620px; margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--mid); }
.intro b { font-weight: 650; color: #fff; }

.playbook { margin-top: clamp(40px, 5vw, 72px); }
.playbook > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 32px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.playbook > div:last-child { border-bottom: 1px solid var(--line); }
.playbook dt { font: 400 13px 'Plex Mono', monospace; color: var(--mid); }
.playbook dd { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 0; }
.playbook button { padding: 0; background: none; border: 0; cursor: help; font-weight: 650; font-stretch: 106%; font-size: clamp(19px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.015em; color: #d9d9d9; text-align: left; }
.playbook button:hover, .playbook button:focus-visible { color: #fff; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

.fleet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(40px, 5vw, 64px) -24px 0; border-top: 1px solid var(--line); }
.fleet li { padding: 0 24px 8px; border-left: 1px solid var(--line); }
.fleet li:first-child { border-left: 0; }
.fleet canvas { display: block; width: 100%; aspect-ratio: 4 / 3; }
.fleet h3 { font-weight: 650; font-stretch: 106%; font-size: 21px; letter-spacing: -0.012em; }
.fleet p { margin-top: 6px; font-size: 16px; color: var(--mid); }

.report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(40px, 7vw, 112px); align-items: start; }
.report h2 { margin-top: 18px; }
.report .intro { margin-top: 0; }
.report form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 24px; margin-top: 30px; }
.report .field { flex: 1 1 260px; margin: 0; }
.report form .btn { margin: 0; }

.contact .mail { display: inline-block; margin-top: 20px; font-size: clamp(21px, 4.1vw, 66px); overflow-wrap: anywhere; }
.contact .mail:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(28px, 4vw, 48px); }
.social { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 500; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; padding-block: 30px; }
footer p { font-size: 14.5px; color: var(--mid); }
footer .mono { font-size: 13px; color: var(--mid); }

.tip { position: fixed; z-index: 50; max-width: 300px; padding: 10px 12px; background: #000; border: 1px solid rgba(255, 255, 255, 0.3); font-size: 14px; line-height: 1.4; color: var(--mid); pointer-events: none; }
.tip strong { display: block; font-weight: 650; color: #fff; }

/* Request access */
.request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; min-height: 100vh; padding-block: clamp(128px, 18vh, 190px) clamp(64px, 8vw, 112px); }
.request h1 { font-size: clamp(40px, 5.6vw, 88px); }
.request .lede { margin-top: 22px; }
form .field { display: block; margin-bottom: 20px; font: 400 13px 'Plex Mono', monospace; color: var(--mid); }
form input, form select, form textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 0; background: none; color: #fff; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.34); border-radius: 0; font: 400 18px 'Archivo', sans-serif; }
form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
form select option { color: #000; }
form textarea { min-height: 96px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { outline: none; border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; }
form .btn { margin-top: 12px; }
form .btn[disabled] { opacity: 0.6; cursor: default; }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 15px; color: var(--mid); }
.form-status.bad { color: var(--fail); }
.request h1:focus { outline: none; }
.sent dl { margin: 18px 0 40px; border-top: 1px solid var(--line); }
.sent dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sent dt { font: 400 13px 'Plex Mono', monospace; color: var(--mid); }
.sent dd { margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.form-status.done { margin-top: 30px; font-size: 19px; line-height: 1.4; color: #fff; overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .shade { background: linear-gradient(0deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0) 56%), linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 14%); }
  .ghost { -webkit-text-stroke-width: 1px; }
  .rail { top: auto; bottom: 22px; right: var(--gutter); width: auto; transform: none; }
  .rail h2, .rail .kicker { display: none; }
  .steps li { display: none; border: 0 !important; }
  .steps li.on { display: block; }
  .steps button { padding: 0 0 8px; font-size: 22px; grid-template-columns: 38px 1fr; }
  .steps .more p { padding-left: 0; }
  .steps li.on .more p { padding-bottom: 0; }
  .hud { top: 84px; bottom: auto; left: var(--gutter); width: auto; }
  .tally { grid-template-columns: 70px 1fr; gap: 2px 14px; padding: 8px 0; }
  .tally em { grid-column: 2; text-align: left; font-size: 11px; }
  .hud .cap { font-size: 15px; margin-bottom: 8px; }
  .hud dl { gap: 20px; padding-top: 8px; }
  .hud dd b { font-size: 16px; }
  .verdict { margin-top: 8px; font-size: 13px; }
  .playbook > div { grid-template-columns: minmax(0, 1fr); }
  .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet { margin-inline: -14px; }
  .fleet li { padding: 0 14px 22px; }
  .fleet li:nth-child(odd) { border-left: 0; }
  .fleet li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .report { grid-template-columns: minmax(0, 1fr); }
  .request { grid-template-columns: minmax(0, 1fr); padding-top: 120px; }
  .top nav .plain { display: none; }
}
@media (min-width: 821px) and (max-height: 740px) {
  .rail h2 { margin: 10px 0 16px; font-size: 30px; }
  .steps button { padding: 12px 0 10px; font-size: 18px; }
  .steps .more p { font-size: 15px; }
  .steps li.on .more p { padding-bottom: 14px; }
  .hud { bottom: 20px; }
  .hud .cap { margin-bottom: 8px; font-size: 16px; }
}
@media (max-width: 460px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
