/* ═══════════════════════════════════════════════════════════════
   Qartez · Field Atlas - stylesheet
   Palette:  warm near-black, cream paper, phosphor amber, glass cyan
   Type:     Fraunces (display serif), Instrument Sans (body), JetBrains Mono (tech)
   ═══════════════════════════════════════════════════════════════ */

.skip-to-content {
  position: absolute; left: -9999px; top: auto;
  padding: .5rem 1rem; background: var(--amber); color: var(--ink);
  font-family: var(--ff-mono); font-size: 13px; z-index: 1000;
  border-radius: 0 0 4px 0;
}
.skip-to-content:focus { left: 0; top: 0; }

:root {
  --ink:       #0b0908;
  --ink-2:     #120e0b;
  --ink-3:     #18120d;
  --paper:     #f4ead5;
  --paper-2:   #e8dcbf;
  --paper-dim: #8c8575;
  --paper-mute:#5b554a;
  --line:      #27211b;
  --line-2:    #352c22;
  --amber:     #ffb534;
  --amber-hi:  #ffce6e;
  --amber-dim: #8c5e1a;
  --cyan:      #5ee2d0;
  --cyan-dim:  #2a6b66;
  --red:       #ff6a4d;
  --glow:      rgba(255, 181, 52, .22);
  --glow-soft: rgba(255, 181, 52, .08);

  --ff-display: "Fraunces", "Playfair Display", ui-serif, Georgia, serif;
  --ff-body:    "Instrument Sans", "Onest", ui-sans-serif, system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max:    min(1240px, 92vw);
  --rhythm: clamp(3.5rem, 9vw, 9rem);

  --ease:       cubic-bezier(.2, .7, .1, 1);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
}

/* ─── reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "ss02", "cv11"; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-body);
  font-size: clamp(15px, 1vw + 0.5rem, 17px);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; padding: 0; margin: 0; }
code, pre { font-family: var(--ff-mono); }
::selection { background: var(--amber); color: var(--ink); }

/* ─── atmosphere layers ────────────────────────────────────── */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.grain-layer {
  position: fixed; inset: -20%;
  z-index: 2;
  pointer-events: none;
  filter: url(#grain-filter);
  opacity: .55;
  mix-blend-mode: overlay;
}
.grain-layer::before {
  content: "";
  position: absolute; inset: 0;
  background: #fff;
}

.contours {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1200px 800px at 80% -10%, rgba(255, 181, 52, .09), transparent 60%),
    radial-gradient(900px 600px at -10% 60%, rgba(94, 226, 208, .05), transparent 65%),
    radial-gradient(700px 700px at 50% 120%, rgba(255, 181, 52, .07), transparent 70%);
}
.contours::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(circle at 80% 10%,
      transparent 0 70px,
      rgba(255, 181, 52, .035) 70px 71px),
    repeating-radial-gradient(circle at 15% 75%,
      transparent 0 90px,
      rgba(244, 234, 213, .022) 90px 91px);
  mix-blend-mode: screen;
}

.vignette {
  position: fixed; inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%);
}

body > * { position: relative; z-index: 10; }

/* ─── chrome / top nav ─────────────────────────────────────── */
.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem);
  z-index: 1000;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(to bottom, rgba(11, 9, 8, .82), rgba(11, 9, 8, .42));
  border-bottom: 1px solid var(--line);
}
.chrome__controls { display: flex; align-items: center; gap: 1.4rem; }
.chrome__lang {
  position: relative;
}
.chrome__lang-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .25rem .55rem;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--paper-dim);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.chrome__lang-btn:hover { color: var(--paper); border-color: var(--amber-dim); }
.chrome__lang.open .chrome__lang-btn { color: var(--amber); border-color: var(--amber-dim); }
.chrome__lang-flag { display: flex; width: 16px; height: 12px; border-radius: 1px; overflow: hidden; flex-shrink: 0; }
.chrome__lang-flag svg { width: 100%; height: 100%; }
.chrome__lang-code { min-width: 1.6em; }
.chrome__lang-chevron {
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.chrome__lang.open .chrome__lang-chevron { transform: rotate(180deg); }
.chrome__lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  padding: .3rem 0;
  background: rgba(11, 9, 8, .92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 1001;
}
.chrome__lang.open .chrome__lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.chrome__lang-menu li {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .7rem;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--paper-mute);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.chrome__lang-menu li:not(.disabled):hover { color: var(--paper); background: rgba(255, 181, 52, .08); }
.chrome__lang-menu li.active { color: var(--amber); }
.chrome__lang-menu li.disabled { opacity: .3; cursor: default; }
.chrome__lang-menu li .chrome__lang-flag { width: 16px; height: 12px; }
.chrome__lang-menu li .chrome__lang-name { flex: 1; }
.chrome__mark { display: flex; align-items: center; gap: .55rem; }
.chrome__logo { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
.chrome__name {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
}
.chrome__slash { opacity: .35; }
.chrome__nav { display: flex; gap: .85rem; justify-content: center; }
.chrome__nav a {
  padding: .3rem .2rem;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.chrome__nav a:hover { color: var(--amber); border-color: var(--amber); }
.chrome__nav a.active { color: var(--paper); border-color: var(--amber); }
.chrome__gh {
  display: flex; align-items: center; gap: .4rem;
  padding: .22rem .6rem;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--paper-mute);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.chrome__gh:hover { color: var(--paper); border-color: var(--amber-dim); }
.chrome__gh svg { flex-shrink: 0; }
.chrome__gh-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.chrome__meta { justify-self: end; letter-spacing: .12em; }
.chrome__meta .dim { opacity: .4; padding: 0 .2rem; }

/* ─── shared ───────────────────────────────────────────────── */
main { padding-top: 60px; }

section {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [main-start] minmax(0, var(--max)) [main-end]
    minmax(var(--gutter), 1fr) [full-end];
  padding: var(--rhythm) 0;
  position: relative;
  row-gap: 0;
}
section > * { grid-column: main; min-width: 0; }
section > .full { grid-column: full; }

/* per-section background art - subtle SVG patterns mapped by id */
section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
section > * { position: relative; z-index: 1; }
#problem::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><circle cx='40' cy='40' r='1' fill='%23f4ead5' fill-opacity='.05'/></svg>");
  background-size: 80px 80px;
}
#capabilities::before {
  background-image:
    repeating-linear-gradient(45deg, transparent 0 119px, rgba(255, 181, 52, .035) 119px 120px),
    repeating-linear-gradient(-45deg, transparent 0 119px, rgba(255, 181, 52, .025) 119px 120px);
}
#benchmark::before {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(244, 234, 213, .03) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(244, 234, 213, .03) 79px 80px);
}
#tools::before {
  background-image: radial-gradient(circle at 50% 30%, var(--glow-soft), transparent 60%);
}
#hood::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><path d='M-20 100 Q40 80 100 100 T220 100' fill='none' stroke='%23ffb534' stroke-opacity='.04' stroke-width='1'/><path d='M-20 60 Q40 40 100 60 T220 60' fill='none' stroke='%23ffb534' stroke-opacity='.025' stroke-width='1'/><path d='M-20 140 Q40 120 100 140 T220 140' fill='none' stroke='%23ffb534' stroke-opacity='.025' stroke-width='1'/></svg>");
  background-size: 200px 200px;
}
#comparison::before {
  background-image:
    linear-gradient(90deg, var(--glow-soft) 0%, transparent 30%, transparent 70%, var(--glow-soft) 100%);
  opacity: .35;
}
#dogfood::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><circle cx='20' cy='20' r='1.2' fill='%23ffb534' fill-opacity='.18'/><circle cx='80' cy='40' r='.8' fill='%23f4ead5' fill-opacity='.08'/><circle cx='50' cy='90' r='1' fill='%23ffb534' fill-opacity='.12'/><circle cx='100' cy='100' r='.6' fill='%23f4ead5' fill-opacity='.06'/></svg>");
  background-size: 120px 120px;
}
#install::before {
  background-image: radial-gradient(ellipse at 50% 100%, var(--glow-soft), transparent 60%);
}

