/* RipTide.Red: site styles. Colors come only from theme tokens (themes.css). */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1104px;
  --header-h: 60px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tag-self: color-mix(in oklab, #e8a33a 72%, var(--text));
  --tag-inf: color-mix(in oklab, #4d9fff 72%, var(--text));
  --tag-enr: color-mix(in oklab, #b07cff 68%, var(--text));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color: var(--text-2);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text-2);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.picker-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
p { text-wrap: pretty; }
a { color: inherit; }
img, svg, canvas { display: block; }
button { font: inherit; }
code { font-family: var(--font-mono); }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 .4em;
  font: 500 .82em/1.6 var(--font-mono);
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  vertical-align: .08em;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--brand-ink);
  padding: 8px 14px; text-decoration: none; border-radius: var(--radius);
  transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Icons ------------------------------------------------------------------------------- */
.px { fill: currentColor; image-rendering: pixelated; flex: none; }
.px .soft { opacity: .45; }
.i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square;
  vertical-align: -.14em;
}

/* Buttons & links --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px;
  font: 500 15px/1.2 var(--font-mono);
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s;
  white-space: nowrap;
}
.btn .px { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--brand) 55%, transparent);
}
.btn-outline {
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }

.more, .link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0;
  font: 500 14px/1.4 var(--font-mono);
  color: var(--text);
  background: none; border: 0; cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: color .2s;
}
.more .i, .link .i { transition: transform .2s var(--ease); }
.more:hover, .link:hover { color: var(--brand); }
.more:hover .i, .link:hover .i { transform: translateX(3px); }

/* Header ------------------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.solid, .site-header.menu-open {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--border);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 17px/1 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo em { font-style: normal; color: var(--brand); }
.logo .logo-mark { width: 24px; height: 24px; color: var(--brand); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  padding: 0;
  color: var(--text-2);
  background: none; border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--brand); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.header-actions .btn { margin-left: 6px; }
.menu-toggle { display: none; }

/* Toast ------------------------------------------------------------------------------- */
.toast {
  position: fixed; top: calc(var(--header-h) + 10px); right: 16px; z-index: 60;
  width: 296px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 18px 40px -18px rgb(0 0 0 / .45);
  border-radius: var(--radius);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast-body {
  display: flex; gap: 12px; align-items: flex-start;
  width: 100%;
  padding: 16px 40px 16px 16px;
  text-align: left;
  color: var(--text-2);
  font: 13px/1.6 var(--font-mono);
  background: none; border: 0; cursor: pointer;
}
.toast-body > svg { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; flex: none; }
.toast-body strong { display: block; margin-bottom: 4px; font: 600 15px/1.3 var(--font-sans); color: var(--text); }
.toast-x {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; padding: 4px;
  background: none; border: 0; cursor: pointer; color: var(--muted);
}
.toast-x svg { stroke: currentColor; stroke-width: 1.6; }
.toast-x:hover { color: var(--text); }

/* Hero -------------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(660px, 100svh);
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 56px) 20px 110px;
  background: var(--field-bg);
  overflow: hidden;
}
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 62% 44% at 50% 52%, color-mix(in srgb, var(--field-bg) 94%, transparent) 30%, transparent 78%);
}
.hero-inner {
  position: relative;
  width: 100%; max-width: 980px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  font-size: 13.5px;
  color: var(--brand);
  text-decoration: none;
  background: color-mix(in srgb, var(--field-bg) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: var(--radius);
  backdrop-filter: blur(3px);
  transition: background-color .2s, border-color .2s;
}
.pill:hover { background: var(--brand-soft); border-color: var(--brand); }
.pill-new {
  padding: 2px 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand);
  border-radius: 2px;
}
.pill-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill .i { transition: transform .2s var(--ease); }
.pill:hover .i { transform: translateX(3px); }
.wordmark {
  width: min(900px, 100%);
  height: 180px;
  margin: 52px auto 44px;
  touch-action: pan-y;
}
.hero-line {
  margin: 0 0 18px;
  font: 500 clamp(21px, 3.2vw, 34px)/1.25 var(--font-mono);
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
.hero-sub {
  max-width: 920px;
  margin: 0 0 36px;
  font-size: clamp(14px, 1.45vw, 15.5px);
  line-height: 1.8;
  color: var(--text-2);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px;
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--text-2);
}
.hero-facts span { color: var(--brand); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px;
  width: 22px; height: 34px;
  transform: translateX(-50%);
  border: 2px solid var(--border-strong);
  border-radius: 11px;
  opacity: .8;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 6px;
  width: 4px; height: 7px;
  background: var(--brand);
  transform: translateX(-50%);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, -2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* Bands & section heads ----------------------------------------------------------------- */
.band { position: relative; padding: 104px 0; }
.band-a { background: var(--bg); }
.band-b { background: var(--bg-deep); }
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 48px;
}
.sec-head h2 { margin: 0 0 12px; font-size: clamp(26px, 3.3vw, 34px); text-wrap: balance; }
.lede { margin: 0; max-width: 40em; font-size: 15px; color: var(--text-2); }

/* Why --------------------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.why-copy h2 { margin: 0 0 22px; font-size: clamp(26px, 3.3vw, 34px); }
.why-copy p { margin: 0 0 18px; }
.why-copy p:last-child { margin-bottom: 0; }
.quote-card {
  margin: 0;
  padding: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.quote-mark { width: 30px; height: auto; color: var(--brand); }
.quote-card blockquote {
  margin: 20px 0 30px;
  font: 600 clamp(22px, 2.4vw, 27px)/1.3 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--text);
}
.quote-card figcaption { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  color: var(--brand); background: var(--brand-soft);
  border-radius: 50%;
}
.avatar .px { width: 28px; height: 28px; }
.quote-card figcaption strong { display: block; font: 600 15px/1.3 var(--font-sans); color: var(--text); }
.quote-card figcaption span span { font-size: 13px; color: var(--muted); }
.quote-play {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--text); background: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.quote-play .px { width: 18px; height: 18px; }
.quote-play:hover { color: var(--brand); border-color: var(--brand); }

/* Story mount ------------------------------------------------------------------------- */
.episode-mount {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow), 0 40px 90px -40px rgb(0 0 0 / .6);
}
.episode-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px;
  color: var(--text);
  font-family: var(--font-mono);
  border: 0; cursor: pointer;
  background:
    radial-gradient(ellipse 70% 60% at 50% 115%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--field-bg);
}
.episode-mount.has-poster .episode-placeholder {
  background: linear-gradient(transparent 40%, rgb(0 0 0 / .55)), var(--poster) center / cover no-repeat, var(--field-bg);
  color: #fff;
}
.ep-kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); }
.ep-play {
  width: clamp(64px, 9vw, 96px); aspect-ratio: 1;
  display: grid; place-items: center;
  color: var(--brand-ink); background: var(--brand);
  border-radius: 4px;
  box-shadow: 0 0 0 10px var(--brand-soft), 0 20px 50px -10px color-mix(in srgb, var(--brand) 60%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.ep-play .px { width: 45%; height: 45%; margin-left: 6%; }
.episode-placeholder:hover .ep-play { transform: scale(1.07); box-shadow: 0 0 0 16px var(--brand-soft), 0 24px 60px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.ep-title { font: 600 clamp(20px, 3vw, 30px)/1.2 var(--font-sans); letter-spacing: -0.02em; }
.ep-meta { font-size: 13px; color: var(--muted); }
.has-poster .ep-meta { color: rgb(255 255 255 / .8); }
.episode-mount.loading .ep-play { animation: pulse 1.1s ease-in-out infinite; }
.episode-mount.mounted > .episode-placeholder { display: none; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .8; } }
.chapters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.chip {
  padding: 8px 14px;
  font: 13px/1.3 var(--font-mono);
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .15s;
}
.chip b { margin-right: 6px; color: var(--brand); font-weight: 600; }
.chip:hover { color: var(--text); border-color: var(--brand); transform: translateY(-1px); }

/* Cards / install ----------------------------------------------------------------------- */
.card {
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; }
.card h3 .px { width: 18px; height: 18px; color: var(--brand); }
.card > p { margin: 0 0 20px; font-size: 14px; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; font-size: 14px; }
.ticks li { position: relative; padding: 6px 0 6px 22px; border-top: 1px solid var(--border); }
.ticks li:last-child { border-bottom: 1px solid var(--border); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; background: var(--brand); }
.term {
  margin: 4px 0 18px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.term-bar span { margin-left: 8px; font-size: 11.5px; color: var(--muted); }
.term pre {
  margin: 0;
  padding: 16px 18px 18px;
  font: 13px/1.85 var(--font-mono);
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.term .prompt, .term .ok { color: var(--brand); font-weight: 700; }
.term [data-line] { transition: opacity .3s; }
.term [data-line].pending { opacity: 0; }
.term .wait b { color: var(--muted); }
.caret {
  display: inline-block; width: .6em; height: 1.1em; margin-left: 2px;
  background: var(--brand); vertical-align: -.2em;
  animation: blink 1s steps(1) infinite;
}
.term.idle .caret { display: none; }
.term.idle .wait::after {
  content: ''; display: inline-block; width: .6em; height: 1.1em; margin-left: 6px;
  background: var(--brand); vertical-align: -.2em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.fine { max-width: 72ch; margin: 28px 0 0; font-size: 12.5px; color: var(--muted); }

/* Three columns --------------------------------------------------------------------------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.col { padding-top: 22px; border-top: 1px solid var(--border-strong); }
.col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; }
.col h3 .px { width: 18px; height: 18px; color: var(--brand); }
.col p { margin: 0 0 18px; font-size: 14px; }
.also { margin: 40px 0 0; font-size: 14px; color: var(--muted); }

/* Mission ------------------------------------------------------------------------------------ */
.mission-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.mission-duo .col:nth-child(2) { transition-delay: .07s; }
.mission-close {
  margin: 46px 0 0; max-width: 46ch;
  font: 500 clamp(17px, 2vw, 21px)/1.5 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--text); text-wrap: balance;
}
.mission-close b { color: var(--brand); font-weight: 600; }

/* Compare: the measles chart ----------------------------------------------------------------- */
.hb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hb { width: 20px; height: 20px; shape-rendering: crispEdges; }
.measles { margin-top: 64px; }
.measles table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.measles th, .measles td { padding: 14px 12px; border-bottom: 1px solid var(--border); }
.measles thead th {
  vertical-align: bottom;
  text-align: center;
  font: 600 15px/1.3 var(--font-sans);
  color: var(--text);
  border-bottom-color: var(--border-strong);
}
.measles thead th:first-child { width: 34%; }
.measles small { display: block; margin-top: 5px; font: 400 12px/1.45 var(--font-mono); color: var(--muted); }
.measles tbody th { text-align: left; font: 500 14.5px/1.35 var(--font-sans); color: var(--text); }
.measles td { text-align: center; color: var(--text-2); }
.measles td .hb { margin: 0 auto; }
.measles .grp th {
  padding: 30px 12px 10px;
  font: 500 11.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--border-strong);
}
.measles .grp td { border-bottom-color: var(--border-strong); }
.measles .us { background: var(--brand-soft); }
.measles thead .us { color: var(--brand); border-radius: var(--radius) var(--radius) 0 0; }
.measles td.us { color: var(--brand); }
.measles tbody:last-child tr:last-child td.us { border-radius: 0 0 var(--radius) var(--radius); }
.measles-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 32px;
  margin-top: 22px;
  font-size: 12.5px; color: var(--muted);
}
.measles-foot p { margin: 0; }
.hb-key { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.hb-key li { display: flex; align-items: center; gap: 8px; }
.hb-key .hb { width: 14px; height: 14px; color: var(--text-2); }

/* Traps ------------------------------------------------------------------------------------ */
.traps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trap {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s, opacity .7s ease;
}
.trap-art {
  position: relative;
  height: 118px;
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--brand);
  background:
    linear-gradient(color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px) 0 0 / 12px 12px,
    var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.trap-art .px { width: 54px; height: 54px; transition: transform .35s var(--ease); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--brand) 35%, transparent)); }
