:root {
  --paper: #f7f1e7;
  --paper-deep: #ece1d3;
  --card: #fffdf9;
  --ink: #152d46;
  --ink-soft: #4f6174;
  --line: #d6cabb;
  --coral: #d3654d;
  --coral-soft: #f4dfd9;
  --green: #3d8759;
  --green-soft: #dfecdf;
  --orange: #ce7328;
  --orange-soft: #f5e5d4;
  --indigo: #6274b8;
  --indigo-soft: #e5e7f5;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --page: min(1180px, calc(100vw - 64px));
  --shadow: 0 20px 48px rgba(63, 48, 31, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }

.progress-track { position: fixed; z-index: 300; inset: 0 0 auto; height: 4px; background: rgba(21, 45, 70, .08); }
#progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--orange), var(--green)); transition: width .08s linear; }

.site-nav { position: fixed; top: 20px; left: 50%; z-index: 200; width: var(--page); min-height: 56px; display: flex; align-items: center; gap: 26px; padding: 8px 10px 8px 18px; transform: translateX(-50%); border: 1px solid rgba(21, 45, 70, .16); border-radius: 18px; background: rgba(255, 253, 249, .82); box-shadow: 0 10px 30px rgba(46, 38, 29, .08); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--mono); font-weight: 500; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--card); border-radius: 8px; background: var(--ink); font-family: var(--serif); font-size: 1.25rem; }
.nav-links { display: flex; flex: 1; justify-content: center; gap: 3px; }
.nav-links a, .nav-code { padding: 8px 10px; border-radius: 10px; color: var(--ink-soft); font-size: .82rem; font-weight: 600; transition: color .2s, background .2s, transform .2s; }
.nav-links a:hover, .nav-code:hover { color: var(--ink); background: var(--paper-deep); transform: translateY(-1px); }
.nav-code { color: var(--card); background: var(--ink); white-space: nowrap; }
.nav-code:hover { color: var(--card); background: #284565; }

.hero { position: relative; min-height: 700px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 76% 22%, #f8d6bc 0, transparent 27%), radial-gradient(circle at 16% 82%, #d9eadc 0, transparent 26%), linear-gradient(125deg, #f8f2e9 0%, #f5ecdf 55%, #f6eee5 100%); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .58; }
.hero-noise { position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(rgba(21, 45, 70, .45) .5px, transparent .5px); background-size: 8px 8px; mix-blend-mode: soft-light; pointer-events: none; }
.hero-content { position: relative; z-index: 2; width: var(--page); padding: 150px 0 94px; }
.eyebrow, .section-number { margin: 0 0 18px; color: var(--ink-soft); font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 24px; height: 1px; background: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; color: var(--ink); font-family: var(--serif); font-size: clamp(4rem, 8.7vw, 7.2rem); font-weight: 600; letter-spacing: -.075em; line-height: .9; }
h1 em, h2 em { color: var(--coral); font-style: normal; }
.hero-copy { max-width: 550px; margin: 0; color: var(--ink-soft); font-size: clamp(1.04rem, 1.55vw, 1.18rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--ink); border-radius: 12px; font-size: .9rem; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 18px rgba(21, 45, 70, .14); }
.button-primary { color: var(--card); background: var(--ink); }
.button-secondary { color: var(--ink); background: rgba(255,255,255,.55); }

.section { width: var(--page); margin: auto; padding: 128px 0; border-bottom: 1px solid var(--line); }
.section-intro { max-width: 750px; margin-bottom: 45px; }
.section-intro-wide { max-width: 860px; }
.section-intro h2, .sequence-header h2, .anatomy-copy h2, .citation-section h2 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 4rem); font-weight: 600; letter-spacing: -.065em; line-height: .98; }
.section-intro > p:last-child, .sequence-header > p, .anatomy-copy > p:last-of-type { max-width: 650px; margin-bottom: 0; color: var(--ink-soft); font-size: 1.08rem; }
.paper-frame { border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.motivation-figure { overflow: hidden; margin: 0; }
.motivation-figure img, .evidence-figure img, .anatomy-figure img, .recovery-figure img { display: block; width: 100%; height: auto; }
figcaption { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-family: var(--mono); font-size: .67rem; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.insight-card { min-height: 218px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: transform .24s, box-shadow .24s; }
.insight-card:hover, .resource-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(63,48,31,.12); }
.insight-card span { display: inline-block; margin-bottom: 24px; font-family: var(--mono); font-size: .68rem; }
.insight-card h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.04em; }
.insight-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.insight-card.coral { border-top: 4px solid var(--coral); }.insight-card.indigo { border-top: 4px solid var(--indigo); }.insight-card.green { border-top: 4px solid var(--green); }