.chapter {
  display: block;
  text-align: center;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  position: relative;
}
.chapter__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--amber);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
  padding-top: 0;
}
.chapter__title {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 96, "wght" 340;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 22ch;
  color: var(--paper);
}
.chapter__body {
  max-width: 62ch;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.05vw + .6rem, 1.2rem);
  line-height: 1.6;
  margin: 1.4rem auto 3rem;
  text-align: center;
}
.dim { color: var(--paper-mute); }

/* ═════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════ */
.hero {
  min-height: min(100vh, 1040px);
  padding-top: calc(60px + 1.4rem);
  padding-bottom: var(--rhythm);
  align-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* atlas - constellation / topographic map behind content */
.hero__atlas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.hero__atlas .hero__arcs path {
  fill: none;
  stroke: var(--amber);
  stroke-width: .8;
  opacity: .35;
  stroke-dasharray: 4 7;
  animation: atlas-drift 28s linear infinite;
  filter: drop-shadow(0 0 6px var(--glow-soft));
}
.hero__atlas .hero__arcs path:nth-child(2n) { opacity: .22; animation-duration: 40s; }
.hero__atlas .hero__arcs path:nth-child(3n) { opacity: .14; animation-duration: 55s; }
.hero__atlas .hero__edges polyline {
  fill: none;
  stroke: var(--paper);
  stroke-width: .5;
  opacity: .18;
}
.hero__atlas .hero__stars circle {
  fill: var(--paper);
  opacity: .62;
  animation: twinkle 5s ease-in-out infinite;
}
.hero__atlas .hero__stars circle.bright {
  fill: var(--amber);
  opacity: 1;
  filter: drop-shadow(0 0 10px var(--glow));
  animation-duration: 3.5s;
}
.hero__atlas .hero__stars circle:nth-child(2n) { animation-delay: -1.3s; }
.hero__atlas .hero__stars circle:nth-child(3n) { animation-delay: -2.7s; }
.hero__atlas .hero__stars circle:nth-child(5n) { animation-delay: -4.1s; }

@keyframes atlas-drift {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -180; }
}
@keyframes twinkle {
  0%, 100% { opacity: .2; transform: scale(1); }
  50%      { opacity: .9; transform: scale(1.4); }
}

.hero > *:not(.hero__atlas):not(.hero__sigil) { position: relative; z-index: 1; }

/* hero sigil watermark - large compass mark behind the title */
.hero__sigil {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -38%);
  width: clamp(360px, 50vw, 720px);
  height: auto;
  pointer-events: none;
  z-index: 0;
  color: var(--amber);
  opacity: .85;
  filter: drop-shadow(0 0 40px rgba(255, 181, 52, .12));
}
.hero__sigil-rings {
  animation: sigil-rotate 80s linear infinite;
  transform-origin: 160px 160px;
}
.hero__sigil-cross {
  animation: sigil-rotate 140s linear infinite reverse;
  transform-origin: 160px 160px;
}
.hero__sigil-mark {
  animation: sigil-pulse 6s ease-in-out infinite;
  transform-origin: 160px 160px;
}
@keyframes sigil-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes sigil-pulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* eyebrow flourishes - small chevron flanks framing the eyebrow text */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: auto;
  max-width: 70ch;
  flex-wrap: nowrap;
  justify-content: center;
}
.hero__eyebrow-flourish {
  display: inline-flex;
  width: 60px;
  height: 12px;
  color: var(--amber);
  flex-shrink: 0;
  opacity: .8;
  filter: drop-shadow(0 0 8px var(--glow-soft));
}
.hero__eyebrow-flourish svg { width: 100%; height: 100%; }
.hero__eyebrow-text { display: inline-block; }
@media (max-width: 720px) {
  .hero__eyebrow { flex-wrap: wrap; gap: .6rem; }
  .hero__eyebrow-flourish { width: 44px; }
}

.hero__rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin: 0 auto 3rem;
  max-width: var(--max);
  width: 100%;
}
.hero__rule span { height: 1px; background: var(--line-2); }
.hero__rule em { font-style: normal; padding: 0 .8rem; }

.hero__eyebrow {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: "opsz" 14, "wght" 400;
  font-style: italic;
  font-size: clamp(1rem, 1.2vw + .4rem, 1.35rem);
  color: var(--amber);
  letter-spacing: 0;
  max-width: 52ch;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 380;
  font-size: clamp(3.6rem, 12vw, 11rem);
  line-height: .95;
  letter-spacing: -0.035em;
  margin: 0 auto 2.8rem;
  max-width: none;
  text-align: center;
  color: var(--paper);
}
.hero__title .line {
  display: block;
}
.hero__title .line:nth-child(2) {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" 320;
  padding-bottom: .12em;
}
.hero__title .line:nth-child(3)::after {
  content: "";
  display: inline-block;
  width: .42em; height: .42em;
  margin-left: .18em;
  background: var(--amber);
  border-radius: 50%;
  transform: translateY(-.06em);
  box-shadow: 0 0 40px var(--glow), 0 0 80px var(--glow-soft);
}

