/* ============================================================
   Huginn — Norse Watch
   Single landing-page stylesheet. No framework. No build step.
   ============================================================ */

:root {
  --bg:        #0E1113;
  --bg-elev:   #15191C;
  --fog:       #1B2127;
  --bone:      #E8E4DC;
  --slate:     #8B95A1;
  --signal:    #FF6A1F;
  --detection: #FFB800;

  --hairline:  rgba(232, 228, 220, 0.08);
  --hairline-strong: rgba(232, 228, 220, 0.16);

  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--signal);
  color: var(--bg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   Shared elements
   ============================================================ */

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}

.monogram {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--mono);
}

.monogram .raven {
  width: 22px;
  height: auto;
  color: var(--bone);
  flex: 0 0 auto;
}

.monogram__word {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  font-weight: 500;
}

.monogram__est {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--slate);
  border-left: 1px solid var(--hairline);
  padding-left: 0.625rem;
  margin-left: 0.25rem;
  font-feature-settings: "smcp";
  font-variant: small-caps;
}

.monogram--small .raven { width: 18px; }

/* ============================================================
   1. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(0.35) brightness(0.45) contrast(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,17,19,0.4) 0%, rgba(14,17,19,0.85) 100%),
    radial-gradient(120% 80% at 70% 30%, transparent 0%, rgba(14,17,19,0.55) 100%);
}

/* hero chrome (top row: monogram + nav) */
.hero__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  text-transform: lowercase;
}

.primary-nav a {
  color: var(--bone);
  position: relative;
  padding: 0.25rem 0;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--signal);
  outline: none;
}
.primary-nav span { color: var(--hairline-strong); }

.nav-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--bone);
  padding: 0.5rem 0;
}

/* hero copy block — deliberately asymmetric, left of center */
.hero__copy {
  align-self: center;
  max-width: 62rem;
  padding-left: clamp(0rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

.hero__headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--bone);
}
.hero__headline em {
  font-style: italic;
  font-weight: 400;
}

.hero__lede {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--slate);
  letter-spacing: 0.01em;
  max-width: 38rem;
}

/* hero footer row: telemetry left, CTA right, scroll cue centered */
.hero__telemetry,
.hero__cta {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__telemetry {
  grid-row: 3;
  align-self: end;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: baseline;
}

.hero__telemetry .dot { color: var(--hairline-strong); }
[data-tele] { transition: opacity 80ms linear; }
[data-tele].flicker { opacity: 0.35; }

.hero__cta {
  grid-row: 3;
  justify-self: end;
  align-self: end;
  color: var(--signal);
  border-bottom: 1px solid var(--signal);
  padding-bottom: 0.375rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.hero__cta:hover,
.hero__cta:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--bone);
  outline: none;
}

/* center the scroll cue absolutely so it doesn't fight the grid */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3vw, 2rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  z-index: 2;
  pointer-events: none;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent 0%, var(--slate) 100%);
}
.hero__scroll-word {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ============================================================
   2. PROBLEM
   ============================================================ */

.problem {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.problem__grid {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.problem__quote {
  margin: 0;
  padding: 0;
}
.problem__quote p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--bone);
  font-variation-settings: "opsz" 96;
}
.problem__quote em { font-style: italic; }

.problem__body p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--bone);
}
.problem__body p:last-child {
  color: var(--slate);
  font-style: italic;
}

/* ============================================================
   3. HOW IT SEES
   ============================================================ */

