/* ============================================================
   RESEEN SYSTEMS — site
   Alternating ink and paper surfaces. Every diagram lives on an ink
   "instrument plate", whichever surface it sits on.
   ============================================================ */

.wrap { max-width: 1640px; margin-inline: auto; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(11,13,12,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-line);
  color: var(--on-ink);
}
.nav-trace {
  display: block; width: 100%; height: 14px;
  border-top: 1px solid var(--ink-line);
}
.nav-in {
  max-width: 1640px; margin-inline: auto;
  padding: 0 var(--pad);
  height: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
/* the wordmark carries the identity: lowercase grotesk, tight, with the
   product name set back a weight so "reseen" reads first */
.nav-mark { display: inline-flex; align-items: center; gap: 13px; }
.nav-mark svg { flex: none; width: 32px; height: 32px; }
.nav-word {
  font-size: clamp(21px, 1.6vw, 27px); letter-spacing: -.035em;
  line-height: 1; color: var(--on-ink);
}
.nav-word b { font-weight: 600; }
.nav-word { font-weight: 300; color: var(--on-ink-dim); }
.nav-word b { color: var(--on-ink); }

/* the bar speaks the same mono caps as every label on the site, at a size
   that survives a sunlit screen */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(13px, 1vw, 15px); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.nav-links a { padding: 10px 16px; color: var(--on-ink); transition: color .18s; }
.nav-links a:hover { color: var(--signal); }
.nav-links .is-key { color: var(--signal); }
.nav-links a[aria-current="page"] { color: var(--on-ink); box-shadow: inset 0 -1px 0 var(--signal); }
/* the CTA stays in the grotesk of its twin in the hero */
.nav-links .btn {
  margin-left: 16px;
  padding: 12px 22px;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -.015em; text-transform: none;
  background: var(--bone);
  color: var(--ink) !important;
  border-color: var(--bone);
}
.nav-links .btn::before { color: var(--bone); inset: -8px; }
.nav-links .btn:hover { background: transparent; color: var(--bone) !important; }

/* ---------- section shell ---------- */

.sec { padding: clamp(64px, 8vw, 132px) var(--pad); }
.sec-in { max-width: 1640px; margin-inline: auto; }

/* Headline and standfirst sit side by side on one baseline: the serif holds
   the left column, the prose reads as a caption to its right. */
.sec-head {
  margin-bottom: clamp(38px, 4.6vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 6px clamp(32px, 5vw, 96px); align-items: start;
}
.sec-head h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 200; font-size: clamp(34px, 4.5vw, 68px);
  letter-spacing: -0.025em; line-height: 1.04;
  margin: 16px 0 0;
}
.sec-head .tick { grid-column: 1; grid-row: 1; align-self: start; }
.sec-head h2 { grid-column: 1; grid-row: 2; }
.sec-head p {
  grid-column: 2; grid-row: 2;
  /* nudged onto the cap-height of the serif rather than its box top */
  margin-top: clamp(10px, 1.1vw, 22px);
  font-size: clamp(17px, 1.28vw, 21px); font-weight: 300; line-height: 1.5;
  color: var(--fg); max-width: 46ch;
}
.s-ink .sec-head p { color: #c4c7c1; }

/* the running index number, top-right of each section */
.sec-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; border-top: 1px solid var(--hair);
  padding-top: 14px; margin-bottom: clamp(28px, 4vw, 52px);
}
.sec-bar .mono { color: var(--fg-dim); }

/* ---------- buttons ---------- */

/* Buttons take their cue from the logo lockup: a hard rectangle held inside
   registration marks, set in the same lowercase grotesk as the wordmark
   rather than small letterspaced caps. */
.btn, .btn-alt {
  position: relative; display: inline-block;
  font-size: clamp(15px, 1.1vw, 17px); font-weight: 500; letter-spacing: -.015em;
  padding: 16px 30px; border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}
/* the four crop marks, drawn just outside the button box */
.btn::before, .btn-alt::before {
  content: ''; position: absolute; inset: -10px; pointer-events: none;
  opacity: .38; transition: opacity .18s;
  --m: linear-gradient(currentColor, currentColor);
  background:
    var(--m) 0 0 / 8px 1px no-repeat,      var(--m) 0 0 / 1px 8px no-repeat,
    var(--m) 100% 0 / 8px 1px no-repeat,   var(--m) 100% 0 / 1px 8px no-repeat,
    var(--m) 0 100% / 8px 1px no-repeat,   var(--m) 0 100% / 1px 8px no-repeat,
    var(--m) 100% 100% / 8px 1px no-repeat, var(--m) 100% 100% / 1px 8px no-repeat;
}
.btn:hover::before, .btn-alt:hover::before { opacity: 1; }
/* the filled button's marks sit on the substrate, not on its own fill */
.s-ink .btn::before { color: var(--bone); }
.s-bone .btn::before, .s-sand .btn::before { color: var(--ink); }
.s-ink .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.s-ink .btn:hover { background: transparent; color: var(--bone); }
.s-ink .btn-alt { color: var(--on-ink); border-color: rgba(236,235,229,.3); }
.s-ink .btn-alt:hover { border-color: var(--on-ink); }
.s-bone .btn, .s-sand .btn { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.s-bone .btn:hover, .s-sand .btn:hover { background: transparent; color: var(--ink); }
.s-bone .btn-alt, .s-sand .btn-alt { color: var(--fg); border-color: rgba(20,23,21,.28); }
.s-bone .btn-alt:hover, .s-sand .btn-alt:hover { border-color: var(--fg); }
/* crop marks sit outside the box, so the row needs room to breathe */
.acts { display: flex; gap: 26px; flex-wrap: wrap; padding: 11px 0; }

/* ---------- instrument plate ---------- */

.plate {
  position: relative;
  background: radial-gradient(100% 130% at 50% 45%, #111614 0%, var(--ink) 78%);
  border: 1px solid var(--ink-line);
  color: var(--on-ink);
  overflow: hidden;
}
.s-bone .plate, .s-sand .plate { border-color: #b7b09a; }

.plate-cap {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--hair); border-top: 0;
}
.plate-cap > div {
  flex: 1 1 170px; padding: 18px 22px 20px;
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 9px;
}
.plate-cap > div:last-child { border-right: 0; }
.plate-cap .tick { font-size: 11.5px; letter-spacing: .15em; }
.plate-cap i {
  font-style: normal; font-size: clamp(22px, 1.75vw, 30px);
  font-weight: 400; letter-spacing: -.015em; line-height: 1;
}
.plate-cap .v-noise { color: var(--noise-dk); }
.s-ink .plate-cap .v-noise { color: var(--noise); }
.plate-cap .v-sig { color: var(--key); }
.plate-cap .v-alert { color: var(--alert); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 880px);
  display: flex; align-items: center;
}
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(8,9,9,.95) 16%, rgba(8,9,9,.66) 46%, rgba(8,9,9,.06) 80%);
}
.hero-in {
  position: relative; z-index: 2;
  max-width: 1640px; margin-inline: auto; width: 100%;
  padding: 0 var(--pad);
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 200; font-size: clamp(42px, 6.4vw, 104px);
  letter-spacing: -0.03em; line-height: 0.99;
  max-width: 15ch;
}
.hero-sub {
  font-size: clamp(17px, 1.32vw, 22px); font-weight: 300;
  line-height: 1.48; color: #d2d1ca; max-width: 52ch;
}
/* ---------- partners ---------- */

