/* ============================================================
   AEY homepage prototype - site.css
   Pure black, white type, one accent (#FF4D1F), Geist only.
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.56);
  --hair: rgba(255, 255, 255, 0.12);
  --accent: #ff4d1f;
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1600px;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: clip;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Centrepiece canvas + fallback ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#fallback {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.10), transparent 38%),
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 30% 85%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.35), transparent);
  opacity: 0.5;
}
html.no-webgl #scene { display: none; }
html.no-webgl #fallback { display: block; }

/* ---------- Layout grid ---------- */
.grid {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.h1 {
  font-size: clamp(44px, 7.2vw, 128px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
}
.h2 {
  font-size: clamp(36px, 5vw, 84px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}
.body {
  font-size: clamp(17px, 1.2vw, 19px);
  color: var(--fg);
  max-width: 40ch;
  margin: 0;
}
.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}
.label .idx { color: var(--fg); margin-right: 1.2em; }
.wordmark {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 18px;
}
/* logo: solid accent dot on the baseline right after the Y
   (0.15em diameter, 0.13em gap incl. the 0.04em tracking after the Y) */
.brand-dot {
  display: inline-block;
  width: max(3px, 0.15em);
  height: max(3px, 0.15em);
  margin-left: 0.09em;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: baseline;
}
.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
}
.nav__links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a.is-current { color: var(--fg); }
body.menu-open .nav__menu { visibility: hidden; }

/* Accent focus ring, site-wide */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav__menu {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  padding: 0;
}

/* ---------- Mobile overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter);
}
/* keep the nav (and AEY wordmark) visible above the open overlay */
.nav { z-index: 70; }
.overlay[hidden] { display: none; }
.overlay__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  padding: 0;
}
.overlay__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12vh;
}
.overlay__links a {
  font-size: clamp(32px, 9vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 12vh;
}
.hero__inner { width: 100%; }
.hero__text { max-width: 60ch; display: flex; flex-direction: column; gap: 22px; }
.hero__text .label { margin-bottom: 4px; }
.hero__sub { color: var(--muted); max-width: 44ch; }
.hero__text, .story__caption { text-shadow: 0 0 18px #000, 0 0 36px rgba(0,0,0,.85); }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 12vh;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  align-self: flex-start;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border: 1px solid var(--fg);
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--fg); color: #000; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 18vh 0;
  border-top: 1px solid var(--hair);
}
.section__head { margin-bottom: 8vh; max-width: 60ch; }
.section__head .label { margin-bottom: 24px; }
.section__head .h2 { margin-bottom: 28px; }
.section__intro { color: var(--muted); max-width: 44ch; }