.sees {
  min-height: 100vh;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.sees .section-eyebrow {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.sees__grid {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.sees__theater {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--bg-elev);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.sees__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.7) contrast(1.05);
  z-index: 0;
}
.sees__theater::after {
  /* subtle vignette so labels remain legible */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,17,19,0.15) 0%, rgba(14,17,19,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* bounding boxes — driven by a multi-beat narrative (see landing.js) */
.sees__boxes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.sees__box {
  fill: none;
  stroke: var(--detection);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition:
    stroke-dashoffset 600ms ease-out,
    stroke 800ms ease,
    stroke-width 600ms ease;
}
[data-theater].is-yolo-hit       .sees__box--human  { stroke-dashoffset: 0; }
[data-theater].is-claude-confirm .sees__box--human  { stroke: var(--signal); stroke-width: 1.6; }
[data-theater].is-second-find    .sees__box--orange { stroke-dashoffset: 0; }

/* callout labels — color tracks the box; visibility tied to its beat */
.sees__label {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 280ms ease-out,
    transform 280ms ease-out,
    color 800ms ease;
}
.sees__label-tick {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: 0.9;
}
.sees__label-text {
  background: rgba(14, 17, 19, 0.85);
  padding: 0.25rem 0.5rem;
  border-left: 2px solid currentColor;
  color: var(--bone);
  letter-spacing: 0.12em;
}
.sees__label-conf {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: currentColor;
}
.sees__label-src {
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.sees__label--human {
  /* sits above the human-form box (left:29%, top:40%) */
  left: 29%;
  bottom: 60%;
  color: var(--detection);
  margin-bottom: 0.5rem;
}
.sees__label--orange {
  /* sits above the orange box (left:62%, top:63.3%) */
  left: 62%;
  bottom: 36.7%;
  color: var(--detection);
  margin-bottom: 0.5rem;
}
[data-theater].is-yolo-hit       .sees__label--human  { opacity: 1; transform: none; }
[data-theater].is-claude-confirm .sees__label--human  { color: var(--signal); }
[data-theater].is-second-find    .sees__label--orange { opacity: 1; transform: none; }

/* coords readout flares amber when OCR locks position */
.sees__coords { transition: border-left-color 400ms ease, color 400ms ease, box-shadow 400ms ease; }
[data-theater].is-coords-lock .sees__coords {
  animation: coords-flash 700ms ease-out;
  border-left-color: var(--signal);
}
@keyframes coords-flash {
  0%   { color: var(--bone);    box-shadow: inset 3px 0 0 var(--detection); }
  35%  { color: var(--detection); box-shadow: inset 6px 0 0 var(--detection); }
  100% { color: var(--bone);    box-shadow: inset 0 0 0 transparent; }
}

/* inset map: ambient pulse calms; pin "drop" fires once at lock */
.topo__pulse-ring {
  animation-play-state: paused;
  opacity: 0;
}
[data-theater].is-pin-drop .topo__pulse-ring {
  animation: pin-drop 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) 1 forwards;
  opacity: 1;
}
[data-theater].is-pin-drop .topo__pulse {
  animation: pin-set 600ms ease-out 1 forwards;
}
@keyframes pin-drop {
  0%   { transform: scale(1);  opacity: 0.95; }
  100% { transform: scale(7);  opacity: 0; }
}
@keyframes pin-set {
  0%   { transform: scale(0.4); transform-origin: 98px 58px; opacity: 0; }
  60%  { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}
[data-theater].is-pin-drop .sees__inset {
  border-color: var(--signal);
}

.sees__hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  width: clamp(220px, 38%, 360px);
  background: rgba(14, 17, 19, 0.78);
  border: 1px solid var(--hairline-strong);
  font-family: var(--mono);
  color: var(--bone);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.625rem;
}
.sees__hud-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 0.4rem;
  margin-bottom: 0.45rem;
  color: var(--slate);
  text-transform: uppercase;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
}
.sees__hud-status { display: inline-flex; align-items: center; gap: 0.45rem; }
.sees__hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--detection);
  box-shadow: 0 0 6px var(--detection);
  animation: hud-dot 1.6s ease-in-out infinite;
}
@keyframes hud-dot {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

.sees__log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-height: 6.4em;
}
.sees__log li {
  display: flex;
  gap: 0.55em;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  animation: log-in 280ms ease-out forwards;
}
.sees__log li.is-fading {
  animation: log-out 320ms ease-in forwards;
}
@keyframes log-in  { to { opacity: 1; transform: none; } }
@keyframes log-out { to { opacity: 0; transform: translateY(-4px); } }

.sees__log .ts   { color: var(--slate); flex: 0 0 auto; }
.sees__log .src  { flex: 0 0 auto; font-weight: 500; }
.sees__log .src--yolo   { color: var(--detection); }
.sees__log .src--claude { color: var(--signal); }
.sees__log .src--ocr    { color: var(--bone); opacity: 0.85; }
.sees__log .body { color: var(--bone); opacity: 0.9; overflow: hidden; text-overflow: ellipsis; }
.sees__log .log-alert .body { color: var(--signal); font-weight: 500; letter-spacing: 0.05em; }
.sees__log li:last-child .body::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.9em;
  margin-left: 0.18em;
  background: var(--bone);
  vertical-align: -0.1em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* inset map */
