/* μ-Bench Unified Light Editorial Design System ("Alabaster & Cobalt Acoustic Precision") */
:root {
  /* Core Triadic Palette — Calibrated for Luminous Light Surfaces */
  --blue: #2557f0;
  --blue-deep: #1a41c2;
  --blue-soft: #eef3ff;
  --blue-border: #ccd9ff;

  --gold-ink: #a86b14;
  --gold-soft: #fbf5e8;
  --gold-border: #ebd8b0;

  --rose-ink: #be435a;
  --rose-soft: #fcf0f2;
  --rose-border: #f0cad2;

  /* Unified Daylight Neutrals */
  --ink: #0d1526;
  --ink-2: #1e293b;
  --muted: #516079;
  --muted-2: #76859e;
  --line: rgba(15, 23, 42, 0.085);
  --line-strong: rgba(15, 23, 42, 0.14);
  --wash: #f6f8fc;
  --surface: #ffffff;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --card-shadow: 0 1px 2px rgba(13, 21, 38, 0.035), 0 12px 32px -10px rgba(19, 33, 68, 0.065);
  --card-shadow-hover: 0 4px 12px rgba(13, 21, 38, 0.055), 0 20px 44px -12px rgba(37, 87, 240, 0.11);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h, 69px);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--surface);
  line-height: 1.6;
  color: var(--ink);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s var(--ease-out);
}

button, input, select {
  font: inherit;
}

button, a, input, select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #5f87ff;
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.shell {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

/* Sticky Frosted Daylight Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19.5px;
  letter-spacing: -0.5px;
  font-weight: 720;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.hf-icon {
  transform: translateY(-0.5px);
}

.nav-hf-short {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 540;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 580;
  color: var(--ink-2);
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
}

.nav-pill svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.nav-pill:hover {
  color: var(--blue);
  border-color: #acc2ff;
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.nav-pill:hover svg {
  color: var(--blue);
}

.lang-switch {
  padding: 6px 10px;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-color: var(--blue-border);
  white-space: nowrap;
}

.lang-switch:hover {
  background: #e1ebff;
  border-color: #9eb8ff;
}

html[lang^="zh"] {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[lang^="zh"] .hero h1 {
  letter-spacing: -0.025em;
  line-height: 1.14;
}

html[lang^="zh"] .section-heading h2,
html[lang^="zh"] .experience-heading h2,
html[lang^="zh"] .start-intro h2 {
  letter-spacing: -0.02em;
}

html[lang^="zh"] .eyebrow {
  letter-spacing: 0.04em;
}

.nav-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 620;
  color: #ffffff;
  padding: 6px 13px;
  border-radius: 7px;
  background: var(--blue);
  border: 1px solid var(--blue);
  box-shadow: 0 2px 8px rgba(37, 87, 240, 0.22);
}

.nav-code:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-code svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Unified Section Rhythm & Eyebrows */
.section {
  padding: 34px 0 68px;
  scroll-margin-top: 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}

.eyebrow-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading > * {
  min-width: 0;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: -1.3px;
  margin: 0;
  font-weight: 680;
  color: var(--ink);
}

.section-heading > p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.section-heading > p strong {
  color: var(--ink);
  font-weight: 620;
}

/* Interactive Spotlight Card Surface */
.spotlight-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.24s ease;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 87, 240, 0.05), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(37, 87, 240, 0.24);
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Scroll-Triggered Choreographed Reveal */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.68s var(--ease-out), transform 0.68s var(--ease-out);
  transition-delay: var(--stagger, 0ms);
}

.js-motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 610;
  transition: transform 0.2s var(--ease-out), background 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}

/* Studio Research Plates (Seamless White-on-White Figure Framing) */
.research-plate {
  margin: 34px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.plate-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
}

.plate-dots {
  display: inline-flex;
  gap: 5px;
}

