/* ==========================================================================
   Sanaa Guild — sanaaguild.com
   Built on the IKEA design system (designmd slug: "ikea"), retinted to
   workshop tones: raw timber, steel blue, signal yellow.

   System traits preserved:
   - Deliberately limited palette: one dominant colour + near-black surface
     + white, plus a single high-voltage accent (here: signal yellow).
   - background token == primary token: full-bleed primary-colour hero band.
   - Flat. No shadows anywhere; depth comes from colour blocks and weight.
   - Single 8px radius token (radius.sm) used everywhere.
   - Hairline borders in the near-black border token.
   - Shallow 3-step type hierarchy, bold weights, negative tracking.
   - Non-linear spacing scale 4 / 16 / 20 / 24 / 36 / 120 / 140.
   - Motion: 200 / 500 / 700ms, ease-out only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* colour — retinted from ikea tokens, roles preserved */
  --steel: #14476B;          /* primary + background (was #0159a3) */
  --steel-hi: #1D6493;       /* primary hover */
  --on-steel: #ffffff;       /* on-primary */
  --ink: #12171C;            /* surface + border (was #000000) */
  --ink-hi: #1D262E;         /* raised ink */
  --ink-line: #2A3138;       /* hairline on ink */
  --signal: #FFC61E;         /* accent (was #0000ee) — dark carriers only */
  --signal-hi: #FFD553;
  --timber: #C08A46;         /* raw timber */
  --timber-dp: #8A5F2C;
  --paper-0: #FBF7F1;        /* light canvas */
  --paper-1: #F0E6D6;        /* second light canvas */
  --text: #16110C;           /* text (was #111111) */
  --text-mut: #55483A;       /* muted on light */
  --text-inv: #FFFFFF;       /* text on dark */
  --text-inv-mut: #D8CDBC;   /* muted on dark */

  /* spacing — ikea scale */
  --s1: 4px;
  --s2: 16px;
  --s3: 20px;
  --s4: 24px;
  --s5: 36px;
  --s6: 120px;
  --s7: 140px;
  --gutter: 24px;
  --maxw: 1200px;
  --section-y: clamp(56px, 8vw, 120px);

  /* radius — single token */
  --r: 8px;

  /* motion */
  --fast: 200ms;
  --base: 500ms;
  --slow: 700ms;
  --ease: ease-out;

  /* type */
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.35rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); letter-spacing: -0.026em; }
h3 { font-size: 1.13rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
p  { margin: 0; }
p + p { margin-top: var(--s2); }

a { color: var(--steel); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-paper { background: var(--paper-1); }
.section-ink { background: var(--ink); color: var(--text-inv); }
.section-steel { background: var(--steel); color: var(--on-steel); }

/* focus — visible everywhere, inverted on dark carriers */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
.section-ink :focus-visible,
.section-steel :focus-visible,
.hero :focus-visible { outline-color: var(--signal); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Shared type utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 var(--s3);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.eyebrow-dark { color: var(--timber-dp); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.19rem);
  line-height: 1.55;
  max-width: 56ch;
}

.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head h2 { margin-bottom: var(--s4); }
.section-lede { color: var(--text-mut); font-size: 1.06rem; line-height: 1.6; }
.section-ink .section-lede,
.section-steel .section-lede { color: var(--text-inv-mut); }

.fine-print {
  margin-top: var(--s5);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-mut);
  max-width: 62ch;
}

.svg-mono { font-family: var(--mono); }
.svg-sans { font-family: var(--sans); }

.panel-caption {
  margin-top: var(--s3);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-mut);
}
.panel-caption span {
  color: var(--timber-dp);
  font-weight: 600;
  margin-right: 8px;
}
.caption-light { color: var(--text-inv-mut); }
.caption-light span { color: var(--signal); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }

.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-hi); color: var(--ink); }