/* X-ray effect - applied to "X-ray" / "Рентген" inside the hero title */
.hero__title .xray {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  isolation: isolate;
  padding-bottom: .18em;
  margin-bottom: -.18em;
  background-image:
    repeating-linear-gradient(180deg,
      transparent 0,
      transparent .052em,
      rgba(0, 0, 0, .55) .052em,
      rgba(0, 0, 0, .55) .076em),
    linear-gradient(180deg,
      #c8f6ec 0%,
      #5ee2d0 38%,
      #2da490 68%,
      #5ee2d0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 0 .04em rgba(94, 226, 208, .9),
    0 0 .14em rgba(94, 226, 208, .65),
    0 0 .35em rgba(94, 226, 208, .42),
    0 0 .7em  rgba(94, 226, 208, .22);
  animation: xray-glow 5s ease-in-out infinite;
}
.hero__title .xray::before {
  /* faint radial halo behind the word */
  content: "";
  position: absolute;
  inset: -.25em -.18em;
  background: radial-gradient(ellipse at center, rgba(94, 226, 208, .14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero__title .xray::after {
  /* horizontal scanner beam sliding vertically over the word */
  content: "";
  position: absolute;
  left: -.08em;
  right: -.08em;
  top: 0;
  height: .32em;
  background: linear-gradient(180deg,
    transparent,
    rgba(94, 226, 208, .55) 38%,
    rgba(255, 255, 255, .85) 50%,
    rgba(94, 226, 208, .55) 62%,
    transparent);
  filter: blur(.04em);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: xray-scan 5s ease-in-out infinite;
  border-radius: 50%/8px;
}
@keyframes xray-glow {
  0%, 100% {
    text-shadow:
      0 0 .04em rgba(94, 226, 208, .9),
      0 0 .14em rgba(94, 226, 208, .6),
      0 0 .35em rgba(94, 226, 208, .4),
      0 0 .7em  rgba(94, 226, 208, .2);
  }
  50% {
    text-shadow:
      0 0 .05em rgba(94, 226, 208, 1),
      0 0 .2em  rgba(94, 226, 208, .85),
      0 0 .5em  rgba(94, 226, 208, .58),
      0 0 .9em  rgba(94, 226, 208, .35);
  }
}
@keyframes xray-scan {
  0%   { transform: translateY(-50%); opacity: 0; }
  10%  { opacity: .85; }
  85%  { opacity: .85; }
  100% { transform: translateY(260%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title .xray { animation: none; }
  .hero__title .xray::after { display: none; }
}

.hero__lede-wrap {
  display: block;
  max-width: 64ch;
  margin: 0 auto 4rem;
  text-align: center;
  position: relative;
  padding-top: 1.6rem;
}
.hero__lede-wrap::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 0 auto 1.6rem;
  background: var(--amber);
  box-shadow: 0 0 14px var(--glow);
}
.hero__lede-bar { display: none; }
.hero__lede {
  font-family: var(--ff-body);
  font-size: clamp(1rem, .65vw + .85rem, 1.2rem);
  line-height: 1.65;
  color: var(--paper-2);
  margin: 0;
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 0 auto 3.5rem;
  opacity: 0;
  animation: fade-in-up 1s var(--ease-out) .9s both;
}
.hero__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.6rem;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.hero__cta-btn--primary {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
.hero__cta-btn--primary:hover {
  background: var(--amber-hi);
  border-color: var(--amber-hi);
  box-shadow: 0 0 28px var(--glow);
  transform: translateY(-1px);
}
.hero__cta-btn--primary svg {
  flex-shrink: 0;
}
.hero__cta-btn--secondary {
  color: var(--paper-2);
  background: transparent;
  border-color: var(--line-2);
}
.hero__cta-btn--secondary:hover {
  color: var(--amber);
  border-color: var(--amber-dim);
  transform: translateY(-1px);
}
.hero__cta-arrow {
  font-size: 14px;
  line-height: 1;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2.4rem);
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
}
.hero__stat-value {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 96, "wght" 500;
  font-size: clamp(1.8rem, 2.5vw + .5rem, 2.8rem);
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.hero__stat:nth-child(3) .hero__stat-value,
.hero__stat:nth-child(2) .hero__stat-value { color: var(--amber); }
.hero__stat-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--paper-mute);
}


/* ═════════════════════════════════════════════════════════════
   PROBLEM
   ═════════════════════════════════════════════════════════════ */
.problem__body {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: var(--max);
  margin-bottom: 4.5rem;
}
.problem__text p {
  font-size: clamp(1rem, 1.05vw + .6rem, 1.2rem);
  line-height: 1.65;
  color: var(--paper-2);
  margin: 0 0 1.2rem;
  max-width: 56ch;
}

.pullquote {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 360;
  font-style: italic;
  font-size: clamp(1.6rem, 2.4vw + .4rem, 2.4rem);
  line-height: 1.2;
  color: var(--paper);
  margin: 0;
  padding: 2.5rem 0 1.5rem 2rem;
  border-left: 1px solid var(--amber);
  position: relative;
  isolation: isolate;
}
.pullquote::before {
  content: "";
  position: absolute;
  left: -5px; top: 0;
  width: 9px; height: 9px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--glow);
}
.pullquote::after {
  content: "";
  position: absolute;
  top: -.6em;
  right: -.2em;
  width: 1.8em;
  height: 1.8em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><path d='M30 12 C 18 16, 10 28, 10 44 L 10 64 L 32 64 L 32 42 L 20 42 C 20 30, 24 24, 32 20 Z M64 12 C 52 16, 44 28, 44 44 L 44 64 L 66 64 L 66 42 L 54 42 C 54 30, 58 24, 66 20 Z' fill='%23ffb534' fill-opacity='.13'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
  filter: drop-shadow(0 0 12px rgba(255, 181, 52, .15));
}

/* before/after ledger */
.ledger {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ledger__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0;
  background: var(--ink);
  transition: background .5s var(--ease);
}
.ledger__row:hover { background: var(--ink-2); }
.ledger__cell {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .45rem;
  justify-content: center;
}
.ledger__cell:last-child { border-right: 0; }
.ledger__q {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--paper);
  line-height: 1.25;
}
.ledger__tag {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.ledger__cell--before .ledger__tag::before { content: "◯ "; color: var(--red); }
.ledger__cell--after  .ledger__tag::before { content: "● "; color: var(--amber); }
.ledger__steps {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--paper-dim);
}
.ledger__tokens {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 48, "wght" 480;
  font-size: 1.8rem;
  color: var(--paper);
}
.ledger__cell--after .ledger__tokens { color: var(--amber); }
.ledger__tokens small {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-left: .4rem;
  font-weight: 400;
}
.ledger__tokens--nil { color: var(--red); font-style: italic; font-size: 1.1rem; }

/* ═════════════════════════════════════════════════════════════
   CAPABILITIES
   ═════════════════════════════════════════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--ink);
  padding: 2rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  position: relative;
  transition: background .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, var(--glow-soft), transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.card:hover { background: var(--ink-2); }
.card:hover::before { opacity: 1; }
.card:hover .card__sigil { color: var(--amber-hi); transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 16px var(--glow)); }

.card__idx {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--paper-mute);
  font-variant-numeric: tabular-nums;
}
.card__sigil {
  width: 44px;
  height: 44px;
  color: var(--amber);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .4s var(--ease), transform .6s var(--ease);
  filter: drop-shadow(0 0 10px var(--glow-soft));
}
.card__ico {
  width: 100%;
  height: 100%;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.card__sigil-fallback {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--paper-dim);
}
.card__name {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 36, "wght" 480;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--paper);
  margin: 0 0 .8rem;
}
.card__text {
  font-size: .93rem;
  line-height: 1.55;
  color: var(--paper-dim);
  margin: 0 0 1.5rem;
  flex: 1;
}
.card__metric {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--paper-mute);
}
.card__metric strong {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 24, "wght" 500;
  font-size: 1.1rem;
  color: var(--amber);
  font-weight: 500;
}

/* ═════════════════════════════════════════════════════════════
   BENCHMARK  (stacked panels - no sticky, no scroll choreography)
   ═════════════════════════════════════════════════════════════ */
.bench { padding-bottom: calc(var(--rhythm) * 1.2); }

.bench__panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.bench__panel:last-child { border-bottom: 0; padding-bottom: 0; }
.bench__panel:first-of-type { padding-top: 0; }
.bench__panel:nth-of-type(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.bench__panel:nth-of-type(even) .bench__side { order: 2; }
.bench__panel:nth-of-type(even) .bench__chart { order: 1; }

.bench__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bench__side .bench__eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 .2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.bench__side .bench__eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--amber);
  box-shadow: 0 0 10px var(--glow);
}
.bench__side .bench__eyebrow-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  filter: drop-shadow(0 0 8px var(--glow));
}
.bench__side .bench__eyebrow-ico-svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bench__side .bench__eyebrow-text { display: inline-block; }
.bench__headline {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 400;
  font-size: clamp(1.8rem, 3vw + .2rem, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .2rem;
  color: var(--paper);
}
.bench__body-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 50ch;
  margin: 0;
}

