/* ==========================================================================
   KAIZEN AFFILIATE — kaizenaffiliate.co
   Concept: "改善 ANNUAL STATEMENT — The Compounding Ledger"
   Paper & ink annual report; typography is the only decoration.

   RED BUDGET — #A31621 (hanko red) appears at most SEVEN times per full page:
     1. nav CTA button          2. hero primary CTA button
     3. hero equation result    4. contact hanko seal stamp
     5. hanko submit button     6. footer seal
     7. diligence-pack offer line
   Links/focus use red only as a *state* (hover/focus), not a resting color.
   On the ink slab, red text uses the lighter tint #E0684F (5.5:1 on ink).
   ========================================================================== */

/* Self-hosted fonts — no third-party requests (GDPR-clean, faster first paint).
   Noto Sans JP is subset to the two seal glyphs (改 U+6539, 送 U+9001). */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/noto-jp-900-0.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  unicode-range: U+6539;
}
@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/noto-jp-900-1.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  unicode-range: U+9001;
}

:root {
  --paper: #F5F1E8;
  --surface: #ECE6D9;
  --ink: #161310;
  --muted: #6B6459;
  --red: #A31621;
  --red-deep: #8E1220;
  --red-on-ink: #E0684F;
  --hairline: rgba(22, 19, 16, 0.18);
  --hairline-strong: rgba(22, 19, 16, 0.85);
  --paper-on-ink: #F5F1E8;
  --hairline-on-ink: rgba(245, 241, 232, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --font-jp: "Noto Sans JP", var(--font-sans);
  --nav-h: 3.5rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

a, button, [role="button"] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.ink-slab :focus-visible { outline-color: var(--red-on-ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase;
  padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}

/* ---------- top rule bar ---------- */
.rulebar {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap; overflow: hidden;
}

/* ---------- sticky nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  height: var(--nav-h);
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  background: rgba(245, 241, 232, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.14em;
}
.nav-seal {
  font-family: var(--font-jp); font-weight: 900; font-size: 0.85rem;
  line-height: 1; padding: 0.28em 0.3em;
  border: 1.5px solid var(--ink);
}
.nav-links {
  display: flex; gap: clamp(0.9rem, 2vw, 1.75rem);
  margin-left: auto;
  overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 200ms, border-color 200ms;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: none;
  transition: background-color 200ms, transform 200ms var(--ease);
}
.btn-red { background: var(--red); color: #fff; }            /* red budget 1 & 2 */
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.nav-cta { padding: 0.55rem 1.1rem; flex-shrink: 0; }
.ml-auto { margin-left: auto; }

.link-mono {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1.5px;
  transition: color 200ms;
}
.link-mono:hover { color: var(--red); }

/* ---------- shared section anatomy ---------- */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  border-top: 1px solid var(--hairline);
  overflow: clip;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.kicker {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
h2 {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
h3 {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.body-copy { max-width: 34em; margin-bottom: 1.5rem; }
.footnote {
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--muted); max-width: 46em;
}
.lc { text-transform: none; }

/* Variable-width breathing: one firing per heading, narrow range, height fixed
   by line-height so no vertical layout shift.
   All animation hidden-states are gated on html.js — no-JS visitors get the
   final, fully visible page. */
.wdth-breathe { font-variation-settings: "wdth" 108; }
html.js .wdth-breathe { font-variation-settings: "wdth" 96; }
html.js .wdth-breathe.in-view { font-variation-settings: "wdth" 112; transition: font-variation-settings 600ms var(--ease); }

/* Vertical margin numerals — the report's spine (≥1200px only) */
.margin-numeral {
  position: absolute; left: 1.1rem; top: clamp(4.5rem, 10vw, 8rem);
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  display: none;
}
@media (min-width: 1200px) { .margin-numeral { display: block; } }
.ink-slab .margin-numeral { color: rgba(245, 241, 232, 0.6); }

/* ---------- 01 · cover ---------- */
.cover {
  position: relative;
  min-height: calc(100svh - var(--nav-h) - 2rem);
  display: flex; align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: clip;
}
.glyph-bleed {
  position: absolute; right: -0.14em; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-jp); font-weight: 900;
  font-size: clamp(16rem, 55vh, 34rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(22, 19, 16, 0.22);
  pointer-events: none; user-select: none;
  z-index: 0;
}
.equation {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(3rem, 12vw, 11rem);
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: flex; flex-wrap: wrap; align-items: baseline;
  column-gap: 0.25em; row-gap: 0.1em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.equation sup {
  font-size: 0.32em; vertical-align: baseline;
  position: relative; top: -1.05em; left: 0.06em;
  letter-spacing: 0;
}
.eq-result { color: var(--red); }                            /* red budget 3 */
.cover-h1 {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  line-height: 0.98; letter-spacing: -0.02em;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.cover-sub { max-width: 34em; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.cover-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; }

/* ---------- ledger (dot leaders) ---------- */
.ledger { margin-block: clamp(2rem, 4vw, 3rem); }
.ledger-row {
  display: flex; align-items: baseline;
  padding-block: clamp(0.9rem, 2vw, 1.35rem);
  border-bottom: 1px solid var(--hairline);
}
.ledger-row:first-child { border-top: 1px solid var(--hairline); }
.ledger-row dt {
  order: 1;
  font-family: var(--font-mono); font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0; max-width: 60%;
}
.ledger-row::after {
  content: ""; order: 2; flex: 1;
  border-bottom: 2px dotted var(--hairline);
  margin: 0 clamp(0.6rem, 2vw, 1.25rem);
  align-self: center;
  transform-origin: left;
}
html.js .ledger:not(.in-view) .ledger-row::after { transform: scaleX(0); }
.ledger.in-view .ledger-row::after { transform: scaleX(1); transition: transform 500ms var(--ease); }
.ledger.in-view .ledger-row:nth-child(1)::after { transition-delay: 0ms; }
.ledger.in-view .ledger-row:nth-child(2)::after { transition-delay: 90ms; }
.ledger.in-view .ledger-row:nth-child(3)::after { transition-delay: 180ms; }
.ledger.in-view .ledger-row:nth-child(4)::after { transition-delay: 270ms; }
.ledger.in-view .ledger-row:nth-child(5)::after { transition-delay: 360ms; }
.ledger.in-view .ledger-row:nth-child(6)::after { transition-delay: 450ms; }
.ledger-row dd {
  order: 3;
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 03 · practice ---------- */
.practice-entry {
  display: grid; grid-template-columns: minmax(3rem, 6rem) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}
.practice-entry:last-child { border-bottom: 1px solid var(--hairline); }
.practice-index {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--muted); line-height: 1.1;
}
.practice-entry p { max-width: 38em; }
.spec-row {
  margin-top: 0.9rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 04 · loop ---------- */
.loop-strip {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.4rem, 4.2vw, 3.4rem);
  line-height: 1.15; letter-spacing: -0.01em;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.4em 0.5em;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.loop-arrow {
  flex: 0 0 clamp(1.5rem, 4vw, 3.5rem); height: 2px;
  background: var(--ink);
  position: relative;
}
.loop-arrow::after {
  content: ""; position: absolute; right: -1px; top: 50%;
  width: 0.5em; height: 0.5em;
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink);
  transform: translateY(-50%) rotate(45deg) scale(0.5);
  transform-origin: center;
}
.cadence { margin-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--hairline); }
.cadence-row {
  display: grid;
  grid-template-columns: 5rem 7rem 1fr;
  gap: 1rem; align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.cadence-time { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.cadence-verb { font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; }
.cadence-desc { color: var(--muted); max-width: 38em; }
.callout {
  background: var(--surface);
  border-left: 3px solid var(--ink);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.08em; line-height: 1.8;
  max-width: 44em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.pullquote {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.15; letter-spacing: -0.015em;
  max-width: 22em;
}

/* ---------- 05 · coverage ---------- */
.verticals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.vertical-entry p { color: var(--muted); max-width: 30em; }
.geo-index {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--hairline);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.geo-index span {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.1em;
  padding: clamp(0.9rem, 2vw, 1.4rem) clamp(1rem, 2.5vw, 1.75rem);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  flex-grow: 1; text-align: center;
}

/* ---------- 06 · terms — the ink slab ---------- */
.ink-slab {
  background: var(--ink); color: var(--paper-on-ink);
  border-top: none;
}
.ink-slab .kicker { color: var(--red-on-ink); }
.ink-slab .footnote { color: rgba(245, 241, 232, 0.6); }
.ledger-ink .ledger-row { border-color: var(--hairline-on-ink); }
.ledger-ink .ledger-row:first-child { border-top-color: var(--hairline-on-ink); }
.ledger-ink .ledger-row dt { color: rgba(245, 241, 232, 0.65); }
.ledger-ink .ledger-row::after { border-color: var(--hairline-on-ink); }
.ledger-ink .ledger-row dd { font-size: clamp(1rem, 2.4vw, 1.6rem); white-space: normal; text-align: right; }
.terms-lists {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-block: clamp(2rem, 4vw, 3rem);
}
.terms-list-head {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245, 241, 232, 0.65);
  margin-bottom: 1rem;
}
.onboarding-claim {
  font-size: 1.0625rem; max-width: 34em;
  margin-bottom: 1.5rem;
}
.mono-list { list-style: none; }
.mono-list li {
  font-family: var(--font-mono); font-size: 1rem; line-height: 1.6;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-bottom: 1px solid var(--hairline-on-ink);
  position: relative;
}
.mono-list li::before {
  content: "—"; position: absolute; left: 0;
  color: rgba(245, 241, 232, 0.65);
}
.onboarding { margin-top: clamp(2rem, 4vw, 3rem); }
.rail {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 1rem 2.25rem;
  counter-reset: rail;
}
.rail li {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 0.6rem;
  position: relative;
}
.rail li + li::before {
  content: "→"; position: absolute; left: -1.65rem;
  color: rgba(245, 241, 232, 0.6);
}
.rail-num { font-weight: 700; color: var(--red-on-ink); }

/* ---------- 07 · diligence ---------- */
.qa { margin-block: clamp(2rem, 4vw, 3rem); }
.qa-row {
  display: grid; grid-template-columns: minmax(240px, 2fr) 3fr;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--hairline);
}
.qa-row:last-child { border-bottom: 1px solid var(--hairline); }
.qa-row dt {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.1em; line-height: 1.6;
}
.qa-row dd { max-width: 34em; }
.diligence-offer {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.14em;
  color: var(--red);                                          /* red budget 7 */
  margin-block: 1.5rem;
}

/* ---------- 08 · contact ---------- */
.contact { padding-bottom: clamp(5rem, 10vw, 8rem); }
.mailto-block {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.mailto-giant {
  font-weight: 900;
  font-size: clamp(1.9rem, 5.6vw, 5.25rem);
  line-height: 1.05; letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
  transition: color 200ms, border-color 200ms;
  overflow-wrap: anywhere;
}
.mailto-giant:hover { color: var(--red); border-color: var(--red); }

/* hanko seals */
.hanko {
  font-family: var(--font-jp); font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;                        /* red budget 4 & 6 */
  mix-blend-mode: multiply;
  user-select: none;
}
.hanko-stamp {
  width: clamp(3.25rem, 7vw, 4.5rem); height: clamp(3.25rem, 7vw, 4.5rem);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}
html.js .hanko-stamp:not(.stamped) { transform: scale(1.4) rotate(-6deg); opacity: 0; }
.hanko-stamp.stamped {
  transform: scale(1) rotate(0deg); opacity: 1;
  transition: transform 250ms var(--ease), opacity 200ms;
}
.hanko-footer { width: 3rem; height: 3rem; font-size: 1.4rem; }

/* form */
.contact-form { max-width: 44em; margin-top: clamp(2rem, 4vw, 3rem); }
/* Without JS the form would GET-submit to the page URL with PII in the query
   string — hide it and let the <noscript> note point at the mailto instead. */
html:not(.js) .contact-form { display: none; }
.field { margin-bottom: 1.75rem; }
.field label {
  display: block;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: 1.0625rem;
  color: var(--ink);
  background: transparent;
  border: none; border-bottom: 1.5px solid var(--hairline-strong);
  padding: 0.5rem 0;
  border-radius: 0;
  transition: border-color 200ms;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus {
  border-bottom-color: var(--red);
}
.field textarea { resize: vertical; }
.hanko-submit {
  display: inline-flex; align-items: center; gap: 1.1rem;
  background: none; border: none;
  margin-top: 0.5rem;
}
.hanko-submit-seal {
  font-family: var(--font-jp); font-weight: 900;
  width: 3.5rem; height: 3.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  background: var(--red); color: #fff;                        /* red budget 5 */
  mix-blend-mode: multiply;
  transition: transform 200ms var(--ease);
}
.hanko-submit:hover .hanko-submit-seal { transform: translateY(-2px); }
.hanko-submit.stamping .hanko-submit-seal { transform: scale(0.88); }
.hanko-submit-label {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}
.form-note {
  margin-top: 1.25rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--muted); letter-spacing: 0.04em;
}

/* ---------- footer · colophon ---------- */
.colophon {
  border-top: 2px solid var(--ink);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.colophon-grid {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 2rem;
}
.colophon-lines p {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); line-height: 2;
  max-width: 62em;
}
.colophon-lines a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.colophon-lines a:hover { color: var(--red); }

/* ---------- reveal system ---------- */
html.js .reveal:not(.in-view) { opacity: 0; transform: translateY(16px); }
html.js .reveal.in-view {
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* keep the two links a diligence reader jumps to; hide the rest */
  .nav-links a { display: none; }
  .nav-links a[href="#terms"], .nav-links a[href="#diligence"] { display: block; }
  .qa-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .cadence-row { grid-template-columns: 3.5rem 4.5rem 1fr; gap: 0.75rem; }
}
@media (max-width: 600px) {
  .rulebar { justify-content: center; }
  .rulebar-hide-sm { display: none; }
  /* the hanko seal alone carries the brand; wordmark won't fit beside links + CTA */
  .nav { gap: 0.75rem; }
  .nav-word { display: none; }
  .nav-seal { font-size: 1.05rem; }
  .glyph-bleed { font-size: 14rem; -webkit-text-stroke-color: rgba(22, 19, 16, 0.14); }
  .cadence-row { grid-template-columns: 3.25rem 1fr; }
  .cadence-desc { grid-column: 1 / -1; }
  .ledger-row dt { max-width: 52%; }
  .ledger-row dd { font-size: 1.15rem; white-space: normal; text-align: right; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .reveal:not(.in-view) { opacity: 1 !important; transform: none !important; }
  html.js .wdth-breathe, html.js .wdth-breathe.in-view { font-variation-settings: "wdth" 106 !important; }
  html.js .ledger:not(.in-view) .ledger-row::after { transform: scaleX(1) !important; }
  html.js .hanko-stamp:not(.stamped) { transform: none !important; opacity: 1 !important; }
}