.plate-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.plate-dots i:nth-child(1) { background: #e58c9c; }
.plate-dots i:nth-child(2) { background: #dcaf68; }
.plate-dots i:nth-child(3) { background: #6c92f6; }

.plate-title {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.pdf-chip {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 620;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
}

.pdf-chip:hover {
  background: #e1ebff;
  border-color: #acc2ff;
  transform: translateY(-1px);
}

.plate-canvas {
  padding: 20px 22px;
  background: #ffffff;
}

.plate-canvas img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.research-plate figcaption {
  padding: 12px 22px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Diagnostics Section */
.diagnostics-section {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.diag-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.diag-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.diag-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.card-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.85px;
  color: var(--blue);
  margin-bottom: 6px;
}

.diag-card h3 {
  font-size: 21px;
  line-height: 1.26;
  letter-spacing: -0.5px;
  margin: 0;
  font-weight: 660;
}

.gain-pill {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 660;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  padding: 4px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.diag-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 18px;
  line-height: 1.6;
}

.diag-desc code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--wash);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink-2);
}

/* Ablation Interactive Chart */
.ablation-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  background: #eff3fa;
  border-radius: 10px;
  margin-bottom: 16px;
}

.ablation-btn {
  border: 0;
  background: transparent;
  padding: 7px 6px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 620;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ablation-btn:hover {
  color: var(--ink);
}

.ablation-btn.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.09);
}

.ablation-visual {
  background: #fbfcfe;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 14px 11px;
}

.ablation-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ablation-svg .svg-axis {
  font-size: 10.5px;
  fill: #8492a6;
  font-variant-numeric: tabular-nums;
}

.ablation-svg .svg-stage {
  font-size: 11.5px;
  font-weight: 600;
  fill: #334155;
}

.ablation-bars g rect {
  fill: #dde7ff;
  stroke: #b9cdfc;
  stroke-width: 1;
  transition: fill 0.24s ease, stroke 0.24s ease, transform 0.24s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center bottom;
  cursor: pointer;
}

.ablation-bars g:hover rect {
  fill: #c7d8ff;
}

.ablation-bars g.active rect {
  fill: var(--blue);
  stroke: var(--blue-deep);
  transform: scaleY(1.02);
}

.ablation-bars .bar-num {
  font-size: 12px;
  font-weight: 700;
  fill: #475569;
  font-variant-numeric: tabular-nums;
  transition: fill 0.2s ease;
}

.ablation-bars g.active .bar-num {
  fill: var(--blue-deep);
}

.ablation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.ablation-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ablation-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.swatch-jts { background: var(--blue); }
.swatch-a { background: var(--blue); border-radius: 50% !important; }
.swatch-t { background: var(--gold-ink); border-radius: 50% !important; }
.swatch-c { background: var(--rose-ink); border-radius: 50% !important; }

.ablation-callout {
  margin-top: 14px;
  padding: 13px 15px;
  background: var(--wash);
  border-left: 3px solid var(--blue);
  border-radius: 0 9px 9px 0;
}

.ablation-callout strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 3px;
}

.ablation-callout p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Provenance & Stressors Card */
.provenance-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fbfcfe;
}

.prov-header,
.prov-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.15fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.prov-header {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--muted-2);
  background: #f1f5fb;
  border-bottom: 1px solid var(--line);
}

.prov-header span:last-child,
.prov-row .prov-drop {
  text-align: right;
}

