/* QuiltCounter design system
   Patchwork warm: cotton white and butter, dusty blue thread, stitched dashed borders.
   Light only. Contrast comes from type, rules, tints and photography. */

:root {
  --bg: #FCF9F1;
  --surface: #FFFFFF;
  --ink: #22211C;
  --primary: #3E6285;
  --accent: #F2CE7E;
  --muted: #66645A;

  --primary-050: #F1F5F9;
  --primary-100: #E2EAF2;
  --primary-200: #C7D6E5;
  --primary-300: #9FB8CF;
  --accent-050: #FEF8EA;
  --accent-100: #FDF0D3;
  --accent-200: #F9E2AE;
  --butter: #FBF2DC;
  --cotton: #FFFDF8;
  --rule: #E6DFCF;
  --rule-strong: #D7CDB6;

  --font-display: "Quattrocento", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1: clamp(1.16rem, 1.09rem + 0.35vw, 1.32rem);
  --step-2: clamp(1.4rem, 1.28rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.48rem + 1.1vw, 2.35rem);
  --step-4: clamp(2.05rem, 1.65rem + 2vw, 3.25rem);

  --sp-1: 0.35rem;
  --sp-2: 0.7rem;
  --sp-3: 1.1rem;
  --sp-4: 1.6rem;
  --sp-5: 2.4rem;
  --sp-6: 3.4rem;
  --sp-7: 5rem;
  --sp-8: 7rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --shadow-1: 0 1px 2px rgba(34, 33, 28, 0.06), 0 6px 18px rgba(34, 33, 28, 0.05);
  --shadow-2: 0 2px 4px rgba(34, 33, 28, 0.07), 0 18px 40px rgba(34, 33, 28, 0.08);
  --maxw: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* butter and cotton patchwork ground: four quiet blocks tiled behind everything */
  background-image:
    linear-gradient(135deg, rgba(242, 206, 126, 0.12) 0 25%, transparent 25% 50%, rgba(242, 206, 126, 0.12) 50% 75%, transparent 75%),
    linear-gradient(45deg, rgba(62, 98, 133, 0.05) 0 25%, transparent 25% 50%, rgba(62, 98, 133, 0.05) 50% 75%, transparent 75%);
  background-size: 128px 128px, 128px 128px;
  background-position: 0 0, 64px 64px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 var(--sp-3); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-1); }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-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(--sp-3); top: -60px;
  z-index: 999;
  background-color: var(--surface);
  color: var(--ink);
  border: 2px solid var(--primary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: var(--sp-3); }

.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--sp-7); }
.section--tint { background-color: var(--butter); border-block: 1px solid var(--rule); }
.section--cotton { background-color: var(--cotton); border-block: 1px solid var(--rule); }

/* ---------- stitched dashed border, the signature motif ---------- */
.stitched {
  border: 2px dashed var(--rule-strong);
  border-radius: var(--r-lg);
  background-color: var(--surface);
}
.stitched--blue { border-color: var(--primary-300); }

