/* KilnSeat design system. Studio earth: raw white, stoneware buff, slip blue.
   Light ground only. Contrast is built from type scale, rules and thrown circles. */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #1F1D1A;
  --primary: #3B5D77;
  --accent: #CDA98A;
  --muted: #67635C;

  --primary-tint-04: #F2F5F8;
  --primary-tint-08: #EAEFF4;
  --primary-tint-14: #DCE5EC;
  --primary-tint-24: #C4D2DE;
  --primary-deep: #2F4A5F;
  --accent-tint-10: #FAF3EC;
  --accent-tint-20: #F4E8DC;
  --accent-line: #E3CDB6;
  --buff: #F3EEE5;
  --buff-deep: #E9E1D4;
  --rule: #E2DCD1;
  --rule-strong: #CFC7B8;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 18px;
  --radius-round: 999px;

  --shadow-low: 0 1px 2px rgba(31, 29, 26, 0.05);
  --shadow-mid: 0 10px 28px rgba(31, 29, 26, 0.07);
  --shadow-lift: 0 18px 44px rgba(47, 74, 95, 0.12);

  --font-display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Chivo", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.42rem, 1.28rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.72rem, 1.48rem + 1.15vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.7rem + 1.9vw, 3.2rem);
  --step-5: clamp(2.5rem, 1.85rem + 3vw, 4.3rem);

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Clay texture: a fine grain of buff speckle laid over the raw white ground. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(205, 169, 138, 0.16) 0 1px, transparent 1.6px),
    radial-gradient(circle at 68% 44%, rgba(103, 99, 92, 0.1) 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 78%, rgba(205, 169, 138, 0.13) 0 1px, transparent 1.4px);
  background-size: 88px 88px, 133px 133px, 61px 61px;
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--space-4); }

a { color: var(--primary-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.15rem; }
li { margin-bottom: var(--space-2); }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -80px;
  z-index: 200;
  background-color: var(--primary);
  color: #FFFFFF;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-round);
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus { top: var(--space-4); color: #FFFFFF; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

/* ---------- thrown circle motif ---------- */
.throw {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  pointer-events: none;
}
.throw-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.rings {
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background-image: repeating-radial-gradient(
    circle at center,
    rgba(59, 93, 119, 0.14) 0 1px,
    rgba(59, 93, 119, 0) 1px 22px);
  opacity: 0.85;
}
.rings-a { top: -190px; right: -150px; }
.rings-b { bottom: -260px; left: -180px; width: 520px; height: 520px; }

@keyframes throwOut {
  0% { transform: scale(0.35); opacity: 0; }
  18% { opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.wheel-mark { display: inline-block; vertical-align: middle; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-low);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--primary-deep); }
.brand svg { flex: none; }

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background-color: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-round);
  color: var(--ink);
  cursor: pointer;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: var(--space-2);
}
.site-nav a:hover { color: var(--primary-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-round);
  border: 1px solid var(--primary);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}
.btn-primary:hover { background-color: var(--primary-deep); color: #FFFFFF; transform: translateY(-1px); }
.btn-ghost {
  background-color: var(--surface);
  color: var(--primary-deep);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: var(--step-0); }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 3px double var(--accent);
}

.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero h1 em {
  font-style: normal;
  color: var(--primary);
  border-bottom: 4px solid var(--accent);
  padding-bottom: 0.06em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  list-style: none;
  padding-left: 0;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-strip li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--buff-deep);
}
.hero-figure::after {
  content: "";
  position: absolute;
  left: -26px; bottom: -26px;
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background-image: repeating-radial-gradient(circle at center,
    rgba(205, 169, 138, 0.4) 0 1px, rgba(205, 169, 138, 0) 1px 12px);
}
.hero-figure figcaption {
  margin-top: var(--space-4);
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- generic section heads ---------- */
.section-head { max-width: 68ch; margin-bottom: var(--space-7); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .lede { margin-inline: auto; }

.band-buff { background-color: var(--buff); border-block: 1px solid var(--rule); }
.band-tint { background-color: var(--primary-tint-04); border-block: 1px solid var(--primary-tint-14); }
.band-accent { background-color: var(--accent-tint-10); border-block: 1px solid var(--accent-line); }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-low);
  position: relative;
  overflow: hidden;
}
.card h3 { font-size: var(--step-1); }
.card p:last-child { margin-bottom: 0; }

