/* ============================================================
   FUTURE VANGUARD LLC :: AMBER CONSOLE
   Palette: Void Graphite / Gunmetal / Hull Line / Signal White
            Slate Ink / Phosphor Amber / Scope Cyan
   ============================================================ */

:root {
  --void: #0B0E11;
  --surface: #14181D;
  --surface-2: #0E1116;
  --line: #262C33;
  --line-soft: #1B2026;
  --ink: #E8E6E1;
  --muted: #8B9299;
  --amber: #FFB000;
  --amber-dim: rgba(255, 176, 0, 0.55);
  --amber-ghost: rgba(255, 176, 0, 0.12);
  --cyan: #7FDBD4;
  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'Public Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
  --rail-w: 56px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-mech: cubic-bezier(0.77, 0, 0.18, 1);
}

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

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

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--void); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--void);
  font-family: var(--font-mono); font-size: 12px; padding: 10px 16px;
}
.skip:focus { left: 0; }

.mono { font-family: var(--font-mono); }

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}
.lede strong { color: var(--ink); font-weight: 500; }

.amber { color: var(--amber); }
.cyan { color: var(--cyan); }

/* ---------- layout shell ---------- */

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

main { display: block; }

/* rails: instrument margins */
.rail {
  position: fixed; top: 0; bottom: 0; width: var(--rail-w);
  z-index: 60; display: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--muted); text-transform: uppercase;
}
.rail-left { left: 0; border-right: 1px solid var(--line-soft); }
.rail-right { right: 0; border-left: 1px solid var(--line-soft); }

.rail-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 84px 0 28px;
}
.rail-tag { writing-mode: vertical-rl; white-space: nowrap; }
.rail-right .rail-tag { transform: rotate(180deg); }
.rail-tag b { color: var(--amber); font-weight: 500; }
.rail-tag i { color: var(--cyan); font-style: normal; }

.rail-track {
  position: relative; flex: 1; width: 1px; margin: 24px 0;
  background: repeating-linear-gradient(
    to bottom, var(--line) 0 1px, transparent 1px 14px);
}
.rail-fill {
  position: absolute; top: 0; left: 0; width: 1px;
  height: calc(var(--scroll, 0) * 100%);
  background: var(--amber);
}

@media (min-width: 1240px) {
  .rail { display: block; }
  .nav { padding-left: calc(var(--rail-w) + 24px); padding-right: calc(var(--rail-w) + 24px); }
  body { padding-left: var(--rail-w); padding-right: var(--rail-w); }
}

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

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 40px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(11, 14, 17, 0.94);
  border-bottom-color: var(--line-soft);
}

.brand {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-tick {
  width: 9px; height: 9px; background: var(--amber);
  display: inline-block; flex: none;
}
.brand b { font-weight: 400; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  padding: 6px 2px; position: relative;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--amber); }
.nav-links a[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--amber);
}
.nav-links .nav-cta {
  border: 1px solid var(--line); padding: 9px 18px; color: var(--ink);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.nav-links .nav-cta:hover { border-color: var(--amber); color: var(--amber); }
.nav-links .nav-cta[aria-current="page"]::before { display: none; }
.nav-links .nav-cta[aria-current="page"] { border-color: var(--amber); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px; padding: 10px 4px;
}
.nav-burger span {
  width: 20px; height: 1px; background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    background: var(--void);
    flex-direction: column; align-items: flex-start;
    justify-content: flex-start; gap: 0;
    padding: 8vh clamp(20px, 8vw, 48px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-top: 1px solid var(--line-soft);
  }
  body.nav-open .nav-links { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { background: var(--void); border-bottom-color: var(--line-soft); }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links a {
    font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
    font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.01em;
    color: var(--ink); padding: 14px 0; width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a[aria-current="page"]::before { display: none; }
  .nav-links .nav-cta { border: none; padding: 14px 0; }
  .nav-links .nav-cta:hover { color: var(--amber); }
}

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

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid var(--amber);
  transition: letter-spacing 0.3s var(--ease-out), background-color 0.25s,
              color 0.25s, border-color 0.25s, transform 0.35s var(--ease-out);
  will-change: transform;
}
.btn:hover { letter-spacing: 0.13em; }
.btn-solid { background: var(--amber); color: var(--void); }
.btn-solid:hover { background: #FFC133; border-color: #FFC133; }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

.js .reveal-load {
  opacity: 0;
  transform: translateY(14px);
  clip-path: inset(0 0 100% 0);
}
.js.loaded .reveal-load {
  animation: loadwipe 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 0.15s);
}
@keyframes loadwipe {
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 -20% 0); }
}