.bench__chart {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 2vw, 2rem);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bench__chart::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, transparent 55%, var(--glow-soft) 150%),
    radial-gradient(600px 300px at 100% 0%, var(--glow-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bench__chart::after {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed var(--line-2);
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
.bench__chart > * { position: relative; z-index: 1; }
.bench__chart--aggregate { min-height: 420px; }

/* bigstat (panel 1) */
.bigstat { display: flex; flex-direction: column; gap: 1.2rem; height: 100%; }
.bigstat__head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.bigstat__delta {
  width: 56px;
  height: 56px;
  color: var(--amber);
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px var(--glow-soft));
}
.bigstat__arrow {
  width: 100%;
  height: 100%;
  animation: hood-flow 6s linear infinite;
}
.bigstat__compare {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 240;
  margin-top: .4rem;
  color: var(--paper);
}
.bigstat__compare-label {
  fill: var(--paper-mute);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bigstat__compare-num {
  fill: var(--paper);
  font-family: var(--ff-display);
  font-size: 22px;
  font-variation-settings: "opsz" 48, "wght" 460;
  font-variant-numeric: tabular-nums;
}
.bigstat__compare-num--amber { fill: var(--amber); }
.bigstat__compare-tick {
  fill: var(--paper-mute);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .08em;
  opacity: .65;
}
.bigstat__compare-arrow-label {
  fill: var(--amber);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bigstat__value {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 500;
  font-size: clamp(3.5rem, 6.5vw, 5.6rem);
  line-height: .9;
  letter-spacing: -0.04em;
  color: var(--amber);
  text-shadow: 0 0 60px var(--glow);
  white-space: nowrap;
}
.bigstat__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: -1rem;
}
.bigstat__flow {
  display: none; /* the SVG comparison covers this - left here for legacy markup */
}
.bigstat__cell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
.bigstat__cell .dim {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  min-width: 70px;
}
.bigstat__num {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "wght" 440;
  font-size: 1.8rem;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  min-width: 130px;
}
.bigstat__num.amber { color: var(--amber); }
.bar {
  grid-column: 1 / -1;
  position: relative;
  height: 14px;
  background: var(--line);
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, var(--line-2) 9px 10px);
  pointer-events: none;
  z-index: 1;
}
.bar span {
  position: absolute; inset: 0;
  background: var(--paper-dim);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-out) .2s;
}
.bench__panel .bar span { transform: scaleX(var(--w, 1)); }
.bench__panel .bar--amber span { background: var(--amber); box-shadow: 0 0 16px var(--glow); }
.bigstat__foot {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--paper-mute);
  letter-spacing: .06em;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-2);
}
.bigstat__foot code { color: var(--amber); }

/* bars (frame 2) */
.bars {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  height: 100%;
  justify-content: center;
  overflow-y: auto;
}
.bars__row { display: grid; grid-template-columns: 130px 1fr 50px; gap: .8rem; align-items: center; font-family: var(--ff-mono); font-size: 11px; }
.bars__name { color: var(--paper-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars__track { position: relative; height: 6px; background: var(--line); overflow: hidden; }
.bars__fill {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--amber-dim), var(--amber));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-out);
  box-shadow: 0 0 12px rgba(255, 181, 52, .35);
}
.bench__panel.in .bars__fill,
.bench__panel--pertool.in .bars__fill,
.bench__panel:hover .bars__fill { transform: scaleX(var(--s, 0)); }
.bars__pct { color: var(--amber); font-variant-numeric: tabular-nums; text-align: right; transition: color .3s var(--ease), transform .3s var(--ease); }
.bars__row { transition: background .3s var(--ease); padding: .15rem .25rem; border-radius: 2px; cursor: default; }
.bars__row:hover { background: var(--glow-soft); }
.bars__row:hover .bars__pct { color: var(--amber-hi); transform: scale(1.08); }
.bars__row:hover .bars__name { color: var(--paper); }