/* What we do - three columns */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.col {
  padding: 36px 32px 36px 0;
  border-left: 1px solid var(--hair);
  padding-left: 32px;
}
.col:first-child { border-left: none; padding-left: 0; }
.col__name {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.col .body { color: var(--muted); }

/* Deployment timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__row {
  display: grid;
  grid-template-columns: 120px 220px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--hair);
}
.timeline__row:last-child { border-bottom: 1px solid var(--hair); }
.timeline__num {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--muted);
}
.timeline__name {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.timeline__line { color: var(--muted); max-width: 44ch; }

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.product {
  display: block;
  padding: 44px 40px 44px 0;
  border-left: 1px solid var(--hair);
  padding-left: 40px;
  transition: background 0.2s ease;
}
a.product:hover { background: rgba(255,255,255,0.03); }
.product:first-child { border-left: none; padding-left: 0; }
.product .label { margin-bottom: 20px; }
.product__name {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 20px;
}
.product .body { color: var(--muted); }

/* Principles 2x2 */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.principle {
  padding: 44px 40px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.principle__name {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.principle .body { color: var(--muted); }

/* Contact */
.section--contact { min-height: 80vh; }
.contact__addr { margin-top: 36px; }
.contact__placeholder {
  color: var(--muted);
  font-size: clamp(17px, 1.2vw, 19px);
  border-bottom: 1px dashed var(--muted);
  padding-bottom: 2px;
}

/* ---------- Story ---------- */
.story {
  position: relative;
  height: 300vh;
}
.story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.story__captions {
  position: absolute;
  bottom: 14vh;
  left: 0; right: 0;
}
.story__caption {
  position: absolute;
  bottom: 0;
  max-width: 48ch;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.story__caption.is-active { opacity: 1; transform: none; }
.story__caption .label { margin-bottom: 20px; }
.story__caption .h2 { margin-bottom: 22px; max-width: 16ch; }
.story__caption .body { color: var(--muted); }

.story__progress {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: right;
}
.story__progress li {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.28);
  transition: color 0.3s ease;
}
.story__progress li.is-active { color: var(--fg); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 72px 0 40px;
  border-top: 1px solid var(--hair);
  background: #000;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__brand .wordmark { font-size: 20px; }
.footer__tag {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.5;
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  justify-content: start;
}
.footer__nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--fg); }
.footer__legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- "Explore / more" text links ---------- */
.more-link { margin-top: 48px; }
.more-link a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 6px;
  transition: border-color 0.2s ease;
}
.more-link a:hover { border-color: var(--fg); }
.more-link .btn { border-bottom: 1px solid var(--fg); padding-bottom: 14px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-block; }
  .cols { grid-template-columns: 1fr; }
  .col { border-left: none; padding-left: 0; border-top: 1px solid var(--hair); }
  .col:first-child { border-top: none; }
  .products { grid-template-columns: 1fr; }
  .product { border-left: none; padding-left: 0; border-top: 1px solid var(--hair); }
  .product:first-child { border-top: none; }
  .principles { grid-template-columns: 1fr; }
  .timeline__row {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "num name" "num line";
    gap: 6px 16px;
  }
  .timeline__num { grid-area: num; }
  .timeline__name { grid-area: name; }
  .timeline__line { grid-area: line; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .story__progress { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 14vh 0; }
  .hero { padding-bottom: 14vh; }
  .story__captions { bottom: 9vh; }
}

/* ============================================================
   PAGE STYLES (Build 2)
   ============================================================ */

/* Sub-page hero: a touch more top room under the fixed nav */
.page-hero { min-height: 100vh; }
.page-hero .hero__text { max-width: 62ch; }
.page-hero .h1 { max-width: 11ch; }
.page-hero .hero__sub { max-width: 46ch; }

/* ---------- Platform: scrolling layers ---------- */
#pl-layers { position: relative; }
.pl-layer { min-height: 140vh; position: relative; }
.pl-layer__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}
.pl-cap {
  max-width: 44ch;
  opacity: 0.26;
  transition: opacity 0.5s ease;
  text-shadow: 0 0 18px #000, 0 0 36px rgba(0,0,0,.85);
}
.pl-cap.is-active { opacity: 1; }
.pl-cap .label { margin-bottom: 20px; }
.pl-cap .h2 { margin-bottom: 22px; }
.pl-cap .body { color: var(--muted); }

@media (max-width: 900px) {
  .pl-layer { min-height: 150vh; }
  .pl-cap { opacity: 0.4; }
  .pl-cap.is-active { opacity: 1; }
  .pl-layer__inner { align-items: flex-end; padding-bottom: 12vh; }
}

/* ---------- Deployments: interactive field map ---------- */
/* The particle map is drawn by the fixed canvas, but it is pinned every
   frame to .dp-stage (the right column on desktop, below the text on
   mobile), so it never crosses the text column. */