/* a stitch run that draws itself in on reveal */
.stitch-rule {
  height: 2px;
  width: 100%;
  border: 0;
  margin: var(--sp-4) 0;
  background-image: repeating-linear-gradient(to right, var(--primary-300) 0 12px, transparent 12px 22px);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.1s ease;
}
.reveal.is-in .stitch-rule, .stitch-rule.is-in { background-size: 100% 100%; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background-image: repeating-linear-gradient(to right, var(--rule-strong) 0 6px, transparent 6px 12px);
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.btn--primary {
  background-color: rgba(62, 98, 133, 1);
  color: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-1);
}
.btn--primary:hover { background-color: rgba(48, 78, 108, 1); color: rgba(255, 255, 255, 1); transform: translateY(-2px); }
.btn--ghost {
  background-color: var(--surface);
  color: var(--ink);
  border: 2px dashed var(--primary-300);
}
.btn--ghost:hover { background-color: var(--primary-050); color: var(--ink); transform: translateY(-2px); }
.btn--wide { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(252, 249, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-1); background-color: rgba(255, 253, 248, 0.97); }
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark svg { flex: none; }
.wordmark:hover { color: var(--primary); }
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  padding-bottom: 2px;
  border-bottom: 2px dashed transparent;
}
.main-nav a:hover { color: var(--primary); border-bottom-color: var(--primary-300); }
.header-cta { margin-left: var(--sp-3); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background-color: var(--surface);
  border: 2px dashed var(--rule-strong);
  border-radius: var(--r-md);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero { padding-block: var(--sp-7) var(--sp-6); position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-6);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero h1 .quilted {
  background-image: linear-gradient(transparent 62%, var(--accent-200) 62% 92%, transparent 92%);
}
.hero-sub { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  border-top: 2px dashed var(--rule-strong);
  padding-top: var(--sp-4);
}
.trust-strip div { font-size: 0.92rem; color: var(--muted); }
.trust-strip strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--r-lg);
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-2);
  width: 100%;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: -14px -14px 26px 26px;
  border: 2px dashed var(--primary-300);
  border-radius: var(--r-lg);
  z-index: -1;
}
.hero-tag {
  position: absolute;
  left: -16px;
  bottom: 22px;
  background-color: var(--surface);
  border: 2px dashed var(--accent);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  box-shadow: var(--shadow-1);
  font-size: 0.9rem;
  max-width: 15rem;
}
.hero-tag b { font-family: var(--font-display); display: block; font-size: 1.1rem; }

/* ---------- patchwork block grid ---------- */
.blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-4);
}
.block {
  background-color: var(--surface);
  border: 2px dashed var(--rule-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  position: relative;
}
.block::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 16px; height: 16px;
  background-image: linear-gradient(135deg, var(--accent-200) 50%, var(--primary-100) 50%);
  border-radius: 2px;
}
.block h3 { margin-bottom: var(--sp-2); }
.block p { margin-bottom: 0; color: var(--muted); }
.block .cost {
  display: inline-block;
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  border-top: 2px dashed var(--accent);
  padding-top: var(--sp-2);
}

/* ---------- steps ---------- */
.steps-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 4.1rem;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 2px dashed var(--rule);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.7rem; height: 2.7rem;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  background-color: var(--accent-100);
  border: 2px dashed var(--primary-300);
  border-radius: var(--r-md);
}
.steps h3 { margin-bottom: var(--sp-1); }
.steps p { color: var(--muted); margin-bottom: 0; }
.section-figure img {
  border-radius: var(--r-lg);
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-2);
}
.section-figure figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: var(--sp-2);
  border-left: 2px dashed var(--accent);
  padding-left: var(--sp-2);
}

/* ---------- features ---------- */
.feature { padding: var(--sp-4); }
.feature .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background-color: var(--primary-050);
  border: 2px dashed var(--primary-200);
  margin-bottom: var(--sp-3);
}
.feature .icon svg { width: 26px; height: 26px; }
svg.stitch-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--primary); }

/* ---------- outcomes ---------- */
.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-4); }
.outcome {
  background-color: var(--accent-050);
  border: 2px dashed var(--accent-200);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.outcome .num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.6rem + 2vw, 2.9rem);
  line-height: 1;
  color: var(--primary);
  display: block;
  margin-bottom: var(--sp-2);
}
.outcome p { margin-bottom: 0; color: var(--muted); }
.outcome h3 { font-size: 1.05rem; }