/* paper announcement under the logos, then an eased return to ink */
.note-band { background: var(--bone); }
.note-rise,
.note-fall {
  height: clamp(120px, 16vh, 200px);
  background: linear-gradient(to bottom,
    #e7e5dd 0%,
    #e7e5dd 6%,
    #e3e2da 12.5%,
    #dcdad3 18.75%,
    #d0cfc7 25%,
    #bfbeb7 31.25%,
    #aaaaa3 37.5%,
    #93928d 43.75%,
    #797974 50%,
    #5f605c 56.25%,
    #484846 62.5%,
    #333432 68.75%,
    #222322 75%,
    #161816 81.25%,
    #0f100f 87.5%,
    #0b0d0c 94%,
    #0b0d0c 100%);
}
.note-rise { transform: scaleY(-1); }
.note {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(48px, 6vh, 72px) 28px;
  text-align: center;
}
.partners {
  padding: clamp(34px, 4vw, 52px) var(--pad) clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--hair);
}
.note-hed {
  font-size: clamp(28px, 2.5vw, 40px); font-weight: 500;
  letter-spacing: -.025em; line-height: 1.25; color: var(--on-bone);
}
.note-hed em {
  font-style: normal; font-weight: 700; color: var(--noise-dk);
  white-space: nowrap;
  font-size: min(1em, 3.4vw);
}
.note-sub {
  margin-top: 16px;
  font-size: clamp(18px, 1.5vw, 24px); font-weight: 400;
  line-height: 1.4; color: var(--on-bone);
}
.note-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: fit-content; margin: clamp(32px, 4vw, 48px) auto 0;
  padding-top: 16px; border-top: 1px solid var(--bone-line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--on-bone);
}
.note-more:hover { color: var(--on-bone); }
.partners-in {
  max-width: 1640px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(32px, 5vw, 80px); flex-wrap: wrap;
}
.partners img {
  height: clamp(44px, 4.6vw, 62px); width: auto; object-fit: contain;
  /* the crests are light artwork drawn for a dark ground — leave them light */
  opacity: .5; transition: opacity .25s;
}
.partners img:hover { opacity: .85; }
.partners-in a.partners-link {
  display: flex; align-items: center; line-height: 0;
}
.partners-in a.partners-link:hover img { opacity: .85; }
.partners img.partners-cidaut {
  /* color wordmark → same light crest treatment as the row */
  height: clamp(30px, 3.1vw, 42px);
  filter: brightness(0) invert(1);
}
.partners img.partners-light { filter: brightness(0) invert(1); }
.partners figure { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.partners figcaption { color: var(--fg-dim); }

/* ============================================================
   01 — SIGNAL STACK
   ============================================================ */

.stk {
  position: relative;
  aspect-ratio: 20 / 9; max-height: 660px; min-height: 420px;
  perspective: 1500px; perspective-origin: 50% 50%;
  cursor: crosshair; touch-action: pan-y;
  /* survey graticule so the empty field around the scene reads as instrument */
  background-image:
    linear-gradient(rgba(198,188,160,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,188,160,.045) 1px, transparent 1px),
    radial-gradient(100% 130% at 50% 45%, #111614 0%, var(--ink) 78%);
  background-size: 64px 64px, 64px 64px, 100% 100%;
}
.stk-scene {
  /* biased left of centre: the three labels claim the right-hand gutter */
  position: absolute; left: 45%; top: 50%;
  height: 66%; width: auto; aspect-ratio: 16 / 10;
  transform-style: preserve-3d; will-change: transform;
}
.stk-plane {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--pz, 0px)) translate(var(--ox, 0px), var(--oy, 0px)) scale(var(--ps, 1));
  will-change: transform, opacity;
  outline: 1px solid rgba(236,235,229,.14);
  /* a cast shadow gives each sheet thickness once the stack opens; box-shadow
     is painted, unlike filter, so it is safe inside preserve-3d */
  box-shadow: 0 calc(var(--open, 0) * 26px) calc(var(--open, 0) * 46px) rgba(0,0,0,.55);
}
.stk-plane canvas { width: 100%; height: 100%; }

/* top: what the machine concluded */
[data-plane="decisions"] {
  --pz: var(--gap);
  --ox: calc(var(--jx) * -.7); --oy: calc(var(--jy) * -.7);
  outline-color: rgba(199,226,94,.18);
  opacity: calc(.55 + var(--open) * .45);
}
/* middle: the true image */
[data-plane="signal"] { --pz: 0px; }
[data-plane="signal"] canvas { opacity: calc(.62 + var(--open) * .38); }
/* bottom: sinks away and dissipates.
   Never use mix-blend-mode or filter on these planes — either one forces a
   full readback of the preserve-3d scene every frame and drops it to ~1fps. */
[data-plane="noise"] {
  --pz: calc(var(--gap) * -1 - var(--open) * 90px);
  --ox: var(--jx); --oy: var(--jy);
  --ps: calc(1 + var(--open) * .09);
  opacity: calc(1 - var(--open) * .38);
  background: rgba(169,162,210,.05);
  outline-color: rgba(169,162,210,.3);
}