.btn-ink { background: var(--ink); color: var(--paper-0); }
.btn-ink:hover { background: var(--steel-hi); border-color: var(--ink); color: #fff; }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--signal); }

.btn-ghost-light {
  background: transparent;
  color: var(--on-steel);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* --------------------------------------------------------------------------
   5. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--steel);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-steel);
}
.brand-mark { display: block; width: 36px; flex: 0 0 36px; }
.brand-word {
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-word b { font-weight: 800; }

.primary-nav { display: flex; align-items: center; gap: var(--s5); }
.primary-nav ul { display: flex; align-items: center; gap: var(--s4); }
.primary-nav a {
  color: var(--on-steel);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.primary-nav a:hover,
.primary-nav a.is-current { color: var(--signal); border-bottom-color: var(--signal); }
.primary-nav .nav-cta { padding: 8px 18px; border-bottom: 2px solid var(--ink); color: var(--ink); }
.primary-nav .nav-cta:hover { color: var(--ink); border-color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r);
  color: var(--on-steel);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: var(--s1); width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; background: var(--signal); }
.nav-toggle-label { line-height: 1; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--steel);
  color: var(--on-steel);
  border-bottom: 2px solid var(--ink);
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px);
}
.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
/* ease-out entrances at the system's base / slow durations */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy {
  min-width: 0;
  max-width: 40rem;
  animation: rise var(--base) var(--ease) both;
}
.hero h1 { margin-bottom: var(--s4); }
.hero .lede { color: #EDF3F7; }
.hero .btn-row { margin-top: var(--s5); }
.hero-note {
  margin-top: var(--s4);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #B9CEDD;
  max-width: 46ch;
  border-left: 3px solid var(--signal);
  padding-left: 14px;
}

.hero-panel { min-width: 0; animation: rise var(--slow) var(--ease) both; }
.tools-svg {
  width: 100%;
  height: auto;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: var(--s3);
}
.ticks line { stroke: #46525C; stroke-width: 2; }

/* --------------------------------------------------------------------------
   7. Trade band
   -------------------------------------------------------------------------- */
.trade-band {
  background: var(--signal);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-block: var(--s3);
}
.trade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px var(--s4);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trade-list li { display: flex; align-items: center; }
.trade-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   8. Problem
   -------------------------------------------------------------------------- */
.grid-3 { display: grid; gap: var(--s4); }
.prob-card {
  background: var(--paper-1);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: var(--s5) var(--s4) var(--s4);
  position: relative;
}
.prob-num {
  position: absolute;
  top: -2px;
  left: -2px;
  background: var(--ink);
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: var(--r) 0 var(--r) 0;
}
.prob-card h3 { margin: var(--s3) 0 12px; }
.prob-card p { color: var(--text-mut); font-size: 0.98rem; }

.br-lg { display: none; }

/* --------------------------------------------------------------------------
   9. Solution / ladder
   -------------------------------------------------------------------------- */
.ladder-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: stretch; }
.ladder-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-hi);
  border: 2px solid var(--ink-line);
  border-radius: var(--r);
  padding: var(--s4);
}
.ladder-visual svg { width: 100%; height: auto; }

.ladder-list { display: grid; gap: var(--s3); }
.ladder-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px var(--s3);
  align-items: start;
  border-top: 2px solid var(--ink-line);
  padding-top: var(--s3);
}
.rung-tag {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  background: var(--signal);
  color: var(--ink);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}
.ladder-list h3 { color: var(--text-inv); }
.ladder-list p { color: var(--text-inv-mut); font-size: 0.96rem; margin-top: 6px; }

/* --------------------------------------------------------------------------
   10. Features
   -------------------------------------------------------------------------- */
.grid-feat { display: grid; gap: var(--s4); }
.feat-card {
  background: var(--paper-0);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: var(--s4);
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.feat-card:hover { background: var(--paper-1); transform: translateY(-3px); }
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--signal);
  border-radius: var(--r);
  margin-bottom: var(--s3);
}
.feat-icon svg { width: 28px; height: 28px; }
.feat-card h3 { margin-bottom: 10px; }
.feat-card p { color: var(--text-mut); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   11. Timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: var(--s5); }
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: repeating-linear-gradient(180deg, var(--timber) 0 10px, transparent 10px 18px);
}
.tl-step { position: relative; padding-left: 72px; }
.tl-node {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 44px;
  background: var(--paper-1);
  padding: 4px 0;
}
.tl-node svg { width: 44px; height: 44px; }
.tl-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--timber-dp);
  margin-bottom: 8px;
}
.tl-step h3 { margin-bottom: 8px; }
.tl-step p { color: var(--text-mut); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   12. Credential
   -------------------------------------------------------------------------- */
.cred-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
.cred-visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--r);
}
.cred-copy h3 { font-size: 1.3rem; margin-bottom: var(--s3); }

