/* Northline Trading Post — site styles */
:root {
  --ink: #05080c;
  --ink-2: #0a1118;
  --ink-3: #101a23;
  --snow: #e9f1f4;
  --frost: #a7bcc6;
  --dim: #6c8390;
  --line: rgba(214, 236, 244, 0.14);
  --line-2: rgba(214, 236, 244, 0.28);
  --aurora: #6ff2c0;
  --aurora-deep: #2fbf98;
  --pine: #175638;
  --lantern: #ffb35c;
  --warn: #ff9f6b;
  --panel: rgba(6, 11, 16, 0.74);

  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 3.1vw, 44px);
  --hud-h: 92px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:focus-within { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--snow);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--aurora); color: var(--ink); }

.mono { font-family: var(--f-mono); letter-spacing: 0.02em; }
.dim { color: var(--dim); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--snow); color: var(--ink); padding: 10px 14px; text-decoration: none;
  font-family: var(--f-mono); font-size: 13px;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 1.5px solid var(--aurora); outline-offset: 3px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 110%, #0d2a2a 0%, var(--ink) 55%);
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(320px, 80vw); display: grid; gap: 18px; justify-items: start; }
.loader__mark { width: 34px; height: 34px; color: var(--snow); animation: pulse 2.4s ease-in-out infinite; }
.loader__label { margin: 0; font-size: 12px; text-transform: uppercase; color: var(--frost); letter-spacing: .14em; }
.loader__bar { width: 100%; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--aurora); box-shadow: 0 0 12px var(--aurora); }
.loader__pct { margin: 0; font-size: 12px; color: var(--dim); }
.loader__pct span { color: var(--snow); }
@keyframes pulse { 50% { opacity: .45; transform: scale(.92); } }

/* ---------- World ---------- */
#world {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; display: block;
}
.no-webgl #world { display: none; }
.no-webgl {
  background:
    radial-gradient(90% 60% at 70% 0%, rgba(111, 242, 192, .18), transparent 60%),
    radial-gradient(80% 50% at 20% 10%, rgba(120, 110, 255, .12), transparent 60%),
    linear-gradient(180deg, #071018 0%, var(--ink) 70%);
  background-attachment: fixed;
}
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, .72) 0%, rgba(5, 8, 12, .38) 34%, rgba(5, 8, 12, 0) 58%),
    linear-gradient(180deg, rgba(5, 8, 12, .55) 0%, rgba(5, 8, 12, 0) 16%, rgba(5, 8, 12, 0) 80%, rgba(5, 8, 12, .6) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

.crosshair { position: fixed; z-index: 3; width: 15px; height: 15px; pointer-events: none; opacity: .5; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--snow); }
.crosshair::before { left: 7px; top: 0; width: 1px; height: 15px; }
.crosshair::after { top: 7px; left: 0; height: 1px; width: 15px; }
.crosshair--a { left: var(--gutter); top: 30vh; }
.crosshair--b { right: var(--gutter); top: 36vh; }

/* ---------- Floating 3D labels ---------- */
.labels { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.tag3d {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--snow); white-space: nowrap; opacity: 0; transition: opacity .5s;
  will-change: transform, opacity;
}
.tag3d::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 10px var(--aurora); }
.tag3d i { display: block; width: 48px; height: 1px; background: linear-gradient(90deg, var(--aurora), rgba(111,242,192,0)); }
.tag3d span { line-height: 1.45; }
.tag3d small { display: block; color: var(--frost); font-size: 10px; }
.tag3d.flip { flex-direction: row-reverse; text-align: right; }
.tag3d.flip i { background: linear-gradient(270deg, var(--aurora), rgba(111,242,192,0)); }

/* ---------- HUD ---------- */
.hud-top {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--gutter) 0;
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.hud-top::before { content: ""; position: absolute; inset: 0 0 -46px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 8, 12, .9) 0%, rgba(5, 8, 12, .62) 55%, rgba(5, 8, 12, 0) 100%); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; justify-self: start; }
.brand__mark { width: 30px; height: 30px; color: var(--snow); }
.brand__rule { width: 1px; height: 40px; background: var(--line-2); }
.brand__type { display: grid; line-height: 1; gap: 7px; }
.brand__name { font-family: var(--f-display); font-size: 31px; letter-spacing: .005em; line-height: .8; }
.brand__sub { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--frost); }