.trap-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, color-mix(in srgb, var(--field-hover) 55%, transparent) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 12px), repeating-linear-gradient(0deg, #000 0 8px, transparent 8px 12px);
  -webkit-mask-composite: source-in;
  mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 12px), repeating-linear-gradient(0deg, #000 0 8px, transparent 8px 12px);
  mask-composite: intersect;
  opacity: 0;
}
.trap:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.trap:hover .trap-art .px { transform: scale(1.12) translateY(-3px); }
.trap:hover .trap-art::after { opacity: 1; animation: shimmer 1.1s var(--ease) forwards; }
@keyframes shimmer { to { background-position: 250% 0; } }
.trap-body { padding: 18px 20px 22px; }
.trap-body header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.trap-body h3 { margin: 0; font-size: 16px; }
.trap-body p { margin: 0; font-size: 13.5px; line-height: 1.65; }
.trap-body code { padding: 0 4px; font-size: .92em; color: var(--text); background: var(--surface-2); border-radius: 2px; }
.badge {
  flex: none;
  padding: 1px 7px;
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
}
.badge.hot { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--brand-soft); }
.badge.on { color: var(--text-2); }
.badge.soft { border-style: dashed; }

/* Proof ladder ------------------------------------------------------------------------------ */
.ladder {
  --climb: -1;
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end;
  min-height: 420px;
  margin: 0; padding: 70px 0 0;
  list-style: none;
}
.rung {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--border-strong);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: .5;
  transition: opacity .5s, border-color .5s, background-color .5s, box-shadow .5s;
}
.rung:nth-child(1) { height: 160px; }
.rung:nth-child(2) { height: 200px; }
.rung:nth-child(3) { height: 240px; }
.rung:nth-child(4) { height: 280px; }
.rung:nth-child(5) { height: 320px; }
.rung.lit { opacity: 1; border-top-color: var(--brand); }
.rung-n { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.rung.lit .rung-n { color: var(--brand); }
.rung h3 { margin: 6px 0 8px; font-size: 16px; }
.rung p { margin: 0; font-size: 13px; line-height: 1.6; }
.rung.final.lit {
  background: linear-gradient(color-mix(in srgb, var(--brand) 14%, var(--surface)), var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 60%, transparent), 0 20px 60px -20px color-mix(in srgb, var(--brand) 50%, transparent);
}
.stamp {
  position: absolute; right: 14px; bottom: 16px;
  padding: 3px 10px;
  font: 800 15px/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 3px;
  opacity: 0;
  transform: rotate(-9deg) scale(1.8);
  transition: opacity .25s .35s, transform .35s .35s cubic-bezier(.3, 1.6, .5, 1);
}
.ladder.caught .stamp { opacity: 1; transform: rotate(-9deg) scale(1); }
.climber {
  position: absolute;
  left: calc((var(--climb) + .5) * (100% + 12px) / 5 - 22px);
  bottom: calc(160px + var(--climb) * 40px + 3px);
  width: 44px; height: 44px;
  color: var(--text);
  opacity: 0;
  transition: left .55s var(--ease), bottom .55s cubic-bezier(.3, 1.5, .5, 1), opacity .3s;
  pointer-events: none;
}
.climber .px { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .3)); }
.ladder[data-step] .climber { opacity: 1; }
.ladder.caught .climber { color: var(--brand); animation: caught .5s .5s 3 steps(2); }
@keyframes caught { 50% { transform: translateX(-3px); } }