.tick-list { display: grid; gap: 12px; }
.tick-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.99rem;
  line-height: 1.5;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--signal);
  border-bottom: 3px solid var(--signal);
  transform: rotate(-45deg);
}
.tick-dark li::before { border-color: var(--steel); }

.disclaimer {
  margin-top: var(--s4);
  background: rgba(0, 0, 0, 0.22);
  border-left: 4px solid var(--signal);
  border-radius: 0 var(--r) var(--r) 0;
  padding: var(--s3);
  font-size: 0.93rem;
  line-height: 1.6;
  color: #E4EEF5;
}
.cred-copy .btn { margin-top: var(--s4); }

/* --------------------------------------------------------------------------
   13. Program modules
   -------------------------------------------------------------------------- */
.grid-mod { display: grid; gap: var(--s4); }
.mod-card {
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper-0);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
}
.mod-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s3);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.mod-id { background: var(--ink); color: var(--signal); padding: 5px 10px; border-radius: var(--r); }
.mod-hours { color: var(--text-mut); }
.mod-card h3 { margin-bottom: 10px; }
.mod-card p { color: var(--text-mut); font-size: 0.95rem; }
.mod-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: var(--s3);
}
.meter { display: inline-flex; gap: var(--s1); }
.meter i {
  display: block;
  width: 20px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: transparent;
}
.meter i.on { background: var(--signal); }
.mod-rung {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-mut);
}

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.grid-price { display: grid; gap: var(--s4); align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-0);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: var(--s5) var(--s4) var(--s4);
}
.price-card-lead { background: var(--ink); color: var(--text-inv); }
.price-card-lead .price-sub,
.price-card-lead .price-unit { color: var(--text-inv-mut); }
.price-card-lead .tick-dark li::before { border-color: var(--signal); }
.price-flag {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 0 var(--r) 0 var(--r);
}
.price-card h3 { font-size: 1.22rem; }
.price { display: flex; align-items: baseline; gap: 10px; margin: var(--s3) 0 6px; }
.price-num { font-size: 2.7rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-unit {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mut);
}
.price-sub { color: var(--text-mut); font-size: 0.93rem; margin-bottom: var(--s4); }
.price-card .tick-list { margin-bottom: var(--s4); }
.price-card .tick-list li { font-size: 0.94rem; }
.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   15. Credibility / evidence
   -------------------------------------------------------------------------- */
.stat-row {
  display: grid;
  gap: var(--s4);
  border-top: 2px solid var(--ink-line);
  padding-top: var(--s5);
}
.stat { display: grid; gap: 8px; align-content: start; }
.stat-num {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--signal);
}
.stat-flag {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  padding: 4px 8px;
}
.stat-label { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.stat-def {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--text-inv-mut);
}

.method-grid { display: grid; gap: var(--s4); margin-top: clamp(36px, 5vw, 72px); }
.method-card {
  background: var(--ink-hi);
  border: 2px solid var(--ink-line);
  border-radius: var(--r);
  padding: var(--s4);
}
.method-card h3 { color: var(--signal); margin-bottom: 12px; }
.method-card p { color: var(--text-inv-mut); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   16. Closing CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--signal);
  color: var(--ink);
  border-block: 2px solid var(--ink);
  padding-block: clamp(48px, 6vw, 88px);
}
.cta-inner { display: grid; gap: var(--s5); align-items: center; }
.cta-band h2 { margin-bottom: var(--s3); }
.cta-band p { max-width: 48ch; font-size: 1.03rem; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-inv);
  padding-block: clamp(48px, 6vw, 96px) var(--s5);
}
.footer-grid { display: grid; gap: var(--s5); }
.footer-brand .brand-mark { width: 40px; margin-bottom: var(--s3); }
.footer-tag { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; max-width: 22ch; }
.footer-meaning {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-inv-mut);
  max-width: 34ch;
}
.footer-nav { display: grid; gap: var(--s5); }
.footer-nav h2 {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--timber);
  margin-bottom: var(--s2);
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a {
  color: var(--text-inv);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover { color: var(--signal); border-bottom-color: var(--signal); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px var(--s4);
  margin-top: clamp(36px, 4vw, 64px);
  padding-top: var(--s4);
  border-top: 1px solid var(--ink-line);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-inv-mut);
}

