/* ============================================================================
   Procedural Animal Studio — project page
   Editorial-technical: near-black canvas, amber accent, serif emphasis,
   mono labels, big numbers. No frameworks, no build step.
   ========================================================================= */

:root {
  /* surface */
  --bg: #06070a;
  --bg-1: #0a0c11;
  --bg-2: #0f1219;
  --bg-3: #141822;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);

  /* ink */
  --fg: #f2f4f8;
  --fg-2: #b9c0cd;
  --fg-3: #7d8595;
  --fg-4: #565d6b;

  /* accent */
  --amber: #f5a524;
  --amber-1: #ffc46b;
  --amber-2: rgba(245, 165, 36, 0.14);
  --amber-3: rgba(245, 165, 36, 0.36);
  --teal: #4fd1c5;
  --slate: #7c8cff;
  --rose: #f2688c;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  --maxw: 1220px;
  --gut: 28px;
  --r: 16px;
  --r-sm: 10px;

  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.66;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: #180b00; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

/* ---------- ambient layers ---------- */
.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 620px at 14% -10%, rgba(245, 165, 36, 0.10), transparent 62%),
    radial-gradient(900px 520px at 88% -2%, rgba(124, 140, 255, 0.085), transparent 62%),
    radial-gradient(1200px 800px at 50% 104%, rgba(79, 209, 197, 0.05), transparent 66%);
}
/* fine grain — keeps large dark areas from banding */
.atmos::after {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 7, 10, 0.66);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  transition: width 0.08s linear;
}
.nav-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--amber-1), #d9710b);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 8px 22px -10px var(--amber);
  display: grid; place-items: center;
  flex: none;
}
.brand .mark svg { width: 14px; height: 14px; }
.brand .sep {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-4);
  padding-left: 13px;
  border-left: 1px solid var(--line-2);
  font-weight: 500;
}
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-3);
  padding: 7px 11px;
  border-radius: 8px;
  transition: color 0.16s, background 0.16s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,.055); }
.nav-links a.on { color: var(--amber-1); background: var(--amber-2); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 650;
  padding: 8px 15px 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--amber-3);
  background: var(--amber-2);
  color: var(--amber-1);
  transition: background .16s, transform .16s, box-shadow .16s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: rgba(245,165,36,.24);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px var(--amber);
}
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,165,36,.18);
}

/* ---------- shell ---------- */
.shell { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

section { padding: 104px 0; border-top: 1px solid var(--line); position: relative; }
section.first { border-top: 0; }

/* ---------- section header ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
.eyebrow .num { color: var(--fg-4); }
.eyebrow .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--amber-3), rgba(245,165,36,0.02) 70%, transparent);
}

h2.sec {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin-bottom: 16px;
  text-wrap: balance;
}
h2.sec .ser {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--amber-1);
  padding-right: 0.04em;
}

.lede {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.72;
  color: var(--fg-2);
  max-width: 70ch;
  margin-bottom: 46px;
}
.lede strong { color: var(--fg); font-weight: 600; }
.lede code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--amber-1);
  background: var(--amber-2);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(245,165,36,.2);
}

/* ============ HERO ============ */
.hero { padding: 78px 0 74px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg-3);
  background: rgba(255,255,255,.028);
  font-weight: 500;
}
.chip.amber {
  color: var(--amber-1);
  border-color: var(--amber-3);
  background: var(--amber-2);
}

