/* ============================================================
   HALKON — Layered Defense Infrastructure
   Design language: mission-control HUD meets premium editorial.
   Black canvas, Funnel Display/Sans + Chivo Mono, electric
   purple accent, square ticks, zero border-radius.
   ============================================================ */

:root {
  /* core */
  --black: #000000;
  --white: #ffffff;

  /* signature */
  --purple: #9f39ff;

  /* functional */
  --starlight: #ada49e;
  --green: #00c48c;
  --red: #ff3b3b;

  /* deep space tints */
  --navy: #041021;
  --void-purple: #151025;
  --warm-black: #1c1414;

  /* warm neutrals */
  --parchment: #ede7d9;
  --sand: #e9d0bb;
  --bone: #e1dcd6;
  --copper: #b1684a;
  --taupe: #7d7369;

  /* cool pastels */
  --periwinkle: #bcc7e4;
  --ice: #c9dde2;
  --lavender: #d9d0f2;
  --slate: #4a6f8d;
  --sage: #5f7e76;

  /* alpha ramps */
  --white-80: rgba(255,255,255,.8);
  --white-60: rgba(255,255,255,.6);
  --white-40: rgba(255,255,255,.4);
  --white-20: rgba(255,255,255,.2);
  --white-10: rgba(255,255,255,.1);
  --white-05: rgba(255,255,255,.05);
  --black-80: rgba(0,0,0,.8);
  --black-60: rgba(0,0,0,.6);
  --black-40: rgba(0,0,0,.4);
  --black-20: rgba(0,0,0,.2);
  --black-10: rgba(0,0,0,.1);
  --black-05: rgba(0,0,0,.05);

  /* type */
  --font-display: "Funnel Display", sans-serif;
  --font-sans: "Funnel Sans", sans-serif;
  --font-mono: "Chivo Mono", monospace;
  --font-ui: "Inter", sans-serif;

  /* geometry */
  --tick: 10px;
  --gutter: 24px;
  --nav-h: 64px;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* ============ BASE ============ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

/* cross-document crossfade between pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .22s; }
::view-transition-new(root) { animation-duration: .34s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* motion easing */
:root {
  --ease-out: cubic-bezier(.2,.6,.2,1);
  --ease-io: cubic-bezier(.76,0,.24,1);
  --hl: var(--white-10);
}

/* lenis inertial scroll (js/lenis.min.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, canvas, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--purple); color: var(--white); }
:focus-visible { outline: 1px solid var(--purple); outline-offset: 4px; }

section { scroll-margin-top: var(--nav-h); }

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045;
  mix-blend-mode: overlay;
}

/* ============ TYPE PRESETS ============ */

.t-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: .88; }
.t-h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6.5vw, 96px); letter-spacing: -0.03em; line-height: .9; }
.t-h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 5vw, 76px); letter-spacing: -0.03em; line-height: .92; }
.t-h3 { font-family: var(--font-sans); font-weight: 400; font-size: clamp(20px, 2.6vw, 38px); letter-spacing: -0.02em; line-height: 1.1; }
.t-body { font-family: var(--font-sans); font-weight: 400; font-size: 18px; line-height: 1.3; }
.t-label {
  font-family: var(--font-mono); font-weight: 300; font-size: 14px; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0;
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
}
.t-mono-ui { font-family: var(--font-mono); font-weight: 400; font-size: 14px; line-height: 1.2; text-transform: uppercase; }
.t-micro { font-family: var(--font-mono); font-weight: 400; font-size: 12px; line-height: 1.2; text-transform: uppercase; }
.t-label, .t-mono-ui, .t-micro { font-variant-numeric: tabular-nums; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ============ PRIMITIVES ============ */

.tick { width: var(--tick); height: var(--tick); background: var(--white); flex: none; }

.side { display: inline-flex; align-items: center; gap: 10px; }

.sec-head {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--white-60);
  padding: 20px 0;
  border-top: 1px solid var(--white-10);
  margin-bottom: clamp(48px, 8vh, 96px);
}

.chip {
  display: inline-flex; align-items: center;
  padding: 4px 12px 3px;
  border: 1px solid var(--white);
  border-radius: 999px; /* documented small-UI exception */
  color: var(--white);
}
.chip--dark { border-color: var(--black); color: var(--black); }

/* buttons: chivo mono uppercase, square tick, zero radius.
   Hover is a fill that wipes up from the baseline; the tick flips to the accent. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .42s var(--ease-io);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn .btn-tick { width: var(--tick); height: var(--tick); flex: none; transition: background .3s var(--ease-out); }
.btn-light { color: var(--white); border: 1px solid var(--white-20); background: transparent; }
.btn-light::before { background: var(--white); }
.btn-light .btn-tick { background: var(--white); }
.btn-light:hover { color: var(--black); border-color: var(--white); }
.btn-light:hover .btn-tick { background: var(--purple); }
.btn-dark { background: var(--black); color: var(--white); border: 1px solid var(--black); }
.btn-dark::before { background: var(--white); }
.btn-dark .btn-tick { background: var(--white); }
.btn-dark:hover { color: var(--black); }
.btn-dark:hover .btn-tick { background: var(--purple); }
.btn:active { transform: translateY(1px); }

.btn-void {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white-40); transition: color .2s ease;
}
.btn-void:hover { color: var(--white); }
.btn-void svg { width: 12px; height: 12px; transition: transform .4s var(--ease-io); }
.btn-void:hover svg { transform: translateX(6px); }
.section--light .btn-void { color: var(--black-40); }
.section--light .btn-void:hover { color: var(--black); }

.rail-foot, .sys-foot { margin-top: 26px; display: flex; justify-content: flex-end; }

/* letter roll hover: each glyph slides up and its twin rises from below */
.stagger { display: inline-block; overflow: hidden; vertical-align: top; }
.stagger .ch {
  position: relative; display: inline-block; white-space: pre;
  transition: transform .5s var(--ease-io);
  transition-delay: calc(var(--i, 0) * 14ms);
}
.stagger .ch::after {
  content: attr(data-ch); position: absolute; left: 0; top: 100%;
}
.stagger:hover .ch, .stagger:focus-visible .ch { transform: translateY(-100%); }