.method-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.structure-card, .method-placeholder { min-height: 440px; padding: 24px; }
.card-kicker { margin-bottom: 16px; color: var(--ink-soft); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.module-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 42px; }
.module-switch button, .model-tabs button, .evidence-tabs button { border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink-soft); padding: 8px 10px; font-size: .75rem; font-weight: 700; transition: color .2s, border-color .2s, background .2s; }
.module-switch button:hover, .module-switch button.active, .model-tabs button:hover, .model-tabs button.active, .evidence-tabs button:hover, .evidence-tabs button.active { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.factorization-stage { display: flex; min-height: 150px; align-items: center; gap: clamp(10px, 2vw, 26px); padding: 18px 0; transition: background .25s; }
.matrix { position: relative; display: grid; overflow: hidden; place-items: center; border: 1px solid var(--ink); color: var(--ink); font-family: var(--serif); font-size: 1.5rem; }
.matrix::after { content: ""; position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(90deg, transparent 47%, rgba(21,45,70,.4) 48%, rgba(21,45,70,.4) 52%, transparent 53%), linear-gradient(transparent 47%, rgba(21,45,70,.4) 48%, rgba(21,45,70,.4) 52%, transparent 53%); background-size: 22px 22px; }
.matrix span { position: relative; z-index: 2; padding: 4px 8px; background: var(--card); }
.dense-matrix { width: 104px; height: 104px; border-color: var(--coral); background: var(--coral-soft); }.factor-arrow { color: var(--coral); font-size: 2rem; }.factor-group { display: flex; align-items: center; gap: 10px; }.factor-group > b { font-size: 1.3rem; }.u-matrix { width: 70px; height: 104px; border-color: var(--green); background: var(--green-soft); }.v-matrix { width: 106px; height: 52px; border-color: var(--indigo); background: var(--indigo-soft); }.preserved-columns { display: grid; width: 44px; height: 104px; overflow: hidden; place-items: center; border: 1px solid var(--orange); background: var(--orange-soft); color: var(--orange); font-family: var(--serif); font-size: 1.3rem; }.preserved-columns i { position: absolute; width: 100%; height: 1px; background: rgba(206,115,40,.45); }.u-matrix i, .v-matrix i { position: absolute; z-index: 3; width: 100%; height: 2px; background: rgba(61,135,89,.45); transition: transform .35s; }.u-matrix i:nth-of-type(1) { transform: translateY(-26px); }.u-matrix i:nth-of-type(2) { transform: translateY(26px); }.v-matrix i { background: rgba(98,116,184,.45); }.v-matrix i:nth-of-type(1) { transform: translateX(-28px); }.v-matrix i:nth-of-type(2) { transform: translateX(28px); }
.factorization-stage[data-active-part="u"] .u-matrix { box-shadow: 0 0 0 7px var(--green-soft), 0 10px 22px rgba(61,135,89,.22); transform: translateY(-4px); }.factorization-stage[data-active-part="u"] .u-matrix i:nth-of-type(1) { transform: translateY(-32px); }.factorization-stage[data-active-part="u"] .u-matrix i:nth-of-type(2) { transform: translateY(32px); }.factorization-stage[data-active-part="v"] .v-matrix { box-shadow: 0 0 0 7px var(--indigo-soft), 0 10px 22px rgba(98,116,184,.18); transform: translateY(-4px); }.factorization-stage[data-active-part="columns"] .preserved-columns { box-shadow: 0 0 0 7px var(--orange-soft), 0 10px 22px rgba(206,115,40,.18); transform: translateY(-4px); }
.part-description { margin: 25px 0 0; color: var(--ink-soft); font-size: .91rem; }.part-description strong { color: var(--ink); }
.method-placeholder { position: relative; display: grid; overflow: hidden; place-items: center; text-align: center; border-style: dashed; box-shadow: none; background: linear-gradient(135deg, rgba(98,116,184,.07), rgba(255,253,249,.7)); }.placeholder-label { position: absolute; top: 20px; left: 22px; color: var(--ink-soft); font-family: var(--mono); font-size: .72rem; }.placeholder-copy { position: relative; z-index: 1; }.placeholder-symbol { display: block; margin-bottom: 12px; color: var(--coral); font-size: 2.3rem; transform: rotate(-22deg); }.placeholder-copy h3 { margin-bottom: 8px; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -.05em; }.placeholder-copy p { max-width: 280px; margin: auto; color: var(--ink-soft); font-size: .85rem; }.placeholder-rule { position: absolute; width: 190%; height: 1px; background: rgba(98,116,184,.22); transform: rotate(-25deg); }

.protocol-section { padding-bottom: 116px; }.protocol-shell { overflow: hidden; }.protocol-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }.protocol-steps li { position: relative; min-height: 260px; padding: 28px 23px; border-right: 1px solid var(--line); }.protocol-steps li:last-child { border: 0; }.step-index { display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 44px; border-radius: 50%; color: var(--card); background: var(--ink); font-family: var(--mono); font-size: .75rem; }.protocol-steps li::after { content: "→"; position: absolute; top: 33px; right: -11px; z-index: 2; color: var(--card); background: var(--ink); padding: 0 3px; font-size: .75rem; }.protocol-steps li:last-child::after { display: none; }.protocol-steps strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.28rem; letter-spacing: -.04em; }.protocol-steps small { display: block; margin-bottom: 16px; color: var(--ink-soft); font-family: var(--mono); font-size: .65rem; }.protocol-steps p { margin: 0; color: var(--ink-soft); font-size: .84rem; }.protocol-steps .discover { background: #f8efec; }.protocol-steps .fit { background: #eff1f9; }.protocol-steps .select { background: #edf5ee; }.protocol-steps .gate { background: #fbf4e9; }.protocol-footer { display: flex; align-items: center; gap: 12px; padding: 17px 24px; border-top: 1px solid var(--line); background: var(--ink); color: var(--card); }.protocol-footer p { margin: 0; font-size: .87rem; }.locked-mark { color: #f2bd85; font-size: 1.3rem; }

.results-shell { padding: 22px; }.results-toolbar, .sequence-header { display: flex; align-items: start; justify-content: space-between; gap: 25px; }.model-tabs, .evidence-tabs { display: flex; flex-wrap: wrap; gap: 6px; }.results-note { margin: 9px 0 0; color: var(--ink-soft); font-family: var(--mono); font-size: .66rem; }.scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }.score-card { min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; }.score-card span { color: var(--ink-soft); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }.score-card strong { display: block; margin: 12px 0 4px; font-family: var(--serif); font-size: 2.6rem; letter-spacing: -.06em; line-height: 1; }.score-card p { margin: 0; color: var(--ink-soft); font-size: .78rem; }.score-card p b { color: var(--ink); }.score-ppl { background: var(--coral-soft); }.score-avg { background: var(--green-soft); }.score-rank { background: var(--indigo-soft); }.results-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.comparison-chart { padding: 16px; border: 1px solid var(--line); border-radius: 13px; }.chart-heading { display: flex; justify-content: space-between; margin-bottom: 14px; font-family: var(--mono); font-size: .68rem; }.chart-heading small { color: var(--ink-soft); }.bar-chart { display: grid; gap: 10px; }.bar-row { display: grid; grid-template-columns: 82px 1fr 42px; align-items: center; gap: 8px; font-size: .73rem; }.bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.bar-track { height: 8px; overflow: hidden; border-radius: 99px; background: var(--paper-deep); }.bar-fill { height: 100%; width: 0; border-radius: inherit; background: var(--indigo); transition: width .7s cubic-bezier(.2,.8,.2,1); }.bar-row.ours .bar-fill { background: var(--green); }.bar-row.ours { font-weight: 700; }.bar-row b { font-family: var(--mono); font-size: .65rem; text-align: right; }.table-wrap { margin-top: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 13px; }table { width: 100%; border-collapse: collapse; font-size: .8rem; }th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }th { background: var(--paper-deep); color: var(--ink-soft); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; }tbody tr:last-child td { border-bottom: 0; }tbody tr.ours { background: var(--green-soft); font-weight: 700; }

.results-section .section-intro { margin-bottom: 30px; }
.results-section .section-intro h2 { font-size: clamp(2.7rem, 4.1vw, 3.75rem); }
.results-shell { padding: 26px; }
.results-toolbar { align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.results-toolbar .results-note { margin: 0; font-size: .69rem; letter-spacing: .02em; }
.backbone-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.backbone-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 249, .6); }
.backbone-card h3 { margin: 0 0 16px; color: var(--ink); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -.045em; }
.metric-pair + .metric-pair { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.metric-label { margin-bottom: 8px; color: var(--ink-soft); font-family: var(--mono); font-size: .62rem; letter-spacing: .025em; text-transform: uppercase; }
.metric-label span { color: var(--green); font-size: .8rem; }
.metric-values { display: grid; grid-template-columns: minmax(0, 1fr) 13px minmax(0, 1fr); align-items: center; column-gap: 5px; row-gap: 3px; }
.metric-values > span { grid-column: 1; grid-row: 1 / span 2; color: var(--ink-soft); font-family: var(--serif); font-size: 1.22rem; line-height: 1; letter-spacing: -.04em; }
.metric-values b { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-soft); font-size: .86rem; font-weight: 500; }
.metric-values strong { grid-column: 3; padding: 6px 7px; border-radius: 7px; color: var(--ink); background: var(--green-soft); font-family: var(--serif); font-size: 1.35rem; line-height: 1; letter-spacing: -.05em; }
.metric-values small { display: block; margin-bottom: 3px; font-family: var(--mono); font-size: .52rem; font-weight: 500; letter-spacing: .02em; }
.metric-values em { grid-column: 3; color: var(--green); font-family: var(--mono); font-size: .71rem; font-style: normal; font-weight: 700; }
.results-proof { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; }
.results-proof strong { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.04em; }
.results-proof span { width: 1px; height: 18px; background: var(--line); }

