:root {
  --coal: #14100C;
  --coal-2: #1C1712;
  --coal-3: #241E18;
  --hair: #322A21;
  --bone: #EAE3D6;
  --ash: #948D81;
  --copper: #C9722E;
  --copper-bright: #D97B33;
  --copper-dark: #96470F;
  --verdigris: #43A583;
  --verdigris-dark: #216E51;
  --stone: #E9E7E2;
  --stone-2: #DFDCD5;
  --stone-hair: #CCC8BF;
  --stone-ash: #5E594F;
  --display: "Besley", Georgia, serif;
  --text: "Libre Franklin", system-ui, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--coal);
  color: var(--bone);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
main, .nav, .foot { position: relative; z-index: 1; }

a { color: var(--bone); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-bright); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(36px, 5.6vw, 60px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding-left: 20px; }
li + li { margin-top: 6px; }
img, svg { display: block; }
[hidden] { display: none !important; }
.page-head #count { display: block; margin-top: 10px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.copper { color: var(--copper-bright); }
.ash { color: var(--ash); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.serial { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--ash); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--copper-bright); color: var(--coal); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  background: var(--copper-bright); color: var(--coal);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 0; border-radius: 2px; cursor: pointer; font-family: var(--text);
  transition: background-color 160ms ease-out;
}
.btn:hover { background: #E68A3F; color: var(--coal); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--copper-bright); outline-offset: 3px; }
.btn-coal { background: var(--coal); color: var(--bone); }
.btn-coal:hover { background: var(--coal-3); color: var(--bone); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid var(--hair); }
.btn-ghost:hover { background: var(--coal-2); color: var(--bone); }
.btn-disabled { background: var(--coal-3); color: var(--ash); cursor: not-allowed; }
.link { font-size: 15px; color: var(--bone); text-decoration: underline; }
.link.dark { color: var(--coal); }
.link.dark:hover { color: var(--copper-dark); }

/* Stamps */
.stamp {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  border: 1.5px solid currentColor; border-radius: 2px; padding: 3px 9px; line-height: 1.3; white-space: nowrap;
}
.stamp-open { color: var(--verdigris); }
.stamp-closing { color: var(--ash); }
.stamp-filled { color: var(--ash); opacity: 0.7; }
.sheet .stamp-open { color: var(--verdigris-dark); }

/* Nav */
.nav { border-bottom: 1px solid var(--hair); background: var(--coal); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.lockup:hover { color: var(--bone); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-links a.quiet { color: var(--ash); }
.nav-links a.quiet:hover { color: var(--copper-bright); }
body[data-page="calls"] .nav-links a[href="/calls/"],
body[data-page="methodology"] .nav-links a[href="/methodology.html"],
body[data-page="grid"] .nav-links a[href="/grid/"],
body[data-page="labs"] .nav-links a[href="/labs.html"] { color: var(--copper-bright); }
.nav-toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-block: 72px 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; padding-top: 12px; }
.lede { font-size: 17px; line-height: 1.6; color: var(--ash); max-width: 62ch; }
.cta-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* Stone documents */
.sheet {
  background: var(--stone); color: var(--coal); border-radius: 2px;
  padding: 32px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.7);
}
.sheet a { color: var(--coal); }
.sheet a:hover { color: var(--copper-dark); }
.sheet a.btn { color: var(--coal); }
.sheet a.btn-coal { color: var(--bone); }
.sheet a.btn-coal:hover { color: var(--bone); background: var(--coal-3); }
.sheet .serial { color: var(--copper-dark); }
.sheet .ash { color: var(--stone-ash); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-title { font-size: clamp(26px, 2.6vw, 34px); margin-top: 16px; }
.sheet-sum { margin-top: 10px; color: var(--stone-ash); font-size: 15px; line-height: 1.55; max-width: 60ch; }
.sheet .btn-coal { margin-top: 24px; }
.facts, .spec { margin: 24px 0 0; border-top: 2px solid var(--coal); }
.facts > div, .spec > div { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--stone-hair); }
.facts dt, .spec dt { flex: 0 0 120px; font-size: 13px; font-weight: 600; color: var(--stone-ash); }
.facts dd, .spec dd { margin: 0; font-size: 15px; }
.spec dt { flex-basis: 150px; }
.spec dd.mono, .facts dd.mono { color: var(--copper-dark); }
/* Featured call slider */
.slider { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 320ms ease-out, visibility 0s linear 320ms; }
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide .btn-coal { margin-top: auto; align-self: flex-start; }
.slide .facts { margin-bottom: 24px; }
.slider-nav { position: absolute; right: 32px; bottom: 32px; display: flex; align-items: center; gap: 8px; }
.slider-count { color: var(--stone-ash); margin-right: 8px; font-size: 12px; }
.slider-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--coal); border: 1.5px solid var(--coal); border-radius: 2px; cursor: pointer; padding: 0;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}
.slider-btn:hover { background: var(--coal); color: var(--bone); }
.slider-btn:focus-visible { outline-color: var(--copper-dark); }
.sheet-wide { padding: 40px; }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 22px; }
.terms h3 { font-size: 19px; }
.terms p { margin-top: 8px; font-size: 15px; color: var(--stone-ash); line-height: 1.55; }
.sheet-wide .link { display: inline-block; margin-top: 28px; }