/* scroll reveal */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* art panels reveal behind a shutter that slides down and away (an overlay, so the
   observed box keeps its full area and IntersectionObserver still sees it) */
.m-art.reveal, .sysp-art.reveal, .solve-card.reveal, .lead-tile.reveal, .pull-portrait.reveal, .tl-panel.reveal, .pillar-grid.reveal, .tile.reveal {
  opacity: 1; transform: none; position: relative;
}
.tile.reveal { position: absolute; }
.m-art.reveal::before, .sysp-art.reveal::before, .solve-card.reveal::before, .lead-tile.reveal::before, .pull-portrait.reveal::before, .tl-panel.reveal::before, .pillar-grid.reveal::before, .tile.reveal::before {
  content: ""; position: absolute; inset: -1px; z-index: 6; pointer-events: none;
  background: var(--shutter, var(--black));
  transform-origin: bottom;
  transition: transform 1.1s var(--ease-io);
}
.tile.reveal::before { inset: -8px; }
.m-art.reveal.in::before, .sysp-art.reveal.in::before, .solve-card.reveal.in::before, .lead-tile.reveal.in::before, .pull-portrait.reveal.in::before, .tl-panel.reveal.in::before, .pillar-grid.reveal.in::before, .tile.reveal.in::before {
  transform: scaleY(0);
}

/* hairlines draw in from the left when their row enters */
.js .sec-head, .js .stat, .js .conv, .js .lead-min, .js .prin, .js .role-row, .js .news-item, .js .phase-row, .js .m-block, .js .sysp, .js .spec, .js .cap-row, .js .clearance-note {
  position: relative; border-top-color: transparent !important;
}
.js .sec-head::before, .js .stat::before, .js .conv::before, .js .lead-min::before, .js .prin::before, .js .role-row::before, .js .news-item::before, .js .phase-row::before, .js .m-block::before, .js .sysp::before, .js .spec::before, .js .cap-row::before, .js .clearance-note::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--hl);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-io);
}
.js .hl-in::before { transform: scaleX(1); }
.js .clearance-note { border-color: transparent !important; }
.js .clearance-note::before { top: 0; }
.section--light, .whynow, .pull, .footer, .momentum, .solve { --hl: var(--black-10); --shutter: var(--white); }

.char-reveal .word { display: inline-block; white-space: pre; }
.char-reveal .ch {
  display: inline-block; opacity: 0; transform: translateY(.35em);
  transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--d, 0ms);
}
.char-reveal.in .ch { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .char-reveal .ch { transition: none; opacity: 1; transform: none; }
  .stagger .ch { transition: none; }
  .js [class]::before { transition: none; }
}

/* ============ NAV ============ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
  transition: background .3s ease, border-color .3s ease, transform .5s var(--ease-io), opacity .6s ease;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--white-10);
}
.nav--hide { transform: translateY(-100%); }
.js body:not(.is-loaded) .nav { opacity: 0; }
.js body:not(.is-loaded) .hero-meta { opacity: 0; }
.hero-meta { transition: opacity .9s ease .3s; }

.brand { display: inline-flex; align-items: center; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: .04em; display: inline-flex; align-items: baseline;
  color: var(--white);
}
.okt { height: .72em; width: auto; margin: 0 .045em; align-self: center; transform: translateY(.02em); }
.brand .okt path { fill: var(--purple); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--starlight); opacity: .65; transition: color .1s ease, opacity .1s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.menu-btn { display: none; padding: 10px 0; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
}

/* full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.96);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(36px, 9vw, 72px); line-height: 1.15;
  color: var(--white-80); display: flex; align-items: baseline; gap: 16px;
  padding: 6px 0; border-bottom: 1px solid var(--white-10);
  animation: menu-in .7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
  transition: color .2s ease, padding-left .3s var(--ease-out);
}
.menu a:hover { color: var(--white); padding-left: 10px; }
.menu a .t-micro { color: var(--white-40); transition: color .2s ease; }
.menu a:hover .t-micro { color: var(--purple); }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .menu a { animation: none; } }

/* ============ SECTIONS ============ */

.section { padding: 90px var(--gutter) 120px; position: relative; }
.section--light { background: var(--white); color: var(--black); }
.section--light .tick { background: var(--black); }
.section--light .sec-head { color: var(--black-60); border-top-color: var(--black-10); }

.lede-mono { max-width: 44em; color: currentColor; opacity: .85; margin-top: 40px; }

/* ============ HOME: HERO ============ */

.hero {
  position: relative; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--nav-h) var(--gutter) 36px;
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; transform: translate3d(0, calc(var(--hp, 0) * 9vh), 0); }
#stars-hero, #globe-hero, #sat-hero { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero--sat .hero-title { text-align: left; max-width: 9ch; font-size: clamp(52px, 9.4vw, 168px); margin-bottom: clamp(48px, 9vh, 120px); }
/* scroll-pinned hero: the wrapper supplies the scroll run (js/satellite.js reads its progress),
   the hero sticks for its length; headline and meta clear on --hp while the craft takes the frame */
.hero-pin { height: 300vh; }
.hero-pin > .hero { position: sticky; top: 0; height: 100dvh; }
.hero-pin .hero-art { transform: none; }
.hero-pin .hero-meta { transform: translate3d(0, calc(var(--hp, 0) * 30vh), 0); }
@media (max-width: 900px) { .hero-pin { height: 220vh; } }

/* photographic plate + WebGL light layer (js: heroPlate). The <img> and its CSS fade are the
   fallback; once the shader has drawn a frame `.has-gl` hides them and the canvas takes over. */
