/* ============================================================
   FORCE.SPACE — Force AI company site
   Visual system: the decoded STARHELM design language, web scale.
   Laws: radius 0 everywhere · depth = blur + hairline + opacity,
   never a shadow · tracking scales inversely with size · red is
   event-reserved · blue means ours · black is the canvas.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Plex Cond";
  src: url("/fonts/ibm-plex-sans-condensed-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Cond";
  src: url("/fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Cond";
  src: url("/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Sans Var";
  src: url("/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- tokens (territory-voice.tokens.json, web-normalized) ---------- */
:root {
  --void: #000000;
  --panel: #131a20;
  --panel-deep: #0b0e12;
  --world: #98acc8;        /* the board's material — starfield, wireframes, diagrams */
  --chrome: #b0bbca;       /* hairlines + labels */
  --bright: #d8dde5;       /* high-emphasis text */
  --blue: #1a75ff;         /* ours / friendly */
  --active: #3279e3;       /* selection / interaction */
  --orbit: #336dc4;
  --red: #ed2c2c;          /* event-reserved. once per screen, if at all */
  --amber: #ffc44e;
  --stale: #b7b7c7;

  --hairline: 1px solid rgba(176, 187, 202, 0.16);
  --hairline-strong: 1px solid rgba(176, 187, 202, 0.32);

  --font-display: "Plex Cond", "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-body: "Plex Sans Var", "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-mono: "Plex Mono", "IBM Plex Mono", ui-monospace, monospace;

  --w: min(1280px, calc(100vw - clamp(24px, 5vw, 72px)));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--chrome);
  font-family: var(--font-body);
  font-weight: 380;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(50, 121, 227, 0.35); color: var(--bright); }

/* ---------- type registers ----------
   tracking scales INVERSELY with size: micro labels ride wide,
   display sizes ride tight. */
.lbl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--chrome);
}
.lbl b { color: var(--bright); font-weight: 500; }
.lbl .bkt { color: rgba(176, 187, 202, 0.45); }
.data {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--chrome);
}
h1, h2, h3 { font-family: var(--font-display); color: var(--bright); font-weight: 600; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.012em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.008em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.15; letter-spacing: 0.01em; font-weight: 500; }
h1 em, h2 em { font-style: normal; color: var(--world); }
.body-copy { max-width: 62ch; font-size: clamp(1rem, 1.25vw, 1.125rem); color: rgba(176, 187, 202, 0.92); }
.body-copy strong { color: var(--bright); font-weight: 500; }
.qualifier { font-size: 13px; line-height: 1.55; color: rgba(176, 187, 202, 0.55); }

/* ---------- layout primitives ---------- */
.wrap { width: var(--w); margin-inline: auto; }
section { position: relative; padding: clamp(96px, 14vh, 176px) 0; border-top: var(--hairline); }
section:first-of-type { border-top: none; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; margin-bottom: clamp(40px, 6vh, 72px);
}
.section-head .data { color: rgba(176, 187, 202, 0.5); }

/* ---------- chrome: the frosted system ---------- */
.frost {
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: var(--hairline);
}

/* ---------- boot bar ---------- */
.boot {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: var(--hairline);
}
.boot-inner {
  width: var(--w); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 24px;
}
.boot-brand { display: flex; align-items: center; gap: 12px; }
.boot-brand svg { width: 22px; height: 22px; }
.boot-brand .word {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--bright);
}
.boot-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }
.boot-nav a {
  position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: 10px;
  letter-spacing: 0.38em; text-transform: uppercase;
  color: rgba(176, 187, 202, 0.75);
  padding: 4px 0 4px 10px;
  transition: color 0.25s var(--ease);
}
.boot-nav a::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: var(--active); opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.boot-nav a:hover, .boot-nav a:focus-visible { color: var(--bright); }
.boot-nav a:hover::before, .boot-nav a:focus-visible::before { opacity: 1; }
.boot-clock { color: rgba(176, 187, 202, 0.6); font-size: 11px; white-space: nowrap; }
@media (max-width: 720px) {
  .boot-clock { display: none; }
  .boot-nav a { letter-spacing: 0.26em; }
}