.sequence-header { margin-bottom: 38px; }.sequence-header > p { max-width: 380px; margin-top: 16px; }.ablation-shell { padding: 20px; }.ablation-select { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }.ablation-select label { font-family: var(--mono); font-size: .69rem; }.ablation-select select { padding: 8px 28px 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--paper); font-size: .82rem; }.ablation-chart { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 12px; height: 250px; padding: 16px 4px 0; border-bottom: 1px solid var(--line); }.ablation-column { display: grid; grid-template-rows: 1fr auto; gap: 9px; height: 100%; text-align: center; }.ablation-bar-area { position: relative; display: flex; align-items: end; height: 100%; border-radius: 9px 9px 0 0; background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(21,45,70,.07) 32px); }.ablation-bar { width: 100%; min-height: 6px; border-radius: 9px 9px 0 0; background: var(--indigo); transition: height .65s ease; }.ablation-column:nth-child(2) .ablation-bar { background: var(--green); }.ablation-column:nth-child(3) .ablation-bar { background: var(--orange); }.ablation-column:nth-child(4) .ablation-bar { background: #bd8a56; }.ablation-column:nth-child(5) .ablation-bar { background: #a65b5b; }.ablation-column:nth-child(6) .ablation-bar { background: var(--ink); }.ablation-value { position: absolute; top: 5px; width: 100%; font-family: var(--mono); font-size: .63rem; }.ablation-name { min-height: 28px; color: var(--ink-soft); font-size: .66rem; line-height: 1.15; }.ablation-column:last-child .ablation-name { color: var(--ink); font-weight: 800; }.ablation-caption { margin-top: 16px; color: var(--ink-soft); font-size: .8rem; }.amplify-dot, .suppress-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--green); }.suppress-dot { margin-left: 10px; background: var(--orange); }

.evidence-tabs { margin-bottom: 16px; }.evidence-figure, .anatomy-figure, .recovery-figure { overflow: hidden; margin: 0; }.anatomy-section { display: grid; grid-template-columns: .66fr 1.34fr; gap: 38px; align-items: center; }.mini-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }.mini-legend span { padding: 7px 9px; border-radius: 99px; font-family: var(--mono); font-size: .65rem; }.legend-amplify { background: var(--green-soft); color: #235333; }.legend-suppress { background: var(--orange-soft); color: #87410e; }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.resource-card { min-height: 240px; padding: 22px; transition: transform .24s, box-shadow .24s; }.resource-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 46px; border-radius: 11px; background: var(--paper-deep); color: var(--coral); font-family: var(--mono); font-size: 1.1rem; }.resource-card h3 { margin-bottom: 7px; font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.04em; }.resource-card p { min-height: 52px; margin-bottom: 14px; color: var(--ink-soft); font-size: .85rem; }.resource-card b { font-size: .78rem; }.citation-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 28px; width: var(--page); margin: auto; padding: 96px 0; }.citation-section h2 { margin: 0; }.bibtex-wrap { position: relative; }.bibtex-wrap pre { overflow: auto; margin: 0; padding: 22px 22px 62px; border: 1px solid var(--line); border-radius: 14px; background: #213a57; color: #f4ecdf; font-family: var(--mono); font-size: .72rem; line-height: 1.65; white-space: pre-wrap; }.copy-button { position: absolute; right: 12px; bottom: 12px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: transparent; color: #fff8ec; font-size: .73rem; font-weight: 700; }

footer { padding: 0 0 28px; color: var(--ink-soft); text-align: center; font-family: var(--mono); font-size: .62rem; }footer button { display: block; width: 100%; margin: 0 0 25px; padding: 20px; border: 1px solid var(--line); border-width: 1px 0; background: var(--paper-deep); color: var(--ink); font-family: var(--sans); font-weight: 700; }footer p { margin: 0; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 860px) { :root { --page: min(100% - 36px, 680px); }.site-nav { top: 12px; gap: 10px; padding-left: 10px; }.nav-links { justify-content: flex-start; overflow: auto; }.nav-links a { font-size: .71rem; }.nav-code { display: none; }.hero { min-height: 650px; }.hero-content { padding: 136px 0 80px; }.method-grid, .anatomy-section, .citation-section { grid-template-columns: 1fr; }.protocol-steps { grid-template-columns: 1fr 1fr; }.protocol-steps li:nth-child(2) { border-right: 0; }.protocol-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.protocol-steps li:nth-child(2)::after { display: none; }.backbone-results, .resource-grid, .insight-grid { grid-template-columns: repeat(2, 1fr); }.sequence-header { display: block; }.ablation-chart { gap: 6px; }.ablation-name { font-size: .56rem; }.citation-section { padding: 72px 0; }.structure-card, .method-placeholder { min-height: 390px; } }
@media (max-width: 520px) { .brand { font-size: .78rem; }.brand-mark { width: 25px; height: 25px; }.nav-links { gap: 0; }.nav-links a { padding: 7px; }.hero { min-height: 610px; }.hero-content { padding: 124px 0 72px; }.section { padding: 82px 0; }.section-intro h2, .sequence-header h2, .anatomy-copy h2, .citation-section h2 { font-size: 2.5rem; }.factorization-stage { gap: 8px; transform: scale(.86); transform-origin: left center; width: 116%; }.protocol-steps { grid-template-columns: 1fr; }.protocol-steps li { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }.protocol-steps li::after { top: auto; right: auto; bottom: -11px; left: 25px; transform: rotate(90deg); }.protocol-steps li:last-child { border-bottom: 0; }.protocol-steps li:nth-child(2)::after { display: block; }.protocol-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.protocol-steps li:nth-child(3) { border-bottom: 1px solid var(--line); }.step-index { margin-bottom: 20px; }.results-shell { padding: 14px; }.results-toolbar { display: grid; gap: 7px; }.backbone-results { grid-template-columns: 1fr; }.backbone-card { padding: 17px; }.results-proof { flex-wrap: wrap; line-height: 1.35; }.results-proof span { display: none; }.resource-card { min-height: 210px; }.resource-icon { margin-bottom: 25px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; }.reveal { opacity: 1; transform: none; } }

/* ============================================================
   Round 1 + Round 2 refinements
   Readability, hero hierarchy, navigation, and page rhythm
   ============================================================ */

:root {
  --paper: #fbfaf7;
  --paper-deep: #f2ede6;
  --card: #ffffff;
  --line: #ddd5ca;
}

body {
  font-size: 17px;
  line-height: 1.58;
}

/* ---------- Navigation ---------- */

.site-nav {
  min-height: 60px;
  padding: 9px 11px 9px 18px;
  border-color: rgba(21, 45, 70, 0.13);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 28px rgba(46, 38, 29, 0.07);
  backdrop-filter: blur(18px);
}

.nav-links a,
.nav-code {
  font-size: 0.875rem;
}

.nav-links a {
  position: relative;
}

.nav-links a.active {
  color: var(--ink);
  background: var(--paper-deep);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--coral);
}

.section[id] {
  scroll-margin-top: 108px;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 740px;
  background:
    radial-gradient(
      circle at 78% 20%,
      rgba(244, 223, 217, 0.92) 0,
      transparent 29%
    ),
    radial-gradient(
      circle at 18% 82%,
      rgba(226, 237, 249, 0.90) 0,
      transparent 29%
    ),
    radial-gradient(
      circle at 54% 70%,
      rgba(223, 236, 223, 0.54) 0,
      transparent 25%
    ),
    linear-gradient(
      125deg,
      #fcfaf7 0%,
      #faf8f5 52%,
      #fbf8f6 100%
    );
}

.hero-content {
  padding: 152px 0 106px;
}

.section-number {
  font-size: 0.94rem;
  font-weight: 600;
}

.eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 790px;
  margin-bottom: 28px;
}

.hero-paper-title {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.hero-paper-title span {
  display: block;
}

.hero-copy {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 1.55vw, 1.28rem);
  line-height: 1.62;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  min-height: 48px;
  padding: 13px 18px;
  font-size: 0.96rem;
}

/* ---------- Section rhythm and identity ---------- */

.section {
  padding: 102px 0;
}

.section-overview,
.section-method,
.results-section,
.evidence-section {
  padding-top: 118px;
  padding-bottom: 118px;
}

.protocol-section,
.sequence-section,
.recovery-section,
.resources-section {
  padding-top: 94px;
  padding-bottom: 94px;
}

.anatomy-section {
  padding-top: 104px;
  padding-bottom: 104px;
}

