/* =========================================================
   ASTRAVIDYĀ — design system v3
   Geist + Geist Mono · paper white · graphite · brief yellow
   ========================================================= */

:root {
  --bg:        #FAFAF7;     /* paper */
  --bg-2:      #F2F1EC;
  --bg-3:      #E8E7E2;
  --paper:     #FFFFFF;
  --ink:       #2D2D2D;     /* graphite */
  --ink-2:     #1A1A1A;
  --fg:        #2D2D2D;
  --fg-2:      #6B6B66;
  --fg-3:      #9A9A93;
  --line:      #DCDBD4;
  --line-2:    #B9B8B0;
  --accent:    #FFD600;
  --accent-2:  #E5C000;
  --container: 1320px;
  --gutter:    36px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); }
html { scroll-behavior: smooth; }
body {
  color: var(--fg);
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* — emphasis: yellow color + medium weight (no italic) — */
em, .em { font-style: normal; font-weight: 600; color: var(--ink); position: relative; }
em.hl, .em.hl {
  background: linear-gradient(transparent 60%, var(--accent) 60%);
  padding: 0 0.08em;
}
/* Dark surfaces: white text + slightly thicker yellow band so it reads as underline */
.page-header em.hl,
.section-dark em.hl,
.foot em.hl,
.foot-tag em.hl {
  color: var(--bg);
  background: linear-gradient(transparent 78%, var(--accent) 78%);
}
em.strike, .em.strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  font-weight: 500;
  color: var(--fg-2);
}
.page-header em.strike,
.section-dark em.strike {
  color: var(--fg-3);
  text-decoration-color: var(--accent);
}

.mono {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* — eyebrow tag — */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 600;
}

.hairline { height: 1px; background: var(--line); }

/* ====== Top bar ====== */
.topbar {
  background: var(--ink);
  color: var(--bg);
  position: relative; z-index: 50;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex; justify-content: space-between; gap: 24px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topbar-inner > * { white-space: nowrap; }
.topbar-inner > :first-child { color: var(--accent); }
.topbar-mid { color: var(--fg-3); }

/* ====== Nav ====== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav-scrolled { border-bottom-color: var(--line); background: rgba(250,250,247,0.97); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
  justify-self: start;
}
.brand-mark {
  width: 32px; height: 32px;
  background-image: url('assets/logo-mark-black.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}
.brand-word {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex; gap: 32px; list-style: none;
  justify-self: center;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fg-2);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent);
  transition: right .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta {
  display: flex; align-items: center; gap: 14px;
  justify-self: end;
}

/* Language toggle */
.lang-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line-2);
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.16em;
  color: var(--fg-2);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.lang-toggle-bg {
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .3s var(--ease);
  z-index: -1;
}
.lang-toggle:hover { color: var(--bg); border-color: var(--ink); }
.lang-toggle:hover .lang-toggle-bg { transform: translateY(0); }
.lang-toggle:hover .lang-toggle-text { color: var(--accent); }
.lang-flag {
  width: 18px; height: 13px;
  display: inline-flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  overflow: hidden;
}
.lang-flag-blue   { flex: 1; background: #0057B7; }
.lang-flag-yellow { flex: 1; background: #FFD500; }
.lang-toggle-text { transition: color .25s var(--ease); }

/* Buttons — no arrows */
.btn {
  --btn-fill: var(--ink);
  --btn-text: var(--ink);
  --btn-border: var(--ink);
  --btn-text-hover: var(--accent);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--btn-border);
  background: transparent;
  color: var(--btn-text);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.btn .btn-bg {
  position: absolute; inset: 0;
  background: var(--btn-fill);
  transform: translateX(-101%);
  transition: transform .35s var(--ease);
  z-index: -1;
}
.btn:hover .btn-bg { transform: translateX(0); }
.btn:hover { color: var(--btn-text-hover); border-color: var(--btn-fill); }

.btn-primary {
  --btn-fill: var(--ink);
  --btn-text: var(--ink);
  --btn-border: var(--ink);
  --btn-text-hover: var(--accent);
  background: var(--accent);
}
.btn-primary .btn-bg { background: var(--ink); }

.btn-ghost {
  --btn-fill: var(--ink);
  --btn-text: var(--fg-2);
  --btn-border: var(--line-2);
  --btn-text-hover: var(--bg);
}

.btn-dark {
  --btn-fill: var(--ink);
  --btn-text: var(--ink);
  --btn-border: var(--ink);
  --btn-text-hover: var(--accent);
  background: transparent;
}
.btn-dark .btn-bg { background: var(--ink); }

.btn-onyellow {
  /* Default: dark fill, white text. Hover: white fill, dark text (invert). */
  --btn-fill: var(--bg);
  --btn-text: var(--bg);
  --btn-border: var(--ink);
  --btn-text-hover: var(--ink);
  background: var(--ink);
}
.btn-onyellow .btn-bg { background: var(--bg); }

.section-dark .btn {
  --btn-text: var(--bg);
  --btn-border: var(--accent);
  --btn-fill: var(--accent);
  --btn-text-hover: var(--ink);
}

/* ====== Placeholder visuals ====== */
.stripe {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-2) 0, var(--bg-2) 11px,
      var(--bg-3) 11px, var(--bg-3) 22px);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stripe::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px dashed var(--line-2); pointer-events: none;
}
.stripe-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: var(--fg-2);
  background: var(--paper);
  padding: 4px 10px;
  border: 1px solid var(--line);
  z-index: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.stripe-ink {
  background:
    repeating-linear-gradient(135deg,
      var(--ink) 0, var(--ink) 11px,
      var(--ink-2) 11px, var(--ink-2) 22px);
}
.stripe-ink .stripe-label { color: var(--bg); background: var(--ink); border-color: var(--line-2); }
.stripe-ink::before { border-color: rgba(255,214,0,0.25); }