/* ---------- buttons: drawn with light, never filled ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--bright);
  padding: 15px 26px 14px 28px;
  border: 1px solid rgba(176, 187, 202, 0.35);
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), outline-color 0.3s var(--ease), color 0.3s var(--ease);
  outline: 1px solid rgba(50, 121, 227, 0);
  outline-offset: 4px;
  cursor: pointer;
}
.btn .tip { color: var(--active); transition: transform 0.3s var(--ease); }
.btn:hover, .btn:focus-visible {
  border-color: var(--active);
  outline-color: rgba(50, 121, 227, 0.3);
  color: #fff;
}
.btn:hover .tip { transform: translateX(3px); }
.btn.quiet { border-color: rgba(176, 187, 202, 0.16); background: transparent; }
.btn.quiet:hover { border-color: var(--active); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 0;
  overflow: hidden;
}
#field { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.hero-mark {
  position: absolute; z-index: 1;
  right: max(calc((100vw - 1280px) / 2), 4vw);
  top: 50%;
  width: clamp(280px, 34vw, 560px);
  transform: translateY(-52%);
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 980px) {
  .hero-mark { width: 64vw; right: -14vw; opacity: 0.28; }
}
.hero-content { position: relative; z-index: 2; }
.hero .lbl { margin-bottom: 28px; }
.hero h1 { max-width: 15ch; margin-bottom: 32px; }
.hero-lede { margin-bottom: 48px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(56px, 9vh, 96px); }
.hero-strip {
  position: relative; z-index: 2;
  border-top: var(--hairline);
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.hero-strip-inner {
  width: var(--w); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(18px, 4vw, 56px);
  padding: 16px 0;
}
.strip-item { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.strip-item .k { font-family: var(--font-display); font-size: 9px; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(176,187,202,0.45); }
.strip-item .v { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--chrome); text-transform: uppercase; }
.strip-item .v.on { color: var(--blue); }

/* ---------- statement ---------- */
.statement h2 { max-width: 22ch; margin-bottom: 40px; }
.statement .body-copy { margin-left: auto; }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 900px) { .statement-grid { grid-template-columns: 1fr; } }