.sees__inset {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: clamp(120px, 18%, 180px);
  z-index: 3;
  background: rgba(14,17,19,0.75);
  border: 1px solid var(--hairline-strong);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  transition: border-color 600ms ease;
}
.sees__inset-label { transition: color 400ms ease; }
[data-theater].is-pin-drop .sees__inset-label { color: var(--signal); letter-spacing: 0.12em; }
.sees__inset svg { width: 100%; height: auto; }
.topo {
  fill: none;
  stroke: var(--slate);
  stroke-width: 0.5;
  opacity: 0.6;
}
.topo__pulse {
  fill: var(--signal);
  transform-box: fill-box;
  transform-origin: center;
}
.topo__pulse-ring {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
}
.sees__inset-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: var(--slate);
  text-align: center;
}

.sees__coords {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--bone);
  letter-spacing: 0.08em;
  background: rgba(14,17,19,0.75);
  padding: 0.375rem 0.625rem;
  border-left: 2px solid var(--detection);
}

/* right-column copy stanzas */
.sees__copy {
  display: flex;
  flex-direction: column;
}
.stanza {
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
}
.stanza:first-child { border-top: 0; padding-top: 0; }
.stanza:last-child { padding-bottom: 0; }

.stanza__lead {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
  margin: 0 0 0.625rem;
  color: var(--bone);
  font-variation-settings: "opsz" 60;
}
.stanza__lead em { font-style: italic; }
.stanza__body {
  margin: 0;
  color: var(--slate);
  max-width: 32rem;
}

/* ============================================================
   4. WHO IT'S FOR
   ============================================================ */

.who {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  border-top: 1px solid var(--hairline);
}
.who .section-eyebrow,
.who__grid {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.who__card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--hairline);
}

.who__icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--bone);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.who__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
  margin: 0;
  color: var(--bone);
  font-variation-settings: "opsz" 60;
}
.who__title em { font-style: italic; }

.who__body {
  margin: 0;
  color: var(--slate);
  max-width: 28rem;
  font-size: 1rem;
}

/* ============================================================
   5. ARCHITECTURE
   ============================================================ */

.arch {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  border-top: 1px solid var(--hairline);
  background: var(--bg-elev);
}
.arch .section-eyebrow,
.arch__diagram,
.arch__note {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.arch__diagram {
  border: 1px solid var(--hairline-strong);
  padding: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1rem;
  line-height: 1.4;
}
.arch__node { white-space: nowrap; }
.arch__node--bracket { color: var(--signal); }
.arch__sub {
  color: var(--slate);
  text-transform: none;
  font-style: italic;
  letter-spacing: 0.04em;
}
.arch__arrow { color: var(--slate); }

.arch__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--slate);
  max-width: 56ch;
  font-size: 1.0625rem;
}

/* ============================================================
   6. CLOSING / CTA
   ============================================================ */

.closing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  border-top: 1px solid var(--hairline);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.closing__headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--bone);
  font-variation-settings: "opsz" 144;
}
.closing__headline em { font-style: italic; }

.closing__lede {
  font-family: var(--mono);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--slate);
  margin: 0;
  max-width: 32rem;
}

.closing__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--signal);
  border-radius: 2px;
  font-weight: 500;
  transition: background 200ms ease, transform 200ms ease;
}
.closing__cta:hover,
.closing__cta:focus-visible {
  background: var(--bone);
  outline: none;
  transform: translateY(-1px);
}

.access {
  width: 100%;
  max-width: 44rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.75rem;
  margin-top: 1.5rem;
  text-align: left;
}

.access__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 0.25rem;
}
.access__field--wide { grid-column: 1 / -1; }

/* Honeypot — hidden from humans (and accessibility tech), visible to bots
   that parse the DOM and fill every input. Off-screen + zero size + no
   pointer/tab interaction keeps it out of layout and the a11y tree. */
.access__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.access__turnstile {
  border-bottom: 0;
  padding-bottom: 0;
  min-height: 65px;
}
.access__turnstile .cf-turnstile { display: block; }

.access__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.access__opt {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--hairline-strong);
  font-style: italic;
}

