/* Introducing fotonet v2 (Hi Bird): viewport-fitted stacked curtain cards with a minimal,
   Swiss-brutalist hairline design. Alternating obsidian (#0a0a0c) and paper (#f5f5f7) cards
   stack cleanly at 100% screen height across desktop and mobile. */

.v2 {
  --ink: #111113;
  --ink-2: #58585e;
  --paper: #f5f5f7;
  --hair-light: rgba(17, 17, 19, .14);
  --hair-dark: rgba(255, 255, 255, .14);
  --panel: #101014;
  --panel-light: #ffffff;
  --r-card: 2px;
  --r-inner: 0px;
  --card-pad-b: 28px;
}

.mono { font-family: var(--mono); letter-spacing: 0; }
.mono-inline { font-family: var(--mono); font-size: .86em; letter-spacing: 0; padding: .08em .34em; border: 1px solid rgba(255, 255, 255, .18); border-radius: 2px; background: rgba(255, 255, 255, .06); color: var(--text); }
.mono-inline-light { font-family: var(--mono); font-size: .86em; letter-spacing: 0; padding: .06em .32em; border: 1px solid rgba(17, 17, 19, .18); border-radius: 2px; background: rgba(17, 17, 19, .04); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Notice ribbon between the global nav and the hero */
.ribbon {
  position: relative;
  z-index: 20;
  background: #f5f5f7;
  box-shadow: inset 0 -1px 0 rgba(17, 17, 19, .08);
}
.ribbon p {
  position: relative;
  width: min(1024px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding: 11px 0;
  text-align: center;
  text-wrap: balance;
  font-size: 14px;
  line-height: 1.43;
  color: rgba(17, 17, 19, .8);
}
.ribbon-text { position: relative; display: inline-block; }
.ribbon-info {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -4px 0 -4px 2px;
  padding: 0;
  vertical-align: middle;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgba(17, 17, 19, .68);
  cursor: help;
}
.ribbon-info svg { width: 16px; height: 16px; }
.ribbon-info:hover, .ribbon-info:focus-visible { color: #000; }
.ribbon-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: -6px;
  width: 360px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(28, 28, 32, .92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 32px rgba(0, 0, 0, .18);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  text-wrap: pretty;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s var(--ease-out), visibility 0s .2s;
}
.ribbon-info.is-open + .ribbon-tip,
.ribbon-info:hover + .ribbon-tip,
.ribbon-info:focus-visible + .ribbon-tip,
.ribbon-tip:hover {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .2s var(--ease-out), visibility 0s;
}
@media (max-width: 734px) {
  .ribbon-text { position: static; display: inline; }
  .ribbon-tip {
    top: calc(100% - 4px);
    right: auto;
    left: 50%;
    width: min(360px, 100%);
    transform: translate(-50%, -4px);
  }
  .ribbon-info.is-open + .ribbon-tip,
  .ribbon-info:hover + .ribbon-tip,
  .ribbon-info:focus-visible + .ribbon-tip,
  .ribbon-tip:hover { transform: translate(-50%, 0); }
}

.v2 .bird-hero {
  min-height: calc(var(--screen) - 88px);
}
@media (min-height: 540px) {
  .v2 .bird-hero {
    height: calc(var(--screen) - 88px);
  }
}

/* Card theming */
.v2 .stack-card[data-theme="light"] { --card-bg: var(--paper); --card-ink: var(--ink); background: var(--paper); color: var(--ink); }
.v2 .stack-card[data-theme="dark"] { --card-bg: #0a0a0c; --card-ink: var(--text); background: #0a0a0c; color: var(--text); }
.v2 .peers.stack-card[data-theme="dark"] { --card-bg: #11131a; background: #11131a; }
.v2 .bird-hero.stack-card[data-theme="light"] { --card-bg: #ffffff; background: #ffffff; }
.v2 [data-theme="light"] .dim { color: var(--ink-2); }
.v2 main [data-theme="light"] a:not(.btn):not(.pill-tag) { color: var(--link-light); }

/* Crisp, immediate reveals suited to stacked viewport cards */
html.js .v2 [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .42s var(--ease), transform .52s var(--ease-out);
}
html.js .v2 [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Viewport-fitted card geometry (every main card <= 1 screen height so stickyTop === 0) */
.v2 .stack-card:not(.bird-hero):not(.is-last),
.v2 .stack-card.has-next:not(.bird-hero):not(.is-last) {
  min-height: var(--screen);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(58px, calc(var(--screen) * 0.068), 80px);
  padding-bottom: calc(var(--jag-h) + clamp(14px, calc(var(--screen) * 0.022), 26px));
}

@media (min-height: 540px) {
  .v2 .stack-card:not(.bird-hero):not(.is-last) {
    height: var(--screen);
  }
}
@media (max-height: 539px) {
  .v2 .stack-card:not(.bird-hero):not(.is-last) {
    height: auto;
    min-height: var(--screen);
  }
}

.v2 .card-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, calc(var(--screen) * 0.022), 28px);
}

.card-head { flex: none; }
.kicker { margin-bottom: 10px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--text-2); }
[data-theme="light"] .kicker { color: var(--ink-2); }
.v2 .headline-md { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.07; letter-spacing: -0.02em; }
.v2 .card-head p + .headline-md { margin-top: 0; }

/* Mobile-only brutalist segmented tabs */
.mob-tabs { display: none; }

/* ------------------------------------------------------------------ [1] introduction */

.lead-text { font-size: clamp(24px, 2.7vw, 36px); line-height: 1.24; font-weight: 600; letter-spacing: -0.024em; color: var(--text); }
.lead-text strong { font-weight: 700; color: #fff; }
.lead-soft { color: var(--text-2); }
.facts {
  margin-top: clamp(16px, 2.5vw, 36px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair-dark);
  border-bottom: 1px solid var(--hair-dark);
}
.facts li { padding: clamp(18px, 2vw, 28px) 20px clamp(18px, 2vw, 28px) 0; display: grid; gap: 6px; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--hair-dark); }
.fact-value { font-size: clamp(38px, 4.4vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.fact-value small { font-size: .5em; margin-left: .06em; letter-spacing: -0.01em; }
.fact-word { color: var(--glacier-l); }
.fact-label { font-size: 14px; color: var(--text-2); }

/* ------------------------------------------------------------------ [2] one look (the duel) */

.look-head { flex: none; max-width: 820px; }
.look-intro { margin-top: 12px; max-width: 680px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; color: var(--ink-2); }

.duel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(280px, calc(var(--screen) * 0.58), 620px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.duel-panel {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1px;
  border-radius: var(--r-card);
  background: #0b0b0e;
  border: 1px solid rgba(17, 17, 19, .24);
  color: var(--text);
}
.duel-panel-v2 {
  background: #080b12;
  border-color: rgba(59, 91, 219, .45);
}
.duel-cap {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  background: rgba(8, 8, 10, .82);
}
.duel-tag {
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 1px;
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}
.duel-panel-v2 .duel-tag { background: var(--glacier-n); color: #fff; }
.duel-sub { font-size: 12px; color: var(--text-2); }
.duel-canvas {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #070709;
}
.duel-panel-v2 .duel-canvas { background: #06080f; }

/* ------------------------------------------------------------------ [2 · Proof] & [4 · Verification] split panels */

.split-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: stretch;
}
.panel-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-tag {
  font-size: 12px;
  color: var(--text-3);
  padding: 2px 8px;
  border: 1px solid var(--hair-dark);
  border-radius: 2px;
}
[data-theme="light"] .panel-tag {
  color: var(--ink-2);
  border-color: var(--hair-light);
}

.look-compare,
.crowd-card {
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--hair-dark);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.look-compare h3,
.crowd-card h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.look-compare > p,
.crowd-card p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.look-stats { margin-top: auto; padding-top: 16px; }
.look-stats li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hair-dark); }
.look-stats li:last-child { border-bottom: 1px solid var(--hair-dark); }
.ls-label { font-size: 14px; color: var(--text-2); }
.ls-pair { display: flex; align-items: baseline; gap: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ls-pair s, .ls-key s { text-decoration: none; font-size: 15px; color: rgba(255, 255, 255, .42); }
.ls-pair b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--glacier-l); }
.ls-key { margin-top: 12px; display: flex; justify-content: flex-end; gap: 16px; font-size: 12px; }
.ls-key s { font-size: 12px; }
.ls-key s::before, .ls-key b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 1px; background: rgba(255, 255, 255, .42); }
.ls-key b { font-weight: 500; color: var(--glacier-l); }
.ls-key b::before { background: var(--glacier-l); }

.crowd-card { gap: 14px; }
.crowd-chart { display: block; width: 100%; height: auto; max-height: 250px; margin-top: auto; overflow: visible; }
.crowd-chart .grid line { stroke: rgba(255, 255, 255, .08); }
.crowd-chart .axis text { font-size: 12px; fill: var(--text-3); font-family: var(--font); }
.crowd-chart .cl { fill: none; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; }
.crowd-chart .cl-nms { stroke: rgba(255, 255, 255, .42); stroke-width: 2; }
.crowd-chart .cl-v2 { stroke: var(--glacier-m); }
.crowd-chart .cd { stroke: var(--panel); stroke-width: 2; }
.crowd-chart .cd-nms { fill: #9a9aa2; }
.crowd-chart .cd-v2 { fill: var(--glacier-m); }
.crowd-chart .cl-label { font-size: 12px; font-weight: 600; font-family: var(--mono); paint-order: stroke; stroke: var(--panel); stroke-width: 6px; stroke-linejoin: round; }
.crowd-chart .cl-label-nms { fill: var(--text-2); }
.crowd-chart .cl-label-v2 { fill: var(--glacier-l); }

/* ------------------------------------------------------------------ [3] how fast it learns */

.learn-head { flex: none; max-width: 880px; }
.learn-hl { color: var(--glacier-n); }
.learn-intro { margin-top: 12px; max-width: 720px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; color: var(--ink-2); }

.chart-card {
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(320px, calc(var(--screen) * 0.62), 640px);
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
  border-radius: var(--r-card);
  background: var(--panel-light);
  border: 1px solid var(--hair-light);
  color: var(--ink);
  overflow: hidden;
}
.chart-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 0 22px;
}
.chart-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.chart-title sup a { color: var(--ink-2); }
.chart-tabs { display: flex; gap: 1px; background: var(--hair-light); border: 1px solid var(--hair-light); border-radius: 2px; }
.chart-tabs button { height: 30px; padding: 0 12px; border: 0; border-radius: 0; background: #f3f3f6; font-size: 13px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.chart-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.chart-legend { flex: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 10px 22px 0; font-size: 13px; color: var(--ink-2); }
.chart-legend li { display: flex; align-items: center; gap: 8px; }
.chart-legend i { width: 16px; height: 2px; }
.chart-legend .is-v2 i { background: var(--glacier-n); height: 2.5px; }
.chart-legend .is-v12 i { background: #525866; height: 2px; }
.chart-legend .is-v1 i { background: #b2b2bc; }
.chart-legend b { font-weight: 600; color: var(--glacier-n); }
.chart-wrap {
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px 14px 0 6px;
  display: flex;
  align-items: stretch;
}
.chart { display: block; width: 100%; height: 100%; overflow: visible; transition: opacity .25s var(--ease); }
.chart.is-switching { opacity: 0; }
.chart .grid line { stroke: #ebebf0; stroke-width: 1; }
.chart .axis text { font-size: 13px; fill: #8e8e93; font-family: var(--font); letter-spacing: 0; }
.chart .axis-title { font-size: 13px; fill: #8e8e93; }
.chart .line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .line-v2 { stroke: var(--glacier-n); stroke-width: 3; }
.chart .line-v12 { stroke: #525866; stroke-width: 2.2; }
.chart .line-v1 { stroke: #b8b8c4; stroke-width: 1.8; stroke-dasharray: 4 4; }
.chart .threshold { stroke: #1d1d1f; stroke-width: 1; stroke-dasharray: 3 5; opacity: .38; }
.chart .threshold-label { font-size: 12px; fill: #525866; font-family: var(--mono); }
.chart .mark circle { stroke: #fff; stroke-width: 2.5; }
.chart .mark-v2 circle { fill: var(--glacier-n); }
.chart .mark-v12 circle { fill: #525866; }
.chart .mark-v1 circle { fill: #8e8e96; }
.chart .mark text { font-size: 13px; font-weight: 600; font-family: var(--font); }
.chart .mark-v2 text { fill: var(--glacier-n); }
.chart .mark-v12 text { fill: #444854; font-size: 12px; }
.chart .mark-v1 text { fill: #76767e; font-size: 12px; }
.chart .mark .sub { font-size: 11px; font-weight: 400; fill: #8e8e93; }
.chart .live line { stroke: var(--glacier-n); stroke-width: 1; stroke-dasharray: 2 3; opacity: .45; }
.chart .live circle { fill: var(--glacier-n); }
.chart .live .ring { fill: none; stroke: var(--glacier-n); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: live-ring 2.6s var(--ease-out) infinite; }
@keyframes live-ring { from { transform: scale(1); opacity: .65; } to { transform: scale(2.8); opacity: 0; } }

.chart-steps {
  flex: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 10px 22px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chart-steps::-webkit-scrollbar { display: none; }
.chart-steps li {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--hair-light);
  border-radius: 2px;
  background: #fafafa;
  font-size: 12px;
  color: var(--ink-2);
}
.chart-steps li b { font-family: var(--mono); font-weight: 500; font-size: 11px; color: #76767e; }
.chart-steps li span { font-weight: 600; color: var(--glacier-n); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ [4] what is new inside (brutalist schematics) */

.inside-plate {
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(320px, calc(var(--screen) * 0.68), 700px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .12);
  display: flex;
  overflow: hidden;
}
.cards {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
}
.card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(12px, 1.5vw, 22px);
  background: #0c0c10;
  color: var(--text);
}
.card-meta {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-3);
}
.card-meta span:last-child { color: var(--glacier-l); }
.card-art {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
  aspect-ratio: 3 / 1;
  border: 1px solid rgba(255, 255, 255, .09);
  background: #060609;
}
.card h3 {
  flex: none;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card p {
  flex: none;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.42;
  color: var(--text-2);
}

/* Brutalist hairline schematic primitives */
.card-art rect,
.card-art circle,
.card-art path,
.card-art line {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.sch-marks path { stroke: rgba(255, 255, 255, .28); }
.sch-grid rect,
.sch-grid path,
.sch-grid line { stroke: rgba(255, 255, 255, .18); }
.sch-grid circle { fill: rgba(255, 255, 255, .36); stroke: none; }
.sch-link line,
.sch-link path { stroke: rgba(255, 255, 255, .34); }
.sch-txt {
  font-family: var(--mono);
  font-size: 8.5px;
  fill: rgba(255, 255, 255, .48);
  letter-spacing: .03em;
}
.sch-txt-m { fill: rgba(255, 255, 255, .36); }
.sch-txt-strong {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  fill: var(--glacier-l);
  letter-spacing: .04em;
}

/* Schematic 01: Area Attention (8s calm step across 4 strips then P5 global) */
.sch-area .area-band,
.sch-area .area-global { stroke: none; fill: rgba(167, 207, 250, .14); opacity: 0; }
.sch-area .area-chord,
.sch-area .area-global-chord { stroke: var(--glacier-l); stroke-width: 1.2; opacity: 0; }
.sch-area .b1, .sch-area .c1 { animation: area-s1 8s linear infinite; }
.sch-area .b2, .sch-area .c2 { animation: area-s2 8s linear infinite; }
.sch-area .b3, .sch-area .c3 { animation: area-s3 8s linear infinite; }
.sch-area .b4, .sch-area .c4 { animation: area-s4 8s linear infinite; }
.sch-area .area-global, .sch-area .area-global-chord { animation: area-sg 8s linear infinite; }
@keyframes area-s1 { 0%, 16% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes area-s2 { 0%, 18% { opacity: 0; } 22%, 36% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes area-s3 { 0%, 38% { opacity: 0; } 42%, 56% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes area-s4 { 0%, 58% { opacity: 0; } 62%, 74% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes area-sg { 0%, 76% { opacity: 0; } 82%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* Schematic 02: HyperACE 24 hyperedges (9s slow 3-group focus shift) */
.sch-hyper .ht { stroke: rgba(255, 255, 255, .28); }
.sch-hyper .hyp-fan path { stroke: rgba(167, 207, 250, .55); }
.sch-hyper .h1, .sch-hyper .f1 { animation: hyp-p1 9s var(--ease) infinite; }
.sch-hyper .h2, .sch-hyper .f2 { animation: hyp-p2 9s var(--ease) infinite; }
.sch-hyper .h3, .sch-hyper .f3 { animation: hyp-p3 9s var(--ease) infinite; }
.sch-hyper .ht { stroke: var(--glacier-l); }
@keyframes hyp-p1 { 0%, 28% { opacity: .95; } 36%, 92% { opacity: .16; } 100% { opacity: .95; } }
@keyframes hyp-p2 { 0%, 28% { opacity: .16; } 36%, 62% { opacity: .95; } 70%, 100% { opacity: .16; } }
@keyframes hyp-p3 { 0%, 62% { opacity: .16; } 70%, 92% { opacity: .95; } 100% { opacity: .16; } }

/* Schematic 03: GeoSA sparse query refinement (7.5s duplicate fade + subtle settle) */
.sch-geosa .geo-dup { stroke: rgba(255, 255, 255, .46); stroke-dasharray: 3 3; animation: geo-dup 7.5s var(--ease) infinite; }
.sch-geosa .geo-main { animation: geo-settle 7.5s var(--ease) infinite; }
.sch-geosa .geo-main rect { stroke: rgba(167, 207, 250, .42); }
.sch-geosa .geo-main path { stroke: var(--glacier-l); stroke-width: 1.4; }
.sch-geosa .geo-main circle { fill: var(--glacier-l); stroke: none; }
.sch-geosa .geo-vec { stroke: rgba(167, 207, 250, .38); stroke-dasharray: 2 3; }
.sch-geosa .gb-bg { stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.sch-geosa .gb-val { stroke: var(--glacier-l); stroke-width: 2; opacity: .82; }
@keyframes geo-dup { 0%, 22% { opacity: .65; } 55%, 85% { opacity: .07; } 100% { opacity: .65; } }
@keyframes geo-settle { 0%, 22% { transform: translate(0, 0); } 55%, 85% { transform: translate(-2.5px, -1px); } 100% { transform: translate(0, 0); } }

/* Schematic 04: Strip & fold at export (8s calm drop-out) */
.sch-deploy .dep-drop rect,
.sch-deploy .dep-drop line { stroke: rgba(255, 255, 255, .36); stroke-dasharray: 3 3; }
.sch-deploy .dep-drop { animation: dep-drop 8s var(--ease) infinite; }
.sch-deploy .dep-gate { stroke: rgba(255, 255, 255, .28); stroke-dasharray: 2 3; }
.sch-deploy .dep-out rect { stroke: var(--glacier-l); fill: rgba(167, 207, 250, .06); }
.sch-deploy .dep-out { animation: dep-out 8s var(--ease) infinite; }
@keyframes dep-drop { 0%, 24% { opacity: .9; } 52%, 86% { opacity: .26; } 100% { opacity: .9; } }
@keyframes dep-out { 0%, 24% { opacity: .55; } 52%, 86% { opacity: 1; } 100% { opacity: .55; } }

/* ------------------------------------------------------------------ [4 · Verification] diagnostics */

.diag-card {
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: var(--r-card);
  background: var(--panel-light);
  border: 1px solid var(--hair-light);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.diag-card h3 { font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.diag-card > p { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.diag-card sup a { color: var(--ink-2); }
.diag-table {
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.diag-table th,
.diag-table td {
  padding: 10px 8px 10px 0;
  text-align: left;
  border-top: 1px solid var(--hair-light);
}
.diag-table thead th { border-top: 0; padding-top: 14px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.diag-table tbody th { font-weight: 500; color: var(--ink); }
.diag-table td { color: var(--ink-2); }
.diag-table .is-ours { color: var(--glacier-n); font-weight: 600; }
.diag-table .is-pos { font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 600; }
.diag-table .diag-total th,
.diag-table .diag-total td { font-weight: 600; color: var(--ink); border-top: 1.5px solid var(--ink); }
.diag-table .diag-total td.is-ours { color: var(--glacier-n); }

/* ------------------------------------------------------------------ [5] the numbers */

.numbers-intro { margin-top: 12px; max-width: 720px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; color: var(--text-2); }
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-card);
  background: #101014;
  border: 1px solid var(--hair-dark);
  color: var(--text);
}
.spec-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.peer-table { min-width: 780px; }
.bench-note { margin-top: 22px; font-size: 13px; line-height: 1.55; color: var(--text-3); max-width: 960px; }
.try-pick-btn { margin-top: 8px; }
.try-run-btn { white-space: nowrap; }
.try-app.is-dragover .try-stage { outline: 2px dashed var(--glacier-l); outline-offset: -8px; }
.spec-table th, .spec-table td { padding: clamp(8px, 1.05vh, 12px) 16px; text-align: left; vertical-align: middle; border-top: 1px solid var(--hair-dark); }
.spec-table thead th { border-top: 0; padding-top: 14px; padding-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.spec-table tbody th { width: 24%; font-weight: 600; color: var(--text); }
.spec-table small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--text-3); }
.spec-table td { color: var(--text-2); }
.spec-table .is-ours {
  background: rgba(255, 255, 255, .022);
  border-left: 1px solid var(--hair-dark);
  border-right: 1px solid var(--hair-dark);
  color: var(--text);
}
.spec-table thead .is-ours { color: #fff; }
.spec-table td.is-ours b { font-weight: 600; color: #fff; }
.spec-table td.is-best {
  background: rgba(59, 91, 219, .16);
  color: var(--glacier-l);
  font-weight: 600;
}
.spec-table td.is-caveat {
  background: rgba(229, 72, 77, .06);
  color: #d9b4b6;
}
.spec-table .pending { color: var(--glacier-l); }
.spec-table sup a { color: var(--text-2); }

/* ------------------------------------------------------------------ [5 · Speed] benchmarks */

.numbers-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.pareto-card, .runtime-card {
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--r-card);
  background: var(--panel-light);
  border: 1px solid var(--hair-light);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.pareto-card h3, .runtime-card h3 { font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.pareto-card p, .runtime-card p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.pareto-card sup a, .runtime-card sup a { color: var(--ink-2); }
.pareto-scroll { margin-top: auto; padding-top: 12px; }
.pareto { display: block; width: 100%; height: auto; max-height: 360px; overflow: visible; }
.pareto .grid line { stroke: #ebebf0; }
.pareto .axis text { font-size: 14px; fill: #76767e; font-family: var(--font); }
.pareto .pt circle { fill: #c4c4cc; }
.pareto .pt text { font-size: 15px; fill: #58585e; font-family: var(--font); }
.pareto .pt-real circle { fill: #76767e; }
.pareto .pt-ours circle { fill: var(--glacier-n); stroke: #fff; stroke-width: 2.5; }
.pareto .pt-ours text { font-weight: 600; fill: var(--glacier-n); }
.rt-table { width: 100%; margin-top: auto; padding-top: 12px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rt-table th, .rt-table td { padding: 10px 8px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--hair-light); }
.rt-table thead th { border-top: 0; padding-top: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.rt-table thead .is-ours { color: var(--glacier-n); }
.rt-table tbody th { font-weight: 600; color: var(--ink); }
.rt-table small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.rt-table td { color: var(--ink-2); white-space: nowrap; }
.rt-table td.is-ours b { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------------ [6] try it (dark card) */

.try-intro { margin-top: 12px; max-width: 720px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; color: var(--text-2); }
.try-app {
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(320px, calc(var(--screen) * 0.64), 660px);
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--r-card);
  background: #0d0d12;
  border: 1px solid rgba(111, 166, 242, .24);
  color: var(--text);
}
.try-stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  background: #05070d;
}
.try-canvas { display: block; width: 100%; height: 100%; }
.try-hud-bar { display: contents; }
.try-hud { position: absolute; top: 10px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.try-hud-left { left: 10px; }
.try-hud-right { right: 10px; }
.try-hud > span, .try-model {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  background: rgba(5, 7, 13, .8);
  font-size: 12px;
  color: var(--text-2);
}
.try-model { padding-left: 5px; }
.try-model img { width: 18px; height: 18px; padding: 2px; border-radius: 1px; background: #fff; }
.try-model b { font-size: 12px; font-weight: 500; color: var(--text); }
.try-hud .try-state { color: var(--glacier-l); }
.try-state::before { content: ""; width: 5px; height: 5px; border-radius: 0; background: var(--glacier-l); }
.try-hud b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.try-drop { position: absolute; inset: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; border: 1px dashed rgba(167, 207, 250, .4); background: rgba(5, 7, 13, .9); text-align: center; color: var(--text-2); font-size: 14px; }
.try-drop[hidden] { display: none; }
.try-drop b { font-size: 18px; font-weight: 600; color: var(--text); }
.try-drop span:last-child { max-width: 380px; }
.try-drop-icon { width: 38px; height: 38px; margin-bottom: 4px; border: 1px solid rgba(167, 207, 250, .5); position: relative; }
.try-drop-icon::before, .try-drop-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--glacier-l); transform: translate(-50%, -50%); }
.try-drop-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.try-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 8px 0 0; }
.try-bar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.try-video[hidden] { display: none; }
.try-video-picks { display: flex; align-items: center; gap: 6px; }
.try-video-picks[hidden] { display: none; }
.try-video-picks .try-scene { padding: 4px 12px; }
.try-video-picks .try-scene-own { padding-left: 4px; }
.try-mode-note { font-size: 13px; color: var(--text-3); padding: 0 4px; }
.try-mode-note[hidden] { display: none; }
.try-scenes[hidden] { display: none; }
.try-scenes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.try-scenes::-webkit-scrollbar { display: none; }
.try-scene {
  flex: none;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 2px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
  font-size: 13px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.try-scene img { width: 34px; height: 34px; border-radius: 1px; object-fit: cover; }
.try-scene:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.try-scene[aria-selected="true"] { background: rgba(111, 166, 242, .12); color: var(--text); border-color: rgba(167, 207, 250, .5); }
.try-plus { width: 34px; height: 34px; border: 1px dashed rgba(255, 255, 255, .28); display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--text-2); }
.try-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.try-seg { display: flex; gap: 1px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px; background: rgba(255, 255, 255, .08); }
.try-seg button { height: 42px; padding: 0 14px; border: 0; background: #0d0d12; font-size: 13px; color: var(--text-2); transition: background-color .2s, color .2s; }
.try-seg button[aria-pressed="true"] { background: var(--glacier-n); color: #fff; }
.try-conf { height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px; background: rgba(255, 255, 255, .03); font-size: 13px; color: var(--text-2); }
.try-conf input { width: 104px; accent-color: var(--glacier-m); }
.try-conf b { width: 34px; font-size: 12px; font-weight: 500; color: var(--text); }
.try-hud-right, .try-controls { transition: opacity .25s var(--ease); }
.try-app.is-own .try-hud-right { opacity: 0; }
.try-app.is-own .try-controls { opacity: .35; }
.v2 canvas { max-width: 100%; }

/* ------------------------------------------------------------------ [7] on your own data */

.tune-intro { margin-top: 12px; max-width: 720px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; color: var(--ink-2); }
.tune-intro sup a { color: var(--ink-2); }
.tune-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tune-card {
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--r-card);
  background: var(--panel-light);
  border: 1px solid var(--hair-light);
  color: var(--ink);
}
.tune-card h3 { font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.tune-card > p { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.tune-bars { margin-top: 22px; display: grid; gap: 14px; }
.tune-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "bar bar"; gap: 6px 10px; align-items: baseline; }
.tb-name { grid-area: name; font-size: 13px; color: var(--ink-2); }
.tune-bars b { grid-area: value; font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tb-bar { grid-area: bar; height: 6px; border-radius: 0; background: #ececf1; overflow: hidden; }
.tb-bar i { display: block; height: 100%; background: #b8b8c2; }
.tune-bars .is-ours .tb-name, .tune-bars .is-ours b { color: var(--glacier-n); }
.tune-bars .is-ours .tb-bar i { background: var(--glacier-n); }
.tune-foot { font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------------ [5..8] step-by-step cards */

.step-intro { margin-top: 12px; max-width: 780px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; color: var(--text-2); }
[data-theme="light"] .step-intro { color: var(--ink-2); }

.step-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.step-box {
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--r-card);
  background: var(--panel-light);
  border: 1px solid var(--hair-light);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.step-meta span:last-child { color: var(--glacier-n); font-weight: 600; }
.step-box h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.step-box p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.cmd-box {
  margin-top: auto;
  padding: 10px 10px 10px 14px;
  border-radius: 2px;
  background: #101014;
  border: 1px solid rgba(17, 17, 19, .18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cmd-box code {
  font-size: 13.5px;
  color: #fff;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.cmd-box code::-webkit-scrollbar { display: none; }
.cmd-box .cmd-copy {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 2px;
  font-size: 12px;
}

.step-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.step-list, .format-list {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 12px;
}
.step-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: clamp(16px, 1.8vw, 22px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--hair-dark);
  color: var(--text);
}
.step-num {
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 207, 250, .35);
  border-radius: 2px;
  background: rgba(59, 91, 219, .14);
  font-size: 12px;
  font-weight: 600;
  color: var(--glacier-l);
}
.step-list h3 { font-size: 17px; line-height: 1.22; font-weight: 600; color: var(--text); }
.step-list p { margin-top: 6px; font-size: 14px; line-height: 1.44; color: var(--text-2); }

.yaml-card {
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--r-card);
  background: var(--panel-light);
  border: 1px solid var(--hair-light);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.yaml-card h3 { font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.yaml-card > p { font-size: 14px; line-height: 1.44; color: var(--ink-2); }
.yaml-pre {
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 2px;
  background: #101014;
  color: #e6e8f0;
  font-size: 13.5px;
  line-height: 1.56;
  overflow-x: auto;
}
.yaml-foot { font-size: 13.5px; color: var(--ink-2); }

.format-list li {
  padding: clamp(14px, 1.5vw, 18px) clamp(16px, 1.8vw, 22px);
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--hair-dark);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.fmt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fmt-top b { font-size: 16px; font-weight: 600; color: #fff; }
.format-list p { font-size: 13.5px; line-height: 1.42; color: var(--text-2); }

.avail-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.code-card {
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--hair-dark);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hair-dark);
  font-size: 12px;
  color: var(--text-2);
}
.code-tabs { display: flex; gap: 1px; border: 1px solid var(--hair-dark); background: var(--hair-dark); border-radius: 2px; }
.code-tabs button { height: 30px; padding: 0 12px; border: 0; background: #101014; font-size: 13px; color: var(--text-2); transition: background-color .2s, color .2s; }
.code-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
.code-bar .code-install { font-size: 12px; color: var(--text-3); }
.code[hidden] { display: none; }
.code-actions { display: flex; align-items: center; gap: 12px; }
.code-bar .code-copy { height: 32px; padding: 0 12px; border-radius: 2px; font-size: 12px; }
.code { padding: 22px 24px; overflow-x: auto; font-size: 15px; line-height: 1.68; color: var(--text); }
.code-note { margin-top: auto; padding: 0 24px 22px; font-size: 14px; color: var(--text-2); }

.lineup { display: grid; grid-auto-rows: 1fr; gap: 12px; }
.lineup-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--panel);
  border: 1px solid var(--hair-dark);
  color: var(--text);
}
.lineup-item img { width: 72px; height: 72px; border-radius: 2px; background: #fff; padding: 11px; }
.lineup-item h3 { font-size: 18px; line-height: 1.2; font-weight: 600; color: var(--text); }
.lineup-item h3 .mono { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--text-2); white-space: nowrap; }
.lineup-item p { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.lineup-item .pill-tag { border-radius: 2px; background: var(--glacier-n); color: #fff; }
.lineup-item .pill-link { background: rgba(255, 255, 255, .1); color: var(--text); }
.lineup-item .pill-link:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.avail-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ light footer card */

.v2 .footer[data-theme="light"] {
  --card-bg: var(--paper);
  background: var(--paper);
  color: var(--ink-2);
  padding-top: 48px;
}
.v2 .footer[data-theme="light"] a { color: var(--ink); }
.v2 .footer[data-theme="light"] .footnotes,
.v2 .footer[data-theme="light"] .directory { border-bottom-color: var(--hair-light); }
.v2 .footer[data-theme="light"] .legal-more a { color: var(--link-light); }

/* ------------------------------------------------------------------ compact desktop / laptop heights */

@media (min-width: 735px) and (max-height: 820px) {
  .v2 .headline-md { font-size: clamp(28px, 3.2vw, 42px); }
  .v2 .card-shell { gap: 12px; }
  .kicker { margin-bottom: 6px; }
  .card { padding: 10px 14px; gap: 5px; }
  .card-art { max-height: 108px; }
  .card p { font-size: 13px; line-height: 1.35; }
  .spec-table th, .spec-table td { padding: 7px 16px; font-size: 14px; }
  .spec-table small { display: inline; margin: 0 0 0 8px; }
  .pareto { max-height: 280px; }
  .rt-table th, .rt-table td { padding: 7px 8px 7px 0; }
}

/* ------------------------------------------------------------------ tablet */

@media (max-width: 1068px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--hair-dark); }
  .avail-grid { grid-template-columns: minmax(0, 1fr); }
  .split-pair, .numbers-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ mobile (single-screen cards with crisp tab switchers) */

@media (max-width: 734px) {
  .v2 .stack-card:not(.bird-hero):not(.is-last),
  .v2 .stack-card.has-next:not(.bird-hero):not(.is-last) {
    height: auto;
    min-height: var(--screen);
    justify-content: flex-start;
    padding-top: 66px;
    padding-bottom: calc(var(--jag-h) + 16px);
  }
  .v2 .card-shell {
    justify-content: flex-start;
    gap: 10px;
  }
  .kicker { margin-bottom: 4px; font-size: 12px; }
  .v2 .headline-md { font-size: clamp(22px, 6.4vw, 30px); line-height: 1.1; }
  .lead-text { font-size: clamp(19px, 5.2vw, 24px); line-height: 1.26; }
  .lead-soft { display: block; margin-top: 10px; font-size: .86em; }
  .facts { margin-top: 10px; }
  .facts li { padding: 12px 10px 12px 0; gap: 3px; }
  .facts li + li { padding-left: 10px; }
  .fact-value { font-size: clamp(30px, 8.6vw, 40px); }
  .fact-label { font-size: 12px; }

  .look-intro, .learn-intro, .numbers-intro, .try-intro, .tune-intro {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.38;
  }

  /* Phone-only brutalist segmented tab bar */
  .mob-tabs {
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--hair-dark);
    border: 1px solid var(--hair-dark);
    border-radius: 2px;
  }
  .mob-tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mob-tabs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mob-tabs button {
    height: 34px;
    padding: 0 6px;
    border: 0;
    background: #111116;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mob-tabs-4 button {
    padding: 0 2px;
    font-size: 10px;
    letter-spacing: -0.02em;
  }
  .mob-tabs button[aria-selected="true"] { background: #fff; color: #0a0a0c; font-weight: 600; }

  [data-theme="light"] .mob-tabs {
    background: var(--hair-light);
    border-color: var(--hair-light);
  }
  [data-theme="light"] .mob-tabs button {
    background: #ebebf0;
    color: var(--ink-2);
  }
  [data-theme="light"] .mob-tabs button[aria-selected="true"] {
    background: var(--ink);
    color: #fff;
  }

  [data-tabgroup] [data-tab-panel]:not(.is-active) { display: none !important; }

  /* [2] Duel stacked vertically to fit one phone screen */
  .duel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: none;
  }
  .duel-cap { top: 6px; left: 6px; padding: 3px 8px 3px 3px; }
  .duel-sub { display: none; }

  /* Split pairs become full-width active panel on mobile */
  .split-pair, .numbers-pair, .tune-grid, .step-grid-3, .step-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .look-compare, .crowd-card, .diag-card, .pareto-card, .runtime-card, .tune-card, .step-box, .yaml-card {
    padding: 16px 14px;
  }
  .step-intro { margin-top: 6px; font-size: 14px; line-height: 1.38; }
  .step-list, .format-list { gap: 8px; }
  .step-list li { padding: 12px; gap: 10px; }
  .step-list h3 { font-size: 15.5px; }
  .step-list p, .format-list p { font-size: 12.5px; line-height: 1.38; margin-top: 3px; }
  .format-list li { padding: 10px 12px; gap: 4px; }
  .yaml-pre { padding: 10px 12px; font-size: 12px; line-height: 1.45; }
  .look-stats li { padding: 9px 0; }
  .ls-pair b { font-size: 20px; }
  .crowd-chart { max-height: 195px; }
  .crowd-chart .axis text { font-size: 18px; }
  .crowd-chart .cl-label { font-size: 18px; }

  /* [3] Chart card */
  .chart-card { max-height: none; padding-bottom: 8px; }
  .chart-top { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 12px 0; }
  .chart-title { font-size: 13.5px; }
  .chart-tabs button { height: 26px; padding: 0 9px; font-size: 11.5px; white-space: nowrap; }
  .chart-legend, .chart-steps { padding-inline: 12px; }
  .chart-legend { padding-top: 4px; gap: 3px 12px; font-size: 11px; }
  .chart-wrap { padding: 2px 6px 0 0; min-height: 110px; }

  /* [4] Inside schematic plate: 1 card visible at a time */
  .inside-plate {
    flex: 0 1 auto;
    background: transparent;
    border-color: rgba(255, 255, 255, .15);
    max-height: none;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .card { padding: 14px; gap: 10px; justify-content: flex-start; }
  .card-art { max-height: 140px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 14px; line-height: 1.42; }

  /* [4 · Verification] Diagnostics */
  .diag-table th, .diag-table td { padding: 8px 6px 8px 0; font-size: 13px; }
  .diag-table td { white-space: nowrap; }

  /* [2] Spec / peer table scrolls cleanly horizontally with a crisp sticky label column and no nested vertical scroll trap */
  .table-wrap { flex: none; overflow-x: auto; overflow-y: visible; }
  .spec-table, .peer-table { width: max-content; min-width: 100%; font-size: 12px; line-height: 1.3; }
  .spec-table th, .spec-table td { padding: 7px 10px; white-space: nowrap; }
  .spec-table thead th { padding-block: 9px; font-size: 11px; }
  .spec-table thead th:first-child,
  .spec-table tbody th {
    position: sticky;
    left: 0;
    width: auto;
    min-width: 116px;
    background: #101014;
    box-shadow: 1px 0 0 var(--hair-dark);
  }
  .spec-table thead th:first-child { z-index: 3; }
  .spec-table tbody th { z-index: 2; }
  .spec-table tr:last-child td { white-space: nowrap; }
  .spec-table tbody th small { display: none; }
  .spec-table td.is-ours small { display: block; margin-top: 1px; font-size: 10px; color: var(--glacier-l); line-height: 1.2; white-space: nowrap; }
  .bench-note { margin-top: 10px; font-size: 12px; line-height: 1.48; }

  /* [5 · Speed] Pareto scales proportionally on phone without sideways scrolling overflow */
  .pareto { max-height: 230px; }
  .pareto .axis text { font-size: 17px; }
  .pareto .pt text { font-size: 17px; }
  .rt-table th, .rt-table td { padding: 8px 6px 8px 0; font-size: 13px; }

  /* [6] Try it */
  .try-app { max-height: none; padding: 6px; }
  .try-hud-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 6px;
  }
  .try-hud { position: static; flex-wrap: wrap; gap: 5px; }
  .try-hud > span, .try-model { height: 26px; font-size: 11px; padding: 0 8px; }
  .try-scene { height: 38px; font-size: 12px; padding-right: 10px; }
  .try-scene img, .try-plus { width: 28px; height: 28px; }
  .try-controls { width: 100%; }
  .try-seg button { height: 36px; padding: 0 12px; font-size: 12px; }
  .try-conf { flex: 1 1 0; min-width: 0; height: 38px; padding: 0 10px; font-size: 12px; }
  .try-conf input { flex: 1; width: 0; min-width: 0; }

  /* Ensure the footer curtain never clips section [8] */
  .v2 .stack-card.is-last { position: relative; top: auto !important; }

  /* [7] Fine-tuning */
  .tune-bars { margin-top: 16px; gap: 12px; }
  .tune-foot { font-size: 12px; line-height: 1.4; }

  /* [8] Availability / code bars */
  .code-bar { height: 42px; padding: 0 8px; gap: 6px; }
  .code-bar .code-install { display: none; }
  .code-tabs button { height: 28px; padding: 0 8px; font-size: 11.5px; white-space: nowrap; }
  .code-bar .code-copy { height: 28px; padding: 0 9px; font-size: 11.5px; }
  .code { padding: 12px 14px; font-size: 12px; line-height: 1.5; }
  .code-note { padding: 0 14px 12px; font-size: 12.5px; }
  .lineup { gap: 8px; }
  .lineup-item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 10px;
  }
  .lineup-item img { width: 44px; height: 44px; padding: 6px; }
  .lineup-item h3 { font-size: 16px; }
  .lineup-item p { font-size: 12px; margin-top: 3px; }
  .lineup-item .pill-tag { height: 24px; padding: 0 8px; font-size: 11px; }
  .avail-ctas .btn { height: 38px; padding: 0 16px; font-size: 14px; }
}

@media (max-width: 479px) {
  .try-controls { flex-direction: column; align-items: stretch; }
  .try-seg { width: 100%; }
  .try-seg button { flex: 1 1 0; }
  .try-conf { flex: 1 1 100%; width: 100%; justify-content: space-between; }
  .try-conf b { width: auto; min-width: 34px; text-align: right; }
}

@media (max-width: 734px) and (max-height: 700px) {
  .v2 .stack-card:not(.bird-hero):not(.is-last),
  .v2 .stack-card.has-next:not(.bird-hero):not(.is-last) {
    padding-top: 62px;
    padding-bottom: calc(var(--jag-h) + 8px);
  }
  .v2 .card-shell { gap: 6px; }
  .kicker { margin-bottom: 2px; font-size: 11px; }
  .v2 .headline-md { font-size: 20px; }
  .lead-text { font-size: 17.5px; }
  .fact-value { font-size: 28px; }
  .look-intro, .learn-intro, .numbers-intro, .try-intro, .tune-intro { margin-top: 4px; font-size: 12.5px; line-height: 1.34; }
  .look-compare, .crowd-card, .diag-card, .pareto-card, .runtime-card, .tune-card { padding: 12px; }
  .look-compare h3, .crowd-card h3, .diag-card h3, .pareto-card h3, .runtime-card h3 { font-size: 17px; }
  .look-compare > p, .crowd-card p, .diag-card > p, .pareto-card p, .runtime-card p { font-size: 12.5px; margin-top: 4px; }
  .look-stats { padding-top: 8px; }
  .look-stats li { padding: 7px 0; }
  .ls-pair b { font-size: 18px; }
  .card { padding: 12px; gap: 8px; }
  .card-art { max-height: 110px; }
  .card p { font-size: 13px; }
  .diag-table { padding-top: 6px; }
  .diag-table thead th { padding-top: 8px; font-size: 11px; }
  .diag-table th, .diag-table td { padding: 6px 6px 6px 0; font-size: 12px; }
  .spec-table th, .spec-table td { padding: 6px 8px; font-size: 12px; }
  .rt-table { padding-top: 6px; }
  .rt-table th, .rt-table td { padding: 6px 6px 6px 0; font-size: 12px; }
  .rt-table small { font-size: 11px; }
  .code-bar { height: 38px; }
  .code { padding: 10px 12px; font-size: 11px; line-height: 1.44; }
  .code-note { padding: 0 12px 10px; font-size: 11.5px; line-height: 1.35; }
  .lineup { gap: 6px; }
  .lineup-item { padding: 8px 10px; gap: 6px 10px; }
  .lineup-item img { width: 38px; height: 38px; padding: 5px; }
  .lineup-item h3 { font-size: 14.5px; }
  .lineup-item p { font-size: 11.5px; margin-top: 2px; line-height: 1.32; }
  .avail-ctas { gap: 8px; }
  .avail-ctas .btn { height: 34px; padding: 0 14px; font-size: 13px; }
}

@media (max-width: 359px) {
  .mob-tabs button { font-size: 9.5px; padding: 0 2px; }
  .mob-tabs-4 button { font-size: 9px; }
  .v2 .headline-md { font-size: 19.5px; }
  .lead-text { font-size: 16.5px; }
  .fact-value { font-size: 26px; }
  .diag-table th, .diag-table td { padding: 5px 4px 5px 0; font-size: 11px; }
  .spec-table th, .spec-table td { padding: 5px 6px; font-size: 11px; }
  .rt-table th, .rt-table td { padding: 5px 4px 5px 0; font-size: 11.5px; }
  .code { font-size: 10.5px; padding: 8px 10px; }
  .code-note { font-size: 11px; padding: 0 10px 8px; }
  .lineup-item h3 .mono { font-size: 10px; }
  .avail-ctas .btn { height: 32px; padding: 0 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sch-area .b4, .sch-area .c4 { opacity: 1 !important; animation: none !important; }
  .sch-area .area-global, .sch-area .area-global-chord { opacity: 1 !important; animation: none !important; }
  .sch-hyper .h2, .sch-hyper .f2 { opacity: .95 !important; animation: none !important; }
  .sch-geosa .geo-dup { opacity: .1 !important; animation: none !important; }
  .sch-geosa .geo-main { transform: translate(-2.5px, -1px) !important; animation: none !important; }
  .sch-deploy .dep-drop { opacity: .28 !important; animation: none !important; }
  .sch-deploy .dep-out { opacity: 1 !important; animation: none !important; }
}