h1.hero-title {
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 780;
  margin-bottom: 0;
  text-wrap: balance;
}
h1.hero-title .grad {
  background: linear-gradient(96deg, #ffffff 12%, #ffdca8 44%, var(--amber) 74%, #e08a18 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1.hero-title .ser {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.52em;
  letter-spacing: -0.015em;
  color: var(--fg-3);
  margin-top: 16px;
  line-height: 1.2;
}

.hero-pitch {
  font-size: clamp(16px, 1.75vw, 19px);
  line-height: 1.62;
  color: var(--fg-2);
  max-width: 60ch;
  margin-top: 30px;
}
.hero-pitch b { color: var(--fg); font-weight: 620; }
.hero-pitch .hl { color: var(--amber-1); font-weight: 620; }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--fg-3);
}
.byline .who { color: var(--fg); font-weight: 600; }
.byline .d { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-4); flex: none; }
.byline .mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--fg-4); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 21px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 620;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.045);
  color: var(--fg);
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1.5px);
  background: rgba(255,255,255,.09);
  border-color: var(--line-3);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.primary {
  background: linear-gradient(150deg, #ffc86a, #e5841c);
  border-color: transparent;
  color: #180b00;
  box-shadow: 0 14px 36px -16px rgba(245,165,36,.95), 0 0 0 1px rgba(255,255,255,.14) inset;
}
.btn.primary:hover { background: linear-gradient(150deg, #ffd486, #f08f22); }
.btn .kbd {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0,0,0,.16);
  margin-left: 2px;
  letter-spacing: .06em;
}

/* ---------- stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 56px;
}
.stat {
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.008));
  padding: 24px 24px 21px;
  position: relative;
}
.stat::after {
  content: "";
  position: absolute; left: 24px; right: 24px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
}
.stat .v {
  font-size: clamp(24px, 2.8vw, 33px);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.stat .v i {
  font-style: normal;
  font-size: 0.46em;
  font-weight: 600;
  color: var(--fg-3);
  letter-spacing: 0;
}
.stat .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-top: 9px;
  line-height: 1.5;
}
.stat.gold .v { color: var(--amber-1); }
.stat.gold .v i { color: rgba(245,165,36,.6); }

/* ---------- figure ---------- */
.fig {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-1);
  margin: 0;
}
.fig .media { position: relative; display: block; }
.fig img { display: block; width: 100%; height: auto; }
.fig figcaption {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--fg-4);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.fig figcaption b { color: var(--amber); font-weight: 600; }

.zoom { cursor: zoom-in; }
.zoom .media::after {
  content: "";
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(6,7,10,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c0cd' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16 16l5 5M11 8v6M8 11h6'/%3E%3C/svg%3E") center/13px no-repeat;
  border: 1px solid var(--line-2);
  opacity: 0;
  transition: opacity .18s;
}
.zoom:hover .media::after { opacity: 1; }

.hero-fig { margin-top: 58px; }
.hero-fig .fig { box-shadow: 0 40px 90px -50px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02); }

/* ============ 01 · THE ARGUMENT ============ */
.argument {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-bottom: 20px;
}
.arg-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 28px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.006));
  position: relative;
  overflow: hidden;
}
.arg-card.ours {
  border-color: var(--amber-3);
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(245,165,36,.12), transparent 70%),
    linear-gradient(180deg, rgba(245,165,36,.05), rgba(255,255,255,.01));
}
.arg-card .tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.arg-card.ours .tag { color: var(--amber); }
.arg-card .tag i {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex: none;
}
.arg-card .big {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.arg-card.ours .big { color: var(--amber-1); }
.arg-card .sub {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.55;
}
.arg-card .sub b { color: var(--fg-2); font-weight: 600; }

/* bar comparison */
.bars { margin-top: 26px; display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-row .lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-4);
  width: 76px;
  flex: none;
  text-align: right;
}
.bar-track {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1.1s var(--ease);
}
.bar-row.them .bar-fill { background: linear-gradient(90deg, #4a5262, #6b7688); }
.bar-row.us .bar-fill {
  background: linear-gradient(90deg, var(--amber), var(--amber-1));
  box-shadow: 0 0 14px rgba(245,165,36,.55);
  min-width: 3px;
}
.bar-row .val {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-2);
  width: 62px;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.ratio-note {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.022);
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.6;
}
.ratio-note b { color: var(--amber-1); font-weight: 700; }

/* bento advantages */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.bcard {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.004));
  transition: border-color .2s, transform .2s var(--ease), background .2s;
  position: relative;
  overflow: hidden;
}
.bcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,165,36,.4), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.bcard:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
}
.bcard:hover::before { opacity: 1; }
.bcard .ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--amber-2);
  border: 1px solid rgba(245,165,36,.28);
  margin-bottom: 15px;
}
.bcard .ico svg { width: 15px; height: 15px; stroke: var(--amber-1); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bcard h3 {
  font-size: 14.5px;
  font-weight: 660;
  letter-spacing: -0.012em;
  margin-bottom: 7px;
  line-height: 1.35;
}
.bcard p { font-size: 13px; line-height: 1.62; color: var(--fg-3); }
.bcard p code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--fg-2);
}