.stk-anchor { position: absolute; width: 0; height: 0; }
.stk-lines, .stk-ann {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.stk.is-open .stk-lines, .stk.is-open .stk-ann { opacity: 1; }
/* an <svg> is a replaced element: inset:0 alone leaves it at 300x150 */
.stk-lines { width: 100%; height: 100%; overflow: visible; }
.stk-lines line { stroke-width: 1; stroke-dasharray: 3 3; }

.stk-ann b {
  position: absolute;
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(14px, 1.25vw, 18px); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; color: var(--on-ink); white-space: nowrap;
  transform: translate(-100%, -50%);
}
.stk-ann b::before {
  content: ''; width: 6px; height: 1em; background: var(--c);
  align-self: center; flex: none;
}
.stk-ann b em { font-style: normal; color: var(--on-ink-dim); }

.stk-state {
  position: absolute; left: 18px; top: 16px; z-index: 5;
  display: flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
}
.stk-state s { text-decoration: none; }
.stk-state .a { color: var(--noise); }
.stk-state .b { color: var(--signal); display: none; }
.stk.is-open .stk-state .a { display: none; }
.stk.is-open .stk-state .b { display: inline; }
.stk-state em {
  font-style: normal; color: var(--on-ink-dim);
  border: 1px solid var(--ink-line); padding: 4px 8px;
}
.stk-hint {
  position: absolute; right: 18px; bottom: 16px; z-index: 5;
  color: var(--on-ink-dim); transition: opacity .3s;
}
.stk.is-open .stk-hint { opacity: 0; }

/* ============================================================
   02 — REAL-TIME VIDEO INTELLIGENCE
   ============================================================ */

.rtvi-bar {
  display: flex; align-items: center; gap: 13px;
  border: 1px solid var(--ink-line); background: #0e1211;
  padding: 19px 22px; font-size: 16px; font-weight: 300;
  color: var(--on-ink);
}
.rtvi-bar svg { color: var(--signal); flex: none; }
.rtvi-q { white-space: nowrap; overflow: hidden; }
.rtvi-caret {
  width: 8px; height: 19px; background: var(--signal); flex: none;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* every result set shares one grid cell, so the stage keeps the height of the
   tallest set and nothing has to be absolutely positioned */
.rtvi-stage { display: grid; margin-top: 12px; }
.rtvi-stage > * { grid-area: 1 / 1; }
.rtvi-set { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.rtvi-set { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.rtvi-set.active { opacity: 1; pointer-events: auto; }

.rtvi-card {
  margin: 0; background: #0e1211; border: 1px solid var(--ink-line);
  overflow: hidden; opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease, border-color .2s;
}
.rtvi-card.on { opacity: 1; transform: none; }
.rtvi-card:hover { border-color: rgba(199,226,94,.5); }
.rtvi-media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.rtvi-media img { width: 100%; height: 100%; object-fit: cover; }
.rtvi-box { position: absolute; border: 1.5px solid var(--signal); box-shadow: 0 0 16px rgba(199,226,94,.22); }
.rtvi-match {
  position: absolute; background: var(--signal); color: var(--ink);
  padding: 2px 7px; font-size: 9px; font-weight: 500;
}
.rtvi-card figcaption { padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; }
.rtvi-card figcaption b {
  font-family: 'JetBrains Mono', monospace; font-weight: 400;
  font-size: 10px; letter-spacing: .13em; color: var(--signal);
}
.rtvi-card figcaption span { font-size: 13.5px; font-weight: 300; color: #a7aca6; }
.rtvi-box-alert { border-color: var(--alert); box-shadow: 0 0 16px rgba(224,80,58,.3); }
.rtvi-match-alert { background: var(--alert); color: var(--chalk); }

/* ============================================================
   03 — RESTORATION · two mockups
   ============================================================ */

.mock + .mock { margin-top: clamp(56px, 6.5vw, 108px); }
.mock-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border-bottom: 1px solid var(--hair); padding-bottom: 12px; margin-bottom: 18px;
}

/* ---------- A · comparator ---------- */

.cmp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cmp-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
  padding: 12px 18px; cursor: pointer;
  background: transparent; color: var(--fg-dim);
  border: 1px solid var(--hair);
  transition: color .2s, border-color .2s, background .2s;
}
.cmp-tab:hover { color: var(--fg); border-color: var(--fg); }
.cmp-tab.is-on { background: var(--ink); color: var(--signal); border-color: var(--ink); }

.cmp-stage {
  position: relative; overflow: hidden;
  aspect-ratio: 21 / 9; max-height: 660px;
  cursor: ew-resize; touch-action: pan-y; background: #000;
}
.cmp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-raw.is-pixel { image-rendering: pixelated; }
/* the restored frame is clipped from the left, so the seam is the wipe */
.cmp-reveal { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }

.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: rgba(231,229,221,.85); pointer-events: none; z-index: 3;
}
.cmp-handle i {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(231,229,221,.9);
  background: rgba(11,13,12,.5); backdrop-filter: blur(3px);
}
.cmp-handle i::before, .cmp-handle i::after {
  content: ''; position: absolute; top: 50%; width: 6px; height: 6px;
  border-top: 1px solid var(--bone); border-right: 1px solid var(--bone);
}
.cmp-handle i::before { left: 11px; transform: translateY(-50%) rotate(-135deg); }
.cmp-handle i::after { right: 11px; transform: translateY(-50%) rotate(45deg); }

.cmp-tag {
  position: absolute; top: 16px; z-index: 4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  padding: 7px 11px;
}
.cmp-tag-l { left: 16px; background: rgba(11,13,12,.8); color: var(--noise); border: 1px solid rgba(169,162,210,.45); }
.cmp-tag-r { right: 16px; background: var(--signal); color: var(--ink); }

/* second headline in the signal section, above the sweeping comparator */
#signal .enh-head { margin-top: clamp(72px, 8vw, 120px); }
#signal .mock { margin-top: 0; }

/* ---------- B · VLM console
   Frame on the left, chat on the right. When the question is sent a scan
   runs across the feed and the detections lock on. */

.vlm-split {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 21vw, 360px);
  gap: clamp(24px, 2.6vw, 44px); align-items: start;
}

/* the feed is the subject: full column width, height fixed by the ratio, so
   nothing in the conversation beside it can resize the frame mid-animation */
.vlm-frame {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 16 / 10;
  align-self: start;
}
.vlm-frame > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.vlm-frame.is-answered > img { filter: brightness(.88) saturate(1.05); }

.vlm-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(rgba(236,235,229,.1) 1px, transparent 1px) 0 33.33% / 100% 1px no-repeat,
    linear-gradient(rgba(236,235,229,.1) 1px, transparent 1px) 0 66.66% / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(236,235,229,.1) 1px, transparent 1px) 33.33% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(236,235,229,.1) 1px, transparent 1px) 66.66% 0 / 1px 100% no-repeat;
}