/* redaction bars: declassification gesture */
.redact { position: relative; display: inline-block; }
.redact::after {
  content: ""; position: absolute; inset: 0.04em -0.08em;
  background: var(--amber);
  transform-origin: right center;
}
.redact-dark::after { background: var(--line); }
.js.loaded .redact::after {
  animation: redactout 0.9s var(--ease-mech) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 0.7s);
}
@keyframes redactout {
  to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-load {
    opacity: 1 !important; transform: none !important;
    clip-path: none !important; animation: none !important; transition: none !important;
  }
  .redact::after { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: max(92vh, 640px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
}
#fieldCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: clamp(20px, 3vh, 36px);
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--amber); }

.hero-title {
  font-size: clamp(2.7rem, 8.2vw, 7.6rem);
  margin-bottom: clamp(28px, 4vh, 44px);
}
.hero-title .line { display: block; }

.hero-sub { margin-bottom: clamp(30px, 4.5vh, 48px); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-meta {
  position: relative; z-index: 2;
  width: 100%;
  margin-top: clamp(48px, 8vh, 96px);
  border-top: 1px solid var(--line-soft);
  padding-top: 18px; padding-bottom: 34px;
  display: flex; flex-wrap: wrap; gap: 14px 44px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.hero-meta b { color: var(--ink); font-weight: 400; }
.hero-meta .tick { color: var(--amber); }
.hero-meta .sys b { color: var(--cyan); }

/* ---------- section chrome ---------- */

.sec { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.sec-band { background: var(--surface-2); }

.sec-head { position: relative; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-index {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--amber);
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.sec-index::before { content: ""; width: 34px; height: 1px; background: var(--amber); }

.ghost-num {
  position: absolute; top: -0.28em; right: -0.02em; z-index: 0;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(7rem, 17vw, 15rem); line-height: 1;
  color: rgba(232, 230, 225, 0.05);
  pointer-events: none; user-select: none;
}
.sec-title {
  position: relative; z-index: 1;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  max-width: 24ch;
}

/* diagonal seams: sheared hull plating */
.seam { display: block; height: clamp(36px, 5vw, 84px); position: relative; }
.seam svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- stats strip ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat {
  padding: clamp(24px, 3vw, 44px) clamp(16px, 2.5vw, 40px);
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-mono); font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.1;
  color: var(--amber);
}
.stat-label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px; line-height: 1.8;
}
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line-soft); }
  .stat:first-child { border-top: none; }
}

/* ---------- capabilities teaser rows ---------- */

.cap-rows { border-top: 1px solid var(--line); }
.cap-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr) 60px;
  gap: clamp(14px, 3vw, 40px); align-items: center;
  padding: clamp(22px, 3vw, 34px) clamp(4px, 1vw, 16px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.3s;
}
.cap-row:hover { background: var(--surface); }
.cap-row-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  letter-spacing: 0.1em;
}
.cap-row:hover .cap-row-num { color: var(--amber); }
.cap-row-title {
  font-family: var(--font-display); font-stretch: 118%; font-weight: 750;
  text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.15;
}
.cap-row-desc { font-size: 0.94rem; color: var(--muted); line-height: 1.6; }
.cap-row-arrow {
  font-size: 1.2rem; color: var(--muted); text-align: right;
  transition: color 0.3s, transform 0.3s var(--ease-out);
}
.cap-row:hover .cap-row-arrow { color: var(--amber); transform: translateX(6px); }
@media (max-width: 860px) {
  .cap-row { grid-template-columns: 48px 1fr 32px; }
  .cap-row-num { grid-row: 1; grid-column: 1; }
  .cap-row-title { grid-row: 1; grid-column: 2; }
  .cap-row-desc { grid-row: 2; grid-column: 2; }
  .cap-row-arrow { grid-column: 3; grid-row: 1 / 3; }
}