.hero--plate .plate, .hero--plate .plate-fade, .hero--plate .gl, .hero--plate .dust {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero--plate .plate { object-fit: cover; object-position: 50% 50%; filter: brightness(.9) contrast(1.05); }
.hero--plate .plate-fade { background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 22%, transparent 62%, #000 100%); }
.hero--plate .gl { display: none; }
.hero--plate.has-gl .gl { display: block; }
.hero--plate.has-gl .plate, .hero--plate.has-gl .plate-fade { visibility: hidden; }
.hero--plate .dust { pointer-events: none; }
/* corner brackets frame the plate like a tracked object */
.hero-frame, .hero-frame i {
  position: absolute; z-index: 1; pointer-events: none;
  top: calc(var(--nav-h) + 16px); left: var(--gutter); right: var(--gutter); bottom: 108px;
}
.hero-frame i { inset: 0; top: 0; left: 0; right: 0; bottom: 0; }
.hero-frame::before, .hero-frame::after, .hero-frame i::before, .hero-frame i::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid rgba(255,255,255,.5);
}
.hero-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-frame::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-frame i::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-frame i::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero--plate .hero-title { text-shadow: 0 0 36px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.35); }
/* narrow screens crop to the bright aperture; an always-on scrim keeps the title and meta readable */
.hero--plate .hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; display: none;
  background: linear-gradient(180deg, transparent 32%, rgba(0,0,0,.38) 56%, rgba(0,0,0,.72) 100%);
}
@media (max-width: 900px) {
  .hero-frame, .hero-frame i { bottom: 170px; }
  .hero--plate .hero-art::after { display: block; }
}
@media (prefers-reduced-motion: reduce) { .hero--plate .dust { display: none; } }

.hero-title {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.03em; line-height: .9;
  font-size: clamp(44px, 7vw, 142px);
  text-align: center;
  margin-bottom: clamp(120px, 24vh, 300px);
  text-wrap: balance;
  transform: translate3d(0, calc(var(--hp, 0) * 16vh), 0);
  opacity: calc(1 - var(--hp, 0) * 1.4);
}

/* engagement feed: the globe's state machine, printed (lives beside the Ironveil telemetry) */
.hud-log {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 10px; line-height: 1.4; color: var(--white-60);
  pointer-events: none; min-width: 300px;
}
.hud-line { display: flex; align-items: center; gap: 8px; white-space: nowrap; animation: hud-in .5s var(--ease-out) both; }
.hud-line:nth-last-child(n+4) { opacity: .45; }
.hud-line:nth-last-child(n+6) { opacity: .22; }
.hud-ts { color: var(--white-40); }
.hud-chip { width: 5px; height: 5px; flex: none; }
.hud-chip--red { background: var(--red); }
.hud-chip--purple { background: var(--purple); }
.hud-chip--green { background: var(--green); }
@keyframes hud-in { from { opacity: 0; transform: translateX(-6px); } }
@media (max-width: 900px) { .hud-log { display: none; } }

.hero-meta {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  color: var(--white-80);
}
.hero-meta .side { align-items: flex-start; }
.hero-meta .tick { margin-top: 4px; }
.side--wide { max-width: 34em; }

@media (max-width: 900px) {
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-title { margin-bottom: 18vh; }
}

/* ============ HOME: MISSION RAIL ============ */

.rail-head {
  display: flex; justify-content: space-between; align-items: center;
  margin: clamp(48px, 9vh, 110px) 0 20px;
  gap: 24px;
}
.tabs { display: flex; gap: 28px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 9px; color: var(--black); opacity: .55; transition: opacity .15s ease; padding: 6px 0; }
.tab .sq { width: 9px; height: 9px; border: 1px solid var(--black); background: transparent; transition: background .15s ease, border-color .15s ease; }
.tab:hover { opacity: .85; }
.tab.is-active { opacity: 1; }
.tab.is-active .sq { background: var(--purple); border-color: var(--purple); }

.arrows { display: flex; align-items: center; gap: 6px; }
.rail-count { color: var(--black-40); margin-right: 14px; }
.rail-count b { font-weight: 400; color: var(--black); }
.arrow {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--black); color: var(--white);
  transition: background .2s ease, color .2s ease;
}
.arrow svg { width: 12px; height: 12px; transition: transform .3s var(--ease-io); }
.arrow:not([disabled]):hover { background: var(--purple); }
.arrow[data-dir="1"]:not([disabled]):hover svg { transform: translateX(2px); }
.arrow[data-dir="-1"]:not([disabled]):hover svg { transform: translateX(-2px); }
.arrow[disabled] { background: var(--black-10); color: var(--black-40); cursor: default; }

.rail {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }

