:root {
  --bg: #050606;
  --bg-1: #0a0c0c;
  --bg-2: #0f1212;
  --line: #1d2222;
  --line-2: #2b3232;
  --text: #e8e6df;
  --dim: #7b8381;
  --dimmer: #4a5150;
  --red: #ff3b2f;
  --amber: #ffb224;
  --green: #7dffb0;
  --tint: #9fc7bd;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.booting { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #000; }
.dim { color: var(--dim); }
b { font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  body, button, a, textarea, input, select { cursor: none; }
}

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s;
}
.boot pre {
  margin: 0; width: min(640px, 90vw); font: 13px/1.9 var(--mono); color: var(--tint);
  white-space: pre-wrap;
}
.boot pre .ok { color: var(--green); }
.boot pre .warn { color: var(--amber); }
.boot-skip { position: absolute; bottom: 28px; font-size: 11px; letter-spacing: .2em; color: var(--dimmer); }
.boot.done { opacity: 0; visibility: hidden; }
.boot.glitch { animation: bootGlitch .35s steps(2) 1; }
@keyframes bootGlitch {
  0% { transform: translate(0); filter: none; }
  30% { transform: translate(-6px, 2px) skewX(4deg); filter: hue-rotate(90deg); }
  60% { transform: translate(5px, -1px); clip-path: inset(30% 0 40% 0); }
  100% { transform: translate(0); }
}

/* ---------- global texture ---------- */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

.crosshair {
  position: fixed; z-index: 95; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  pointer-events: none; opacity: 0; transition: opacity .2s, width .15s, height .15s, margin .15s;
}
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--text); }
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; box-shadow: 0 0 0 0; }
.crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }
.crosshair { border: 1px solid transparent; }
.crosshair.on { opacity: .9; }
.crosshair.hot { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-color: var(--red); }
.crosshair.hot::before, .crosshair.hot::after { background: var(--red); }
.crosshair span {
  position: absolute; left: calc(100% + 8px); top: calc(100% + 4px);
  font-size: 10px; letter-spacing: .08em; color: var(--dim); white-space: nowrap;
}

.alarm {
  position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255, 59, 47, .25), rgba(255, 59, 47, .55));
  box-shadow: inset 0 0 0 12px var(--red);
}
.alarm span {
  font: 800 clamp(2.4rem, 8vw, 6rem)/1 var(--cond); letter-spacing: .04em; color: #fff;
  background: var(--red); padding: .1em .3em; text-transform: uppercase;
}
.alarm.on { animation: alarm 2.6s ease forwards; }
@keyframes alarm {
  0%, 10%, 20%, 30% { opacity: 1; } 5%, 15%, 25% { opacity: .2; } 80% { opacity: 1; } 100% { opacity: 0; }
}

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 52px;
  display: flex; align-items: center; gap: 28px; padding: 0 24px;
  font-size: 11px; letter-spacing: .14em;
  background: linear-gradient(rgba(5, 6, 6, .92), rgba(5, 6, 6, .7));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.hud-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .3em; }