/* speedup (frame 3) */
.speed { display: flex; flex-direction: column; gap: .6rem; justify-content: center; height: 100%; }
.speed__row { display: grid; grid-template-columns: 130px 1fr 70px; gap: .8rem; align-items: center; font-family: var(--ff-mono); font-size: 11px; }
.speed__name { color: var(--paper-dim); }
.speed__track { position: relative; height: 2px; background: var(--line); }
.speed__dot {
  position: absolute; top: 50%;
  width: 12px; height: 12px;
  background: var(--amber);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  left: 0;
  transition: transform .9s var(--ease-out), left 1.4s var(--ease-out) .1s;
  box-shadow: 0 0 14px var(--glow);
}
.speed__dot::after {
  content: "";
  position: absolute; inset: -6px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 2.6s ease-out infinite;
}
.bench__panel.in .speed__dot,
.bench__panel:hover .speed__dot { transform: translate(-50%, -50%) scale(1); left: var(--x, 0%); }
.speed__x {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 500;
  transition: transform .3s var(--ease);
}
.speed__row { transition: background .3s var(--ease); padding: .15rem .25rem; border-radius: 2px; }
.speed__row:hover { background: var(--glow-soft); }
.speed__row:hover .speed__x { transform: scale(1.1); }
.speed__row:hover .speed__name { color: var(--paper); }
.speed__row:hover .speed__dot { box-shadow: 0 0 22px var(--amber); }
@keyframes pulse-ring {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* judge radar (frame 4) */
.judge { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 1.5rem; }
.judge__ring { width: 100%; max-width: 440px; }
#judge-radar { display: block; width: 100%; height: auto; overflow: visible; }
#judge-radar text { fill: var(--paper-dim); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
#judge-radar .axis { stroke: var(--line-2); stroke-width: 1; }
#judge-radar .grid { stroke: var(--line); stroke-width: .5; fill: none; transition: stroke .4s var(--ease); }
#judge-radar .tip  { fill: var(--paper-mute); }
#judge-radar .node { fill: var(--amber); filter: drop-shadow(0 0 8px var(--glow)); animation: node-pop .9s var(--ease-out) both; }
#judge-radar .node:nth-child(2n) { animation-delay: .1s; }
#judge-radar .node:nth-child(3n) { animation-delay: .2s; }
#judge-radar .mcp  {
  fill: var(--glow); stroke: var(--amber); stroke-width: 2;
  filter: drop-shadow(0 0 12px var(--glow));
  transform-origin: center; transform-box: fill-box;
  animation: radar-grow 1.4s var(--ease-out) both;
}
#judge-radar .non  {
  fill: rgba(244, 234, 213, .06); stroke: var(--paper-mute); stroke-width: 1; stroke-dasharray: 3 3;
  transform-origin: center; transform-box: fill-box;
  animation: radar-grow 1.6s var(--ease-out) .15s both;
}
.judge:hover #judge-radar .grid { stroke: var(--paper-mute); }
@keyframes radar-grow {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes node-pop {
  0%   { opacity: 0; transform: scale(0); transform-origin: center; transform-box: fill-box; }
  60%  { opacity: 1; transform: scale(1.6); }
  100% { opacity: 1; transform: scale(1); }
}
.judge__legend {
  display: flex; gap: 1.6rem;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--paper-dim);
}
.judge__legend li { display: flex; align-items: center; gap: .5rem; }
.judge__legend strong { color: var(--paper); font-family: var(--ff-display); font-variation-settings: "opsz" 36, "wght" 500; font-size: 1.2rem; font-weight: 500; }
.dot { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.dot--amber { background: var(--amber); box-shadow: 0 0 12px var(--glow); }
.dot--dim   { background: var(--paper-mute); }

/* (bench__copy / bench__slab removed - stacked panels live at the top of the BENCHMARK block) */

/* ═════════════════════════════════════════════════════════════
   TOOLS
   ═════════════════════════════════════════════════════════════ */
.tools__constellation {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 4rem;
  padding: 1rem 0;
  color: var(--paper);
  position: relative;
}
.tools__constellation::before,
.tools__constellation::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-2), transparent);
}
.tools__constellation::before { left: -40px; }
.tools__constellation::after  { right: -40px; }
.tools__constellation svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 320;
}
.tools__const-grid ellipse { color: var(--paper-mute); }
.tools__const-hub-num {
  fill: var(--amber);
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 96, "wght" 500;
  font-size: 22px;
}
.tools__const-hub-label {
  fill: var(--paper-mute);
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tools__const-nodes line {
  stroke: var(--amber);
  stroke-width: .6;
  opacity: .35;
  stroke-dasharray: 1 2;
}
.tools__const-nodes circle {
  fill: var(--amber);
  stroke: var(--ink);
  stroke-width: 1;
  filter: drop-shadow(0 0 6px var(--glow-soft));
}
.tools__const-group[data-group="navigate"] line  { stroke: var(--amber); }
.tools__const-group[data-group="navigate"] circle { fill: var(--amber); }
.tools__const-group[data-group="analyze"] line  { stroke: var(--cyan); opacity: .45; }
.tools__const-group[data-group="analyze"] circle { fill: var(--cyan); filter: drop-shadow(0 0 6px rgba(94, 226, 208, .3)); }
.tools__const-group[data-group="risk"]    line  { stroke: var(--red); opacity: .4; }
.tools__const-group[data-group="risk"]    circle { fill: var(--red); }
.tools__const-group[data-group="refactor"] line  { stroke: var(--paper); opacity: .35; }
.tools__const-group[data-group="refactor"] circle { fill: var(--paper); }
.tools__const-group[data-group="build"]   line  { stroke: var(--paper-mute); }
.tools__const-group[data-group="build"]   circle { fill: var(--paper-2); }
.tools__const-label {
  fill: var(--paper-mute);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5rem;
  max-width: var(--max);
}
.tools__group header {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding-bottom: .8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.tools__group h3 {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 48, "wght" 440;
  font-weight: 400;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--paper);
  margin: 0;
}
.tools__count {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--amber);
  text-transform: uppercase;
  margin-left: auto;
}
.tools__group ul li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
  transition: padding .3s var(--ease);
}
.tools__group ul li:hover { padding-left: .4rem; }
.tools__group ul li:hover .tools__name { color: var(--amber); }
.tools__group ul li:last-child { border-bottom: 0; }
.tools__name {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--paper);
  transition: color .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.tools__ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  opacity: .82;
  transition: color .3s var(--ease), opacity .3s var(--ease), transform .35s var(--ease);
  filter: drop-shadow(0 0 6px var(--glow-soft));
}
.tools__ico-svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tools__group ul li:hover .tools__ico {
  color: var(--amber-hi);
  opacity: 1;
  transform: scale(1.08);
}
.tools__name-text { display: inline-block; }
.tools__desc {
  font-size: .88rem;
  color: var(--paper-dim);
  line-height: 1.45;
}

/* ═════════════════════════════════════════════════════════════
   UNDER THE HOOD
   ═════════════════════════════════════════════════════════════ */
.hood__diagram {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto 3.5rem;
  padding: 1.2rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, var(--ink-2), var(--ink-3));
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.hood__diagram::before {
  content: "indexer pipeline";
  position: absolute;
  top: 10px; left: 16px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.hood__diagram::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--line-2);
  pointer-events: none;
  opacity: .5;
}
.hood__diagram svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1240 / 380;
  margin-top: 1.2rem;
}
.hood__diagram-grid path {
  fill: none;
  stroke: var(--line);
  stroke-width: .5;
  opacity: .4;
  stroke-dasharray: 2 4;
}
.hood__node rect,
.hood__out rect {
  fill: var(--ink);
  stroke: var(--line-2);
  stroke-width: 1;
}
.hood__node:hover rect,
.hood__out:hover rect {
  stroke: var(--amber);
  fill: var(--ink-2);
}
.hood__node-num {
  fill: var(--amber);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .1em;
}
.hood__node-title {
  fill: var(--paper);
  font-family: var(--ff-display);
  font-size: 14px;
  font-style: italic;
  font-variation-settings: "opsz" 36, "wght" 460;
}
.hood__node-sub {
  fill: var(--paper-mute);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .06em;
}
.hood__flow path,
.hood__flow-out path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.2;
  opacity: .65;
  stroke-dasharray: 4 4;
  animation: hood-flow 4s linear infinite;
  filter: drop-shadow(0 0 6px var(--glow-soft));
}
.hood__flow-out path {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(94, 226, 208, .2));
  animation-duration: 5s;
}
@keyframes hood-flow {
  from { stroke-dashoffset: 32; }
  to   { stroke-dashoffset: 0; }
}
.hood__hex {
  fill: var(--ink);
  stroke: var(--amber);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 14px var(--glow));
}
.hood__hex--inner {
  fill: none;
  stroke: var(--amber);
  stroke-width: .8;
  opacity: .55;
  stroke-dasharray: 2 3;
}
.hood__core-name {
  fill: var(--amber);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}
