/* SALVERN — one stylesheet, no external requests. */

:root {
  --ink: #14161A;
  --paper: #FAF9F6;
  --paper-alt: #F3F1EC;
  --panel: #FFFDF9;
  --accent: #1F3A2E;
  --muted: #5C6066;
  --rule: rgba(20, 22, 26, .16);
  --rule-soft: rgba(20, 22, 26, .18);
  --body: rgba(20, 22, 26, .84);
  /* Secondary body. Lighter than --body so a bold claim separates from its
     explanation on a six-second skim, still ~7:1 on paper. */
  --body-2: rgba(20, 22, 26, .70);

  --serif: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1060px;
  --gutter: clamp(20px, 4vw, 30px);
  --band: clamp(56px, 7vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Quotes and hyphens hang into the margin where the engine supports it. */
  hanging-punctuation: first last;
}

body {
  margin: 0;
  /* Keeps the footer at the bottom on short pages (404, privacy). No effect on
     the landing page, which is far taller than the viewport. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 58, 46, .35);
}
a:hover { color: var(--ink); border-bottom-color: var(--ink); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: var(--accent); color: var(--paper); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
/* No widows. The last line of a paragraph never carries a single word. */
p { margin: 0; text-wrap: pretty; }
h3 { text-wrap: balance; }
svg { display: block; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 60;
  border: 0;
}
.skip:focus { left: 0; }

/* ---------- layout primitives ---------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--band) var(--gutter);
}

main { flex: 1 0 auto; }

.band { border-top: 1px solid var(--rule); }
.band--alt { background: var(--paper-alt); }

/* Section number in the left margin. The page reads as a document. */
.cols {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
}

.num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
  padding-top: .55em;
  border-top: 1.5px solid var(--accent);
  align-self: start;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The four section-level claims have to survive a six-second skim, so they sit
   a clear step above body and a clear step below the hero. */
h2.section {
  font-size: clamp(27px, 3.7vw, 42px);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin-bottom: clamp(30px, 4vw, 44px);
  max-width: 22ch;
  text-wrap: balance;
}

.lede { max-width: 58ch; }

/* ---------- header ---------- */

.masthead { border-bottom: 1px solid var(--rule); }
.masthead > div {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
}
.wordmark::before {
  content: "";
  width: 1px;
  height: 22px;
  background: var(--accent);
}
.wordmark:hover { color: var(--ink); }

.masthead a.plain { font-size: 14px; letter-spacing: .01em; }

/* Sticky bar appears once the hero is off screen. */
.stickybar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: rgba(250, 249, 246, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .stickybar { transition: transform .35s cubic-bezier(.22, .61, .24, 1); }
}
.stickybar[data-shown] { transform: translateY(0); }
.stickybar > div {
  max-width: var(--container);
  margin: 0 auto;
  padding: 11px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.stickybar .wordmark { font-size: 14px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  padding: 19px 38px;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: .008em;
  border: 0;
  border-radius: 0;
  /* One solid rectangle. The lift on hover is colour, not shadow. */
  box-shadow: inset 0 0 0 1px var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease; }
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 11px 22px; font-size: 14px; }

.btn--invert { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }
/* On the dark band the filled block IS the strong state. Hover shifts the
   text to the accent rather than hollowing the button out. */
.btn--invert:hover { background: var(--paper); color: var(--accent); box-shadow: inset 0 0 0 1px var(--paper); }
.btn--invert:focus-visible { outline-color: var(--paper); }

/* Keyboard focus stays visible on the two dark bands. */
.closer a:focus-visible,
.site-foot a:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.fineprint {
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 46ch;
  margin-top: 18px;
}

/* ---------- hero ---------- */

.hero { padding-top: clamp(58px, 9vw, 104px); padding-bottom: clamp(56px, 8vw, 88px); }
.hero h1 {
  font-size: clamp(36px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -.026em;
  /* Measured against the fallback serif: line one needs 8.3em, line one plus
     the next word needs 10.1em. 9.2em sits between, so the break lands on the
     full stop at every size. No `balance` — it would even the lines out and
     split the sentence. */
  max-width: 19.5ch;
}
.hero p.lede {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  margin-top: 34px;
  color: rgba(20, 22, 26, .86);
}
.hero .cta { margin-top: clamp(36px, 5vw, 48px); }

/* Above 900px the fold becomes one masthead: headline across the full measure,
   a hairline under it, then the argument on the left and the one action on the
   right. The empty right half was reading as absence, not restraint. */
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    column-gap: clamp(36px, 5vw, 72px);
    align-items: start;
  }
  .hero > *:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--rule);
    padding-bottom: clamp(36px, 4.6vw, 52px);
  }
  .hero > *:nth-child(2) { grid-column: 1; padding-top: clamp(32px, 4vw, 44px); }
  .hero p.lede { margin-top: 0; max-width: 54ch; }
  .hero .cta {
    grid-column: 2;
    margin-top: 0;
    padding-top: clamp(32px, 4vw, 44px);
  }
  .hero .cta .btn { display: block; text-align: center; padding-left: 20px; padding-right: 20px; }
  .hero .fineprint { max-width: none; }
}

