/* ==========================================================================
   HS-2(R) PRO — site styles
   Design direction: Japanese forest / Satoyama. Paper-toned light base,
   deep forest sections for contrast, hinoki-wood accent, generous whitespace.
   Single committed light look (marketing site), no external dependencies.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  --ink:        #161a17;
  --ink-2:      #3b4640;
  --ink-3:      #6d7872;

  --forest-900: #10231a;
  --forest-800: #1b3629;
  --forest-700: #27503d;
  --forest-500: #3d7358;
  --moss:       #7d9c83;

  --hinoki:     #cfa87a;
  --hinoki-deep:#a8763f;

  --paper:      #fbf9f5;
  --paper-2:    #f3efe7;
  --paper-3:    #e9e3d7;
  --line:       #ded7c9;
  --line-soft:  rgba(22, 26, 23, 0.10);

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

  --wrap: 1140px;
  --narrow: 720px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(3.75rem, 9vw, 7.5rem);

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16, 35, 26, 0.06), 0 4px 12px rgba(16, 35, 26, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 35, 26, 0.06), 0 14px 40px rgba(16, 35, 26, 0.09);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.9rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: var(--forest-700); text-decoration-color: rgba(39, 80, 61, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 2px solid var(--forest-500); outline-offset: 3px; border-radius: 2px; }

/* --- layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: var(--narrow); margin-inline: auto; }
.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--forest-900); color: #e6ece7; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: var(--hinoki); text-decoration-color: rgba(207, 168, 122, 0.4); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.15em; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--split { grid-template-columns: 1fr; align-items: start; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 62rem) { .grid--split { grid-template-columns: 0.9fr 1.1fr; } }

/* --- type helpers --------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hinoki-deep);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: 0.55; flex: none; }
.center .eyebrow { justify-content: center; }
.section--dark .eyebrow, .hero--dark .eyebrow { color: var(--hinoki); }

.lede { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem); line-height: 1.6; color: var(--ink-2); }
.section--dark .lede { color: #cbd8cf; }
.small { font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); }
.section--dark .small { color: #9fb0a6; }
.pull {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--forest-800);
  border-left: 3px solid var(--hinoki);
  padding-left: clamp(1rem, 3vw, 1.75rem);
  margin: 0;
}
.section--dark .pull { color: #f2f7f3; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--forest-700); color: #fff; }
.btn--primary:hover { background: var(--forest-800); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--forest-500); color: var(--forest-700); }
.section--dark .btn--primary, .hero--dark .btn--primary { background: var(--hinoki); color: var(--forest-900); }
.section--dark .btn--primary:hover, .hero--dark .btn--primary:hover { background: #e0bd94; color: var(--forest-900); }
.section--dark .btn--ghost, .hero--dark .btn--ghost { border-color: rgba(230, 236, 231, 0.3); color: #e6ece7; }
.section--dark .btn--ghost:hover, .hero--dark .btn--ghost:hover { border-color: var(--hinoki); color: var(--hinoki); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  color: var(--forest-700);
}
.arrow-link::after { content: "→"; transition: transform 0.18s var(--ease); }
.arrow-link:hover::after { transform: translateX(3px); }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 249, 245, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(16, 35, 26, 0.05); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark sup { font-size: 0.5em; vertical-align: super; }
.wordmark small { display: block; font-family: var(--sans); font-size: 0.625rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: -0.15em; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a {
  font-size: 0.875rem; font-weight: 550; color: var(--ink-2); text-decoration: none;
  padding: 0.25rem 0; border-bottom: 1px solid transparent; transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nav a:hover { color: var(--forest-700); border-bottom-color: var(--hinoki); }
.nav a[aria-current="page"] { color: var(--forest-700); border-bottom-color: var(--forest-500); }
.nav .btn { padding: 0.6rem 1.1rem; font-size: 0.875rem; border-bottom: 0; }
.nav .btn:hover { border-bottom: 1px solid transparent; }
/* .nav a sets a color at higher specificity than .btn--primary, so restate it here. */
.nav .btn--primary, .nav .btn--primary:hover { color: #fff; }
.nav .btn--ghost { color: var(--ink); }

.nav-toggle { display: none; }
@media (max-width: 60rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; border: 1px solid var(--line); border-radius: 999px;
    padding: 0.5rem 0.9rem; font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; color: var(--ink);
    cursor: pointer;
  }
  .nav {
    position: fixed; inset: 4.25rem 0 auto; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero--dark { background: var(--forest-900); color: #e6ece7; }
.hero--dark h1 { color: #fff; }
.hero--dark .lede { color: #c4d3c9; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 78% -10%, rgba(125, 156, 131, 0.18), transparent 70%),
    radial-gradient(40rem 24rem at 8% 105%, rgba(207, 168, 122, 0.14), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 22ch; }
.hero .lede { max-width: 54ch; }
.hero--center h1, .hero--center .lede { margin-inline: auto; }

/* --- cards ---------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm);
}
.card--flat { background: var(--paper-2); border-color: var(--line-soft); box-shadow: none; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--moss); }
.card--link .arrow-link { margin-top: auto; padding-top: 1.25rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-2); }
.section--dark .card { background: rgba(255, 255, 255, 0.045); border-color: rgba(230, 236, 231, 0.14); box-shadow: none; }
.section--dark .card p { color: #c4d3c9; }

.num {
  font-family: var(--serif); font-size: 0.9375rem; font-weight: 600;
  width: 2rem; height: 2rem; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--hinoki); border-radius: 50%; color: var(--hinoki-deep);
  margin-bottom: 1.1rem;
}
.section--dark .num { color: var(--hinoki); }

/* --- flow diagram --------------------------------------------------------- */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.flow li {
  margin: 0; display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em;
}
.flow li span {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.5rem 0.85rem; color: var(--ink);
}
.flow li:not(:last-child)::after { content: "↓"; color: var(--hinoki-deep); font-family: var(--sans); }
.flow li:not(:last-child) { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.flow--emph li:last-child span { background: var(--forest-700); border-color: var(--forest-700); color: #fff; font-weight: 600; }
.section--dark .flow li span { background: rgba(255, 255, 255, 0.06); border-color: rgba(230, 236, 231, 0.18); color: #e6ece7; }
.section--dark .flow--emph li:last-child span { background: var(--hinoki); border-color: var(--hinoki); color: var(--forest-900); }

@media (min-width: 48rem) {
  .flow:not(.flow--stack) { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
  .flow:not(.flow--stack) li,
  .flow:not(.flow--stack) li:not(:last-child) { flex-direction: row; align-items: center; gap: 0.65rem; }
  .flow:not(.flow--stack) li:not(:last-child)::after { content: "→"; }
}
/* Stays vertical at every width — for steps too long to sit in a row without
   the connecting arrow stranding itself at the end of a wrapped line. */
.flow--stack li span { width: 100%; }

/* --- comparison ----------------------------------------------------------- */
.compare { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 52rem) { .compare { grid-template-columns: 1fr 1fr; } }
/* min-width: 0 — without it a grid item's automatic minimum is the min-content
   width of the inline SVG's intrinsic size, which pushes the column past the
   viewport on narrow screens. */
.compare > div { border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.1rem); border: 1px solid var(--line); min-width: 0; }
.compare .is-them { background: var(--paper-2); }
.compare .is-us { background: #fff; border-color: var(--moss); box-shadow: var(--shadow-sm); position: relative; }
.compare h4 { color: var(--ink-3); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.compare .is-us h4 { color: var(--hinoki-deep); }
.compare .idea { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); font-size: 0.9375rem; color: var(--ink-2); }

/* --- comparison diagrams: a line that ends vs a loop we tap ---------------- */
/* Text inside an SVG scales with the box, so cap the width — otherwise the
   labels balloon when the panels stack into one wide column. */
.dgm { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0.75rem 0 0; overflow: visible; }
.dgm text { font-family: var(--sans); }
.dgm .t-main { font-size: 16px; font-weight: 600; fill: var(--ink); }
.dgm .t-sub { font-size: 13px; fill: var(--ink-3); }
.dgm .t-centre { font-size: 13px; font-weight: 600; fill: var(--ink-3); letter-spacing: 0.02em; }
.dgm .t-chip { font-size: 16px; font-weight: 700; fill: #fff; letter-spacing: 0.01em; }
.dgm .t-reg { font-size: 9px; }

/* the one-way sequence */
.dgm--line .rail { stroke: var(--line); stroke-width: 2.5; }
.dgm--line .node { fill: var(--paper-2); stroke: #a89e8e; stroke-width: 2.5; }
.dgm--line .node-end { fill: #8d857a; }
.dgm--line .stop-bar { stroke: #a89e8e; stroke-width: 3; stroke-linecap: round; }
.is-them .dgm .t-main { font-weight: 550; fill: var(--ink-2); }

/* the cycle */
.dgm--loop .ring-base { fill: none; stroke: #e6d8c2; stroke-width: 3.5; }
.dgm--loop .ring-flow { fill: none; stroke: var(--forest-500); stroke-width: 3.5; stroke-linecap: round; }
.dgm--loop .node-on { fill: var(--forest-700); }
.dgm--loop .node-tap { fill: var(--hinoki-deep); stroke: var(--paper); stroke-width: 2.5; }
.dgm--loop .arrow, .dgm--loop .arrow-tap { fill: var(--forest-700); }
.dgm--loop .tap { stroke: var(--hinoki-deep); stroke-width: 2.5; stroke-dasharray: 5 5; }
.dgm--loop .chip { fill: var(--forest-700); }

/* dashes travelling clockwise round the ring. 10+14 = one 24-unit period, so an
   offset of -48 lands exactly two periods on and the loop is seamless. */
.cycle-flow { stroke-dasharray: 10 14; animation: cycle-turn 3.4s linear infinite; }
@keyframes cycle-turn { to { stroke-dashoffset: -48; } }

/* --- older vs current model: direct, or routed through the soil ------------ */
.model { display: grid; gap: clamp(1.75rem, 4vw, 2.6rem); }
.model-row { display: grid; gap: 0.9rem; }
.model-row + .model-row { padding-top: clamp(1.75rem, 4vw, 2.6rem); border-top: 1px solid rgba(230, 236, 231, 0.14); }
.model-label { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.model-row--old .model-label { color: var(--moss); }
.model-row--new .model-label { color: var(--hinoki); }
.model-chain { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.model-note { margin: 0; font-size: 0.875rem; line-height: 1.6; color: #9fb0a6; max-width: 62ch; }
.model-row--new .model-note { color: #cbd8cf; }

.chip {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; white-space: nowrap;
  padding: 0.55rem 0.9rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(230, 236, 231, 0.2);
  color: #e6ece7;
}
.chip--mute { opacity: 0.5; }
.chip--accent { background: var(--hinoki); border-color: var(--hinoki); color: var(--forest-900); font-weight: 600; }

/* Colour comes from `color` so the arrowhead can inherit it via currentColor. */
.chain-arrow { flex: none; width: 2.25rem; height: 2px; background: currentColor; position: relative; color: var(--moss); }
.model-row--new .chain-arrow { color: var(--hinoki); }
.chain-arrow::after {
  content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

/* Bracketed on both sides so the incoming and outgoing arrows visibly connect to
   the group rather than to whichever chip happens to sit level with them. */
.model-vias {
  list-style: none; margin: 0; display: grid; gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-left: 2px solid var(--hinoki);
  border-right: 2px solid var(--hinoki);
}
.model-vias li { margin: 0; }
.model-vias .chip { width: 100%; justify-content: center; }

@media (max-width: 46rem) {
  .model-chain { flex-direction: column; align-items: flex-start; }
  .chain-arrow { width: 2px; height: 1.6rem; margin-left: 1.15rem; }
  .chain-arrow::after {
    right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%);
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 7px solid currentColor; border-bottom: 0;
  }
}

.verdict { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.875rem; line-height: 1.55; margin: 1.5rem 0 0; }
.verdict-mark { font-size: 1.05rem; line-height: 1; flex: none; }
.is-them .verdict { color: var(--ink-3); }
.is-us .verdict { color: var(--hinoki-deep); font-weight: 600; }

/* Phone widths: the panel is narrow enough that the viewBox scales down past
   comfortable reading, so raise the sizes in viewBox units to compensate. */
@media (max-width: 30rem) {
  .dgm .t-main { font-size: 21px; }
  .dgm .t-sub { font-size: 17px; }
  .dgm .t-centre { font-size: 17px; }
  .dgm .t-chip { font-size: 21px; }
  .dgm .t-reg { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { .cycle-flow { animation: none; } }
@media print { .cycle-flow { animation: none; } }
.compare .flow { flex-direction: column; align-items: stretch; }
.compare .flow li, .compare .flow li:not(:last-child) { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.compare .flow li:not(:last-child)::after { content: "↓"; }
.compare .flow li span { width: 100%; }

/* --- spec table ----------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--paper-2); font-family: var(--sans); font-weight: 650; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
tbody th { font-weight: 600; width: 34%; min-width: 11rem; color: var(--ink); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* --- notice / callout ----------------------------------------------------- */
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--moss);
  background: var(--paper-2); border-radius: var(--r-md);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.notice h4 { margin-bottom: 0.45rem; }
.notice p { color: var(--ink-2); margin-bottom: 0.7em; }
.section--dark .notice { background: rgba(255, 255, 255, 0.05); border-color: rgba(230, 236, 231, 0.16); border-left-color: var(--hinoki); }
.section--dark .notice p { color: #c4d3c9; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.35rem; font-weight: 400; color: var(--hinoki-deep); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 0 1.4rem; max-width: 62ch; color: var(--ink-2); }

/* --- steps (how to use) --------------------------------------------------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps > li {
  counter-increment: s; position: relative; padding-left: 3.25rem; margin-bottom: 1.9rem;
}
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -0.15rem;
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--forest-700); color: #fff;
  font-family: var(--serif); font-size: 0.9375rem; font-weight: 600;
}
.steps h4 { margin-bottom: 0.3rem; }
.steps p { color: var(--ink-2); margin-bottom: 0; }

/* --- illustrations -------------------------------------------------------- */
.illus { margin: 0; }
.illus img { width: 100%; border-radius: var(--r-lg); background: var(--paper-2); display: block; }
.illus figcaption {
  margin-top: 0.85rem; font-size: 0.8125rem; line-height: 1.55; color: var(--ink-3);
  max-width: 56ch;
}
.section--dark .illus figcaption { color: #9fb0a6; }
.illus--bleed img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
/* Fixed height with bottom-aligned art, so differently sized objects share a
   baseline and the copy beneath them lines up across cards. */
.illus--object { display: grid; place-items: end center; min-height: 15rem; padding-bottom: 1.25rem; }
.illus--object img { width: auto; max-height: 13rem; background: none; }

/* --- placeholders (remove styling once content is final) ------------------ */
.ph {
  font-family: var(--mono);
  font-size: 0.8125em;
  font-weight: 500;
  letter-spacing: 0;
  background: #fff6da;
  color: #7a5a00;
  border: 1px dashed #c9a227;
  border-radius: var(--r-sm);
  padding: 0.1em 0.4em;
  white-space: normal;
}
.section--dark .ph { background: rgba(255, 246, 218, 0.14); color: #f2d99a; border-color: rgba(201, 162, 39, 0.7); }
.ph-block {
  display: block; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6;
  background: #fff6da; color: #7a5a00; border: 1px dashed #c9a227; border-radius: var(--r-md);
  padding: 1rem 1.1rem; margin: 0 0 1.15em;
}
.ph-img {
  margin: 0; display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, var(--paper-3) 10px, var(--paper-3) 20px);
  border: 1px dashed var(--hinoki-deep); border-radius: var(--r-lg);
  color: var(--hinoki-deep); font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6;
  padding: 1.5rem;
}
.ph-img--portrait { aspect-ratio: 3 / 4; }
.ph-img--square { aspect-ratio: 1 / 1; }
.ph-img span { display: block; max-width: 30ch; }

/* --- footer --------------------------------------------------------------- */
.site-footer { background: var(--forest-900); color: #a8bab0; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.9375rem; }
.site-footer h4 { color: #fff; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #d5e0d8; text-decoration: none; }
.site-footer a:hover { color: var(--hinoki); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6em; }
.footer-top { display: grid; gap: clamp(2rem, 5vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-brand { max-width: 32ch; }
.footer-brand .wordmark { color: #fff; }
.footer-brand .wordmark small { color: var(--moss); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(230, 236, 231, 0.14);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.8125rem; color: #8fa398;
}

/* --- reveal animation ----------------------------------------------------- */
/* Scoped to .js so content stays visible when scripting is unavailable. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .card--link:hover { transform: none; }
}

/* --- print ---------------------------------------------------------------- */
@media print {
  /* Print lays out the whole page without scrolling, so the observer never
     fires for below-fold elements. */
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .site-header, .nav-toggle { display: none; }
  /* Dark sections invert to paper. The blanket override is deliberate: it also
     catches the inline accent colours used on a few headings. */
  .section--dark, .hero--dark, .site-footer { background: #fff !important; }
  .section--dark *, .hero--dark *, .site-footer * { color: #111 !important; }
  .section--dark .card, .section--dark .notice, .section--dark .flow li span {
    background: #f6f4ef !important; border-color: #ccc !important;
  }
  .section--dark .flow--emph li:last-child span { background: #e2d3bd !important; }
  .section { break-inside: auto; }
  .card, .notice, .compare > div { break-inside: avoid; }
}
