/* Fyvie AI — One Bit LLMs */

:root {
  --bg: #0a0908;
  --bg-2: #14110f;
  --bg-3: #1b1714;
  --ink: #f5f1ea;
  --ink-2: #cdc6bb;
  --ink-dim: #8a847b;
  --ink-faint: #4a4640;
  --rule: #2a2522;
  --orange: #ff6a00;
  --orange-2: #ffb27a;
  --orange-deep: #d44a00;
  --cyan: #00f0ff;
  --lime: #b8ff00;
  --magenta: #ff2d87;
  --neon: var(--cyan);
  --pad: 64px;
  --maxw: 1320px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Doto', ui-monospace, monospace;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
  letter-spacing: 0.01em;
}

body {
  overflow-x: hidden;
  /*background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,106,0,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(0,240,255,0.05), transparent 60%);
  background-attachment: fixed;*/
}

/*body.scanlines::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 3px
  );
  z-index: 1000;
  mix-blend-mode: screen;
}*/

::selection { background: var(--orange); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout primitives ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}
.rule-neon {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon) 20%, var(--neon) 80%, transparent);
  box-shadow: 0 0 12px var(--neon), 0 0 2px var(--neon);
  opacity: .9;
}
.rule-orange {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange) 30%, var(--orange) 70%, transparent);
  box-shadow: 0 0 14px rgba(255,106,0,0.6);
}

/* eyebrow / micro labels — appear in caps mono style */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  display: inline-block;
}
.eyebrow .bar {
  width: 28px; height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.tag.neon { color: var(--neon); border-color: color-mix(in srgb, var(--neon) 40%, transparent); }
.tag.orange { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 50%, transparent); }

/* ---------- Top Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10,9,8,0.7);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 18px;
  text-transform: uppercase;
}
.brand .glyph {
  width: 28px; height: 28px;
  display: inline-block;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  border: 1px solid var(--orange);
  box-shadow: 0 0 0 1px var(--bg), 0 0 24px rgba(255,106,0,0.45);
  transition: transform .12s ease;
}
.nav-cta:hover { transform: translate(-1px,-1px); box-shadow: 2px 2px 0 var(--orange-deep), 0 0 24px rgba(255,106,0,0.45); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero > .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  padding-bottom: 60px;
}
/*
.ascii-tree-c{
  
}*/

/* Animated ASCII node-graph behind the hero content */
.hero-graph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  /* fade the graph toward the edges so it reads as a backdrop */
  -webkit-mask-image: radial-gradient(120% 120% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(120% 120% at 50% 45%, #000 55%, transparent 100%);
}
.hero-graph pre {
  margin: 0;
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 10.5px; /*font-size: clamp(9px, 1.35vw, 16px);*/
  line-height: 1.15;
  letter-spacing: 0.04em;
  white-space: pre;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(80px, 12vw, 200px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero h1 .one {
  color: var(--orange);
  /*text-shadow: 0 0 24px rgba(255,106,0,0.5);*/
}
.hero h1 .bit {
  color: var(--ink);
}
.hero h1 .llm {
  color: var(--ink);
  display: inline-block;
  position: relative;
}
/*.hero h1 .llm::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -10px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 14px var(--neon);
}*/
.hero-sub {
  margin-top: 36px;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-2);
  max-width: 540px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.hero-cta-row {
  margin-top: 40px;
  display: flex; align-items: center; gap: 16px;
}
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  transition: transform .12s ease, border-color .12s, color .12s;
}
.btn:hover { border-color: var(--ink); transform: translate(-1px,-1px); }
.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg);
  box-shadow: 4px 4px 0 var(--orange-deep);
}
.btn.primary:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--orange-deep);
}
.btn.neon { color: var(--neon); border-color: color-mix(in srgb, var(--neon) 50%, transparent); }
.btn.neon:hover { box-shadow: 0 0 18px color-mix(in srgb, var(--neon) 60%, transparent); border-color: var(--neon); }
 