/* ---------- the problem paragraph ---------- */

.statement {
  font-family: var(--serif);
  font-size: clamp(19px, 2.5vw, 26px);
  line-height: 1.5;
  max-width: 54ch;
}

/* ---------- cell grids ---------- */

/* Always 2×2. auto-fit gives three columns on a wide screen and leaves the
   fourth cell orphaned beside an empty one. */
.cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.cells > div {
  background: var(--paper);
  padding: clamp(24px, 3vw, 32px) clamp(22px, 2.6vw, 30px);
}
.band--alt .cells > div { background: var(--paper-alt); }
.cells h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18.5px;
  line-height: 1.3;
  letter-spacing: -.004em;
  margin-bottom: 10px;
  max-width: 24ch;
}
.cells p { font-size: 15.5px; line-height: 1.62; color: var(--body-2); max-width: 46ch; }

/* ---------- feature pairs ---------- */

.pairs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}
.pairs h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -.006em;
  margin-bottom: 12px;
}
.pairs p { font-size: 16px; line-height: 1.64; color: var(--body-2); max-width: 48ch; }

.closing {
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.5;
  max-width: 54ch;
  color: rgba(20, 22, 26, .78);
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: clamp(32px, 3.6vw, 44px);
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: clamp(24px, 3.4vw, 34px);
}
.steps > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.steps .step-n {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
  margin-bottom: 14px;
}
.steps h3 { font-family: var(--sans); font-weight: 700; font-size: 19.5px; line-height: 1.28; margin-bottom: 10px; }
.steps p { font-size: 15.5px; line-height: 1.64; color: var(--body-2); }

/* ---------- confidentiality rows (section 06) ----------
   The block the page rests on. It is set as a numbered instrument — a panel
   lifted off the band, an ink rule at the head, each promise a clause with its
   own numeral. This reader signs things that look like this. */

.rows {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-top: 2px solid var(--ink);
  padding: 0 clamp(16px, 3.2vw, 40px);
  counter-reset: clause;
}
.rows > div {
  padding: clamp(22px, 2.9vw, 32px) 0;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: clamp(2rem, 4vw, 2.8rem) minmax(0, 1fr);
  column-gap: clamp(12px, 2vw, 22px);
  row-gap: 9px;
  align-items: baseline;
}
.rows > div:last-child { border-bottom: 0; }
.rows > div::before {
  counter-increment: clause;
  content: counter(clause, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
}
.rows h3 {
  grid-column: 2;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.26;
  letter-spacing: -.008em;
  max-width: 32ch;
}
.rows p {
  grid-column: 2;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--body-2);
  max-width: 54ch;
}

/* ---------- mock interface ---------- */

.mockfig { margin: 0 0 clamp(34px, 4.2vw, 48px); }

.mock {
  border: 1px solid rgba(20, 22, 26, .2);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(20, 22, 26, .06),
              0 8px 18px -6px rgba(20, 22, 26, .10),
              0 30px 60px -20px rgba(20, 22, 26, .22);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-alt);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 9px; height: 9px; border: 1px solid rgba(20, 22, 26, .34); }
.mock-brand {
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.mock-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--accent);
}
.mock-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.mock-body { display: grid; grid-template-columns: minmax(0, 196px) minmax(0, 1fr); }

.mock-side { border-right: 1px solid var(--rule); background: var(--paper); }
.mock-side section { padding: 18px 16px; border-top: 1px solid rgba(20, 22, 26, .14); }
.mock-side section:first-child { border-top: 0; }
.mock-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 11px;
}