.access__input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 1rem;
  padding: 0.5rem 0;
  caret-color: var(--signal);
}
.access__input::placeholder { color: var(--slate); opacity: 0.6; }
.access__input:focus { outline: 0; }
.access__input:focus + .access__label,
.access__field:focus-within .access__label { color: var(--bone); }

.access__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%),
                    linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 14px) 1.05em, calc(100% - 9px) 1.05em;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.75rem;
}
.access__select option { background: var(--bg-elev); color: var(--bone); }

.access__textarea {
  resize: vertical;
  min-height: 4rem;
  line-height: 1.5;
}

.access__row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 0.5rem;
}

.access__submit {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
  padding: 0.5rem 0;
  border-radius: 2px;
}
.access__submit:hover,
.access__submit:focus-visible {
  color: var(--bone);
  outline: none;
}
.access__submit[disabled] {
  color: var(--slate);
  cursor: progress;
}

.access__status {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--slate);
  min-height: 1.1em;
  text-align: right;
}
.access__status.is-ok    { color: var(--detection); }
.access__status.is-error { color: var(--signal); }

@media (max-width: 38rem) {
  .access { grid-template-columns: 1fr; }
}

/* ============================================================
   7. FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  font-size: 0.875rem;
  color: var(--slate);
}
.footer__col--brand { display: flex; flex-direction: column; gap: 0.875rem; }
.footer__tag {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.footer__col--links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__col--links a { color: var(--bone); }
.footer__col--links a:hover { color: var(--signal); }
.footer__col--links span { color: var(--hairline-strong); }

.footer__col--telemetry {
  justify-self: end;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}
.footer__col--telemetry .dot { color: var(--hairline-strong); }

/* ============================================================
   Legal pages (privacy, etc.) — quiet long-form
   ============================================================ */

.legal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.legal-back {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-transform: lowercase;
}
.legal-back:hover { color: var(--signal); }

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}
.legal .section-eyebrow { margin-bottom: 1.25rem; }

.legal__headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  color: var(--bone);
  font-variation-settings: "opsz" 96;
}
.legal__headline em { font-style: italic; }

.legal__section { margin: 0 0 2rem; max-width: 38rem; }
.legal__section h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.875rem;
}
.legal__section p {
  margin: 0 0 0.875rem;
  color: var(--bone);
  line-height: 1.7;
}
.legal__section p:last-child { margin-bottom: 0; }
.legal__section a {
  color: var(--signal);
  border-bottom: 1px solid var(--signal);
  padding-bottom: 1px;
}
.legal__section a:hover { color: var(--bone); border-bottom-color: var(--bone); }

.legal__footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--slate);
  font-style: italic;
}
.legal__footer .mono { font-style: normal; }

/* ============================================================
   Case file page (/watch) — long-form after-action report
   ============================================================ */

.case {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(5rem, 8vw, 8rem);
}

.case__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
}
.case__eyebrow-tag {
  color: var(--bone);
  border-left: 2px solid var(--signal);
  padding: 0.15rem 0.55rem;
}
.case__eyebrow-status {
  color: var(--detection);
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.06em;
}
.case__eyebrow span[aria-hidden] { color: var(--hairline-strong); }

.case__headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-variation-settings: "opsz" 144;
}
.case__headline em { font-style: italic; }

.case__lede {
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--bone);
  max-width: 38rem;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}

.case__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 2.5rem;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--hairline);
}
.case__meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.case__meta dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}
.case__meta dd {
  margin: 0;
  color: var(--bone);
  font-size: 0.9375rem;
}

/* hero composite ------------------------------------------------- */
.case__hero {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elev);
}
.case__hero img {
  display: block;
  width: 100%;
  height: auto;
}
.case__hero-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  padding: 1rem clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.case__hero-frame {
  color: var(--detection);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  white-space: nowrap;
}
.case__hero-note {
  flex: 1 1 30rem;
  color: var(--bone);
  line-height: 1.6;
  font-style: italic;
  font-size: 0.875rem;
}

/* sections ------------------------------------------------------- */
.case__section { margin: 0 0 clamp(3rem, 5vw, 4.5rem); }
.case__section--note { margin-bottom: clamp(2rem, 4vw, 3rem); }