.vlm-scan {
  position: absolute; left: 0; right: 0; height: 28%; z-index: 2; pointer-events: none;
  opacity: 0;
  background: linear-gradient(transparent, rgba(199,226,94,.22) 55%, transparent);
}
.vlm-frame.is-scanning .vlm-scan { animation: vlmscan 1.05s ease-out 1; }
@keyframes vlmscan {
  0% { top: -10%; opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

.vlm-live {
  position: absolute; top: 16px; right: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; color: var(--bone);
  background: rgba(11,13,12,.55); padding: 6px 10px;
}
.vlm-live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--alert);
  animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse { 50% { opacity: .35; } }

.vlm-hud {
  position: absolute; left: 16px; top: 16px; z-index: 4;
  font-size: 10px; color: var(--bone);
  background: rgba(11,13,12,.55); padding: 6px 10px;
  letter-spacing: .12em; text-transform: uppercase;
}

.vlm-reticle {
  position: absolute; z-index: 5; pointer-events: none;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  left: 16%; top: 18%;
  border: 1px solid var(--signal);
  opacity: 0;
  transition:
    left .72s cubic-bezier(.15,.8,.2,1),
    top .72s cubic-bezier(.15,.8,.2,1),
    width .35s, height .35s, margin .35s, opacity .25s;
}
.vlm-reticle::before, .vlm-reticle::after {
  content: ''; position: absolute; background: var(--signal);
}
.vlm-reticle::before { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); }
.vlm-reticle::after { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); }
.vlm-frame.is-hunting .vlm-reticle { opacity: 1; }
.vlm-frame.is-lock .vlm-reticle {
  left: 48.8%; top: 45.2%;
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
}
.vlm-frame.is-answered .vlm-reticle { opacity: 0; }

.det {
  position: absolute; z-index: 3; opacity: 0; pointer-events: none;
}
.det.is-on { opacity: 1; }
.det-box {
  display: block; width: 100%; height: 100%;
  border: 1px solid rgba(199,226,94,.45);
  box-shadow: 0 0 0 1px rgba(11,13,12,.35), 0 0 22px rgba(199,226,94,.22);
  transform: scale(1.28);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.det.is-on .det-box { transform: scale(1); }
.det-c {
  position: absolute; width: 13px; height: 13px;
  border: 2px solid var(--signal);
  transform: scale(.4); opacity: 0;
}
.det.is-on .det-c {
  opacity: 1; transform: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1) .08s, opacity .2s ease;
}
.det-c.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.det-c.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.det-c.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.det-c.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.det-tag {
  position: absolute; left: 0; bottom: calc(100% + 5px);
  background: var(--signal); color: var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 500;
  padding: 3px 7px; white-space: nowrap;
  transform: translateY(4px); opacity: 0;
}
.det.is-on .det-tag {
  opacity: 1; transform: none;
  transition: transform .3s ease .18s, opacity .3s ease .18s;
}
.det-ring {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 1.5px solid var(--signal); border-radius: 50%;
  animation: detping 1.8s ease-out infinite;
}
@keyframes detping {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* the tracker never sits perfectly still on a moving target */
.det-ugv.is-on { animation: dettrack 3.6s ease-in-out infinite; }
@keyframes dettrack {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1.5px, -2.5px); }
}

/* UGV sits on the unpaved track; structure is the compound at lower left */
.det-ugv { left: 45.4%; top: 41.2%; width: 7.4%; height: 9.6%; }
.det-struct { left: 0.8%; top: 68.2%; width: 18.8%; height: 28.5%; }

/* the conversation is set straight onto the page surface — no second panel
   competing with the plate beside it */
.vlm-chat {
  align-self: start;
  display: flex; flex-direction: column; gap: 18px;
  color: var(--fg);
}
.vlm-chat > .tick { color: var(--fg-dim); }

.ask-box {
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 24px; padding: 22px 24px 14px;
}
.ask-text {
  min-height: 3.2em;
  font-size: clamp(16px, 1.25vw, 20px); font-weight: 300; line-height: 1.45;
  color: var(--fg);
}
.ask-caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  background: var(--key); vertical-align: -2px;
  animation: askblink 1s steps(1) infinite;
}
.ask-box.is-sent .ask-caret { display: none; }
@keyframes askblink { 50% { opacity: 0; } }

.ask-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.ask-ico { font-size: 19px; font-weight: 300; color: var(--fg-dim); line-height: 1; }
.ask-rule { width: 1px; height: 18px; background: var(--hair); }
.ask-model {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--fg-dim);
}
.ask-send {
  margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 13px;
  background: var(--ink); color: var(--bone); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .18s, background .18s, color .18s;
}
.ask-send:hover { transform: translateY(-2px); }

.vlm-reply {
  display: none;
  border-left: 2px solid var(--key);
  padding: 2px 0 2px 20px;
}
.vlm-reply.is-on { display: block; opacity: 1; animation: vlmIn .35s ease both; }
@keyframes vlmIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.vlm-reply .tick { color: var(--key); }
.vlm-desc {
  margin-top: 10px;
  font-size: clamp(15px, 1.15vw, 18px); font-weight: 300; line-height: 1.5;
  color: var(--fg);
}
.vlm-desc .ask-caret { display: none; }
.vlm-split:has(.vlm-frame.is-answered:not(.is-done)) .vlm-desc .ask-caret { display: inline-block; }

/* ============================================================
   04 — TRANSMISSION / 05 — BLINK
   ============================================================ */

.tx { aspect-ratio: 1000 / 360; min-height: 340px; }
.tx canvas { width: 100%; height: 100%; }
.blink { aspect-ratio: 1000 / 380; min-height: 340px; }
.blink canvas { width: 100%; height: 100%; }

/* ============================================================
   06 — DEPLOYMENT
   ============================================================ */