.sec-foot { margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- browser frames & work cards ---------- */

.frame-wrap { position: relative; }

.frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.3s;
  will-change: transform;
}
.frame.settling { transition: transform 0.6s var(--ease-out), border-color 0.3s; }
.frame-wrap:hover .frame { border-color: #39424C; }

.frame::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 176, 0, 0.07), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
.frame-wrap:hover .frame::after { opacity: 1; }

.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
}
.fdot {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--line); flex: none;
}
.furl {
  margin-left: 12px; font-size: 10px; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fstatus { margin-left: auto; font-size: 9px; letter-spacing: 0.2em; flex: none; }
.fstatus.live { color: var(--cyan); }
.fstatus.dev { color: var(--muted); }

.frame-shot { position: relative; overflow: hidden; background: var(--void); }
.frame-shot img { width: 100%; height: auto; }

/* schematic placeholder for systems with no public instance */
.frame-schematic {
  aspect-ratio: 1440 / 900;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(to right, var(--line-soft) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 60px),
    var(--surface-2);
}
.frame-schematic::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--line);
}
.frame-schematic::after {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.schematic-label {
  position: relative; z-index: 2;
  background: var(--void); border: 1px solid var(--line);
  padding: 18px 26px; text-align: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  line-height: 2.1; max-width: 90%;
}
.schematic-label b { color: var(--amber); font-weight: 500; display: block; }

/* phone companion frame */
.phone {
  position: absolute; z-index: 4;
  right: clamp(-14px, -1vw, -8px); bottom: -26px;
  width: clamp(84px, 24%, 130px);
  background: var(--surface); border: 1px solid var(--line);
  padding: 5px; box-shadow: 0 0 0 1px rgba(11, 14, 17, 0.9);
}
.phone img { width: 100%; height: auto; }
.phone::before {
  content: ""; display: block; margin: 2px auto 5px;
  width: 26px; height: 2px; background: var(--line);
}

/* keep the dimension line clear of the phone companion frame */
.frame-wrap:has(.phone) + .dim { margin-right: clamp(100px, 27%, 160px); }

/* dimension annotation line */
.dim {
  display: flex; align-items: flex-end; gap: 12px;
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.dim i {
  flex: 1; height: 5px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* corner registration ticks */
.reg-ticks::before, .reg-ticks::after,
.reg-ticks .rt::before, .reg-ticks .rt::after {
  content: ""; position: absolute; width: 11px; height: 11px; z-index: 5;
  pointer-events: none;
  transition: border-color 0.3s;
}
.reg-ticks::before { top: -1px; left: -1px; border-top: 1px solid var(--muted); border-left: 1px solid var(--muted); }
.reg-ticks::after { top: -1px; right: -1px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); }
.reg-ticks .rt::before { bottom: -1px; left: -1px; border-bottom: 1px solid var(--muted); border-left: 1px solid var(--muted); }
.reg-ticks .rt::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--muted); border-right: 1px solid var(--muted); }
.reg-ticks:hover::before, .reg-ticks:hover::after,
.reg-ticks:hover .rt::before, .reg-ticks:hover .rt::after { border-color: var(--amber); }

/* work cards */
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 5vw, 72px) clamp(28px, 4vw, 56px);
}
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }

.work-card { position: relative; }
.work-meta { margin-top: 22px; }