/* ====== Sections ====== */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter);
}
.section-tight { padding-top: 48px; }
.section-paper { background: var(--paper); max-width: 100%; }
.section-paper > * { max-width: var(--container); margin-inline: auto; }
.section-dark { background: var(--ink); color: var(--bg); max-width: 100%; padding: 96px 0; }
.section-dark > * { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section-head { max-width: 920px; margin-bottom: 56px; }
.section-head-flush {
  max-width: var(--container);
  padding-right: 0;
}
.section-head-flush .section-title { max-width: 28ch; }
.section-head-flush .section-lede { max-width: 60ch; }
.section-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 16px 0 18px;
  text-wrap: balance;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--fg-2);
  max-width: 60ch;
  line-height: 1.55;
}
.section-dark .section-lede { color: var(--fg-3); }

/* ====== Marquee ====== */
.marquee {
  background: var(--ink);
  color: var(--bg);
  border-block: 1px solid var(--ink);
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 56px;
  padding: 14px 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.marquee-item { display: inline-flex; align-items: center; gap: 12px; }
.marquee-dot { width: 7px; height: 7px; background: var(--accent); display: inline-block; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ====== Page header (inner pages) ====== */
.page-header {
  background: var(--ink);
  color: var(--bg);
  border-bottom: 1px solid var(--ink-2);
}
.page-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px var(--gutter) 80px;
}
.page-crumbs {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 32px;
}
.page-crumbs a { color: var(--accent); }
.page-crumbs .sep { margin: 0 10px; color: var(--fg-3); }
.page-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.page-lede {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--fg-3);
  max-width: 64ch;
  line-height: 1.55;
}

/* ====== Footer ====== */
.foot {
  background: var(--ink);
  color: var(--bg);
  padding: 70px 0 28px;
  position: relative;
  overflow: hidden;
}
.foot-headline {
  max-width: var(--container);
  margin: 0 auto 40px;
  padding: 0 var(--gutter);
}
.foot-tag {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  max-width: 18ch;
}
.foot-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px var(--gutter) 30px;
  border-top: 1px solid var(--ink-2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.foot-grid > div { display: flex; flex-direction: column; gap: 12px; }
.foot-k { color: var(--accent); }
.foot p { font-size: 0.92rem; line-height: 1.6; color: var(--fg-3); }
.foot-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-list a {
  font-size: 0.92rem; color: var(--fg-3);
  transition: color .15s;
}
.foot-list a:hover { color: var(--accent); }
.foot-bot {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--ink-2);
  display: flex; justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ====== HOME hero — single-viewport ====== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas:
    "statement aside"
    "band      band"
    "kpi       kpi";
  column-gap: 56px;
  row-gap: 40px;
  align-items: end;
}

