:root {
  --paper: #f5f1e8;
  --paper-deep: #ebe3d3;
  --ink: #14221d;
  --ink-soft: #52615a;
  --green: #0d6a59;
  --green-dark: #084a40;
  --mint: #a8ddca;
  --orange: #ef6b3b;
  --gold: #d39b2d;
  --blue: #2979b8;
  --line: rgba(20, 34, 29, 0.16);
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(18, 35, 29, 0.14);
  --shell: min(1240px, calc(100vw - 48px));
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#adopd, #doccount { scroll-margin-top: 96px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

::selection { color: var(--white); background: var(--green); }

a { color: inherit; }

img { display: block; max-width: 100%; }

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

button { font: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 20px;
  top: 18px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }

.section { padding: 132px 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 241, 232, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--shell);
  height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 27px;
  height: 27px;
  display: inline-block;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
}

.brand-mark span { position: absolute; display: block; border-radius: 1px; }
.brand-mark span:nth-child(1) { width: 6px; height: 6px; left: 4px; top: 4px; background: var(--orange); }
.brand-mark span:nth-child(2) { width: 9px; height: 6px; right: 3px; top: 9px; border: 1.5px solid var(--green); }
.brand-mark span:nth-child(3) { width: 7px; height: 7px; left: 7px; bottom: 3px; background: var(--gold); border-radius: 50%; }

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a {
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav > a:not(.nav-paper):hover { color: var(--green); }

.nav-paper {
  padding: 11px 15px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
}

.nav-paper span { margin-left: 6px; }

.nav-toggle { display: none; }

.hero {
  min-height: 100vh;
  padding: 142px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 25%, rgba(168, 221, 202, 0.42), transparent 30%),
    linear-gradient(rgba(20, 34, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 34, 29, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 52px 52px, 52px 52px, auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  gap: 82px;
  align-items: center;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 26px;
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span:not(:last-child)::after { content: "·"; position: relative; left: 10px; color: var(--gold); }

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(74px, 7.4vw, 118px);
  font-weight: 500;
  line-height: 0.83;
  letter-spacing: -0.065em;
}

.hero h1 em { position: relative; color: var(--green); font-weight: 500; }
.hero h1 em::after { content: ""; position: absolute; left: 2%; right: -3%; bottom: 3px; height: 9px; background: var(--orange); border-radius: 50%; transform: rotate(-1.7deg); z-index: -1; opacity: 0.88; }

.hero-deck { margin: 26px 0 18px; font-size: clamp(19px, 2vw, 27px); font-weight: 720; letter-spacing: -0.025em; }

.hero-summary { max-width: 660px; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.68; }
.hero-summary em { color: var(--ink); font-family: var(--serif); font-size: 1.1em; }

.hero-actions { display: flex; flex-wrap: nowrap; gap: 8px; margin: 32px 0; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease;
}

.hero-actions .button { gap: 8px; padding: 12px; font-size: 12px; white-space: nowrap; }

.button:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(20, 34, 29, 0.12); }
.button-primary { color: var(--white); background: var(--ink); }
.button-secondary { background: var(--white); }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }

.visual-orbit { position: absolute; border: 1px solid rgba(13, 106, 89, 0.22); border-radius: 50%; }
.visual-orbit-one { width: 570px; height: 440px; }
.visual-orbit-two { width: 670px; height: 270px; transform: rotate(24deg); }