/* tradeoffs */
.tradeoffs {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.015);
  padding: 24px 26px;
}
.tradeoffs h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 9px;
}
.tradeoffs h4::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.tradeoffs ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.tradeoffs li {
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--fg-3);
  padding-left: 17px;
  position: relative;
}
.tradeoffs li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 1.5px;
  background: var(--fg-4);
  border-radius: 1px;
}
.tradeoffs li b { color: var(--fg-2); font-weight: 600; }

/* ============ 02 · SPECIES ============ */
.species-grid { display: grid; grid-template-columns: 176px 1fr; gap: 26px; align-items: start; }
.sp-list { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 3px; }
.sp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
  text-align: left;
  width: 100%;
  line-height: 1.3;
}
.sp-item .em { font-size: 16px; line-height: 1; flex: none; }
.sp-item .tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sp-item .en {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-item:hover { background: rgba(255,255,255,.045); color: var(--fg); }
.sp-item.on {
  background: var(--amber-2);
  border-color: var(--amber-3);
  color: var(--amber-1);
}
.sp-item.on .en { color: rgba(255,196,107,.6); }

.sp-stage { min-width: 0; }
.sp-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.sp-head .nm { font-size: 22px; font-weight: 720; letter-spacing: -0.025em; }
.sp-head .lat { font-family: var(--mono); font-size: 11px; color: var(--fg-4); font-style: italic; }
.sp-head .feat { font-size: 12.5px; color: var(--amber-1); font-weight: 560; }
.sp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.fact {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--fg-3);
  white-space: nowrap;
}
.fact b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============ 03 · PIPELINE ============ */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  color: var(--fg-3);
  cursor: pointer;
  transition: all .16s;
  text-transform: uppercase;
}
.tab:hover { color: var(--fg); border-color: var(--line-3); }
.tab.on {
  background: var(--amber-2);
  border-color: var(--amber-3);
  color: var(--amber-1);
}
.pane { display: none; }
.pane.on { display: block; animation: paneIn .32s var(--ease) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.flow {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.005));
  padding: 30px 26px;
  overflow-x: auto;
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 780px;
  margin-bottom: 11px;
}
.flow-row:last-child { margin-bottom: 0; }
.flow-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-4);
  width: 78px;
  flex: none;
  text-align: right;
  line-height: 1.4;
}
.fbox {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.032);
  transition: border-color .2s, background .2s;
}
.fbox .t { display: block; font-size: 12.5px; font-weight: 620; line-height: 1.3; }
.fbox .d {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg-4);
  margin-top: 4px;
  letter-spacing: .02em;
  line-height: 1.5;
}
.fbox.hot {
  border-color: var(--amber-3);
  background: var(--amber-2);
}
.fbox.hot .t { color: var(--amber-1); }
.fbox.hot .d { color: rgba(255,196,107,.62); }
.farrow { color: var(--fg-4); font-size: 13px; flex: none; }