.mcard {
  position: relative; flex: 0 0 min(1180px, calc(100vw - var(--gutter) * 3));
  height: min(74vh, 660px);
  scroll-snap-align: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.mcard-art { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.mcard:hover .mcard-art { transform: scale(1.025); }
.mcard-art canvas { width: 100%; height: 100%; }
/* corner brackets frame each card like a tracked object */
.mcard::before, .mcard::after {
  content: ""; position: absolute; z-index: 3; width: 14px; height: 14px; pointer-events: none;
  border: 1px solid rgba(255,255,255,.55);
}
.mcard::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.mcard::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.mcard--air::before, .mcard--air::after { border-color: rgba(4,16,33,.6); }
.mcard--air::after { border-color: rgba(255,255,255,.55); }

.mcard--air .mcard-art {
  background: linear-gradient(180deg, #f0f3f8 0%, #ccd6ea 30%, #7590ad 58%, #16283c 88%, #041021 100%);
}
.mcard--bm .mcard-art { background: #050505; }
.mcard--ew .mcard-art { background: #0b0714; }

.mcard-head {
  position: absolute; top: 28px; left: 32px; z-index: 2;
  display: flex; align-items: flex-start; gap: 14px;
  max-width: calc(100% - 420px);
}
.mcard-head .idx { margin-top: 12px; opacity: .8; }
.mcard-head h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 4.6vw, 78px);
  letter-spacing: -0.03em; line-height: .9;
  text-shadow: 0 2px 40px rgba(4,16,33,.35);
}
.mcard-copy {
  position: absolute; top: 40px; right: 32px; z-index: 2;
  width: min(340px, 38%);
  font-size: 15px; line-height: 1.45; color: var(--white);
  text-shadow: 0 1px 24px rgba(4,16,33,.4);
}
.mcard--air .mcard-head h3 { color: var(--white); }
.mcard--air .mcard-copy { color: rgba(4,16,33,.88); text-shadow: none; }
.mcard-tags {
  position: absolute; left: 32px; bottom: 26px; z-index: 2;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.mcard-tags span {
  border: 1px solid currentColor; border-radius: 999px;
  padding: 3px 10px 2px;
}
.mcard--air .mcard-tags { color: var(--white); }

@media (max-width: 900px) {
  .mcard { flex-basis: calc(100vw - var(--gutter) * 3); height: 560px; }
  .mcard-head { max-width: calc(100% - 48px); top: 24px; left: 24px; }
  .mcard-copy {
    position: absolute; top: 112px; left: 24px; right: 24px; width: auto;
    padding: 12px 14px; background: rgba(4,10,20,.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.1);
  }
  .mcard--air .mcard-copy { background: rgba(236,240,247,.6); border-color: rgba(4,16,33,.12); }
  .mcard-tags { left: 24px; bottom: 22px; }
}

/* ============ HOME: SYSTEMS GRID ============ */

.section--systems { padding-top: 40px; }

.sys-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--black-10);
  border: 1px solid var(--black-10);
  margin-top: clamp(48px, 8vh, 96px);
}
.sys {
  position: relative; display: block;
  background: var(--white); padding: 44px 40px 40px;
  transition: background .45s var(--ease-out), color .45s var(--ease-out);
}
.sys-top { display: flex; justify-content: space-between; color: var(--black-40); margin-bottom: 56px; transition: color .45s var(--ease-out); }
.sys h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 3.6vw, 64px); letter-spacing: -0.03em; line-height: .9;
  margin-bottom: 14px;
}
.sys p { color: var(--black-80); font-size: 16px; line-height: 1.45; max-width: 30em; margin-bottom: 28px; transition: color .45s var(--ease-out); }
.sys-tags { display: flex; gap: 8px; flex-wrap: wrap; color: var(--black-60); transition: color .45s var(--ease-out); }
.sys-tags span { border: 1px solid var(--black-20); border-radius: 999px; padding: 3px 10px 2px; transition: border-color .45s var(--ease-out); }
/* hover inverts the cell: the catalog card becomes an instrument */
.sys::after {
  content: ""; position: absolute; right: 40px; bottom: 40px;
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10M7 2l4 4-4 4' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.sys:hover, .sys:focus-visible { background: var(--black); color: var(--white); outline: none; }
.sys:hover .sys-top { color: var(--white-40); }
.sys:hover .sys-top .idx { color: var(--purple); }
.sys:hover p { color: var(--white-80); }
.sys:hover .sys-tags { color: var(--white-80); }
.sys:hover .sys-tags span { border-color: var(--white-20); }
.sys:hover::after { opacity: 1; transform: none; }

.sys-more { margin-top: 28px; }

@media (max-width: 900px) {
  .sys-grid { grid-template-columns: 1fr; }
}

/* ============ HOME: PROOF ============ */

.proof { overflow: hidden; }
.proof-art { position: absolute; inset: 0; pointer-events: none; }
#stars-proof { position: absolute; inset: 0; width: 100%; height: 100%; }
/* atmosphere seen from the night side: peaks, then falls back to black so Ironveil's
   dark sky continues without a seam */
.horizon {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 60%;
  background:
    linear-gradient(180deg, transparent 62%, rgba(0,0,0,.55) 84%, #000 100%),
    radial-gradient(ellipse 75% 90% at 50% 104%,
      #d8cff0 0%, #a898d6 14%, #6f5fa8 32%, #352b5e 52%, rgba(21,16,37,.7) 70%, transparent 88%);
}
/* the limb itself, crisp, so the proof horizon reads as the same planet as the hero */
.horizon::after {
  content: ""; position: absolute; left: 50%; top: 14%;
  width: 180%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; border-top: 1.4px solid rgba(250,245,255,.5);
  box-shadow: 0 -8px 34px rgba(196,150,255,.22);
}
.proof .sec-head { position: relative; z-index: 1; }

.proof-stage { position: relative; min-height: 130vh; z-index: 1; }
.proof-center {
  position: sticky; top: 26vh;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
  z-index: 3; /* headline rides above the tiles as they drift past */
  pointer-events: none;
}
.proof-center .t-h1 { text-shadow: 0 2px 60px rgba(0,0,0,.6); }

.tile {
  position: absolute; z-index: 2;
  overflow: visible;
  will-change: transform;
}
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.tile canvas { width: 100%; height: 100%; }
.tile figcaption {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45));
}
.tile .num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 3vw, 54px); letter-spacing: -0.03em; line-height: 1;
}
.tile .cap { color: var(--white-80); padding-bottom: 6px; }

/* corner ticks */
.ct { position: absolute; width: 9px; height: 9px; background: var(--white); z-index: 3; }
.ct-tl { top: -5px; left: -5px; }
.ct-tr { top: -5px; right: -5px; }
.ct-bl { bottom: -5px; left: -5px; }
.ct-br { bottom: -5px; right: -5px; }

.tile-1 { left: 3%; top: 52vh; width: min(440px, 42vw); height: 320px; }
.tile-2 { right: 2%; top: 4vh; width: min(300px, 26vw); height: 340px; }
.tile-3 { right: 4%; top: 68vh; width: min(460px, 44vw); height: 320px; }

@media (max-width: 900px) {
  .proof-stage { min-height: 0; display: flex; flex-direction: column; gap: 20px; }
  .proof-center { position: static; margin-bottom: 24px; }
  .tile { position: static; width: 100% !important; height: 300px; transform: none !important; }
}

/* ============ IRONVEIL (home teaser + program page hero) ============ */

/* The shield over the theater: the globe instrument (same renderer as the original hero)
   with live engagements, the telemetry panel and the event feed. Pure black canvas. */