.nav { display: flex; gap: 34px; }
.nav a {
  font-family: var(--f-mono); font-size: 13.5px; text-decoration: none; color: var(--frost);
  padding: 6px 0; position: relative; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--aurora);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--snow); }
.nav a.is-active::after { transform: scaleX(1); }
.hud-top__cta { justify-self: end; }
.menu-btn { display: none; }

.readout {
  position: fixed; z-index: 20; right: var(--gutter); top: 118px;
  display: grid; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  pointer-events: none; min-width: 252px;
  padding: 12px 14px 8px; background: rgba(5, 8, 12, .5); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.readout div:last-child { border-bottom: 0; }
.readout div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px dashed rgba(214,236,244,.12); padding-bottom: 6px; }
.readout span { color: var(--dim); }
.readout b { font-weight: 500; color: var(--snow); }
.readout i { font-style: normal; }
.readout .ok { color: var(--aurora); display: inline-flex; align-items: center; gap: 7px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 8px var(--aurora); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.hud-bottom {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter) 26px; pointer-events: none; font-size: 11.5px;
}
.hud-bottom > * { pointer-events: auto; }
.hud-bottom::before { content: ""; position: absolute; inset: -40px 0 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(5, 8, 12, .85) 0%, rgba(5, 8, 12, .5) 50%, rgba(5, 8, 12, 0) 100%); }
.hud-bottom__left { display: flex; align-items: center; gap: 16px; color: var(--frost); }
.hud-bottom__left .sep { width: 1px; height: 14px; background: var(--line-2); }
.hint span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.sound { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--frost); font-family: var(--f-mono); font-size: 11.5px; }
.sound:hover { color: var(--snow); }
.sound__bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--aurora); }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 0.9s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }

.hud-bottom__right { display: flex; align-items: center; gap: 22px; color: var(--frost); text-transform: uppercase; letter-spacing: .1em; }
.dots { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.dots li { display: flex; align-items: center; }
.dots li + li::before { content: ""; width: 16px; height: 1px; background: var(--line-2); }
.dots b { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--frost); transition: background .4s, border-color .4s, box-shadow .4s; }
.dots .is-past b { border-color: var(--aurora); background: rgba(111, 242, 192, .25); }
.dots .is-on b { background: var(--aurora); border-color: var(--aurora); box-shadow: 0 0 10px var(--aurora); }
.chapter-name { min-width: 120px; color: var(--snow); }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; gap: 16px; height: var(--h); padding: 0 20px;
  font-family: var(--f-mono); font-size: 13.5px; letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; background: none; cursor: pointer; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn .arw { transition: transform .35s var(--ease); display: inline-block; }
.btn:hover .arw { transform: translate(2px, -2px); }
.btn--solid { background: var(--snow); color: var(--ink); }
.btn--solid:hover { background: var(--aurora); }
.btn--line { border-color: var(--line-2); color: var(--snow); background: rgba(5, 8, 12, .35); backdrop-filter: blur(6px); }
.btn--line:hover { border-color: var(--snow); background: rgba(233, 241, 244, .08); }
.btn--line:disabled { opacity: .4; cursor: not-allowed; }
.btn--text { padding: 0 2px; color: var(--snow); border-bottom: 1px solid var(--line-2); height: 40px; }
.btn--text:hover { border-color: var(--aurora); color: var(--aurora); }

/* ---------- Chapters ---------- */
main { position: relative; z-index: 10; }
.chapter {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 150px var(--gutter) 120px;
  display: flex; align-items: center;
}
.panel { width: min(560px, 100%); position: relative; }
.panel--wide { width: min(720px, 100%); }
.panel--xl { width: min(1060px, 100%); }
.panel--glass {
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: clamp(24px, 3.4vw, 44px);
}

.eyebrow, .kicker {
  margin: 0 0 22px; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--frost);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow b { color: var(--aurora); font-weight: 500; }
.kicker span { color: var(--aurora); }
.kicker span::after { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 12px; }

.display { font-family: var(--f-display); font-weight: 400; line-height: .96; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h1.display { font-size: clamp(52px, 7.4vw, 118px); }
.display--2 { font-size: clamp(42px, 5.2vw, 82px); }
.display--3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.02; }
.display em { font-style: italic; color: var(--snow); }
.display .pt { font-style: normal; color: var(--aurora); }

.lede { font-size: clamp(16px, 1.25vw, 18.5px); color: var(--frost); max-width: 52ch; margin: 26px 0 0; line-height: 1.6; }
.lede [data-greet]:not(:empty) { color: var(--snow); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 40px; }