#dp-map {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 0 9vh;
  border-top: 1px solid var(--hair);
}
.dp-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 40px;
  scroll-margin-top: 96px;
}
.dp-tabs::-webkit-scrollbar { display: none; }
.dp-tab {
  flex: 0 0 auto;
  background: none; border: none; color: var(--muted);
  font-family: inherit; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  padding: 14px 18px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.dp-tab:hover { color: var(--fg); }
.dp-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.dp-layout {
  display: grid;
  grid-template-columns: minmax(0, 44ch) minmax(0, 1fr);
  column-gap: clamp(48px, 6vw, 120px);
  align-items: start;
}
.dp-body { min-height: 260px; max-width: 44ch; }
.dp-stage {
  position: relative;
  height: clamp(400px, calc(100vh - 300px), 640px);
  border: 1px solid var(--hair);
  background:
    radial-gradient(ellipse at 40% 45%, rgba(255,255,255,0.025), transparent 70%),
    #000;
  contain: layout paint;
}
.dp-mapwrap { position: absolute; inset: 0; }
.dp-canvas { display: block; width: 100%; height: 100%; }
.dp-status {
  position: absolute; top: 12px; right: 12px; bottom: 12px;
  width: 284px;
  display: flex; flex-direction: column;
  padding: 14px 14px 12px;
  background: rgba(0, 0, 0, 0.84);
  border: 1px solid var(--hair);
  font-size: 10px; line-height: 1.35; letter-spacing: 0.12em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.86);
}
.dp-status p { margin: 0; }
.dp-status__kicker { color: var(--accent); margin-bottom: 10px !important; }
.dp-status__title { color: #fff; }
.dp-status__core { color: var(--muted); margin: 4px 0 12px !important; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.dp-status__rows { list-style: none; margin: 0; padding: 0; flex: 1; min-height: calc(8 * 25px); }
.dp-status__rows li {
  display: grid; grid-template-columns: 9px minmax(0, 1fr) 52px 46px; align-items: center; column-gap: 6px;
  height: 25px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4); transition: color .3s ease;
}
.dp-status__rows li.is-on { color: rgba(255, 255, 255, 0.9); }
.dp-st__dot { width: 5px; height: 5px; border: 1px solid currentColor; }
.dp-status__rows li.is-on .dp-st__dot { background: #fff; border-color: #fff; }
.dp-st__name { letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-st__val { text-align: right; color: var(--muted); }
.dp-st__state { text-align: right; font-size: 9px; }
.dp-status__rows li.is-on .dp-st__state { color: #fff; }
.dp-status__foot { margin-top: 10px !important; color: var(--muted); font-size: 9px; }
.dp-h3 {
  font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.dp-list { list-style: none; margin: 0; padding: 0; }
.dp-list li {
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 18px);
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}
.dp-note { margin-top: 40px; color: var(--muted); max-width: 52ch; }

@media (max-width: 900px) {
  #dp-map { padding-top: 10vh; justify-content: flex-start; }
  .dp-tabs { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-margin-top: 80px; }
  .dp-layout { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .dp-body { min-height: 0; max-width: none; }
  .dp-stage { height: auto; display: flex; flex-direction: column; }
  .dp-mapwrap { position: relative; inset: auto; height: clamp(280px, 80vw, 380px); }
  .dp-status { position: relative; top: auto; right: auto; bottom: auto; width: auto; border: 0; border-top: 1px solid var(--hair); }
}

/* ---------- How we work: stages beside a spine ---------- */
.hw-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}
.hw-stage.is-active { opacity: 1; }
.hw-content {
  margin-left: 38%;
  max-width: 54ch;
  text-shadow: 0 0 18px #000, 0 0 36px rgba(0,0,0,.85);
}
.hw-stage--prove .hw-content {
  border-left: 1px solid var(--accent);
  padding-left: 32px;
  margin-left: calc(38% - 32px);
}
.hw-flag {
  color: var(--accent);
  margin-bottom: 20px;
}
.hw-index {
  display: block;
  font-size: clamp(56px, 9vw, 150px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--muted);
}
.hw-name {
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 8px 0 44px;
}
.hw-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.hw-cell {
  padding: 26px 28px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.hw-cell .label { margin-bottom: 14px; }
.hw-cell .body { color: var(--muted); font-size: 16px; }

@media (max-width: 900px) {
  .hw-content { margin-left: 18%; }
  .hw-stage--prove .hw-content { margin-left: calc(18% - 20px); padding-left: 20px; }
  .hw-stage { min-height: auto; padding: 14vh 0; opacity: 1; }
}
@media (max-width: 600px) {
  .hw-cells { grid-template-columns: 1fr; }
  .hw-content { margin-left: 12%; }
  .hw-stage--prove .hw-content { margin-left: calc(12% - 18px); }
}

/* ---------- Products: screenshots, features, pricing ---------- */
.shot { margin: 0 0 24px; }
.shot--full { margin-top: 24px; }
.shot__frame {
  border: 1px solid var(--hair);
  background: #000;
  overflow: hidden;
}
.shot__frame img { display: block; width: 100%; height: auto; }
.shot__cap { margin: 12px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.shot-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.feature-list { list-style: none; margin: 56px 0 0; padding: 0; }
.feature-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--hair);
}
.feature-list .feature-row:last-child { border-bottom: 1px solid var(--hair); }
.feature-name {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.feature-line { color: var(--muted); max-width: 52ch; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--hair);
}
.plan {
  padding: 36px 32px;
  border-right: 1px solid var(--hair);
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}
.plan__name { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 20px; }
.plan__price { font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.03em; margin: 0; }
.plan__alt { font-size: 14px; color: var(--muted); margin: 6px 0 20px; }
.plan__seats { font-size: 14px; color: var(--fg); margin: 0 0 18px; }
.plan__inc { color: var(--muted); margin: 0 0 28px; }
.plan__btn { margin-top: auto; align-self: flex-start; }
.plan-extra { margin-top: 0; border-top: none; border-bottom: 1px solid var(--hair); }

.disclaimer { margin-top: 40px; font-size: 12px; color: var(--muted); max-width: 70ch; line-height: 1.6; }

@media (max-width: 900px) {
  .shot-two { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 8px; }
  .plans { grid-template-columns: 1fr; border-left: none; }
  .plan { border-right: none; }
}

/* ---------- Trust: numbered answer list ---------- */
.num-list { list-style: none; margin: 0; padding: 0; }
.num-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--hair);
}
.num-list .num-row:last-child { border-bottom: 1px solid var(--hair); }
.num-idx {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.num-title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.num-body .body { color: var(--muted); max-width: 56ch; }
.num-body .more-link { margin-top: 28px; }

/* ---------- Company ---------- */
.co-section { padding: 12vh 0; }
.co-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.co-grid > .label { padding-top: 6px; }
.co-text { max-width: 60ch; }
.co-text .body { font-size: clamp(20px, 1.8vw, 26px); color: var(--fg); line-height: 1.5; }
.co-h2 { margin: 0 0 28px; max-width: 18ch; }
.co-h2 + .body { color: var(--muted); font-size: clamp(17px, 1.2vw, 19px); }
.placeholder {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed var(--muted);
  padding: 16px 18px;
  max-width: 56ch;
}
.co-legal { color: var(--muted); font-size: 14px; margin: 0; }
.co-legal-ph { display: inline-block; border: 1px dashed var(--muted); margin-top: 16px; }

/* ---------- Contact form ---------- */
.ct-section { padding-top: 22vh; min-height: 100vh; }
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.ct-intro { max-width: none; }
.ct-intro .h1 { font-size: clamp(44px, 5.4vw, 96px); max-width: 10ch; text-wrap: balance; }
.ct-intro .hero__sub { max-width: 40ch; margin-top: 22px; }
.ct-formwrap {
  max-width: 44ch;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}
.ct-about { color: var(--muted); margin: 0 0 24px; }
.ct-form { display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); margin-bottom: 10px;
}
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair);
  color: var(--fg);
  font-family: inherit;
  font-size: 17px;
  padding: 8px 0;
  border-radius: 0;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--fg);
}
.field input[aria-invalid],
.field textarea[aria-invalid] { border-bottom-color: var(--accent); }
.field__err {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.field__err::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}
.ct-submit { align-self: flex-start; margin-top: 8px; }
.ct-note { font-size: 13px; color: var(--muted); margin: 0; }
.ct-thanks { padding: 8px 0; }
.ct-thanks .body { color: var(--muted); margin-top: 20px; }

