:root {
  --bone: #f1efe8;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --ink: #151715;
  --soft-ink: #575a55;
  --faint-ink: #6b6e67;
  --rule: #d8dad3;
  --rule-strong: #bfc2ba;
  --deep-lab: #111713;
  --deep-lab-soft: #19211c;
  --signal: #3156d9;
  --signal-muted: #dce3ff;
  --biological: #537366;
  --review: #916421;
  --critical: #b54235;
  --font-sans: "Instrument Sans", "Arial Nova", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --header-height: 72px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --content-wide: 1520px;
  --content-standard: 1320px;
  --content-text: 760px;
  --radius-control: 4px;
  --radius-panel: 7px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --motion-fast: 180ms;
  --motion-medium: 420ms;
}

/* Surfaces sombres.
   Les jetons de couleur ci-dessus ont été assombris pour atteindre WCAG AA sur
   les fonds clairs (--bone, --paper), qui portent l'essentiel du site. Mais ces
   mêmes jetons servent aussi sur --deep-lab : une valeur unique ne peut pas
   convenir aux deux, et les assombrir globalement dégradait le contraste sur
   fond sombre (--review : 6,17 → 3,50). On restaure donc des valeurs claires,
   conformes sur fond sombre, à l'intérieur de ces conteneurs. */