/* ---------- testimonials ---------- */
.quilt-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
.testimonial {
  background-color: var(--surface);
  border: 2px dashed var(--rule-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: "";
  position: absolute;
  left: var(--sp-4); top: -2px;
  width: 58px; height: 4px;
  background-image: repeating-linear-gradient(to right, var(--accent) 0 8px, transparent 8px 14px);
}
.testimonial p { font-size: 1.03rem; }
.testimonial footer { font-size: 0.9rem; color: var(--muted); border-top: 2px dashed var(--rule); padding-top: var(--sp-2); }
.testimonial footer b { display: block; color: var(--ink); font-size: 0.98rem; }
.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  background-color: var(--primary-050);
  border: 2px dashed var(--primary-200);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  text-align: center;
}
.results strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--primary); }
.results span { font-size: 0.9rem; color: var(--muted); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--sp-4); align-items: start; }
.tier {
  background-color: var(--surface);
  border: 2px dashed var(--rule-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
}
.tier--best { border: 2px solid var(--primary); background-color: var(--cotton); box-shadow: var(--shadow-2); position: relative; }
.tier--best .flag {
  position: absolute;
  top: -14px; left: var(--sp-4);
  background-color: var(--accent);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-sm);
}
.tier .price { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--ink); }
.tier .per { color: var(--muted); font-size: 0.92rem; }
.tier ul { list-style: none; padding: 0; margin: var(--sp-3) 0 var(--sp-4); }
.tier li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.tier li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 2px;
  background-image: repeating-linear-gradient(to right, var(--primary) 0 4px, transparent 4px 7px);
}
.tier .btn { margin-top: auto; }
.billing-note { margin-top: var(--sp-4); color: var(--muted); font-size: 0.94rem; }

/* ---------- faq ---------- */
.faq-list { max-width: 78ch; }
.faq-item { border-bottom: 2px dashed var(--rule-strong); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: var(--sp-4) 2.5rem var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 14px; height: 14px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { padding: 0 0 var(--sp-4); color: var(--muted); max-width: 70ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-6); align-items: start; }
.form-card { background-color: var(--surface); border: 2px dashed var(--primary-300); border-radius: var(--r-lg); padding: var(--sp-5); }
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-weight: 600; font-size: 0.94rem; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--cotton);
  border: 2px solid var(--rule-strong);
  border-radius: var(--r-md);
  padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: rgba(150, 44, 32, 1); }
.err { display: block; color: rgba(150, 44, 32, 1); font-size: 0.86rem; margin-top: 0.25rem; min-height: 1em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: var(--sp-3); }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 0.25rem; }
.consent label { font-size: 0.92rem; color: var(--muted); font-weight: 400; }
.form-alt { font-size: 0.9rem; color: var(--muted); margin-top: var(--sp-3); }

/* ---------- footer ---------- */
.site-footer {
  background-color: var(--butter);
  border-top: 2px dashed var(--rule-strong);
  padding-block: var(--sp-6) var(--sp-4);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: var(--sp-5); }
.footer-col h2, .footer-col h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-note { color: var(--muted); font-size: 0.94rem; max-width: 32ch; }
.socials { display: flex; gap: 0.6rem; margin-top: var(--sp-3); }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 2px dashed var(--primary-200);
  border-radius: var(--r-md);
  background-color: var(--surface);
  color: var(--primary);
}
.socials a:hover { background-color: var(--primary-050); }
.socials svg { width: 18px; height: 18px; }
.footer-base {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 2px dashed var(--rule-strong);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- prose pages ---------- */
.page-head { padding-block: var(--sp-6) var(--sp-4); border-bottom: 2px dashed var(--rule-strong); }
.prose { max-width: 74ch; padding-block: var(--sp-6); }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-5); }
.prose h3 { margin-top: var(--sp-4); }
.prose dl { margin: 0 0 var(--sp-4); }
.prose dt { font-weight: 600; margin-top: var(--sp-2); }
.prose dd { margin: 0 0 var(--sp-2); color: var(--muted); }
.author-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-6); align-items: start; padding-block: var(--sp-6); }
.author-card { background-color: var(--surface); border: 2px dashed var(--primary-300); border-radius: var(--r-lg); padding: var(--sp-4); }
.author-card img { border-radius: var(--r-md); margin-bottom: var(--sp-3); }
.byline {
  margin-top: var(--sp-6);
  border-top: 2px dashed var(--rule-strong);
  padding-top: var(--sp-3);
  font-size: 0.94rem;
  color: var(--muted);
}
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
.center-card { max-width: 640px; margin-inline: auto; text-align: center; padding: var(--sp-6) var(--sp-5); }
.center-card .btn { margin: var(--sp-2) 0.3rem 0; }