.prov-row {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.prov-row:last-child {
  border-bottom: 0;
}

.prov-row strong {
  font-weight: 620;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prov-mini-bar {
  position: relative;
  height: 20px;
  background: #edf1f8;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.prov-mini-bar i {
  height: 100%;
  background: #e3bc7a;
  opacity: 0.48;
  display: block;
}

.prov-mini-bar.warn i {
  background: #e58c9c;
  opacity: 0.52;
}

.prov-mini-bar span {
  position: absolute;
  left: 8px;
  font-size: 12px;
  font-weight: 660;
  color: #334155;
}

.prov-drop {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.prov-drop b {
  color: var(--ink);
  font-weight: 700;
}

.prov-drop em {
  font-style: normal;
  font-size: 11px;
  font-weight: 660;
  color: var(--rose-ink);
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.stressor-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stressor-summary h4 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted-2);
}

.stressor-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.stressor-items > div {
  min-width: 0;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
}

.stressor-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.stressor-badge.neg {
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  color: var(--rose-ink);
}

.stressor-badge.split {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue-deep);
}

.stressor-items strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.stressor-items p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Overview & 20-Domain Explorer */
.overview {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.track-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.track-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 25px 26px;
  box-shadow: var(--card-shadow);
}

.track-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.track-tag {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.85px;
  color: var(--blue);
  font-weight: 700;
}

.track-pill {
  font-size: 12px;
  font-weight: 650;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  padding: 3px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.track-card h3 {
  font-size: 21px;
  font-weight: 660;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.track-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
}

.track-card code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: #f1f5fb;
  padding: 1px 5px;
  border-radius: 4px;
}

.factorial-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.factor-box {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.factor-box span {
  font-size: 11px;
  font-weight: 680;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.factor-box strong {
  font-size: 15px;
  font-weight: 660;
  color: var(--ink);
}

.factor-box small {
  font-size: 12.5px;
  color: var(--muted);
}

/* Interactive Domain Explorer */
.domain-explorer {
  margin-top: 34px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--card-shadow);
}

.domain-explorer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.domain-explorer-head h3 {
  margin: 0 0 4px;
  font-size: 19px;
  letter-spacing: -0.4px;
}

.domain-explorer-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.domain-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.domain-chip {
  border: 1px solid var(--line-strong);
  background: #f8fafd;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.18s var(--ease-out);
}

.domain-chip:hover {
  border-color: #9cb4f5;
  color: var(--ink);
}

.domain-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 87, 240, 0.22);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.domain-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: card-pop 0.34s var(--ease-out) both;
  animation-delay: var(--d-delay, 0ms);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s var(--ease-out);
}

.domain-item:hover {
  border-color: #b4cafc;
  background: #ffffff;
  transform: translateY(-2px);
}

@keyframes card-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.domain-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.domain-item strong {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

.domain-split {
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef3fb;
  color: #415578;
  white-space: nowrap;
  flex-shrink: 0;
}

.domain-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.48;
  color: var(--muted);
}

/* Framework Section */
.framework {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.arch-pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.pillar-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 25px 26px;
  background: #fbfcfe;
  box-shadow: var(--card-shadow);
}

.pillar-step {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--blue);
  margin-bottom: 6px;
}

.pillar-card h3 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}

.pillar-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.pillar-card li strong {
  color: var(--ink-2);
  font-weight: 620;
}

.pillar-card code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: #eef3fb;
  color: var(--ink-2);
  padding: 1px 5px;
  border-radius: 4px;
}

.metric-explainer {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}

.outcome-card {
  min-width: 0;
  border: 1px solid var(--blue-border);
  background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  padding: 25px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.85px;
  color: var(--blue);
}

.outcome-card h3 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 8px 0 10px;
}

.outcome-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.62;
}

.outcome-card code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: #e5edff;
  color: var(--blue-deep);
  padding: 1px 5px;
  border-radius: 4px;
}

.outcome-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.protocol-link {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--blue);
}

.protocol-link:hover {
  color: var(--blue-deep);
}

.diagnostics-cards {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.axis-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: border-color 0.18s ease, transform 0.18s var(--ease-out);
}

.axis-card:hover {
  transform: translateX(3px);
  border-color: var(--line-strong);
}

.axis-card > b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 15.5px;
  flex-shrink: 0;
}

.axis-a { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid var(--blue-border); }
.axis-t { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold-border); }
.axis-c { background: var(--rose-soft); color: var(--rose-ink); border: 1px solid var(--rose-border); }

.axis-card strong {
  font-size: 15px;
  display: block;
  color: var(--ink);
}

