/* ============================================================
   ERIC THE HEATER GUY — "Ember Ledger" design system
   Structural re-layout. Orange leads. Sentence case. Human-made.

   PATTERN LIBRARY (vary per page — never the same rhythm twice):
   .hero-min / .hero-split   ultra-minimal heroes
   .eyebrow                  mono label, varied text, never formulaic
   .proof-band               ruled fact strip (no checkmarks)
   .ledger / .ledger-plain   ruled rows replacing card grids
   .split-uneven             asymmetric 7/5 image+text
   .statement                big single sentence + CTA, huge whitespace
   .field-note               inset margin-note block
   .faq-ruled                ruled FAQ rows
   .cta-offset               card that breaks the grid
   .duo                      two large editorial rows (not 4 cards)
   ============================================================ */

:root {
  --paper: #faf7f0;
  --paper-2: #f3eee1;
  --ink: #1b1712;
  --ink-soft: #4a443b;
  --muted: #7a7266;
  --ember: #e65d2f;
  --ember-deep: #b8471f;
  --ember-soft: #f7e3d7;
  --line: #ddd5c3;
  --line-strong: #1b1712;
  --dark: #171310;
  --dark-ink: #f4efe4;
  --dark-muted: #a89e8d;
  --success: #5c7a3f;
  --error: #c23b2a;
  --wrap: clamp(24px, 6vw, 88px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font-family: "Archivo", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Sentence case everywhere. No uppercase headlines. Ever. */
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
/* em in headlines: italic, same color. Never the accent-word trick. */
h1 em, h2 em, h3 em { font-style: italic; color: inherit; }
p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ember); color: #fff;
  padding: 10px 16px; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

.wrap { padding-left: var(--wrap); padding-right: var(--wrap); }
.wrap-narrow { padding-left: var(--wrap); padding-right: var(--wrap); max-width: 1080px; }

/* ---------- eyebrow: mono, lowercase, orange tick. Vary the text. ---------- */
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 1.4rem;
  display: flex; align-items: baseline; gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 0.55rem; height: 0.55rem;
  background: var(--ember);
  flex: none;
  transform: translateY(-1px);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 72px;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
}
.wordmark-mark { height: 28px; width: auto; flex: none; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a, .nav-dropbtn {
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav > a:hover, .nav-dropbtn:hover { border-bottom-color: var(--ember); }
.site-nav > a[aria-current="page"] { border-bottom-color: var(--ember); }
.nav-dropdown { position: relative; }
.nav-dropmenu {
  display: none; position: absolute; top: 100%; left: -12px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 8px 8px 0 rgba(27, 23, 18, 0.12);
  min-width: 220px; padding: 8px;
}
.nav-dropdown.open .nav-dropmenu { display: block; }
.nav-dropmenu a {
  display: block; padding: 10px 12px; text-decoration: none; font-size: 0.95rem;
}
.nav-dropmenu a:hover { background: var(--ember-soft); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-cta {
  font-family: "IBM Plex Mono", monospace; font-size: 0.85rem;
  text-decoration: none; border-bottom: 2px solid var(--ember);
  padding-bottom: 2px; white-space: nowrap;
}
.mobile-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: 1rem; padding: 0.9rem 1.7rem;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn.primary { background: var(--ember); border-color: var(--ember-deep); color: #fff; }
.btn.primary:hover { box-shadow: 4px 4px 0 var(--ember-deep); }
.btn.light { border-color: var(--dark-ink); color: var(--dark-ink); }
.btn.light:hover { box-shadow: 4px 4px 0 var(--ember); }
.btn.primary-light { background: var(--ember); border-color: var(--ember); color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }
.text-link { color: var(--ember-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }

/* ---------- heroes ---------- */
.hero-min { padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero-min h1 { max-width: 16ch; margin-bottom: 1.4rem; }
.hero-min .lede { font-size: 1.2rem; max-width: 52ch; color: var(--ink-soft); }
.hero-split {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: end; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-split h1 { margin-bottom: 1.4rem; }
.hero-split .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 44ch; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { border: 1px solid var(--line-strong); }
.hero-figure figcaption {
  font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--muted);
  margin-top: 0.7rem; display: flex; gap: 0.5rem; align-items: baseline;
}
.hero-figure figcaption::before { content: ""; width: 2rem; height: 2px; background: var(--ember); flex: none; transform: translateY(-4px); }
.hero-figure.break-right { margin-right: calc(var(--wrap) * -0.6); }

/* inner pages: compact typographic hero, no photo band */
.inner-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.inner-hero h1 { max-width: 18ch; margin-bottom: 1.2rem; }
.inner-hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
/* legacy hero with photo band: flatten to typographic */
.hero { padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero .hero-bg, .inner-hero .hero-bg { display: none; }
.hero h1 { max-width: 16ch; margin-bottom: 1.4rem; }
.hero .lede { font-size: 1.2rem; max-width: 52ch; color: var(--ink-soft); }
.hero-tagline { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--muted); margin-top: 2rem; }

/* ---------- proof band: ruled facts, no checkmarks ---------- */
.proof-band { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.proof-band-inner {
  display: flex; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--ink-soft);
}
.proof-fact { padding: 1rem 1.6rem 1rem 0; margin-right: 1.6rem; border-right: 1px solid var(--line); }
.proof-fact:last-child { border-right: 0; }
.proof-fact strong { color: var(--ink); font-weight: 600; }
/* legacy proof-strip: same treatment */
.proof-strip { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.proof-strip-inner {
  display: flex; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--ink-soft);
}
.proof-item { padding: 1rem 1.6rem 1rem 0; margin-right: 1.6rem; border-right: 1px solid var(--line); display: inline-flex; align-items: center; gap: 0.5rem; }
.proof-item:last-child { border-right: 0; }
.proof-item .tick { display: none; }

/* ---------- ledger: ruled rows replacing card grids ---------- */
.ledger, .ledger-plain { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 2px solid var(--line-strong); }
.ledger > li, .ledger-plain > li { border-bottom: 1px solid var(--line); }
.ledger > li > a, .ledger-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  align-items: baseline; padding: 1.6rem 0; text-decoration: none;
}
.ledger-plain-row { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 2rem; padding: 1.5rem 0; align-items: start; }
.ledger-tag { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: var(--ember-deep); margin-bottom: 0.4rem; }
.ledger-title { font-family: "Fraunces", serif; font-size: 1.35rem; font-weight: 560; }
.ledger-title a { text-decoration: none; }
.ledger-title a:hover { color: var(--ember-deep); }
.ledger-desc { color: var(--ink-soft); margin: 0.3rem 0 0; font-size: 1rem; max-width: 52ch; }
.ledger-arrow { font-size: 1.5rem; color: var(--ember); transition: transform 0.15s ease; }
a:hover .ledger-arrow { transform: translateX(6px); }
/* legacy rule-list -> ledger look */
.rule-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--line-strong); }
.rule-list > li { border-bottom: 1px solid var(--line); padding: 1.4rem 0; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 2rem; align-items: start; }
.rule-list .bullet, .rule-list .num { display: none; }
.rule-list strong { font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 560; display: block; margin-bottom: 0.3rem; }
.rule-list p { color: var(--ink-soft); margin: 0; max-width: 52ch; }
.rule-list > li > div { display: contents; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-dark { background: var(--dark); color: var(--dark-ink); background-image: var(--grain); }
.section-dark.alt { background: #211a14; }
.section-dark .eyebrow { color: var(--dark-muted); }
.section-dark .lede, .section-dark .ledger-desc { color: var(--dark-muted); }
.section-dark .ledger, .section-dark .ledger-plain { border-top-color: var(--dark-ink); }
.section-dark .ledger > li, .section-dark .ledger-plain > li { border-bottom-color: #3a342c; }
.section-dark .ledger-title { color: var(--dark-ink); }
.section-dark .ledger-tag { color: var(--ember); }
/* legacy section classes */
.section-light { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-light.tint { background: var(--paper-2); }
.sec-head { max-width: 720px; margin-bottom: 2.5rem; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
.sec-head p { color: var(--ink-soft); font-size: 1.1rem; }
.sec-head.indent { margin-left: clamp(0px, 8vw, 120px); }
/* legacy section-head */
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
/* legacy content-grid -> asymmetric split */
.content-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.content-grid .content-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.2rem; }

/* ---------- split-uneven ---------- */
.split-uneven {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.split-uneven.flip { grid-template-columns: 5fr 7fr; }
.split-uneven figure { margin: 0; }
.split-uneven figure img { border: 1px solid var(--line-strong); }
.split-uneven h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.2rem; }
.offset-down { margin-top: clamp(2rem, 5vw, 4.5rem); }

/* ---------- statement ---------- */
.statement { text-align: left; max-width: 900px; }
.statement h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 1.6rem; }
.statement p { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- field-note ---------- */
.field-note {
  border: 1px solid var(--line-strong); background: var(--paper);
  padding: 1.8rem; position: relative;
  box-shadow: 10px 10px 0 var(--ember-soft);
}
.field-note .note-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 0.75rem;
  color: var(--ember-deep); margin-bottom: 0.8rem; display: block;
}
.field-note p:last-child { margin-bottom: 0; }

/* ---------- duo: two large editorial rows (not 4 cards) ---------- */
.duo { display: grid; gap: 0; border-top: 2px solid var(--line-strong); margin-top: 2.5rem; }
.duo-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: 2.5rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.duo-row h3 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.duo-row p { color: var(--ink-soft); }
.duo-row .who { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }
/* legacy model-grid cards -> ledger rows */
.model-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 2px solid var(--line-strong); display: block; }
.model-card { border-bottom: 1px solid var(--line); padding: 1.8rem 0; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 2rem; align-items: start; }
.model-card h3 { font-size: 1.5rem; }
.model-card p { color: var(--ink-soft); margin: 0.3rem 0; max-width: 56ch; }
.model-card .who { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--muted); }
/* legacy area-grid -> ruled rows */
.area-grid { display: block; border-top: 2px solid var(--line-strong); margin-top: 2.5rem; }
.area-grid > div { border-bottom: 1px solid var(--line); padding: 1.5rem 0; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 2rem; }
.area-grid h3 { font-size: 1.4rem; }
.area-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; color: var(--ink-soft); }
.area-grid ul li::after { content: "·"; color: var(--ember); margin-left: 1.2rem; }
.area-grid ul li:last-child::after { content: ""; }
/* legacy router-list -> ledger links */
.router-list { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 2px solid var(--line-strong); }
.router-list li { border-bottom: 1px solid var(--line); }
.router-list li a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.6rem 0; text-decoration: none; }
.router-list .rq { font-family: "Fraunces", serif; font-size: 1.35rem; display: block; }
.router-list .rd { color: var(--ink-soft); font-size: 1rem; display: block; margin-top: 0.3rem; font-family: "Archivo", sans-serif; }
.router-list .ra { font-size: 1.5rem; color: var(--ember); }
/* legacy check-list -> square bullets */
.check-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.9rem; color: var(--ink-soft); display: block; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55rem; height: 0.55rem; background: var(--ember); }
.check-list .tick { display: none; }
.check-list strong { color: var(--ink); }
/* legacy photo-strip -> offset pair */
.photo-strip { display: grid; grid-template-columns: 7fr 5fr; gap: 1.5rem; margin-top: 2.5rem; }
.photo-strip figure { margin: 0; }
.photo-strip figure:last-child { margin-top: 3.5rem; }
.photo-strip img { border: 1px solid var(--line-strong); }
.photo-strip figcaption { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--muted); margin-top: 0.6rem; }
/* legacy callout -> offset CTA */
.callout { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.callout-inner {
  background: var(--dark); color: var(--dark-ink); background-image: var(--grain);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  margin-left: clamp(0px, 6vw, 90px);
  box-shadow: 14px 14px 0 var(--ember);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.callout-inner h2 { color: var(--dark-ink); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 0.8rem; }
.callout-inner p { color: var(--dark-muted); margin: 0; }
.callout-inner .btn { border-color: var(--ember); background: var(--ember); color: #fff; }

/* ---------- FAQ: ruled rows ---------- */
.faq-ruled, .faq-list, .faq { border-top: 2px solid var(--line-strong); margin-top: 2rem; }
.faq-ruled details, .faq-list details, .faq details { border-bottom: 1px solid var(--line); }
.faq-ruled summary, .faq-list summary, .faq summary {
  cursor: pointer; list-style: none; padding: 1.3rem 0;
  font-family: "Fraunces", serif; font-size: 1.2rem; font-weight: 560;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.faq-ruled summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.faq-ruled summary::after, .faq-list summary::after, .faq summary::after { content: "+"; color: var(--ember); font-size: 1.5rem; flex: none; }
.faq-ruled details[open] summary::after, .faq-list details[open] summary::after, .faq details[open] summary::after { content: "–"; }
.faq-ruled .answer, .faq-list p, .faq .answer { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- CTA offset card ---------- */
.cta-offset {
  background: var(--dark); color: var(--dark-ink);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  margin-left: clamp(0px, 6vw, 90px);
  margin-right: calc(var(--wrap) * -0.4);
  box-shadow: 14px 14px 0 var(--ember);
  background-image: var(--grain);
}
.cta-offset h2 { color: var(--dark-ink); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
.cta-offset p { color: var(--dark-muted); }
.cta-offset .hero-actions { margin-top: 1.8rem; }

/* ---------- brand strip ---------- */
.brand-strip { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.brand-strip .label { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; display: block; }
.brand-list { font-family: "Fraunces", serif; font-size: clamp(1.2rem, 2.4vw, 1.7rem); display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.brand-list .sep { color: var(--ember); }

/* ---------- photo treatments ---------- */
.photo-pair { display: grid; grid-template-columns: 7fr 5fr; gap: 1.5rem; margin-top: 2.5rem; }
.photo-pair figure { margin: 0; }
.photo-pair figure:last-child { margin-top: 3.5rem; }
.photo-pair img { border: 1px solid var(--line-strong); }
.photo-pair figcaption { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- process steps: ruled rows, numbers retired ---------- */
.process { border-top: 2px solid var(--line-strong); margin-top: 2rem; }
.step { border-bottom: 1px solid var(--line); padding: 1.5rem 0; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 2rem; align-items: start; }
.step .num { display: none; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); margin: 0.3rem 0 0; max-width: 56ch; }
@media (max-width: 900px) { .step { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------- lists: square bullets, not ticks ---------- */
.sq-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.sq-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.9rem; color: var(--ink-soft); }
.sq-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.55rem; height: 0.55rem; background: var(--ember);
}
.sq-list li strong { color: var(--ink); }

/* ---------- forms ---------- */
.form-section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.form-section .field { margin-bottom: 1.3rem; }
.form-section label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.form-section input, .form-section select, .form-section textarea {
  width: 100%; padding: 0.85rem 1rem; font: inherit;
  border: 1px solid var(--line-strong); background: #fff; border-radius: 0;
}
.form-section input:focus, .form-section select:focus, .form-section textarea:focus {
  outline: 3px solid var(--ember-soft); border-color: var(--ember);
}
.form-status { margin-top: 1rem; font-weight: 600; }

/* plan stepper */
.plan-steps { position: relative; }
.plan-step { display: none; }
.plan-step.active { display: block; }
.plan-progress { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.plan-bar { height: 6px; background: var(--line); margin-bottom: 2rem; }
.plan-bar-fill { height: 100%; background: var(--ember); width: 0; transition: width 0.3s ease; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-ink); background-image: var(--grain); padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem; }
.footer-grid, .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer h3 { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; font-weight: 600; color: var(--ember); margin-bottom: 1.1rem; letter-spacing: 0.03em; }
.footer-brand { font-family: "Fraunces", serif; font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--dark-ink); }
.site-footer p { color: var(--dark-muted); font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer ul a { color: var(--dark-muted); text-decoration: none; font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--ember); }
.footer-bottom {
  border-top: 1px solid #3a342c; padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--dark-muted);
}

/* ---------- mobile action bar ---------- */
.mobile-action-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--dark); border-top: 1px solid #3a342c;
}
.mobile-action-bar a {
  flex: 1; text-align: center; padding: 1rem; text-decoration: none;
  color: var(--dark-ink); font-weight: 600;
}
.mab-quote { background: var(--ember); color: #fff !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .mobile-toggle {
    display: inline-block; background: none; border: 2px solid var(--ink);
    padding: 0.5rem 1rem; font-weight: 600; cursor: pointer;
  }
  .mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 0.5rem var(--wrap) 1.5rem; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 0.8rem 0; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
  .mobile-nav-label { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--muted); display: block; padding: 1rem 0 0.2rem; }
  .mobile-sub { padding-left: 1.2rem !important; }
  .hero-split, .split-uneven, .content-grid, .duo-row, .photo-pair, .photo-strip, .footer-top, .footer-grid { grid-template-columns: 1fr; }
  .hero-figure.break-right { margin-right: 0; }
  .photo-pair figure:last-child, .photo-strip figure:last-child { margin-top: 0; }
  .offset-down { margin-top: 0; }
  .cta-offset { margin-left: 0; margin-right: 0; }
  .ledger-plain-row, .ledger-row, .rule-list > li, .model-card, .area-grid > div { grid-template-columns: 1fr; gap: 0.4rem; }
  .callout-inner { grid-template-columns: 1fr; margin-left: 0; }
  .mobile-action-bar { display: flex; }
  body { padding-bottom: 60px; }
  .phone-cta { display: none; }
}

/* ============================================================
   THEME E — "Ember Ledger, refined"
   Apple-like restraint · Vaderwerks confidence · generous air.
   Override layer: everything below refines Theme D's system.
   ============================================================ */

:root {
  --space-section: clamp(6rem, 12vw, 11rem);
  --space-hero: clamp(5.5rem, 11vw, 10rem);
  --ease-out: cubic-bezier(.22,.61,.36,1);
}

body { line-height: 1.7; }

/* ---------- type: bigger, more confident, shorter measure ---------- */
h1 { font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -0.02em; }
.sec-head h2, .section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.sec-head, .section-head { margin-bottom: 3.5rem; max-width: 760px; }
.sec-head p, .section-head p { font-size: 1.15rem; }
.statement h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
.statement p { font-size: 1.2rem; }

/* ---------- whitespace: the main event ---------- */
.section, .section-light { padding: var(--space-section) 0; }
.section-tight { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-dark { padding: var(--space-section) 0; }
.form-section { padding: var(--space-section) 0; }
.hero-min, .hero-split, .hero { padding: var(--space-hero) 0 clamp(4rem, 8vw, 7rem); }
.inner-hero { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-min h1, .hero-split h1, .hero h1, .inner-hero h1 { max-width: 14ch; }
.lede, .hero-min .lede, .hero-split .lede, .hero .lede, .inner-hero .lede { font-size: 1.25rem; line-height: 1.65; }
.hero-actions { margin-top: 2.6rem; }
.brand-strip { padding: 3.5rem 0; }
.callout { padding: var(--space-section) 0; }
.proof-strip-inner { padding-top: 0.4rem; padding-bottom: 0.4rem; }

/* breathing room between dense rows */
.ledger > li > a, .ledger-row { padding: 2rem 0; }
.router-list li a { padding: 2rem 0; }
.model-card { padding: 2.2rem 0; }
.step { padding: 2rem 0; }
.duo-row { padding: 3rem 0; }
.faq-ruled summary, .faq-list summary, .faq summary { padding: 1.6rem 0; }

/* ---------- header: slimmer, quieter chrome ---------- */
.header-inner { min-height: 64px; }
.site-header { border-bottom: 1px solid rgba(27,23,18,.1); }
.nav-dropmenu { box-shadow: 0 18px 44px rgba(27,23,18,.14); border-radius: 3px; }
.wordmark { font-size: 1.22rem; }

/* ---------- buttons: clean pill, soft lift ---------- */
.btn {
  border-radius: 999px;
  padding: 1rem 2.1rem;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(27,23,18,.18); }
.btn.primary:hover { box-shadow: 0 12px 28px rgba(230,93,47,.38); }
.btn.light:hover { box-shadow: 0 12px 26px rgba(230,93,47,.4); }
.callout-inner .btn:hover { box-shadow: 0 12px 28px rgba(230,93,47,.45); }

/* ---------- scroll reveal (JS adds .rv; IO adds .rv-in) ---------- */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.rv.rv-in { opacity: 1; transform: none; }

/* hero image parallax target */
.hero-figure img { will-change: transform; }

/* ---------- reduced motion: everything visible, no animation ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-figure img { will-change: auto; }
}

/* ---------- responsive: keep air on small screens, tighten type ---------- */
@media (max-width: 900px) {
  :root { --space-section: clamp(4rem, 10vw, 6rem); --space-hero: clamp(3.5rem, 10vw, 5.5rem); }
  h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .rv { transform: translateY(18px); }
}