.dep {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1fr 1.05fr 1fr;
  gap: clamp(28px, 4.5vw, 78px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 46px);
}
.dep-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dep-wire {
  fill: none; stroke: rgba(198,188,160,.26); stroke-width: 1;
  transition: stroke .4s;
}
.dep-wire.hot { stroke: rgba(199,226,94,.5); }
.dep-flow {
  fill: none; stroke: var(--signal); stroke-width: 1.4;
  stroke-dasharray: 5 150; stroke-linecap: round;
  animation: flow 3.4s linear infinite;
  opacity: .5;
}
.dep-flow.hot { opacity: 1; }
@keyframes flow { to { stroke-dashoffset: -310; } }

.dep-col { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.dep-node {
  border: 1px solid var(--ink-line); background: rgba(16,20,18,.92);
  padding: 15px 17px; display: flex; flex-direction: column; gap: 6px;
}
.dep-node b { font-size: 15px; font-weight: 500; letter-spacing: -.005em; }
.dep-node p { font-size: 12.5px; font-weight: 300; color: var(--on-ink-dim); line-height: 1.4; }
.dep-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.dep-chips span {
  border: 1px solid rgba(198,188,160,.24); color: var(--sand);
  padding: 4px 7px; font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: .12em;
}

.dep-core {
  position: relative; z-index: 2;
  border: 1px solid rgba(199,226,94,.45);
  background: rgba(199,226,94,.055);
  box-shadow: 0 0 60px rgba(199,226,94,.07);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 9px;
}
.dep-core .tick { color: var(--signal); }
.dep-core b { font-size: 21px; font-weight: 400; letter-spacing: -.015em; }
.dep-core p { font-size: 13px; font-weight: 300; color: #9fa79a; }
.dep-core .dep-chips span { border-color: rgba(199,226,94,.4); color: var(--signal); }

.dep-out {
  border: 1px solid var(--ink-line); background: rgba(16,20,18,.92);
  padding: 13px 16px; font-size: 14.5px; font-weight: 400;
  display: flex; align-items: center; gap: 11px;
  transition: border-color .4s, color .4s;
}
.dep-out::before {
  content: ''; width: 5px; height: 10px; flex: none;
  background: rgba(198,188,160,.4); transition: background .4s;
}
.dep-out.is-live { border-color: rgba(199,226,94,.5); }
.dep-out.is-live::before { background: var(--signal); }

/* ============================================================
   THE NEWS
   A paper ribbon of documented investigations, above situational
   awareness. One row, rolling. Each headline is a narrow column.
   ============================================================ */

.wire {
  display: flex; align-items: stretch;
  border-top: 1px solid var(--hair);
}
.wire-kicker {
  flex: none; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 28px;
  padding: 32px 36px 32px max(var(--pad), calc((100vw - 1640px) / 2));
  border-right: 1px solid var(--hair);
  background: var(--bone);
  position: relative; z-index: 2;
}
.wire-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 18px; font-weight: 500; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg);
}
.wire-name::before {
  content: ''; width: 9px; height: 18px; flex: none;
  background: var(--signal-dk);
}
.wire-live {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 19px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; font-weight: 500; line-height: 1;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--alert);
}
.wire-live i {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--alert);
  animation: wire-live 1.8s ease-out infinite;
}
@keyframes wire-live {
  0%   { box-shadow: 0 0 0 0 rgba(224, 80, 58, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(224, 80, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 80, 58, 0); }
}
.wire-viewport {
  flex: 1; min-width: 0;
  display: flex; align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent 100%);
}
.wire.is-on .wire-viewport { overflow: hidden; }
.wire-track { display: flex; align-items: stretch; flex: none; width: max-content; }
.wire.is-on .wire-track { animation: wire-roll 160s linear infinite; }
.wire.is-on:hover .wire-track,
.wire.is-on:focus-within .wire-track { animation-play-state: paused; }
@keyframes wire-roll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.wire-set { display: flex; align-items: stretch; flex: none; }
.wire-item {
  flex: none;
  display: flex; flex-direction: column; align-items: stretch;
  justify-content: flex-start; gap: 16px;
  width: 280px;
  padding: 26px 24px 30px;
  border-right: 1px solid var(--hair);
  color: var(--fg);
  white-space: normal;
}
.wire-copy {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 10px; width: 100%; min-width: 0;
}
.wire-meta { display: flex; align-items: center; gap: 8px; align-self: flex-start; }
.wire-item:focus-visible {
  outline: 2px solid var(--signal-dk);
  outline-offset: -6px;
}
.wire-logo {
  height: 44px; width: auto; max-width: 100%;
  align-self: flex-start;
  flex: none; display: block;
  object-fit: contain;
}
.wire-logo-seal { width: 58px; height: 58px; }
/* force crests are wide lockups — show the badge, the name sits in type */
.wire-logo-lockup {
  width: 58px; height: 58px;
  object-fit: cover; object-position: left center;
}
/* crop the descriptor line; the crown, wordmark and bars are the mark */
.wire-logo-stack {
  width: auto; height: 52px;
  object-fit: contain; object-position: center;
}
.wire-logo-mast { height: 28px; width: auto; max-width: 100%; }
.wire-src {
  flex: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-dim);
}
.wire-src abbr { text-decoration: none; }
/* the masthead already is the name */
.wire-src-clip {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wire-go {
  flex: none;
  font-size: 13px; line-height: 1;
  color: var(--fg-dim); opacity: .55;
  transform: translateY(-1px);
}
.wire-hed {
  font-size: 18px;
  font-weight: 400; line-height: 1.35;
  letter-spacing: -.014em; color: var(--fg);
}
.wire-item:hover .wire-src,
.wire-item:focus-visible .wire-src,
.wire-item:hover .wire-go,
.wire-item:focus-visible .wire-go { color: var(--signal-dk); opacity: 1; }
.wire-item:hover .wire-hed,
.wire-item:focus-visible .wire-hed {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--bone-line);
}