/* ---------- motion: blocks tile into place ---------- */
.reveal { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.blocks .reveal:nth-child(2), .tiers .reveal:nth-child(2), .quilt-quotes .reveal:nth-child(2) { transition-delay: 0.09s; }
.blocks .reveal:nth-child(3), .tiers .reveal:nth-child(3), .quilt-quotes .reveal:nth-child(3) { transition-delay: 0.18s; }
.blocks .reveal:nth-child(4) { transition-delay: 0.27s; }
.blocks .reveal:nth-child(5) { transition-delay: 0.36s; }
.blocks .reveal:nth-child(6) { transition-delay: 0.45s; }

@media (max-width: 960px) {
  .hero-grid, .steps-layout, .contact-layout, .author-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-figure::before { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background-color: var(--surface);
    border-bottom: 2px dashed var(--rule-strong);
    padding: var(--sp-3) var(--sp-4);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: var(--sp-3); }
  .header-cta { display: none; }
  .site-header .wrap { position: relative; }
  .trust-strip, .results, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-tag { position: static; margin-top: var(--sp-3); max-width: none; }
}

@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; }
  .stitch-rule { background-size: 100% 100%; }
}

@media print {
  .site-header, .site-footer, .btn { display: none; }
  body { background-image: none; }
}

/* ================= Bolt and Counter, the site magazine ================= */
/* Light only, built from the tokens above: cotton, butter, dusty blue thread. */

.mag-crumb { padding-block: var(--sp-4) 0; }
.mag-crumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.mag-crumb li { margin: 0; }
.mag-crumb li + li::before { content: "/"; margin-right: 0.45rem; color: var(--rule-strong); }
.mag-crumb a { color: var(--muted); text-decoration: none; }
.mag-crumb a:hover { color: var(--primary); text-decoration: underline; }
.mag-crumb [aria-current="page"] { color: var(--ink); }

/* ---------- magazine index ---------- */
.mag-index-head { padding-block: var(--sp-5) var(--sp-4); max-width: 46rem; }
.mag-index-head h1 { font-size: var(--step-4); margin-bottom: var(--sp-3); }
.mag-index-note { color: var(--muted); font-size: var(--step--1); }
.mag-index { padding-block: var(--sp-5) var(--sp-7); }
.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
  align-items: stretch;
}
.mag-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--primary-300); }
.mag-card-img { display: block; border-bottom: 2px dashed var(--rule-strong); }
.mag-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.mag-card .eyebrow { margin-bottom: var(--sp-2); }
.mag-card-title { font-size: var(--step-1); margin-bottom: var(--sp-2); line-height: 1.22; }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-card-dek { color: var(--muted); font-size: 0.96rem; }
.mag-card-meta {
  margin: auto 0 0;
  padding-top: var(--sp-3);
  border-top: 2px dashed var(--rule);
  display: flex;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.mag-card-meta span { color: var(--rule-strong); }

/* the lead card takes the full first row and reads at a larger size */
.mag-card.lead { grid-column: 1 / -1; background-color: var(--cotton); border-color: var(--primary-300); }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: var(--step-1); color: var(--ink); }
@media (min-width: 780px) {
  .mag-card.lead { flex-direction: row; align-items: stretch; }
  .mag-card.lead .mag-card-img { flex: 0 0 52%; border-bottom: 0; border-right: 2px dashed var(--rule-strong); }
  .mag-card.lead .mag-card-img img { height: 100%; aspect-ratio: auto; }
  .mag-card.lead .mag-card-body { padding: var(--sp-5); justify-content: center; }
}

/* ---------- article header ---------- */
.mag-article { display: block; }
.mag-head { padding-block: var(--sp-4) var(--sp-4); max-width: 46rem; }
.mag-head h1 { font-size: var(--step-3); margin-bottom: var(--sp-3); }
@media (min-width: 720px) { .mag-head h1 { font-size: var(--step-4); } }
.mag-standfirst {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--muted);
  max-width: 62ch;
}
.mag-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 2px dashed var(--rule-strong);
  font-size: var(--step--1);
  color: var(--muted);
}
.mag-byline a { color: var(--primary); }
.mag-figure { margin: 0 auto var(--sp-5); padding-top: var(--sp-2); }
.mag-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 2px dashed var(--rule-strong);
  background-color: var(--butter);
}