.pain-card { border-top: 3px solid var(--accent); }
.pain-cost {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -70px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background-image: repeating-radial-gradient(circle at center,
    rgba(59, 93, 119, 0.09) 0 1px, rgba(59, 93, 119, 0) 1px 16px);
}
.feature-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--primary-tint-24);
  background-color: var(--primary-tint-08);
  margin-bottom: var(--space-4);
}
.feature-icon svg { display: block; }

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; padding-left: 0; margin: 0; }
.steps li {
  position: relative;
  padding-left: 4.4rem;
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--primary-tint-24);
  background-color: var(--surface);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primary);
}
.steps h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.steps p { margin-bottom: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split figure { margin: 0; }
.split img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--buff-deep);
  box-shadow: var(--shadow-mid);
}
.split figcaption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); }

/* ---------- outcomes ---------- */
.outcome {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border-left: 4px solid var(--primary);
}
.outcome .num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.outcome h3 { font-size: var(--step-1); }
.outcome p { color: var(--muted); margin-bottom: 0; }

/* ---------- testimonials ---------- */
.testimonial {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: "";
  display: block;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background-image: repeating-radial-gradient(circle at center,
    rgba(205, 169, 138, 0.55) 0 1px, rgba(205, 169, 138, 0) 1px 6px);
  margin-bottom: var(--space-4);
}
.testimonial p { font-size: var(--step-1); line-height: 1.5; font-family: var(--font-display); }
.testimonial footer { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.testimonial footer .who { display: block; font-weight: 700; color: var(--ink); font-size: var(--step-0); }

.results-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding: var(--space-6);
  background-color: var(--primary-tint-08);
  border: 1px solid var(--primary-tint-24);
  border-radius: var(--radius-md);
  text-align: center;
}
.results-strip .num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--primary-deep);
}
.results-strip span.lbl { font-size: var(--step--1); color: var(--muted); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.tier {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier.featured {
  border: 2px solid var(--primary);
  background-color: var(--primary-tint-04);
  box-shadow: var(--shadow-mid);
}
.tier-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background-color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-round);
  margin-bottom: var(--space-4);
}
.tier h3 { margin-bottom: var(--space-2); }
.tier .amount { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--ink); }
.tier .per { font-size: var(--step--1); color: var(--muted); display: block; margin-top: var(--space-2); }
.tier ul { list-style: none; padding-left: 0; margin: var(--space-5) 0; }
.tier li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--rule-strong); }
.faq-item { border-bottom: 1px solid var(--rule-strong); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: 0;
  padding: var(--space-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  cursor: pointer;
}
.faq-q:hover { color: var(--primary-deep); }
.faq-q .sign {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--primary-tint-24);
  display: grid; place-items: center;
  position: relative;
  transition: transform 220ms ease;
}
.faq-q .sign::before, .faq-q .sign::after {
  content: "";
  position: absolute;
  background-color: var(--primary);
}
.faq-q .sign::before { width: 12px; height: 1.5px; }
.faq-q .sign::after { width: 1.5px; height: 12px; transition: opacity 200ms ease; }
.faq-q[aria-expanded="true"] .sign { transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .sign::after { opacity: 0; }
.faq-a { padding: 0 0 var(--space-5); max-width: 76ch; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */
.contact-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.form-card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-mid);
}
.field { margin-bottom: var(--space-5); }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #A2412F; }
.err { display: none; margin-top: var(--space-2); font-size: var(--step--1); color: #8E3423; }
.err.is-shown { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.consent { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: var(--space-5); }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 0.25rem; }
.consent label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.form-after { margin-top: var(--space-4); font-size: var(--step--1); color: var(--muted); }

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: var(--space-4); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background-image: repeating-radial-gradient(circle at center,
    rgba(59, 93, 119, 0.35) 0 1px, rgba(59, 93, 119, 0) 1px 4px);
}

/* ---------- author byline ---------- */
.byline {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-top: var(--space-7);
}
.byline p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background-color: var(--buff);
  border-top: 1px solid var(--rule-strong);
  padding-block: var(--space-8) var(--space-5);
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
}
.footer-col h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding-left: 0; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary-deep); text-decoration: underline; }
.footer-pitch { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.social {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-4);
}
.social li { margin: 0; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background-color: var(--surface);
  color: var(--primary-deep);
}
.social a:hover { border-color: var(--primary); }
.footer-base {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-strong);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- prose pages ---------- */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-6);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-4); }
.crumbs a { color: var(--muted); }
.prose { padding-block: var(--space-8); }
.prose h2 { font-size: var(--step-3); margin-top: var(--space-7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-6); }
.prose h2:first-of-type { margin-top: 0; }
.prose dl { margin: 0 0 var(--space-5); }
.prose dt { font-weight: 700; margin-top: var(--space-3); }
.prose dd { margin: 0 0 var(--space-2); color: var(--muted); }