@media (max-width: 720px) {
  .wire { flex-direction: column; }
  .wire-kicker {
    border-right: 0; border-bottom: 1px solid var(--hair);
    padding: 18px var(--pad) 16px;
  }
  .wire-viewport {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .wire-item { width: 240px; padding: 20px 18px 24px; gap: 12px; }
  .wire-hed { font-size: 16px; }
  .wire-logo { height: 46px; }
  .wire-logo-seal, .wire-logo-lockup { width: 48px; height: 48px; }
  .wire-logo-stack { height: 44px; }
  .wire-logo-mast { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .wire-track { animation: none !important; transform: none !important; }
  .wire.is-on .wire-viewport { overflow-x: auto; }
  .wire-set[aria-hidden="true"] { display: none !important; }
  .wire-live i { animation: none !important; }
}

/* ============================================================
   METRICS / CTA / FOOTER
   ============================================================ */

.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--hair);
}
.metric {
  padding: clamp(34px, 4.6vw, 62px) clamp(16px, 1.6vw, 28px);
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 16px;
}
.metric:last-child { border-right: 0; }
.metric b {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(40px, 4.6vw, 70px); font-weight: 200;
  line-height: .95; letter-spacing: -.03em;
}
.metric-key { color: var(--key); }
.metric-unit { font-size: .45em; color: var(--key); letter-spacing: -.02em; }
.metric span:last-child {
  font-size: clamp(20px, 1.7vw, 28px); font-weight: 400;
  line-height: 1.3; color: var(--fg);
}

.cta {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border-top: 1px solid var(--hair);
}
.cta-body {
  /* align the copy with the centred 1640px content column above it */
  padding: clamp(46px, 6vw, 96px) var(--pad);
  padding-left: max(var(--pad), calc((100vw - 1640px) / 2));
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 24px;
}
.cta-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 200; font-size: clamp(34px, 4.4vw, 68px);
  letter-spacing: -.028em; line-height: 1.02;
}
.cta-body p {
  font-size: clamp(17px, 1.28vw, 21px); font-weight: 300;
  line-height: 1.5; color: var(--fg); max-width: 34ch;
}
.cta-plate {
  position: relative; overflow: hidden; background: var(--ink); min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(46px, 6vw, 96px) var(--pad);
}
.cta-plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-plate-in {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.cta-plate-spacer { visibility: hidden; }
.cta-plate-title {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 200; font-size: clamp(34px, 4.4vw, 68px);
  letter-spacing: -.028em; line-height: 1.02;
  color: var(--bone); text-align: center;
  text-shadow: 0 1px 24px rgba(11,13,12,.55);
}

.footer { padding: 34px var(--pad); border-top: 1px solid var(--ink-line); }
.footer-in {
  max-width: 1640px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
}
.footer-start {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer-pbc {
  justify-self: center; text-align: center;
  color: var(--on-ink-dim); white-space: nowrap;
}
.footer .c { justify-self: end; color: var(--on-ink-dim); }
/* an address shouldn't be re-cased by the type system */
.footer-mail { text-transform: none; letter-spacing: .06em; color: var(--on-ink) !important; }
.footer a { color: var(--on-ink-dim); transition: color .18s; }
.footer a:hover { color: var(--signal); }
.footer-press {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--signal) !important;
}
.footer-press:hover { color: var(--on-ink) !important; }

/* ============================================================
   01 — SOURCES
   Raw feeds sit on the violet RAW ramp; everything that reaches
   the Reseen node turns lime. Tiles are placed on a 1000 × 560
   grid, so --x / --y / --w are percentages of the plate.
   ============================================================ */

.src {
  aspect-ratio: 1000 / 560;
  background: radial-gradient(55% 70% at 50% 50%, #121813 0%, #0a0c0b 68%);
}
.src-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.src-tiles { position: absolute; inset: 0; }
.src-tile {
  position: absolute; margin: 0;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%);
}
.src-tile figcaption {
  display: flex; justify-content: space-between; gap: 6px;
  padding-bottom: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(8.5px, .72vw, 11px); letter-spacing: .08em; line-height: 1;
  white-space: nowrap;
}
.src-tile figcaption b { font-weight: 500; color: #d6d2ec; }
.src-tile figcaption i { font-style: normal; color: rgba(169,162,210,.7); transition: color .3s; }
.src-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: #0d0e14;
  border: 1px solid rgba(169,162,210,.42);
  transition: border-color .3s, box-shadow .3s;
}
.src-radar .src-media { aspect-ratio: 1; }
.src-media canvas { width: 100%; height: 100%; object-fit: cover; }
.src-shot {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("../img/src-sheet.jpg?v=2");
  background-repeat: no-repeat;
  background-size: 500% 300%;
  background-position: calc(var(--c) * 25%) calc(var(--r) * 50%);
  animation: srcDrift var(--d, 11s) ease-in-out infinite alternate;
}
.src-tile:nth-child(3n) .src-shot { --d: 14s; animation-delay: -4s; }
.src-tile:nth-child(3n+1) .src-shot { --d: 9s; animation-delay: -7s; }
@keyframes srcDrift {
  from { transform: scale(1.07) translate(-1.6%, -1%); }
  to   { transform: scale(1.07) translate(1.6%, 1.2%); }
}
/* scanlines, and a slow roll bar like an analogue monitor */
.src-media::before, .src-media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.src-media::before {
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
}
.src-media::after {
  background: linear-gradient(180deg, transparent 0%, rgba(214,210,236,.13) 50%, transparent 100%);
  height: 22%; inset: auto 0 auto 0; top: 0;
  transform: translateY(-120%);
  animation: srcRoll var(--r, 7s) linear infinite;
}
.src-tile:nth-child(2n) .src-media::after { --r: 9.5s; animation-delay: -3s; }
.src-tile:nth-child(5n) .src-media::after { --r: 5.5s; animation-delay: -1s; }
@keyframes srcRoll { to { transform: translateY(460%); } }

.src-tile.is-hot .src-media {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px rgba(199,226,94,.25), 0 0 22px rgba(199,226,94,.22);
}
.src-tile.is-hot figcaption i { color: var(--signal); }

.src-node {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: clamp(118px, 15.5%, 210px);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.src-core {
  position: relative; width: 100%; aspect-ratio: 1;
  border-radius: 50%; border: 1.5px solid var(--signal);
  background: #0b0d0c;
  display: grid; place-items: center;
  box-shadow: 0 0 0 7px rgba(199,226,94,.05), 0 0 70px rgba(199,226,94,.22);
}
.src-core svg { width: 44%; height: 44%; color: var(--on-ink); }
.src-core::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid var(--signal); opacity: 0;
}
.src-core.is-hit::after { animation: srcHit .7s ease-out; }
@keyframes srcHit {
  from { transform: scale(1); opacity: .8; }
  to   { transform: scale(1.32); opacity: 0; }
}
.src-legend {
  position: absolute; left: 2.2%; bottom: 2.6%; z-index: 2;
  max-width: 28%; text-align: left; line-height: 1.75;
  color: rgba(169,162,210,.62);
}

/* ============================================================
   04 — SITUATIONAL AWARENESS
   A pinned stage: the wall starts as a small monitor under the
   headline and grows to fill the screen as you scroll. Scale and
   position are driven from JS; everything else is CSS.
   ============================================================ */

.sa { position: relative; height: 300vh; }
.sa-stick {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--ink);
}
.sa-head {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  padding: calc(94px + clamp(18px, 4vh, 52px)) var(--pad) 0;
  will-change: opacity, transform;
}
.sa-head .sec-head { margin-bottom: 0; }
.sa-wall {
  position: absolute; left: 50%; top: 0;
  width: max(104vw, 166vh); aspect-ratio: 8 / 5;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: .22%; padding: .22%;
  background: #050606;
  outline: 1px solid var(--ink-line);
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
/* one shared scanline layer instead of thirty */
.sa-wall::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px);
}
.sa-tile { position: relative; overflow: hidden; background: #0d100f; }
.sa-tile::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 22%; z-index: 1;
  background: linear-gradient(180deg, rgba(5,6,6,.62), transparent);
  pointer-events: none;
}
.sa.is-armed .sa-frame {
  background-image: url("../img/wall.jpg?v=5");
  animation: saDrift var(--d, 12s) ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
}
.sa-frame {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-size: 600% 500%;
  background-position: calc(var(--c) * 20%) calc(var(--r) * 25%);
  pointer-events: none;
}
@keyframes saDrift {
  from { transform: scale(1.08) translate(-1.8%, -1.2%); }
  to   { transform: scale(1.08) translate(1.8%, 1.2%); }
}
.sa-tile span {
  position: absolute; z-index: 1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px; letter-spacing: .1em; line-height: 1;
  color: rgba(236,235,229,.86); text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.sa-id { left: 6px; top: 6px; display: flex; align-items: center; gap: 5px; }
.sa-id::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--alert); animation: caret 1.6s steps(1) infinite;
}
.sa-ts { right: 6px; top: 6px; }
.sa-tile .sa-box {
  left: 0; top: 0;
  border: 1.5px solid var(--signal);
  box-shadow: 0 0 14px rgba(199,226,94,.3);
  opacity: 0; transform: scale(1.35);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.sa-tile .sa-box.on { opacity: 1; transform: none; }
.sa-box b {
  position: absolute; left: -1.5px; bottom: calc(100% + 2px);
  background: var(--signal); color: var(--ink);
  font-weight: 500; font-size: 8.5px; letter-spacing: .08em;
  padding: 2px 5px; white-space: nowrap; text-shadow: none;
}
.sa-tile .sa-box.alert { border-color: var(--alert); box-shadow: 0 0 16px rgba(224,80,58,.4); }
.sa-box.alert b { background: var(--alert); color: var(--chalk); }
.sa-tile.is-alert { box-shadow: inset 0 0 0 1.5px rgba(224,80,58,.75); }

.sa-hud {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 var(--pad) clamp(22px, 4vh, 44px);
  background: linear-gradient(0deg, rgba(8,9,9,.92) 0%, rgba(8,9,9,.6) 55%, transparent 100%);
  padding-top: 18vh;
  opacity: 0; pointer-events: none;
}
.sa-claim {
  max-width: 1640px; margin: 0 auto 18px;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 200; font-size: clamp(36px, 4.6vw, 76px);
  letter-spacing: -0.025em; line-height: 1;
}
.sa-stats {
  max-width: 1640px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  color: var(--on-ink-dim); font-size: 11.5px;
}
.sa-stats b { color: var(--on-ink); font-weight: 500; margin-left: 6px; }
.sa-stats .v-alert { color: var(--alert); }
.sa-live { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); }
.sa-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  animation: caret 1.2s steps(1) infinite;
}