/* Hero centered layout */
.hero-centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-bottom {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.hero-brand {
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  /*text-shadow: 0 0 40px rgba(255,106,0,0.45);*/
  line-height: 1;
  margin-bottom: 20px;
}
.hero-centered h1 {
  /*font-size: clamp(24px, 3.5vw, 48px);*/
  font-size: clamp(48px, 10vw, 76px);
  line-height: 1;
  text-align: center;
  letter-spacing: 0.06em;
}
.hero-model-label {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0;
}

.hero-model-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.btn-model {
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 18px 32px;
  width: 128px;
}
.btn-model .model-size {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.btn-model .model-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* Hero right side — bit display */
.bit-display {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule);
  background:
    linear-gradient(180deg, rgba(255,106,0,0.04), transparent),
    var(--bg-2);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.bit-display .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--orange);
}
.bit-display .corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.bit-display .corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.bit-display .corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.bit-display .corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.bit-display-head {
  display: flex; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--rule);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.bit-display-head .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lime);
}
.bit-display-head .live i {
  width: 6px; height: 6px; background: var(--lime); border-radius: 0;
  box-shadow: 0 0 8px var(--lime);
  animation: blink 1.6s infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: .2; } }

.bit-display-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(140px, 22vw, 260px);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.04em;
  text-shadow: 0 0 30px rgba(255,106,0,0.45);
  line-height: 1;
  position: relative;
}
.bit-display-body .flip {
  display: inline-block;
  min-width: 0.6em;
  text-align: center;
}
.bit-display-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px dashed var(--rule);
}
.bit-display-stats > div {
  padding: 14px 18px;
  border-right: 1px dashed var(--rule);
}
.bit-display-stats > div:last-child { border-right: 0; }
.bit-display-stats .k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.bit-display-stats .v {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.bit-display-stats .v.accent { color: var(--orange); }
.bit-display-stats .v.neon { color: var(--neon); }

/* Bit rain canvas */
.bit-rain {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}

/* Hero right side — stacked MLP network panels */
.net-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.net-panel {
  position: relative;
  border: 1px solid var(--rule);
  background:
    linear-gradient(180deg, rgba(255,106,0,0.04), transparent),
    var(--bg-2);
  overflow: hidden;
}
.net-panel .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--orange);
  z-index: 2;
}
.net-panel .corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.net-panel .corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.net-panel .corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.net-panel .corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.net-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px;
  border-bottom: 1px dashed var(--rule);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.net-flag {
  display: inline-flex; align-items: center; gap: 8px;
}
.net-flag i {
  width: 6px; height: 6px; display: inline-block;
}
.net-flag.slow { color: var(--neon); }
.net-flag.slow i {
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: blink 2.4s infinite;
}
.net-flag.fast { color: var(--orange); }
.net-flag.fast i {
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: blink 0.5s steps(1, end) infinite;
}
.net-canvas {
  padding: 8px 10px;
}
.net-canvas svg {
  display: block;
  width: 100%;
  height: auto;
}
.net-foot {
  display: flex; justify-content: space-between;
  padding: 11px 18px;
  border-top: 1px dashed var(--rule);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.net-foot .accent { color: var(--orange); }

/* ---------- ASCII device animations ---------- */

.ascii-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ascii-devices-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.ascii-devices-row .net-panel {
  flex: 1;
  min-width: 0;
}
.ascii-pre {
  display: block;
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 10px;
  line-height: 1.35;
  white-space: pre;
  overflow: hidden;
  padding: 8px 10px;
  margin: 0;
  color: var(--orange);
  text-shadow: 0 0 10px rgba(255, 106, 0, 0.55);
  user-select: none;
}
.ascii-graph {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
}

/* ---------- Hero tagline strip ---------- */
.tagline-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  background: var(--bg-2);
}
.tagline {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.tl-accent {
  color: var(--orange);
  text-shadow: 0 0 20px rgba(255,106,0,0.35);
}

/* ---------- Marquee tape ---------- */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
  height: 56px;
  display: flex; align-items: center;
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: scroll 40s linear infinite;
  padding-left: 48px;
}
.marquee-item {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 18px;
}
.marquee-item .sep {
  width: 8px; height: 8px;
  background: var(--orange);
  display: inline-block;
}
.marquee-item.neon { color: var(--neon); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section base ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section-hd {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}
.section-hd .left .eyebrow { margin-bottom: 18px; }
.section-hd .left h2 {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}
.section-hd .right p {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 540px;
}
.section-hd--centered {
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
  justify-items: center;
}
.section-hd--centered .left h2 { line-height: 0.92; }
.section-hd--centered .right p { max-width: 640px; margin: 0 auto; }

/* ---------- Why 1-bit — stat blocks ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.why-cell {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.why-cell .icon-wrap {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  margin-bottom: 28px;
  position: relative;
}
.why-cell .icon-wrap::after {
  content: '';
  position: absolute; inset: -1px;
  border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent);
  transform: translate(4px, 4px);
}
.why-cell h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.why-cell p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 360px;
  line-height: 1.5;
}
.why-cell .big {
  font-size: 96px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(255,106,0,0.4);
}
.why-cell .big .small {
  font-size: 32px;
  color: var(--ink);
  letter-spacing: 0;
  text-shadow: none;
}
.why-cell .footnote {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 16px;
}

/* ---------- Memory Footprint cell image hover ---------- */
.why-cell--memory img {
  opacity: 0.15;
  transform: rotate(45deg);
  transform-origin: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.why-cell--memory:hover img {
  opacity: 0.4;
  transform: rotate(45deg) translate(10px, -10px);
}

/* ---------- Existing Hardware cell image hover ---------- */
.why-cell--hardware {
  overflow: hidden;
}
.why-cell--hardware::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/pixel_art_gpuT2.png') center / cover no-repeat;
  opacity: 0.2;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 0;
}
.why-cell--hardware > div {
  position: relative;
  z-index: 1;
}
.why-cell--hardware:hover::before {
  opacity: 0.5;
  transform: translate(10px, -10px);
}

/* ---------- Streaming BG (Unlimited Tokens cell) ---------- */
.why-cell--tokens {
  overflow: hidden;
}
.why-cell--tokens > div:not(.token-stream) {
  position: relative;
  z-index: 1;
}
.token-stream {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.4s ease;
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 100%);
}
.why-cell--tokens:hover .token-stream {
  opacity: 1;
}
.token-stream-inner {
  position: absolute;
  bottom: 24px;
  left: 28px;
  right: 28px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  line-height: 1.55;
}
.token-stream .sl {
  color: rgba(255, 255, 255, 0.13);
  white-space: pre;
}
.token-stream .sl.user {
  color: rgba(255, 255, 255, 0.32);
}
.token-stream .sl.cmd {
  color: rgba(255, 106, 0, 0.5);
}
.token-stream .sl.out {
  color: rgba(255, 255, 255, 0.09);
}
.token-stream .cursor {
  color: rgba(255, 255, 255, 0.5);
  animation: ts-blink 0.6s step-end infinite;
}
.token-stream .sl.cmd .cursor {
  color: rgba(255, 106, 0, 0.8);
}
.token-stream .sl.user .cursor {
  color: rgba(255, 255, 255, 0.6);
}
@keyframes ts-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---------- Race section ---------- */
.race {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.race-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.race-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 36px;
  min-height: 360px;
  position: relative;
  display: flex; flex-direction: column;
}
.race-card .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.race-card h4 {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.race-card.now { border-left: 2px solid var(--orange); }
.race-card.now h4 { color: var(--orange); }
.race-card.next { border-left: 2px solid var(--neon); }
.race-card.next h4 { color: var(--neon); }
.race-list {
  list-style: none;
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.race-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: baseline;
  font-size: 16px;
  color: var(--ink-2);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}
.race-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.race-list .num {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
}
.race-list .lbl { font-weight: 500; color: var(--ink); }
.race-list .meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.race-list .meta.warn { color: var(--magenta); }
.race-list .meta.ok { color: var(--lime); }

.race-quote {
  text-align: center;
  margin-top: 56px;
  padding: 48px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
}
.race-quote .q {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 980px;
  margin: 0 auto;
}
.race-quote .q em {
  color: var(--orange);
  font-style: normal;
  position: relative;
}
.race-quote .q em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

/* ---------- Benchmark chart ---------- */
.bench {
  position: relative;
}
.bench-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.bench-meta {
  display: flex; flex-direction: column; gap: 32px;
}
.bench-meta .kpi {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
}
.bench-meta .kpi:last-child { border-bottom: 1px solid var(--rule); }
.bench-meta .kpi .v {
  font-size: 64px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
}
.bench-meta .kpi .v.neon { color: var(--neon); }
.bench-meta .kpi .l {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}
.bench-meta .kpi .l b {
  color: var(--ink);
  display: block;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-card {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 28px;
  position: relative;
}
.chart-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--rule);
}
.chart-card-head h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chart-card-head .axis {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chart-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
/* Source/caption line under the chart — kept clear of the x-axis labels */
.chart-source {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-size: 12px;
  line-height: 1.45;
}

/* chart body (ported from chart.jsx inline styles) */
.chart-body {
  position: relative;
  height: 480px;
  padding: 16px 0 76px 56px;
  margin-top: 12px;
}
.chart-grid {
  position: absolute;
  inset: 16px 0 76px 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  z-index: 0;
}
.grid-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 0;
}
.g-lbl {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  font-family: ui-monospace, monospace;
  text-align: right;
  padding-right: 12px;
}
.g-line {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--rule) 0, var(--rule) 4px, transparent 4px, transparent 8px);
}
.bars-row {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: end;
}
.bar-col {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.bar-value {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.bar-stack {
  width: 60%;
  max-width: 100px;
  display: flex; flex-direction: column;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;
}
.px-blk {
  width: 100%;
  height: 6px;
  flex: 0 0 auto;
}
.bar-base {
  padding-top: 14px;
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.bar-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bar-name .ours {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-left: 4px;
}
.bar-bits {
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.18em;
  margin-top: 4px;
}

/* ---------- Models / Plan ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.plan-card {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 36px 32px 32px;
  position: relative;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.plan-card .step {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--orange);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.plan-card .step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--orange);
  color: var(--orange);
}
.plan-card h4 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}
.plan-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.plan-card .tags {
  margin-top: auto;
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.plan-card.featured {
  background: linear-gradient(180deg, rgba(255,106,0,0.06), transparent 70%), var(--bg);
  border-color: color-mix(in srgb, var(--orange) 50%, var(--rule));
}
.plan-card.featured::before {
  content: '';
  position: absolute; left: -1px; right: -1px; top: -1px;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 16px var(--orange);
}

/* ---------- Team ---------- */
.team {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.team-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 36px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  min-height: 320px;
}
.avatar {
  width: 160px; height: 160px;
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(135deg, var(--bg-3) 0, var(--bg-3) 6px, var(--bg-2) 6px, var(--bg-2) 12px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.04em;
}
.avatar::after {
  content: 'PORTRAIT';
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-align: center;
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
}
.team-info h4 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.team-info .role {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.team-info p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.team-info .chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
}

/* ---------- Funding ---------- */
.fund {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.fund-amount {
  font-size: clamp(96px, 14vw, 220px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.fund-amount .unit {
  color: var(--orange);
  text-shadow: 0 0 24px rgba(255,106,0,0.4);
}
.fund-amount .label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-top: 16px;
  letter-spacing: 0.22em;
}
.fund-bars {
  display: flex; flex-direction: column; gap: 22px;
}
.fund-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.fund-bar .pct {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  min-width: 56px;
  letter-spacing: 0;
}
.fund-bar .meter {
  height: 14px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.fund-bar .meter .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--orange);
  background-image: repeating-linear-gradient(
    90deg,
    var(--orange) 0, var(--orange) 8px,
    var(--orange-deep) 8px, var(--orange-deep) 10px
  );
  box-shadow: 0 0 16px rgba(255,106,0,0.5);
}
.fund-bar .lbl {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  min-width: 130px;
  text-align: left;
}
.fund-bar .sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-image-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  width: 100%;
}
.hero-img {
  flex: 1;
  min-width: 0;
  max-width: 220px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: grayscale(1) contrast(1.1);
  opacity: 0.85;
  transition: opacity .2s ease, filter .2s ease;
}
.hero-img:hover {
  opacity: 1;
  filter: grayscale(0) contrast(1);
}



/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 140px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.cta h2 {
  font-size: clamp(64px, 9vw, 140px);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.cta h2 .accent { color: var(--orange); }
.cta p {
  margin-top: 28px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.hero-signup-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-signup {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.hero-signup input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding: 16px 20px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  min-width: 280px;
  letter-spacing: 0.04em;
}
.hero-signup input::placeholder { color: var(--ink-dim); }
.hero-signup button {
  background: var(--orange);
  color: var(--bg);
  border: 0;
  padding: 0 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-signup-msg {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  min-height: 1em;
}
.cta-form {
  margin-top: 40px;
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.cta-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding: 16px 20px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  min-width: 360px;
  letter-spacing: 0.04em;
}
.cta-form input::placeholder { color: var(--ink-dim); }
.cta-form button {
  background: var(--orange);
  color: var(--bg);
  border: 0;
  padding: 0 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 10px;
}

/* ---------- Footer ---------- */
.foot {
  padding: 56px 0 36px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot h6 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
  font-weight: 600;
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot ul a {
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.foot ul a:hover { color: var(--orange); }
.foot-bottom {
  display: flex; justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* ---------- Pixel icon base ---------- */
.pixel-icon {
  display: block;
  image-rendering: pixelated;
}

/* ---------- Architecture diagram ---------- */
.arch {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  position: relative;
}
.arch-row {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
}
.arch-row:last-child { border-bottom: 0; }
.arch-row .lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.arch-row .name { font-size: 14px; color: var(--ink); letter-spacing: 0.04em; }
.arch-row .name b { color: var(--ink); font-weight: 700; }
.arch-row .val {
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  letter-spacing: 0;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.arch-row .val.neon { color: var(--neon); }
.arch-row.head .lbl { color: var(--orange); }
.arch-row.head .name b { color: var(--orange); }

/* ═══════════════════════════════════════════════════════════════════════════
   TEAM PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------- Team hero ---------- */
.team-hero {
  padding: 96px 0 48px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.team-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 90% -20%, rgba(255,106,0,0.10), transparent 60%);
  pointer-events: none;
}
.team-hero .wrap { position: relative; z-index: 1; }
.team-hero-title {
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: 18px;
}
.team-hero-title .accent { color: var(--orange); text-shadow: 0 0 28px rgba(255,106,0,0.35); }
.team-hero-sub {
  margin-top: 26px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.55;
}

/* ---------- Team sections ---------- */
.team-section { padding: 96px 0; }
.team-section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ---------- Sprite stage (the lit pixel-person platform) ---------- */
.sprite-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(255,255,255,0.018) 11px 12px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(255,255,255,0.018) 11px 12px),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.sprite-stage--lg { aspect-ratio: 3 / 4; }

/* spotlight glow from above — brightens on hover */
.sprite-stage::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(100% 72% at 50% -8%, rgba(255,106,0,0.16), transparent 62%);
  opacity: 0.55;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.founder-card:hover .sprite-stage::before,
.member-card:hover .sprite-stage::before { opacity: 1; }

/* corner brackets */
.sprite-stage .corner {
  position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--orange);
  opacity: 0.65; z-index: 4;
}
.sprite-stage .corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.sprite-stage .corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.sprite-stage .corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.sprite-stage .corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* the floor line the sprite stands on */
.sprite-floor {
  position: absolute; left: 12%; right: 12%; bottom: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange) 25%, var(--orange) 75%, transparent);
  box-shadow: 0 0 14px rgba(255,106,0,0.5);
  z-index: 2;
}
/* faint floor shadow under the figure */
.sprite-floor::after {
  content: '';
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 60%; height: 10px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255,106,0,0.25), transparent 70%);
}

/* the real pixel sprite PNG (provided later) */
.sprite-img {
  position: absolute; left: 50%; bottom: 34px;
  transform: translateX(-50%);
  max-height: 74%; max-width: 78%;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(255,106,0,0.22));
  transition: transform 0.25s ease, filter 0.25s ease;
  z-index: 3;
}
.founder-card:hover .sprite-img,
.member-card:hover .sprite-img {
  transform: translateX(-50%) translateY(-6px);
  filter: drop-shadow(0 0 18px rgba(255,106,0,0.4));
}

/* the "what they're doing" caption */
.sprite-action {
  position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  font-family: ui-monospace, monospace;
  padding: 0 14px;
  z-index: 3;
}

/* placeholder figure (until a PNG sprite is supplied) */
.sprite-placeholder {
  position: absolute; left: 0; right: 0; bottom: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  z-index: 3;
}
.sprite-figure {
  fill: var(--ink-faint);
  image-rendering: pixelated;
  opacity: 0.5;
  transition: fill 0.3s ease, opacity 0.3s ease, transform 0.25s ease;
}
.founder-card:hover .sprite-figure,
.member-card:hover .sprite-figure {
  fill: var(--orange);
  opacity: 0.85;
  transform: translateY(-6px);
}
.sprite-badge {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
  font-family: ui-monospace, monospace;
  border: 1px solid var(--rule);
  padding: 4px 9px;
}

/* ---------- Founders ---------- */
.founder-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 24px;
}
.founder-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 28px;
  display: grid; grid-template-columns: 210px 1fr; gap: 32px;
  align-items: center;
  position: relative;
}
.founder-card::before {
  content: '';
  position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: var(--orange);
  box-shadow: 0 0 16px var(--orange);
}
.founder-info h3 {
  font-size: 24px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.founder-info .role {
  margin-top: 6px; margin-bottom: 18px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange);
}
.founder-info p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.founder-info .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Member grid ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px; margin-top: 24px;
}
.member-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.member-card:hover {
  border-color: color-mix(in srgb, var(--orange) 50%, var(--rule));
  transform: translateY(-3px);
}
.member-info { padding: 18px 6px 6px; text-align: center; }
.member-info h4 {
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.member-info .role {
  margin-top: 6px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
}
.member-card--cta {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(255,106,0,0.05), transparent 60%), var(--bg);
}
.member-card--cta .member-info h4 { color: var(--orange); }