.ironveil {
  position: relative; min-height: 115vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 70px;
  background: var(--black);
  color: var(--white);
}
.iv-art { position: absolute; inset: 0; }
.iv-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* scrim so the closing copy stays legible over the bright homeland outline */
.ironveil::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.78) 70%);
  pointer-events: none;
}

.sec-head--iv {
  position: relative; z-index: 2;
  color: var(--white-60); border-top: none;
  padding-top: calc(var(--nav-h) + 16px);
  margin-bottom: 0;
}
.js .sec-head--iv::before { display: none; }

.iv-title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(72px, 17vw, 310px);
  letter-spacing: -0.03em; line-height: .88;
  text-align: center;
  color: var(--white);
  margin-top: 2vh;
}

.iv-hud {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px;
  margin-top: clamp(40px, 12vh, 130px);
}
.iv-hud .hud-log { margin-top: 6px; }

.telemetry {
  position: relative; z-index: 2;
  width: 280px;
  padding: 16px 18px;
  background: rgba(6,3,12,.62);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(237,231,217,.95);
}
.telemetry::before {
  content: "LIVE"; position: absolute; top: -1px; right: -1px;
  font: 400 8px/1 var(--font-mono); letter-spacing: .04em;
  padding: 4px 6px 3px 12px; background: var(--purple); color: var(--white);
}
.telemetry::after {
  content: ""; position: absolute; top: 5px; right: 32px; width: 4px; height: 4px; background: #fff;
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .telemetry::after { animation: none; } }
.telemetry .row { display: flex; justify-content: space-between; padding: 4px 0; }
.telemetry .k { opacity: .55; }
.telemetry .v--ok { color: var(--green); }
.telemetry .v--alert { color: var(--red); }

.iv-foot {
  position: relative; z-index: 2;
  margin-top: auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px; align-items: end;
  padding-top: 26vh;
}
.iv-foot { z-index: 3; }
.iv-foot h3 { color: var(--white); max-width: 15em; }
.iv-copy { color: var(--white-80); font-size: 15px; line-height: 1.5; max-width: 36em; }
.iv-copy p + p { margin-top: 14px; }

.iv-cta { margin-top: 22px; }

@media (max-width: 900px) {
  .iv-foot { grid-template-columns: 1fr; gap: 24px; padding-top: 14vh; }
  .iv-hud { margin-top: 8vh; }
}

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

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(70px, 14vh, 150px)) var(--gutter) 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 70% -30%, rgba(159,57,255,.16), transparent 60%),
    var(--black);
}
.page-hero .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the planet limb from the home hero, glimpsed at the corner of every subpage */
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  left: 58%; top: 62%;
  width: 160vw; height: 160vw;
}
.page-hero::before {
  border: 1.4px solid rgba(250,245,255,.7);
  box-shadow: 0 0 0 2px rgba(196,150,255,.16), 0 0 60px 12px rgba(159,57,255,.22), inset 0 0 90px rgba(172,122,235,.14);
}
.page-hero::after {
  width: calc(160vw + 36px); height: calc(160vw + 36px);
  left: calc(58% - 18px); top: calc(62% - 18px);
  border: 1px dashed rgba(255,255,255,.14);
}
.page-hero .crumb {
  position: relative; z-index: 1;
  display: flex; gap: 40px; color: var(--white-60); margin-bottom: clamp(40px, 8vh, 90px);
}
.page-hero h1 {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(52px, 10vw, 170px);
  letter-spacing: -0.03em; line-height: .88;
  max-width: 9em;
}
.page-hero .page-lede {
  position: relative; z-index: 1;
  margin-top: 36px; max-width: 34em;
  font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4;
  color: var(--white-80);
  letter-spacing: -0.01em;
}

/* ============ MISSIONS PAGE ============ */