.section-number {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.section-number::before {
  content: "";
  flex: 0 0 24px;
  width: 24px;
  height: 1px;
  background: var(--coral);
}

.section-intro {
  margin-bottom: 42px;
}

.section-intro h2,
.sequence-header h2,
.anatomy-copy h2,
.citation-section h2 {
  margin-bottom: 20px;
}

.section-intro > p:last-child,
.sequence-header > p,
.anatomy-copy > p:last-of-type {
  max-width: 700px;
  font-size: 1.12rem;
  line-height: 1.62;
}

/* ---------- Figure captions ---------- */

figcaption {
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ---------- Overview cards ---------- */

.insight-card span {
  font-size: 0.80rem;
}

.insight-card h3 {
  font-size: 1.60rem;
}

.insight-card p {
  font-size: 0.98rem;
  line-height: 1.58;
}

/* ---------- Method ---------- */

.card-kicker {
  font-size: 0.80rem;
}

.module-switch button,
.model-tabs button,
.evidence-tabs button {
  font-size: 0.86rem;
}

.part-description {
  font-size: 1rem;
  line-height: 1.60;
}

.placeholder-label {
  font-size: 0.80rem;
}

.placeholder-copy p {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Calibration protocol ---------- */

.protocol-steps strong {
  font-size: 1.40rem;
}

.protocol-steps small {
  font-size: 0.80rem;
}

.protocol-steps p {
  font-size: 0.96rem;
  line-height: 1.55;
}

.protocol-footer p {
  font-size: 0.94rem;
}

/* ---------- Main results ---------- */

.results-note,
.results-toolbar .results-note {
  font-size: 0.80rem;
}

.backbone-card h3 {
  font-size: 1.48rem;
}

.metric-label {
  font-size: 0.78rem;
}

.metric-label span {
  font-size: 0.90rem;
}

.metric-values > span {
  font-size: 1.30rem;
}

.metric-values b {
  font-size: 0.94rem;
}

.metric-values strong {
  font-size: 1.48rem;
}

.metric-values small {
  font-size: 0.78rem;
}

.metric-values em {
  font-size: 0.82rem;
}

.results-proof {
  font-size: 0.96rem;
}

.results-proof strong {
  font-size: 1.45rem;
}

/* ---------- Auxiliary result components ---------- */

.score-card span {
  font-size: 0.78rem;
}

.score-card p {
  font-size: 0.90rem;
}

.chart-heading {
  font-size: 0.82rem;
}

.bar-row {
  font-size: 0.84rem;
}

.bar-row b {
  font-size: 0.78rem;
}

table {
  font-size: 0.90rem;
}

th {
  font-size: 0.78rem;
}

/* ---------- Ablation ---------- */

.ablation-select label {
  font-size: 0.80rem;
}

.ablation-select select {
  font-size: 0.90rem;
}

.ablation-value {
  font-size: 0.78rem;
}

.ablation-name {
  font-size: 0.80rem;
  line-height: 1.25;
}

.ablation-caption {
  font-size: 0.90rem;
  line-height: 1.55;
}

/* ---------- Analysis ---------- */

.mini-legend span {
  font-size: 0.78rem;
}

/* ---------- Resources ---------- */

.resource-card p {
  font-size: 0.96rem;
  line-height: 1.55;
}

.resource-card b {
  font-size: 0.88rem;
}

/* ---------- Citation ---------- */

.bibtex-wrap pre {
  font-size: 0.84rem;
}

.copy-button {
  font-size: 0.84rem;
}

/* ---------- Footer ---------- */

footer {
  font-size: 0.78rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links a {
    font-size: 0.80rem;
  }

  .ablation-name {
    font-size: 0.78rem;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 0.88rem;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding: 132px 0 82px;
  }

  .hero-paper-title {
    font-size: 1.18rem;
  }

  .section,
  .section-overview,
  .section-method,
  .results-section,
  .evidence-section,
  .protocol-section,
  .sequence-section,
  .anatomy-section,
  .recovery-section,
  .resources-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-intro > p:last-child,
  .sequence-header > p,
  .anatomy-copy > p:last-of-type {
    font-size: 1.02rem;
    line-height: 1.60;
  }

  .insight-card p,
  .protocol-steps p,
  .part-description,
  .resource-card p {
    font-size: 0.95rem;
  }
}
/* ============================================================
   Round 3 — Information architecture and layout restructuring
   ============================================================ */


/* ============================================================
   Method — compact calibration protocol
   ============================================================ */

.method-protocol {
  margin-top: 34px;
}


.method-subsection-heading {
  max-width: 820px;
  margin-bottom: 20px;
}


.method-subsection-heading .card-kicker,
.analysis-block-head .card-kicker,
.analysis-anatomy-copy .card-kicker {
  margin-bottom: 10px;

  color: var(--coral);

  font-family: var(--mono);
  font-size: 0.80rem;
  font-weight: 500;

  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.method-subsection-heading h3,
.analysis-block-head h3,
.analysis-anatomy-copy h3 {
  margin: 0 0 12px;

  font-family: var(--serif);

  font-size:
    clamp(
      1.65rem,
      2.7vw,
      2.35rem
    );

  font-weight: 600;

  letter-spacing: -0.045em;
  line-height: 1.08;
}


.method-subsection-heading > p:last-child,
.analysis-block-head > p:last-child,
.analysis-anatomy-copy > p:last-of-type {
  max-width: 720px;

  margin: 0;

  color: var(--ink-soft);

  font-size: 1rem;

  line-height: 1.62;
}


/* Make the former Protocol section more compact
   now that it belongs to Method */

.protocol-shell-compact .protocol-steps li {
  min-height: 218px;

  padding:
    24px
    22px;
}


.protocol-shell-compact .step-index {
  margin-bottom: 28px;
}


.protocol-shell-compact .protocol-steps strong {
  font-size: 1.28rem;
}


.protocol-shell-compact .protocol-steps small {
  margin-bottom: 12px;
}


.protocol-shell-compact .protocol-steps p {
  font-size: 0.92rem;

  line-height: 1.52;
}


.protocol-shell-compact .protocol-footer {
  padding-top: 15px;
  padding-bottom: 15px;
}



/* ============================================================
   Section rhythm after structural reorganization
   ============================================================ */

.robustness-section,
.analysis-section {
  padding-top: 118px;
  padding-bottom: 118px;
}


.sequence-section,
.recovery-section,
.resources-section {
  padding-top: 100px;
  padding-bottom: 100px;
}



/* ============================================================
   Ablation Study
   ============================================================ */

.sequence-section .section-intro {
  margin-bottom: 34px;
}



/* ============================================================
   Robustness & Generalization
   ============================================================ */

.robustness-section .evidence-figure {
  margin: 0;
}


.robustness-section .evidence-figure img {
  display: block;

  width: 100%;
  height: auto;
}



/* ============================================================
   Analysis
   ============================================================ */

.analysis-stack {
  display: grid;

  gap: 68px;
}


.analysis-block + .analysis-block {
  padding-top: 68px;

  border-top:
    1px solid
    var(--line);
}


.analysis-block-head {
  max-width: 820px;

  margin-bottom: 22px;
}


.analysis-overview-figure {
  overflow: hidden;

  margin: 0;
}


.analysis-overview-figure img {
  display: block;

  width: 100%;
  height: auto;
}



/* ============================================================
   Calibration anatomy inside Analysis
   ============================================================ */

.analysis-anatomy-layout {
  display: grid;

  grid-template-columns:
    0.62fr
    1.38fr;

  gap: 40px;

  align-items: start;
}


.analysis-anatomy-copy {
  position: sticky;

  top: 118px;
}


.analysis-anatomy-copy .mini-legend {
  margin-top: 24px;
}


.analysis-anatomy-layout .anatomy-figure {
  margin: 0;
}


.analysis-anatomy-layout .anatomy-figure img {
  display: block;

  width: 100%;
  height: auto;
}



/* ============================================================
   Citation
   ============================================================ */

.citation-section .section-number {
  margin-bottom: 14px;
}



/* ============================================================
   Tablet
   ============================================================ */

@media (max-width: 860px) {

  .method-protocol {
    margin-top: 28px;
  }


  .protocol-shell-compact .protocol-steps li {
    min-height: 205px;
  }


  .analysis-stack {
    gap: 54px;
  }


  .analysis-block + .analysis-block {
    padding-top: 54px;
  }


  .analysis-anatomy-layout {
    grid-template-columns: 1fr;

    gap: 24px;
  }


  .analysis-anatomy-copy {
    position: static;
  }

}



/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 520px) {

  .robustness-section,
  .analysis-section,
  .sequence-section,
  .recovery-section,
  .resources-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }


  .method-protocol {
    margin-top: 24px;
  }


  .method-subsection-heading h3,
  .analysis-block-head h3,
  .analysis-anatomy-copy h3 {
    font-size: 1.7rem;
  }


  .protocol-shell-compact .protocol-steps li {
    min-height: 180px;
  }


  .analysis-stack {
    gap: 44px;
  }


  .analysis-block + .analysis-block {
    padding-top: 44px;
  }

}
/* ============================================================
   Round 4 — Main Results Explorer
   Backbone tabs + complete Table 1 + rank heatmap
   ============================================================ */


/* ============================================================
   Main container
   ============================================================ */

.main-results-explorer {
  padding: 26px 26px 24px;

  overflow: hidden;
}



/* ============================================================
   Backbone tabs
   ============================================================ */

.results-backbone-tabs {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 8px;

  padding: 6px;

  margin-bottom: 34px;

  border:
    1px solid
    var(--line);

  border-radius: 16px;

  background:
    rgba(244, 241, 236, 0.72);
}


.results-backbone-tab {
  min-height: 50px;

  padding:
    11px
    14px;

  border:
    1px solid
    transparent;

  border-radius: 11px;

  background:
    transparent;

  color:
    var(--ink-soft);

  font-family:
    var(--sans);

  font-size:
    0.91rem;

  font-weight:
    650;

  line-height:
    1.2;

  cursor:
    pointer;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}


.results-backbone-tab:hover {
  color:
    var(--ink);

  background:
    rgba(255, 255, 255, 0.72);
}


.results-backbone-tab.active {
  color:
    #183b5b;

  border-color:
    rgba(92, 137, 180, 0.24);

  background:
    #ffffff;

  box-shadow:
    0 7px 20px
    rgba(40, 68, 91, 0.08);
}


.results-backbone-tab:active {
  transform:
    translateY(1px);
}



/* ============================================================
   Active backbone header
   ============================================================ */

.results-active-header {
  display:
    flex;

  align-items:
    flex-end;

  justify-content:
    space-between;

  gap:
    24px;

  margin-bottom:
    22px;
}


.results-active-header .card-kicker {
  margin-bottom:
    5px;
}


.results-active-header h3 {
  margin:
    0;

  font-family:
    var(--serif);

  font-size:
    clamp(
      1.85rem,
      3vw,
      2.55rem
    );

  font-weight:
    600;

  letter-spacing:
    -0.045em;

  line-height:
    1;
}


.results-context-chips {
  display:
    flex;

  flex-wrap:
    wrap;

  justify-content:
    flex-end;

  gap:
    7px;
}


.results-context-chips span {
  padding:
    7px
    10px;

  border:
    1px solid
    rgba(21, 45, 70, 0.12);

  border-radius:
    999px;

  background:
    rgba(247, 249, 250, 0.88);

  color:
    var(--ink-soft);

  font-family:
    var(--mono);

  font-size:
    0.77rem;
}



/* ============================================================
   Ranking legend
   ============================================================ */

.results-rank-legend {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    22px;

  padding:
    13px
    15px;

  margin-bottom:
    16px;

  border:
    1px solid
    rgba(21, 45, 70, 0.10);

  border-radius:
    11px;

  background:
    rgba(248, 249, 250, 0.66);
}


.rank-legend-copy {
  display:
    flex;

  align-items:
    baseline;

  flex-wrap:
    wrap;

  gap:
    7px;
}


.rank-legend-copy strong {
  color:
    var(--ink);

  font-size:
    0.84rem;
}


.rank-legend-copy span {
  color:
    var(--ink-soft);

  font-size:
    0.82rem;
}


.rank-scale {
  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  white-space:
    nowrap;

  color:
    var(--ink-soft);

  font-family:
    var(--mono);

  font-size:
    0.72rem;
}


.rank-gradient {
  display:
    block;

  width:
    112px;

  height:
    10px;

  border:
    1px solid
    rgba(72, 116, 160, 0.13);

  border-radius:
    999px;

  background:
    linear-gradient(
      90deg,
      rgba(99, 151, 201, 0.025),
      rgba(99, 151, 201, 0.33)
    );
}



/* ============================================================
   Table scroll container
   ============================================================ */

.main-results-table-scroll {
  width:
    100%;

  overflow-x:
    auto;

  overflow-y:
    hidden;

  border:
    1px solid
    rgba(21, 45, 70, 0.12);

  border-radius:
    13px;

  background:
    #ffffff;

  -webkit-overflow-scrolling:
    touch;
}



/* ============================================================
   Main results table
   ============================================================ */

.main-results-table {
  width:
    100%;

  min-width:
    1080px;

  border-collapse:
    separate;

  border-spacing:
    0;

  table-layout:
    fixed;

  background:
    #ffffff;

  font-variant-numeric:
    tabular-nums;
}


.main-results-table th,
.main-results-table td {
  border-right:
    1px solid
    rgba(21, 45, 70, 0.075);

  border-bottom:
    1px solid
    rgba(21, 45, 70, 0.075);

  text-align:
    center;
}


.main-results-table tr > *:last-child {
  border-right:
    0;
}


.main-results-table tbody tr:last-child > * {
  border-bottom:
    0;
}



/* ============================================================
   Group header
   ============================================================ */

.method-group-row th {
  height:
    34px;

  padding:
    7px
    6px;

  color:
    #68727e;

  font-family:
    var(--mono);

  font-size:
    0.75rem;

  font-weight:
    500;

  letter-spacing:
    0.025em;
}


.metric-head {
  width:
    122px;

  background:
    #f7f5f1;

  color:
    var(--ink) !important;

  text-align:
    left !important;

  padding-left:
    18px !important;
}


.group-reference {
  background:
    #f4f2ee;
}


.group-pruning {
  background:
    #fbf1ed;
}


.group-dimred {
  background:
    #f2f6f0;
}


.group-lowrank {
  background:
    #eff4f9;
}



/* ============================================================
   Method header
   ============================================================ */

.method-name-row th {
  height:
    58px;

  padding:
    9px
    7px;

  background:
    #fbfbfa;

  color:
    var(--ink);

  font-family:
    var(--sans);

  font-size:
    0.81rem;

  font-weight:
    650;

  line-height:
    1.14;

  vertical-align:
    middle;
}


.method-name-row th:first-child {
  background:
    #f5f3ef;
}


.ours-method-head {
  background:
    #eaf2fa !important;
}


.ours-method-head span {
  display:
    block;
}


.ours-method-head small {
  display:
    inline-block;

  margin-top:
    5px;

  padding:
    2px
    5px;

  border-radius:
    999px;

  background:
    rgba(76, 125, 174, 0.13);

  color:
    #3b6590;

  font-family:
    var(--mono);

  font-size:
    0.60rem;

  font-weight:
    600;

  letter-spacing:
    0.055em;
}



/* ============================================================
   Metric rows
   ============================================================ */

.main-results-table tbody th {
  position:
    sticky;

  left:
    0;

  z-index:
    2;

  height:
    51px;

  padding:
    10px
    15px;

  background:
    #fbfaf8;

  color:
    var(--ink);

  text-align:
    left;

  font-family:
    var(--sans);

  font-size:
    0.88rem;

  font-weight:
    650;

  line-height:
    1.15;

  box-shadow:
    1px 0 0
    rgba(21, 45, 70, 0.06);
}


.main-results-table tbody th span {
  margin-left:
    3px;

  color:
    var(--ink-soft);

  font-size:
    0.78rem;
}


.main-results-table td {
  height:
    51px;

  padding:
    10px
    7px;

  color:
    #334556;

  font-size:
    0.90rem;

  font-weight:
    520;

  transition:
    background 190ms ease,
    color 190ms ease,
    box-shadow 190ms ease,
    transform 160ms ease;
}


.main-results-table td:hover {
  position:
    relative;

  z-index:
    1;

  transform:
    scale(1.035);

  box-shadow:
    0 5px 15px
    rgba(33, 59, 82, 0.08);
}



/* ============================================================
   Summary rows
   ============================================================ */

.main-results-table tr.summary-metric th,
.main-results-table tr.summary-metric td {
  height:
    56px;
}


.main-results-table tr.summary-metric th {
  font-weight:
    750;
}


.main-results-table tr.summary-end th,
.main-results-table tr.summary-end td {
  border-bottom:
    2px solid
    rgba(21, 45, 70, 0.14);
}



/* ============================================================
   Dense reference
   Dense is deliberately excluded from ranking
   ============================================================ */

.result-reference {
  background:
    #f5f3ef !important;

  color:
    #777169 !important;

  font-weight:
    500 !important;
}



/* ============================================================
   Rank heatmap

   Rank 1 = strongest
   Rank 8 = lightest

   These are intentionally subtle pastel blues so that the
   table remains academic rather than looking like a dashboard.
   ============================================================ */

.result-rank-1 {
  background:
    rgba(87, 143, 197, 0.31);

  color:
    #173c5e !important;

  font-weight:
    780 !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(62, 111, 158, 0.25);
}


.result-rank-2 {
  background:
    rgba(87, 143, 197, 0.215);

  color:
    #244e72 !important;

  font-weight:
    700 !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(62, 111, 158, 0.12);
}


.result-rank-3 {
  background:
    rgba(87, 143, 197, 0.145);
}


.result-rank-4 {
  background:
    rgba(87, 143, 197, 0.105);
}


.result-rank-5 {
  background:
    rgba(87, 143, 197, 0.073);
}


.result-rank-6 {
  background:
    rgba(87, 143, 197, 0.048);
}


.result-rank-7 {
  background:
    rgba(87, 143, 197, 0.028);
}


.result-rank-8 {
  background:
    rgba(87, 143, 197, 0.012);
}



/* ============================================================
   Main-results orientation and transient best-result highlight
   Methods are rows; metrics are columns. Only rank-one cells
   receive emphasis, and only while this explorer is in view.
   ============================================================ */

.metric-name-row th {
  height:
    54px;

  padding:
    9px
    7px;

  background:
    #fbfbfa;

  color:
    var(--ink);

  font-family:
    var(--sans);

  font-size:
    0.80rem;

  font-weight:
    650;

  line-height:
    1.14;
}


.metric-name-row .method-head {
  width:
    168px;

  padding-left:
    18px;

  background:
    #f5f3ef;

  text-align:
    left;
}


.metric-name-row th span {
  margin-left:
    2px;

  color:
    var(--green);

  font-size:
    0.76rem;
}


.main-results-table tbody tr.results-lens-row th {
  color:
    #183b5b;

  background:
    #edf5ee;

  font-weight:
    760;
}


.main-results-table tbody tr.results-lens-row th > span {
  margin-left:
    0;

  color:
    inherit;

  font-size:
    inherit;
}


.main-results-table tbody tr.results-lens-row th small {
  display:
    inline-block;

  margin-left:
    7px;

  padding:
    2px
    5px;

  border-radius:
    999px;

  background:
    rgba(44, 122, 98, 0.12);

  color:
    #28634f;

  font-family:
    var(--mono);

  font-size:
    0.58rem;

  font-weight:
    650;

  letter-spacing:
    0.055em;
}


.main-results-table td.result-best {
  background:
    transparent;
}


.main-results-table.results-best-active td.result-best {
  position:
    relative;

  z-index:
    1;

  color:
    #173c5e !important;

  background:
    rgba(74, 144, 112, 0.18);

  font-weight:
    780 !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(44, 122, 98, 0.22);

  animation:
    resultBestArrival
    640ms
    cubic-bezier(.2, .8, .2, 1)
    both;
}


.main-results-table.results-best-active td.result-best:nth-child(2) {
  animation-delay: 20ms;
}


.main-results-table.results-best-active td.result-best:nth-child(3) {
  animation-delay: 55ms;
}


.main-results-table.results-best-active td.result-best:nth-child(4) {
  animation-delay: 90ms;
}


.main-results-table.results-best-active td.result-best:nth-child(5) {
  animation-delay: 125ms;
}


.main-results-table.results-best-active td.result-best:nth-child(6) {
  animation-delay: 160ms;
}


.main-results-table.results-best-active td.result-best:nth-child(7) {
  animation-delay: 195ms;
}


.main-results-table.results-best-active td.result-best:nth-child(8) {
  animation-delay: 230ms;
}


.main-results-table.results-best-active td.result-best:nth-child(9) {
  animation-delay: 265ms;
}


.main-results-table.results-best-active td.result-best:nth-child(10) {
  animation-delay: 300ms;
}


@keyframes resultBestArrival {

  0% {
    background:
      rgba(74, 144, 112, 0.48);

    box-shadow:
      inset 0 0 0 1px
      rgba(44, 122, 98, 0.36),
      0 0 0 0
      rgba(44, 122, 98, 0.18);
  }

  65% {
    box-shadow:
      inset 0 0 0 1px
      rgba(44, 122, 98, 0.24),
      0 0 0 5px
      rgba(44, 122, 98, 0);
  }

  100% {
    background:
      rgba(74, 144, 112, 0.18);
  }

}


.rank-gradient {
  width:
    34px;

  background:
    rgba(74, 144, 112, 0.18);
}



/* ============================================================
   Table switching animation
   ============================================================ */

.main-results-table tbody.results-refresh {
  animation:
    resultsRefresh
    260ms ease;
}


@keyframes resultsRefresh {

  from {
    opacity:
      0;

    transform:
      translateY(5px);
  }

  to {
    opacity:
      1;

    transform:
      translateY(0);
  }

}



/* ============================================================
   Table note
   ============================================================ */

.results-table-note {
  display:
    flex;

  align-items:
    flex-start;

  gap:
    9px;

  margin-top:
    14px;

  color:
    var(--ink-soft);
}


.results-table-note p {
  margin:
    0;

  font-size:
    0.82rem;

  line-height:
    1.52;
}


.reference-dot {
  flex:
    0 0 auto;

  width:
    10px;

  height:
    10px;

  margin-top:
    4px;

  border:
    1px solid
    rgba(80, 75, 69, 0.13);

  border-radius:
    3px;

  background:
    #f5f3ef;
}



/* ============================================================
   Baseline links
   ============================================================ */

.baseline-links {
  margin-top:
    18px;

  overflow:
    hidden;
}


.baseline-links summary {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    16px;

  min-height:
    58px;

  padding:
    0
    20px;

  list-style:
    none;

  cursor:
    pointer;

  user-select:
    none;
}


.baseline-links summary::-webkit-details-marker {
  display:
    none;
}


.baseline-summary-title {
  display:
    flex;

  align-items:
    center;

  gap:
    10px;

  color:
    var(--ink);

  font-size:
    0.94rem;

  font-weight:
    700;
}


.baseline-link-icon {
  display:
    grid;

  width:
    28px;

  height:
    28px;

  place-items:
    center;

  border-radius:
    8px;

  background:
    #eef4f9;

  color:
    #416d97;
}


.baseline-chevron {
  color:
    var(--ink-soft);

  font-size:
    1.1rem;

  transition:
    transform 180ms ease;
}


.baseline-links[open] .baseline-chevron {
  transform:
    rotate(180deg);
}


.baseline-link-grid {
  display:
    grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap:
    10px;

  padding:
    0
    18px
    18px;
}


.baseline-link-card {
  min-height:
    112px;

  padding:
    15px;

  border:
    1px solid
    rgba(21, 45, 70, 0.11);

  border-radius:
    12px;

  background:
    rgba(250, 251, 252, 0.88);
}


.baseline-category {
  color:
    var(--ink-soft);

  font-family:
    var(--mono);

  font-size:
    0.69rem;
}


.baseline-link-card h4 {
  margin:
    8px
    0
    14px;

  color:
    var(--ink);

  font-size:
    0.96rem;

  font-weight:
    700;
}


.baseline-link-actions {
  display:
    flex;

  gap:
    7px;
}


.baseline-link-actions span {
  padding:
    5px
    8px;

  border-radius:
    7px;

  background:
    #eef3f7;

  color:
    #496b88;

  font-family:
    var(--mono);

  font-size:
    0.68rem;

  font-weight:
    500;
}



/* ============================================================
   Tablet
   ============================================================ */

@media (max-width: 860px) {

  .main-results-explorer {
    padding:
      20px;
  }


  .results-backbone-tabs {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .results-active-header {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .results-context-chips {
    justify-content:
      flex-start;
  }


  .results-rank-legend {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .baseline-link-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}



/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 520px) {

  .main-results-explorer {
    padding:
      14px;
  }


  .results-backbone-tabs {
    gap:
      6px;

    padding:
      5px;
  }


  .results-backbone-tab {
    min-height:
      46px;

    font-size:
      0.82rem;
  }


  .results-active-header h3 {
    font-size:
      1.8rem;
  }


  .rank-scale {
    width:
      100%;

    white-space:
      normal;
  }


  .rank-gradient {
    flex:
      1;
  }


  .baseline-link-grid {
    grid-template-columns:
      1fr;
  }

}
/* ============================================================
   Round 5 — Ablation Study
   Four-backbone explorer + calibration recipe table
   ============================================================ */


/* ============================================================
   Section
   ============================================================ */

.ablation-section {
  padding-top: 104px;
  padding-bottom: 104px;
}


.ablation-section .section-intro {
  margin-bottom: 34px;
}



/* ============================================================
   Explorer shell
   ============================================================ */

.ablation-explorer {
  padding: 26px;
}



/* ============================================================
   Backbone tabs
   ============================================================ */

.ablation-backbone-tabs {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 8px;

  padding: 6px;

  margin-bottom: 34px;

  border:
    1px solid
    var(--line);

  border-radius: 16px;

  background:
    rgba(244, 241, 236, 0.72);
}


.ablation-backbone-tab {
  min-height: 50px;

  padding:
    11px
    14px;

  border:
    1px solid
    transparent;

  border-radius: 11px;

  background:
    transparent;

  color:
    var(--ink-soft);

  font-family:
    var(--sans);

  font-size:
    0.91rem;

  font-weight:
    650;

  line-height:
    1.2;

  cursor:
    pointer;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}


.ablation-backbone-tab:hover {
  color:
    var(--ink);

  background:
    rgba(255, 255, 255, 0.72);
}


.ablation-backbone-tab.active {
  color:
    #183b5b;

  border-color:
    rgba(92, 137, 180, 0.24);

  background:
    #ffffff;

  box-shadow:
    0 7px 20px
    rgba(40, 68, 91, 0.08);
}


.ablation-backbone-tab:active {
  transform:
    translateY(1px);
}



/* ============================================================
   Active backbone header
   ============================================================ */

.ablation-active-header {
  display:
    flex;

  align-items:
    flex-end;

  justify-content:
    space-between;

  gap: 24px;

  margin-bottom: 20px;
}


.ablation-active-header .card-kicker {
  margin-bottom: 5px;
}


.ablation-active-header h3 {
  margin: 0;

  font-family:
    var(--serif);

  font-size:
    clamp(
      1.8rem,
      2.8vw,
      2.45rem
    );

  font-weight:
    600;

  letter-spacing:
    -0.045em;

  line-height:
    1;
}



/* ============================================================
   Best / second-best legend
   ============================================================ */

.ablation-rank-legend {
  display:
    flex;

  align-items:
    center;

  gap: 15px;
}


.ablation-legend-item {
  display:
    flex;

  align-items:
    center;

  gap: 7px;

  color:
    var(--ink-soft);

  font-family:
    var(--mono);

  font-size:
    0.74rem;
}


.ablation-best-swatch,
.ablation-second-swatch {
  display:
    block;

  width: 18px;
  height: 12px;

  border-radius: 4px;
}


.ablation-best-swatch {
  background:
    rgba(87, 143, 197, 0.30);

  border:
    1px solid
    rgba(62, 111, 158, 0.23);
}


.ablation-second-swatch {
  background:
    rgba(87, 143, 197, 0.14);

  border:
    1px solid
    rgba(62, 111, 158, 0.11);
}



/* ============================================================
   Table wrapper
   ============================================================ */

.ablation-table-scroll {
  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  border:
    1px solid
    rgba(21, 45, 70, 0.12);

  border-radius: 14px;

  background:
    #ffffff;

  -webkit-overflow-scrolling:
    touch;
}



/* ============================================================
   Table
   ============================================================ */

.ablation-results-table {
  width: 100%;

  min-width: 870px;

  border-collapse:
    separate;

  border-spacing:
    0;

  table-layout:
    fixed;

  background:
    #ffffff;

  font-variant-numeric:
    tabular-nums;
}


.ablation-results-table th,
.ablation-results-table td {
  border-right:
    1px solid
    rgba(21, 45, 70, 0.075);

  border-bottom:
    1px solid
    rgba(21, 45, 70, 0.075);
}


.ablation-results-table tr > *:last-child {
  border-right: 0;
}


.ablation-results-table tbody tr:last-child > * {
  border-bottom: 0;
}



/* ============================================================
   Header
   ============================================================ */

.ablation-results-table thead th {
  height: 54px;

  padding:
    10px
    14px;

  background:
    #f7f5f1;

  color:
    var(--ink-soft);

  font-family:
    var(--mono);

  font-size:
    0.77rem;

  font-weight:
    550;

  letter-spacing:
    0.02em;

  text-align:
    left;
}


.ablation-results-table thead th:nth-child(1) {
  width: 185px;
}


.ablation-results-table thead th:nth-child(2) {
  width: auto;
}


.ablation-results-table thead th:nth-child(3),
.ablation-results-table thead th:nth-child(4) {
  width: 98px;

  text-align:
    center;
}


.ablation-results-table thead th span {
  margin-left: 2px;

  color:
    var(--ink);
}



/* ============================================================
   Body rows
   ============================================================ */

.ablation-results-table tbody th {
  padding:
    17px
    16px;

  background:
    #fffdfb;

  color:
    var(--ink);

  font-family:
    var(--sans);

  font-size:
    0.93rem;

  font-weight:
    680;

  line-height:
    1.25;

  text-align:
    left;

  vertical-align:
    middle;
}


.ablation-results-table tbody td {
  padding:
    15px
    16px;

  background:
    #ffffff;

  color:
    #34495a;

  font-size:
    0.91rem;

  line-height:
    1.42;

  vertical-align:
    middle;
}


.ablation-results-table tbody td:nth-last-child(-n + 2) {
  padding:
    15px
    8px;

  text-align:
    center;

  font-size:
    0.96rem;

  font-weight:
    550;
}



/* ============================================================
   Variant labels
   ============================================================ */

.ablation-variant-title {
  display: block;
}


.ablation-variant-badge {
  display:
    inline-block;

  margin-top:
    6px;

  padding:
    2px
    6px;

  border-radius:
    999px;

  background:
    #edf3f8;

  color:
    #41698d;

  font-family:
    var(--mono);

  font-size:
    0.61rem;

  font-weight:
    600;

  letter-spacing:
    0.055em;
}



/* ============================================================
   Calibration recipe
   ============================================================ */

.calibration-recipe {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap: 6px;
}


.calibration-step {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  min-height:
    30px;

  padding:
    5px
    9px;

  border:
    1px solid
    transparent;

  border-radius:
    8px;

  font-family:
    var(--sans);

  font-size:
    0.78rem;

  font-weight:
    650;

  line-height:
    1.15;
}


.calibration-step.amplify {
  border-color:
    rgba(67, 139, 82, 0.20);

  background:
    rgba(112, 181, 116, 0.13);

  color:
    #347842;
}


.calibration-step.suppress {
  border-color:
    rgba(204, 117, 43, 0.20);

  background:
    rgba(235, 157, 83, 0.14);

  color:
    #ad5c1d;
}


.calibration-step.reprofile {
  border-color:
    rgba(75, 124, 170, 0.17);

  background:
    rgba(113, 161, 205, 0.12);

  color:
    #426f98;
}


.calibration-step.joint {
  border-color:
    rgba(116, 128, 111, 0.18);

  background:
    linear-gradient(
      90deg,
      rgba(112, 181, 116, 0.12),
      rgba(235, 157, 83, 0.13)
    );

  color:
    #4f5d4f;
}


.calibration-step.none {
  border-color:
    rgba(112, 108, 102, 0.13);

  background:
    #f5f3ef;

  color:
    #777169;
}


.recipe-arrow {
  color:
    #84909a;

  font-size:
    0.84rem;

  line-height:
    1;
}


.recipe-note {
  display:
    block;

  flex-basis:
    100%;

  margin-top:
    2px;

  color:
    var(--ink-soft);

  font-size:
    0.74rem;

  line-height:
    1.4;
}



/* ============================================================
   Best / second-best result cells
   ============================================================ */

.ablation-result-best {
  background:
    rgba(87, 143, 197, 0.30) !important;

  color:
    #173c5e !important;

  font-weight:
    780 !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(62, 111, 158, 0.22);
}


.ablation-result-second {
  background:
    rgba(87, 143, 197, 0.14) !important;

  color:
    #2d5475 !important;

  font-weight:
    680 !important;
}



/* ============================================================
   LENS row identity

   Important:
   This does NOT determine performance highlighting.
   Result-cell colors above remain entirely data-driven.
   ============================================================ */

.ablation-lens-row > th {
  box-shadow:
    inset 4px 0 0
    rgba(84, 133, 180, 0.62);
}


.ablation-lens-row > th,
.ablation-lens-row > td {
  background-color:
    rgba(237, 244, 250, 0.20);
}



/* ============================================================
   Hover
   ============================================================ */

.ablation-results-table tbody tr {
  transition:
    background 160ms ease;
}


.ablation-results-table tbody tr:hover > th,
.ablation-results-table tbody tr:hover > td {
  filter:
    brightness(0.987);
}



/* ============================================================
   Switching animation
   ============================================================ */

#ablation-results-body.ablation-refresh {
  animation:
    ablationRefresh
    240ms ease;
}


@keyframes ablationRefresh {

  from {
    opacity: 0;

    transform:
      translateY(4px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}



/* ============================================================
   Design legend below table
   ============================================================ */

.ablation-design-legend {
  display:
    grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 12px;

  margin-top: 16px;
}


.ablation-design-legend > div {
  padding:
    13px
    14px;

  border:
    1px solid
    rgba(21, 45, 70, 0.09);

  border-radius:
    11px;

  background:
    rgba(250, 250, 249, 0.72);
}


.ablation-design-legend p {
  margin:
    9px
    0
    0;

  color:
    var(--ink-soft);

  font-size:
    0.80rem;

  line-height:
    1.46;
}



/* ============================================================
   Tablet
   ============================================================ */

@media (max-width: 860px) {

  .ablation-explorer {
    padding: 20px;
  }


  .ablation-backbone-tabs {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .ablation-active-header {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .ablation-design-legend {
    grid-template-columns:
      1fr;
  }

}



/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 520px) {

  .ablation-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }


  .ablation-explorer {
    padding: 14px;
  }


  .ablation-backbone-tabs {
    gap: 6px;

    padding: 5px;
  }


  .ablation-backbone-tab {
    min-height: 46px;

    font-size: 0.82rem;
  }


  .ablation-active-header h3 {
    font-size: 1.8rem;
  }


  .ablation-rank-legend {
    gap: 10px;
  }

}


/* ============================================================
   Experimental narrative reorganization
   05 / Robustness, 06 / Analysis, 07 / Recovery
   ============================================================ */

.experiment-section .section-intro {
  margin-bottom: 34px;
}


.experiment-explorer,
.analysis-explorer,
.anatomy-explorer {
  width: 100%;
}


.experiment-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}


.experiment-tabs button {
  cursor: pointer;
}


.experiment-tabs-primary {
  gap: 8px;
  margin-bottom: 18px;
}


.experiment-tabs-primary button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.48);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}


.experiment-tabs-primary button:hover {
  border-color: rgba(21, 45, 70, 0.45);
  color: var(--ink);
  transform: translateY(-1px);
}


.experiment-tabs-primary button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--card);
}