/* ---------- Responsive trim ---------- */
@media (max-width: 1024px) {
  :root { --pad: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-hd { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .plan-grid, .race-grid, .team-grid, .why-grid { grid-template-columns: 1fr; }
  .bench-layout, .fund { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-form input { min-width: 200px; }
  .nav-links { display: none; }
  .founder-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .founder-card { grid-template-columns: 1fr; gap: 8px; justify-items: center; text-align: center; }
  .founder-card .sprite-stage { width: 100%; max-width: 240px; }
  .founder-info .chips { justify-content: center; }
  .member-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
}

/* ---------- Phone tuning ---------- */
@media (max-width: 640px) {
  :root { --pad: 20px; }

  /* Tighter vertical rhythm so sections don't feel cavernous on a phone */
  .section { padding: 72px 0; }
  .cta { padding: 80px 0; }

  /* Hero */
  .hero > .wrap { padding-top: 56px; padding-bottom: 48px; }
  .hero-brand { font-size: clamp(36px, 13vw, 72px); margin-bottom: 14px; }
  .hero-centered h1 { font-size: clamp(38px, 12vw, 72px); }
  .hero-bottom { padding-top: 36px; }
  .hero-model-label { font-size: 18px; }
  /*.ascii-tree-c{ font-size: 12px; }*/
  .hero-graph pre {font-size: 8px;}

  /* Model buttons fill the row two-up instead of a fixed 128px width */
  .hero-model-row { gap: 10px; width: 100%; }
  .btn-model { width: calc(50% - 5px); padding: 16px 12px; }

  /* Why-1-bit stat cells — shrink the headline numbers so they stop clipping */
  .why-cell { padding: 32px 24px; min-height: 0; }
  .why-cell h3 { font-size: 19px; }
  .why-cell .big { font-size: 64px; }
  .why-cell .big .small { font-size: 22px; }
  .why-cell--tokens .big,
  .why-cell--hardware .big { font-size: 2.4rem !important; }

  /* Section headings */
  .section-hd .left h2 { font-size: clamp(36px, 8.5vw, 80px); }

  /* Benchmark — keep the chart tall enough that the fixed-height pixel bars
     and their x-axis labels stay inside the chart instead of overflowing
     down onto the source line */
  .bench-meta .kpi .v { font-size: 48px; }
  .chart-card { padding: 18px 16px; }
  .bars-row { gap: 14px; }
  /* Drop the "◀ OURS" tag on the Fyvie bar label — too tight on a phone */
  .bar-name .ours { display: none; }

  /* CTA */
  .cta h2 { font-size: clamp(40px, 12vw, 96px); }

  /* Footer stacks to a single column */
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Forms (team CTA / hero signup) go full-width and stack so they
     never overflow a narrow viewport */
  .cta-form, .hero-signup { width: 100%; flex-wrap: wrap; }
  .cta-form input, .hero-signup input { min-width: 0; flex: 1 1 100%; }
  .cta-form button, .hero-signup button {
    flex: 1 1 100%; justify-content: center; padding: 16px 24px;
  }

  /* Chart header wraps instead of squashing the title against the axis note */
  .chart-card-head { flex-wrap: wrap; gap: 4px 12px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  /* Benchmark chart: shrink the y-axis gutter and labels so the three bars
     still fit without their values or names clipping */
  .chart-body { padding-left: 40px; }
  .grid-row { grid-template-columns: 40px 1fr; }
  .g-lbl { font-size: 9px; padding-right: 8px; letter-spacing: 0.08em; }
  .bars-row { gap: 8px; }
  .bar-value { font-size: 14px; }
  .bar-name { font-size: 12px; letter-spacing: 0.08em; }
  .bar-bits { font-size: 9px; letter-spacing: 0.12em; }
  .chart-card-head h5 { font-size: 12px; }

  /* Model buttons: keep two-up but tighten padding so labels never clip */
  .btn-model { padding: 14px 8px; }
}