.prov {
  display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.prov-lede { margin: 0; max-width: 34ch; color: var(--text); font-size: 14px; }
.prov-chips { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.prov-chips li { display: flex; align-items: center; gap: 10px; }
.tag {
  display: inline-block;
  padding: 2px 9px;
  font: 500 10.5px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.tag.obs { color: var(--muted); }
.tag.self { color: var(--tag-self); }
.tag.inf { color: var(--tag-inf); }
.tag.enr { color: var(--tag-enr); border-style: dashed; }

/* Console mock -------------------------------------------------------------------------------- */
.window {
  overflow: hidden;
  font-size: 13px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow), 0 50px 100px -40px rgb(0 0 0 / .6);
}
.win-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin: 0 auto; padding-right: 50px; font-size: 12px; color: var(--muted); }
.con-top { display: flex; align-items: center; gap: 22px; padding: 12px 22px; background: var(--bg); border-bottom: 1px solid var(--border); }
.con-logo { flex: none; font: 700 13px/1 var(--font-sans); letter-spacing: .32em; color: var(--text); white-space: nowrap; }
.con-logo em {
  margin-left: 8px; padding: 3px 8px;
  font: 500 9.5px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; font-style: normal;
  color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 999px;
}
.con-tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.con-tabs span { padding: 6px 12px; font: 13px/1.3 var(--font-sans); color: var(--text-2); border-radius: 6px; white-space: nowrap; }
.con-tabs .on { color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }
.con-status { flex: none; display: flex; align-items: center; gap: 7px; padding: 5px 11px; font-size: 11.5px; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; }
.con-status i { width: 7px; height: 7px; border-radius: 50%; background: #28c840; box-shadow: 0 0 8px #28c840; }
.con-body { padding: 22px 28px 30px; }
.con-crumb { margin-bottom: 10px; font: 13px/1.3 var(--font-sans); color: var(--brand); }
.con-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.con-title h3 { margin: 0; font: 700 22px/1.2 var(--font-mono); letter-spacing: .02em; }
.verdict {
  padding: 5px 12px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid var(--brand); border-radius: 999px;
  animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow { 50% { box-shadow: 0 0 18px -2px color-mix(in srgb, var(--brand) 70%, transparent); } }
.con-export { margin-left: auto; display: flex; gap: 8px; }
.con-export span { padding: 5px 10px; font: 12px/1.3 var(--font-sans); color: var(--text); border: 1px solid var(--border-strong); border-radius: 5px; }
.con-meta { margin: 8px 0 18px; color: var(--muted); }
.con-meta .sev, .con .ip, .con-meta .ip, .fingerprint .ip { color: var(--brand); }
.con-subtabs { display: flex; gap: 22px; margin-bottom: 20px; border-bottom: 1px solid var(--border); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; }
.con-subtabs span { padding-bottom: 10px; color: var(--text-2); white-space: nowrap; }
.con-subtabs .on { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.con-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.con-summary { margin: 0 0 16px; font-size: 13.5px; color: var(--text); }
.con-why { margin: 0 0 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.chain { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.chain::before, .chain::after {
  content: ''; position: absolute; left: 10%; right: 10%; top: 26px; height: 2px;
  background: var(--border-strong);
}
.chain::after { background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 2s linear; }
.chain.done::after, .chain:has(.hit.on)::after { transform: scaleX(1); }
.chain-node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
  opacity: .2; transform: translateY(6px);
  transition: opacity .45s, transform .45s var(--ease);
}
.chain-node.on { opacity: 1; transform: none; }
.chain-node time { order: 0; font-size: 11px; color: var(--muted); }
.chain-node::before {
  content: ''; order: 1;
  width: 14px; height: 14px; margin: 1px 0 4px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  transition: all .4s;
}
.chain-node.on::before { border-color: var(--brand); background: var(--brand-soft); }
.chain-node.hit.on::before { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.chain-node b { order: 2; font: 600 12.5px/1.3 var(--font-sans); color: var(--text); }
.chain-node span { order: 3; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.fingerprint h4 { margin: 0 0 12px; font-size: 16px; }
.fingerprint table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fingerprint th { padding: 8px 6px; text-align: left; font-weight: 400; color: var(--text-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.fingerprint td { padding: 8px 6px; color: var(--text); border-bottom: 1px solid var(--border); }
.fingerprint td:last-child { text-align: right; }

/* Themes section ------------------------------------------------------------------------------- */
.theme-preview {
  max-width: 880px;
  aspect-ratio: 16 / 10;
  margin: 0 auto 34px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow), 0 40px 90px -40px rgb(0 0 0 / .55);
}
.theme-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  max-width: 900px; margin: 0 auto; padding: 0;
  list-style: none;
  font-size: 14px;
}
.theme-list li:not(:last-child)::after { content: '/'; margin: 0 10px; color: var(--muted); }
.theme-list button {
  padding: 2px 0;
  font: inherit; color: var(--text-2);
  background: none; border: 0; cursor: pointer;
  text-decoration: underline 1px transparent;
  text-underline-offset: 5px;
  transition: color .2s, text-decoration-color .2s;
}
.theme-list button:hover { color: var(--text); text-decoration-color: var(--border-strong); }
.theme-list button[aria-pressed='true'] { color: var(--brand); text-decoration-color: var(--brand); }

/* Mini mock (picker cards + #themes preview) --------------------------------------------------- */
.mini {
  container-type: inline-size;
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
  text-align: left;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--bg-deep);
}
.mini-hero { position: relative; flex: 1.2; display: flex; flex-direction: column; overflow: hidden; background: var(--field-bg); }
.mini-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 45% at 50% 55%, color-mix(in srgb, var(--field-bg) 85%, transparent), transparent 75%); }
.mini-nav, .mini-center { position: relative; z-index: 1; }
.mini-nav { display: flex; align-items: center; gap: 2.2cqw; padding: 2.4cqw 3.6cqw; }
.mini-logo { width: 2.8cqw; height: 2.8cqw; background: var(--brand); }
.mini-nav b { width: 5.5cqw; height: .9cqw; background: var(--text-2); opacity: .5; border-radius: .3cqw; }
.mini-cta { margin-left: auto; width: 11cqw; height: 2.8cqw; background: var(--brand); border-radius: .4cqw; }
.mini-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5cqw; padding-bottom: 2.5cqw; }
.mini-pill { width: 30cqw; height: 2.2cqw; border: .22cqw solid color-mix(in srgb, var(--brand) 55%, transparent); border-radius: .3cqw; }
.mini-word { width: 56cqw; aspect-ratio: 76 / 15; margin: .8cqw 0 .6cqw; }
.mini-tag { width: 36cqw; height: 1.7cqw; background: var(--text); opacity: .9; border-radius: .3cqw; }
.mini-sub { width: 50cqw; height: 1cqw; background: var(--text-2); opacity: .45; border-radius: .3cqw; }
.mini-btns { display: flex; gap: 1.4cqw; margin-top: .6cqw; }
.mini-btns i { width: 11cqw; height: 3cqw; background: var(--brand); border-radius: .4cqw; }
.mini-btns i.o { background: transparent; border: .22cqw solid var(--border-strong); }
.mini-console { flex: 1; display: flex; flex-direction: column; padding: 3cqw 6cqw 0; }
.mini-bar { display: flex; align-items: center; gap: .8cqw; padding: 1.2cqw 1.6cqw; background: var(--surface-2); border-radius: 1cqw 1cqw 0 0; }
.mini-bar i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--border-strong); }
.mini-body { flex: 1; display: flex; gap: 3.5cqw; padding: 2.6cqw 3cqw; background: var(--surface); }
.mini-left { flex: 1.5; display: flex; flex-direction: column; gap: 2cqw; }
.mini-title { display: flex; align-items: center; gap: 1.6cqw; }
.mini-title b { font-size: 1.9cqw; font-weight: 700; color: var(--text); }
.mini-title em { padding: .25cqw 1.1cqw; font-size: 1.2cqw; font-style: normal; letter-spacing: .12em; color: var(--brand); border: .2cqw solid var(--brand); border-radius: 2cqw; background: var(--brand-soft); }
.mini-chain { display: flex; align-items: center; }
.mini-chain i { width: 2cqw; height: 2cqw; flex: none; border: .3cqw solid var(--brand); background: var(--brand-soft); }
.mini-chain i.hit { background: var(--brand); box-shadow: 0 0 0 .6cqw var(--brand-soft); }
.mini-chain s { flex: 1; height: .3cqw; background: var(--brand); opacity: .6; }
.mini-lines b { display: block; height: .9cqw; margin-bottom: 1.1cqw; background: var(--text-2); opacity: .32; border-radius: .3cqw; }
.mini-lines .short { width: 58%; }
.mini-right { flex: 1; display: flex; flex-direction: column; gap: 1.5cqw; }
.mini-right b { height: 1.8cqw; background: var(--surface-2); border-radius: .3cqw; position: relative; }
.mini-right b::after { content: ''; position: absolute; right: .5cqw; top: .45cqw; width: 5cqw; height: .9cqw; border-radius: 1cqw; background: var(--brand-soft); box-shadow: inset 0 0 0 .15cqw var(--brand); }

/* Picker overlay ------------------------------------------------------------------------------ */
.picker { position: fixed; inset: 0; z-index: 100; display: none; outline: none; }
.picker.open { display: grid; grid-template-rows: 1fr auto; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.picker-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg-deep) 58%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.picker-stage { --card-w: min(620px, 70vw, 95vh); position: relative; min-height: 0; touch-action: pan-y; }
.picker-track { position: absolute; left: 50%; top: 52%; width: 0; height: 0; }
.picker-card {
  position: absolute; left: 0; top: 0;
  width: var(--card-w); aspect-ratio: 16 / 10;
  padding: 0; border: 0;
  overflow: hidden;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 30px 80px -25px rgb(0 0 0 / .65);
  transition: transform .55s cubic-bezier(.2, .85, .2, 1), opacity .45s, box-shadow .3s;
}
.picker-card.active { box-shadow: 0 0 0 3px var(--brand), 0 40px 110px -25px rgb(0 0 0 / .75); }
.picker-arrow {
  position: absolute; top: 52%; z-index: 30;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.picker-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.picker-arrow:hover { color: var(--brand); border-color: var(--brand); }
.picker-arrow.prev { left: 24px; }
.picker-arrow.next { right: 24px; }
.picker-caption { position: relative; padding: 0 20px 7vh; text-align: center; }
.picker-name { margin: 0 0 10px; font: 600 clamp(30px, 4.4vw, 48px)/1.1 var(--font-sans); letter-spacing: -0.03em; color: var(--text); }
.picker-hint { margin: 0; font-size: 13px; color: var(--text-2); }

/* Stats ------------------------------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  display: flex; flex-direction: column;
  min-height: 250px; padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.stat > .px { width: 20px; height: 20px; margin-bottom: 20px; color: var(--brand); }
.stat .num { margin: 0; font: 700 clamp(34px, 3.8vw, 46px)/1.05 var(--font-sans); letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .42em; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.stat .what { margin: 10px 0 auto; font-size: 13.5px; }
.stat .src { margin: 20px 0 0; padding-top: 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.stat-brand .num { color: var(--brand); }
.stat-brand { box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }

/* Agent posts --------------------------------------------------------------------------------- */
.posts { columns: 3 280px; column-gap: 16px; }
.post {
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 18px 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.post.extra { display: none; }
.posts.all .post.extra { display: block; animation: rise .6s var(--ease) both; }
.posts.all .post.extra:nth-of-type(8) { animation-delay: .08s; }
.posts.all .post.extra:nth-of-type(9) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.post header { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.bot { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.bot .px { width: 24px; height: 24px; }
.bot.b1 { color: var(--brand); background: var(--brand-soft); }
.bot.b2 { color: var(--field-hover); background: var(--surface-2); }
.bot.b3 { color: var(--text); background: color-mix(in srgb, var(--field-mid) 35%, var(--surface)); }
.bot.b4 { color: var(--text-2); background: var(--surface-2); }
.bot.b5 { color: var(--brand-ink); background: var(--brand); }
.who { min-width: 0; }
.who strong { display: block; font: 600 14px/1.3 var(--font-sans); color: var(--text); }
.who span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dram { margin-left: auto; flex: none; align-self: flex-start; padding: 1px 6px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 2px; }
.post p { margin: 0; font: 15.5px/1.5 var(--font-sans); color: var(--text); }
.center { text-align: center; margin-top: 16px; }

/* Crew ------------------------------------------------------------------------------------------ */
.crew-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: center; }
.crew-art { display: grid; place-items: center; color: var(--brand); }
.crew-wave { width: min(240px, 60vw); height: auto; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 20px 40px color-mix(in srgb, var(--brand) 30%, transparent)); }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.crew-copy h2 { margin: 0 0 18px; font-size: clamp(26px, 3.3vw, 34px); }
.crew-copy p { margin: 0 0 22px; max-width: 60ch; }

/* Contact ----------------------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card.contact {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px;
  color: inherit; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.card.contact > .px { width: 22px; height: 22px; margin-bottom: 8px; color: var(--brand); }
.card.contact h3 { margin: 0; font-size: 16px; }
.card.contact p { flex: 1; margin: 0; font-size: 13.5px; }
.card.contact .link { margin-top: 12px; font-size: 13px; color: var(--brand); text-decoration: none; }
.card.contact:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Footer --------------------------------------------------------------------------------------------- */
.site-footer { padding: 64px 0 36px; background: var(--bg-deep); border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 16px 0 0; font-size: 13.5px; }
.foot-brand .foot-alias { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.site-footer h4 { margin: 4px 0 14px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-footer nav a { display: block; padding: 3px 0; font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .2s; }
.site-footer nav a:hover { color: var(--brand); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 52px; padding-top: 20px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); }

/* Now playing ---------------------------------------------------------------------------------------- */
.now-playing { position: fixed; left: 16px; bottom: 16px; z-index: 40; animation: rise .6s var(--ease) both; }
.np-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px 0 0;
  overflow: hidden;
  font-family: var(--font-mono); text-align: left;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow), 0 12px 30px -14px rgb(0 0 0 / .5);
  cursor: pointer;
}
.np-cover { position: relative; width: 50px; height: 50px; flex: none; display: grid; place-items: center; color: var(--brand); background: var(--field-bg); }
.np-cover .px { width: 32px; height: 32px; }
.np-icon {
  position: absolute; right: 3px; bottom: 3px;
  width: 14px; height: 14px;
  background: var(--brand);
  clip-path: polygon(25% 15%, 85% 50%, 25% 85%);
}
.playing .np-icon { clip-path: polygon(15% 15%, 42% 15%, 42% 85%, 15% 85%, 15% 15%, 58% 15%, 85% 15%, 85% 85%, 58% 85%, 58% 15%); }
.np-meta strong { display: block; font: 500 13.5px/1.3 var(--font-sans); }
.np-meta span { font-size: 11.5px; color: var(--muted); }
.np-eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-left: 4px; }
.np-eq i { width: 3px; height: 4px; background: var(--brand); }
.playing .np-eq i { animation: eq .7s ease-in-out infinite alternate; }
.playing .np-eq i:nth-child(2) { animation-duration: .55s; animation-delay: -.2s; }
.playing .np-eq i:nth-child(3) { animation-duration: .8s; animation-delay: -.4s; }
.playing .np-eq i:nth-child(4) { animation-duration: .6s; animation-delay: -.1s; }
@keyframes eq { to { height: 16px; } }

/* Shortcuts dialog ------------------------------------------------------------------------------------- */
.shortcuts {
  width: min(430px, 92vw);
  padding: 0;
  color: var(--text-2);
  background: var(--surface);
  border: 0; border-radius: 6px;
  box-shadow: var(--shadow), 0 40px 90px -30px rgb(0 0 0 / .6);
}
.shortcuts::backdrop { background: color-mix(in srgb, var(--bg-deep) 60%, transparent); backdrop-filter: blur(6px); }
.sc-inner { padding: 28px; }
.sc-inner h2 { margin: 0 0 16px; font-size: 20px; }
.sc-inner dl { margin: 0 0 22px; }
.sc-inner dl div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sc-inner dt { width: 64px; flex: none; }
.sc-inner dd { margin: 0; }

/* Reveal ------------------------------------------------------------------------------------------------ */
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s var(--ease); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
.traps .trap:nth-child(3n + 2), .cols3 .col:nth-child(2), .stats .stat:nth-child(2), .contact-grid .card:nth-child(2) { transition-delay: .07s; }
.traps .trap:nth-child(3n + 3), .cols3 .col:nth-child(3), .stats .stat:nth-child(3), .contact-grid .card:nth-child(3) { transition-delay: .14s; }
.stats .stat:nth-child(4), .contact-grid .card:nth-child(4) { transition-delay: .21s; }
.trap.reveal.in:hover { transition-delay: 0s; }

/* Tide wipe (View Transitions) ----------------------------------------------------------------------------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* Responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .site-nav a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .menu-open .site-nav { display: flex; }
  .why-grid, .crew-grid { grid-template-columns: 1fr; gap: 40px; }
  .install-grid { grid-template-columns: 1fr; }
  .cols3 { grid-template-columns: 1fr; gap: 28px; }
  .mission-duo { grid-template-columns: 1fr; gap: 28px; }
  .traps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .con-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .ladder { grid-template-columns: 1fr; min-height: 0; padding-top: 0; gap: 10px; }
  .rung, .rung:nth-child(n) { height: auto; border-top: 0; border-left: 3px solid var(--border-strong); border-radius: 0 var(--radius) var(--radius) 0; }
  .rung.lit { border-left-color: var(--brand); }
  .rung:nth-child(2) { margin-left: 4%; }
  .rung:nth-child(3) { margin-left: 8%; }
  .rung:nth-child(4) { margin-left: 12%; }
  .rung:nth-child(5) { margin-left: 16%; }
  .climber { display: none; }
  .stamp { top: 14px; bottom: auto; }
  .crew-art { order: 2; }
}
@media (max-width: 680px) {
  .band { padding: 76px 0; }
  .wrap { padding: 0 18px; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
  .traps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .header-actions [data-open-help] { display: none; }
  .header-row { gap: 12px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .wordmark { margin: 40px auto 32px; }
  .pill-text { max-width: 58vw; }
  .con-top { gap: 12px; padding: 10px 14px; }
  .con-status, .con-export, .con-tabs span:not(.on) { display: none; }
  .con-body { padding: 18px 16px 22px; }
  .chain { grid-template-columns: 1fr; gap: 14px; padding-left: 4px; }
  .chain::before, .chain::after { left: 10px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .chain::after { transform: scaleY(0); transform-origin: top; }
  .chain.done::after { transform: scaleY(1); }
  .chain-node { display: grid; grid-template-columns: 22px 68px 1fr; align-items: center; text-align: left; gap: 2px 10px; transform: translateX(-6px); }
  .chain-node::before { grid-row: 1 / span 2; margin: 0; }
  .chain-node time { grid-column: 2; grid-row: 1 / span 2; }
  .chain-node b { grid-column: 3; }
  .chain-node span { grid-column: 3; }
  .fingerprint td:nth-child(2) { overflow-wrap: anywhere; }
  .np-meta, .np-eq { display: none; }
  .np-toggle { padding: 0; }
  .toast { left: 16px; right: 16px; width: auto; }
  .picker-arrow { top: auto; bottom: calc(7vh + 90px); transform: none; }
  .picker-arrow.prev { left: 16px; }
  .picker-arrow.next { right: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .measles { margin-top: 48px; }
  .measles table, .measles thead, .measles tbody { display: block; }
  .measles tr { display: grid; grid-template-columns: repeat(4, 1fr); }
  .measles thead { position: sticky; top: var(--header-h); z-index: 2; background: var(--bg); }
  .measles thead th { padding: 10px 2px; font-size: 12.5px; }
  .measles thead th:first-child, .measles thead small, .measles .grp td { display: none; }
  .measles tbody th, .measles .grp th { grid-column: 1 / -1; }
  .measles tbody th { padding: 16px 2px 8px; border-bottom: 0; }
  .measles td { padding: 0 2px 16px; }
  .measles .grp th { padding: 28px 2px 10px; }
  .measles .us, .measles thead .us { background: none; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .header-actions .btn { padding: 7px 10px; font-size: 12.5px; }
  .logo span { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* 404 ------------------------------------------------------------------------------------------------ */
.nf-main {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 48px 20px;
  background: var(--field-bg);
  overflow: hidden;
}
.nf-main::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 48%, color-mix(in srgb, var(--field-bg) 90%, transparent), transparent 75%);
}
.nf-inner { max-width: 640px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.nf-inner .logo { margin-bottom: 36px; }
.nf-kicker { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.nf-inner h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 54px); letter-spacing: -0.035em; text-wrap: balance; }
.nf-lede { margin: 0 0 28px; font-size: 15px; }
.nf-term { width: 100%; margin: 0 0 30px; text-align: left; }
.nf-time { color: var(--muted); }