.hero-statement {
  grid-area: statement;
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}
.hero-aside {
  grid-area: aside;
  display: flex; flex-direction: column; gap: 24px;
  align-self: end;
  padding-bottom: 6px;
  min-width: 0;
}
.hero-band {
  grid-area: band;
  position: relative;
}
.hero-band .stripe {
  border-radius: 0;
}
.kpi-strip {
  grid-area: kpi;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 8px 0 4px;
  border-top: 1px solid var(--line);
}

.statement-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.statement-h1 {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.statement-h1 .lined { display: block; }
.statement-h1 .nowrap { white-space: nowrap; }
.statement-h1 em.strike { text-decoration-thickness: 4px; margin-right: 0.06em; }

.hero-lede {
  font-size: 1rem;
  color: var(--fg-2);
  max-width: 42ch;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.kpi {
  padding: 18px 22px 4px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.kpi:first-child { padding-left: 0; border-left: none; }
.kpi-num {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kpi-cap {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "statement"
      "aside"
      "band"
      "kpi";
    row-gap: 28px;
  }
  .kpi-strip { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .kpi { padding: 14px 12px 4px; }
  .kpi:nth-child(3) { padding-left: 0; border-left: none; }
}

/* ====== Watermark — mandala behind sections ====== */
.watermark {
  position: absolute;
  top: 50%;
  pointer-events: none;
  background-image: url('assets/logo-mark-black.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  transform: translateY(-50%);
}
.watermark-right { right: -160px; }
.watermark-left  { left: -180px; }
.watermark-paper {
  mix-blend-mode: multiply;
  opacity: 0.06;
}
.watermark-ink {
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.07;
}
.section-watermark { position: relative; overflow: hidden; }
.section-watermark > * { position: relative; z-index: 1; }
.section-watermark > .watermark { z-index: 0; }

.page-header { position: relative; overflow: hidden; }
.page-header > .page-header-inner { position: relative; z-index: 1; }
.page-header > .watermark { opacity: 0.06; }

/* ====== Comparison table ====== */
.compare {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.compare-head, .compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 24px;
  padding: 18px 24px;
  align-items: center;
}
.compare-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.compare-row { border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.compare-row:last-child { border-bottom: none; }
.compare-row.us {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding-left: 21px;
  font-weight: 500;
}
.compare-row.us > :first-child::before {
  content: "★ "; color: var(--ink); font-weight: 600;
}

/* ====== Process (6 steps) ====== */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.proc {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px 36px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.proc:nth-child(3n) { border-right: none; }
.proc:nth-last-child(-n+3) { border-bottom: none; }
.proc-num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--fg-2);
}
.proc-num strong {
  background: var(--ink);
  color: var(--bg);
  padding: 2px 7px;
  margin-right: 8px;
}
.proc-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.proc-body { font-size: 0.92rem; color: var(--fg-2); line-height: 1.55; }

/* Roadmap horizontal scroll fallback */
.road-scroll {
  overflow-x: auto;
  margin: 30px calc(-1 * var(--gutter)) 0;
  padding: 14px var(--gutter) 18px;
  scrollbar-width: thin;
}
.road {
  display: grid;
  grid-template-columns: repeat(11, minmax(120px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: 0;
  min-width: 1240px;
}
.road-cell {
  padding: 24px 14px 22px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper);
  position: relative;
  min-height: 220px;
}
.road-cell:last-child { border-right: none; }
.road-cell.now {
  background: var(--accent);
  z-index: 1;
}
.road-cell.now::before {
  content: "WE ARE HERE";
  position: absolute;
  top: -12px; left: 18px;
  background: var(--ink);
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  padding: 4px 8px;
}
.road-date {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.road-cell.now .road-date { color: var(--ink-2); }
.road-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 0.96rem;
  line-height: 1.2;
  color: var(--ink);
}
.road-detail {
  font-size: 0.78rem;
  color: var(--fg-2);
  line-height: 1.5;
  margin-top: auto;
}
.road-cell.now .road-detail { color: var(--ink-2); }

/* ====== Stamp row (about hero) ====== */
.stamps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stamp {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.stamp:last-child { border-right: none; }
.stamp-k {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.stamp-v {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ====== Founders strip ====== */
.founders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.founder {
  display: flex; flex-direction: column; gap: 10px;
}
.founder-img { aspect-ratio: 4/5; margin-bottom: 4px; }
.founder-name {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.founder-role {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.founder-bio { font-size: 0.88rem; color: var(--fg-2); line-height: 1.55; }

/* ====== Manifesto block ====== */
.manifesto {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  max-width: 26ch;
  text-wrap: balance;
}
.manifesto p { margin-bottom: 0.4em; }

/* ====== Origin grid (technology hero) ====== */
.origin {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.origin-col {
  padding: 30px 22px 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.origin-col:last-child { border-right: none; }
.origin-flag {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 8px;
}
.origin-flag::before {
  content: ""; width: 8px; height: 8px; background: var(--accent);
}
.origin-country {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.origin-supplies {
  font-size: 0.84rem;
  color: var(--fg-2);
  line-height: 1.55;
}

.origin-banner {
  background: var(--ink);
  color: var(--bg);
  padding: 18px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.origin-banner .x {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  color: var(--fg-3);
}
.origin-banner strong { color: var(--accent); font-weight: 600; }

/* ====== BoM ====== */
.bom {
  border: 1px solid var(--line);
  background: var(--paper);
}
.bom-head, .bom-row {
  display: grid;
  grid-template-columns: 60px 220px 1fr 1.4fr;
  gap: 24px;
  padding: 18px 24px;
  align-items: center;
}
.bom-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.bom-row { border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.bom-row:last-child { border-bottom: none; }
.bom-num { color: var(--fg-3); }
.bom-stage { font-weight: 500; color: var(--ink); }
.bom-legacy { color: var(--fg-2); }
.bom-av { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.bom-av .dot {
  width: 8px; height: 8px; background: var(--accent);
  flex: 0 0 8px; border: 1px solid var(--ink);
}

/* ====== Product spec sheet (Product page hero) ====== */
.spec-sheet {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.spec-drawing {
  border-right: 1px solid var(--line);
  padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.spec-drawing-frame {
  flex: 1;
  aspect-ratio: 1/1;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 19px, rgba(45,45,45,.05) 19px, rgba(45,45,45,.05) 20px),
    repeating-linear-gradient(90deg, transparent 0, transparent 19px, rgba(45,45,45,.05) 19px, rgba(45,45,45,.05) 20px),
    var(--paper);
  border: 1px dashed var(--line-2);
  position: relative;
  display: grid; place-items: center;
}
.spec-drawing-circle {
  width: 60%; aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  display: grid; place-items: center;
}
.spec-drawing-circle::before {
  content: ""; position: absolute; inset: 22%;
  border: 1px dashed var(--ink); border-radius: 50%;
}
.spec-drawing-circle::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, transparent 49.5%, var(--ink) 49.5%, var(--ink) 50.5%, transparent 50.5%),
    linear-gradient(to bottom, transparent 49.5%, var(--ink) 49.5%, var(--ink) 50.5%, transparent 50.5%);
  opacity: .25;
}
.spec-drawing-cap {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--fg-2);
  display: flex; justify-content: space-between;
}
.spec-drawing-tags {
  position: absolute; inset: 0;
  pointer-events: none;
}
.spec-tag {
  position: absolute;
  font-family: 'Geist Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 3px 6px;
}
.spec-tag.t1 { top: 14%; left: 6%; }
.spec-tag.t2 { top: 10%; right: 8%; }
.spec-tag.t3 { bottom: 16%; left: 8%; }
.spec-tag.t4 { bottom: 10%; right: 10%; }

.spec-table { padding: 30px 32px; display: flex; flex-direction: column; }
.spec-table-head {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0;
  display: flex; justify-content: space-between;
}
.spec-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}
.spec-row dd {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.text-link {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.text-link:hover { color: var(--accent-ink, var(--ink)); border-bottom-color: var(--accent); }
.spec-row.hl dd em.hl {
  background: linear-gradient(transparent 60%, var(--accent) 60%);
}

/* ====== Contact: 3 routes ====== */
.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.route {
  padding: 50px 36px 56px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  min-height: 320px;
  transition: background .25s var(--ease), color .25s var(--ease);
  color: inherit;
}
.route:last-child { border-right: none; }
.route:hover { background: var(--ink); color: var(--bg); }
.route:hover .route-k { color: var(--accent); }
.route:hover .route-target { color: var(--accent); border-color: var(--accent); }
.route-k {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.route-h {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.018em;
}
.route-d { font-size: 0.95rem; line-height: 1.55; opacity: .9; max-width: 30ch; }
.route-target {
  margin-top: auto;
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  align-self: flex-start;
  transition: color .2s, border-color .2s;
}

/* ====== Form ====== */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label.full { grid-column: 1 / -1; }
.form label > span {
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.form input, .form select, .form textarea {
  background: var(--paper);
  border: 1px solid var(--line-2);
  padding: 13px 14px;
  font-family: 'Geist', sans-serif;
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--ink);
}
.form textarea { resize: vertical; min-height: 92px; }
.form-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
}

/* ====== Yellow CTA strip ====== */
.yellow-cta {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
  border-block: 1px solid var(--ink);
}
.yellow-cta .watermark { opacity: 0.10; mix-blend-mode: multiply; filter: none; }
.yellow-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.yellow-cta-kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: start;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
  white-space: nowrap;
}
.yellow-cta h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  max-width: 22ch;
}
.yellow-cta em.hl {
  background: linear-gradient(transparent 60%, var(--bg) 60%);
  color: var(--ink);
  padding: 0 0.1em;
}

/* ====== Press row ====== */
.press {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.press > .mono { display: block; margin-bottom: 18px; }
.press ul {
  display: flex; flex-wrap: wrap; gap: 36px;
  list-style: none;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}

/* ====== Timeline ====== */
.tl {
  position: relative;
  padding: 8px 0 0;
  margin-top: 12px;
}
.tl-axis {
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl-axis-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  background: var(--accent);
  transition: height 0.4s var(--ease);
}
.tl-item {
  position: relative;
  padding-left: 72px;
  padding-block: 18px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.tl-item.in { opacity: 1; transform: none; }
.tl-item + .tl-item { border-top: 1px solid var(--line); }
.tl-node {
  position: absolute;
  left: 17px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--ink);
  z-index: 2;
}
.tl-now .tl-node {
  background: var(--accent);
  border-color: var(--ink);
  box-shadow: 0 0 0 6px rgba(255,214,0,0.3);
}
.tl-future .tl-node {
  background: var(--bg);
  border-style: dashed;
  border-color: var(--fg-3);
}
.tl-future .tl-card { opacity: 0.65; }
.tl-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: baseline;
}
.tl-body { min-width: 0; }
.tl-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.tl-date {
  color: var(--ink);
  font-size: 0.78rem;
}
.tl-now .tl-date { color: var(--ink); }
.tl-idx { color: var(--fg-3); font-size: 0.6rem; }
.tl-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.tl-now .tl-title em.hl,
.tl-now .tl-title { /* highlight current */ }
.tl-detail {
  font-size: 0.95rem;
  color: var(--fg-2);
  max-width: 60ch;
  line-height: 1.5;
}
.tl-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ====== Founders compact (home teaser) ====== */
.founders-compact { grid-template-columns: repeat(4, 1fr); gap: 28px; }
.founders-compact .founder-img { width: 100%; }
.founders-compact .founder-name { font-size: 1.05rem; }
.founders-compact .founder-role { font-size: 0.65rem; }

/* ====== Product photo grid ====== */
.spec-photos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.spec-photo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.spec-photo .stripe { width: 100%; }
.spec-photo-cap {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.spec-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ====== Misc grids ====== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

@media (max-width: 980px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero-grid, .about-grid, .form-row { grid-template-columns: 1fr; gap: 24px; }
  .kpi-strip, .compare-head, .compare-row, .process,
  .stamps, .founders, .origin, .routes,
  .foot-grid, .spec-sheet { grid-template-columns: 1fr; }
  .yellow-cta-inner { grid-template-columns: 1fr; }
  .tl-card { grid-template-columns: 1fr; gap: 8px; }
  .tl-body { padding-top: 4px; }
  .founders-compact { grid-template-columns: 1fr 1fr; }
  .spec-photo-row { grid-template-columns: 1fr 1fr; }
}

/* ====== Wireframe v8 — final polish ====== */

/* Watermark in hero: vertically centered, bleeds off the right */
.hero > .watermark {
  top: 50%;
  bottom: auto;
  right: -160px;
  transform: translateY(-50%);
}

/* Roadmap section layout: sticky aside left, scrolling timeline right */
.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.roadmap-aside {
  position: relative;
  min-height: 100%;
}
.roadmap-aside-inner {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
}
.roadmap-aside-inner .section-title { max-width: 18ch; }
.roadmap-aside-inner .section-lede { max-width: 38ch; }
.roadmap-main {
  min-width: 0;
  padding-top: 4px;
}

/* Big watermark in roadmap section bottom-left, kept mostly within section so it doesn't get cut off */
.roadmap-aside-mark {
  position: absolute;
  bottom: 80px;
  left: -60px;
  width: 460px;
  height: 460px;
  background-image: url('assets/logo-mark-black.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: multiply;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.roadmap-section > * { position: relative; z-index: 1; }
.roadmap-section > .roadmap-aside-mark,
.roadmap-section > .watermark { z-index: 0; }

@media (max-width: 1000px) {
  .roadmap-grid { grid-template-columns: 1fr; gap: 40px; }
  .roadmap-aside-inner { position: static; }
  .roadmap-aside-mark { display: none; }
}

/* ====== Hero + Nav reveal animations ====== */
@keyframes avFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes avFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes avNavIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .topbar { animation: avFadeIn 0.5s var(--ease) both; }
  .nav { animation: avNavIn 0.6s var(--ease) 0.05s both; }

  .hero .statement-tag,
  .hero .statement-h1 .lined,
  .hero-aside,
  .hero-band,
  .hero .kpi {
    animation: avFadeUp 0.75s var(--ease) both;
  }
  .hero .statement-tag                   { animation-delay: 0.18s; }
  .hero .statement-h1 .lined:nth-child(1){ animation-delay: 0.26s; }
  .hero .statement-h1 .lined:nth-child(2){ animation-delay: 0.36s; }
  .hero .statement-h1 .lined:nth-child(3){ animation-delay: 0.46s; }
  .hero-aside                            { animation-delay: 0.6s; }
  .hero-band                             { animation-delay: 0.7s; }
  .hero .kpi:nth-child(1)                { animation-delay: 0.85s; }
  .hero .kpi:nth-child(2)                { animation-delay: 0.93s; }
  .hero .kpi:nth-child(3)                { animation-delay: 1.01s; }
  .hero .kpi:nth-child(4)                { animation-delay: 1.09s; }
}

/* ====== Validation section (UA General Staff expert opinion) — dark band ====== */
.validation-section .section-head { margin-bottom: 40px; }
.validation-stamps {
  grid-template-columns: repeat(3, 1fr);
  border-top-color: var(--line-2);
  border-bottom-color: var(--line-2);
}
.validation-stamps .stamp { border-right-color: var(--line-2); }

/* Dark-section overrides for eyebrow + stamps (so they're visible on graphite bg) */
.section-dark .eyebrow { color: var(--fg-3); }
.section-dark .eyebrow-num {
  border-color: var(--bg);
  color: var(--bg);
}
.section-dark .stamp-k { color: var(--fg-3); }
.section-dark .stamp-v { color: var(--bg); }

@media (max-width: 800px) {
  .validation-stamps { grid-template-columns: 1fr; }
  .validation-stamps .stamp { border-right: none; border-bottom: 1px solid var(--line-2); }
  .validation-stamps .stamp:last-child { border-bottom: none; }
}
