:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #66727f;
  --paper: #f4f2ed;
  --surface: #fffefa;
  --surface-strong: #ffffff;
  --line: #dcd9d1;
  --blue: #265d96;
  --blue-soft: #dbeafa;
  --teal: #16776b;
  --teal-soft: #d9efe9;
  --orange: #d66b2c;
  --orange-soft: #fae4d6;
  --red: #ad3c38;
  --red-soft: #f6ddda;
  --gold: #9a7015;
  --gold-soft: #f4e8c4;
  --navy: #14273b;
  --radius: 20px;
  --shadow: 0 22px 65px rgba(30, 38, 45, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
code { font: .86em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.skip-link { position: fixed; z-index: 50; top: 8px; left: 8px; transform: translateY(-160%); border-radius: 8px; background: white; padding: 8px 12px; }
.skip-link:focus { transform: none; }
.ambient { position: absolute; z-index: -1; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.ambient-one { width: 760px; height: 760px; top: -480px; right: -210px; background: radial-gradient(circle, rgba(38,93,150,.27), transparent 68%); }
.ambient-two { width: 560px; height: 560px; top: 560px; left: -410px; background: radial-gradient(circle, rgba(214,107,44,.18), transparent 70%); }

.hero, main, footer { width: min(1240px, calc(100% - 44px)); margin-inline: auto; }
.hero { padding: 28px 0 76px; }
nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; background: var(--navy); color: white; font: 800 12px/1 ui-monospace, monospace; }
.brand-mark.small { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
.release-chip, .chip-row span { border: 1px solid rgba(23,33,43,.13); border-radius: 999px; background: rgba(255,255,255,.55); padding: 7px 11px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .68fr); gap: 72px; align-items: end; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1 { max-width: 920px; margin: 14px 0 25px; font-size: clamp(56px, 7.7vw, 108px); font-weight: 830; letter-spacing: -.075em; line-height: .88; }
h1 em { color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.055em; }
.lede { max-width: 760px; margin-bottom: 25px; color: #52606d; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.48; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.headline-card { position: relative; overflow: hidden; border-radius: 25px; background: var(--navy); padding: 25px; color: white; box-shadow: 0 30px 85px rgba(20,39,59,.22); }
.headline-card::after { content: ""; position: absolute; width: 250px; height: 250px; right: -145px; bottom: -135px; border: 45px solid rgba(255,255,255,.045); border-radius: 50%; }
.headline-top { display: flex; justify-content: space-between; gap: 16px; color: #a9bed1; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.headline-top code { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 3px 8px; color: #e6eef6; }
.headline-result { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; margin: 31px 0; }
.headline-result strong { color: #ffb27c; font-size: 42px; letter-spacing: -.06em; line-height: 1; }
.headline-result span { color: #d4e0ea; font-size: 12px; line-height: 1.4; }
.headline-result.compact { margin: 22px 0; }
.headline-result.compact strong { color: #81d2c6; }
.headline-rule { height: 1px; background: rgba(255,255,255,.13); }
.headline-card p { position: relative; z-index: 1; margin: 0; color: #a9bed1; font-size: 11px; }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.summary-strip article { min-height: 150px; border-right: 1px solid var(--line); padding: 27px 22px; }
.summary-strip article:last-child { border-right: 0; }
.summary-strip span, .audit-grid span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.summary-strip strong { display: block; margin: 21px 0 5px; font-size: 29px; letter-spacing: -.045em; }
.summary-strip small, .audit-grid small { color: var(--muted); font-size: 10px; }

section { padding: 78px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .55fr); align-items: end; gap: 56px; margin-bottom: 35px; }
.section-heading.compact { grid-template-columns: 1fr; }
.section-heading h2 { max-width: 850px; margin: 8px 0 0; font-size: clamp(34px, 4.6vw, 59px); line-height: 1.02; letter-spacing: -.05em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 12px; }
.legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 18px; margin-bottom: 14px; color: var(--muted); font-size: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; background: var(--blue); }
.legend .legend-s2 { background: var(--teal); }
.legend .legend-ci { height: 1px; background: var(--ink); }
.legend .legend-threshold { width: 1px; height: 13px; border-left: 1px dashed var(--orange); background: none; }

.family-chart { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.family-axis { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--line); padding: 12px 22px; }
.family-axis > div { position: relative; height: 19px; margin: 0 44px 0 30px; }
.family-axis span { position: absolute; color: var(--muted); font-size: 9px; transform: translateX(-50%); }
.family-row { display: grid; grid-template-columns: 190px 1fr; min-height: 118px; border-bottom: 1px solid var(--line); padding: 15px 22px; }
.family-row:last-child { border-bottom: 0; }
.family-name { display: flex; grid-column: 1; grid-row: 1 / span 2; align-items: flex-start; flex-direction: column; justify-content: center; }
.family-name strong { font-size: 15px; }
.family-name > span { color: var(--muted); font-size: 10px; }
.status { display: inline-flex; width: max-content; border-radius: 999px; background: #e9eaeb; padding: 3px 7px; color: #59616a; font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.family-name .status { margin-top: 8px; }
.status-diffusion-like, .status-positive-control { background: var(--teal-soft); color: #0d665b; }
.status-unresolved { background: var(--gold-soft); color: #72510e; }
.status-negative-control { background: #e7e8eb; color: #5b6269; }
.session-row { display: grid; grid-column: 2; grid-template-columns: 25px 1fr 34px; align-items: center; gap: 7px; min-width: 0; }
.session-row > span, .session-row > small { color: var(--muted); font-size: 9px; font-weight: 750; }
.session-row > small { text-align: right; }
.interval-cell { position: relative; height: 38px; margin: 0 8px; }
.interval, .zero-line, .threshold-line, .point, .point-label { position: absolute; }
.zero-line { top: 4px; bottom: 4px; width: 1px; background: #aeb2b6; }
.threshold-line { top: 4px; bottom: 4px; width: 1px; border-left: 1px dashed var(--orange); }
.interval { top: 18px; height: 2px; background: #737b83; }
.interval::before, .interval::after { content: ""; position: absolute; top: -4px; width: 1px; height: 10px; background: inherit; }
.interval::before { left: 0; }
.interval::after { right: 0; }
.point { top: 13px; width: 12px; height: 12px; transform: translateX(-6px); border: 2px solid var(--surface); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.point.s2 { background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.point-label { top: -2px; transform: translateX(-50%); color: var(--ink); font-size: 9px; font-weight: 850; }

.table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; min-width: 840px; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.table-wrap table { min-width: 1080px; }
.table-wrap caption { border-bottom: 1px solid var(--line); background: #f5f3ee; padding: 10px 15px; color: var(--muted); font-size: 9px; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 15px; text-align: left; }
thead th { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th code { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }

.depth-grid { display: grid; gap: 18px; }
.study-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 24px; box-shadow: var(--shadow); }
.study-original { border-top: 5px solid var(--red); }
.study-rerun { border-top: 5px solid var(--teal); }
.study-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.study-sequence { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.study-head h3 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.035em; }
.verdict { border-radius: 999px; padding: 7px 11px; font-size: 9px; letter-spacing: .1em; }
.verdict-void { background: var(--red-soft); color: var(--red); }
.verdict-persists { background: var(--teal-soft); color: var(--teal); }
.verdict-detail { max-width: 820px; margin: 10px 0 24px; color: var(--muted); font-size: 12px; }
.session-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.session-tabs > div { border: 1px solid var(--line); border-radius: 15px; background: #faf9f5; padding: 13px; }
.session-tabs > div > span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.session-tabs svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.svg-grid { stroke: #dfddd6; stroke-width: 1; }
.svg-axis, .svg-caption, .depth-label { fill: var(--muted); font-size: 9px; }
.svg-caption { font-weight: 750; }
.depth-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.depth-line.s2 { stroke: var(--teal); }
.depth-point { fill: var(--blue); stroke: white; stroke-width: 2; }
.session-tabs > div:nth-child(2) .depth-point { fill: var(--teal); }
.depth-point.dp4 { stroke: var(--orange); stroke-width: 3; }
.depth-value { fill: var(--ink); font-size: 10px; font-weight: 850; }
.depth-label { font-weight: 700; }
.depth-table-shell { margin-top: 13px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.depth-table { min-width: 760px; margin: 0; border: 0; border-collapse: collapse; background: transparent; font-size: 10px; font-variant-numeric: tabular-nums; }
.depth-table caption { border-bottom: 1px solid var(--line); background: #f5f3ee; padding: 10px 12px; color: var(--muted); font-size: 8px; text-align: left; }
.depth-table th, .depth-table td { padding: 9px 12px; }
.depth-table thead th { background: #f5f3ee; }
.study-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: var(--muted); font-size: 9px; }
.interpretation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.boundary-card { display: grid; grid-template-columns: 38px 1fr; gap: 14px; border: 1px solid #c8e3dc; border-radius: 15px; background: #f2faf7; padding: 18px; }
.boundary-card.caution { border-color: #edd0c7; background: #fff6f1; }
.card-index { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font: 850 11px/1 ui-monospace, monospace; }
.caution .card-index { background: var(--orange-soft); color: var(--orange); }
.boundary-card h3 { margin: 1px 0 5px; font-size: 12px; }
.boundary-card p { margin: 0; color: var(--muted); font-size: 10px; }

.audit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.audit-grid article { display: flex; min-height: 180px; flex-direction: column; justify-content: space-between; border-top: 2px solid var(--ink); padding: 15px 3px 0; }
.audit-grid strong { margin: 22px 0; font-size: 17px; line-height: 1.25; letter-spacing: -.025em; }
details { margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 17px 0; font-size: 11px; font-weight: 800; }
.sources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 0 20px; }
.sources-grid > div { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 15px; }
.sources-grid h3 { margin-bottom: 8px; font-size: 12px; }
.sources-grid p, .sources-grid code, .sources-grid a { display: block; margin: 4px 0; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.sources-grid a { margin-top: 13px; color: var(--blue); font-weight: 750; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 31px 0 48px; color: var(--muted); font-size: 9px; }
footer p { margin: 0; text-align: center; }
.footer-links { display: flex; gap: 15px; }
.footer-links a { color: var(--blue); font-weight: 750; }
.noscript, .load-error { border-radius: 10px; background: var(--red-soft); padding: 12px; color: #742d29; font-size: 11px; }
.noscript { position: fixed; z-index: 40; right: 10px; bottom: 10px; left: 10px; text-align: center; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .headline-card { max-width: 520px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-strip article:nth-child(2) { border-right: 0; }
  .summary-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 13px; }
  .session-tabs { grid-template-columns: 1fr; }
  .interpretation-grid, .sources-grid { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; gap: 12px; }
  footer p { text-align: left; }
}

@media (max-width: 650px) {
  .hero, main, footer { width: min(100% - 24px, 1240px); }
  .hero { padding-bottom: 50px; }
  nav { align-items: start; padding-bottom: 48px; }
  .release-chip { display: none; }
  h1 { font-size: clamp(45px, 14.2vw, 62px); }
  .lede { font-size: 16px; }
  .chip-row { align-items: start; flex-direction: column; }
  section { padding: 55px 0; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip article { min-height: 125px; border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-strip article:last-child { border-bottom: 0; }
  .legend { justify-content: start; }
  .family-axis { grid-template-columns: 112px 1fr; padding-inline: 10px; }
  .family-axis > div { margin: 0 33px 0 20px; }
  .family-row { grid-template-columns: 112px 1fr; min-height: 130px; padding-inline: 10px; }
  .family-name strong { font-size: 12px; }
  .family-name .status { max-width: 100px; }
  .session-row { grid-template-columns: 20px 1fr 25px; gap: 2px; }
  .study-card { padding: 16px; }
  .study-head h3 { font-size: 20px; }
  .study-foot { align-items: start; flex-direction: column; gap: 4px; }
  .interpretation-grid, .audit-grid { grid-template-columns: 1fr; }
  .audit-grid article { min-height: 135px; }
  .depth-table-row { grid-template-columns: .8fr 1.1fr 1.1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