/* --------------------------------------------------------------------------
   18. Contact page
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--steel);
  color: var(--on-steel);
  border-bottom: 2px solid var(--ink);
  padding-block: clamp(48px, 7vw, 92px);
}
.page-head h1 { max-width: 18ch; margin-bottom: var(--s4); }
.page-head .lede { color: #EDF3F7; }

.contact-section { background: var(--paper-1); }
.contact-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }

.form-wrap {
  background: var(--paper-0);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px);
}
.form-wrap h2 { font-size: 1.7rem; margin-bottom: 12px; }
.form-intro { color: var(--text-mut); font-size: 0.95rem; margin-bottom: var(--s5); }

.field { margin-bottom: var(--s4); }
.field label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.req-mark, .opt-mark {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
}
.req-mark { background: var(--ink); color: var(--signal); }
.opt-mark { background: transparent; color: var(--text-mut); border: 1px solid var(--text-mut); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 13px 14px;
  min-height: 50px;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.field textarea { resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: none; }
.field input::placeholder,
.field textarea::placeholder { color: #8A7E70; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--steel); }
.field .has-error { border-color: #A2331B; background: #FDF1EE; }

.hint { margin-top: 8px; font-size: 0.85rem; color: var(--text-mut); }
.error {
  margin-top: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #8E2C16;
  padding-left: 22px;
  position: relative;
}
.error::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  background: #8E2C16;
  color: #fff;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 16px;
  text-align: center;
}

.form-foot {
  margin-top: var(--s4);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--text-mut);
}

.form-success { text-align: left; }
.form-success:focus { outline: none; }
.success-mark { display: block; width: 48px; margin-bottom: var(--s3); }
.form-success h3 { font-size: 1.5rem; margin-bottom: 12px; }
.form-success p { color: var(--text-mut); max-width: 46ch; }
.form-success .btn { margin-top: var(--s4); }

.contact-aside { display: grid; gap: var(--s4); }
.aside-card {
  background: var(--paper-0);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: var(--s4);
}
.aside-card h2 {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.aside-card-ink { background: var(--ink); color: var(--text-inv); border-color: var(--ink); }
.aside-card-ink h2 { color: var(--signal); }
.aside-mail { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; word-break: break-word; }
.aside-mail a { color: var(--signal); }
.aside-mail a:hover { color: var(--signal-hi); }
.aside-note { margin-top: 10px; font-size: 0.92rem; color: var(--text-inv-mut); }

.aside-dl {
  margin: var(--s4) 0 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--ink-line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px var(--s3);
  font-size: 0.88rem;
}
.aside-dl dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--timber);
  align-self: center;
}
.aside-dl dd { margin: 0; color: var(--text-inv-mut); }

.next-list { display: grid; gap: var(--s4); }
.next-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); align-items: start; }
.next-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--steel);
  color: #fff;
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.next-list h3 { font-size: 1.02rem; margin-bottom: 6px; }
.next-list p { font-size: 0.92rem; color: var(--text-mut); }

.aside-card-signal { background: var(--signal); border-color: var(--ink); }
.aside-card-signal p { font-size: 0.93rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   19. Responsive — 768px and up
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    background: var(--steel);
    border-bottom: 2px solid var(--ink);
    padding: var(--s4) var(--gutter) var(--s5);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }
  .primary-nav .nav-cta { justify-content: center; border-bottom-width: 2px; }
  .header-inner { position: relative; }
}

@media (min-width: 600px) {
  .grid-mod { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  :root { --gutter: 36px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-feat { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-price { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1.4fr; gap: var(--s6); }
  .br-lg { display: inline; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.12fr; }
  .ladder-grid { grid-template-columns: 0.85fr 1fr; }
  .cred-grid { grid-template-columns: 1.05fr 1fr; }
  .contact-grid { grid-template-columns: 1.15fr 1fr; }
  .cta-inner { grid-template-columns: 1.3fr auto; }
  .grid-mod { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }

  /* timeline turns horizontal */
  .timeline { grid-template-columns: repeat(5, 1fr); gap: var(--s4); }
  .timeline::before {
    left: 0;
    right: 0;
    top: 26px;
    bottom: auto;
    width: auto;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--timber) 0 10px, transparent 10px 18px);
  }
  .tl-step { padding-left: 0; padding-top: 68px; }
  .tl-node { padding: 0 10px 0 0; width: 54px; }
}

@media (min-width: 1024px) {
  .grid-feat { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1440px) {
  :root { --section-y: var(--s7); }
}

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover, .feat-card:hover { transform: none; }
}