.experiment-tabs-secondary {
  gap: 21px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}


.experiment-tabs-secondary button {
  position: relative;
  padding: 6px 1px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 180ms ease;
}


.experiment-tabs-secondary button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}


.experiment-tabs-secondary button:hover,
.experiment-tabs-secondary button.active {
  color: var(--ink);
}


.experiment-tabs-secondary button.active {
  font-weight: 700;
}


.experiment-tabs-secondary button.active::after {
  opacity: 1;
  transform: scaleX(1);
}


.experiment-panel,
.anatomy-explorer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(63, 48, 31, 0.045);
}


.experiment-panel {
  padding: clamp(22px, 3vw, 38px);
}


.experiment-panel-head {
  max-width: 700px;
  margin-bottom: 27px;
}


.experiment-label {
  margin-bottom: 10px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.experiment-panel-head h3,
.experiment-panel-head h4 {
  margin: 0 0 9px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}


.experiment-panel-head h4 {
  font-size: clamp(1.55rem, 2.55vw, 2.2rem);
}


.experiment-panel-head > p:last-child {
  max-width: 590px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}


.experiment-subtabs-wrap {
  margin: 0 0 3px;
}


.experiment-subtabs-wrap .experiment-tabs-secondary {
  margin-bottom: 22px;
}


.experiment-figure {
  margin: 0;
}


.experiment-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}