.hood__core-sub {
  fill: var(--paper-dim);
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: .02em;
}
.hood__core-tag {
  fill: var(--paper-mute);
  font-family: var(--ff-mono);
  font-size: 7px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hood__pipe-label {
  fill: var(--paper-mute);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-anchor: middle;
  opacity: .5;
}

.hood__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--max);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.hood__step {
  padding: 2.5rem 1.8rem 2.5rem 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.hood__step:first-child { padding-left: 0; }
.hood__step:not(:first-child) { padding-left: 1.8rem; }
.hood__step:last-child { border-right: 0; }
.hood__step::before {
  content: "→";
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 14px;
  background: var(--ink);
  padding: 0 4px;
}
.hood__step:last-child::before { display: none; }

.hood__step-ico-wrap {
  width: 42px;
  height: 42px;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
  filter: drop-shadow(0 0 12px var(--glow-soft));
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.hood__step-ico {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hood__step:hover .hood__step-ico-wrap {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 0 18px var(--glow));
}
.hood__num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--amber);
}
.hood__name {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 48, "wght" 440;
  font-size: 1.3rem;
  color: var(--paper);
  margin: 0;
  line-height: 1.1;
}
.hood__text {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--paper-dim);
  margin: 0;
}
.hood__closing {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--paper-2);
  max-width: 72ch;
  margin: 2.5rem auto 0;
  text-align: center;
}

/* ═════════════════════════════════════════════════════════════
   COMPARISON
   ═════════════════════════════════════════════════════════════ */
.ledger--compare {
  grid-template-columns: 1fr;
  max-width: var(--max);
}
.ledger--compare .ledger__row {
  grid-template-columns: 1.8fr .8fr .8fr;
}
.ledger--compare .ledger__row header {
  display: contents;
}
.ledger--compare .cap {
  padding: 1.1rem 1.5rem;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--paper);
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
}
.ledger--compare .qartez {
  padding: 1.1rem 1.5rem;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  text-align: center;
  background: var(--glow-soft);
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.ledger--compare .others {
  padding: 1.1rem 1.5rem;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--paper-dim);
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.ledger--compare .qartez .comp__ico-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: .55em;
  flex-shrink: 0;
}
.ledger--compare .qartez .comp__ico {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px var(--glow-soft));
  transition: transform .35s var(--ease);
}
.ledger--compare .ledger__row:hover .comp__ico { transform: scale(1.1); }
.ledger--compare .qartez.yes { color: var(--amber); }
.ledger--compare .qartez.yes .comp__ico--yes { color: var(--amber); }
.ledger--compare .qartez.no { color: var(--paper-mute); }
.ledger--compare .qartez.no .comp__ico--no { color: var(--red); opacity: .85; }
.ledger--compare .comp__label { letter-spacing: .04em; }
.ledger--compare .ledger__row--head {
  background: var(--ink-2);
}
.ledger--compare .ledger__row--head > * {
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--paper-mute);
  background: transparent;
  font-weight: 400;
}

/* ═════════════════════════════════════════════════════════════
   DOGFOOD
   ═════════════════════════════════════════════════════════════ */