.explorer-immersion,
.explorer-page-workspace,
.site-footer {
  --faint-ink: #9aa09a;
  --biological: #7fa894;
  --review: #e0a544;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--signal-muted);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  text-decoration: none;
  transition: transform var(--motion-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.wide,
.standard,
.text-width {
  width: min(100% - (2 * var(--gutter)), var(--content-wide));
  margin-inline: auto;
}

.standard {
  max-width: var(--content-standard);
}

.text-width {
  max-width: var(--content-text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow,
.meta,
.status-mark,
.citation-anchor,
.chapter-number,
.section-index,
.specimen-label,
.ledger-key,
.case-button__id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--signal);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  padding: 10px 19px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast);
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button--primary {
  background: var(--ink);
  color: var(--paper);
}

.button--primary:hover {
  background: var(--signal);
  border-color: var(--signal);
}

.button--light {
  border-color: var(--paper);
  color: var(--paper);
}

.button--light:hover {
  background: var(--paper);
  color: var(--deep-lab);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: "↗";
  transition: transform var(--motion-fast);
}

.text-link:hover::after {
  transform: translate(4px, -2px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(241, 239, 232, .96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color var(--motion-fast), background var(--motion-fast);
}

.site-header.is-scrolled {
  border-color: var(--rule);
}

.site-header__inner {
  width: min(100% - (2 * var(--gutter)), var(--content-wide));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.wordmark {
  width: max-content;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav > a,
.nav-dropdown > summary {
  border: 0;
  background: none;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 550;
  list-style: none;
  text-decoration: none;
  transition: color var(--motion-fast);
}

.main-nav > a:hover,
.nav-dropdown > summary:hover,
.main-nav > a[aria-current="page"] {
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "+";
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.nav-dropdown[open] > summary::after {
  content: "−";
}

.nav-dropdown__panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 22px);
  width: 320px;
  transform: translateX(-50%);
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 12px;
}

.nav-dropdown__panel a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.nav-dropdown__panel a:last-child {
  border-bottom: 0;
}

.nav-dropdown__panel a:hover {
  background: var(--surface);
}

.nav-dropdown__panel span:first-child {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
}

.site-header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  color: var(--soft-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-decoration: none;
}

.login-link {
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.header-cta {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 13px;
}

.mobile-menu-button,
.mobile-menu {
  display: none;
}

/* Hero */
.hero {
  min-height: clamp(760px, calc(100svh - var(--header-height)), 980px);
  display: flex;
  align-items: center;
  overflow: clip;
  border-bottom: 1px solid var(--rule);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(520px, 6fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
  padding-block: 72px 82px;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 8.4ch;
  margin-top: 23px;
  font-size: clamp(66px, 7.05vw, 118px);
  font-weight: 560;
  letter-spacing: -.075em;
  line-height: .9;
}

.hero h1 span {
  color: var(--signal);
}

.hero__lede {
  max-width: 570px;
  margin-top: 32px;
  color: var(--soft-ink);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__copy,
.evidence-specimen {
  animation: hero-enter var(--motion-medium) var(--ease-out) both;
}

.evidence-specimen {
  animation-delay: 160ms;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.evidence-specimen {
  width: min(100%, 690px);
  min-height: 606px;
  position: relative;
  justify-self: end;
  margin-right: min(-3vw, -24px);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-panel);
  background: var(--paper);
}

.evidence-specimen::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--signal);
  opacity: .48;
}

.specimen-top {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1.05fr 1fr .7fr .8fr;
  gap: 18px;
  align-items: center;
  padding: 22px 30px 20px 60px;
  border-bottom: 1px solid var(--rule);
}

.specimen-meta strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.35;
}

.specimen-meta .specimen-label {
  color: var(--faint-ink);
  font-size: 9px;
}

.specimen-passages {
  padding: 28px 34px 26px 60px;
}

.specimen-passage + .specimen-passage {
  margin-top: 27px;
  padding-top: 27px;
  border-top: 1px solid var(--rule);
}

.specimen-passage__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.specimen-passage__head .meta {
  color: var(--faint-ink);
}

.specimen-passage p {
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.55;
}

.specimen-passage--after p {
  color: var(--ink);
}

.delta-highlight {
  background: linear-gradient(to top, rgba(49, 86, 217, .14) 0 42%, transparent 42%);
  border-bottom: 1px solid var(--signal);
}

.delta-old {
  color: var(--faint-ink);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.specimen-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 30px 22px 60px;
  border-top: 1px solid var(--rule);
}

.status-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--soft-ink);
  letter-spacing: .04em;
}

.status-mark::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.status-mark--review {
  color: var(--review);
}

.status-mark--review::before {
  background: var(--review);
}

.status-mark--evaluated {
  color: var(--signal);
}

.status-mark--evaluated::before {
  background: var(--signal);
}

.status-mark--available {
  color: var(--biological);
}

.status-mark--available::before {
  background: var(--biological);
}

.status-mark--unvalidated {
  color: currentColor;
}

.citation-anchor {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 6px;
  color: var(--signal);
  letter-spacing: .03em;
  text-decoration: none;
}

.citation-anchor:hover {
  text-decoration: underline;
}

/* Proof ledger */
.proof-ledger {
  min-height: 94px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.proof-ledger__grid {
  min-height: 94px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-ledger__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 24px;
  border-left: 1px solid var(--rule);
}

.proof-ledger__item:last-child {
  border-right: 1px solid var(--rule);
}

.proof-ledger__value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.proof-ledger__label {
  max-width: 140px;
  color: var(--faint-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Shared section rhythm */
.section {
  padding-block: clamp(104px, 10vw, 168px);
}

.section--paper {
  background: var(--paper);
}

.section--surface {
  background: var(--surface);
}

.section-intro {
  display: grid;
  grid-template-columns: 3fr 7fr 2fr;
  gap: 24px;
  margin-bottom: clamp(72px, 8vw, 124px);
}

.section-intro h2 {
  grid-column: 2;
  max-width: 950px;
  font-size: clamp(52px, 6.1vw, 86px);
  font-weight: 520;
  letter-spacing: -.065em;
  line-height: .98;
}

.section-intro p {
  grid-column: 2;
  max-width: 630px;
  margin-top: 8px;
  color: var(--soft-ink);
  font-size: 19px;
}

.section-index {
  align-self: start;
  color: var(--signal);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--motion-medium) var(--ease-out), transform var(--motion-medium) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Evidence spine */
.spine-layout {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: clamp(38px, 7vw, 112px);
  align-items: start;
}

.spine-index {
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.spine-index__title {
  max-width: 240px;
  font-size: 28px;
  font-weight: 540;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.spine-nodes {
  position: relative;
  margin-top: 38px;
  list-style: none;
}

.spine-nodes::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--rule-strong);
}

.spine-nodes li {
  position: relative;
  padding: 0 0 20px 24px;
  color: var(--faint-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color var(--motion-fast);
}

.spine-nodes li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper);
}

.spine-nodes li.is-active {
  color: var(--signal);
}

.spine-nodes li.is-active::before {
  border-color: var(--signal);
  background: var(--signal);
}

.spine-story {
  border-top: 1px solid var(--rule-strong);
}

.spine-step {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.1fr 1.7fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  padding-block: 52px 76px;
  border-bottom: 1px solid var(--rule);
}

.spine-step__number {
  display: block;
  margin-bottom: 19px;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.spine-step h3 {
  max-width: 310px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 520;
  letter-spacing: -.055em;
  line-height: 1;
}

.spine-step__detail {
  padding-top: 34px;
}

.spine-step__detail > p {
  max-width: 590px;
  color: var(--soft-ink);
  font-size: 20px;
  line-height: 1.48;
}

.source-coordinate,
.version-coordinate,
.review-coordinate {
  margin-top: 44px;
  border-top: 1px solid var(--rule);
}

.coordinate-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}

.coordinate-row dt {
  color: var(--faint-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.coordinate-row dd {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Product chapters */
.chapters {
  border-top: 1px solid var(--ink);
}

.product-chapter {
  display: grid;
  grid-template-columns: 1.1fr 2.15fr 2.55fr;
  gap: clamp(32px, 5vw, 80px);
  min-height: 520px;
  padding-block: 64px 86px;
  border-bottom: 1px solid var(--rule-strong);
}

.chapter-number {
  color: var(--signal);
}

.product-chapter h3 {
  margin-top: 22px;
  font-size: clamp(54px, 5vw, 74px);
  font-weight: 520;
  letter-spacing: -.065em;
  line-height: .95;
}

.product-chapter__copy p {
  max-width: 440px;
  margin-top: 30px;
  color: var(--soft-ink);
  font-size: 19px;
}

.product-chapter__copy .text-link {
  margin-top: 34px;
}

.instrument-view {
  align-self: center;
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.instrument-view__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.instrument-view__body {
  min-height: 260px;
  padding-block: 25px;
}

.document-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.document-stack__item {
  min-height: 210px;
  background: var(--surface);
  padding: 20px;
}

.document-stack__item strong {
  display: block;
  margin: 14px 0 34px;
  font-size: 22px;
}

.document-stack__item code {
  color: var(--soft-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
}

.model-run {
  margin-top: 8px;
}

.run-row {
  display: grid;
  grid-template-columns: 115px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-block: 15px;
  border-bottom: 1px solid var(--rule);
}

.run-row__track {
  height: 5px;
  background: var(--rule);
}

.run-row__track span {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--signal);
}

.run-row code,
.run-row span {
  font-family: var(--font-mono);
  font-size: 10px;
}

.protocol-list {
  list-style: none;
}

.protocol-list li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-block: 17px;
  border-bottom: 1px solid var(--rule);
}

.protocol-list li > span:first-child {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Explorer immersion */
.explorer-immersion {
  position: relative;
  overflow: clip;
  background: var(--deep-lab);
  color: var(--paper);
  padding-block: clamp(112px, 11vw, 176px);
}

.explorer-immersion::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 84%, transparent);
}

.explorer-immersion .eyebrow,
.explorer-page .eyebrow {
  color: #8fa7ff;
}

.explorer-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7fr 4fr 1fr;
  gap: 28px;
  align-items: end;
}

.explorer-heading h2 {
  grid-column: 1;
  margin-top: 20px;
  max-width: 830px;
  font-size: clamp(58px, 7vw, 102px);
  font-weight: 510;
  letter-spacing: -.07em;
  line-height: .92;
}

.explorer-heading p {
  grid-column: 2;
  color: #b9c2bc;
  font-size: 19px;
}

.explorer-workspace {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  border-top: 1px solid #506058;
  border-bottom: 1px solid #506058;
}

.workspace-ledger {
  display: grid;
  grid-template-columns: 1.15fr 1.65fr 1fr 1fr;
  border-bottom: 1px solid #39453e;
}

.workspace-ledger__item {
  min-height: 78px;
  padding: 17px 18px;
  border-right: 1px solid #39453e;
}

.workspace-ledger__item:last-child {
  border-right: 0;
}

.workspace-ledger__item .ledger-key {
  color: #78877f;
  font-size: 9px;
}

.workspace-ledger__item strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.case-selector {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-bottom: 1px solid #39453e;
  scrollbar-width: thin;
}

.case-button {
  min-width: 245px;
  scroll-snap-align: start;
  display: grid;
  gap: 5px;
  border: 0;
  border-right: 1px solid #39453e;
  background: transparent;
  color: #aeb8b2;
  padding: 17px 18px 18px;
  text-align: left;
  transition: background var(--motion-fast), color var(--motion-fast);
}

.case-button:hover,
.case-button[aria-pressed="true"] {
  background: #1c261f;
  color: var(--paper);
}

.case-button[aria-pressed="true"] {
  box-shadow: inset 0 2px 0 var(--signal);
}

.case-button__id {
  color: #8fa7ff;
  font-size: 9px;
}

.case-button__name {
  font-size: 13px;
  font-weight: 600;
}

.delta-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.delta-panel {
  min-height: 390px;
  padding: 34px 38px 40px;
  border-right: 1px solid #39453e;
}

.delta-panel:last-child {
  border-right: 0;
}

.delta-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #39453e;
}

.delta-panel__head span:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.delta-panel__head .citation-anchor {
  color: #8fa7ff;
  font-size: 9px;
}

.delta-panel p {
  max-width: 650px;
  margin-top: 28px;
  color: #aeb8b2;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.62;
}

.delta-panel--after p {
  color: var(--paper);
}

.delta-panel .delta-highlight {
  background: rgba(80, 111, 231, .25);
  border-bottom-color: #8fa7ff;
}

.workspace-review {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  border-top: 1px solid #39453e;
}

.workspace-review__summary,
.workspace-review__status {
  padding: 26px 38px 30px;
}

.workspace-review__summary {
  border-right: 1px solid #39453e;
}

.workspace-review p {
  margin-top: 12px;
  color: #aeb8b2;
  font-size: 14px;
}

.workspace-review__status {
  display: grid;
  align-content: center;
  gap: 14px;
}

.explorer-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.explorer-actions .text-link {
  color: #a9b9ff;
}

/* Status ledger */
.truth-ledger {
  border-top: 1px solid var(--ink);
}

.truth-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 3.5fr 34px;
  gap: 24px;
  align-items: center;
  min-height: 112px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.truth-row:hover .truth-row__arrow {
  transform: translate(4px, -3px);
}

.truth-row__product {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
}

.truth-row h3 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -.025em;
}

.truth-row p {
  color: var(--soft-ink);
  font-size: 15px;
}

.truth-row__arrow {
  color: var(--signal);
  transition: transform var(--motion-fast);
}

/* Model evidence */
.model-evidence {
  display: grid;
  grid-template-columns: 4.2fr 5.8fr;
  gap: clamp(52px, 8vw, 130px);
  align-items: center;
}

.model-evidence h2 {
  margin-top: 20px;
  font-size: clamp(52px, 5.6vw, 80px);
  font-weight: 520;
  letter-spacing: -.065em;
  line-height: .98;
}

.model-evidence__copy > p {
  max-width: 590px;
  margin-top: 28px;
  color: var(--soft-ink);
  font-size: 19px;
}

.model-figure {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.model-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.metric-bars {
  padding-block: 26px 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: 160px 1fr 72px;
  gap: 18px;
  align-items: center;
  min-height: 64px;
}

.metric-row__label {
  font-size: 14px;
  font-weight: 600;
}

.metric-row__bar {
  height: 22px;
  background: var(--rule);
}

.metric-row__bar span {
  display: block;
  width: var(--metric-width);
  height: 100%;
  background: var(--ink);
}

.metric-row--medyx .metric-row__bar span {
  background: var(--signal);
}

.metric-row__value {
  font-family: var(--font-mono);
  font-size: 13px;
}

.limitation {
  margin-top: 24px;
  padding: 20px 0 0 22px;
  border-top: 1px solid var(--rule);
  border-left: 2px solid var(--review);
}

.limitation strong {
  display: block;
  color: var(--review);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.limitation p {
  margin-top: 8px;
  color: var(--soft-ink);
  font-size: 14px;
}

/* Research and Learn */
.research-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  border-top: 1px solid var(--ink);
}

.research-feature {
  padding-top: 42px;
}

.research-feature__citation {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: clamp(74px, 8vw, 120px);
  font-weight: 400;
  letter-spacing: -.08em;
  line-height: 1;
}

.research-feature h3 {
  max-width: 760px;
  margin-top: 48px;
  font-size: clamp(42px, 4.9vw, 70px);
  font-weight: 510;
  letter-spacing: -.06em;
  line-height: 1.02;
}

.research-feature .meta {
  display: block;
  margin-top: 28px;
  color: var(--faint-ink);
}

.research-list {
  border-left: 1px solid var(--rule);
}

.research-list__item {
  display: block;
  padding: 40px 0 42px 42px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.research-list__item:hover h3 {
  color: var(--signal);
}

.research-list__item h3 {
  margin-top: 32px;
  font-size: 30px;
  font-weight: 530;
  letter-spacing: -.04em;
  line-height: 1.1;
  transition: color var(--motion-fast);
}

.research-list__item .meta {
  display: block;
  margin-top: 20px;
  color: var(--faint-ink);
}

.learn-index {
  border-top: 1px solid var(--ink);
}

.learn-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 142px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.learn-row__number {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 12px;
}

.learn-row h3 {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 520;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.learn-row__meta {
  color: var(--faint-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* CTA and footer */
.closing-cta {
  padding-block: clamp(100px, 11vw, 176px);
  background: var(--signal-muted);
}

.closing-cta__grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 40px;
  align-items: end;
}

.closing-cta h2 {
  max-width: 980px;
  font-size: clamp(58px, 7.2vw, 108px);
  font-weight: 510;
  letter-spacing: -.075em;
  line-height: .92;
}

.closing-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 8px;
}

.site-footer {
  background: var(--deep-lab);
  color: var(--paper);
  padding: 78px 0 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: 3fr repeat(4, 1fr);
  gap: clamp(30px, 5vw, 76px);
}

.footer-brand p {
  max-width: 310px;
  margin-top: 24px;
  color: #9da8a1;
  font-size: 14px;
}

.footer-group h3 {
  color: #78877f;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-group a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  color: #cbd1cd;
  font-size: 13px;
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 74px;
  padding-top: 24px;
  border-top: 1px solid #39453e;
  color: #78877f;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Explorer page */
.explorer-page-hero {
  padding-block: clamp(76px, 9vw, 136px) 86px;
  border-bottom: 1px solid var(--rule);
}

.explorer-page-hero__grid {
  display: grid;
  grid-template-columns: 7fr 4fr 1fr;
  gap: 30px;
  align-items: end;
}

.explorer-page-hero h1 {
  margin-top: 20px;
  max-width: 820px;
  font-size: clamp(70px, 7.2vw, 110px);
  font-weight: 520;
  letter-spacing: -.075em;
  line-height: .9;
}

.explorer-page-hero__copy {
  grid-column: 2;
  padding-bottom: 4px;
}

.explorer-page-hero__copy p {
  color: var(--soft-ink);
  font-size: 20px;
  line-height: 1.48;
}

.explorer-page-hero__copy .status-mark {
  margin-top: 28px;
}

.explorer-page-workspace {
  background: var(--deep-lab);
  color: var(--paper);
  padding-block: 48px 96px;
}

.explorer-page-workspace .explorer-workspace {
  margin-top: 0;
}

.explorer-page-workspace .delta-panel {
  min-height: 470px;
}

.workspace-section-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding-block: 26px;
  border-bottom: 1px solid #39453e;
}

.workspace-section-title h2 {
  font-size: clamp(31px, 3.4vw, 48px);
  font-weight: 520;
  letter-spacing: -.05em;
}

.case-score {
  text-align: right;
}

.case-score strong {
  display: block;
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -.04em;
}

.case-score span {
  color: #8b9891;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.method-limits {
  display: grid;
  grid-template-columns: 4fr 7fr 1fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}

.method-limits h2 {
  grid-column: 1;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 520;
  letter-spacing: -.06em;
  line-height: 1;
}

.method-limits__body {
  grid-column: 2;
}

.method-limits__body > p {
  max-width: 670px;
  color: var(--soft-ink);
  font-size: 20px;
}

.limits-list {
  margin-top: 42px;
  border-top: 1px solid var(--ink);
}

.limits-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 20px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
  list-style: none;
}

.limits-list li span {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
}

.access-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.access-mode {
  min-height: 320px;
  padding: 32px 34px 42px 0;
  border-right: 1px solid var(--rule);
}

.access-mode + .access-mode {
  padding-left: 34px;
}

.access-mode:last-child {
  border-right: 0;
}

.access-mode__number {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
}

.access-mode h3 {
  margin-top: 56px;
  font-size: 40px;
  font-weight: 520;
  letter-spacing: -.05em;
}

.access-mode p {
  margin-top: 20px;
  color: var(--soft-ink);
}

/* Cookie and guide */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 300;
  width: min(calc(100% - 40px), 1080px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--rule-strong);
  background: rgba(248, 247, 243, .98);
  padding: 17px 18px 17px 22px;
  box-shadow: 0 12px 40px rgba(21, 23, 21, .08);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2,
.cookie-banner .cookie-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.cookie-banner p {
  margin-top: 3px;
  color: var(--soft-ink);
  font-size: 12px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-actions button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
}

.cookie-actions button:hover {
  border-color: var(--ink);
}

.cookie-actions .accept-cookies {
  background: var(--ink);
  color: var(--paper);
}

.cookie-preferences {
  grid-column: 1 / -1;
  display: none;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}

.cookie-banner.is-customizing .cookie-preferences {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.guide-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
}

.cookie-banner:not([hidden]) ~ .guide-button {
  bottom: 118px;
}

.guide-dialog {
  width: min(calc(100% - 40px), 470px);
  max-height: min(700px, calc(100svh - 40px));
  margin: auto;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-panel);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
}

.guide-dialog::backdrop {
  background: rgba(17, 23, 19, .55);
}

.guide-dialog__head,
.guide-dialog__body,
.guide-dialog__foot {
  padding: 22px 24px;
}

.guide-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.guide-dialog__head h2,
.guide-dialog__title {
  font-size: 22px;
  font-weight: 560;
  margin: 0;
}

.guide-dialog__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  background: transparent;
}

.guide-dialog__body p {
  color: var(--soft-ink);
}

.guide-dialog__body ol {
  margin: 24px 0 0 20px;
}

.guide-dialog__body li + li {
  margin-top: 12px;
}

.guide-dialog__foot {
  border-top: 1px solid var(--rule);
}

/* Responsive */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(64px, 7vw, 84px);
  }

  .evidence-specimen {
    margin-right: 0;
  }

  .product-chapter {
    grid-template-columns: .6fr 1.5fr 2fr;
  }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .login-link,
  .site-header__actions .lang-switch,
  .header-cta {
    display: none;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-control);
    background: transparent;
  }

  .mobile-menu-button span,
  .mobile-menu-button::before,
  .mobile-menu-button::after {
    content: "";
    width: 17px;
    height: 1px;
    display: block;
    background: var(--ink);
    transition: transform var(--motion-fast), opacity var(--motion-fast);
  }

  .mobile-menu-button[aria-expanded="true"] span {
    opacity: 0;
  }

  .mobile-menu-button[aria-expanded="true"]::before {
    transform: translateY(5px) rotate(45deg);
  }

  .mobile-menu-button[aria-expanded="true"]::after {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 90;
    display: none;
    overflow-y: auto;
    background: var(--bone);
    padding: 34px var(--gutter) 52px;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu a {
    display: flex;
    justify-content: space-between;
    padding-block: 18px;
    border-bottom: 1px solid var(--rule);
    font-size: 28px;
    font-weight: 520;
    letter-spacing: -.04em;
    text-decoration: none;
  }

  .mobile-menu__actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    padding-block: 66px 92px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(62px, 10.5vw, 84px);
  }

  .evidence-specimen {
    width: 100%;
    max-width: 720px;
    justify-self: start;
  }

  .proof-ledger__grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-ledger__item:nth-child(3),
  .proof-ledger__item:nth-child(4) {
    border-top: 1px solid var(--rule);
  }

  .section-intro {
    grid-template-columns: 1fr;
  }

  .section-intro h2,
  .section-intro p {
    grid-column: 1;
  }

  .spine-layout {
    grid-template-columns: 1fr;
  }

  .spine-index {
    position: static;
  }

  .spine-nodes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .spine-nodes::before {
    display: none;
  }

  .spine-nodes li {
    padding: 0 0 10px;
    border-bottom: 1px solid var(--rule);
  }

  .spine-nodes li::before {
    display: none;
  }

  .product-chapter {
    grid-template-columns: 90px 1fr;
  }

  .product-chapter__visual {
    grid-column: 2;
  }

  .explorer-heading {
    grid-template-columns: 1fr;
  }

  .explorer-heading h2,
  .explorer-heading p {
    grid-column: 1;
  }

  .truth-row {
    grid-template-columns: 1fr 1.3fr 2fr 24px;
  }

  .model-evidence,
  .research-grid,
  .closing-cta__grid,
  .explorer-page-hero__grid,
  .method-limits {
    grid-template-columns: 1fr;
  }

  .explorer-page-hero__copy,
  .method-limits h2,
  .method-limits__body {
    grid-column: 1;
  }

  .research-list {
    border-left: 0;
  }

  .research-list__item {
    padding-left: 0;
  }

  .footer-top {
    grid-template-columns: 2fr repeat(2, 1fr);
  }

  .footer-brand {
    grid-row: span 2;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 60px;
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  .wordmark {
    font-size: 24px;
  }

  .hero__grid {
    gap: 46px;
    padding-block: 47px 80px;
  }

  .hero h1 {
    margin-top: 16px;
    font-size: clamp(49px, 14vw, 58px);
    letter-spacing: -.068em;
    line-height: .92;
  }

  .hero__lede {
    margin-top: 23px;
    font-size: 17px;
  }

  .hero__actions {
    margin-top: 28px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__actions .button:not(.button--primary) {
    display: none;
  }

  .evidence-specimen {
    min-height: auto;
  }

  .evidence-specimen::before {
    left: 20px;
  }

  .specimen-top {
    min-height: 76px;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 16px 16px 15px 35px;
  }

  .specimen-top .specimen-meta:nth-child(3),
  .specimen-top .specimen-meta:nth-child(4) {
    display: none;
  }

  .specimen-passages {
    padding: 21px 18px 20px 35px;
  }

  .specimen-passage p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .specimen-passage + .specimen-passage {
    margin-top: 20px;
    padding-top: 20px;
  }

  .specimen-footer {
    grid-template-columns: 1fr;
    padding: 17px 16px 19px 35px;
  }

  .proof-ledger__item {
    min-height: 86px;
    gap: 10px;
    padding: 15px 12px;
  }

  .proof-ledger__value {
    font-size: 20px;
  }

  .proof-ledger__label {
    font-size: 8px;
  }

  .section {
    padding-block: 88px;
  }

  .section-intro {
    gap: 18px;
    margin-bottom: 58px;
  }

  .section-intro h2 {
    font-size: clamp(39px, 11vw, 48px);
  }

  .section-intro p {
    font-size: 17px;
  }

  .spine-index__title {
    font-size: 24px;
  }

  .spine-nodes {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 28px;
  }

  .spine-step {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 38px 52px;
  }

  .spine-step h3 {
    font-size: 39px;
  }

  .spine-step__detail {
    padding-top: 20px;
  }

  .spine-step__detail > p {
    font-size: 17px;
  }

  .coordinate-row {
    grid-template-columns: 96px 1fr;
  }

  .product-chapter {
    grid-template-columns: 42px 1fr;
    gap: 17px;
    min-height: auto;
    padding-block: 42px 58px;
  }

  .product-chapter h3 {
    font-size: 44px;
  }

  .product-chapter__copy p {
    margin-top: 20px;
    font-size: 17px;
  }

  .instrument-view__body {
    min-height: 220px;
  }

  .document-stack {
    grid-template-columns: 1fr;
  }

  .document-stack__item {
    min-height: 150px;
  }

  .workspace-ledger {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-ledger__item:nth-child(2),
  .workspace-ledger__item:nth-child(4) {
    border-right: 0;
  }

  .workspace-ledger__item:nth-child(3),
  .workspace-ledger__item:nth-child(4) {
    border-top: 1px solid #39453e;
  }

  .case-selector::after {
    content: "";
    flex: 0 0 calc(100% - 245px);
  }

  .delta-view,
  .workspace-review {
    grid-template-columns: 1fr;
  }

  .delta-panel {
    min-height: auto;
    padding: 26px 22px 33px;
    border-right: 0;
    border-bottom: 1px solid #39453e;
  }

  .delta-panel p {
    font-size: 15px;
  }

  .workspace-review__summary,
  .workspace-review__status {
    padding: 24px 22px;
  }

  .workspace-review__summary {
    border-right: 0;
    border-bottom: 1px solid #39453e;
  }

  .explorer-heading h2 {
    font-size: 48px;
  }

  .explorer-heading p {
    font-size: 17px;
  }

  .explorer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .truth-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-block: 26px;
  }

  .truth-row h3,
  .truth-row p {
    grid-column: 1;
  }

  .truth-row .status-mark,
  .truth-row__arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .model-evidence h2 {
    font-size: 46px;
  }

  .metric-row {
    grid-template-columns: 105px 1fr 52px;
    gap: 10px;
  }

  .research-feature__citation {
    font-size: 78px;
  }

  .research-feature h3 {
    margin-top: 34px;
    font-size: 39px;
  }

  .research-list__item h3 {
    font-size: 27px;
  }

  .learn-row {
    grid-template-columns: 45px 1fr;
    gap: 12px;
    min-height: 126px;
    padding-block: 22px;
  }

  .learn-row__meta {
    grid-column: 2;
  }

  .learn-row h3 {
    font-size: 29px;
  }

  .closing-cta h2 {
    font-size: 50px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-bottom: 18px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .explorer-page-hero {
    padding-block: 54px 64px;
  }

  .explorer-page-hero h1 {
    font-size: 52px;
  }

  .explorer-page-hero__copy p {
    font-size: 17px;
  }

  .workspace-section-title {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .case-score {
    text-align: left;
  }

  .access-modes {
    grid-template-columns: 1fr;
  }

  .access-mode,
  .access-mode + .access-mode {
    min-height: auto;
    padding: 28px 0 42px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .access-mode h3 {
    margin-top: 35px;
  }

  .cookie-banner {
    width: calc(100% - 24px);
    bottom: 12px;
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .cookie-actions button {
    padding-inline: 8px;
  }

  .cookie-banner.is-customizing .cookie-preferences {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-button {
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner:not([hidden]) ~ .guide-button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