.m-block { border-top: 1px solid var(--white-10); padding: 70px 0 90px; }
.m-block .head-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px;
  margin-bottom: 44px;
}
.m-block .head-row .idx { color: var(--white-40); margin-top: 14px; }
.m-block h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 6vw, 96px); letter-spacing: -0.03em; line-height: .9;
}
.m-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.m-grid.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.m-grid.flip .m-art { order: 2; }
.m-art { position: relative; min-height: 420px; overflow: hidden; background: var(--navy); }
.m-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-art--air { background: linear-gradient(180deg, #f0f3f8 0%, #ccd6ea 30%, #7590ad 58%, #16283c 88%, #041021 100%); }
.m-art--bm { background: #050505; }
.m-art--ew { background: #0b0714; }

.m-info { display: flex; flex-direction: column; }
.m-info > p { color: var(--white-80); font-size: 17px; line-height: 1.5; max-width: 34em; }
.m-info > p + p { margin-top: 14px; }

.m-caps { margin-top: auto; padding-top: 40px; }
.m-caps .cap-h { color: var(--white-40); margin-bottom: 14px; }
.cap-list { display: flex; flex-direction: column; }
.cap-list .cap-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--white-10);
}
.cap-list .cap-row:last-child { border-bottom: 1px solid var(--white-10); }
.cap-row .sq { width: 8px; height: 8px; background: var(--purple); flex: none; align-self: center; }
.cap-row .cap-name { font-family: var(--font-mono); font-weight: 400; font-size: 13px; text-transform: uppercase; }
.cap-row .cap-desc { color: var(--white-60); font-size: 14px; margin-left: auto; text-align: right; max-width: 20em; }

@media (max-width: 900px) {
  .m-grid, .m-grid.flip { grid-template-columns: 1fr; }
  .m-grid.flip .m-art { order: 0; }
  .m-art { min-height: 320px; }
  .cap-row .cap-desc { display: none; }
}

/* ============ SYSTEMS PAGE ============ */

.sysp { border-top: 1px solid var(--white-10); padding: 64px 0 84px; }
.sysp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); }
.sysp:nth-of-type(even) .sysp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.sysp:nth-of-type(even) .sysp-art { order: 2; }
.sysp-art { position: relative; min-height: 460px; overflow: hidden; }
.sysp-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sysp-art--sentinel { background: #050505; }
.sysp-art--talon { background: linear-gradient(180deg, #f0f3f8 0%, #ccd6ea 34%, #7590ad 62%, #041021 100%); }
.sysp-art--aerie { background: #0a0a0c; }
.sysp-art--veil { background: #0b0714; }

.sysp-info .kicker { display: flex; justify-content: space-between; color: var(--white-40); margin-bottom: 22px; }
.sysp-info h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 7vw, 120px); letter-spacing: -0.03em; line-height: .88;
  margin-bottom: 20px;
}
.sysp-info > p { color: var(--white-80); font-size: 17px; line-height: 1.5; max-width: 32em; }

.spec { margin-top: 40px; border-top: 1px solid var(--white-10); }
.spec .row { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-bottom: 1px solid var(--white-05); }
.spec .k { color: var(--white-40); }
.spec .v { color: var(--white); text-align: right; }
.spec .v--ok { color: var(--green); }

.sysp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; color: var(--white-80); }
.sysp-tags span { border: 1px solid var(--white-20); border-radius: 999px; padding: 3px 10px 2px; }

@media (max-width: 900px) {
  .sysp-grid, .sysp:nth-of-type(even) .sysp-grid { grid-template-columns: 1fr; }
  .sysp:nth-of-type(even) .sysp-art { order: 0; }
  .sysp-art { min-height: 320px; }
}

/* ============ IRONVEIL PAGE ============ */

.iv-pillars { padding: 90px var(--gutter) 110px; }
.pillar-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--white-10); border: 1px solid var(--white-10);
  margin-top: clamp(48px, 8vh, 90px);
}
.pillar {
  background: var(--black); padding: 40px 36px 44px;
  min-height: 300px; display: flex; flex-direction: column;
}
.pillar .idx { color: var(--white-40); margin-bottom: auto; }
.pillar h3 { font-family: var(--font-sans); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; margin: 72px 0 10px; }
.pillar p { color: var(--white-60); font-size: 15px; line-height: 1.5; max-width: 30em; }
.pillar .p-tag { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; color: var(--white-80); }
.pillar .p-tag .sq { width: 8px; height: 8px; background: var(--purple); }

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* phases */
.phases { padding: 0 var(--gutter) 120px; }
.phase-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.4fr) 140px;
  gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--white-10);
}
.phase-row:last-child { border-bottom: 1px solid var(--white-10); }
.phase-row .ph-idx { color: var(--white-40); }
.phase-row .ph-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.02em; }
.phase-row .ph-desc { color: var(--white-60); font-size: 15px; line-height: 1.5; }
.phase-row .ph-status { text-align: right; }
.ph-status .ok { color: var(--green); }
.ph-status .dim { color: var(--white-40); }

@media (max-width: 900px) {
  .phase-row { grid-template-columns: 1fr; gap: 8px; }
  .phase-row .ph-status { text-align: left; }
}

/* ============ ABOUT PAGE ============ */

.ab-hero {
  position: relative;
  padding: calc(var(--nav-h) + 60px) var(--gutter) 0;
  overflow: hidden;
}
.ab-hero .ab-art {
  position: absolute; inset: 0 0 auto;
  width: 100%; height: min(78vh, 720px);
  pointer-events: none;
}
.ab-hero h1 {
  position: relative;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 7.2vw, 118px); letter-spacing: -0.03em; line-height: .9;
  text-align: center;
  margin: clamp(80px, 18vh, 200px) auto clamp(120px, 24vh, 260px);
}
.ab-hero-foot {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
  color: var(--white-60);
  padding-bottom: clamp(48px, 8vh, 90px);
}
.ab-hero-note {
  display: flex; gap: 10px;
  max-width: 520px; text-align: left;
  color: var(--white-60); line-height: 1.6;
}
.ab-hero-note .tick { margin-top: 3px; }

.ab-stats {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
  padding-bottom: clamp(60px, 9vh, 110px);
}
.stat {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  border-top: 1px solid var(--white-10);
  padding: 22px 0 34px;
}
.stat-n {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(52px, 5.6vw, 96px); line-height: .85; letter-spacing: -0.03em;
}
.stat-l { text-align: right; color: var(--white-60); }
.stat-l em { display: block; font-style: normal; color: var(--white-40); margin-top: 6px; }

.split-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.split-note { max-width: 380px; text-align: left; color: inherit; opacity: .55; line-height: 1.6; }

.momentum { padding: clamp(70px, 10vh, 120px) var(--gutter) 0; }
.momentum .sec-head { margin-bottom: clamp(36px, 6vh, 64px); }
.tl-panel {
  position: relative;
  background:
    radial-gradient(130% 95% at 50% 125%, #b18cff 0%, #5b3a9e 20%, #1b1030 52%, #05030a 80%),
    #05030a;
  overflow: hidden;
  padding: clamp(32px, 5vh, 56px) clamp(18px, 2.5vw, 40px);
  color: var(--white);
}
.tl-panel .stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.tl-scroll { position: relative; overflow-x: auto; }
.tl-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(9, minmax(148px, 1fr));
  gap: 0 10px;
  min-width: 1330px;
}
.tl-grid::before {
  content: ""; position: absolute; left: 0; right: 0;
  top: 237px; height: 1px;
  background: rgba(255,255,255,.28);
}
.tl-above {
  height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px;
}
.tl-below {
  height: 150px;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 8px;
}
.tl-year {
  position: relative; z-index: 1;
  display: inline-flex; padding: 6px 16px 5px;
  margin: 14px 0;
  background: #060409; border: 1px solid var(--white-20);
  color: var(--white);
}
.tl-card {
  background: rgba(2,1,5,.88); border: 1px solid var(--white-10);
  color: var(--white-80);
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1.45; text-transform: uppercase;
  padding: 8px 10px;
  max-width: 168px;
}
.tl-col--now .tl-year { background: var(--purple); border-color: var(--purple); }
.tl-col--now .tl-card { background: var(--purple); border-color: var(--purple); color: var(--white); }
.tl-col--next .tl-year { color: var(--white-40); border-color: var(--white-10); }
.tl-col--next .tl-card { background: transparent; border: 1px dashed var(--white-20); color: var(--white-40); }
.tl-foot { position: relative; display: block; margin-top: 14px; color: var(--white-40); }