@media (max-width: 900px) {
  .num-row { grid-template-columns: 48px 1fr; gap: 16px; }
  .co-grid { grid-template-columns: 1fr; gap: 16px; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-formwrap { max-width: none; }
  .ct-section { padding-top: 18vh; }
}

/* ============================================================
   RESEARCH PAGE ("Pushing the limits")
   Shared tokens, one accent, hairline grids. Scoped to .rs-*.
   ============================================================ */
.rs-section { --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* hero: the ported router draws quietly behind the headline */
#rs-hero { position: relative; overflow: hidden; }
.rs-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
#rs-hero .hero__inner, #rs-hero .hero__scroll { position: relative; z-index: 2; }

/* section head label lights when a field points at it */
.rs-section .section__head .label.is-lit { color: var(--accent); }

/* sub-group header: label + hairline rule + label */
.rs-grp {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 64px 0 24px;
}
.rs-grp:first-of-type { margin-top: 0; }
.rs-grp .label { white-space: nowrap; }
.rs-grp__rule { flex: 1 1 auto; height: 1px; background: var(--hair); }

/* demo grid: hairline separators, no gap (matches .principles) */
.rs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.rs-tile {
  background: #0b0b0b;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}
/* the only decorative accent on the page: marks what we build now */
.rs-tile--new { border-top: 2px solid var(--accent); margin-top: -1px; }

.rs-viz {
  position: relative;
  aspect-ratio: 4 / 3;      /* reserves space, so no layout shift */
  width: 100%;
  background: #000;
  border-bottom: 1px solid var(--hair);
}
.rs-viz canvas { display: block; width: 100%; height: 100%; }
.rs-meta {
  position: absolute;
  left: 0; bottom: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.8);
  padding: 3px 7px;
  pointer-events: none;
}
.rs-body { padding: 20px 20px 24px; }
.rs-title {
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.rs-eq {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.rs-cap { font-size: 15px; color: var(--muted); max-width: 44ch; margin: 0; }

/* fields hover-map */
.rs-fields { margin-top: 8px; }
.rs-fields__list { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.rs-field {
  flex: 0 0 auto;
  background: none;
  border: none;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
}
.rs-field:hover, .rs-field.is-lit, .rs-field:focus-visible {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.rs-fields__cap { margin: 28px 0 0; max-width: 60ch; }

.rs-close { text-align: left; }
.rs-close .label { color: var(--fg); font-size: 13px; }

@media (max-width: 1200px) {
  .rs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rs-grid { grid-template-columns: 1fr; }
  .rs-grp { margin: 44px 0 20px; flex-wrap: wrap; }
  .rs-body { padding: 16px 16px 20px; }
}

/* ---------- Reviewer pass ---------- */
[hidden] { display: none !important; }
.nav { transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.is-scrolled {
  background: rgba(0,0,0,.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hair);
}

/* ============================================================
   DEFENCE PAGE: perception console (simulation). Scoped to .df-*.
   ============================================================ */
.df-section { --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.df-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  border: 1px solid var(--hair);
  background: #0b0b0b;
}
.df-stage { min-width: 0; border-right: 1px solid var(--hair); }
.df-viz {
  position: relative;
  aspect-ratio: 16 / 10;    /* reserves space, so no layout shift */
  width: 100%;
  background: #000;
  border-bottom: 1px solid var(--hair);
}
.df-viz canvas { display: block; width: 100%; height: 100%; }
.df-sim {
  position: absolute; left: 0; top: 0;
  background: rgba(0, 0, 0, 0.8);
  color: var(--fg);
  padding: 6px 10px;
  font-size: 10px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  pointer-events: none;
}
.df-sim::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.df-hud {
  position: absolute; left: 0; bottom: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em;
  color: var(--muted); background: rgba(0, 0, 0, 0.8); padding: 3px 7px;
  pointer-events: none;
}
.df-controls { display: flex; flex-wrap: wrap; border-left: 0; }
.df-controls__gap { flex: 1 1 auto; border-right: 1px solid var(--hair); }
.df-btn {
  background: none; border: none; border-right: 1px solid var(--hair);
  color: var(--muted); font-family: inherit; font-size: 13px; letter-spacing: 0.01em;
  padding: 14px 18px; cursor: pointer; text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
}
.df-controls .df-btn:last-child { border-right: none; }
.df-btn:hover, .df-btn:focus-visible { color: var(--fg); background: rgba(255, 255, 255, 0.03); }
.df-btn.is-on { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.df-btn--sm { padding: 6px 10px; font-size: 12px; border: 1px solid var(--hair); }
.df-btn--sm + .df-btn--sm { margin-left: 6px; }
.df-side { display: flex; flex-direction: column; min-width: 0; }
.df-panel { padding: 20px; border-bottom: 1px solid var(--hair); }
.df-panel:last-child { border-bottom: none; flex: 1 1 auto; }
.df-panel__head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.df-count { color: var(--accent); font-family: var(--mono); }
.df-queue, .df-log { list-style: none; margin: 0; padding: 0; }
.df-cue {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  padding: 10px 0; border-top: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 8px;
}
.df-cue:first-child { border-top: none; padding-top: 0; }
.df-cue.is-pending { color: var(--fg); }
.df-cue.is-pending .df-cue__text::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 8px; }
.df-cue__state { text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; }
.df-cue__act { font-family: "Geist", system-ui, sans-serif; }
.df-log li {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  line-height: 1.5; padding: 4px 0; overflow-wrap: anywhere;
}
.df-log li:first-child { color: var(--fg); }
.df-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }

@media (max-width: 1100px) {
  .df-console { grid-template-columns: 1fr; }
  .df-stage { border-right: none; border-bottom: 1px solid var(--hair); }
}
@media (max-width: 600px) {
  .df-viz { aspect-ratio: 4 / 5; }
  .df-btn { padding: 12px 14px; }
  .df-controls__gap { display: none; }
  .df-panel { padding: 16px; }
}

/* ---------- Defence page: AEY Swarm ---------- */
.sw-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border-bottom: 1px solid var(--hair);
  min-height: 37px;
}
.sw-strip span { padding: 10px 14px; border-right: 1px solid var(--hair); white-space: nowrap; }
.sw-strip .sw-strip__cov { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.sw-fleet li { white-space: pre; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.sw-fleet li:first-child { color: var(--muted); }
.sw-fleet li.is-acc { color: var(--accent); }
.sw-markets { margin-top: 72px; }
.sw-markets .label { margin-bottom: 14px; }
.sw-arch { margin-top: 96px; }
.sw-arch__head { margin-bottom: 40px; }
.sw-arch__head .label { margin-bottom: 18px; }
.sw-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hair); border-left: 1px solid var(--hair);
}
.sw-node {
  position: relative; padding: 24px 22px 28px;
  border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: #0b0b0b;
}
.sw-node + .sw-node::before {         /* flow arrow between steps */
  content: ""; position: absolute; left: -6px; top: 34px;
  width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 6px solid var(--muted);
}
.sw-node--gate { border-top: 2px solid var(--accent); margin-top: -1px; }
.sw-node__idx { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.sw-node .label { display: block; margin-bottom: 10px; }
.sw-node__name { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 10px; }
.sw-node__body { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
#df-swarm .feature-list { margin-top: 72px; }
@media (max-width: 1100px) {
  .sw-flow { grid-template-columns: 1fr; }
  .sw-node + .sw-node::before { left: 28px; top: -6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--muted); border-bottom: 0; }
}

/* nine nav items: keep one line down to the 900px menu breakpoint */
.nav__links a { white-space: nowrap; }
@media (max-width: 1200px) {
  .nav__links { gap: clamp(12px, 1.5vw, 24px); }
  .nav__links a { font-size: 11px; letter-spacing: 0.12em; }
}
@media (max-width: 600px) { .df-sim__more { display: none; } }