/* wide card: single-item groups span both columns, meta beside frame */
@media (min-width: 861px) {
  .work-card.wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(28px, 4vw, 64px);
    align-items: start;
  }
  .work-card.wide .frame-wrap { grid-column: 1; grid-row: 1; }
  .work-card.wide .dim { grid-column: 1; grid-row: 2; }
  .work-card.wide .work-meta { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
.work-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.work-head h3 {
  font-family: var(--font-display); font-stretch: 122%; font-weight: 800;
  text-transform: uppercase; font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -0.01em;
}
.badge {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap;
}
.badge-live { border-color: rgba(127, 219, 212, 0.35); color: var(--cyan); }
.badge-client { border-color: var(--amber-dim); color: var(--amber); }
.badge-proto { background: var(--amber); border-color: var(--amber); color: var(--void); }

.work-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.7; max-width: 60ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-soft); padding: 4px 9px;
}

.work-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: border-color 0.25s;
}
.work-link:hover { border-bottom-color: var(--amber); }

/* ---------- prototype feature ---------- */

.proto-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
@media (max-width: 960px) { .proto-grid { grid-template-columns: 1fr; } }

.proto-flag {
  display: inline-block;
  background: var(--amber); color: var(--void);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 8px 14px; margin-bottom: 22px;
}
.proto-title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  margin-bottom: 20px; max-width: 16ch;
}
.proto-copy p { color: var(--muted); font-size: 0.98rem; margin-bottom: 16px; max-width: 58ch; line-height: 1.75; }
.proto-copy p strong { color: var(--ink); font-weight: 500; }

.spec-table { border-top: 1px solid var(--line); margin-top: 28px; }
.spec-row {
  display: grid; grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 18px; padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.spec-key {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  padding-top: 4px;
}
.spec-val { color: var(--ink); line-height: 1.6; }
.spec-val.mono { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.spec-val .amber { color: var(--amber); }
@media (max-width: 480px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- story ---------- */

.story-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px); align-items: start;
}
@media (max-width: 960px) { .story-grid { grid-template-columns: 1fr; } }

.story-copy p {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.8; color: var(--muted); margin-bottom: 22px;
}
.story-copy p strong { color: var(--ink); font-weight: 500; }
.story-copy p:last-child { margin-bottom: 0; }

/* ---------- contact CTA band ---------- */

.cta-title { font-size: clamp(2.4rem, 6vw, 5.4rem); max-width: 14ch; margin-bottom: 28px; }
.cta-poc {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.cta-poc b { color: var(--ink); font-weight: 400; }
.cta-poc a { color: var(--amber); }

/* ---------- page headers (subpages) ---------- */

.page-head {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(60px, 10vw, 120px)) 0 clamp(48px, 7vw, 90px);
  border-bottom: 1px solid var(--line-soft);
}
.page-head .ghost-num { top: auto; bottom: -0.24em; }
.page-title { font-size: clamp(2.6rem, 7vw, 6.4rem); position: relative; z-index: 1; margin-bottom: 26px; }
.page-lede { position: relative; z-index: 1; }

/* group headers on work page */
.group-head {
  display: flex; align-items: center; gap: 20px;
  margin: clamp(64px, 9vw, 110px) 0 clamp(28px, 4vw, 48px);
}
.group-head.first { margin-top: 0; }
.group-head h2 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber);
  white-space: nowrap;
}
.group-head span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); white-space: nowrap; text-transform: uppercase; }
.group-head i { flex: 1; height: 1px; background: var(--line); min-width: 40px; }
@media (max-width: 640px) {
  .group-head { flex-wrap: wrap; gap: 10px; }
  .group-head h2, .group-head span { white-space: normal; }
  .group-head i { display: none; }
}

.work-note {
  font-size: 0.92rem; color: var(--muted); max-width: 72ch;
  border-left: 2px solid var(--amber); padding-left: 18px;
  line-height: 1.7;
}
.work-note strong { color: var(--ink); font-weight: 500; }

/* ---------- capabilities page ---------- */

.capability {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}
.capability:last-of-type { border-bottom: none; }
@media (max-width: 860px) { .capability { grid-template-columns: 1fr; } }