/* Ledger */
.ledger-block { padding-block: 8px 24px; }
.ledger-title { display: flex; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.ledger-title .link { margin-left: auto; }
.ledger { border-top: 2px solid var(--bone); }
.row {
  display: grid; grid-template-columns: 100px minmax(0, 1fr) 160px 170px 120px 92px;
  gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--hair);
  text-decoration: none; color: var(--bone); transition: background-color 120ms ease-out;
}
a.row:hover { background: var(--coal-2); color: var(--bone); box-shadow: inset 3px 0 0 var(--copper); }
a.row:hover .c-serial { color: var(--copper-bright); }
.row-head { padding: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ash); border-bottom: 0; }
.c-serial { font-family: var(--mono); font-size: 14px; color: var(--copper); transition: color 120ms ease-out; }
.row-head .c-serial { font-family: var(--text); color: var(--ash); }
.c-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-title .t { font-weight: 600; font-size: 15px; }
.c-title .f { font-size: 13px; color: var(--ash); }
.c-domain { font-size: 14px; color: var(--ash); }
.c-rate { font-family: var(--mono); font-size: 14px; }
.c-closes { font-size: 13px; color: var(--ash); }
.c-status { display: flex; justify-content: flex-end; }
.empty { padding: 32px 0; color: var(--ash); }

/* Sections */
.section { padding-block: 88px; border-top: 1px solid var(--hair); }
.section-tight { padding-block: 24px 64px; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; margin-bottom: 36px; }
.section-head p { max-width: 60ch; }
.section > h2 { margin-bottom: 36px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--hair); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.step .serial { font-size: 14px; }
.step p { color: var(--ash); font-size: 15px; line-height: 1.55; }

.dom-index { border-top: 2px solid var(--bone); }
.dom {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 140px; gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--hair); text-decoration: none; transition: background-color 120ms ease-out;
}
.dom:hover { background: var(--coal-2); color: var(--bone); box-shadow: inset 3px 0 0 var(--copper); }
.dom-name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.dom-line { font-size: 14px; color: var(--ash); }
.dom-count { font-family: var(--mono); font-size: 13px; color: var(--verdigris); text-align: right; }
.dom-count.dim { color: var(--ash); }

.activity { border-top: 1px solid var(--hair); }
.act { display: grid; grid-template-columns: 70px 90px 200px minmax(0, 1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 14px; align-items: baseline; }
.act-date { font-family: var(--mono); color: var(--ash); font-size: 13px; }
.act-serial a { font-family: var(--mono); color: var(--copper); text-decoration: none; }
.act-serial a:hover { color: var(--copper-bright); text-decoration: underline; }
.act-count { font-family: var(--mono); font-size: 13px; color: var(--verdigris); }
.act-note { color: var(--ash); }

/* Page heads */
.page-head { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 18px; }
.page-head .lede { max-width: 66ch; }
.page-head .serial { font-size: 13px; }

/* Filters */
.filters { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 28px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ash); }
.filters .grow { flex-grow: 1; min-width: 200px; }
select, input, textarea {
  font-family: var(--text); font-size: 15px; color: var(--bone);
  background: var(--coal-2); border: 1px solid var(--hair); border-radius: 2px;
  min-height: 44px; padding: 10px 12px; width: 100%;
}
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23948D81' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
input::placeholder, textarea::placeholder { color: #6E675D; }
textarea { resize: vertical; min-height: 96px; }
.filters .btn-ghost { min-height: 44px; }

/* Call page */
.call-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-block: 56px 88px; align-items: start; }
.sheet-doc { padding: 40px; }
.sheet-doc h1 { font-size: clamp(30px, 3.4vw, 42px); }
.doc-body { margin-top: 32px; font-size: 15px; line-height: 1.65; }
.doc-body h2 { font-size: 20px; margin: 28px 0 10px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p + p { margin-top: 12px; }
.doc-body .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.doc-body ul { padding-left: 18px; }
.doc-foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--stone-hair); }
.call-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; }
.side-block { display: flex; flex-direction: column; gap: 12px; }
.side-block .btn { width: 100%; }
.side-h { font-size: 16px; }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.progress { height: 3px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--copper); }
.side-facts { margin: 0; border-top: 1px solid var(--hair); }
.side-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.side-facts dt { color: var(--ash); }
.side-facts dd { margin: 0; text-align: right; }
.rel { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); text-decoration: none; font-size: 14px; }
.rel .serial { color: var(--copper); }
.rel:hover { color: var(--copper-bright); }