/* ---------- the loop ---------- */
.loop-rail { border: var(--hairline); background: rgba(19, 26, 32, 0.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.loop-track { display: grid; grid-template-columns: repeat(5, 1fr); }
.loop-stage {
  position: relative;
  padding: 26px 22px 24px;
  border-right: var(--hairline);
  border-top: var(--hairline);
  transition: background 0.35s var(--ease);
}
.loop-track .loop-stage:nth-child(-n+5) { border-top: none; }
.loop-track .loop-stage:nth-child(5n) { border-right: none; }
.loop-stage .idx { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: rgba(176,187,202,0.4); display: block; margin-bottom: 14px; }
.loop-stage .name { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bright); display: block; margin-bottom: 10px; }
.loop-stage p { font-size: 12.5px; line-height: 1.55; color: rgba(176,187,202,0.62); }
.loop-stage::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: var(--active); opacity: 0; transition: opacity 0.3s var(--ease);
}
.loop-stage:hover { background: rgba(50, 121, 227, 0.06); }
.loop-stage:hover::before { opacity: 1; }
@media (max-width: 1080px) {
  .loop-track { grid-template-columns: repeat(2, 1fr); }
  .loop-track .loop-stage { border-top: var(--hairline); }
  .loop-track .loop-stage:nth-child(-n+2) { border-top: none; }
  .loop-track .loop-stage:nth-child(5n) { border-right: var(--hairline); }
  .loop-track .loop-stage:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .loop-track { grid-template-columns: 1fr; }
  .loop-track .loop-stage { border-right: none !important; border-top: var(--hairline); }
  .loop-track .loop-stage:first-child { border-top: none; }
}
.loop-foot { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: var(--hairline); }
.loop-foot .pulse { width: 6px; height: 6px; background: var(--blue); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.loop-after { margin-top: 40px; }

/* ---------- starhelm panel ---------- */
.sh-panel {
  position: relative;
  border: var(--hairline);
  background: rgba(19, 26, 32, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
@media (max-width: 900px) { .sh-panel { grid-template-columns: 1fr; } }
.sh-copy { padding: clamp(32px, 5vw, 64px); }
.sh-copy h2 { margin: 18px 0 24px; }
.sh-copy .body-copy { margin-bottom: 20px; }
.sh-copy .qualifier { max-width: 52ch; margin-bottom: 36px; }
.sh-orbit { position: relative; border-left: var(--hairline); min-height: 380px; overflow: hidden; }
@media (max-width: 900px) { .sh-orbit { border-left: none; border-top: var(--hairline); min-height: 320px; } }
.sh-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* reticle corners */
.reticle { position: absolute; width: 72px; height: 72px; }
.reticle i { position: absolute; width: 16px; height: 16px; border: 0 solid var(--blue); }
.reticle i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.reticle i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.reticle i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.reticle i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.reticle .tag {
  position: absolute; top: -22px; left: 0;
  font-family: var(--font-display); font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--blue); white-space: nowrap;
}

/* ---------- receipts ---------- */
.receipts-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--hairline); }
@media (max-width: 900px) { .receipts-grid { grid-template-columns: 1fr; } }
.receipt {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  border-right: var(--hairline);
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.receipt:last-child { border-right: none; }
@media (max-width: 900px) { .receipt { border-right: none; border-bottom: var(--hairline); } .receipt:last-child { border-bottom: none; } }
.receipt .rid { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--active); display: block; margin-bottom: 22px; }
.receipt h3 { margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; }
.receipt p { font-size: 14.5px; line-height: 1.62; color: rgba(176,187,202,0.88); margin-bottom: 18px; }
.receipt .qualifier { border-top: var(--hairline); padding-top: 14px; }
.receipts-note { margin-top: 28px; }

/* ---------- doctrine ---------- */
.doctrine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
@media (max-width: 900px) { .doctrine-grid { grid-template-columns: 1fr; gap: 44px; } }
.tenet { border-top: var(--hairline-strong); padding-top: 24px; }
.tenet .lbl { font-size: 10px; margin-bottom: 18px; color: var(--world); }
.tenet h3 { margin-bottom: 14px; }
.tenet p { font-size: 14.5px; line-height: 1.65; color: rgba(176,187,202,0.72); }

/* ---------- company ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .company-grid { grid-template-columns: 1fr; } }
.company h2 { margin-bottom: 28px; max-width: 14ch; }

/* ---------- contact ---------- */
.contact { text-align: left; }
.contact h2 { max-width: 16ch; margin: 18px 0 28px; }
.contact .body-copy { margin-bottom: 44px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- footer ---------- */
footer { border-top: var(--hairline); padding: 40px 0 48px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.foot-inner .lbl { font-size: 9px; letter-spacing: 0.36em; color: rgba(176,187,202,0.45); }
.foot-links { display: flex; gap: 28px; }
.foot-links a { font-family: var(--font-display); font-size: 9px; font-weight: 500; letter-spacing: 0.36em; text-transform: uppercase; color: rgba(176,187,202,0.6); transition: color 0.25s var(--ease); }
.foot-links a:hover { color: var(--bright); }
.foot-note { width: 100%; margin-top: 18px; font-size: 11.5px; color: rgba(176,187,202,0.4); font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ---------- reveal motion (JS-gated: no-JS users and crawlers see everything) ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; } .rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; } .rv-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .loop-foot .pulse { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@keyframes authPulse {
  0%, 100% { opacity: 0.05; }
  8% { opacity: 0.3; }
  16% { opacity: 0.05; }
}

/* ---------- small-screen discipline ---------- */
.boot-nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .boot-nav { overflow-x: auto; scrollbar-width: none; }
  .boot-nav::-webkit-scrollbar { display: none; }
  .boot-nav .nx { display: none; }
}