.dogfood__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: var(--max);
  margin-bottom: 3rem;
}
.dogfood__stat {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.dogfood__stat:last-child { border-right: 0; }
.dogfood__value {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 96, "wght" 480;
  font-size: clamp(2rem, 3vw + .5rem, 3.2rem);
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.dogfood__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.dogfood__list {
  max-width: var(--max);
  border: 1px solid var(--line);
}
.dogfood__list header {
  display: grid;
  grid-template-columns: 60px 1fr 120px 100px;
  gap: 1rem;
  padding: .8rem 1.5rem;
  background: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.dogfood__list li {
  display: grid;
  grid-template-columns: 60px 1fr 120px 100px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px dashed var(--line);
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 12px;
  transition: background .3s var(--ease);
}
.dogfood__list li:last-child { border-bottom: 0; }
.dogfood__list li:hover { background: var(--ink-2); }
.dogfood__rank { color: var(--amber); font-variant-numeric: tabular-nums; }
.dogfood__path {
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.dogfood__file-wrap {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  opacity: .65;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.dogfood__file-ico { width: 100%; height: 100%; }
.dogfood__list li:hover .dogfood__file-wrap { opacity: 1; color: var(--amber-hi); }
.dogfood__file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dogfood__pr {
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: .6rem;
}
.dogfood__pr-num { min-width: 44px; }
.dogfood__pr-spark {
  flex: 1;
  display: flex;
  align-items: center;
}
.dogfood__spark { width: 100%; height: 22px; }
.dogfood__blast { color: var(--paper-2); font-variant-numeric: tabular-nums; text-align: right; }

/* ═════════════════════════════════════════════════════════════
   CTA
   ═════════════════════════════════════════════════════════════ */
.cta { padding-bottom: calc(var(--rhythm) * .8); }
.cta .chapter__title { white-space: pre-line; font-variation-settings: "opsz" 144, "wght" 340; }

.terminal {
  max-width: 820px;
  margin: 2rem auto 3rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  text-align: left;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--paper-mute);
  background: var(--ink-3);
}
.terminal__mark {
  color: var(--amber);
}
.terminal__mark::before { content: "●"; margin-right: .5em; }
.terminal__copy {
  margin-left: auto;
  padding: .3rem .8rem;
  border: 1px solid var(--line-2);
  color: var(--paper-dim);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.terminal__copy:hover { color: var(--amber); border-color: var(--amber); }
.terminal__copy.copied { color: var(--cyan); border-color: var(--cyan); }
.terminal__code {
  padding: 1.8rem;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper);
}
.terminal__code .tk-prompt { color: var(--amber); user-select: none; margin-right: .5em; }
.terminal__code .tk-cmd    { color: var(--paper); }
.terminal__code .tk-arg    { color: var(--cyan); }

.ides {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0 auto 5rem;
  max-width: 820px;
  justify-content: center;
}
.ide {
  font-family: var(--ff-mono);
  font-size: 11px;
  padding: .5rem .9rem .5rem .7rem;
  border: 1px solid var(--line-2);
  color: var(--paper-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.ide:hover { color: var(--amber); border-color: var(--amber); background: var(--glow-soft); }
.ide__ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--glow-soft));
  transition: transform .35s var(--ease), color .3s var(--ease);
}
.ide__ico-svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ide:hover .ide__ico {
  transform: scale(1.12) rotate(-4deg);
  color: var(--amber-hi);
}
.ide__name { display: inline-block; }

.final {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 300;
  font-style: italic;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--paper);
  max-width: 22ch;
  margin: 2rem auto 0;
  text-align: center;
}
.final::after {
  content: "";
  display: inline-block;
  width: .3em; height: .3em;
  margin-left: .15em;
  background: var(--amber);
  border-radius: 50%;
  transform: translateY(-.05em);
  box-shadow: 0 0 30px var(--glow);
}

/* ═════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════ */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.foot__col--links {
  display: flex;
  gap: 1.4rem;
}
.foot__col--links a {
  color: var(--paper-mute);
  transition: color .3s var(--ease);
}
.foot__col--links a:hover { color: var(--amber); }
.foot__col--center { text-align: center; }
.foot__col--edition { text-align: right; }
.foot__built {
  color: var(--paper-mute);
  transition: color .3s var(--ease);
}
.foot__built:hover { color: var(--amber); }

/* ═════════════════════════════════════════════════════════════
   ANIMATIONS
   ═════════════════════════════════════════════════════════════ */
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise   {
  from { opacity: 0; transform: translate3d(0, 44px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes descend {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(22px); opacity: .3; }
}

.reveal {
  opacity: 1;
  transform: none;
}
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-rise linear both;
    animation-timeline: view();
    animation-range: entry 8% entry 55%;
  }
}
@keyframes reveal-rise {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ═════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hood__steps { grid-template-columns: repeat(2, 1fr); }
  .hood__step:nth-child(2n) { border-right: 0; }
  .hood__step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hood__step::before { display: none; }
  .bench__panel,
  .bench__panel:nth-of-type(even) { grid-template-columns: 1fr; gap: 2rem; }
  .bench__panel:nth-of-type(even) .bench__side,
  .bench__panel:nth-of-type(even) .bench__chart { order: initial; }
}
@media (max-width: 760px) {
  .chrome__nav { display: none; }
  .chrome__gh-label { display: none; }
  .hero__cta { flex-direction: column; align-items: center; gap: .8rem; }
  .hero__cta-btn { width: 100%; max-width: 280px; justify-content: center; }
  .foot { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .foot__col--links { justify-content: center; }
  .foot__col--center { text-align: center; }
  .foot__col--edition { text-align: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.6rem; }
  .problem__body { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .ledger__row { grid-template-columns: 1fr; }
  .ledger__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .ledger__cell:last-child { border-bottom: 0; }
  .ledger--compare .ledger__row { grid-template-columns: 1fr; }
  .ledger--compare .cap,
  .ledger--compare .qartez,
  .ledger--compare .others { border-right: 0; border-bottom: 1px solid var(--line); text-align: left; justify-content: flex-start; }
  .dogfood__stats { grid-template-columns: repeat(2, 1fr); }
  .dogfood__stat { border-bottom: 1px solid var(--line); }
  .dogfood__stat:nth-child(2n) { border-right: 0; }
  .tools__grid { grid-template-columns: 1fr; }
  .hood__steps { grid-template-columns: 1fr; }
  .hood__step { border-right: 0; border-bottom: 1px solid var(--line); }
  .hood__step:last-child { border-bottom: 0; }
  .dogfood__list header,
  .dogfood__list li { grid-template-columns: 40px 1fr 70px; }
  .dogfood__list header span:nth-child(3),
  .dogfood__list li .dogfood__pr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═════════════════════════════════════════════════════════════
   DROP CAP · LANG SWITCH · FINAL POLISH
   ═════════════════════════════════════════════════════════════ */

/* drop cap on the first paragraph of the problem section */
.problem__text p.dropcap::first-letter {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "wght" 420;
  font-size: 3.6em;
  line-height: .78;
  float: left;
  margin: -.18em .12em 0 0;
  padding: 0;
  color: var(--amber);
  text-shadow: 0 0 30px var(--glow);
  font-style: normal;
  shape-outside: margin-box;
}
.problem__text p.dropcap {
  overflow: hidden;
}

/* lang-switching transition */
.lang-switching main {
  opacity: .12;
  filter: blur(4px);
  transition: opacity .22s var(--ease), filter .22s var(--ease);
}
main {
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}

/* refined card hover (deeper, more intentional) */
.card {
  transition: background .4s var(--ease), transform .5s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
}
.card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--amber), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.card:hover::after { transform: scaleX(1); }

/* chapter header - centered ornamental compass mark on the top border */
.chapter::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: 132px;
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 22'><line x1='0' y1='11' x2='44' y2='11' stroke='%23ffb534' stroke-width='1.2'/><line x1='88' y1='11' x2='132' y2='11' stroke='%23ffb534' stroke-width='1.2'/><circle cx='52' cy='11' r='1.6' fill='%23ffb534'/><circle cx='80' cy='11' r='1.6' fill='%23ffb534'/><polygon points='66,2 73,11 66,20 59,11' fill='none' stroke='%23ffb534' stroke-width='1.4'/><polygon points='66,5.5 70,11 66,16.5 62,11' fill='%23ffb534'/><line x1='62' y1='11' x2='52' y2='11' stroke='%23ffb534' stroke-width='1.1' stroke-dasharray='1 2'/><line x1='70' y1='11' x2='80' y2='11' stroke='%23ffb534' stroke-width='1.1' stroke-dasharray='1 2'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 12px var(--glow));
}
.chapter {
  padding-top: 2.2rem;
}

/* bench chart: subtle animated frame outline */
.bench__chart {
  background: linear-gradient(145deg, var(--ink-2), var(--ink-3));
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 181, 52, .06);
}

/* hero stat values: slight elevation */
.hero__stat-value {
  transition: transform .5s var(--ease), color .4s var(--ease);
}
.hero__stat:hover .hero__stat-value {
  color: var(--amber);
  transform: translateY(-2px);
}

/* (meridian removed - centered layout, no left marker) */

/* pullquote: amplify the editorial weight */
.pullquote {
  background: linear-gradient(to right, var(--glow-soft), transparent 80%);
}

/* ides: slight stagger on hover */
.ide {
  position: relative;
  overflow: hidden;
}
.ide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, var(--glow-soft) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease-out);
}
.ide:hover::before { transform: translateX(120%); }

/* selection refinement */
::selection {
  background: var(--amber);
  color: var(--ink);
  text-shadow: none;
}

/* final flourish: animated cursor for pullquote & final */
.final,
.pullquote {
  position: relative;
}

/* improved smoothing for rendered numbers */
.dogfood__value, .hero__stat-value, .bigstat__num, .ledger__tokens {
  font-variant-numeric: tabular-nums;
}

/* ═════════════════════════════════════════════════════════════
   INTERACTIVITY - added 2026-04
   ═════════════════════════════════════════════════════════════ */

/* reading progress bar at very top of the viewport */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--amber-dim), var(--amber), var(--amber-hi));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1100;
  pointer-events: none;
  box-shadow: 0 0 16px var(--glow), 0 0 30px var(--glow-soft);
  will-change: transform;
}

/* hero atlas layers - smooth parallax transitions */
.hero__atlas .hero__arcs,
.hero__atlas .hero__edges,
.hero__atlas .hero__stars {
  transition: transform .25s var(--ease-out);
  will-change: transform;
}