/* ---------- article body typography ---------- */
.mag-body {
  max-width: 68ch;
  padding-bottom: var(--sp-7);
  font-size: 1.06rem;
  line-height: 1.72;
}
.mag-body > h2 {
  font-size: var(--step-2);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 2px dashed var(--rule);
}
.mag-body > h3 { font-size: var(--step-1); margin-top: var(--sp-4); margin-bottom: var(--sp-2); }
.mag-body p { margin-bottom: var(--sp-3); }
.mag-body ul, .mag-body ol { margin-bottom: var(--sp-4); padding-left: 1.3rem; }
.mag-body li { margin-bottom: var(--sp-2); }
.mag-body blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  border-left: 4px solid var(--accent);
  background-color: var(--accent-050);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 0.95rem;
  background-color: var(--surface);
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.mag-body thead th { background-color: var(--primary-050); font-family: var(--font-body); font-weight: 600; }
.mag-body tbody tr:nth-child(even) { background-color: var(--butter); }

/* a contextual pointer to another article, set apart from the running text */
.inline-read {
  margin: var(--sp-4) 0;
  padding: var(--sp-2) var(--sp-3);
  border-left: 4px solid var(--primary-300);
  background-color: var(--primary-050);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.96rem;
  color: var(--muted);
}
.inline-read a { font-weight: 600; }

/* ---------- call to action ---------- */
.mag-cta {
  margin: var(--sp-6) 0 var(--sp-5);
  padding: var(--sp-5);
  background-color: var(--cotton);
}
.mag-cta h2 { font-size: var(--step-2); margin-bottom: var(--sp-2); border: 0; padding: 0; }
.mag-cta p { color: var(--muted); }
.mag-cta p:last-child { margin-bottom: 0; }
.mag-cta .btn { margin-top: var(--sp-2); }

/* ---------- author box ---------- */
.mag-author {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  background-color: var(--butter);
}
.mag-author img { border-radius: 50%; border: 2px solid var(--surface); box-shadow: var(--shadow-1); }
.mag-author h2 { font-size: var(--step-1); margin-bottom: var(--sp-2); border: 0; padding: 0; }
.mag-author p { color: var(--muted); font-size: 0.98rem; }
.mag-author p:last-child { margin-bottom: 0; }

/* ---------- Read also ---------- */
.mag-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-4);
}
.mag-rel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.mag-rel:hover { transform: translateY(-3px); border-color: var(--primary-300); }
.mag-rel-img { display: block; border-bottom: 2px dashed var(--rule-strong); }
.mag-rel-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.mag-rel-title { font-size: 1.05rem; line-height: 1.25; margin-bottom: var(--sp-2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-rel-dek { color: var(--muted); font-size: 0.92rem; margin-bottom: var(--sp-2); }
.mag-rel-meta { font-size: var(--step--1); color: var(--muted); margin-bottom: 0; }
.mag-related-more { margin: var(--sp-4) 0 0; font-weight: 600; }

/* ---------- home page magazine teaser ---------- */
.mag-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.mag-teaser-more { margin-top: var(--sp-4); font-weight: 600; }
.mag-list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); max-width: 74ch; }
.mag-list li { padding: var(--sp-2) 0; border-bottom: 2px dashed var(--rule); margin-bottom: 0; }
.mag-list time { display: block; font-size: var(--step--1); color: var(--muted); }

@media (max-width: 640px) {
  .mag-author { grid-template-columns: 1fr; }
  .mag-author img { width: 96px; height: 96px; }
  .mag-cta { padding: var(--sp-4); }
  .mag-body { font-size: 1.02rem; }
  .mag-head h1 { font-size: var(--step-2); }
}
@media (max-width: 400px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-card-body { padding: var(--sp-3); }
}


/* 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; }