.fact-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-6); }
.fact-table th, .fact-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  vertical-align: top;
}
.fact-table th { width: 34%; font-weight: 700; }

.map-group {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}
.map-group ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.map-group li { padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule); margin-bottom: var(--space-3); }
.map-group li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.map-group .desc { display: block; color: var(--muted); font-size: 0.92rem; }

.author-hero { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.author-portrait {
  border-radius: var(--radius-lg);
  border: 1px solid var(--buff-deep);
  box-shadow: var(--shadow-mid);
}
.pill-list { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill-list li {
  margin: 0;
  font-size: var(--step--1);
  border: 1px solid var(--primary-tint-24);
  background-color: var(--primary-tint-04);
  border-radius: var(--radius-round);
  padding: 0.3rem 0.85rem;
  color: var(--primary-deep);
}

.big-404 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.9;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

/* ---------- reveal motion: concentric expansion ---------- */
.reveal { opacity: 0; transform: translateY(18px) scale(0.985); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 900ms cubic-bezier(0.22, 0.68, 0.24, 1),
              transform 900ms cubic-bezier(0.22, 0.68, 0.24, 1);
}
.reveal:nth-child(2).is-in { transition-delay: 110ms; }
.reveal:nth-child(3).is-in { transition-delay: 220ms; }
.reveal:nth-child(4).is-in { transition-delay: 330ms; }

.throb {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  animation: throwOut 9s ease-out infinite;
}
.throb.d2 { animation-delay: 3s; }
.throb.d3 { animation-delay: 6s; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .contact-shell { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .author-hero { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background-color: var(--surface);
    border-block: 1px solid var(--rule);
    padding: var(--space-5) 1.25rem;
    box-shadow: var(--shadow-mid);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .header-inner { position: relative; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .results-strip { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .byline { flex-direction: column; align-items: flex-start; }
  .steps li { padding-left: 0; padding-top: 4.2rem; }
  .steps li::before { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { background-color: #FFFFFF; }
}

/* ============================================================
   Kiln Report: the magazine. Same ground, same rules, same
   thrown circle vocabulary. Light surfaces only.
   ============================================================ */

.mag-shell { padding-block: var(--space-7) var(--space-9); }

.mag-crumbs ol {
  list-style: none;
  padding-left: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}
.mag-crumbs li { margin: 0; }
.mag-crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: var(--space-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-round);
  vertical-align: 0.06em;
}
.mag-crumbs [aria-current="page"] { color: var(--ink); }

/* ---- magazine index -------------------------------------- */

.mag-index-head {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: var(--space-7);
}
.mag-index-head h1 { font-size: var(--step-5); margin-bottom: var(--space-5); }
.mag-index-head .mag-standfirst,
.mag-index-head .mag-index-note { max-width: 66ch; }
.mag-index-note { color: var(--muted); font-size: var(--step--1); margin-bottom: 0; }

.mag-standfirst {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--primary-deep);
  max-width: 60ch;
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
  align-items: start;
}

.mag-card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-low);
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
}
.mag-card:hover {
  box-shadow: var(--shadow-mid);
  transform: translateY(-2px);
  border-color: var(--primary-tint-24);
}
.mag-card-img { display: block; background-color: var(--buff); }
.mag-card-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.mag-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.mag-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}
.mag-card-title { font-size: var(--step-1); margin: 0; line-height: 1.2; }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary-deep); text-decoration: underline; }
.mag-card-dek { margin: 0; color: var(--muted); font-size: 0.95rem; }
.mag-card-meta {
  margin: auto 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--muted);
}
.mag-dot { padding-inline: 0.5rem; color: var(--accent); }

.mag-card.lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  border-color: var(--accent-line);
  background-color: var(--accent-tint-10);
}
.mag-card.lead .mag-card-img img { height: 100%; aspect-ratio: auto; min-height: 300px; }
.mag-card.lead .mag-card-body { padding: clamp(1.5rem, 3.4vw, 2.75rem); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: var(--step-0); }

/* ---- article page ---------------------------------------- */

.mag-head {
  max-width: 72ch;
  margin-bottom: var(--space-6);
}
.mag-head h1 { font-size: var(--step-4); margin-bottom: var(--space-5); }
.mag-head .mag-standfirst { margin-bottom: var(--space-5); }

.mag-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-strong);
}
.mag-byline p { margin: 0; }
.mag-byline-who { font-weight: 700; }
.mag-byline-who a { color: var(--primary-deep); }
.mag-byline-meta { font-size: var(--step--1); color: var(--muted); }