.kb { display: flex; flex-direction: column; gap: 1px; }
.kb > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  font-size: 12.5px;
}
.kb > div > span:nth-child(2) { flex: 1; }
.kb .count { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.kb .box { width: 11px; height: 11px; border: 1px solid rgba(20, 22, 26, .35); flex: none; }
.kb .on { background: var(--accent); color: var(--paper); }
.kb .on .count { color: rgba(250, 249, 246, .85); }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 38px; }
.spark span { flex: 1; background: rgba(20, 22, 26, .16); }
.spark span.hit { background: var(--accent); }
.range {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 9px;
}
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.dates div > span {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.dates div > b {
  display: block;
  border: 1px solid var(--ink);
  background: var(--panel);
  padding: 5px 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(20, 22, 26, .3);
  padding: 3px 7px;
  font-size: 11px;
}
.tags span b { font-family: var(--mono); font-size: 9px; font-weight: 400; color: var(--muted); }
.tags span.on { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.tags span.on b { color: rgba(250, 249, 246, .8); }
.more { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--accent); margin-top: 10px; }

.mock-main { padding: 22px clamp(18px, 2.4vw, 26px) 26px; }
.mock-query {
  border: 1px solid var(--ink);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 14.5px;
}
.mock-query .caret { width: 1px; height: 17px; background: var(--accent); flex: none; margin-left: auto; }
.mock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 20px;
}

.hits {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(20, 22, 26, .14);
  border-top: 1px solid rgba(20, 22, 26, .14);
  border-bottom: 1px solid rgba(20, 22, 26, .14);
}
.hits > article { background: var(--panel); padding: 15px 4px 16px 0; }
.hits .title { font-family: var(--serif); font-size: 15.5px; font-weight: 700; }
.hits .when { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: 10px; }
.hits p { font-size: 13px; line-height: 1.6; margin: 6px 0 9px; color: rgba(20, 22, 26, .8); }
.hits mark { background: rgba(31, 58, 46, .14); border-bottom: 1px solid var(--accent); padding: 0 2px; color: inherit; }
.hits .chips { display: flex; flex-wrap: wrap; gap: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--accent); }
.hits .chips span { border: 1px solid rgba(31, 58, 46, .4); padding: 2px 6px; }
.hits .chips span.src { border-color: rgba(20, 22, 26, .2); color: var(--muted); }

.caption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- figures ---------- */

.figure { margin: clamp(34px, 4.2vw, 48px) 0; }
.figure svg { width: 100%; height: auto; }
.figure--narrow svg { max-width: 540px; margin: 0 auto; }

/* A figure already carries its own bottom margin; the next block must not add
   a second one on top of it. That double gap was the dead space after the
   permission tree and under the pile-to-index diagram. */
.figure + .pairs,
.figure + .closing,
.figure + .rows { margin-top: 0; }

.g-narrow { display: none; }

/* ---------- bio ---------- */

/* The portrait column is exactly the portrait. auto-fit gave it a full free
   column and left a gap between the photograph and the text. */
.bio {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 40px);
  align-items: start;
  max-width: 760px;
}
@media (max-width: 560px) {
  .bio { grid-template-columns: minmax(0, 1fr); }
}
.portrait {
  aspect-ratio: 4 / 5;
  max-width: 210px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(20, 22, 26, .3);
  display: block;
}
.bio .name { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.bio .about { font-size: 16.5px; line-height: 1.64; max-width: 52ch; color: var(--body); margin-bottom: 24px; }
.bio .contact { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 13.5px; }
.bio .contact a { color: var(--accent); }

/* ---------- closing CTA and footer ---------- */

.closer { background: var(--ink); color: var(--paper); }
.closer .wrap { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); }
.closer h2 {
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -.024em;
  max-width: 15ch;
  text-wrap: balance;
}
.closer p {
  font-size: 17px;
  line-height: 1.62;
  max-width: 46ch;
  color: rgba(250, 249, 246, .78);
  margin: 26px 0 clamp(34px, 4.4vw, 44px);
}

/* The closing band bookends the hero: same rule, same two columns, same
   button in the same place. The reader has now seen the action three times
   in the same position. */