/* hero title - letter-by-letter reveal on first paint */
.hero__title .line {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-line-rise 1.1s var(--ease-out) both;
}
.hero__title .line:nth-child(1) { animation-delay: .15s; }
.hero__title .line:nth-child(2) { animation-delay: .35s; }
.hero__title .line:nth-child(3) { animation-delay: .55s; }
@keyframes hero-line-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero__eyebrow,
.hero__lede-wrap,
.hero__rule,
.hero__stats {
  opacity: 0;
  animation: fade-in-up 1s var(--ease-out) both;
}
.hero__rule { animation-delay: 0s; }
.hero__eyebrow { animation-delay: .05s; }
.hero__lede-wrap { animation-delay: .8s; }
.hero__stats { animation-delay: 1s; }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* hero stats - staggered hover lift + amber accent */
.hero__stat {
  cursor: default;
  transition: transform .4s var(--ease);
  position: relative;
}
.hero__stat::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -1.8rem;
  width: 0; height: 1px;
  background: var(--amber);
  transform: translateX(-50%);
  transition: width .5s var(--ease);
  box-shadow: 0 0 10px var(--glow);
}
.hero__stat:hover { transform: translateY(-3px); }
.hero__stat:hover::before { width: 60%; }

/* card cursor spotlight + tilt */
.card {
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), background .4s var(--ease);
  will-change: transform;
}
.card::before {
  background: radial-gradient(420px 240px at var(--mx, 50%) var(--my, 0%), var(--glow-soft), transparent 65%);
}
.card__sigil,
.card__name,
.card__text,
.card__metric {
  transform: translateZ(0);
  transition: transform .5s var(--ease);
}
.card:hover .card__sigil { transform: translateZ(20px) translateY(-2px) scale(1.06); }
.card:hover .card__name  { transform: translateZ(12px); }
.card:hover .card__text  { transform: translateZ(6px); }

/* tools constellation - group hover excites linked nodes/lines */
.tools__const-group line,
.tools__const-group circle {
  transition: opacity .35s var(--ease), filter .35s var(--ease), transform .35s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.tools__const-group.on line { opacity: 1; }
.tools__const-group.on circle {
  transform: scale(1.6);
  filter: drop-shadow(0 0 14px currentColor);
}
.tools__const-nodes line,
.tools__const-nodes circle { cursor: pointer; }

/* slow rotating background grid in tools constellation */
.tools__const-grid {
  transform-origin: 300px 160px;
  animation: const-spin 90s linear infinite;
}
@keyframes const-spin {
  to { transform: rotate(360deg); }
}

/* ledger row entrance + amber edge highlight when in view */
.ledger__row {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), background .4s var(--ease);
}
.ledger__row--lit { opacity: 1; transform: none; }
.ledger__row::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--amber);
  box-shadow: 0 0 14px var(--glow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .9s var(--ease-out) .2s;
}
.ledger__row--lit::after { transform: scaleY(1); }

/* terminal code - typing reveal */
.terminal__code {
  position: relative;
  white-space: pre-wrap;
  min-height: 5em;
}
.terminal__code::after {
  content: "▌";
  display: inline-block;
  color: var(--amber);
  margin-left: .15em;
  animation: caret-blink 1s steps(2, jump-none) infinite;
}
.terminal__code--done::after { display: none; }
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* dogfood rows - staggered slide-in */
.dogfood__list li {
  opacity: 0;
  animation: row-in .7s var(--ease-out) both;
}
.dogfood__list li:nth-child(1) { animation-delay: .05s; }
.dogfood__list li:nth-child(2) { animation-delay: .12s; }
.dogfood__list li:nth-child(3) { animation-delay: .19s; }
.dogfood__list li:nth-child(4) { animation-delay: .26s; }
.dogfood__list li:nth-child(5) { animation-delay: .33s; }
.dogfood__list li:nth-child(6) { animation-delay: .4s; }
.dogfood__list li:nth-child(7) { animation-delay: .47s; }
.dogfood__list li:nth-child(8) { animation-delay: .54s; }
.dogfood__list li:nth-child(9) { animation-delay: .61s; }
.dogfood__list li:nth-child(10) { animation-delay: .68s; }
@keyframes row-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}

/* tool list rows - staggered slide-in (per group) */
.tools__group ul li {
  opacity: 0;
  animation: row-in .55s var(--ease-out) both;
}
.tools__group ul li:nth-child(1) { animation-delay: .05s; }
.tools__group ul li:nth-child(2) { animation-delay: .1s; }
.tools__group ul li:nth-child(3) { animation-delay: .15s; }
.tools__group ul li:nth-child(4) { animation-delay: .2s; }
.tools__group ul li:nth-child(5) { animation-delay: .25s; }
.tools__group ul li:nth-child(6) { animation-delay: .3s; }
.tools__group ul li:nth-child(7) { animation-delay: .35s; }

/* hero atlas star - gentle pulse */
.hero__atlas .hero__stars circle.bright {
  animation: twinkle 3.5s ease-in-out infinite, star-pulse 6s ease-in-out infinite;
}
@keyframes star-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--glow)); }
  50%      { filter: drop-shadow(0 0 22px var(--amber)); }
}

/* hood diagram - node hover glow */
.hood__node, .hood__out {
  cursor: default;
}
.hood__node rect, .hood__out rect {
  transition: stroke .3s var(--ease), fill .3s var(--ease), filter .4s var(--ease);
}
.hood__node:hover rect, .hood__out:hover rect {
  filter: drop-shadow(0 0 10px var(--glow));
}
.hood__node text, .hood__out text {
  transition: fill .3s var(--ease);
}
.hood__node:hover .hood__node-title, .hood__out:hover .hood__node-title {
  fill: var(--amber-hi);
}
.hood__hex {
  animation: hex-glow 4s ease-in-out infinite;
}
@keyframes hex-glow {
  0%, 100% { filter: drop-shadow(0 0 14px var(--glow)); }
  50%      { filter: drop-shadow(0 0 28px var(--amber)); }
}

/* dogfood stat hover - tilt + amber tint */
.dogfood__stat {
  transition: background .4s var(--ease), transform .4s var(--ease);
  cursor: default;
}
.dogfood__stat:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
}
.dogfood__stat:hover .dogfood__value { color: var(--amber); }

/* nav links - animated underline indicator */
.chrome__nav a { position: relative; }
.chrome__nav a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
  box-shadow: 0 0 10px var(--glow);
}
.chrome__nav a:hover::before,
.chrome__nav a.active::before { transform: scaleX(1); }
.chrome__nav a.active { border-color: transparent; }

/* terminal copy button - pop on click */
.terminal__copy:active { transform: scale(.94); }

/* ide tags - magnetic hover scale */
.ide { transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .35s var(--ease); }
.ide:hover { transform: translateY(-2px); }

/* benchmark headline - sweeping underline accent */
.bench__headline {
  position: relative;
  display: inline-block;
}
.bench__headline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.4rem;
  height: 1px;
  background: linear-gradient(to right, var(--amber), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out) .2s;
}
.bench__panel.in .bench__headline::after { transform: scaleX(1); }

/* respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero__title .line,
  .hero__eyebrow,
  .hero__lede-wrap,
  .hero__cta,
  .hero__rule,
  .hero__stats,
  .dogfood__list li,
  .tools__group ul li {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .read-progress { display: none; }
  .tools__const-grid { animation: none; }
  .hood__hex { animation: none; }
  .hero__atlas .hero__stars circle.bright { animation: none; }
}