/* reduced motion: no pin, no zoom — the wall simply sits under the headline */
.sa.is-static { height: auto; }
.sa.is-static .sa-stick { position: relative; height: auto; overflow: visible; }
.sa.is-static .sa-head { position: relative; padding-top: clamp(64px, 8vw, 132px); }
.sa.is-static .sa-wall {
  position: relative; left: auto; width: auto; margin: clamp(38px, 4.6vw, 64px) var(--pad) 0;
  transform: none !important;
}
.sa.is-static .sa-hud {
  position: relative; opacity: 1; background: none; padding-top: 28px;
}

/* ---------- reveal ---------- */

.rv {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
}
.rv.in { opacity: 1; transform: none; }
.rv-1 { transition-delay: .08s; }
.rv-2 { transition-delay: .16s; }
.rv-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .vlm-split { grid-template-columns: 1fr; }
  .vlm-chat { min-height: 0; }
  .dep { grid-template-columns: 1fr 1fr; gap: 26px; }
  .dep-wires { display: none; }
}
/* below this width the scattered field gets too small to read, so the
   feeds fall into a grid and the node sits underneath them */
@media (max-width: 960px) {
  .src { aspect-ratio: auto; padding: 26px 18px 30px; }
  .src-tiles {
    position: relative; inset: auto;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px;
  }
  .src-tile { position: relative; left: auto; top: auto; width: auto; }
  .src-tile:nth-child(n+10) { display: none; }
  .src-radar .src-media { aspect-ratio: 4 / 3; }
  .src-node {
    position: relative; left: auto; top: auto; transform: none;
    width: 118px; margin: 48px auto 28px;
  }
  .src-legend { position: relative; right: auto; bottom: auto; max-width: none; display: block; text-align: center; }
}

/* ---------- defence / operations ---------- */

.ops {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--hair);
}
.ops article {
  padding: clamp(26px, 3vw, 44px);
  border-right: 1px solid var(--hair);
}
.ops article:last-child { border-right: 0; }
.ops h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300; font-size: clamp(28px, 2.6vw, 42px);
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 14px 0 16px;
}
.ops p {
  font-size: clamp(16px, 1.15vw, 18px); font-weight: 300;
  line-height: 1.5; max-width: 36ch;
}