/* Methodology */
.method { border-top: 2px solid var(--bone); }
.m-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--hair); }
.m-row .serial { font-size: 18px; padding-top: 6px; }
.m-row h2 { font-size: 24px; }
.m-row p { margin-top: 10px; color: var(--ash); max-width: 70ch; font-size: 15px; line-height: 1.65; }
.record {
  margin: 0; background: var(--coal-2); border: 1px solid var(--hair); border-left: 3px solid var(--copper);
  padding: 24px 28px; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--bone);
  overflow-x: auto; border-radius: 2px;
}
.standards { margin: 0; border-top: 2px solid var(--bone); }
.standards > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.standards dt { color: var(--copper); font-size: 15px; }
.standards dd { margin: 0; font-size: 15px; color: var(--ash); line-height: 1.6; }
.standards strong { color: var(--bone); font-weight: 600; }

/* Grid and labs */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.cols-2 h2 { font-size: 24px; margin-bottom: 12px; }
.cols-2 p { color: var(--ash); font-size: 15px; line-height: 1.65; }
.cols-2 p + p { margin-top: 12px; }
.plain { margin: 0; }
.plain > div { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.plain dt { font-weight: 600; font-size: 15px; }
.plain dd { margin: 4px 0 0; color: var(--ash); font-size: 14px; line-height: 1.55; }
.faq { border-top: 2px solid var(--bone); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--copper); font-size: 18px; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { padding: 0 0 20px; color: var(--ash); font-size: 15px; max-width: 70ch; line-height: 1.65; }

/* Forms on stone */
.sheet-form { padding: 40px; max-width: 820px; }
.form { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--stone-ash); }
.form input, .form select, .form textarea { background: #F4F2EE; color: var(--coal); border-color: var(--stone-hair); }
.form select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235E594F' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.form input::placeholder, .form textarea::placeholder { color: #9A958B; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-color: var(--copper-dark); }
.f-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; font-weight: 600; color: var(--stone-ash); padding: 0; margin-bottom: 8px; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; color: var(--coal) !important; font-size: 14px !important; min-height: 32px; }
.check input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--copper-dark); }
.consent { align-items: flex-start !important; line-height: 1.5; padding-top: 8px; border-top: 1px solid var(--stone-hair); }
.consent input { margin-top: 3px; flex: 0 0 18px; }
.form .cta-row { margin-top: 8px; }
.form .btn-coal { margin-top: 0; }
.form-done { margin-top: 24px; padding: 24px; border: 1.5px solid var(--verdigris-dark); border-radius: 2px; color: var(--coal); font-size: 15px; line-height: 1.6; }
.form-done .serial { display: block; margin-bottom: 8px; color: var(--verdigris-dark); }

/* Footer */
.foot { border-top: 1px solid var(--hair); margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; padding-block: 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.foot-links a { text-decoration: none; color: var(--ash); }
.foot-links a:hover { color: var(--copper-bright); }
.foot-labs { font-size: 14px; }
.foot-legal { grid-column: 1 / -1; font-size: 12px; color: var(--ash); border-top: 1px solid var(--hair); padding-top: 16px; }

/* Motion: only when the viewer allows it; content is visible at rest */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .slider { animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .slider { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: 1fr; gap: 24px; }
  .call-page { grid-template-columns: 1fr; }
  .call-side { position: static; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .cols-2 { grid-template-columns: 1fr; gap: 32px; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: transparent; color: var(--bone); border: 1px solid var(--hair); border-radius: 2px; font: 600 14px var(--text); cursor: pointer; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--coal); border-bottom: 1px solid var(--hair); padding: 12px var(--gutter) 20px; flex-direction: column; align-items: stretch; gap: 0; z-index: 5; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .nav-links .btn { margin-top: 14px; border-bottom: 0; }
  .hero { padding-block: 44px 40px; }
  .row { grid-template-columns: 1fr auto; grid-template-areas: "serial status" "title title" "domain rate" "closes closes"; gap: 6px 12px; padding: 14px 0; }
  .row-head { display: none; }
  .c-serial { grid-area: serial; }
  .c-status { grid-area: status; }
  .c-title { grid-area: title; }
  .c-domain { grid-area: domain; }
  .c-rate { grid-area: rate; text-align: right; }
  .c-closes { grid-area: closes; }
  .steps { grid-template-columns: 1fr; }
  .dom { grid-template-columns: 1fr; gap: 4px; }
  .dom-count { text-align: left; }
  .act { grid-template-columns: 70px 1fr; }
  .act-count, .act-note { grid-column: 2; }
  .sheet, .sheet-doc, .sheet-wide, .sheet-form { padding: 24px 20px; }
  .slider-nav { right: 20px; bottom: 24px; }
  .slider-count { display: none; }
  .doc-body .two { grid-template-columns: 1fr; gap: 0; }
  .f-2 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .m-row { grid-template-columns: 1fr; gap: 8px; }
  .standards > div { grid-template-columns: 1fr; gap: 4px; }
  .foot-in { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .spec dt, .facts dt { flex-basis: 100px; }
  .spec > div, .facts > div { flex-direction: column; gap: 2px; }
}