.experiment-figure img.is-switching {
  opacity: 0.16;
  transform: translateY(5px);
}


.experiment-takeaway {
  display: grid;
  grid-template-columns: minmax(112px, 132px) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  margin: 23px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.48;
}


.experiment-takeaway > span:first-child {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.experiment-takeaway > span:first-child::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}


.analysis-section .analysis-stack {
  gap: 72px;
}


.analysis-section .analysis-block + .analysis-block {
  padding-top: 72px;
}


.experiment-block-head {
  max-width: 760px;
  margin-bottom: 25px;
}


.experiment-section .analysis-anatomy-copy {
  position: static;
  max-width: 760px;
  margin-bottom: 26px;
}


.analysis-explorer > .experiment-tabs-secondary {
  margin-bottom: 18px;
}


.anatomy-explorer {
  padding: clamp(20px, 2.5vw, 32px);
}


.anatomy-explorer .experiment-tabs-secondary {
  margin-bottom: 22px;
}


.anatomy-explorer .experiment-figure {
  overflow: hidden;
  border-radius: 10px;
}


.anatomy-takeaway {
  margin-bottom: 0;
}


.recovery-figure.experiment-panel {
  margin: 0;
  padding: 0;
}


.recovery-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}


.recovery-takeaway {
  margin: 0;
  padding: 18px clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}