/* You be the agent: the terminal game ------------------------------------------------------ */
.game-hint { font-size: 12px; color: var(--muted); align-self: end; }
.game { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.game-term {
  position: relative; display: flex; flex-direction: column; min-height: 470px; overflow: hidden;
  background: var(--bg-deep); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: var(--shadow), 0 30px 70px -40px rgb(0 0 0 / .6);
}
.game-screen {
  flex: 1; min-height: 280px; max-height: 360px; overflow-y: auto; padding: 16px 18px 8px;
  font: 13px/1.75 var(--font-mono); color: var(--text-2); scroll-behavior: smooth;
}
.game-line { white-space: pre-wrap; word-break: break-word; animation: game-in .18s var(--ease) both; }
.game-line.cmd { color: var(--brand); font-weight: 600; margin-top: 8px; }
.game-line.out { color: var(--text); }
.game-line.dim { color: var(--muted); }
@keyframes game-in { from { opacity: 0; transform: translateY(3px); } }
.game-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 12px; min-height: 20px; }
.game-chip {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 12px/1.3 var(--font-mono); color: var(--text-2); cursor: pointer;
  padding: 7px 10px; background: transparent; border: 1px dashed var(--border-strong); border-radius: 4px;
  transition: color .2s, border-color .2s, transform .15s var(--ease);
}
.game-chip:hover, .game-chip:focus-visible { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.game-input { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); }
.game-prompt { color: var(--brand); font-weight: 700; }
.game-input input {
  flex: 1; min-width: 0; padding: 4px 0; background: transparent; border: 0; outline: none;
  font: 14px var(--font-mono); color: var(--text); caret-color: var(--brand);
}
.game-input input::placeholder { color: var(--muted); opacity: .8; }
.game-console {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  font: 12.5px/1.5 var(--font-mono); background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow);
  transition: box-shadow .4s, border-color .4s;
}
.game-console.pulse { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), 0 0 60px -10px var(--brand); }
.game-console-top { display: flex; justify-content: space-between; align-items: center; }
.game-brand { font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.game-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.game-live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; animation: blink 1.6s steps(1) infinite; }
.game-case { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.game-case b { font-size: 16px; color: var(--text); letter-spacing: .02em; }
.game-verdict {
  padding: 3px 9px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px; transition: all .3s var(--ease);
}
.game-verdict:not([data-level="0"]) { color: var(--text); border-color: color-mix(in srgb, var(--brand) 55%, var(--border-strong)); }
.game-verdict[data-level="5"] { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); animation: verdict-pop .5s var(--ease); }
@keyframes verdict-pop { 40% { transform: scale(1.18) rotate(-3deg); } }
.game-meta { display: flex; gap: 18px; color: var(--muted); }
.game-meta b { color: var(--text); font-weight: 600; }
.game-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.game-rung {
  display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: 4px; opacity: .5; transition: all .4s var(--ease);
}
.game-rung-n { color: var(--muted); padding-top: 1px; }
.game-rung b { display: block; font: 600 13px/1.3 var(--font-sans); color: var(--text); }
.game-rung small { display: block; font-size: 11.5px; color: var(--muted); }
.game-rung.on {
  opacity: 1; border-color: color-mix(in srgb, var(--brand) 50%, var(--border));
  background: color-mix(in srgb, var(--brand) 7%, transparent); animation: rung-on .5s var(--ease);
}
.game-rung.on .game-rung-n { color: var(--brand); }
.game-rung.final.on { border-color: var(--brand); background: var(--brand-soft); }
.game-rung.final.on b { color: var(--brand); }
@keyframes rung-on { 30% { transform: translateX(6px); } }
.game-fp { width: 100%; border-collapse: collapse; font-size: 12px; }
.game-fp th { text-align: left; font-weight: 400; color: var(--muted); padding: 6px 8px 6px 0; white-space: nowrap; }
.game-fp td { padding: 6px 0; color: var(--text); border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.game-fp th { border-top: 1px solid var(--border); }
.game-fp td:last-child { text-align: right; padding-left: 8px; }
.game-fp tr.lit td:nth-child(2) { animation: fp-lit 1.4s var(--ease); color: var(--brand); }
@keyframes fp-lit { 0% { background: var(--brand-soft); } 100% { background: transparent; } }
.game-caught {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; overflow: hidden;
  background: color-mix(in srgb, var(--bg-deep) 72%, transparent); backdrop-filter: blur(2px);
  animation: game-in .3s both;
}
.game-caught[hidden] { display: none; }
.game-swirl {
  position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; margin: -85% 0 0 -85%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--brand) 0 9deg, transparent 9deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 19% 24%, #000 25% 38%, transparent 39% 44%, #000 45% 58%, transparent 59%);
  mask: radial-gradient(circle, #000 0 18%, transparent 19% 24%, #000 25% 38%, transparent 39% 44%, #000 45% 58%, transparent 59%);
  animation: swirl 1.5s cubic-bezier(.5, 0, .7, 1) forwards; opacity: .85;
}
@keyframes swirl { from { transform: scale(1.1) rotate(0); } 75% { opacity: .85; } to { transform: scale(0) rotate(900deg); opacity: 0; } }
.game-caught-card {
  position: relative; max-width: 440px; padding: 26px 24px 22px; text-align: center;
  background: var(--surface); border: 1px solid var(--brand); border-radius: 8px;
  box-shadow: 0 0 0 6px var(--brand-soft), 0 30px 80px -20px rgb(0 0 0 / .7);
  animation: card-in .55s 1.05s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.92); } }
.game-splash {
  margin: 0 0 6px; font: 800 clamp(34px, 5vw, 48px)/1 var(--font-sans); letter-spacing: .02em; color: var(--brand);
  transform: rotate(-4deg); text-shadow: 3px 3px 0 var(--bg-deep), 0 0 30px var(--brand-soft);
  animation: splash .6s 1.1s var(--ease) both;
}
@keyframes splash { from { transform: rotate(-4deg) scale(.2); opacity: 0; } 60% { transform: rotate(-6deg) scale(1.15); } }
.game-caught-title { margin: 0 0 8px; font: 600 22px/1.2 var(--font-sans); color: var(--text); }
.game-caught-body { margin: 0 0 18px; font-size: 13px; color: var(--text-2); }
.game-caught-body b { color: var(--text); }
.game-caught-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .game-term { min-height: 430px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-swirl { display: none; }
  .game-caught-card, .game-splash, .game-line, .game-rung.on { animation: none; }
}