/* ============ 04 · STUDIO ============ */
.demo {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-1);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--fg-4);
}
.demo-bar .dots { display: flex; gap: 5px; }
.demo-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.15); }
.demo-bar .url { color: var(--fg-3); }
.demo-frame { position: relative; aspect-ratio: 16 / 10; background: #08090c; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-hold {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center; padding: 32px;
  background:
    radial-gradient(700px 320px at 50% 26%, rgba(245,165,36,.11), transparent 68%),
    #08090c;
}
.demo-hold .in { max-width: 430px; }
.demo-hold h4 { font-size: 18px; font-weight: 680; letter-spacing: -0.02em; margin-bottom: 9px; }
.demo-hold p { font-size: 13px; color: var(--fg-3); line-height: 1.62; margin-bottom: 20px; }
.demo-hold .note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-top: 14px;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card img { display: block; width: 100%; height: auto; }
.card .body { padding: 16px 18px 19px; }
.card h4 { font-size: 14px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.card p { font-size: 12.5px; line-height: 1.62; color: var(--fg-3); }

/* ============ TABLES ============ */
.tbl-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: auto;
  background: rgba(255,255,255,.012);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
thead th {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fg-4);
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(255,255,255,.022);
  font-weight: 600;
  white-space: nowrap;
}
tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-3);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .14s; }
tbody tr:hover td { background: rgba(255,255,255,.022); }
td.m { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; }
td .ok { color: var(--teal); font-weight: 700; }
td .n { color: var(--fg); font-weight: 600; }
td b { color: var(--fg); font-weight: 620; }

/* ============ CODE ============ */
.code { position: relative; }
pre {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #080a0e;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.3px;
  line-height: 1.8;
  color: #c6cedb;
  tab-size: 2;
}
pre .c { color: #58616f; }
pre .k { color: var(--amber-1); }
pre .s { color: var(--teal); }
pre .n { color: #a6b3c6; }
.copy {
  position: absolute;
  top: 11px; right: 11px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: rgba(8,9,12,.85);
  color: var(--fg-3);
  cursor: pointer;
  transition: all .16s;
  text-transform: uppercase;
}
.copy:hover { color: var(--fg); border-color: var(--line-3); }

/* ============ LINK CARDS ============ */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lcard {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.024), rgba(255,255,255,.005));
  transition: border-color .2s, transform .2s var(--ease), background .2s;
  position: relative;
  overflow: hidden;
}
.lcard:hover { border-color: var(--amber-3); transform: translateY(-2px); background: rgba(255,255,255,.035); }
.lcard .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.lcard .t { font-size: 15.5px; font-weight: 660; margin-bottom: 6px; letter-spacing: -0.012em; }
.lcard .u { font-family: var(--mono); font-size: 11px; color: var(--fg-4); word-break: break-all; line-height: 1.5; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  position: relative;
  z-index: 1;
}
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.foot a { transition: color .16s; }
.foot a:hover { color: var(--amber-1); }
.foot .links-inline { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ LIGHTBOX ============ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(3, 4, 6, 0.94);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lb.on { display: flex; }
.lb img {
  max-width: 100%;
  max-height: calc(100% - 40px);
  border-radius: 12px;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.95);
}
.lb .cap {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--fg-3);
  background: rgba(6,7,10,.88);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ SCROLL REVEAL (failsafe) ============ */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
  .argument { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .species-grid { grid-template-columns: 1fr; }
  .sp-list {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .sp-list::-webkit-scrollbar { display: none; }
  .sp-item { flex: none; width: auto; }
  .sp-item .en { display: none; }
  .links { grid-template-columns: 1fr; }
  .tradeoffs ul { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  :root { --gut: 18px; }
  section { padding: 68px 0; }
  .hero { padding: 52px 0 56px; }
  .bento { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px; }
  .brand .sep { display: none; }
  .nav-in { height: 56px; }
  .arg-card { padding: 22px 20px; }
  .hero-fig { margin-top: 40px; }
  .foot { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .pane.on { animation: none; }
  .bar-fill { transition: none; }
}

@media print {
  .nav, .lb, .demo-frame { display: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}
