/* Ookii Sniff — X-Ray Lab treatment
   Designed as a drop-in replacement for the existing index.html + styles.css.
   Existing app.js DOM IDs and generated class names are preserved. */

:root {
  --bg: #061014;
  --bg-deep: #03080a;
  --panel: #09161a;
  --panel-2: #0d1c21;
  --panel-3: #10242a;
  --ink: #eaffff;
  --ink-soft: #c0d1d4;
  --muted: #81989d;
  --muted-2: #7d949a;
  --line: #18353b;
  --line-hot: #2a5960;
  --cyan: #6fffe9;
  --cyan-soft: rgba(111,255,233,.12);
  --lime: #d8ff66;
  --lime-soft: rgba(216,255,102,.12);
  --pink: #ff4b91;
  --pink-soft: rgba(255,75,145,.12);
  --white: #f4ffff;
  --ok: #7df5ad;
  --danger: #ff6b87;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --shell: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(111,255,233,.055), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 0 62%, transparent 94%);
}

button, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.shell { width: min(100% - 52px, var(--shell)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 14px; top: 14px; z-index: 1000; background: var(--lime); color: var(--bg-deep); padding: 10px 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; text-decoration: none; }

/* ---------- mast / identity ---------- */
.mast {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 49.95%, rgba(111,255,233,.045) 50%, transparent 50.05%),
    radial-gradient(circle at 73% 49%, rgba(111,255,233,.07), transparent 32rem),
    linear-gradient(180deg, #071115 0%, #050c0f 100%);
}
.mast::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(111,255,233,.08);
  border-radius: 50%;
  right: -340px;
  top: 120px;
  box-shadow: 0 0 0 52px rgba(111,255,233,.02), 0 0 0 104px rgba(255,75,145,.014);
  pointer-events: none;
}
.mast__top {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cyan); }
.studio-link__mark { width: 11px; height: 11px; border: 1px solid currentColor; transform: rotate(45deg); }
.studio-link:hover { color: var(--white); }
.mast__status { display: flex; align-items: center; gap: 10px; }
.system-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(216,255,102,.08), 0 0 20px rgba(216,255,102,.42); animation: system-pulse 3.6s ease-in-out infinite; }
.mast__divider { width: 28px; height: 1px; background: var(--line-hot); }

/* ---------- support ----------
   Lime, because nothing else on the page uses it as a solid fill, so the eye
   finds it immediately against the cyan and pink. Movement is front loaded:
   an entrance, then three attention beats, then it settles and stops. */
.support-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 4px; padding: 7px 15px 7px 12px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: rgba(216,255,102,.09);
  color: var(--lime);
  font: 700 11px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  animation:
    support-enter .6s cubic-bezier(.2,.9,.3,1.25) .5s both,
    support-nudge 1.4s ease-in-out 1.5s 4 both,
    support-flare 1.4s ease-in-out 1.5s 4 both;
}
.support-pill::after {
  content: ""; position: absolute; inset: -1px; border-radius: 999px;
  border: 1px solid var(--lime); pointer-events: none;
  animation: support-halo 1.4s ease-out 1.5s 4 both;
}
.support-pill:hover, .support-pill:focus-visible {
  background: var(--lime) !important; color: #0b1305;
  transform: translateY(-1px); box-shadow: 0 0 22px rgba(216,255,102,.4);
  animation: none;
}
.support-pill:hover::after, .support-pill:focus-visible::after { animation: none; opacity: 0; }
.support-pill__dot {
  width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%;
  background: currentColor;
  animation: support-dot 1.8s ease-in-out infinite;
}
.support-pill--foot { margin-left: 2px; animation-delay: .5s, 1.5s; }