@media (max-width: 900px) {
  .ops { grid-template-columns: 1fr; }
  .ops article { border-right: 0; border-bottom: 1px solid var(--hair); }
  .ops article:last-child { border-bottom: 0; }
  .sec-head { grid-template-columns: 1fr; gap: 0; }
  .sec-head p { grid-column: 1; grid-row: 3; margin-top: 22px; }
  .cta { grid-template-columns: 1fr; }
  .footer-in {
    grid-template-columns: 1fr; justify-items: center; text-align: center;
  }
  .footer-start { justify-content: center; }
  .footer-pbc { order: -1; }
  .footer .c { justify-self: center; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--hair); }
  .rtvi-set { grid-template-columns: 1fr; display: none; }
  .rtvi-set.active { display: grid; }
  .tx { aspect-ratio: 1000 / 560; }
  .blink { aspect-ratio: 1000 / 560; }
  .stk { aspect-ratio: auto; height: 420px; }
  .stk-scene { height: 46%; }
  /* leader lines need side room the phone doesn't have — the readout
     strip under the plate carries the same three labels */
  .stk-ann, .stk-lines { display: none; }
}
@media (max-width: 720px) {
  .cmp-stage { aspect-ratio: 4 / 3; }
  .dep { grid-template-columns: 1fr; }
  .nav-in { height: 64px; }
  .nav-word { font-size: 18px; }
  .nav-mark { gap: 10px; }
  .nav-mark svg { width: 26px; height: 26px; }
  .nav-links { font-size: 12.5px; letter-spacing: .1em; }
  .nav-links a { padding: 9px 7px; }
  .nav-links .btn { margin-left: 4px; padding: 10px 13px; }
  .acts { gap: 20px; }
  .stk-ann b { font-size: 9px; }
}

/* ---------- solutions ---------- */

.sol-open {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: calc(100vh - 94px);
  min-height: calc(100svh - 94px);
  padding: clamp(48px, 6vh, 80px) var(--pad);
}
.sol-open .sec-in { width: 100%; }
.sol-open .hero-field,
.sol-open .hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.sol-open .sec-in { position: relative; z-index: 2; }
.sol-open .sec-head { margin-bottom: clamp(40px, 5.5vh, 72px); }
.sol-open .solve {
  border-color: rgba(198, 188, 160, .72);
}
.sol-open .solve article {
  border-right-color: rgba(198, 188, 160, .72);
  padding-top: clamp(40px, 4.4vw, 64px);
}
.sol-open .solve p {
  max-width: 42ch;
  font-size: clamp(20px, 1.55vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  color: #eceae3;
}
.sol-open .sec-head h1 {
  grid-column: 1; grid-row: 1; margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 200; font-size: clamp(36px, 4.2vw, 64px);
  letter-spacing: -0.025em; line-height: 1.02;
}
.sol-open .sec-head p {
  grid-row: 1;
  margin-top: 6px;
  font-size: clamp(22px, 1.85vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  color: #eceae3;
  max-width: 34ch;
}
.sol-open .acts { margin-top: clamp(22px, 3vw, 36px); }
@media (max-width: 720px) {
  .sol-open { min-height: calc(100vh - 78px); min-height: calc(100svh - 78px); }
}
.sol-sec { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 80px); }

.solve { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sol-metrics {
  margin-bottom: clamp(32px, 4vw, 56px);
  border-color: rgba(198, 188, 160, .4);
  border-bottom: 1px solid rgba(198, 188, 160, .4);
}
.sol-metrics .metric { border-color: rgba(198, 188, 160, .4); }
#deploy .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }

#sectors {
  background: #fff;
  color: #1b1d18;
  --fg: #1b1d18;
  --fg-dim: #5c5c54;
  --hair: #e6e6e6;
}
.sectors-roll { overflow: hidden; }
.sectors-track {
  display: flex;
  width: max-content;
  animation: sectors-roll 46s linear infinite;
}
.sectors-roll:hover .sectors-track,
.sectors-roll:focus-within .sectors-track { animation-play-state: paused; }
@keyframes sectors-roll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.sectors-set {
  display: flex;
  gap: 22px;
  padding-right: 22px;
  flex: none;
}
.sectors-set figure {
  margin: 0;
  width: clamp(300px, 34vw, 460px);
  flex: none;
}
.sectors-set img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1b1d18;
}
.sectors-set figcaption {
  margin-top: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1b1d18;
}
@media (prefers-reduced-motion: reduce) {
  .sectors-track { animation: none; }
  .sectors-set[aria-hidden="true"] { display: none; }
  .sectors-roll { overflow-x: auto; }
}
#demos .sec-head p,
#deploy .sec-head p,
#sectors .sec-head p {
  font-size: clamp(22px, 1.85vw, 28px);
  font-weight: 400;
  line-height: 1.4;
}
#deploy .sec-head p { color: #eceae3; }

.demos {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.demo-list { display: flex; flex-direction: column; border: 1px solid var(--hair); }
.demo-list button {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  padding: 16px 18px 15px;
  cursor: pointer;
}
.demo-list button:last-child { border-bottom: 0; }
.demo-list button[aria-selected="true"] {
  background: rgba(111, 103, 156, .14);
  box-shadow: inset 3px 0 0 var(--noise-dk);
}
#demos .tick-sand { --tick: var(--noise-dk); }
.demo-list b {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 8px 0 6px;
}
.demo-list p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
  max-width: 36ch;
}
.demo-view {
  min-width: 0;
  position: sticky;
  top: 108px;
}
.demo-cap {
  margin: 12px 0 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.demo-stage {
  position: relative;
  background: #000;
  border: 1px solid var(--hair);
}
.demo-stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1835 / 860;
  background: #000;
  object-fit: contain;
}
.demo-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(to top, rgba(8, 9, 9, .45), rgba(8, 9, 9, .05) 42%);
  color: var(--bone);
  cursor: pointer;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.demo-play span {
  border: 1px solid var(--signal);
  background: rgba(11, 13, 12, .78);
  color: var(--signal);
  padding: 14px 22px;
}
.demos.is-armed .demo-play { display: none; }

@media (max-width: 900px) {
  .solve { grid-template-columns: 1fr; }
  .sol-open .sec-head h1 { grid-row: 1; }
  .sol-open .sec-head p { grid-row: 2; margin-top: 18px; }
  .demos { grid-template-columns: 1fr; }
  .demo-view { position: relative; top: auto; }
}