.axis-card strong span {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted-2);
}

.axis-card p {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Get Started & BibTeX — Unified Light Mist-Alabaster Editorial Section */
.get-started {
  background: radial-gradient(880px 420px at 80% 0%, rgba(37, 87, 240, 0.06), transparent 70%), var(--wash);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.get-started h2 {
  color: var(--ink);
  margin-bottom: 14px;
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 42px;
  align-items: start;
}

.start-intro {
  min-width: 0;
}

.start-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 20px;
  line-height: 1.65;
}

.start-intro > p a {
  color: var(--blue);
  font-weight: 560;
  border-bottom: 1px solid rgba(37, 87, 240, 0.3);
}

.start-intro > p a:hover {
  color: var(--blue-deep);
  border-color: var(--blue-deep);
}

.resource-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}

.res-badge {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
}

.res-badge:hover {
  background: #e2ecff;
  border-color: #9cb8ff;
  transform: translateY(-1px);
}

.res-badge span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--blue);
  font-weight: 700;
}

.res-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.res-badge-top svg {
  width: 13px;
  height: 13px;
}

.res-badge strong {
  font-size: 12px;
  font-weight: 640;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.doc-grid a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.doc-grid a:hover {
  border-color: #a9c0fb;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transform: translateY(-1px);
}

.doc-grid strong {
  font-size: 13.5px;
  font-weight: 640;
  color: var(--ink);
}

.doc-grid span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.terminal-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.code-panel,
.cite-panel {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #f3f6fc;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.code-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 610;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.code-tab:hover {
  color: var(--ink);
}

.code-tab.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.copy-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 620;
  padding: 5px 11px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}

.copy-btn:hover {
  border-color: #9bb4f8;
  color: var(--blue);
  background: var(--blue-soft);
}

.code-panel pre,
.cite-panel pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.72;
  color: #1e293b;
  background: #ffffff;
}

.code-panel > p {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 12px;
  color: var(--muted);
}

/* Unified Light Footer */
.footer-wrap {
  background: #ffffff;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
}

.footer .brand {
  font-size: 18px;
}

.footer p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  font-weight: 540;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--blue);
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .diag-grid,
  .start-grid,
  .metric-explainer {
    grid-template-columns: minmax(0, 1fr);
  }
  .domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-hf-full {
    display: none;
  }
  .nav-hf-short {
    display: inline;
  }
  .nav-links a {
    padding: 6px 7px;
    font-size: 12.5px;
  }
  .nav-actions {
    gap: 6px;
    padding-left: 10px;
  }
  .nav-pill,
  .nav-code {
    padding: 5px 9px;
    font-size: 12px;
  }
}

@media (max-width: 820px) {
  .section-heading,
  .track-grid,
  .arch-pillars,
  .factorial-strip,
  .resource-badges {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .nav-links a[href="#overview"],
  .nav-links a[href="#framework"] {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 32px);
  }
  .nav {
    height: auto;
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 8px;
  }
  .nav-actions {
    margin-left: auto;
    border-left: 0;
    padding-left: 0;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav-links a[href="#overview"] {
    display: none;
  }
  .section {
    padding: 36px 0 56px;
  }
  .diag-card,
  .track-card,
  .pillar-card,
  .domain-explorer,
  .outcome-card {
    padding: 18px;
  }
  .plate-bar {
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .plate-dots {
    display: none;
  }
  .plate-canvas {
    padding: 12px;
  }
  .research-plate figcaption {
    padding: 10px 14px 12px;
  }
  .ablation-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prov-header {
    display: none;
  }
  .prov-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .prov-row .prov-drop {
    text-align: left;
  }
  .stressor-items,
  .domain-grid,
  .doc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .code-header {
    flex-wrap: wrap;
  }
  .footer {
    flex-wrap: wrap;
    gap: 14px;
  }
  .footer p {
    width: 100%;
    order: 3;
  }
  .footer-links {
    margin-left: 0;
    gap: 14px;
  }
}