@keyframes support-enter {
  from { opacity: 0; transform: translateY(-6px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes support-nudge {
  0%, 54%, 100% { transform: none; }
  58% { transform: translateX(-6px) rotate(-2.6deg) scale(1.04); }
  63% { transform: translateX(6px) rotate(2.6deg) scale(1.04); }
  68% { transform: translateX(-5px) rotate(-2.1deg) scale(1.03); }
  73% { transform: translateX(5px) rotate(2.1deg) scale(1.03); }
  78% { transform: translateX(-3.5px) rotate(-1.4deg); }
  83% { transform: translateX(3.5px) rotate(1.4deg); }
  88% { transform: translateX(-2px) rotate(-.7deg); }
  93% { transform: translateX(2px) rotate(.7deg); }
  97% { transform: translateX(-1px); }
}
@keyframes support-flare {
  0%, 54%, 100% { background: rgba(216,255,102,.09); box-shadow: none; }
  58%, 83% { background: rgba(216,255,102,.24); box-shadow: 0 0 22px rgba(216,255,102,.34); }
}
@keyframes support-halo {
  0%, 52% { opacity: 0; transform: scale(1); }
  58%     { opacity: .9; transform: scale(1); }
  92%     { opacity: 0; transform: scale(1.55); }
  100%    { opacity: 0; transform: scale(1.55); }
}
@keyframes support-dot {
  0%, 100% { opacity: .5; box-shadow: 0 0 0 0 rgba(216,255,102,.4); }
  50%      { opacity: 1;  box-shadow: 0 0 10px 2px rgba(216,255,102,.55); }
}

/* Fingers need a bigger target than a cursor does. */
@media (pointer: coarse) {
  .support-pill { padding: 11px 17px 11px 14px; }
}

/* Reduced motion: keep the colour, drop every bit of movement. */
@media (prefers-reduced-motion: reduce) {
  .support-pill, .support-pill::after, .support-pill__dot { animation: none !important; }
  .support-pill::after { opacity: 0; }
}

/* ---------- hero ---------- */
.hero { min-height: 720px; display: grid; grid-template-columns: minmax(0,.88fr) minmax(500px,1.12fr); }
.hero__copy { padding: 82px 58px 76px 0; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero__kicker, .drop__eyebrow, .about__eyebrow, .promise__eyebrow, .rail__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero__kicker { color: var(--lime); }
.wordmark { display: block; width: min(100%, 620px); text-decoration: none; margin-top: 24px; }
.wordmark__ookii { display: block; margin-left: 4px; font: 700 13px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--cyan); }
.wordmark__sniff, .wordmark__ghost {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.075em;
}
.wordmark__sniff { font-size: clamp(4.8rem, 7.6vw, 7.8rem); line-height: .9; letter-spacing: -.045em; color: var(--white); margin-top: 15px; }
.wordmark__ghost { margin-top: 2px; font-size: clamp(2.2rem, 4.2vw, 4.25rem); line-height: 1; letter-spacing: -.045em; color: transparent; -webkit-text-stroke: 1px rgba(111,255,233,.7); text-stroke: 1px rgba(111,255,233,.7); }
.hero__lede { max-width: 570px; margin-top: 24px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }
.start-link {
  width: min(100%, 500px);
  margin-top: 24px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(216,255,102,.38);
  border-left: 4px solid var(--lime);
  background: linear-gradient(90deg, rgba(216,255,102,.10), rgba(216,255,102,.025));
  text-decoration: none;
}
.start-link:hover { border-color: var(--lime); background: rgba(216,255,102,.13); }
.start-link__step { color: var(--lime); font: 700 1.35rem/1 var(--mono); }
.start-link__copy { display: grid; gap: 2px; }
.start-link__copy b { color: var(--white); font-size: 1rem; }
.start-link__copy small { color: var(--ink-soft); font-size: .92rem; }
.start-link__arrow { color: var(--lime); font-size: 1.8rem; line-height: 1; }
.hero__signals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.signal { border: 1px solid var(--line-hot); padding: 9px 11px; font-family: var(--mono); font-size: 11px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(6,16,20,.65); }
.signal--live { color: var(--lime); border-color: rgba(216,255,102,.34); }
.signal--live i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--lime); }
.hero__readout { width: min(100%, 520px); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.hero__readout span { color: var(--muted-2); }
.hero__readout b { color: var(--cyan); font-weight: 500; }

/* ---------- scanner / file intake ---------- */
.scanner-wrap { min-width: 0; position: relative; border-left: 1px solid var(--line); padding: 36px 0 42px 42px; display: flex; flex-direction: column; justify-content: center; }
.scanner-chrome { position: absolute; top: 18px; z-index: 3; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--muted-2); }
.scanner-chrome--tl { left: 44px; }
.scanner-chrome--tr { right: 4px; color: var(--lime); }
.scanner {
  min-height: 570px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-hot);
  background:
    radial-gradient(circle at 50% 38%, rgba(111,255,233,.095), transparent 31%),
    linear-gradient(145deg, rgba(111,255,233,.025), rgba(4,10,12,.72) 64%);
  isolation: isolate;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.scanner.is-over { border-color: var(--cyan); background: radial-gradient(circle at 50% 38%, rgba(111,255,233,.16), transparent 37%), #071417; box-shadow: inset 0 0 0 1px rgba(111,255,233,.35), 0 0 48px rgba(111,255,233,.12); }
.scanner__grid { position: absolute; inset: 0; background: linear-gradient(rgba(111,255,233,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(111,255,233,.045) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%); opacity: .65; }
.scanner__frame { position: absolute; pointer-events: none; }
.scanner__frame--outer { inset: 30px; border: 1px solid rgba(111,255,233,.22); }
.scanner__frame--inner { inset: 75px 82px 155px; border: 1px dashed rgba(111,255,233,.17); }
.scanner__beam { position: absolute; z-index: 3; left: 32px; right: 32px; top: 16%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan) 24%, #fff 50%, var(--cyan) 76%, transparent); box-shadow: 0 0 20px rgba(111,255,233,.85), 0 0 42px rgba(111,255,233,.32); animation: scanner-beam 5.8s ease-in-out infinite; }
.scanner__beam::after { content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 70px; transform: translateY(-69px); background: linear-gradient(to top, rgba(111,255,233,.10), transparent); }
.scanner__crosshair { position: absolute; width: 22px; height: 22px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); opacity: .42; }
.scanner__crosshair--a { left: 30px; top: 30px; }
.scanner__crosshair--b { right: 30px; bottom: 30px; transform: rotate(180deg); }
.specimen { position: absolute; z-index: 2; width: 246px; height: 310px; left: 50%; top: 42%; transform: translate(-50%,-50%) rotate(-3.5deg); border: 1px solid rgba(111,255,233,.62); background: linear-gradient(150deg, rgba(233,255,255,.025), rgba(111,255,233,.095)); box-shadow: 0 0 0 15px rgba(111,255,233,.025), 0 0 64px rgba(111,255,233,.12); backdrop-filter: blur(3px); }
.specimen::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(111,255,233,.11); }
.specimen__meta { position: absolute; left: 15px; right: 15px; top: 13px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 7px; letter-spacing: .14em; color: rgba(111,255,233,.72); }
.specimen__fold { position: absolute; right: -1px; top: -1px; width: 47px; height: 47px; border-left: 1px solid rgba(111,255,233,.42); border-bottom: 1px solid rgba(111,255,233,.42); background: rgba(111,255,233,.06); clip-path: polygon(0 0,100% 100%,0 100%); }
.specimen__line { position: absolute; left: 28px; height: 6px; background: rgba(211,255,250,.11); }
.specimen__line--1 { top: 74px; width: 72%; }
.specimen__line--2 { top: 94px; width: 48%; }
.specimen__line--3 { top: 114px; width: 64%; }
.specimen__line--4 { top: 134px; width: 40%; }
.specimen__tag { position: absolute; padding: 6px 7px; border: 1px solid currentColor; font: 600 7px/1 var(--mono); letter-spacing: .12em; background: rgba(3,8,10,.88); }
.specimen__tag--author { left: 28px; top: 181px; color: var(--pink); }
.specimen__tag--gps { right: 26px; top: 218px; color: var(--lime); }
.specimen__tag--comments { left: 45px; bottom: 28px; color: var(--cyan); }
.scanner__annotation { position: absolute; z-index: 2; font-family: var(--mono); font-size: 8px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.scanner__annotation b { color: var(--cyan); font-weight: 500; margin-right: 5px; }
.scanner__annotation::before { content: ""; position: absolute; top: 50%; width: 48px; height: 1px; background: var(--line-hot); }
.scanner__annotation--a { left: 45px; top: 144px; }
.scanner__annotation--a::before { left: calc(100% + 8px); }
.scanner__annotation--b { right: 42px; top: 235px; text-align: right; }
.scanner__annotation--b::before { right: calc(100% + 8px); }
.scanner__annotation--c { left: 53px; top: 315px; }
.scanner__annotation--c::before { left: calc(100% + 8px); }
.drop__copy { position: absolute; z-index: 5; left: 30px; right: 30px; bottom: 24px; min-height: 126px; border-top: 1px solid var(--line-hot); padding: 17px 0 0; display: grid; grid-template-columns: 1fr auto; column-gap: 22px; align-items: end; background: linear-gradient(180deg, transparent, rgba(4,11,13,.88) 18%); }
.drop__eyebrow { grid-column: 1 / -1; color: var(--lime); margin-bottom: 5px; }
.drop h1 { font-family: var(--sans); font-size: clamp(1.45rem,2.4vw,2rem); line-height: 1.05; font-weight: 750; letter-spacing: -.025em; color: var(--white); }
.drop p { max-width: 54ch; margin-top: 8px; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.drop__actions { grid-column: 2; grid-row: 2 / span 2; align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.drop__hint { max-width: 220px; color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.35; letter-spacing: .04em; text-align: right; text-transform: uppercase; }
.btn { border: 1px solid var(--cyan); border-radius: 0; background: var(--cyan); color: var(--bg-deep); padding: 13px 17px; font-family: var(--mono); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 6px 6px 0 var(--pink); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--pink); background: #a5fff2; }
.btn--primary { min-width: 156px; padding: 15px 20px; font-size: 13px; box-shadow: 7px 7px 0 var(--pink), 0 0 0 1px rgba(111,255,233,.1); }
.btn--ghost { background: transparent; color: var(--cyan); box-shadow: none; border-color: var(--line-hot); }
.btn--ghost:hover { background: var(--cyan-soft); box-shadow: none; }
.btn--small { padding: 9px 11px; font-size: 9px; }
.btn[disabled] { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; }
.formats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.formats span { border: 1px solid rgba(111,255,233,.12); padding: 3px 5px; text-transform: uppercase; }
.limits { grid-column: 1 / -1; margin-top: 7px !important; font-family: var(--mono); font-size: 11px !important; color: var(--muted-2) !important; }
.scanner-foot { display: grid; grid-template-columns: auto repeat(5,1fr) auto; align-items: center; gap: 5px; margin-top: 9px; color: var(--muted-2); font: 8px/1 var(--mono); }
.scanner-foot i { height: 1px; background: var(--line); }

/* ---------- privacy strip / messages ---------- */
.intake { padding: 18px 0 0; }
.errors { margin: 0 0 12px; }
.note-block { border: 1px solid var(--line-hot); border-left: 3px solid var(--cyan); background: var(--panel); padding: 13px 15px; color: var(--ink-soft); font-family: var(--mono); font-size: 11px; }
.note-block.is-flag { border-color: rgba(255,75,145,.35); border-left-color: var(--pink); background: var(--pink-soft); color: #ffd9e8; }
.note-block b { color: var(--white); }
.errors .note-block + .note-block { margin-top: 8px; }
.promise { min-height: 92px; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 18px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(216,255,102,.045), transparent 55%); padding: 15px 18px; }
.promise__mark { width: 48px; height: 48px; position: relative; border: 1px solid rgba(216,255,102,.36); display: grid; place-items: center; }
.promise__mark::before, .promise__mark::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(216,255,102,.18); animation: privacy-ring 4.4s ease-out infinite; }
.promise__mark::before { inset: 8px; }
.promise__mark::after { inset: 3px; animation-delay: -2.2s; }
.promise__mark span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px rgba(216,255,102,.55); }
.promise__eyebrow { display: block; color: var(--lime); margin-bottom: 4px; }
.promise b { display: block; color: var(--white); font-size: 1.05rem; margin-bottom: 3px; }
.promise__copy > span:last-child { display: block; max-width: 75ch; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.promise__readout { display: grid; grid-template-columns: auto auto; gap: 4px 14px; padding-left: 24px; border-left: 1px solid var(--line); font: 8px/1.4 var(--mono); letter-spacing: .1em; }
.promise__readout span { color: var(--muted-2); }
.promise__readout b { color: var(--lime); font: 500 12px/1 var(--mono); text-align: right; }

/* ---------- workspace ---------- */
/* ---------- results handoff ---------- */
.results-bridge {
  grid-column: 1 / -1;
  scroll-margin-top: 22px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(111,255,233,.34);
  border-left: 4px solid var(--cyan);
  background: linear-gradient(90deg, rgba(111,255,233,.10), rgba(111,255,233,.025));
}
.results-bridge__step { color: var(--cyan); font: 700 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.results-bridge > div { display: grid; gap: 3px; }
.results-bridge strong { color: var(--white); font-size: 1.12rem; }
.results-bridge > div span { color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }
.results-bridge__arrow { color: var(--cyan); font-size: 2rem; line-height: 1; animation: readout-arrow 1.8s ease-in-out infinite; }
@keyframes readout-arrow { 0%,100% { transform: translateY(-2px); opacity: .65; } 50% { transform: translateY(4px); opacity: 1; } }

.work { display: grid; grid-template-columns: 276px minmax(0,1fr); gap: 20px; padding: 42px 0 90px; }
.rail, #report { min-width: 0; }
.rail { align-self: start; position: sticky; top: 18px; border: 1px solid var(--line); background: rgba(8,19,23,.7); }
.rail__head { min-height: 74px; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.rail__head > div { min-width: 0; }
.rail__eyebrow { color: var(--pink); display: block; margin-bottom: 4px; }
.rail__head strong { font-size: 1.05rem; color: var(--white); }
.queue { list-style: none; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.queue button { width: 100%; min-height: 62px; text-align: left; border: 1px solid transparent; border-left: 2px solid var(--line-hot); background: rgba(255,255,255,.012); padding: 11px 12px; color: var(--ink); transition: .16s ease; }
.queue button:hover { background: var(--cyan-soft); border-color: rgba(111,255,233,.18); }
.queue button[aria-current="true"] { border-color: rgba(111,255,233,.24); border-left-color: var(--cyan); background: rgba(111,255,233,.075); box-shadow: inset 12px 0 28px rgba(111,255,233,.035); }
.queue .qname { display: block; font-size: .95rem; font-weight: 700; line-height: 1.25; word-break: break-all; }
.queue .qmeta { display: block; margin-top: 6px; color: var(--muted); font: 11px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.queue .qmeta.is-flag { color: var(--pink); }
.queue .qmeta.is-clear { color: var(--ok); }
.rail__legend { display: grid; gap: 7px; border-top: 1px solid var(--line); padding: 14px 16px; color: var(--muted); font: 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.rail__legend span { display: flex; align-items: center; gap: 7px; }
.rail__legend i { width: 7px; height: 7px; display: inline-block; background: var(--cyan); }
.rail__legend i[data-sev="high"] { background: var(--pink); }
.rail__legend i[data-sev="medium"] { background: var(--lime); }

.panel { position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(13,28,33,.96), rgba(6,14,17,.98)); }
.panel::before { content: ""; position: absolute; left: 0; top: 0; width: 54px; height: 1px; background: var(--cyan); box-shadow: 0 0 12px rgba(111,255,233,.5); }
.panel + .panel { margin-top: 14px; }
.panel__in { padding: 26px 28px 30px; }
.verdict__file { margin: 0 0 10px; color: var(--cyan); font: 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.verdict h2 { max-width: 17ch; margin: 0 0 12px; color: var(--white); font-family: var(--sans); font-size: clamp(2rem,4.3vw,4rem); font-weight: 780; line-height: .98; letter-spacing: -.055em; }
.verdict > p { max-width: 68ch; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

.tally { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin: 26px 0 0; background: var(--line); border: 1px solid var(--line); }
.tally div { min-height: 94px; padding: 14px 15px; background: var(--panel); }
.tally .n { display: block; color: var(--cyan); font: 500 2.4rem/.9 var(--mono); letter-spacing: -.08em; }
.tally .k { display: block; margin-top: 11px; color: var(--ink-soft); font: 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.tally .high { background: linear-gradient(145deg, rgba(255,75,145,.15), var(--panel)); }
.tally .high .n { color: var(--pink); }
.tally .med { background: linear-gradient(145deg, rgba(216,255,102,.13), var(--panel)); }
.tally .med .n { color: var(--lime); }
.tally .low .n { color: var(--cyan); }

/* byte map — signature X-ray element */
.bytemap { margin: 29px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.bytemap__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--muted); font: 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.bytemap__track { position: relative; height: 46px; overflow: hidden; border: 1px solid var(--line-hot); background: repeating-linear-gradient(90deg, rgba(111,255,233,.035) 0 1px, transparent 1px 5%); }
.bytemap__track::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(111,255,233,.08); }
.bytemap__tick { position: absolute; top: 0; bottom: 0; min-width: 3px; border: 0; padding: 0; appearance: none; background: var(--cyan); opacity: .65; cursor: pointer; box-shadow: 0 0 10px rgba(111,255,233,.35); }
.bytemap__tick[data-sev="high"] { background: var(--pink); box-shadow: 0 0 13px rgba(255,75,145,.45); opacity: .88; }
.bytemap__tick[data-sev="medium"] { background: var(--lime); box-shadow: 0 0 13px rgba(216,255,102,.35); opacity: .82; }
.bytemap__tick.is-lit { opacity: 1; z-index: 2; box-shadow: 0 0 0 1px var(--white), 0 0 18px currentColor; }
.bytemap__scale { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font: 11px/1.2 var(--mono); }
.bytemap__note { max-width: 75ch; margin-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* findings */
.group { margin: 30px 0 0; }
.group__head { display: flex; align-items: center; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.group__head h3 { color: var(--white); font-size: 1.05rem; }
.group__head .count { margin-left: auto; color: var(--muted-2); font: 8px/1 var(--mono); letter-spacing: .06em; }
.sev-dot { width: 9px; height: 9px; flex: 0 0 auto; background: var(--cyan); box-shadow: 0 0 12px rgba(111,255,233,.35); }
.sev-dot[data-sev="high"] { background: var(--pink); box-shadow: 0 0 12px rgba(255,75,145,.4); }
.sev-dot[data-sev="medium"] { background: var(--lime); box-shadow: 0 0 12px rgba(216,255,102,.35); }
/* The plain language line introduces the data, so it outranks the data. */
.group__why {
  max-width: 68ch; margin: 15px 0 4px; padding: 15px 18px 15px 19px;
  border-left: 3px solid var(--cyan); background: rgba(111,255,233,.05);
  color: var(--muted); font-size: 1.08rem; line-height: 1.5;
  animation: whyIn .5s cubic-bezier(.2,.75,.3,1) both;
}
.group__why[data-sev="high"] { border-left-color: var(--pink); background: rgba(255,75,145,.075); }
.group__why[data-sev="medium"] { border-left-color: var(--lime); background: rgba(216,255,102,.055); }
.group__lead { color: var(--white); font-weight: 700; }
.group__why[data-sev="high"] .group__lead { color: #ffd7e6; }
.group__tail { color: var(--muted); }
@keyframes whyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.finds { list-style: none; margin-top: 9px; border-top: 1px solid var(--line); }
.find { display: grid; grid-template-columns: 190px minmax(0,1fr) auto; gap: 14px; align-items: baseline; padding: 12px 10px; border-bottom: 1px solid var(--line); transition: .13s ease; }
.find:hover, .find.is-lit { background: rgba(111,255,233,.045); }
.find[data-sev="high"] { box-shadow: inset 2px 0 0 rgba(255,75,145,.45); }
.find[data-sev="high"]:hover, .find[data-sev="high"].is-lit { background: var(--pink-soft); box-shadow: inset 2px 0 0 var(--pink); }
.find__k { color: var(--muted); font: 12px/1.4 var(--mono); word-break: break-word; }
.find__v { color: var(--ink); font: 13px/1.5 var(--mono); word-break: break-word; }
.find__at { border: 0; background: none; color: var(--cyan); padding: 3px 0; white-space: nowrap; font: 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.find__at:hover { color: var(--white); text-decoration: underline; }
.find__note { grid-column: 1 / -1; margin: 4px 0 0; border-left: 2px solid var(--lime); background: var(--lime-soft); padding: 10px 12px; color: #e8ffad; font-size: .92rem; line-height: 1.5; }

/* location panel */
.loc { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 20px; align-items: start; }
.map { overflow: hidden; border: 1px solid var(--line-hot); background: #071216; }
.map svg { display: block; width: 100%; height: auto; }
.map__land { fill: #10272d; stroke: #477078; stroke-width: .7; }
.map__grid { stroke: #1d3a40; stroke-width: .5; }
.map__ring { fill: none; stroke: var(--pink); stroke-width: 1.5; }
.map__pin { fill: var(--pink); }
.map__cross { stroke: var(--pink); stroke-width: 1; }
.coords { font-family: var(--mono); }
.coords dt { margin-top: 12px; color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.coords dt:first-child { margin-top: 0; }
.coords dd { color: var(--ink); font-size: .98rem; word-break: break-all; }
.loc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.loc__warn { margin-top: 12px; border-left: 2px solid var(--lime); background: var(--lime-soft); padding: 11px 13px; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }

/* clean / strip panel */
.clean__eyebrow {
  margin: 0 0 10px; color: var(--cyan); font: 10px/1 var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
}
.clean h3 {
  margin-bottom: 12px; color: var(--white);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em;
  max-width: 20ch;
}
.clean > p { max-width: 75ch; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.clean__lead { max-width: 62ch; margin-bottom: 10px; }
.clean__lead strong {
  color: var(--white); font-size: 1.14rem; font-weight: 700; line-height: 1.45;
}
.does { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1px; margin: 18px 0 0; background: var(--line); border: 1px solid var(--line); }
.does > div { padding: 15px; background: var(--panel); }
.does > div:nth-child(even) { background: linear-gradient(145deg, var(--lime-soft), var(--panel)); }
.does h4 { margin-bottom: 9px; color: var(--cyan); font: 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.does ul { list-style: none; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.does li { position: relative; padding-left: 14px; margin-bottom: 4px; color: var(--ink-soft); }
.does li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--pink); font-family: var(--mono); }
.passes { list-style: none; display: grid; gap: 6px; margin: 18px 0 0; }
.passes li { border: 1px solid var(--line); background: rgba(255,255,255,.014); padding: 11px 13px; }
.passes label { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.passes input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--cyan); }
.passes .plabel { display: block; color: var(--ink); font-size: .98rem; font-weight: 700; }
.passes .pdetail { display: block; margin-top: 3px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.status { color: var(--muted); font: 12px/1.4 var(--mono); }
.receipt { margin-top: 18px; border: 1px solid rgba(125,245,173,.25); border-left: 3px solid var(--ok); background: rgba(125,245,173,.075); padding: 14px 16px; }
.receipt.is-partial { border-color: rgba(216,255,102,.25); border-left-color: var(--lime); background: var(--lime-soft); }
.receipt h4 { margin-bottom: 6px; color: var(--white); font-size: 1rem; }
.receipt p { color: var(--ink-soft); font-size: .94rem; line-height: 1.55; }
.receipt ul { list-style: none; margin-top: 9px; }
.receipt li { position: relative; padding: 3px 0 3px 14px; color: var(--muted); font: 10px/1.35 var(--mono); }
.receipt li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--pink); }
.empty { text-align: center; padding: 38px 18px; color: var(--muted); font: 11px/1.5 var(--mono); }

/* ---------- explainers ---------- */
.about { padding: 48px 0 88px; }
.about__head { display: grid; grid-template-columns: 170px minmax(0,1fr) minmax(260px,.55fr); gap: 28px; align-items: end; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.about__eyebrow { color: var(--pink); align-self: start; margin-top: 10px; }
.about__head h2 { max-width: 13ch; color: var(--white); font-size: clamp(2.3rem,4vw,4.7rem); line-height: .94; letter-spacing: -.055em; }
.about__head > p:last-child { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.about__grid { display: grid; grid-template-columns: 1.2fr .95fr .85fr; border-left: 1px solid var(--line); }
.about-card { min-width: 0; position: relative; padding: 25px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.about-card::before { content: ""; position: absolute; left: 0; top: 0; width: 58px; height: 2px; background: var(--cyan); }
.about-card--yellow::before { background: var(--lime); }
.about-card--coral::before { background: var(--pink); }
.about-card__index { position: absolute; right: 15px; top: 12px; color: rgba(111,255,233,.18); font: 500 2.8rem/1 var(--mono); letter-spacing: -.12em; }
.about-card--yellow .about-card__index { color: rgba(216,255,102,.16); }
.about-card--coral .about-card__index { color: rgba(255,75,145,.16); }
.about-card h3 { margin-bottom: 21px; color: var(--cyan); font: 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.about-card--yellow h3 { color: var(--lime); }
.about-card--coral h3 { color: var(--pink); }
.about-card h2 { max-width: 14ch; margin-bottom: 13px; color: var(--white); font-size: 1.42rem; line-height: 1.06; letter-spacing: -.025em; }
.about-card p, .about-card li { color: var(--ink-soft); font-size: .96rem; line-height: 1.68; }
.about-card ul { list-style: none; }
.about-card li { position: relative; padding-left: 16px; margin-bottom: 8px; }
.about-card li::before { content: "—"; position: absolute; left: 0; color: var(--cyan); font-family: var(--mono); }
.about-card--yellow li::before { color: var(--lime); }
.about-card--coral li::before { color: var(--pink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 28px 0; }
.foot .shell { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot__brand { margin-bottom: 15px; color: var(--cyan); font: 12px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.foot__brand span { color: var(--muted-2); }
.foot__links { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.foot__links a { color: var(--ink-soft); font: 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.foot__links a:hover { color: var(--cyan); }
.foot__links .support-pill { color: var(--lime); }
.foot__links .support-pill:hover { color: #0b1305; }
.foot__credit { max-width: 55ch; margin-top: 12px; color: var(--muted); font: 11px/1.5 var(--mono); }
.foot__credit a { color: var(--muted); }
.foot__credit a:hover { color: var(--cyan); }

.foot__left { flex: 1 1 380px; min-width: 0; }
.foot__right { flex: 0 1 330px; min-width: 0; }
.foot__credit--legal { margin-top: 14px; }

.foot__contact {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; text-decoration: none;
  border: 1px solid var(--line-hot); background: var(--panel);
  transition: border-color .15s, background .15s;
}
.foot__contact:hover { border-color: var(--cyan); background: var(--panel-2); }
.foot__contact-mark {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 5px rgba(111,255,233,.08), 0 0 16px rgba(111,255,233,.5);
}
.foot__contact-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.foot__contact-eyebrow {
  color: var(--muted); font: 10px/1.3 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.foot__contact strong {
  color: var(--white); font: 15px/1.2 var(--mono); letter-spacing: -.01em; word-break: break-all;
}
.foot__contact:hover strong { color: var(--cyan); }

@media (max-width: 700px) {
  .foot .shell { flex-direction: column; align-items: stretch; }
  .foot__right { flex: 1 1 auto; }
}

/* ---------- motion ---------- */
@keyframes scanner-beam { 0%,100% { top: 13%; opacity: .8; } 50% { top: 69%; opacity: 1; } }
@keyframes system-pulse { 0%,100% { opacity: .72; box-shadow: 0 0 0 0 rgba(216,255,102,.05), 0 0 10px rgba(216,255,102,.35); } 50% { opacity: 1; box-shadow: 0 0 0 6px rgba(216,255,102,.06), 0 0 22px rgba(216,255,102,.58); } }
@keyframes privacy-ring { 0% { transform: scale(.55); opacity: 0; } 35% { opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero { grid-template-columns: minmax(0,.78fr) minmax(470px,1.22fr); }
  .hero__copy { padding-right: 38px; }
  .wordmark__sniff { font-size: clamp(4.6rem,9vw,6.8rem); }
  .scanner-wrap { padding-left: 28px; }
  .scanner__annotation { display: none; }
  .about__head { grid-template-columns: 150px 1fr; }
  .about__head > p:last-child { grid-column: 2; }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 34px, var(--shell)); }
  .mast__top { height: auto; min-height: 58px; padding-block: 12px; align-items: flex-start; }
  .mast__status { justify-content: flex-end; flex-wrap: wrap; text-align: right; }
  .hero { display: block; min-height: 0; }
  .hero__copy { padding: 64px 0 48px; }
  .hero__lede { max-width: 650px; }
  .wordmark__sniff { font-size: clamp(4.6rem,13vw,6.6rem); }
  .wordmark__ghost { font-size: clamp(2.1rem,7vw,3.7rem); }
  .scanner-wrap { border-left: 0; border-top: 1px solid var(--line); padding: 42px 0 42px; }
  .scanner-chrome--tl { left: 2px; }
  .scanner-chrome--tr { right: 2px; }
  .scanner { min-height: 590px; }
  .work { grid-template-columns: 1fr; }
  .rail { position: static; }
  .queue { flex-direction: row; overflow-x: auto; }
  .queue li { flex: 0 0 230px; }
  .rail__legend { grid-template-columns: repeat(3,auto); justify-content: start; }
  .loc { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; border-left: 0; }
  .about-card { border-left: 1px solid var(--line); }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 28px, var(--shell)); }
  .mast__top { gap: 12px; font-size: 8px; }
  .mast__divider, .mast__status > span:last-child { display: none; }
  .hero__copy { padding: 48px 0 36px; }
  .wordmark { margin-top: 22px; }
  .wordmark__sniff { font-size: clamp(4.2rem,20vw,5.8rem); }
  .wordmark__ghost { font-size: clamp(2rem,10vw,3.3rem); }
  .hero__readout { grid-template-columns: 1fr auto; }
  .scanner { min-height: 610px; }
  .scanner__frame--inner { inset: 60px 34px 200px; }
  .specimen { width: 210px; height: 268px; top: 36%; }
  .drop__copy { left: 18px; right: 18px; bottom: 18px; display: block; padding-top: 15px; }
  .drop h1 { font-size: 1.35rem; }
  .drop__actions { margin-top: 14px; align-items: flex-start; }
  .drop__hint { max-width: none; text-align: left; }
  .formats { margin-top: 10px; max-height: 42px; overflow: hidden; }
  .promise { grid-template-columns: 42px 1fr; padding: 14px; }
  .promise__mark { width: 38px; height: 38px; }
  .promise__readout { display: none; }
  .work { padding-top: 32px; }
  .panel__in { padding: 21px 17px 23px; }
  .tally { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .find { grid-template-columns: 1fr; gap: 4px; }
  .find__at { justify-self: start; margin-top: 3px; }
  .about { padding-bottom: 64px; }
  .about__head { grid-template-columns: 1fr; gap: 11px; }
  .about__head > p:last-child { grid-column: 1; }
  .about__eyebrow { margin-top: 0; }
  .about__head h2 { font-size: clamp(2.4rem,13vw,4rem); }
}

@media (max-width: 420px) {
  .scanner { min-height: 630px; }
  .specimen { width: 185px; height: 240px; }
  .specimen__tag--gps { right: 17px; }
  .specimen__tag--comments { left: 28px; }
  .tally { grid-template-columns: 1fr 1fr; }
}

@media (pointer: coarse) { .find__at { min-height: 30px; padding: 7px 0; } }
@media (max-width: 760px) {
  .start-link { grid-template-columns: 40px minmax(0,1fr) auto; padding: 13px 14px; }
  .results-bridge { grid-template-columns: 1fr auto; }
  .results-bridge__step { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scanner__beam { top: 48%; }
}