@media (max-width: 700px) {

  .experiment-tabs-primary {
    gap: 6px;
  }


  .experiment-tabs-primary button {
    flex: 1 1 calc(50% - 6px);
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.75rem;
  }


  .experiment-tabs-secondary {
    gap: 15px;
  }


  .experiment-panel {
    padding: 21px;
  }


  .experiment-takeaway {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 18px;
    padding-top: 15px;
  }


  .analysis-section .analysis-stack {
    gap: 54px;
  }


  .analysis-section .analysis-block + .analysis-block {
    padding-top: 54px;
  }


  .anatomy-explorer {
    padding: 18px;
  }

}


@media (max-width: 420px) {

  .experiment-tabs-primary button {
    flex-basis: 100%;
  }


  .experiment-tabs-secondary {
    gap: 13px;
  }


  .experiment-tabs-secondary button {
    font-size: 0.68rem;
  }

}


/* Make the two experiment-switchers unmistakably interactive
   without giving the Anatomy backbone tabs the same visual weight. */

.tab-switch-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.tab-switch-label::before {
  width: 12px;
  height: 1px;
  background: var(--coral);
  content: "";
}


.pipeline-figure {
  overflow: hidden;
  margin: 0;
}


.pipeline-figure img {
  display: block;
  width: 100%;
  height: auto;
}