/* Hero */
.chapter--hero { align-items: flex-end; padding-bottom: 150px; }
.chapter--hero .panel { width: min(720px, 100%); }
.signal-card {
  position: absolute; right: var(--gutter); bottom: 100px; width: 290px;
  border: 1px solid var(--line-2); background: rgba(5, 8, 12, .62); backdrop-filter: blur(10px);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
}
.signal-card__head { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--frost); }
.blink { color: var(--aurora); animation: blink 1.6s infinite; }
.signal-card dl { margin: 0; padding: 6px 14px 12px; }
.signal-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(214,236,244,.1); }
.signal-card dl div:last-child { border: 0; }
.signal-card dt { color: var(--dim); }
.signal-card dd { margin: 0; text-align: right; color: var(--snow); }
.ok { color: var(--aurora) !important; }
.warn { color: var(--warn) !important; }

/* Signal */
.criteria, .cargo { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.criteria li, .cargo li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.criteria h3, .cargo h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.005em; }
.criteria p, .cargo p { margin: 4px 0 0; color: var(--frost); font-size: 15px; }
.idx { color: var(--aurora); font-size: 12px; padding-top: 4px; }

.scanlog {
  padding: 0 14px 6px; background: rgba(5, 8, 12, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line);
  position: absolute; right: var(--gutter); bottom: 170px; width: min(380px, 34vw);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  border-top: 1px solid var(--line-2);
}
.scanlog__head { display: flex; justify-content: space-between; padding: 10px 0; color: var(--frost); border-bottom: 1px solid var(--line); }
.scanlog__head span:last-child { color: var(--aurora); }
.scanlog ol { list-style: none; margin: 0; padding: 0; }
.scanlog li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(214,236,244,.09); color: var(--dim); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.scanlog li.in { opacity: 1; transform: none; }
.scanlog li .redact { color: transparent; background: linear-gradient(90deg, rgba(233,241,244,.28), rgba(233,241,244,.16)); border-radius: 1px; user-select: none; }
.scanlog li .named { color: var(--snow); }
.scanlog li b { font-weight: 500; color: var(--aurora); }
.scanlog li b.no { color: var(--dim); }

/* Route */
.chapter--route { display: block; padding-top: 0; padding-bottom: 0; }
.route-intro { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 150px 0 60px; }
.waypoints { list-style: none; margin: 0; padding: 0; }
.waypoint { min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; justify-content: center; max-width: 500px; padding: 60px 0; }
.waypoint .display--3 { margin-bottom: 16px; }
.waypoint p:not(.kicker) { color: var(--frost); margin: 0; font-size: 17px; max-width: 46ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.tags li { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 6px 10px; border: 1px solid var(--line-2); color: var(--snow); background: rgba(5,8,12,.35); }

/* Terms */
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.term { background: rgba(5, 9, 13, .82); backdrop-filter: blur(10px); padding: 28px 26px 30px; }
.term__tag { margin: 0 0 18px; font-size: 11px; color: var(--aurora); text-transform: uppercase; letter-spacing: .16em; }
.term h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1; margin: 0 0 14px; }
.term p { color: var(--frost); margin: 0; font-size: 15px; }
.term ul { list-style: none; margin: 20px 0 0; padding: 0; }
.term li { font-size: 14px; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; }
.term li::before { content: "→"; position: absolute; left: 0; color: var(--aurora); font-family: var(--f-mono); font-size: 12px; top: 10px; }
.note { margin: 20px 0 0; font-size: 12px; color: var(--frost); }

/* Readiness */
.ready { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; margin-top: 34px; }
.ready__qs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.q { padding: 13px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; }
.q legend, .q__label { font-size: 14.5px; line-height: 1.4; margin: 0; padding: 0; display: flex; gap: 12px; float: left; width: 100%; }
.q .seg { clear: both; }
.q__label .mono { color: var(--aurora); font-size: 11px; padding-top: 3px; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 12px; font-family: var(--f-mono); font-size: 11.5px; color: var(--frost); cursor: pointer; transition: background .2s, color .2s; }
.seg label + label span { border-left: 1px solid var(--line-2); }
.seg input:checked + span { background: var(--snow); color: var(--ink); }
.seg input:focus-visible + span { outline: 1.5px solid var(--aurora); outline-offset: -3px; }
.seg label:hover span { color: var(--snow); }
.seg input:checked:hover + span { color: var(--ink); }