@media (min-width: 900px) {
  .closer .wrap > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    column-gap: clamp(36px, 5vw, 72px);
    align-items: start;
  }
  .closer .wrap > div > h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: clamp(32px, 4vw, 46px);
  }
  /* The rule spans the measure, not the headline's 15ch box. */
  .closer .wrap > div::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 2;
    height: 1px;
    background: rgba(250, 249, 246, .22);
  }
  .closer .wrap > div > p {
    grid-column: 1;
    grid-row: 3;
    margin: clamp(30px, 3.6vw, 42px) 0 0;
  }
  .closer .wrap > div > .btn {
    grid-column: 2;
    grid-row: 3;
    margin-top: clamp(30px, 3.6vw, 42px);
    display: block;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.site-foot {
  background: var(--ink);
  color: rgba(250, 249, 246, .62);
  border-top: 1px solid rgba(250, 249, 246, .16);
}
.site-foot > div {
  max-width: var(--container);
  margin: 0 auto;
  padding: 38px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  justify-content: space-between;
  font-size: 13px;
  line-height: 1.65;
}
.site-foot .wordmark { color: var(--paper); font-size: 14px; letter-spacing: .32em; }
.site-foot .wordmark::before { display: none; }
.site-foot a { color: rgba(250, 249, 246, .78); border-bottom-color: rgba(250, 249, 246, .3); }
.site-foot a:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* ---------- prose pages (privacy) ---------- */

.prose { max-width: 66ch; }
.prose h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.14; margin-bottom: 12px; }
.prose h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 16px; line-height: 1.68; color: var(--body); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li + li { margin-top: 8px; }
.prose .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- responsive ---------- */

/* Reserving two lines for every claim aligns the explanations, but in the
   two-column `.cells` grid it opens a visible hole under every one-line claim,
   which reads as broken rather than aligned. Only the three- and four-up rows,
   where claims are closer in length, get the reservation. */
@media (min-width: 761px) {
  .pairs h3 { min-height: 2.56em; }
  .steps h3 { min-height: 2.56em; }
}

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; gap: 20px; }
  /* Stacked, the numeral loses its margin rule. Give it back as a full-width
     one so the page still reads as a numbered document on a phone. */
  .num {
    border-top: 0;
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .num::after { content: ""; flex: 1; height: 1px; background: var(--accent); opacity: .4; }

  .hero { padding-top: clamp(44px, 9vw, 64px); }
  .hero .btn { display: block; text-align: center; padding-left: 20px; padding-right: 20px; }
  .fineprint { max-width: none; }

  .cells { grid-template-columns: minmax(0, 1fr); }
  .cells p, .pairs p { max-width: none; }
  .rows h3, .rows p { max-width: none; }
  .closer .btn { display: block; text-align: center; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-side { display: none; }
  .mock-dots { display: none; }
  .mock-status { font-size: 9.5px; white-space: nowrap; }
  .g-wide { display: none; }
  .g-narrow { display: block; }
  .portrait { max-width: 160px; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    transition: opacity .7s cubic-bezier(.22, .61, .24, 1),
                transform .7s cubic-bezier(.22, .61, .24, 1);
  }
  [data-reveal="off"] { opacity: 0; transform: translateY(16px); }

  [data-anim] [data-row] {
    transition: opacity .55s cubic-bezier(.22, .61, .24, 1),
                transform .55s cubic-bezier(.22, .61, .24, 1);
  }
  [data-anim="off"] [data-row] { opacity: 0; transform: translateX(-14px); }

  [data-anim] [data-draw] { transition: stroke-dashoffset 1s cubic-bezier(.3, .7, .3, 1) .25s; }
  [data-anim="off"] [data-draw] { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }

  [data-anim] [data-stop] { transition: opacity .3s ease 1.15s; }
  [data-anim="off"] [data-stop] { opacity: 0; }
}

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

/* ---------- print ----------
   A managing partner prints this and takes it into a partners' meeting. */

@media print {
  :root { --band: 24px; }
  body { background: #fff; font-size: 11pt; }
  .stickybar, .skip, .cta, .btn, .closer, .figure { display: none !important; }
  .band, .band--alt { background: #fff; border-top: 1px solid #999; }
  .mock { box-shadow: none; }
  .cols { grid-template-columns: 32px minmax(0, 1fr); }
  a { color: var(--ink); border: 0; }
  .bio .contact a::after { content: ""; }
  section { break-inside: avoid; }

  /* The figure is hidden in print, so its adjacency rules must not collapse
     the spacing of whatever followed it on screen. */
  .figure + .pairs,
  .figure + .closing,
  .figure + .rows { margin-top: 24px; }
  .cells h3, .pairs h3, .steps h3 { min-height: 0; }
  .rows { background: none; padding: 0 14px; border-color: #999; border-top-color: #333; }
  .rows > div { break-inside: avoid; }
}