.case__h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.case__sub {
  margin: -0.5rem 0 1.5rem;
  color: var(--slate);
  max-width: 38rem;
  font-size: 0.9375rem;
}

/* timeline ------------------------------------------------------- */
.case__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.case__timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.case__timeline li:first-child { border-top: 0; padding-top: 0; }
.case__time {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.case__event {
  color: var(--bone);
  line-height: 1.55;
  max-width: 42rem;
}
.case__timeline .is-pivot {
  padding: 1.25rem 0;
  border-top-color: var(--hairline-strong);
  background: linear-gradient(90deg, rgba(255, 106, 31, 0.06) 0%, transparent 65%);
}
.case__timeline .is-pivot .case__time { color: var(--signal); }
.case__event em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--bone);
}

/* detection log -------------------------------------------------- */
.case__detlog {
  list-style: none;
  margin: 0;
  padding: 1rem clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elev);
  font-family: var(--mono);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.case__detlog li {
  display: grid;
  grid-template-columns: 8rem 5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.4rem 0;
}
.case__detlog li.is-alert {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}
.case__dl-ts { color: var(--slate); font-variant-numeric: tabular-nums; }
.case__dl-src { font-weight: 500; letter-spacing: 0.08em; }
.case__dl-src--yolo   { color: var(--detection); }
.case__dl-src--claude { color: var(--signal); }
.case__dl-src--ocr    { color: var(--bone); opacity: 0.85; }
.case__dl-src--alert  { color: var(--signal); letter-spacing: 0.16em; }
.case__dl-body { color: var(--bone); opacity: 0.9; }
.case__dl-conf {
  color: var(--detection);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.case__dl-conf--high { color: var(--signal); }
.case__detlog .is-alert .case__dl-body {
  color: var(--signal);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* outcome stats -------------------------------------------------- */
.case__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.case__stat {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--hairline);
}
.case__stat-value {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--bone);
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
}
.case__stat-value--signal { color: var(--signal); }
.case__stat-unit {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.case__stat-label {
  font-family: var(--body);
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.45;
  max-width: 22rem;
}

/* field note ----------------------------------------------------- */
.case__note {
  margin: 0;
  padding: 0;
  max-width: 42rem;
}
.case__note p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  color: var(--bone);
  margin: 0 0 1rem;
  font-variation-settings: "opsz" 96;
}
.case__note-attrib {
  font-family: var(--mono) !important;
  font-style: normal !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em;
  color: var(--slate);
  text-transform: uppercase;
  margin: 1.25rem 0 0;
}

/* footnote + closing CTA ---------------------------------------- */
.case__footnote {
  margin: clamp(3rem, 5vw, 4rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--slate);
  font-style: italic;
  line-height: 1.65;
  max-width: 42rem;
}

.case__cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  border-bottom: 1px solid var(--signal);
  padding-bottom: 0.375rem;
  font-weight: 500;
}
.case__cta:hover,
.case__cta:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--bone);
  outline: none;
}

@media (max-width: 720px) {
  .case__timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .case__detlog li {
    grid-template-columns: 7rem 1fr;
  }
  .case__detlog .case__dl-src {
    grid-column: 2;
  }
  .case__detlog .case__dl-body {
    grid-column: 1 / -1;
    padding-left: 8rem;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 880px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--gutter);
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    background: rgba(14,17,19,0.95);
    border: 1px solid var(--hairline-strong);
    padding: 1.25rem 1.5rem;
    z-index: 5;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav span { display: none; }
  .nav-toggle { display: inline-block; }

  .hero__copy { padding-left: 0; }
  .hero__headline { font-size: clamp(2.75rem, 11vw, 4.5rem); }

  .hero__telemetry,
  .hero__cta {
    grid-row: auto;
  }
  .hero__cta { justify-self: start; margin-top: 1.25rem; }
  .hero__scroll { display: none; }

  .problem__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .sees__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .sees__theater { aspect-ratio: 4 / 3; }
  .sees__hud {
    width: calc(100% - 2rem);
    font-size: 0.66rem;
  }
  .who__grid { grid-template-columns: 1fr; gap: 2rem; }

  .arch__diagram {
    flex-direction: column;
    align-items: flex-start;
  }
  .arch__arrow { transform: rotate(90deg); }

  .footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer__col--links,
  .footer__col--telemetry { justify-self: start; }
}