.ready__result { position: sticky; top: 120px; align-self: start; display: grid; gap: 18px; justify-items: start; }
.gauge { position: relative; width: 150px; height: 150px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 3; }
.gauge__track { stroke: var(--line); }
.gauge__fill { stroke: var(--aurora); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .8s var(--ease); filter: drop-shadow(0 0 6px rgba(111,242,192,.6)); }
.gauge__val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__val b { font-family: var(--f-display); font-weight: 400; font-size: 58px; line-height: .9; }
.gauge__val span { font-size: 10.5px; color: var(--frost); text-transform: uppercase; letter-spacing: .12em; }
.ready__status { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--aurora); }
.ready__plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.ready__plan li { font-size: 13.5px; color: var(--frost); padding-left: 22px; position: relative; line-height: 1.45; }
.ready__plan li::before { position: absolute; left: 0; top: 1px; font-family: var(--f-mono); font-size: 12px; }
.ready__plan li.ok-item::before { content: "✓"; color: var(--aurora); }
.ready__plan li.fix-item::before { content: "→"; color: var(--lantern); }
.ready__plan li.flag-item::before { content: "!"; color: var(--warn); }
.ready__plan li b { color: var(--snow); font-weight: 500; }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: rgba(5, 8, 12, .4); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-size: 18px; font-weight: 500; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--f-mono); font-size: 20px; color: var(--frost); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--aurora); }
.faq summary:hover { color: var(--aurora); }
.faq details p { margin: 0; padding: 0 44px 22px 0; color: var(--frost); max-width: 60ch; }

/* Contact */
.chapter--contact { flex-direction: column; align-items: flex-start; justify-content: center; gap: 120px; padding-bottom: 120px; }
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; margin-top: 34px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--frost); padding: 0; }
.opt { text-transform: none; letter-spacing: 0; color: var(--dim); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(233, 241, 244, .04); border: 1px solid var(--line-2); color: var(--snow);
  font: inherit; font-size: 15.5px; padding: 12px 14px; border-radius: 0; transition: border-color .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--frost) 50%), linear-gradient(135deg, var(--frost) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aurora); background: rgba(111, 242, 192, .05); }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chips label { position: relative; font-family: var(--f-sans); text-transform: none; letter-spacing: 0; color: inherit; font-size: inherit; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: block; padding: 8px 13px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--frost); cursor: pointer; transition: all .2s; }
.chips input:checked + span { border-color: var(--aurora); color: var(--ink); background: var(--aurora); }
.chips input:focus-visible + span { outline: 1.5px solid var(--aurora); outline-offset: 2px; }
.brief__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }
.brief__status { margin: 0; font-size: 12px; color: var(--aurora); flex-basis: 100%; min-height: 1em; }
.brief__status.err { color: var(--warn); }

/* Footer */
.site-footer { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 30px 40px; align-items: end; border-top: 1px solid var(--line); padding-top: 34px; }
.site-footer__brand { display: flex; gap: 18px; align-items: center; }
.site-footer__brand svg { width: 40px; height: 40px; color: var(--snow); flex: none; }
.site-footer__brand .display--3 { font-size: 34px; }
.site-footer__brand p { margin: 0; }
.site-footer__brand .mono { font-size: 12px; margin-top: 6px; }
.site-footer__links { display: flex; gap: 26px; font-size: 12.5px; }
.site-footer__links a { text-decoration: none; color: var(--frost); }
.site-footer__links a:hover { color: var(--aurora); }
.site-footer__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

/* Reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .readout { display: none; }
  .nav { gap: 22px; }
  .scanlog { display: none; }
  .ready { grid-template-columns: 1fr; }
  .ready__result { position: static; }
}
@media (max-width: 860px) {
  :root { --hud-h: 70px; }
  .hud-top { grid-template-columns: 1fr auto; padding-top: 18px; }
  .nav, .hud-top__cta { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line-2);
    background: rgba(5, 8, 12, .5); backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: 12px; cursor: pointer;
  }
  .mobile-nav:not([hidden]) {
    position: fixed; z-index: 19; inset: 0; padding: 100px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px;
    background: rgba(5, 8, 12, .94); backdrop-filter: blur(14px);
  }
  .mobile-nav a { font-family: var(--f-display); font-size: 40px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .brand__name { font-size: 26px; }
  .brand__rule { height: 32px; }
  .brand__mark { width: 26px; height: 26px; }
  .scrim { background: linear-gradient(180deg, rgba(5,8,12,.55) 0%, rgba(5,8,12,.2) 30%, rgba(5,8,12,.55) 62%, rgba(5,8,12,.85) 100%); }
  .crosshair { display: none; }
  .chapter { padding: 120px var(--gutter) 110px; align-items: flex-end; }
  .chapter--hero { padding-bottom: 120px; }
  .signal-card { display: none; }
  h1.display { font-size: clamp(42px, 11.5vw, 64px); }
  .chapter--hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .terms { grid-template-columns: 1fr; }
  .brief { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer__links { flex-wrap: wrap; gap: 14px 22px; }
  .hud-bottom { padding-bottom: 16px; }
  .hud-bottom__left .hint, .hud-bottom__left .sep { display: none; }
  .dots { display: none; }
  .waypoint { min-height: 88svh; justify-content: flex-end; padding-bottom: 80px; }
  .panel--glass { padding: 22px 18px; }
  .chapter--contact { gap: 80px; }
}
@media (max-width: 560px) {
  .q { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .actions { gap: 18px; }
  .btn { --h: 44px; padding: 0 16px; font-size: 13px; }
  .seg span { padding: 6px 9px; }
}

/* ================================================================== */
/* v3 — type & tone: one grotesk, warm accent, fewer HUD affectations  */
/* ================================================================== */
:root {
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --aurora: #f0a458;
  --aurora-deep: #c97c35;
  --ok: #9fd9b8;
}
body { font-size: 16.5px; }
.crosshair, .grain { display: none; }
.display { font-family: var(--f-display); font-weight: 650; font-stretch: 112%; letter-spacing: -0.035em; line-height: .96; font-style: normal; }
h1.display { font-size: clamp(40px, 5.3vw, 86px); }
.chapter--hero .panel { width: min(780px, 100%); }
.display--2 { font-size: clamp(36px, 4.5vw, 70px); }
.display--3 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.04; }
.display em, .display [data-brand] { font-style: normal; color: inherit; }
.lede { font-size: clamp(16.5px, 1.25vw, 19px); }
.eyebrow, .kicker { font-family: var(--f-sans); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--frost); gap: 10px; font-weight: 500; }
.kicker span { color: var(--dim); font-variant-numeric: tabular-nums; }
.kicker span::after { display: none; }
.eyebrow b { color: var(--snow); font-weight: 600; }
.brand__name { font-family: var(--f-display); font-weight: 760; font-stretch: 125%; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand__sub { font-family: var(--f-sans); letter-spacing: .01em; text-transform: none; font-size: 12.5px; }
.brand__type { gap: 6px; }
.nav a { font-family: var(--f-sans); font-size: 14.5px; font-weight: 500; }
.nav a::after { height: 1px; bottom: -2px; background: var(--snow); }
.btn { font-family: var(--f-sans); font-size: 14.5px; font-weight: 600; letter-spacing: 0; gap: 10px; border-radius: 2px; }
.btn--solid:hover { background: var(--aurora); color: var(--ink); }
.btn--line { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 8, 12, .55); }
.btn--text:hover { color: var(--snow); border-color: var(--snow); }
.tags { gap: 0; }
.tags li { border: 0; padding: 0; background: none; font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--frost); }
.tags li + li::before { content: "/"; margin: 0 10px; color: var(--dim); }
.idx { font-family: var(--f-sans); font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 13px; }
.criteria h3, .cargo h3 { font-weight: 600; }
.term__tag { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--frost); }
.term h3 { font-family: var(--f-display); font-weight: 650; font-stretch: 110%; letter-spacing: -0.02em; font-size: 28px; }
.term li::before { content: ""; width: 5px; height: 5px; background: var(--aurora); top: 17px; }
.note { font-family: var(--f-sans); font-size: 14px; }
.hud-bottom, .hud-bottom__left, .hud-bottom__right, .sound { font-family: var(--f-sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.hint span { animation: none; }
.chapter-name { text-transform: none; }
.dots .is-on b { box-shadow: none; }
.readout { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 12.5px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
.readout b { font-family: var(--f-mono); font-weight: 400; }
.readout div { border-bottom-style: solid; border-color: rgba(214, 236, 244, .1); }
.readout .ok, .dot { color: var(--ok); }
.dot { background: var(--ok); box-shadow: none; animation: none; }
.signal-card { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 13px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 8, 12, .86); border-radius: 2px; }
.signal-card dd { font-weight: 600; }
.scanlog { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 12.5px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 8, 12, .86); }
.scanlog li b { color: var(--ok); font-weight: 600; }
.scanlog__head span:last-child { color: var(--frost); }
.ok { color: var(--ok) !important; }
.panel--glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 10, 14, .92); border-radius: 2px; }
.term { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 10, 14, .9); }
.field label, .field legend { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; color: var(--frost); }
.field input, .field select, .field textarea { border-radius: 2px; }
.chips span { border-radius: 2px; }
.seg span { font-family: var(--f-sans); font-size: 13px; }
.q__label .mono { font-family: var(--f-sans); color: var(--dim); font-size: 13px; font-weight: 600; }
.ready__status { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.gauge__val b { font-family: var(--f-display); font-weight: 650; font-stretch: 110%; letter-spacing: -0.03em; }
.gauge__val span { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.gauge__fill { filter: none; }
.brief__status { font-family: var(--f-sans); font-size: 14px; }
.faq summary { font-weight: 600; }
.faq summary::after { font-family: var(--f-sans); }
.site-footer__brand .display--3 { font-size: 26px; }
.site-footer__brand .mono, .site-footer__brand p:not(.display) { font-family: var(--f-sans); font-size: 14px; }
.site-footer__links { font-family: var(--f-sans); font-size: 14px; }
.site-footer__legal { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.tag3d { font-family: var(--f-sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); gap: 8px; }
.tag3d::before { width: 4px; height: 4px; background: var(--snow); box-shadow: none; }
.tag3d i, .tag3d.flip i { width: 22px; background: rgba(233, 241, 244, .45); }
.tag3d small { font-size: 11.5px; font-weight: 400; }
.loader__label { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 14px; }
.loader__bar span { box-shadow: none; }
.mobile-nav a { font-family: var(--f-display); font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; font-size: 32px; }
.menu-btn { font-family: var(--f-sans); font-size: 13.5px; font-weight: 600; border-radius: 2px; }
.desk h1, .doc h1 { font-weight: 650 !important; font-stretch: 112%; letter-spacing: -0.035em; }
.stat b { font-weight: 650 !important; font-stretch: 110%; }
.desk-top__note, .stat span, th, .preview__head, .mini, .tokens code, .foot { font-family: var(--f-sans) !important; text-transform: none !important; letter-spacing: 0 !important; }

/* ---------- v4: CSP-safe boot, new interactive bits ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.loader { display: none; }
.js .loader { display: grid; }
.is-loading body { overflow: hidden; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.scan { margin-top: 34px; display: grid; gap: 10px; max-width: 460px; }
.scan label { font-size: 14px; font-weight: 600; color: var(--snow); }
.scan__row { display: flex; gap: 8px; }
.scan__row input { flex: 1; min-width: 0; background: rgba(233,241,244,.05); border: 1px solid var(--line-2); color: var(--snow); font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 2px; }
.scan__row input:focus { outline: none; border-color: var(--aurora); }
.scan__out { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--frost); }
.scan__out b { color: var(--snow); }

.term { cursor: pointer; transition: background .3s, box-shadow .3s; outline: none; }
.term:hover, .term:focus-visible, .term.is-active { background: rgba(18, 16, 12, .94); box-shadow: inset 0 2px 0 var(--aurora); }

.cargo li { padding: 0; }
.cargo button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 48px 1fr; gap: 8px; width: 100%; padding: 18px 0; transition: color .25s, padding-left .35s var(--ease); }
.cargo button b { display: block; font-size: 17px; font-weight: 600; }
.cargo button small { display: block; color: var(--frost); font-size: 15px; margin-top: 4px; }
.cargo button:hover, .cargo button:focus-visible, .cargo button.is-active { padding-left: 10px; }
.cargo button.is-active .idx, .cargo button:hover .idx { color: var(--aurora); }
.cargo button:focus-visible { outline: 1.5px solid var(--aurora); outline-offset: 4px; }

.hover-tip { position: fixed; z-index: 30; left: 0; top: 0; pointer-events: none; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--snow); padding: 5px 9px; border-radius: 2px; opacity: 0; transform: translate(-200px,-200px); transition: opacity .2s; white-space: nowrap; }
.hover-tip.on { opacity: 1; }
.cargo li { display: block; grid-template-columns: none; }