.hero-window-stack { position: relative; z-index: 2; width: min(112%, 720px); height: 500px; }
.hero-window-frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 360ms ease, box-shadow 360ms ease;
}
.window-chrome { height: 29px; padding: 0 10px; display: flex; align-items: center; background: #ecece8; border-bottom: 1px solid rgba(20, 34, 29, 0.24); }
.window-controls { display: flex; gap: 6px; }
.window-controls i { width: 9px; height: 9px; display: block; border: 1px solid rgba(20, 34, 29, 0.18); border-radius: 50%; }
.window-controls i:nth-child(1) { background: #ef6a5b; }
.window-controls i:nth-child(2) { background: #f2bd4b; }
.window-controls i:nth-child(3) { background: #61c454; }

.hero-sample-window img { width: 100%; height: calc(100% - 29px); object-fit: cover; }
.hero-window-back-one { z-index: 1; left: 0; top: 38px; width: 360px; height: 245px; transform: rotate(-7deg); }
.hero-window-back-two { z-index: 2; right: 0; top: 22px; width: 350px; height: 225px; transform: rotate(8deg); }
.hero-window-back-three { z-index: 3; right: 18px; bottom: 28px; width: 390px; height: 205px; transform: rotate(-4deg); }
.hero-paper-figure { left: 50%; top: 50%; z-index: 5; width: min(88%, 610px); transform: translate(-50%, -50%) rotate(1.2deg); }
.hero-window-stack:hover .hero-window-back-one { transform: translate(-8px, -5px) rotate(-9deg); }
.hero-window-stack:hover .hero-window-back-two { transform: translate(8px, -5px) rotate(10deg); }
.hero-window-stack:hover .hero-window-back-three { transform: translate(5px, 7px) rotate(-5.5deg); }
.hero-window-stack:hover .hero-paper-figure { box-shadow: 0 30px 85px rgba(18, 35, 29, 0.2); transform: translate(-50%, -52%) rotate(0.5deg); }

[data-hero-variant="desk"] .visual-orbit { border-style: dashed; opacity: 0.72; }
[data-hero-variant="desk"] .hero-window-stack::before,
[data-hero-variant="desk"] .hero-window-stack::after { content: ""; position: absolute; z-index: 0; width: 280px; border-top: 1px dashed rgba(82, 97, 90, 0.48); transform-origin: left center; pointer-events: none; }
[data-hero-variant="desk"] .hero-window-stack::before { left: 86px; top: 112px; transform: rotate(20deg); }
[data-hero-variant="desk"] .hero-window-stack::after { right: 18px; bottom: 126px; transform: rotate(-16deg); }
[data-hero-variant="desk"] .hero-document-sheet { height: auto; padding: 8px; overflow: visible; background: var(--white); border-color: rgba(20, 34, 29, 0.52); border-radius: 2px; box-shadow: 0 17px 38px rgba(18, 35, 29, 0.17); }
[data-hero-variant="desk"] .hero-document-sheet img { width: 100%; height: auto; display: block; object-fit: contain; }
[data-hero-variant="desk"] .hero-document-sheet::after { content: none; position: absolute; z-index: 3; width: 27px; height: 27px; }
[data-hero-variant="desk"] .sheet-fold-right-top::after { content: ""; right: -1px; top: -1px; background: linear-gradient(225deg, var(--paper-deep) 49%, rgba(20, 34, 29, 0.26) 50%, var(--white) 53%); box-shadow: -4px 4px 8px rgba(20, 34, 29, 0.08); }
[data-hero-variant="desk"] .sheet-fold-right-bottom::after { content: ""; right: -1px; bottom: -1px; background: linear-gradient(315deg, var(--paper-deep) 49%, rgba(20, 34, 29, 0.26) 50%, var(--white) 53%); box-shadow: -4px -4px 8px rgba(20, 34, 29, 0.08); }
[data-hero-variant="desk"] .sheet-fold-left-bottom::after { content: ""; left: -1px; bottom: -1px; background: linear-gradient(45deg, var(--paper-deep) 49%, rgba(20, 34, 29, 0.26) 50%, var(--white) 53%); box-shadow: 4px -4px 8px rgba(20, 34, 29, 0.08); }
[data-hero-variant="desk"] .hero-paper-figure .hero-image-pair { margin: 0; }
[data-hero-variant="desk"] .hero-paper-figure .hero-image-pair img { height: auto; aspect-ratio: auto; }
[data-hero-variant="desk"] .hero-window-back-one { z-index: 1; left: -18px; top: 72px; width: 310px; height: auto; transform: rotate(-8deg); }
[data-hero-variant="desk"] .hero-window-back-two { z-index: 2; right: -12px; top: 28px; width: 300px; height: auto; transform: rotate(6deg); }
[data-hero-variant="desk"] .hero-window-back-three { z-index: 3; left: 64px; right: auto; bottom: 58px; width: 340px; height: auto; transform: rotate(2.5deg); }
[data-hero-variant="desk"] .hero-window-back-four { z-index: 2; right: -4px; bottom: 70px; width: 270px; transform: rotate(-5deg); }
[data-hero-variant="desk"] .hero-window-back-five { z-index: 4; left: 205px; top: 4px; width: 250px; transform: rotate(2deg); }
[data-hero-variant="desk"] .hero-window-back-six { z-index: 3; right: 132px; bottom: 2px; width: 245px; transform: rotate(7deg); }
[data-hero-variant="desk"] .hero-paper-figure { left: 54%; top: 49%; z-index: 7; width: min(80%, 560px); transform: translate(-50%, -50%) rotate(0.4deg); }
[data-hero-variant="desk"] .hero-window-stack:hover .hero-window-back-one { transform: translate(-14px, -8px) rotate(-10deg); }
[data-hero-variant="desk"] .hero-window-stack:hover .hero-window-back-two { transform: translate(14px, -9px) rotate(8deg); }
[data-hero-variant="desk"] .hero-window-stack:hover .hero-window-back-three { transform: translate(-9px, 14px) rotate(4deg); }
[data-hero-variant="desk"] .hero-window-stack:hover .hero-window-back-four { transform: translate(13px, 12px) rotate(-7deg); }
[data-hero-variant="desk"] .hero-window-stack:hover .hero-window-back-five { transform: translate(0, -14px) rotate(3.5deg); }
[data-hero-variant="desk"] .hero-window-stack:hover .hero-window-back-six { transform: translate(12px, 14px) rotate(9deg); }
[data-hero-variant="desk"] .hero-window-stack:hover .hero-paper-figure { transform: translate(-49.5%, -52.5%) rotate(-0.3deg); }

.hero-image-pair { position: relative; margin: 9px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.hero-image-pair::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; z-index: 1; border-left: 2px dashed #9aa19d; transform: translateX(-1px); pointer-events: none; }
.hero-image-pair img { width: 100%; aspect-ratio: 1.145; object-fit: contain; background: #fff; }

.hero-stat-bands { margin-top: 62px; padding-bottom: 34px; display: grid; gap: 14px; }
.stat-band { display: grid; grid-template-columns: 158px minmax(0, 1fr); }
.stat-band-title {
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-right: 0;
  font-weight: 500;
}
.stat-band-title span { color: var(--mint); font-family: var(--mono); font-size: 10.8px; font-weight: 760; letter-spacing: 0.09em; text-transform: uppercase; }
.stat-band-title strong { margin-top: 3px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.stat-band-doccount .stat-band-title { background: var(--green); }
.stat-band-doccount .stat-band-title span { color: var(--white); }
.stat-band-doccount .stat-band-title strong { font-size: 30px; }
.stat-grid { display: grid; gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.stat-grid-five { grid-template-columns: repeat(5, 1fr); }
.stat-grid-three { grid-template-columns: repeat(3, 1fr); }
.stat-grid > div { min-width: 0; min-height: 104px; padding: 21px 22px; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.stat-grid strong { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -0.04em; }
.stat-grid span { margin-top: 3px; color: var(--ink-soft); font-size: 10.8px; font-weight: 720; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.065em; }

.section-heading { max-width: 860px; }
.section-heading.compact { max-width: 780px; margin-bottom: 48px; }
.section-kicker { margin: 0 0 20px; color: var(--green); font-family: var(--mono); font-size: 16.5px; font-weight: 760; letter-spacing: 0.09em; text-transform: uppercase; }
.section-heading h2, .adopd-copy h2, .refinement-head h2, .doccount-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5.6vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.section-heading h2 em, .adopd-copy h2 em, .doccount-heading h2 em { color: var(--green); font-weight: 500; }
.section-heading > p:last-child { max-width: 710px; margin: 28px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }

.idea { background: var(--white); }
.component-heading-row { display: grid; grid-template-columns: minmax(0, 1fr) 175px; gap: 54px; align-items: center; }
.component-logo { width: 100%; height: auto; justify-self: end; }
.adopd-component-logo { max-width: 175px; }
.doccount-component-logo { max-width: 160px; }
.keep-together { white-space: nowrap; }

.anchor-equation { margin-top: 72px; display: grid; grid-template-columns: repeat(7, auto); align-items: stretch; border-block: 1px solid var(--ink); }
.anchor-equation > div { min-width: 0; padding: 18px 20px; }
.anchor-equation > b { display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-size: 38px; font-weight: 400; }
.anchor-equation span { display: block; margin-bottom: 11px; color: var(--orange); font-family: var(--mono); font-size: 12px; font-weight: 760; }
.anchor-equation strong { display: block; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.1; }
.anchor-equation small { display: block; margin-top: 6px; color: var(--ink-soft); font-family: var(--mono); font-size: 11px; }
.anchor-equation .equation-result { color: var(--white); background: var(--green); }
.anchor-equation .equation-result span, .anchor-equation .equation-result small { color: var(--mint); }

.adopd-task-layout { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(500px, 0.92fr); column-gap: 64px; row-gap: 18px; align-items: stretch; }
.semantic-cloud-heading { grid-column: 1 / -1; min-width: 0; padding-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 28px; overflow-x: auto; color: var(--ink-soft); border-bottom: 1px solid rgba(20, 34, 29, 0.16); font-family: var(--mono); font-size: 15px; line-height: 1.45; white-space: nowrap; scrollbar-width: none; }
.semantic-cloud-heading::-webkit-scrollbar { display: none; }
.semantic-cloud-heading strong { color: var(--orange); font-size: inherit; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }
.semantic-cloud-heading span { font-size: inherit; letter-spacing: 0.01em; }
.semantic-word-cloud { min-width: 0; min-height: 408px; margin: 0; padding: 18px; overflow: visible; color: var(--ink); background: linear-gradient(135deg, rgba(30, 107, 79, 0.055), rgba(208, 136, 74, 0.075)); border: 1px solid rgba(20, 34, 29, 0.42); }
.word-cloud { min-height: 370px; display: grid; place-items: center; overflow: visible; }
.word-cloud-canvas { position: relative; width: 100%; aspect-ratio: 2 / 1; transform: scale(1.368); transform-origin: center; }
.semantic-word-cloud-image { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.word-cloud-hotspot { position: absolute; left: var(--hotspot-left); top: var(--hotspot-top); z-index: 1; width: var(--hotspot-width); height: var(--hotspot-height); padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 5px; cursor: help; }
.word-cloud-hotspot span { position: absolute; left: 50%; bottom: calc(100% + 5px); z-index: 4; padding: 6px 8px; color: var(--white); background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 3px; box-shadow: 0 8px 20px rgba(20, 34, 29, 0.16); font-family: var(--mono); font-size: 10px; line-height: 1; letter-spacing: 0.02em; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity 140ms ease, transform 140ms ease; }
.word-cloud-hotspot span::after { content: ""; position: absolute; left: 50%; top: 100%; border: 4px solid transparent; border-top-color: var(--ink); transform: translateX(-50%); }
.word-cloud-hotspot:hover span, .word-cloud-hotspot:focus span { opacity: 1; transform: translate(-50%, 0); }
.word-cloud-hotspot:focus-visible { outline: 2px dashed var(--orange); outline-offset: 1px; }
.adopd-task-panel { min-width: 0; }

.component-overview { margin-top: 112px; padding: 70px; background: var(--paper-deep); border: 1px solid var(--ink); }
.component-overview .section-heading.compact { margin-bottom: 0; }
.doccount-component-heading { grid-template-columns: minmax(0, 1fr) 160px; margin-bottom: 48px; }
.doccount-component-heading .section-heading h2 { font-size: clamp(42px, 4.8vw, 64px); }
.paper-figure { position: relative; margin: 0; padding: 62px 20px 20px; background: var(--white); border: 1px solid var(--ink); box-shadow: 12px 12px 0 rgba(20, 34, 29, 0.1); }
.figure-label { position: absolute; left: -1px; top: -1px; padding: 12px 16px; color: var(--white); background: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.paper-figure img { width: 100%; }

.adopd { padding-bottom: 0; background: var(--white); }
.adopd-layout { display: grid; grid-template-columns: 1fr 0.92fr; gap: 90px; align-items: end; }
.adopd-copy > p:not(.section-kicker) { max-width: 650px; margin: 26px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }

.split-line { margin-top: 42px; display: grid; grid-template-columns: 4fr 1fr 1fr; height: 74px; color: var(--white); border: 1px solid var(--ink); }
.split-line div { padding: 13px 17px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--white); }
.split-line div:last-child { border-right: 0; }
.split-train { background: var(--green); }
.split-val { background: var(--gold); }
.split-test { background: var(--orange); }
.split-line b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.split-line span { font-family: var(--mono); font-size: 8px; font-weight: 700; text-transform: uppercase; }

.inline-links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.inline-links a, .refinement-result > a, .benchmark-copy a { color: var(--green); font-size: 12px; font-weight: 760; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.task-stack { border-top: 1px solid var(--ink); }
.task-stack article { min-height: 128px; display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--ink); }
.task-stack article > span { align-self: start; padding-top: 26px; color: var(--orange); font-family: var(--mono); font-size: 9px; font-weight: 760; }
.task-stack h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.task-stack p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.task-stack strong { color: var(--green); font-family: var(--serif); font-size: 36px; font-weight: 500; }
.task-stack strong small { font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.task-result { min-width: 142px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.task-result > span { margin-top: 5px; color: var(--ink-soft); font-family: var(--mono); font-size: 8px; font-weight: 720; letter-spacing: 0.02em; }
.metric-note { margin: 14px 0 0; color: var(--ink-soft); font-size: 9px; line-height: 1.5; }

.refinement-block { margin-top: 130px; padding: 90px 0 110px; color: var(--white); background: var(--ink); width: 100%; max-width: none; }
.refinement-block > * { width: var(--shell); margin-inline: auto; }
.refinement-head { display: grid; grid-template-columns: 1fr 0.62fr; gap: 80px; align-items: end; margin-bottom: 55px; }
.refinement-head .section-kicker { color: var(--mint); }
.refinement-head h2 { font-size: clamp(44px, 5vw, 72px); }
.refinement-head > p { margin: 0 0 7px; color: rgba(255, 253, 248, 0.68); font-size: 15px; line-height: 1.7; }
.refinement-grid { display: grid; grid-template-columns: 1.5fr 0.5fr; border: 1px solid rgba(255, 255, 255, 0.4); }
.refinement-figure { margin: 0; padding: 16px; background: var(--white); border-right: 1px solid rgba(255, 255, 255, 0.4); }
.refinement-figure img { width: 100%; }
.refinement-figure figcaption { margin: 11px 3px 2px; color: var(--ink-soft); font-size: 9px; }
.refinement-result { padding: 26px; display: flex; flex-direction: column; }
.result-delta { display: grid; grid-template-columns: 1fr auto auto auto; gap: 9px; align-items: baseline; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.result-delta span { grid-column: 1 / -1; color: var(--mint); font-family: var(--mono); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.result-delta b, .result-delta strong { font-family: var(--serif); font-size: 43px; font-weight: 500; }
.result-delta strong { color: var(--mint); }
.result-delta i { color: var(--orange); font-style: normal; font-size: 24px; }
.refinement-result > p { color: rgba(255, 253, 248, 0.7); font-size: 12px; line-height: 1.55; }
.refinement-result > p b { color: var(--white); }
.refinement-result ol { margin: 10px 0 28px; padding: 0; list-style: none; }
.refinement-result li { padding: 10px 0; display: flex; gap: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); font-size: 11px; }
.refinement-result li span { color: var(--orange); font-family: var(--mono); font-size: 8px; }
.refinement-result > a { margin-top: auto; color: var(--mint); }

.doccount { --orange: #FBDC92; color: var(--white); background: var(--green); }
.doccount-heading { display: grid; grid-template-columns: 1.2fr 0.55fr; gap: 90px; align-items: end; }
.doccount-heading .section-kicker { color: var(--mint); }
.doccount-heading h2 { font-size: clamp(50px, 6vw, 82px); }
.doccount-heading h2 em { color: var(--orange); }
.doccount-heading > p { margin: 0 0 7px; color: rgba(255, 253, 248, 0.68); font-size: 15px; line-height: 1.7; }

.doccount-showcase { margin-top: 62px; border: 1px solid rgba(255, 255, 255, 0.35); }
.doccount-demo { display: grid; grid-template-columns: 1.35fr 0.65fr; }
.doccount-demo[hidden] { display: none; }
.demo-visual { min-width: 0; padding: 15px; background: var(--white); }
.demo-tabs { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.demo-case-label { margin-right: auto; color: var(--ink-soft); font-family: var(--mono); font-size: 13.5px; font-weight: 760; letter-spacing: 0.04em; text-transform: uppercase; }
.demo-tabs button { padding: 8px 12px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: 9px; font-weight: 760; text-transform: uppercase; cursor: pointer; }
.demo-tabs button.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.demo-example-tabs { margin: 0; padding: 15px; background: var(--white); border-bottom: 1px solid var(--line); }
.demo-example-tabs button { min-width: 104px; }
.demo-image-wrap { position: relative; aspect-ratio: 1.54; overflow: hidden; background: var(--paper-deep); }
.demo-image-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms ease; }
.demo-image-wrap img.is-visible { z-index: 1; opacity: 1; }
.doccount-demo-photo .demo-image-wrap { background: #ead8c7; }
.doccount-demo-photo .demo-image-wrap img { object-fit: contain; }
.demo-target { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 8px 10px; color: var(--ink); background: rgba(255, 253, 248, 0.9); font-family: var(--mono); font-size: 8px; font-weight: 760; text-transform: uppercase; }

.demo-reasoning { padding: 28px; background: rgba(0, 0, 0, 0.16); }
.terminal-label { display: block; padding-bottom: 20px; color: var(--mint); border-bottom: 1px solid rgba(255, 255, 255, 0.24); font-family: var(--mono); font-size: 13.5px; font-weight: 700; text-transform: uppercase; }
.reason-step { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.reason-step i { color: var(--orange); font-family: var(--mono); font-size: 13.5px; font-style: normal; }
.reason-step p { margin: 0; color: rgba(255, 253, 248, 0.75); font-size: 16.5px; line-height: 1.5; }
.reason-step b { color: var(--white); }
.reason-step code { color: var(--mint); font-family: var(--mono); }
.terminal-answer { margin-top: 24px; padding: 17px; color: var(--ink); background: var(--mint); }
.terminal-answer span { display: block; font-family: var(--mono); font-size: 12px; font-weight: 760; text-transform: uppercase; }

.doccount-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 255, 255, 0.35); border-top: 0; }
.doccount-stats div { padding: 25px; border-right: 1px solid rgba(255, 255, 255, 0.35); }
.doccount-stats div:last-child { border-right: 0; }
.doccount-stats strong { display: block; color: var(--orange); font-family: var(--serif); font-size: 35px; font-weight: 500; }
.doccount-stats span { color: rgba(255, 253, 248, 0.78); font-family: var(--mono); font-size: 16px; font-weight: 700; line-height: 1.4; text-transform: uppercase; }
.doccount-stats small { display: block; margin-top: 9px; color: var(--mint); font-family: var(--mono); font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: 0.04em; }

.benchmark-grid { margin-top: 100px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.75fr); gap: 80px; align-items: center; }
.benchmark-copy .section-kicker { color: var(--mint); font-size: 16.5px; }
.benchmark-copy h3 { margin: 0; font-family: var(--serif); font-size: 46px; font-weight: 500; line-height: 1.05; }
.benchmark-copy > p:not(.section-kicker) { margin: 23px 0; color: rgba(255, 253, 248, 0.72); font-size: 19.5px; line-height: 1.65; }
.benchmark-copy a { color: var(--mint); font-size: 18px; }
.score-list { width: 100%; max-width: 520px; justify-self: end; padding: 32px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.25); }
.score-row { display: grid; grid-template-columns: 164px 1fr 49px; gap: 16px; align-items: center; margin-bottom: 20px; }
.score-row > span { font-size: 15px; font-weight: 700; }
.score-row > div { height: 9px; background: rgba(255, 255, 255, 0.13); }
.score-row i { display: block; width: var(--score); height: 100%; background: var(--mint); }
.score-row:nth-child(n+4) i { background: var(--orange); }
.score-row b { color: var(--white); font-family: var(--mono); font-size: 15px; }
.score-list > small { display: block; margin-top: 29px; padding-top: 15px; color: rgba(255, 253, 248, 0.58); border-top: 1px solid rgba(255, 255, 255, 0.15); font-family: var(--mono); font-size: 12px; line-height: 1.5; text-transform: uppercase; }

@media (min-width: 901px) {
  .benchmark-grid { align-items: start; }
  .score-list { margin-top: 40px; }
}

.resources { background: var(--paper); }
.resource-grid { margin-top: 58px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.resource-card { position: relative; min-height: 240px; padding: 27px; display: flex; flex-direction: column; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; transition: color 180ms ease, background-color 180ms ease; }
.resource-card:nth-child(3n) { border-right: 0; }
.resource-card:nth-child(n+4) { border-bottom: 0; }
.resource-card:hover { color: var(--white); background: var(--green); }
.resource-card span { color: var(--orange); font-family: var(--mono); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.resource-card b { margin-top: auto; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.resource-card p { max-width: 280px; margin: 9px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; transition: color 180ms ease; }
.resource-card:hover p { color: rgba(255, 255, 255, 0.7); }
.resource-card > i { position: absolute; top: 25px; right: 25px; font-style: normal; font-size: 17px; }
.resource-featured { color: var(--white); background: var(--ink); }
.resource-featured p { color: rgba(255, 255, 255, 0.62); }

.citation-block { margin-top: 110px; display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 80px; align-items: start; }
.citation-block h3 { margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1.08; }
.citation-code { position: relative; min-width: 0; color: var(--white); background: var(--ink); border-radius: 4px; }
.citation-code button { position: absolute; right: 12px; top: 12px; padding: 9px 11px; color: var(--white); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 3px; font-size: 9px; font-weight: 700; cursor: pointer; }
.citation-code pre { margin: 0; padding: 56px 24px 24px; overflow-x: auto; }
.citation-code code { color: #d7eee5; font-family: var(--mono); font-size: 10px; line-height: 1.65; }

footer { padding: 48px 0; color: var(--white); background: var(--ink); }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-brand .brand-mark { border-color: var(--white); }
.footer-inner p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.48); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 11px; text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms ease, transform 620ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 0.82fr; gap: 40px; }
  .hero-visual { min-height: 430px; }
  .hero-window-stack { width: 560px; height: 430px; }
  .hero-paper-figure { width: 500px; }
  .hero-window-back-one { width: 300px; height: 205px; }
  .hero-window-back-two { width: 290px; height: 195px; }
  .hero-window-back-three { width: 325px; height: 178px; }
  .stat-band { grid-template-columns: 136px minmax(0, 1fr); }
  .stat-grid > div { padding-inline: 16px; }
  .component-heading-row { grid-template-columns: minmax(0, 1fr) 145px; gap: 38px; }
  .doccount-component-heading { grid-template-columns: minmax(0, 1fr) 135px; }
  .anchor-equation { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .anchor-equation > b:nth-of-type(3), .anchor-equation .equation-result { grid-row: 2; }
  .anchor-equation > b:nth-of-type(3) { grid-column: 2; }
  .anchor-equation .equation-result { grid-column: 3 / 6; }
  .adopd-task-layout { grid-template-columns: minmax(0, 1fr) minmax(440px, 0.92fr); gap: 36px; }
  .adopd-layout { gap: 55px; }
  .refinement-grid { grid-template-columns: 1fr; }
  .refinement-figure { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
  .refinement-result { min-height: 420px; }
  .doccount-demo { grid-template-columns: 1fr; }
  .benchmark-grid { gap: 50px; }
}

@media (max-width: 860px) {
  :root { --shell: min(100% - 34px, 720px); }
  .section { padding: 94px 0; }
  .nav-shell { height: 68px; }
  .nav-toggle { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; background: var(--white); border: 1px solid var(--ink); border-radius: 50%; cursor: pointer; }
  .nav-toggle span { width: 17px; height: 1.5px; display: block; background: var(--ink); transition: transform 160ms ease, opacity 160ms ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 68px 0 0; padding: 42px 28px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); transform: translateX(100%); transition: transform 220ms ease; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 28px; font-weight: 500; }
  .site-nav .nav-paper { margin-top: 24px; padding: 15px; border: 0; border-radius: 3px; font-family: var(--sans); font-size: 13px; text-align: center; }
  .hero { padding-top: 116px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(70px, 18vw, 105px); }
  .hero-visual { min-height: 470px; }
  .hero-window-stack { width: min(100%, 680px); height: 470px; }
  .hero-paper-figure { width: min(94%, 660px); }
  .hero-stat-bands { margin-top: 42px; }
  .component-overview { padding: 48px; }
  .doccount-component-heading { grid-template-columns: 1fr; }
  .doccount-component-logo { width: 110px; margin-top: 24px; }
  .adopd-task-layout { grid-template-columns: 1fr; }
  .semantic-word-cloud { min-height: 320px; }
  .word-cloud { min-height: 235px; }
  .word-cloud-canvas { transform: scale(1.2768); }
  .adopd-layout, .refinement-head, .doccount-heading, .benchmark-grid, .citation-block { grid-template-columns: 1fr; }
  .refinement-block { margin-top: 95px; }
  .doccount-heading, .refinement-head { gap: 35px; }
  .doccount-stats { grid-template-columns: 1fr 1fr; }
  .doccount-stats div:nth-child(2) { border-right: 0; }
  .doccount-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .resource-card, .resource-card:nth-child(3n) { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .resource-card:nth-child(2n) { border-right: 0; }
  .resource-card:nth-child(n+5) { border-bottom: 0; }
  .citation-block { gap: 35px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 28px); }
  .section { padding: 78px 0; }
  .brand { font-size: 13px; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 21.5vw; }
  .hero-deck { font-size: 19px; }
  .hero-summary { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .button { justify-content: space-between; }
  .hero-visual { min-height: 370px; }
  .hero-window-stack { width: 100%; height: 350px; }
  .hero-paper-figure { width: 94%; transform: translate(-50%, -50%) rotate(0.5deg); }
  .hero-window-back-one { left: 0; top: 18px; width: 62%; height: 155px; }
  .hero-window-back-two { right: 0; top: 22px; width: 58%; height: 145px; }
  .hero-window-back-three { display: none; }
  .window-chrome { height: 23px; padding-inline: 8px; }
  .window-controls { gap: 4px; }
  .window-controls i { width: 7px; height: 7px; }
  .hero-sample-window img { height: calc(100% - 23px); }
  .hero-image-pair { margin: 5px; gap: 5px; }
  .hero-image-pair::after { border-left-width: 1px; }
  [data-hero-variant="desk"] .hero-window-back-one { left: -2px; top: 52px; width: 66%; height: auto; }
  [data-hero-variant="desk"] .hero-window-back-two { right: -2px; top: 24px; width: 56%; height: auto; }
  [data-hero-variant="desk"] .hero-window-back-four { right: 0; bottom: 54px; width: 54%; }
  [data-hero-variant="desk"] .hero-window-back-five,
  [data-hero-variant="desk"] .hero-window-back-six { display: none; }
  [data-hero-variant="desk"] .hero-paper-figure { left: 52%; top: 50%; width: 92%; }
  [data-hero-variant="desk"] .hero-document-sheet { padding: 5px; }
  [data-hero-variant="desk"] .hero-document-sheet::after { width: 19px; height: 19px; }
  .visual-orbit-one { width: 420px; height: 260px; }
  .visual-orbit-two { width: 460px; height: 190px; }
  .hero-stat-bands { width: 100%; margin-top: 28px; padding-bottom: 22px; gap: 10px; }
  .stat-band { grid-template-columns: 1fr; }
  .stat-band-title { min-height: 78px; padding: 15px 20px; border-right: 1px solid var(--ink); border-bottom: 0; }
  .stat-band-title strong { font-size: 23px; }
  .stat-band-doccount .stat-band-title strong { font-size: 27.6px; }
  .stat-grid-five, .stat-grid-three { grid-template-columns: repeat(2, 1fr); }
  .stat-grid-five > div:last-child, .stat-grid-three > div:last-child { grid-column: span 2; }
  .stat-grid > div { min-height: 96px; padding: 17px 19px; }
  .stat-grid strong { font-size: 30px; }
  .component-heading-row { grid-template-columns: 1fr; gap: 26px; }
  .component-logo { width: 112px; justify-self: start; }
  .doccount-component-logo { width: 100px; margin-top: 0; }
  .keep-together { white-space: normal; }
  .section-heading h2, .adopd-copy h2, .refinement-head h2, .doccount-heading h2 { font-size: 47px; }
  .anchor-equation { display: flex; flex-direction: column; }
  .anchor-equation > b { min-height: 36px; font-size: 28px; }
  .anchor-equation > div { padding: 16px 20px; }
  .adopd-task-layout { margin-top: 42px; gap: 30px; }
  .semantic-cloud-heading { padding-bottom: 11px; gap: 20px; }
  .semantic-word-cloud { min-height: 280px; padding: 14px; }
  .word-cloud { min-height: 250px; }
  .word-cloud-canvas { transform: scale(1.2312); }
  .word-cloud-hotspot span { font-size: 9px; }
  .task-stack article { min-height: 145px; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .task-stack article > span { padding-top: 5px; }
  .task-result { grid-column: 2; min-width: 0; align-items: flex-start; text-align: left; }
  .task-result > span { margin-top: 2px; }
  .component-overview { margin-top: 78px; padding: 42px 18px 48px; }
  .paper-figure { padding: 50px 8px 10px; overflow-x: auto; }
  .paper-figure img { min-width: 760px; }
  .split-line { grid-template-columns: 4fr 1.35fr 1.35fr; }
  .split-line div { padding: 10px; }
  .refinement-block { padding: 72px 0; }
  .refinement-figure { padding: 7px; overflow-x: auto; }
  .refinement-figure img { min-width: 760px; }
  .refinement-result { min-height: 460px; }
  .doccount-showcase { margin-inline: -14px; }
  .demo-tabs { flex-wrap: wrap; }
  .demo-case-label { flex-basis: 100%; margin-bottom: 3px; }
  .demo-visual { padding: 8px; }
  .demo-reasoning { padding: 20px; }
  .doccount-stats { margin-inline: -14px; }
  .doccount-stats div { padding: 18px; }
  .benchmark-grid { margin-top: 72px; }
  .benchmark-copy h3 { font-size: 38px; }
  .score-list { padding: 22px 14px; }
  .score-row { grid-template-columns: 112px 1fr 42px; gap: 9px; }
  .score-row > span { font-size: 12px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card, .resource-card:nth-child(2n), .resource-card:nth-child(3n), .resource-card:nth-child(n+5) { border-right: 0; border-bottom: 1px solid var(--ink); }
  .resource-card:last-child { border-bottom: 0; }
  .citation-code { margin-inline: -14px; border-radius: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