.solve { padding: clamp(90px, 13vh, 150px) var(--gutter) clamp(90px, 13vh, 150px); }
.solve .sec-head { margin-bottom: clamp(36px, 6vh, 64px); }
.solve-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.solve-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 3.3;
  background: var(--navy);
}
.solve-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.solve-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
  color: var(--white);
}
.solve-card strong { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 19px; }
.solve-card span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--white-60); margin-top: 6px; max-width: 34em; }

.whynow { background: var(--white); color: var(--black); padding: 0 var(--gutter) clamp(100px, 15vh, 170px); }
.whynow .sec-head { color: var(--black-60); border-top-color: var(--black-10); }
.whynow .tick { background: var(--black); }
.why-p {
  max-width: 560px;
  margin-left: auto; margin-right: 6%;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 18px; line-height: 1.55;
}

.convict { background: var(--black); padding: clamp(90px, 13vh, 150px) var(--gutter); }
.conv-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(48px, 8vh, 90px);
}
.conv { border-top: 1px solid var(--white-10); padding-top: 18px; }
.conv-idx { color: var(--white-40); }
.conv h3 { font-family: var(--font-sans); font-weight: 500; font-size: 17px; line-height: 1.25; margin: 44px 0 12px; }
.conv p { font-size: 13.5px; line-height: 1.55; color: var(--white-40); }

.pull { background: var(--white); color: var(--black); padding: clamp(60px, 9vh, 110px) var(--gutter); }
.q-mark {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(110px, 14vw, 240px); line-height: .55;
}
.q-mark--end { text-align: right; }
.pull-row {
  display: flex; align-items: center; gap: clamp(32px, 5vw, 80px);
  max-width: 1060px; margin: 10px auto;
  padding: clamp(20px, 4vh, 50px) 0;
}
.pull-portrait {
  position: relative; flex: none;
  width: min(300px, 32vw); aspect-ratio: 3 / 3.6;
  background: var(--warm-black);
  overflow: hidden;
}
.pull-portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.pull-mark {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 6vw, 96px);
  color: rgba(255,255,255,.85);
  text-shadow: 0 2px 30px rgba(0,0,0,.55);
}
.pull-quote p {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(19px, 2.1vw, 27px); line-height: 1.35; letter-spacing: -0.01em;
}
.pull-quote footer { margin-top: 26px; color: var(--black-60); }
.pull-quote footer em { display: block; font-style: normal; color: var(--black-40); margin-top: 4px; }

.team { background: var(--black); padding: 0 var(--gutter) clamp(100px, 15vh, 170px); }
.team .sec-head { margin-bottom: clamp(36px, 6vh, 64px); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lead-tile {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 3.7;
  display: grid; place-items: center;
  background:
    radial-gradient(95% 70% at 50% 112%, rgba(159,57,255,.42), rgba(159,57,255,0) 62%),
    linear-gradient(180deg, #0b0910, var(--void-purple));
  border: 1px solid var(--white-05);
}
.lt-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(72px, 8.5vw, 140px); letter-spacing: -0.02em;
  color: rgba(255,255,255,.16);
}
.lt-info { position: absolute; left: 18px; bottom: 16px; }
.lt-info h3 { font-family: var(--font-sans); font-weight: 500; font-size: 19px; }
.lt-info .t-micro { display: block; color: var(--white-40); margin-top: 5px; }
.team-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(44px, 7vh, 72px);
}
.lead-min { border-top: 1px solid var(--white-10); padding-top: 16px; }
.lead-min h3 { font-family: var(--font-sans); font-weight: 500; font-size: 16px; }
.lead-min .t-micro { display: block; color: var(--white-40); margin: 5px 0 10px; }
.lead-min p { font-size: 13.5px; line-height: 1.5; color: var(--white-60); }

@media (max-width: 900px) {
  .ab-stats { grid-template-columns: 1fr; gap: 0; padding-bottom: 60px; }
  .ab-hero-foot { flex-direction: column; gap: 24px; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .solve-grid, .team-grid, .team-row { grid-template-columns: 1fr; }
  .conv-grid { grid-template-columns: 1fr; gap: 36px; }
  .conv h3 { margin-top: 16px; }
  .why-p { margin-right: 0; }
  .pull-row { flex-direction: column; align-items: flex-start; }
  .pull-portrait { width: min(300px, 70vw); }
}

.principles { padding: 0 var(--gutter) 110px; }
.prin-list { border-top: 1px solid var(--white-10); }
.prin {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--white-10);
  align-items: baseline;
}
.prin .p-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 44px); letter-spacing: -0.02em; }
.prin .p-idx { color: var(--white-40); }
.prin p { color: var(--white-60); font-size: 15px; line-height: 1.5; }

@media (max-width: 900px) {
  .prin { grid-template-columns: 1fr; gap: 8px; }
}

/* ============ CAREERS PAGE ============ */

.values { padding: 0 var(--gutter) 100px; }

.roles { padding: 0 var(--gutter) 120px; }
.roles .group-h {
  display: flex; align-items: center; gap: 10px;
  color: var(--white-60); margin: 56px 0 8px;
}
.role-row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 20px; align-items: center;
  padding: 22px 0; border-top: 1px solid var(--white-10);
  transition: padding-left .2s ease;
}
.role-row:last-of-type { border-bottom: 1px solid var(--white-10); }
.role-row:hover { padding-left: 10px; }
.role-row .r-title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(19px, 2vw, 26px); letter-spacing: -0.01em; }
.role-row .r-meta { color: var(--white-40); }
.role-row .r-arrow { color: var(--white-40); justify-self: end; transition: color .15s ease, transform .2s ease; }
.role-row:hover .r-arrow { color: var(--purple); transform: translateX(4px); }
.role-row .r-arrow svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .role-row { grid-template-columns: minmax(0, 1fr) 40px; }
  .role-row .r-meta { display: none; }
}