.experiment-subtabs-wrap .experiment-tabs-secondary,
.analysis-explorer > .experiment-tabs-secondary {
  gap: 4px;
  width: fit-content;
  margin-bottom: 23px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-deep);
}


.experiment-subtabs-wrap .experiment-tabs-secondary button,
.analysis-explorer > .experiment-tabs-secondary button {
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 0.74rem;
}


.experiment-subtabs-wrap .experiment-tabs-secondary button::after,
.analysis-explorer > .experiment-tabs-secondary button::after {
  display: none;
}


.experiment-subtabs-wrap .experiment-tabs-secondary button:hover,
.analysis-explorer > .experiment-tabs-secondary button:hover {
  background: rgba(255, 253, 249, 0.64);
  color: var(--ink);
}


.experiment-subtabs-wrap .experiment-tabs-secondary button.active,
.analysis-explorer > .experiment-tabs-secondary button.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(63, 48, 31, 0.1);
}


@media (max-width: 520px) {

  .experiment-subtabs-wrap .experiment-tabs-secondary,
  .analysis-explorer > .experiment-tabs-secondary {
    max-width: 100%;
  }


  .experiment-subtabs-wrap .experiment-tabs-secondary button,
  .analysis-explorer > .experiment-tabs-secondary button {
    padding: 8px 9px;
    font-size: 0.69rem;
  }

}