/* ============================================================
   Request access — standalone page
   ============================================================ */

.ra-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 106, 31, 0.06), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(255, 184, 0, 0.04), transparent 60%),
    var(--bg);
}

.ra {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.ra__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "intro form"
    "trust form";
  gap: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.ra__intro     { grid-area: intro; }
.ra__trust     { grid-area: trust; }
.ra__form-wrap { grid-area: form; }

.ra__intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ra__intro .section-eyebrow { margin: 0; }

.ra__headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0;
  font-variation-settings: "opsz" 144;
}
.ra__headline em { font-style: italic; }

.ra__lede {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate);
  margin: 0;
  max-width: 32rem;
}

.ra__trust {
  display: block;
}
.ra__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}
.ra__bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
}
.ra__bullet-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--signal);
}
.ra__bullets strong {
  display: block;
  color: var(--bone);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}
.ra__bullets span {
  display: block;
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.55;
}

.ra__form-wrap {
  background: rgba(21, 25, 28, 0.55);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Tighten the .access form layout to fit the card */
.ra__form {
  max-width: none;
  margin-top: 0;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.5rem;
}
.ra__form .access__field--wide { grid-column: 1 / -1; }

.access__submit--btn {
  padding: 0.75rem 1.5rem;
  background: var(--signal);
  color: var(--bg);
  border-radius: 2px;
  transition: background 200ms ease, transform 200ms ease;
}
.access__submit--btn:hover,
.access__submit--btn:focus-visible {
  background: var(--bone);
  color: var(--bg);
  transform: translateY(-1px);
}
.access__submit--btn[disabled] {
  background: var(--hairline-strong);
  color: var(--slate);
  transform: none;
  cursor: progress;
}

.ra__fineprint {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  line-height: 1.6;
}
.ra__fineprint a { color: var(--signal); border-bottom: 1px solid currentColor; }
.ra__fineprint a:hover { color: var(--bone); }

.footer--quiet {
  border-top: 1px solid var(--hairline);
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

/* Tablet — single column stack: intro / form / trust. */
@media (max-width: 60rem) {
  .ra__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "form" "trust";
    gap: 2rem;
  }
  .ra__form { grid-template-columns: 1fr; }
}

/* Phone — drop the card chrome, tighten spacing, hide non-essential ornament. */
@media (max-width: 40rem) {
  .ra-body { background: var(--bg); }

  .legal-chrome { padding: 1rem var(--gutter); }
  .legal-chrome .monogram__est { display: none; }

  .ra { padding: 1.25rem var(--gutter) 2rem; }
  .ra__grid { gap: 1.75rem; }

  .ra__intro { gap: 0.875rem; }
  .ra__headline {
    font-size: clamp(1.875rem, 9vw, 2.5rem);
    line-height: 1.1;
  }
  .ra__lede { font-size: 0.9375rem; line-height: 1.55; }

  /* Form: edge-to-edge, no card chrome on phones (the blur often renders poorly). */
  .ra__form-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .ra__form { gap: 1.125rem; }

  .access__input {
    font-size: 16px; /* keeps iOS from auto-zooming on focus */
  }
  .access__textarea { min-height: 5rem; }

  .access__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    margin-top: 0.75rem;
  }
  .access__submit--btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1rem;
  }
  .access__status { text-align: left; }

  .ra__fineprint { font-size: 0.6875rem; line-height: 1.55; }

  /* Trust block trims and sits quietly below. */
  .ra__bullets {
    gap: 1rem;
    padding-top: 1.25rem;
  }
  .ra__bullets li { gap: 0.625rem; }
  .ra__bullets strong { font-size: 0.875rem; }
  .ra__bullets span { font-size: 0.8125rem; }

  .footer--quiet {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
    padding: 2rem var(--gutter);
  }
  .footer--quiet .footer__col--links { justify-self: start; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .sees__media { display: none; }
  .topo__pulse-ring,
  .sees__hud-dot,
  .sees__log li,
  .sees__log .body::after { animation: none !important; }
  .sees__log li { opacity: 1; transform: none; }
  .sees__box { stroke-dashoffset: 0 !important; transition: none !important; }
  .sees__label { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-tele].flicker { opacity: 1; }
  * {
    transition: none !important;
  }
}
