
/* /src/styles.css */
:root {
  --void: #070a0c;
  --panel: #0d1215;
  --panel-hi: #11191c;
  --rule: #293338;
  --rule-hi: #536269;
  --paper: #ecefe8;
  --muted: #8d9a9e;
  --acid: #9df0b7;
  --amber: #ffb44b;
  --coral: #ff7468;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background-color: var(--void);
  background-image:
    linear-gradient(rgba(157, 240, 183, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 240, 183, .035) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px);
  background-size: 48px 48px, 48px 48px, 100% 4px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 76% 10%, rgba(157,240,183,.08), transparent 30%), radial-gradient(circle at 8% 42%, rgba(255,180,75,.05), transparent 22%);
}
::selection { background: var(--acid); color: var(--void); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 16px 72px; }
.eyebrow { margin: 0; color: var(--acid); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* header + intake console */
.topline {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  background: rgba(7,10,12,.82);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; font-weight: 800; letter-spacing: .11em; }
.brand__mark { color: var(--void); background: var(--acid); padding: 5px 7px; font-size: 11px; letter-spacing: -.05em; box-shadow: 5px 5px 0 rgba(157,240,183,.14); }
.topline__status { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.topline__status a { color: var(--paper); text-decoration: none; }
.topline__status a:hover { color: var(--acid); }
.topline__divider { color: var(--rule-hi); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); animation: status-pulse 1.8s ease-in-out infinite; }

.hero { min-height: 570px; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.hero__copy { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: center; max-width: 920px; padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 80px); }
.hero__copy::before, .frame::before {
  content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--acid); opacity: .8;
}
.hero__copy::before { top: 16px; left: 0; border-top: 1px solid; border-left: 1px solid; }
.hero__copy::after { right: 0; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.wordmark { margin: 22px 0 24px; font-family: var(--sans); font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.wordmark span { color: transparent; -webkit-text-stroke: 1px var(--paper); text-shadow: 8px 8px 0 rgba(157,240,183,.08); }
.tagline { max-width: 64ch; margin: 0; color: #b8c2c5; font-family: var(--sans); font-size: clamp(1rem, 1.45vw, 1.28rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 14px; color: var(--paper); background: transparent; border: 1px solid var(--rule-hi); border-radius: 0; font: 700 10px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: color .18s, border-color .18s, background .18s, transform .18s; }
.btn:hover { color: var(--void); border-color: var(--acid); background: var(--acid); transform: translateY(-2px); }
.btn--primary { min-width: 184px; color: var(--void); background: var(--acid); border-color: var(--acid); }
.btn--primary:hover { background: var(--paper); border-color: var(--paper); }
.btn:active { transform: translateY(0); }
.btn[data-done="true"] { color: var(--void); background: var(--amber); border-color: var(--amber); }
.btn:disabled { opacity: .55; cursor: default; }

.mast--compact .hero { min-height: auto; display: block; }
.mast--compact .hero__copy { min-height: 280px; }
.mast--compact .tagline, .mast--compact .hero__actions { display: none; }
.mast--compact .wordmark { font-size: clamp(1.6rem, 4.4vw, 3.2rem); }

/* record grid */
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 66px; }
.feed__head { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 0 20px; border-bottom: 1px solid var(--rule); }
.feed__head h2 { margin: 9px 0 0; font-family: var(--sans); font-size: clamp(2rem, 4vw, 4.6rem); line-height: .95; letter-spacing: -.055em; }
.feed__head > p { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.feed__head > p span { color: var(--acid); }
.frame { position: relative; min-width: 0; background: rgba(13,18,21,.92); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); overflow: hidden; transition: transform .28s ease, border-color .28s ease, background .28s ease; animation: panel-in .55s both; }
.frame::before { z-index: 2; top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; transition: width .25s, height .25s; }
.frame:hover { transform: translateY(-4px); border-color: var(--rule-hi); background: var(--panel-hi); }
.frame:hover::before { width: 24px; height: 24px; }
.feed .frame { grid-column: 1 / -1; }
.feed .frame:nth-of-type(2) { animation-delay: 60ms; }.feed .frame:nth-of-type(3) { animation-delay: 120ms; }.feed .frame:nth-of-type(4) { animation-delay: 180ms; }.feed .frame:nth-of-type(5) { animation-delay: 240ms; }
.edge { position: relative; height: 12px; overflow: hidden; color: var(--rule); background: inherit; font-size: 11px; line-height: 1; white-space: nowrap; user-select: none; }
.edge__corner { position: absolute; top: 0; padding: 0 1px; background: inherit; color: var(--rule-hi); }
.edge__corner--l { left: 0; }.edge__corner--r { right: 0; }
.shot__head { display: flex; justify-content: space-between; gap: 16px; padding: 8px 15px 13px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.shot__case { color: var(--paper); font-weight: 700; }.shot__case span { color: var(--muted); font-weight: 400; }
.risk { color: var(--coral); }.risk i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.shot__body { display: grid; grid-template-columns: minmax(170px, .75fr) minmax(0, 1.25fr); gap: 0; }
.portrait { min-width: 0; padding: 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #080d0f; }
.portrait svg { display: block; width: 100%; height: auto; max-height: 330px; }
.portrait__ground { fill: #091012; }.portrait__grid { color: var(--acid); animation: grid-breathe var(--life) ease-in-out var(--phase) infinite; }
.portrait svg path, .portrait svg rect, .portrait svg circle, .portrait svg ellipse { vector-effect: non-scaling-stroke; }
.height-lines { fill: var(--muted); stroke: var(--rule-hi); stroke-width: 1; font: 9px var(--mono); }
.bars-back { fill: none; stroke: #d8e6e1; stroke-width: 3; opacity: .1; }
.shoulders, .head > *, .gear > *, .ears > * { stroke-width: 2.2; }
.shoulders { transform-box: fill-box; transform-origin: center bottom; animation: shoulders-breathe var(--breath) ease-in-out var(--phase) infinite; }
.ears { transform-box: fill-box; transform-origin: center; animation: ears-listen var(--listen) ease-in-out var(--phase) infinite; }
.ears > * { fill: #142b20; stroke: currentColor; }
.brows, .nose, .mouth, .mark { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brows { transform-box: fill-box; transform-origin: center; animation: brow-think var(--think) ease-in-out var(--phase) infinite; }
.eyes { transform-box: fill-box; transform-origin: center; animation: eye-blink var(--blink) ease-in-out var(--phase) infinite; }
.eyes > * { stroke-width: 2.2; }
.pupil { transform-box: fill-box; transform-origin: center; animation: pupil-dart var(--look) ease-in-out var(--phase) infinite; }
.nose { transform-box: fill-box; transform-origin: center; animation: nose-breathe var(--breath) ease-in-out var(--phase) infinite; }
.mouth { transform-box: fill-box; transform-origin: center; animation: mouth-mutter var(--mutter) ease-in-out var(--phase) infinite; }
.gear { transform-box: fill-box; transform-origin: center; animation: gear-bob var(--gear) ease-in-out var(--phase) infinite; }
.face { transform-box: fill-box; transform-origin: center; animation: face-idle var(--life) ease-in-out var(--phase) infinite; }
.scan { opacity: .16; animation: scan 4.2s linear infinite; }
.portrait__corners { fill: none; stroke: var(--acid); stroke-width: 1.2; }
.portrait__case, .portrait__id { fill: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.frame:is(:hover, :focus-within) .face { animation-duration: 1.8s; }
.frame:is(:hover, :focus-within) .eyes { animation-duration: 2.1s; }
.frame:is(:hover, :focus-within) .pupil { animation-duration: 1.5s; }
.frame:is(:hover, :focus-within) .mouth { animation-duration: 1.25s; }
.frame:is(:hover, :focus-within) .scan { opacity: .28; animation-duration: 1.8s; }
.frame:is(:hover, :focus-within) .gear { animation-duration: 1.4s; }

.ident { min-width: 0; align-self: stretch; padding: 18px 18px 16px; border-bottom: 1px solid var(--rule); }
.ident__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.ident__handle { margin: clamp(18px, 3vw, 36px) 0 5px; font-family: var(--sans); font-size: clamp(1.65rem, 3vw, 3.8rem); font-weight: 850; line-height: 1; letter-spacing: -.05em; overflow-wrap: anywhere; }
.ident__handle a { text-decoration: none; }.ident__handle a:hover { color: var(--acid); }
.ident__org { margin: 0; color: var(--acid); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.ident__charge { margin: 22px 0 0; color: var(--paper); font-family: var(--sans); font-size: clamp(1rem, 1.5vw, 1.28rem); font-weight: 650; line-height: 1.3; }
.testimony { grid-column: 1 / -1; padding: 20px 18px 18px; }
.tag { display: block; color: var(--acid); font-size: 9px; letter-spacing: .12em; }
.statement { margin: 12px 0 0; color: #c6ced0; font-family: var(--sans); font-size: 1rem; line-height: 1.62; }
.sentence-block { grid-column: 1 / -1; margin: 0 18px 18px; padding: 14px 15px; border-left: 2px solid var(--amber); background: rgba(255,180,75,.055); }
.sentence-block .tag { color: var(--amber); }
.sentence { margin: 7px 0 0; color: var(--amber); font-family: var(--sans); font-size: .98rem; font-weight: 700; line-height: 1.5; }
.shot__foot { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 15px; border-top: 1px solid var(--rule); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.cite { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--rule-hi); overflow-wrap: anywhere; }.cite:hover { color: var(--acid); border-color: var(--acid); }.cite--none { border: 0; }
.shot__tools { display: flex; align-items: center; gap: 10px; }.reports { color: var(--muted); }
.shot__foot .btn { min-height: 34px; padding: 7px 10px; font-size: 9px; }
.shot__body { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
.portrait { grid-row: span 3; border-bottom: 0; }
.portrait svg { max-height: 530px; }
.testimony, .sentence-block { grid-column: 2; }
.ident__handle { font-size: clamp(2.6rem, 6vw, 6.7rem); }
.statement { font-size: clamp(1rem, 1.3vw, 1.18rem); }

.intake { grid-column: 1 / -1; min-height: 90px; padding: 30px; text-align: center; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.intake__bar { display: block; margin-bottom: 8px; color: var(--acid); animation: status-pulse 1.4s infinite; }.intake__end b { display: block; margin-top: 6px; font-weight: 400; }

/* footer and content pages */
.foot { margin-top: 72px; padding: 26px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.foot__brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }.foot a { text-decoration: none; }.foot a:hover { color: var(--acid); }.foot__fine { grid-column: 1 / -1; margin: 0; color: var(--rule-hi); }
.page { max-width: 840px; margin: 0 auto; padding: 56px 0 20px; }.page h1 { margin: 0 0 24px; font-family: var(--sans); font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }.page h2 { margin: 38px 0 12px; color: var(--acid); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }.page p, .page li { color: #c6ced0; font-family: var(--sans); font-size: 1.06rem; line-height: 1.7; }.page .lede { color: var(--muted); }.back { display: inline-block; margin-bottom: 20px; color: var(--acid); font-size: 10px; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }.solo { max-width: 1100px; margin: 0 auto; padding-top: 38px; }.solo .frame { margin-bottom: 30px; }
pre.code { overflow-x: auto; padding: 18px; color: var(--paper); background: var(--panel); border: 1px solid var(--rule); border-left: 2px solid var(--acid); font: 12px/1.65 var(--mono); }.inline { padding: 2px 5px; background: var(--panel); border: 1px solid var(--rule); font-family: var(--mono); font-size: .9em; }

@keyframes status-pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes blink { 0%,84%,100% { opacity: 1; } 85%,91% { opacity: .25; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 35% 0); } to { opacity: 1; transform: translateY(0); clip-path: inset(0); } }
@keyframes scan { from { transform: translateY(-40px); } to { transform: translateY(310px); } }
@keyframes grid-breathe { 0%,100% { opacity: .72; } 50% { opacity: 1; } }
@keyframes face-idle { 0%,18%,100% { transform: translate(0,0) rotate(0); } 38% { transform: translate(-2px,1px) rotate(-.55deg); } 58% { transform: translate(2px,-2px) rotate(.45deg); } 78% { transform: translate(0,1px) rotate(0); } }
@keyframes shoulders-breathe { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.018,1.012); } }
@keyframes gear-bob { 0%,37%,100% { transform: translateY(0) rotate(0); } 44% { transform: translateY(-3px) rotate(-1deg); } 53% { transform: translateY(-1px) rotate(1deg); } }
@keyframes ears-listen { 0%,72%,100% { transform: scaleX(1); } 76% { transform: scaleX(1.08); } 82% { transform: scaleX(.97); } }
@keyframes brow-think { 0%,61%,100% { transform: translateY(0) rotate(0); } 65%,72% { transform: translateY(-3px) rotate(-1deg); } 77% { transform: translateY(1px); } }
@keyframes pupil-dart { 0%,38%,100% { transform: translate(0,0); } 42%,52% { transform: translate(-4px,1px); } 57%,67% { transform: translate(4px,-1px); } 71%,77% { transform: translate(1px,2px); } }
@keyframes eye-blink { 0%,43%,47%,84%,88%,100% { transform: scaleY(1); } 45%,86% { transform: scaleY(.07); } }
@keyframes nose-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes mouth-mutter { 0%,38%,54%,100% { transform: scale(1,1) translateY(0); } 43% { transform: scale(1.04,.76) translateY(1px); } 48% { transform: scale(.96,1.12) translateY(-1px); } }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: minmax(0,1fr); }.hero__copy { min-height: 500px; border-right: 0; border-bottom: 1px solid var(--rule); }.feed { grid-template-columns: 1fr; }.shot__body { grid-template-columns: minmax(190px,.72fr) minmax(0,1.28fr); }.portrait { grid-row: auto; border-bottom: 1px solid var(--rule); }.testimony, .sentence-block { grid-column: 1 / -1; }.ident__handle { font-size: clamp(2rem,8vw,4.5rem); }
}
@media (max-width: 620px) {
  .shell { padding-inline: 10px; }.topline { min-height: 56px; }.topline__status { gap: 9px; }.topline__status > :not(a:last-child):not(.live-dot) { display: none; }.hero__copy { min-height: 450px; padding: 62px 6px; }.wordmark { font-size: clamp(2.8rem,14vw,4.6rem); }.feed { padding-top: 44px; }.feed__head { display: block; }.feed__head > p { margin-top: 12px; }.shot__body { grid-template-columns: 1fr; }.portrait { border-right: 0; }.portrait svg { max-height: 350px; }.ident__handle { font-size: 2rem; }.shot__head, .shot__foot { align-items: flex-start; flex-direction: column; }.shot__tools { width: 100%; justify-content: space-between; }.foot { grid-template-columns: 1fr; }.foot nav { justify-content: flex-start; }.foot__fine { grid-column: auto; }
}
@media (min-width: 981px) {
  .feed { max-width: 70%; margin-inline: auto; transform: scaleY(0.8); transform-origin: top; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .portrait svg * { animation: none !important; transform: none !important; }
  .scan { display: none; }
}