.hud-brand .dim { letter-spacing: .14em; }
.mark { width: 18px; height: 6px; background: var(--text); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-2); }
.hud-view { display: flex; align-items: center; gap: 6px; }
.hud-view button, .route button, .mini-toggle button {
  background: none; border: 1px solid var(--line-2); padding: 5px 10px; letter-spacing: .14em;
  font-size: 11px; color: var(--dim); transition: all .15s;
}
.hud-view button[aria-checked="true"] { color: #000; background: var(--text); border-color: var(--text); }
.hud-view button[data-view-btn="cloud"][aria-checked="true"] { background: var(--red); border-color: var(--red); }
.hud-nav { display: flex; gap: 18px; margin-left: auto; color: var(--dim); }
.hud-nav a:hover { color: var(--text); }
.hud-nav .hud-deck { color: var(--red); }
.hud-rec { display: flex; align-items: center; gap: 8px; color: var(--dim); min-width: 160px; justify-content: flex-end; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.blink { color: var(--red); animation: blink 1s steps(1) infinite; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--text); background: var(--text); color: #000;
  padding: 13px 20px; font: 600 12px/1 var(--mono); letter-spacing: .16em;
  position: relative; overflow: hidden; transition: color .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--red); transform: translateX(-101%);
  transition: transform .25s cubic-bezier(.7, 0, .3, 1); z-index: 0;
}
.btn:hover::after { transform: translateX(0); }
.btn > *, .btn { z-index: 1; }
.btn { isolation: isolate; }
.btn::after { z-index: -1; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { color: #000; border-color: var(--red); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger:hover { color: #000; }
:focus-visible { outline: 1px dashed var(--amber); outline-offset: 3px; }

/* ---------- redaction ---------- */
.r {
  padding: 0 2px; margin: 0 -2px;
  background: linear-gradient(#000, #000) no-repeat left center / 0% 88%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .4s cubic-bezier(.8, 0, .2, 1) calc(var(--i, 0) * 35ms), color .2s ease calc(var(--i, 0) * 35ms);
}
html[data-view="cloud"] .r { color: transparent; background-size: 100% 88%; }
html[data-view="inside"] .r { color: var(--amber); }
.memo .r { background-image: linear-gradient(#0b0b0a, #0b0b0a); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; }
.feed { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, .92) 0%, rgba(5, 6, 6, .55) 45%, rgba(5, 6, 6, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 6, 0) 35%);
}
.feed-ui { position: absolute; inset: 68px 24px 24px; pointer-events: none; z-index: 2; font-size: 11px; letter-spacing: .16em; color: var(--tint); }
.feed-ui span { position: absolute; }
.feed-ui .tl { top: 0; left: 0; } .feed-ui .tr { top: 0; right: 0; }
.feed-ui .bl { bottom: 0; left: 0; color: var(--green); } .feed-ui .br { bottom: 0; right: 0; }
.feed-ui .br b { color: var(--green); }
.feed-ui::before, .feed-ui::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--tint); opacity: .6;
}
.feed-ui::before { top: 22px; left: 0; border-right: 0; border-bottom: 0; }
.feed-ui::after { bottom: 22px; right: 0; border-left: 0; border-top: 0; }

.hero-copy { position: relative; z-index: 3; padding: 0 6vw 12vh; max-width: 1240px; }
.kicker { font-size: 12px; letter-spacing: .24em; color: var(--dim); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 800; text-transform: uppercase; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.8rem, min(6.4vw, 10.5vh), 6.6rem); line-height: .9; }
h1 .line { display: block; }
.h1-bar { position: relative; display: inline-block; padding: 0 .08em; }
.h1-bar::before {
  content: ""; position: absolute; inset: .08em 0 .04em; background: var(--text);
  transform-origin: left; transform: scaleX(0); transition: transform .45s cubic-bezier(.8, 0, .2, 1), background .2s;
}
.h1-bar > span { position: relative; transition: color .15s; }
.h1-bar.slammed::before { transform: scaleX(1); }
.h1-bar.slammed > span { color: transparent; transition-delay: .2s; }
html[data-view="inside"] .h1-bar.slammed > span { color: var(--text); transition-delay: 0s; }
html[data-view="inside"] .h1-bar.slammed::before { transform: scaleX(0); }
.h1-bar.slammed:hover > span, .h1-bar.slammed:focus > span { color: var(--red); transition-delay: 0s; }
.h1-bar.slammed:hover::before, .h1-bar.slammed:focus::before { background: transparent; box-shadow: inset 0 0 0 2px var(--red); }
@keyframes slam { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-sub { font-size: clamp(14px, 1.25vw, 17px); max-width: 60ch; color: #c9cbc5; margin: 28px 0 32px; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-hint { font-size: 11px; color: var(--dim); letter-spacing: .08em; margin-top: 22px; }
.scroll-cue { position: absolute; z-index: 3; bottom: 26px; left: 50%; color: var(--dim); animation: bob 2s ease-in-out infinite; font-size: 12px; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* line reveal in hero */
.hero h1 .line, .hero .kicker, .hero-sub, .hero-cta, .hero-hint {
  opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
body.ready .hero h1 .line, body.ready .hero .kicker, body.ready .hero-sub, body.ready .hero-cta, body.ready .hero-hint { opacity: 1; transform: none; }
body.ready .hero h1 .line:nth-child(2) { transition-delay: .25s; }
body.ready .hero-sub { transition-delay: .5s; }
body.ready .hero-cta { transition-delay: .7s; }
body.ready .hero-hint { transition-delay: .9s; }

/* ---------- files ---------- */
.file { padding: 140px 6vw 40px; max-width: 1440px; margin: 0 auto; position: relative; }
.file-head { margin-bottom: 52px; max-width: 900px; }
.file-no {
  display: inline-block; font-size: 11px; letter-spacing: .3em; color: var(--red);
  border: 1px solid var(--red); padding: 3px 8px; margin-bottom: 18px;
}
h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .9; }
h3 { font-size: 1.5rem; letter-spacing: .02em; }
.file-sub { color: var(--dim); max-width: 64ch; margin: 20px 0 0; }
.file-sub b { color: var(--text); font-weight: 500; }
.fine { font-size: 11px; color: var(--dimmer); letter-spacing: .04em; margin-top: 18px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* memo */
.memo-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.memo {
  overflow: hidden;
  position: relative; background: #d9d5c7; color: #151513; padding: 40px 44px 34px;
  font-size: 15px; line-height: 1.85; transform: rotate(-.6deg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .2);
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .025) 0 1px, transparent 1px 28px);
}
.memo.in { transform: rotate(-.6deg); }
.memo-top { display: flex; justify-content: space-between; font-weight: 600; letter-spacing: .2em; font-size: 12px; border-bottom: 2px solid #151513; padding-bottom: 10px; margin-bottom: 18px; }
.memo-meta { font-size: 12px; letter-spacing: .06em; color: #444; }
.memo-foot { font-size: 11px; color: #6a675e; margin: 18px 0 0; }
html[data-view="inside"] .memo .r { color: #b3261e; }
.stamp {
  position: absolute; right: 28px; top: 70px; font: 800 2.4rem/1 var(--cond); letter-spacing: .08em;
  color: rgba(200, 30, 20, .85); border: 4px solid rgba(200, 30, 20, .85); padding: 4px 14px;
  transform: rotate(-14deg) scale(2.4); opacity: 0; mix-blend-mode: multiply;
}
.memo.in .stamp { animation: stamp .35s cubic-bezier(.5, 0, .8, .5) .7s forwards; }
@keyframes stamp { to { transform: rotate(-14deg) scale(1); opacity: 1; } }
.memo-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.memo-points li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.memo-points li:last-child { border-bottom: 1px solid var(--line); }
.memo-points b { font: 800 2rem/1 var(--cond); color: var(--red); }
.memo-points li:nth-child(2) { transition-delay: .12s; } .memo-points li:nth-child(3) { transition-delay: .24s; }

/* dossiers */
.dossiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dossier { margin: 0; background: var(--bg-1); border: 1px solid var(--line); }
.dossier:nth-child(2) { transition-delay: .12s; } .dossier:nth-child(3) { transition-delay: .24s; }
.photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; }
.photo canvas { width: 100%; height: 100%; display: block; }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
}
.lock {
  position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 10px; letter-spacing: .2em;
  background: var(--red); color: #000; padding: 3px 7px; font-weight: 600; transition: opacity .3s;
}
html[data-view="inside"] .lock { background: var(--green); }
.reticle {
  position: absolute; z-index: 2; border: 1px solid var(--red); pointer-events: none;
  left: var(--fx); top: var(--fy); width: var(--fw); height: var(--fh);
  opacity: 0; transform: scale(1.6); transition: opacity .25s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.reticle::before { content: attr(data-label); position: absolute; top: -18px; left: -1px; font: 600 10px/1 var(--mono); letter-spacing: .14em; color: #000; background: var(--red); padding: 3px 5px; white-space: nowrap; font-style: normal; }
html[data-view="inside"] .reticle { border-color: var(--green); }
html[data-view="inside"] .reticle::before { background: var(--green); }
.dossier:hover .reticle, .dossier.scan .reticle { opacity: 1; transform: scale(1); }
.dossier figcaption { padding: 18px 20px 22px; }
.dossier dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; }
.dossier dt { color: var(--dim); font-size: 11px; letter-spacing: .16em; padding-top: 2px; }
.dossier dd { margin: 0; }
.tok-dd { color: var(--red); font-size: 12px; letter-spacing: .04em; }

/* console */
.console { border: 1px solid var(--line-2); background: var(--bg-1); }
.console-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.cases { display: flex; flex-wrap: wrap; gap: 6px; }
.cases button {
  background: none; border: 1px solid var(--line-2); color: var(--dim); padding: 7px 12px;
  font-size: 11px; letter-spacing: .14em;
}
.cases button[aria-selected="true"] { color: var(--text); border-color: var(--text); }
.route { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .16em; }
.route button[aria-checked="true"] { color: #000; background: var(--text); border-color: var(--text); }
.route button[data-route="local"][aria-checked="true"] { background: var(--green); border-color: var(--green); }
.route button[data-route="cloud"][aria-checked="true"] { background: var(--amber); border-color: var(--amber); }

.console-grid { display: grid; grid-template-columns: 1fr 150px 1fr; border-bottom: 1px solid var(--line-2); }
.console-low { display: grid; grid-template-columns: 1.6fr 1fr; }
.console-low .pane + .pane { border-left: 1px solid var(--line-2); }
.pane { display: flex; flex-direction: column; min-width: 0; }
.pane-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 11px; letter-spacing: .18em;
  border-bottom: 1px solid var(--line); color: var(--text);
}
.pane-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .06em; color: var(--dim); min-height: 40px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.led { width: 7px; height: 7px; background: var(--dimmer); }
.led-g { background: var(--green); box-shadow: 0 0 8px var(--green); }
.led-r { background: var(--red); box-shadow: 0 0 8px var(--red); }
.led-a { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.editor { position: relative; flex: 1; min-height: 230px; }
.editor-hl, .editor textarea {
  position: absolute; inset: 0; margin: 0; padding: 18px; border: 0;
  font: 14px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: break-word; word-break: normal;
  overflow: auto;
}
.editor-hl { color: transparent; pointer-events: none; }
.editor-hl mark { color: transparent; background: rgba(255, 178, 36, .16); border-bottom: 1px solid var(--amber); }
.editor-hl mark.hard { background: rgba(255, 59, 47, .2); border-bottom-color: var(--red); }
.editor textarea { background: transparent; color: var(--text); resize: none; outline: none; caret-color: var(--red); }

.out { padding: 18px; font: 14px/1.75 var(--mono); flex: 1; min-height: 230px; white-space: pre-wrap; overflow-wrap: break-word; }
.xb {
  display: inline-block; position: relative; background: #000; color: transparent; height: 1.25em; vertical-align: -.2em;
  box-shadow: inset 0 0 0 1px var(--line-2); transform-origin: left; animation: slam .3s cubic-bezier(.8, 0, .2, 1) both;
}
.xb::after {
  content: attr(data-tok); position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  color: var(--red); font-size: 9px; letter-spacing: .1em; white-space: nowrap;
}
.out.typing::after, .resp.typing::after { content: "▌"; color: var(--red); animation: blink .7s steps(1) infinite; }
.blocked { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.blocked b { font: 800 2.6rem/1 var(--cond); letter-spacing: .04em; color: var(--green); border: 3px solid var(--green); padding: 6px 14px; transform: rotate(-4deg); animation: stampIn .3s cubic-bezier(.5, 0, .8, .5) both; }
.blocked span { color: var(--dim); font-size: 12px; max-width: 32ch; }
@keyframes stampIn { from { transform: rotate(-4deg) scale(2); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }

.wire { border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px 10px; position: relative; }
.wire-line { position: relative; width: 100%; height: 2px; background: var(--line-2); overflow: hidden; }
.wire-line i { position: absolute; top: 0; left: -10%; width: 10%; height: 2px; background: var(--amber); opacity: 0; }
.wire.sending .wire-line i { animation: packet .9s linear infinite; opacity: 1; }
.wire.sending .wire-line i:nth-child(2) { animation-delay: .22s; } .wire.sending .wire-line i:nth-child(3) { animation-delay: .44s; } .wire.sending .wire-line i:nth-child(4) { animation-delay: .66s; }
.wire.blocked-state .wire-line { background: var(--green); }
@keyframes packet { to { left: 110%; } }
.btn-send { width: 100%; padding: 14px 8px; }
.wire-status { font-size: 10px; letter-spacing: .16em; color: var(--dim); text-align: center; min-height: 3em; }
.wire-status.warn { color: var(--amber); } .wire-status.ok { color: var(--green); }

.chip { border: 1px solid var(--line-2); padding: 2px 8px; font-size: 10px; letter-spacing: .1em; }
.chip.c-g { color: var(--green); border-color: rgba(125, 255, 176, .4); }
.chip.c-a { color: var(--amber); border-color: rgba(255, 178, 36, .4); }
.chip.c-r { color: var(--red); border-color: rgba(255, 59, 47, .5); }

.resp { padding: 18px; font: 14px/1.8 var(--mono); white-space: pre-wrap; min-height: 200px; }
.resp .restored { color: var(--amber); border-bottom: 1px dotted var(--amber); }
.resp .tk { color: var(--red); }
.mini-toggle { margin-left: auto; display: flex; gap: 4px; }
.mini-toggle button { padding: 3px 8px; font-size: 10px; }
.mini-toggle button[aria-checked="true"] { color: #000; background: var(--text); border-color: var(--text); }
.mini-toggle button:disabled { opacity: .35; }

.policy-pane { padding-bottom: 14px; }
.terms-label { display: block; padding: 14px 16px 6px; font-size: 10px; letter-spacing: .2em; color: var(--dim); }
#protected { margin: 0 16px; width: calc(100% - 32px); background: #000; border: 1px solid var(--line-2); color: var(--text); padding: 9px 10px; font: 12px var(--mono); }
.policy { padding: 12px 16px 0; display: grid; gap: 4px; }
.pol { display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 10px; }
.pol select { background: #000; color: var(--text); border: 1px solid var(--line-2); font: 11px var(--mono); padding: 4px 6px; letter-spacing: .06em; }
.pol .sw { display: inline-block; width: 8px; height: 8px; margin-right: 8px; }

/* custody */
.custody { border: 1px solid var(--line-2); background: #000; }
.custody-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px; border-bottom: 1px solid var(--line-2); }
.ledger { margin: 0; padding: 20px; min-height: 180px; font: 12.5px/2 var(--mono); color: var(--tint); overflow-x: auto; white-space: pre; }
.ledger .k { color: var(--dim); }
.ledger .g { color: var(--green); }
.ledger .a { color: var(--amber); }
.ledger .bad { color: var(--red); background: rgba(255, 59, 47, .1); }
.ledger .new { animation: flash 1s ease; }
@keyframes flash { from { background: rgba(255, 178, 36, .25); } to { background: transparent; } }
.chain-status { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: 12px; letter-spacing: .08em; min-height: 46px; }
.chain-status.ok { color: var(--green); } .chain-status.bad { color: var(--red); }

/* asset */
.asset { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.box { perspective: 1200px; padding: 40px 0; }
.box-face {
  position: relative; height: 200px; background: linear-gradient(180deg, #161a1a, #0b0d0d);
  border: 1px solid var(--line-2); transform: rotateX(14deg) rotateY(-16deg); transform-style: preserve-3d;
  box-shadow: 30px 40px 80px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.box:hover .box-face { transform: rotateX(6deg) rotateY(-4deg); }
.vents { position: absolute; left: 28px; right: 40%; top: 34px; bottom: 34px; background: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 9px); opacity: .8; }
.box-label { position: absolute; right: 28px; top: 30px; font: 800 1.6rem/1 var(--cond); letter-spacing: .3em; }
.box-label span { color: var(--dim); font-size: .9rem; letter-spacing: .2em; }
.leds { position: absolute; right: 28px; bottom: 30px; display: flex; gap: 10px; }
.leds i { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2.4s steps(1) infinite; }
.leds i:nth-child(2) { animation-duration: .9s; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.leds i:nth-child(3) { animation: none; background: var(--red); box-shadow: 0 0 10px var(--red); }
.box-shadow { height: 30px; margin: 10px 30px 0; background: radial-gradient(ellipse, rgba(125, 255, 176, .08), transparent 70%); }
.specs { margin: 0; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 150px 1fr; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.specs dd { margin: 0; }
.pending { display: inline-block; background: #000; color: #000; box-shadow: inset 0 0 0 1px var(--line-2); padding: 1px 10px; font-size: 11px; letter-spacing: .14em; position: relative; transition: color .2s; }
.pending:hover { color: var(--red); }
.pending.sm { padding: 0 8px; }

/* ops */
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.ops h3 { font-size: 1.1rem; letter-spacing: .2em; margin-bottom: 18px; font-weight: 700; }
.ops h3 .dim { font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; font-weight: 400; }
.ops-list, .phases { list-style: none; padding: 0; margin: 0; }
.ops-list li, .phases li { display: grid; grid-template-columns: 170px 1fr; gap: 6px 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.ops-list li:last-child, .phases li:last-child { border-bottom: 1px solid var(--line); }
.ops-list b, .phases b { font: 700 1.25rem/1.1 var(--cond); letter-spacing: .08em; }
.ops-list span, .phases span { color: #c4c6c0; font-size: 14px; }
.ops-list em { grid-column: 2; font-style: normal; font-size: 11px; letter-spacing: .14em; color: var(--dim); }
.phases li.live b { color: var(--green); }
.phases li.live b::after { content: " ●"; animation: blink 1s steps(1) infinite; }
.edge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 80px; }
.edge div { border-left: 2px solid var(--red); padding: 4px 0 4px 20px; display: grid; gap: 8px; }
.edge b { font: 800 1.6rem/1 var(--cond); letter-spacing: .02em; }
.edge span { color: var(--dim); font-size: 14px; }
.edge div:nth-child(2) { transition-delay: .12s; } .edge div:nth-child(3) { transition-delay: .24s; }

/* briefing */
.briefing { padding-bottom: 120px; }
.brief-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0; border: 1px solid var(--line-2); align-items: stretch; }
.brief-form label { display: grid; padding: 14px 18px; border-right: 1px solid var(--line-2); gap: 4px; }
.brief-form label span { font-size: 10px; letter-spacing: .24em; color: var(--dim); }
.brief-form input { background: none; border: 0; color: var(--text); font: 15px var(--mono); padding: 4px 0; outline: none; }
.brief-form .btn { border: 0; padding: 0 28px; }
.brief-form .fine { grid-column: 1 / -1; margin: 0; padding: 10px 18px; border-top: 1px solid var(--line-2); }

.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .14em; color: var(--dimmer); text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hud-nav { display: none; }
  .memo-wrap, .asset, .ops { grid-template-columns: 1fr; gap: 48px; }
  .dossiers { grid-template-columns: 1fr 1fr; }
  .console-grid { grid-template-columns: 1fr; }
  .wire { border: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); flex-direction: row; }
  .wire-line { flex: 1; }
  .btn-send { width: auto; padding: 12px 20px; }
  .console-low { grid-template-columns: 1fr; }
  .console-low .pane + .pane { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 720px) {
  .hud { gap: 12px; padding: 0 14px; }
  .hud-brand .dim, .hud-rec, .hud-view .dim { display: none; }
  .hud-view { margin-left: auto; }
  .dossiers, .edge { grid-template-columns: 1fr; }
  .memo { padding: 28px 22px; }
  .stamp { font-size: 1.6rem; top: 50px; right: 14px; }
  .brief-form { grid-template-columns: 1fr; }
  .brief-form label { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .brief-form .btn { padding: 16px; }
  .ops-list li, .phases li, .specs div { grid-template-columns: 1fr; }
  .ops-list em { grid-column: 1; }
  .file { padding-top: 100px; }
  .wire-status { display: none; }
  .feed-ui .bl { display: none; }
  .feed-ui .br { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Current product and investor evidence, preserving the dossier identity. */
.skip-link {position:fixed;top:8px;left:8px;z-index:200;padding:12px;background:var(--text);color:var(--bg);transform:translateY(-180%)}
.skip-link:focus {transform:none}
.hud-brand img {display:block;width:150px;height:auto}
.hud-brand .dim {font-size:9px}
.hero-sub strong {color:var(--text)}
.build-signal {display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:10px;letter-spacing:.13em;color:var(--text);margin:22px 0}
.build-signal > span:last-child {display:block;color:var(--dim);letter-spacing:0}
.signal-dot {width:6px;height:6px;background:var(--green);flex-shrink:0}
.product-gallery {display:grid;grid-template-columns:1fr 1fr;gap:26px}
.product-shot {margin:0;border:1px solid var(--line-2);background:var(--bg-1)}
.product-shot img {display:block;width:100%;height:360px;object-fit:contain;background:#141715}
.product-shot figcaption {border-top:1px solid var(--line-2);padding:16px;font-size:10px;letter-spacing:.1em;color:var(--dim)}
.product-pillars {display:grid;grid-template-columns:repeat(3,1fr);gap:34px;margin-top:40px}
.product-pillars article {border-top:1px solid var(--line-2);padding-top:24px}
.product-pillars span {color:var(--red);font-size:11px;letter-spacing:.2em}
.product-pillars h3,.readiness-card h3 {font:700 32px/1.1 var(--cond);text-transform:uppercase;margin:16px 0}
.product-pillars p,.readiness-card li {color:#aab0ab;font-size:13px}
.readiness-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.readiness-card {border:1px solid var(--line-2);background:var(--bg-1);padding:26px}
.status-label {font-size:9px;letter-spacing:.09em;color:var(--amber)}
.status-label.built {color:var(--green)}
.status-label.next {color:var(--dim)}
.readiness-card ul {padding-left:16px;margin:24px 0 0}
.readiness-card li {margin:12px 0}
.briefing .file-sub {max-width:60ch}
.hud-nav {gap:12px}
@media (hover:hover) and (pointer:fine) {body,button,a,textarea,input,select {cursor:auto}button,a {cursor:pointer}.crosshair {display:none}}
@media(max-width:1100px){.hud-rec,.hud-brand .dim {display:none}.hud {gap:16px}.hud-nav {gap:10px}.hud-nav a {font-size:9px}}
@media(max-width:800px){.product-gallery,.product-pillars,.readiness-grid {grid-template-columns:1fr}.product-shot img{height:auto}.hud-nav{display:none}.hud-view{margin-left:auto}.hud-brand img{width:124px}.build-signal{line-height:1.8}.hero-copy{padding-top:110px;padding-bottom:80px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.grain,.rec-dot,.blink{animation:none}.reveal{opacity:1;transform:none}.alarm.on{animation:none;opacity:0}}
.hud-view > .dim,.hud-nav a,.hud-deck {white-space:nowrap}
@media(max-width:1400px){.hud-rec,.hud-brand .dim{display:none}.hud{gap:20px}.hud-nav{gap:14px}}
.alarm.on {animation:briefingAlarm 2s ease forwards}
@keyframes briefingAlarm {0%{opacity:0}15%,65%{opacity:.8}100%{opacity:0}}

/* The team: personal credibility within the dossier's visual language. */
.team-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.team-card {padding:36px;border:1px solid var(--line-2);background:var(--bg-1);display:flex;flex-direction:column}
.team-card-top {display:flex;align-items:center;gap:20px;margin-bottom:32px}
.team-monogram {display:grid;place-items:center;width:64px;height:64px;flex-shrink:0;border:1px solid var(--line-2);font:700 32px/1 var(--cond);color:var(--green)}
.team-focus {font-size:10px;letter-spacing:.16em;color:var(--green);line-height:1.7}
.team-card h3 {font:800 clamp(34px,3.4vw,52px)/1 var(--cond);text-transform:uppercase;margin:0 0 12px}
.team-role {font-size:12px;color:var(--amber);margin:0 0 24px}
.team-card p:not(.team-role) {font-size:14px;line-height:1.85;color:#bbc0bb;margin:0 0 22px}
.team-card .team-connection {border-top:1px solid var(--line);padding-top:22px}
.team-link {font-size:10px;letter-spacing:.12em;color:var(--text);margin-top:auto;padding-top:8px;text-underline-offset:5px}
@media(max-width:1400px){.hud-nav{gap:10px}.hud-nav a{font-size:9px}.hud-view>.dim{display:none}}
@media(max-width:800px){.team-grid{grid-template-columns:1fr}.team-card{padding:26px}.team-card-top{gap:14px}.team-focus{font-size:9px}}

.team-portrait {width:96px;height:96px;object-fit:cover;border:1px solid var(--line-2);flex-shrink:0}

/* Production narrative: privacy governs local and cloud model choice. */
.hero-accent {color:var(--tint)}
.hero h1 {font-size:clamp(2.8rem,min(6.1vw,10vh),6.6rem)}
.routing-steps {list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;padding:0;margin:0}
.routing-steps li {border-top:2px solid var(--red);padding-top:24px}
.routing-steps li>span,.route-label,.narrative-belief>span {font-size:10px;letter-spacing:.13em;color:var(--tint)}
.routing-steps h3,.route-examples h3 {font-size:34px;line-height:1.1;margin:20px 0 16px}
.routing-steps p,.route-examples p {font-size:14px;line-height:1.8;color:#bbc0bb;margin:0}
.route-examples {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:50px}
.route-examples>div {border:1px solid var(--line-2);background:var(--bg-1);padding:32px}
.route-examples>div:first-child {border-top-color:var(--tint)}
.route-examples>div:last-child {border-top-color:var(--red)}
.narrative-belief {border-left:2px solid var(--red);padding:12px 0 12px 30px;margin-top:60px}
.narrative-belief p {font:700 clamp(30px,3.4vw,48px)/1.15 var(--cond);text-transform:uppercase;margin:20px 0 0;max-width:30ch}
@media(max-width:800px){.routing-steps,.route-examples{grid-template-columns:1fr}.route-examples>div{padding:26px}.hero{height:auto;min-height:100svh}.hero h1{font-size:clamp(2.8rem,9.5vw,4.5rem)}.hero .kicker{font-size:10px;line-height:1.8;max-width:34ch}.hero-copy{width:100%}.hero-sub{margin:24px 0}.hero-hint{max-width:36ch}}
.hero h1 .line {text-wrap:balance}
@media(max-width:380px){.pane-head{flex-wrap:wrap}.pane-head .mini-toggle{margin-left:0;flex-basis:100%}}

/* Clear navigation; privacy comparison lives beside the demo response. */
.hud { gap:32px; }
.hud-brand { flex-shrink:0; }
.hud-brand img { width:170px; }
.hud-nav { display:flex; gap:28px; margin-left:auto; align-items:center; }
.hud-nav a { font-size:12px; letter-spacing:.03em; white-space:nowrap; padding:12px 0; color:var(--text); }
.hud-nav a:hover { color:var(--tint); }
.hud-access { display:inline-flex; align-items:center; gap:16px; padding:9px 14px; border:1px solid var(--text); background:var(--text); color:var(--bg); font-size:11px; letter-spacing:.04em; white-space:nowrap; }
.hud-access:hover { background:var(--tint); border-color:var(--tint); }
.console-low .pane-head { flex-wrap:wrap; }
.console-low .mini-toggle { flex-basis:100%; margin:10px 0 0; gap:6px; }
.console-low .mini-toggle button { padding:9px 12px; font-size:11px; letter-spacing:.02em; text-transform:none; }
@media(max-width:800px) {
  .hud { gap:20px; }
  .hud-brand img { width:140px; }
  .hud-nav { gap:18px; }
  .hud-nav a { font-size:11px; }
}
@media(max-width:640px) {
  .hud { padding:0 14px; gap:12px; }
  .hud-brand img { width:124px; }
  .hud-nav { display:none; }
  .hud-access { margin-left:auto; gap:10px; padding:9px 11px; }
  .console-low .mini-toggle { flex-wrap:wrap; }
  .console-low .mini-toggle button { flex:1; min-width:130px; }
}