.clearance-note {
  margin: 64px 0 0; padding: 28px 32px;
  border: 1px solid var(--white-10);
  color: var(--white-60); font-size: 15px; line-height: 1.5; max-width: 44em;
}
.clearance-note .t-micro { color: var(--white-40); display: block; margin-bottom: 10px; }

/* ============ NEWS PAGE ============ */

.news-list { padding: 0 var(--gutter) 120px; }
.news-item {
  display: grid; grid-template-columns: 150px minmax(0, 1.6fr) minmax(0, 1fr) 40px;
  gap: 28px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--white-10);
  transition: padding-left .2s ease;
}
.news-item:last-child { border-bottom: 1px solid var(--white-10); }
.news-item:hover { padding-left: 10px; }
.news-item .n-date { color: var(--white-40); }
.news-item h3 { font-family: var(--font-sans); font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.01em; line-height: 1.15; }
.news-item p { color: var(--white-60); font-size: 15px; line-height: 1.5; }
.news-item .n-arrow { color: var(--white-40); justify-self: end; align-self: center; }
.news-item:hover .n-arrow { color: var(--purple); }
.news-item .n-arrow svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-item .n-arrow { display: none; }
}

/* ============ CONTACT PAGE ============ */

.contact-wrap {
  padding: 0 var(--gutter) 130px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 110px);
}
.contact-side .t-h3 { max-width: 16em; margin-bottom: 32px; }
.contact-side .telemetry { margin-top: 0; color: var(--white); width: 100%; max-width: 330px; border: 1px solid var(--white-10); padding: 24px; }
.contact-side .telemetry .k { color: var(--white-40); }
.contact-side .telemetry .v--ok { color: var(--green); }
.contact-side .direct { margin-top: 40px; color: var(--white-60); }
.contact-side .direct a { color: var(--white); border-bottom: 1px solid var(--white-20); }
.contact-side .direct a:hover { border-color: var(--white); }

.form { display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { color: var(--white-60); display: flex; align-items: center; gap: 8px; transition: color .2s ease; }
.field label::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--white-40); transition: background .2s ease, border-color .2s ease; }
.field:focus-within label { color: var(--white); }
.field:focus-within label::before { background: var(--purple); border-color: var(--purple); }
.field input, .field select, .field textarea {
  background: transparent; border: 1px solid var(--white-20);
  color: var(--white); font-family: var(--font-sans); font-size: 16px;
  padding: 14px 16px; border-radius: 0;
  transition: border-color .15s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff66'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--black); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); }
.field .hint { color: var(--white-40); font-size: 13px; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: var(--red); }
.field .err { color: var(--red); font-size: 13px; display: none; }
.field.is-error .err { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-status { color: var(--green); display: none; }
.form-status.show { display: block; }

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ CTA BAND (subpages) ============ */

.cta-band {
  border-top: 1px solid var(--white-10);
  padding: 110px var(--gutter) 120px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  background: radial-gradient(ellipse 90% 90% at 50% 130%, rgba(159,57,255,.18), transparent 65%);
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 6.5vw, 104px); letter-spacing: -0.03em; line-height: .9;
  max-width: 9em;
}

/* ============ FOOTER ============ */

.footer {
  position: relative;
  background: linear-gradient(180deg, #eae6de 0%, #e1dcd6 30%, #d9d0f2 62%, #c2a9e6 100%);
  color: var(--black);
  padding: clamp(90px, 14vh, 150px) var(--gutter) clamp(18px, 1.6vw, 34px);
  overflow: hidden;
}

.f-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.f-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 7vw, 120px); letter-spacing: -0.03em; line-height: .9;
  max-width: 8em;
}

.f-links {
  margin-top: clamp(80px, 14vh, 160px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.f-links .col { display: flex; flex-direction: column; gap: 10px; }
.f-links .col-h { color: var(--black-40); margin-bottom: 6px; }
.f-links a { color: var(--black-60); transition: color .1s ease; width: fit-content; }
.f-links a:hover { color: var(--black); }

.f-legal {
  margin-top: clamp(60px, 10vh, 110px);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--black-60);
  padding-bottom: 34px;
}

.f-wordmark {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--font-display); font-weight: 700;
  font-size: 23.5vw; line-height: .76;
  letter-spacing: -0.01em;
  color: var(--black);
}
.f-wordmark .okt {
  height: .684em; width: .684em; /* Funnel Display 700 cap height; explicit square */
  align-self: flex-end;
  margin: 0;
  transform: none;
}

@media (max-width: 900px) {
  .f-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ CURSOR ============ */
/* The brand octagon follows the pointer on fine-pointer devices; a dot marks the exact point.
   Difference blending keeps it legible across black and white canvases. */

.has-cursor body { cursor: none; }
.has-cursor a, .has-cursor button, .has-cursor label, .has-cursor .tab, .has-cursor .arrow { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }

.cursor { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.cursor.is-on { opacity: 1; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; mix-blend-mode: difference; color: #fff; will-change: transform; }
.cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #fff; }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  transition: width .35s var(--ease-io), height .35s var(--ease-io), margin .35s var(--ease-io), opacity .2s ease, color .3s ease;
}
.cursor.is-hot .cursor-ring { width: 48px; height: 48px; margin: -24px 0 0 -24px; color: var(--purple); mix-blend-mode: normal; }
.cursor.is-down .cursor-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor.is-text .cursor-ring, .cursor.is-text .cursor-dot { opacity: 0; }

/* ============ REDUCED MOTION (last, so it wins) ============ */
@media (prefers-reduced-motion: reduce) {
  .nav, .btn::before, .btn-void svg, .mcard-art, .sys, .sys::after, .arrow svg, .cursor-ring, .field label::before { transition: none; }
  .telemetry::after, .menu a, .hud-line { animation: none; }
  .hero-art, .hero-title { transform: none; opacity: 1; }
  .hero-pin { height: auto; }
  .hero-pin > .hero { position: relative; height: auto; }
}