.capability .ghost-num {
  font-size: clamp(6rem, 13vw, 11rem);
  top: 0.14em; right: auto; left: -0.06em;
}
.cap-left { position: relative; z-index: 1; padding-top: clamp(20px, 4vw, 56px); }
.cap-kicker {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 16px;
}
.cap-title-lg { font-size: clamp(1.6rem, 3vw, 2.5rem); max-width: 14ch; }
.cap-right { position: relative; z-index: 1; padding-top: clamp(20px, 4vw, 56px); }
.cap-right > p { color: var(--muted); font-size: 1.02rem; line-height: 1.8; max-width: 62ch; }
.cap-right > p strong { color: var(--ink); font-weight: 500; }

/* ---------- contact page ---------- */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.poc-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
}
.poc-card h2 {
  font-family: var(--font-display); font-stretch: 122%; font-weight: 800;
  text-transform: uppercase; font-size: 1.5rem; margin-bottom: 4px;
}
.poc-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 24px;
}
.poc-note {
  margin-top: 24px; font-size: 0.88rem; color: var(--muted); line-height: 1.7;
  border-top: 1px solid var(--line-soft); padding-top: 18px;
}

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form[hidden] { display: none; }
/* honeypot: visually removed, still submitted by bots */
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.field label b { color: var(--amber); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  padding: 13px 14px;
  transition: border-color 0.25s;
  appearance: none; -webkit-appearance: none;
  width: 100%;
}
.field select {
  background-image:
    linear-gradient(45deg, transparent 49%, var(--muted) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 49%, var(--muted) 50%, transparent 60%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 7px 7px; background-repeat: no-repeat;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber);
}
.field input::placeholder, .field textarea::placeholder { color: #565E66; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.form-confirm {
  border: 1px solid var(--amber); background: var(--surface);
  padding: clamp(28px, 4vw, 48px);
}
.form-confirm[hidden] { display: none; }
.form-confirm h3 {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 16px;
}
.form-confirm p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 10px; }
.form-confirm p b { color: var(--ink); font-weight: 500; }

.form-error {
  margin-top: 22px; border: 1px solid var(--line); background: var(--surface);
  padding: 18px 22px;
  font-size: 0.92rem; color: var(--muted); line-height: 1.7;
}
.form-error[hidden] { display: none; }
.form-error b { color: var(--ink); font-weight: 500; }

.noscript-note {
  border: 1px solid var(--line); background: var(--surface);
  padding: 18px 22px; margin-bottom: 24px;
  font-size: 0.92rem; color: var(--muted); line-height: 1.7;
}
.noscript-note b { color: var(--ink); font-weight: 500; }

/* ---------- footer: flight manifest ---------- */

.manifest {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: clamp(48px, 7vw, 88px) 0 40px;
}
.manifest-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px);
}
.manifest-title {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 850;
  text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.manifest-title b { color: var(--amber); font-weight: 850; }
.manifest-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.manifest-nav a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); transition: color 0.25s;
}
.manifest-nav a:hover { color: var(--amber); }

.manifest-table { border-top: 1px solid var(--line); }
.manifest-row {
  display: grid; grid-template-columns: minmax(140px, 260px) 1fr;
  gap: 20px; padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7;
}
.manifest-key {
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); padding-top: 3px;
}
.manifest-val { color: var(--ink); letter-spacing: 0.02em; }
.manifest-val a { color: var(--amber); }
.manifest-val .dim-txt { color: var(--muted); }
@media (max-width: 560px) {
  .manifest-row { grid-template-columns: 1fr; gap: 4px; }
}

.manifest-foot {
  margin-top: 36px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 30px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.manifest-foot .sys { color: var(--cyan); }

/* ---------- utility ---------- */

.two-col-lede {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
@media (max-width: 860px) { .two-col-lede { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .frame { transform: none !important; }
}

/* print and static rendering: never ship a blank page */
@media print {
  .js .reveal, .js .reveal-load {
    opacity: 1 !important; transform: none !important;
    clip-path: none !important; animation: none !important; transition: none !important;
  }
  .redact::after { display: none !important; }
}