.mag-figure { margin: 0 0 var(--space-7); }
.mag-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
}
.mag-figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--muted);
}

.mag-body {
  max-width: 68ch;
  font-size: 1.06rem;
  line-height: 1.7;
}
.mag-body > h2 {
  font-size: var(--step-2);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}
.mag-body > h3 {
  font-size: var(--step-1);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.mag-body > p { margin-bottom: var(--space-5); }
.mag-body ul, .mag-body ol { margin-bottom: var(--space-5); padding-left: 1.35rem; }
.mag-body li { margin-bottom: var(--space-3); }
.mag-body strong { color: var(--ink); }

.mag-body blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  background-color: var(--primary-tint-04);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }

.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0 var(--space-6);
  font-size: 0.95rem;
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.mag-body thead th {
  background-color: var(--buff);
  font-weight: 700;
  border-bottom: 1px solid var(--rule-strong);
}

.inline-read {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  background-color: var(--buff);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.inline-read a { color: var(--primary-deep); font-weight: 600; }

/* ---- call to action -------------------------------------- */

.mag-cta {
  margin-top: var(--space-7);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background-color: var(--primary-tint-08);
  border: 1px solid var(--primary-tint-24);
  border-radius: var(--radius-lg);
}
.mag-cta h2 { font-size: var(--step-2); margin-bottom: var(--space-4); }
.mag-cta p { max-width: 60ch; }
.mag-cta p:last-child { margin-bottom: 0; }
.mag-cta-index { margin-top: var(--space-8); }

/* ---- author box ------------------------------------------ */

.mag-author {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-7);
  padding: var(--space-6);
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}
.mag-author-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-round);
  object-fit: cover;
  border: 1px solid var(--accent-line);
  background-color: var(--buff);
}
.mag-author-text h2 { font-size: var(--step-2); margin-bottom: var(--space-3); }
.mag-author-text p { color: var(--muted); max-width: 66ch; }
.mag-author-text p:last-child { margin-bottom: 0; }

/* ---- read also ------------------------------------------- */

.mag-related {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule-strong);
}
.mag-related > h2 { font-size: var(--step-3); margin-bottom: var(--space-6); }
.mag-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.mag-rel {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.mag-rel:hover { border-color: var(--primary-tint-24); box-shadow: var(--shadow-mid); }
.mag-rel-img { display: block; background-color: var(--buff); }
.mag-rel-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title {
  font-size: var(--step-1);
  line-height: 1.22;
  margin: var(--space-5) var(--space-5) var(--space-3);
}
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary-deep); text-decoration: underline; }
.mag-rel-dek {
  margin: 0 var(--space-5) var(--space-4);
  color: var(--muted);
  font-size: 0.92rem;
}
.mag-rel-meta {
  margin: auto var(--space-5) var(--space-5);
  font-size: var(--step--1);
  color: var(--muted);
}
.mag-related-all { margin: var(--space-6) 0 0; font-weight: 600; }

/* ---- home page latest articles strip ---------------------- */

.home-mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.home-mag-more { margin-top: var(--space-6); }

/* ---- author page article list ---------------------------- */

.mag-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.mag-list li {
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}
.mag-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.mag-list a { font-weight: 600; }
.mag-list .when { display: block; color: var(--muted); font-size: 0.9rem; }

/* ---- narrow screens -------------------------------------- */

@media (max-width: 1000px) {
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-related-grid,
  .home-mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .mag-card.lead { grid-template-columns: 1fr; }
  .mag-card.lead .mag-card-img img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-title { font-size: var(--step-2); }
}

@media (max-width: 640px) {
  .mag-shell { padding-block: var(--space-6) var(--space-8); }
  .mag-grid,
  .mag-related-grid,
  .home-mag-grid { grid-template-columns: 1fr; }
  .mag-head h1 { font-size: var(--step-3); }
  .mag-body { font-size: 1.02rem; }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author-photo { width: 104px; height: 104px; }
  .mag-figure img { border-radius: var(--radius-md); }
  .mag-byline { gap: var(--space-2); }
}

@media (max-width: 380px) {
  .mag-card-body { padding: var(--space-4); }
  .mag-rel-title { margin-inline: var(--space-4); }
  .mag-rel-dek, .mag-rel-meta { margin-inline: var(--space-4); }
  .mag-cta { padding: var(--space-5); }
}


/* Network column: five sibling products, rotated so every site is linked the same
   number of times. Sits in the footer link grid and inherits its type and colour. */
.site-network ul { list-style: none; margin: 0; padding: 0; }
.site-network li + li { margin-top: 0.4rem; }
.site-network a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
