/*  ChairGap design system
    Clinical calm: chalk white, clinical mint, slate blue anchor.
    Fraunces headlines over Inter. Rounded cards, soft shadow, chair silhouette motif.
    Hand written for chairgap.com. No framework, no reset library.
*/

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  /* brief palette */
  --bg: #F7FBFA;
  --surface: #FFFFFF;
  --ink: #12242B;
  --primary: #0E6F63;
  --accent: #7BD8C4;
  --muted: #5C7A80;

  /* derived mint tints */
  --mint-050: #F0FBF7;
  --mint-100: #E1F6EF;
  --mint-200: #C7EDE1;
  --mint-300: #A6E3D2;
  --mint-500: var(--accent);

  /* derived primary shades */
  --primary-600: #0C6157;
  --primary-700: #0A5049;
  --primary-800: #073F39;
  --primary-050: #E5F2EF;

  /* slate blue anchor */
  --slate: #2C4A57;
  --slate-700: #213B46;
  --slate-900: #162B34;
  --slate-050: #EAF1F3;

  /* lines and text */
  --line: #DCEAE7;
  --line-strong: #C2DCD6;
  --ink-soft: #33484F;
  --on-dark: #EAF6F3;
  --on-dark-muted: #A9C7C4;

  /* radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 44px;
  --s-8: 64px;
  --s-9: 88px;
  --s-10: 120px;

  /* soft clinical shadows */
  --shadow-1: 0 1px 2px rgba(18, 36, 43, .05), 0 4px 12px rgba(18, 36, 43, .05);
  --shadow-2: 0 2px 4px rgba(18, 36, 43, .05), 0 14px 34px rgba(18, 36, 43, .08);
  --shadow-3: 0 30px 70px rgba(18, 36, 43, .14), 0 6px 16px rgba(18, 36, 43, .06);
  --shadow-mint: 0 18px 40px rgba(14, 111, 99, .16);
  --ring: 0 0 0 3px var(--bg), 0 0 0 6px var(--primary);

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --t-xs: .78rem;
  --t-sm: .875rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.1rem, .95rem + .6vw, 1.3rem);
  --t-h4: clamp(1.12rem, 1rem + .45vw, 1.3rem);
  --t-h3: clamp(1.32rem, 1.1rem + .9vw, 1.75rem);
  --t-h2: clamp(1.75rem, 1.3rem + 2vw, 2.85rem);
  --t-h1: clamp(2.3rem, 1.45rem + 3.6vw, 4.05rem);

  /* layout */
  --wrap: 1200px;
  --wrap-tight: 900px;

  /* chair silhouette motif, used as a faint repeating field */
  --motif-chair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 64 64'%3E%3Cg fill='%230E6F63' fill-opacity='0.055'%3E%3Crect x='12' y='7' width='10' height='7' rx='3'/%3E%3Cpath d='M15 17h8a3 3 0 0 1 3 3v15a3 3 0 0 1-3 3h-8a3 3 0 0 1-3-3V20a3 3 0 0 1 3-3z'/%3E%3Crect x='12' y='38' width='33' height='7' rx='3.5'/%3E%3Crect x='25' y='45' width='7' height='9' rx='2'/%3E%3Crect x='17' y='53' width='23' height='5' rx='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 82% -8%, var(--mint-100), transparent 62%),
    radial-gradient(760px 420px at -6% 6%, var(--slate-050), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
}

h1 { font-size: var(--t-h1); letter-spacing: -.028em; }
h2 { font-size: var(--t-h2); letter-spacing: -.022em; }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); line-height: 1.25; }

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

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

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

strong { font-weight: 650; color: var(--ink); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-xs);
}

::selection { background: var(--mint-300); color: var(--slate-900); }

.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(--s-4);
  top: -80px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: var(--s-4); color: #fff; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-tight { width: min(100% - 40px, var(--wrap-tight)); margin-inline: auto; }

section { position: relative; }
.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-8) 0; }

/* ============================================================
   3. Section furniture: eyebrow, heads, chair rule
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary-700);
  margin: 0 0 var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 10px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  box-shadow: 0 2px 0 0 var(--mint-200);
}

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lede {
  font-size: var(--t-lg);
  color: var(--ink-soft);
  line-height: 1.55;
}

.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: var(--t-base);
  letter-spacing: -.005em;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  color: #fff;
  box-shadow: var(--shadow-mint);
}
.btn--primary:hover { color: #fff; box-shadow: 0 22px 46px rgba(14, 111, 99, .24); }

.btn--ghost {
  background: var(--surface);
  color: var(--slate-900);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-700); }

.btn--quiet {
  background: transparent;
  color: var(--primary-700);
  border-color: var(--mint-200);
}
.btn--quiet:hover { background: var(--mint-050); }

.btn--wide { width: 100%; }
.btn--lg { padding: 17px 30px; font-size: 1.05rem; }

.btn svg { flex: none; }

/* ============================================================
   5. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 251, 250, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 36, 43, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.brand:hover { color: var(--primary-700); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(160deg, var(--slate), var(--primary-800));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), var(--shadow-1);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand em { font-style: normal; color: var(--primary); }

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0; padding: 0;
}
.primary-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .96rem;
  font-weight: 550;
  padding: 8px 2px;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: inline-flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 19px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4.5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(0); }

/* ============================================================
   6. Hero
   ============================================================ */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--motif-chair);
  background-size: 128px 128px;
  -webkit-mask-image: linear-gradient(200deg, rgba(0,0,0,.85), transparent 58%);
  mask-image: linear-gradient(200deg, rgba(0,0,0,.85), transparent 58%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: var(--s-8);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .hl {
  position: relative;
  white-space: nowrap;
  color: var(--primary-700);
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: .08em;
  height: .34em;
  background: linear-gradient(90deg, var(--mint-300), var(--mint-100));
  border-radius: var(--r-pill);
  z-index: -1;
}
.hero-sub { font-size: var(--t-lg); color: var(--ink-soft); max-width: 33rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-6);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px dashed var(--line-strong);
  list-style: none;
  margin: 0; padding-left: 0;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-sm);
  font-weight: 550;
  color: var(--slate);
  margin: 0;
}
.trust-strip svg { color: var(--primary); flex: none; }

/* hero media: photo card plus floating day sheet */
.hero-media { position: relative; }
.photo-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
}
.photo-card img { width: 100%; aspect-ratio: 3 / 2.35; object-fit: cover; }
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(123, 216, 196, .16), transparent 45%);
  pointer-events: none;
}

.daysheet {
  position: absolute;
  left: -34px;
  bottom: -38px;
  width: min(310px, 82%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 16px 16px 14px;
}
.daysheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.daysheet-head strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -.01em;
}
.daysheet-head span { font-size: var(--t-xs); color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.slots { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.slot {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--t-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.slot b {
  height: 20px;
  border-radius: 6px;
  background: var(--slate-050);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  font-weight: 500;
}
.slot--booked b { background: var(--mint-100); border-color: var(--mint-200); }
.slot--gap b { background: repeating-linear-gradient(135deg, #fff, #fff 5px, var(--slate-050) 5px, var(--slate-050) 10px); }
.slot--gap b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: left;
  transform: scaleX(0);
  animation: fillslot 8s cubic-bezier(.22, .7, .3, 1) infinite;
  animation-delay: calc(var(--i, 0) * 900ms);
}
@keyframes fillslot {
  0%, 8% { transform: scaleX(0); }
  22%, 82% { transform: scaleX(1); }
  94%, 100% { transform: scaleX(0); }
}
.daysheet-foot {
  margin: 12px 0 0;
  font-size: var(--t-xs);
  color: var(--slate);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(14, 111, 99, .5);
  animation: pulse 2.6s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(14, 111, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 111, 99, 0); }
}

/* ============================================================
   7. Cards, grids, generic surfaces
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--mint-200); }

.grid { display: grid; gap: var(--s-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)); }

/* ---- Problem cards: a torn chart pad look with a cost tag ---- */
.problem { background: linear-gradient(180deg, transparent, var(--mint-050) 70%, transparent); }
.cost-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.cost-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}
.cost-card h3 { font-size: var(--t-h4); margin-bottom: 10px; }
.cost-card p { font-size: .98rem; color: var(--ink-soft); margin-bottom: var(--s-4); }
.cost-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--slate-050);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: var(--t-xs);
  font-weight: 650;
  color: var(--slate-700);
  letter-spacing: .01em;
}
.cost-tag b { font-family: var(--font-display); font-size: 1rem; color: var(--primary-700); }

/* ---- Steps ---- */
.steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: var(--s-8);
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 var(--s-6) 62px;
  margin: 0;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0; top: -4px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--mint-200);
  color: var(--primary-700);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.step::after {
  content: "";
  position: absolute;
  left: 22px; top: 46px; bottom: 8px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--mint-200), transparent);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--t-h4); margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .99rem; margin-bottom: 0; }
.step-note {
  display: inline-block;
  margin-top: 10px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--primary-700);
  background: var(--mint-050);
  border: 1px solid var(--mint-200);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

.figure {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background: var(--surface);
  position: sticky;
  top: 110px;
}
.figure img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.figure figcaption {
  padding: 14px 18px 16px;
  font-size: var(--t-sm);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* ---- Features ---- */
.features { position: relative; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--shadow-1);
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--mint-200); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--mint-050), var(--mint-100));
  border: 1px solid var(--mint-200);
  color: var(--primary-700);
  margin-bottom: var(--s-4);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--t-h4); margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ---- Outcomes ---- */
.outcomes {
  background: linear-gradient(165deg, var(--slate-900), var(--primary-800) 78%);
  color: var(--on-dark);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-7);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.outcomes::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--motif-chair);
  background-size: 150px 150px;
  filter: invert(1);
  opacity: .5;
  -webkit-mask-image: radial-gradient(70% 90% at 88% 10%, rgba(0,0,0,.9), transparent 70%);
  mask-image: radial-gradient(70% 90% at 88% 10%, rgba(0,0,0,.9), transparent 70%);
  pointer-events: none;
}
.outcomes h2, .outcomes h3 { color: #fff; }
.outcomes .eyebrow { color: var(--accent); }
.outcomes .eyebrow::before { box-shadow: 0 2px 0 0 rgba(123, 216, 196, .3); }
.outcomes .lede { color: var(--on-dark-muted); }
.outcome {
  position: relative;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(234, 246, 243, .18);
}
.outcome-figure {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.7rem + 2.4vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.03em;
  display: block;
  margin-bottom: 10px;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.outcome h3 { font-size: var(--t-h4); margin-bottom: 8px; }
.outcome p { color: var(--on-dark-muted); font-size: .96rem; margin: 0; }

/* ---- Testimonials ---- */
.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.quote::before {
  content: "";
  position: absolute;
  top: -1px; left: 26px;
  width: 54px; height: 6px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.quote p {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: var(--s-5);
}
.quote footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--mint-100), var(--mint-200));
  border: 1px solid var(--mint-200);
  color: var(--primary-800);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  flex: none;
}
.quote cite { font-style: normal; font-weight: 650; font-size: .95rem; display: block; }
.quote .role { font-size: var(--t-xs); color: var(--muted); display: block; line-height: 1.4; }

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}
.result { text-align: center; }
.result b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.35rem);
  color: var(--primary-700);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.result span { font-size: var(--t-sm); color: var(--muted); }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: start;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-3);
  background:
    linear-gradient(180deg, var(--mint-050), var(--surface) 30%);
}
.tier--featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid var(--primary);
  pointer-events: none;
}
.tier-flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-mint);
  white-space: nowrap;
  z-index: 1;
}
.tier h3 { font-size: 1.28rem; margin-bottom: 4px; }
.tier .tier-for { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-5); }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px dashed var(--line-strong);
}
.price b {
  font-family: var(--font-display);
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.price span { font-size: var(--t-sm); color: var(--muted); font-weight: 550; }
.tier ul { list-style: none; padding: 0; margin: 0 0 var(--s-6); }
.tier li {
  position: relative;
  padding-left: 28px;
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 11px;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 9px;
  border-left: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  border-radius: 2px;
  transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--s-6);
  text-align: center;
  font-size: var(--t-sm);
  color: var(--muted);
}

/* ---- FAQ ---- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  background: none;
  border: 0;
  padding: var(--s-5) 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  line-height: 1.3;
}
.faq-q:hover { color: var(--primary-700); }
.faq-sign {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 10px;
  border: 1.5px solid var(--mint-200);
  background: var(--mint-050);
  position: relative;
  transition: background-color .2s ease, transform .25s ease;
}
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  border-radius: 2px;
  background: var(--primary-700);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-sign { background: var(--primary); border-color: var(--primary); }
.faq-q[aria-expanded="true"] .faq-sign::before,
.faq-q[aria-expanded="true"] .faq-sign::after { background: #fff; }
.faq-q[aria-expanded="true"] .faq-sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 60px var(--s-5) 4px; }
.faq-a p { color: var(--ink-soft); font-size: .99rem; margin: 0; }
.faq-a[hidden] { display: none; }

/* ============================================================
   8. Contact
   ============================================================ */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: var(--s-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  padding: var(--s-8) var(--s-7);
  position: relative;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--mint-100), transparent 68%);
  pointer-events: none;
}
.contact-aside h2 { margin-bottom: var(--s-4); }
.contact-aside p { color: var(--ink-soft); }
.contact-points { list-style: none; padding: 0; margin: var(--s-6) 0 0; }
.contact-points li {
  position: relative;
  padding-left: 30px;
  font-size: .95rem;
  color: var(--slate-700);
  margin-bottom: 12px;
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--mint-100);
  border: 1px solid var(--mint-200);
}

.field { margin-bottom: var(--s-5); }
.field label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 650;
  color: var(--slate-900);
  margin-bottom: 7px;
}
.field .hint { font-weight: 500; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235C7A80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--mint-100);
}
.field [aria-invalid="true"] { border-color: #B3261E; background: #FEF6F5; }
.error-text {
  display: none;
  margin: 7px 0 0;
  font-size: var(--t-sm);
  font-weight: 600;
  color: #B3261E;
}
.error-text.is-shown { display: block; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--mint-050);
  border: 1px solid var(--mint-200);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: var(--s-5);
}
.consent input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
  flex: none;
}
.consent label { font-size: var(--t-sm); color: var(--slate-700); font-weight: 500; margin: 0; }

.form-foot {
  margin-top: var(--s-5);
  font-size: var(--t-sm);
  color: var(--muted);
}

/* ============================================================
   9. Byline and footer
   ============================================================ */
.byline {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.byline strong { display: block; color: var(--ink); font-size: 1rem; }

.site-footer {
  margin-top: var(--s-9);
  background: linear-gradient(170deg, var(--slate-900), var(--primary-800));
  color: var(--on-dark-muted);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--motif-chair);
  background-size: 140px 140px;
  filter: invert(1);
  opacity: .45;
  -webkit-mask-image: linear-gradient(20deg, rgba(0,0,0,.9), transparent 55%);
  mask-image: linear-gradient(20deg, rgba(0,0,0,.9), transparent 55%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.25fr;
  gap: var(--s-7);
  padding: var(--s-8) 0 var(--s-7);
}
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: var(--accent); }
.footer-brand p { font-size: .94rem; margin: var(--s-4) 0 var(--s-5); max-width: 30ch; }
.footer-brand .brand-mark { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }

.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--on-dark);
  transition: background-color .2s ease, transform .2s ease, color .2s ease;
}
.social a:hover { background: var(--accent); color: var(--slate-900); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

.footer-base {
  position: relative;
  border-top: 1px solid rgba(234, 246, 243, .14);
  padding: var(--s-5) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  font-size: var(--t-sm);
}
.footer-base a { color: var(--accent); }

/* ============================================================
   10. Long form prose pages
   ============================================================ */
.page-head {
  padding: var(--s-8) 0 var(--s-6);
  border-bottom: 1px solid var(--line);
  background-image: var(--motif-chair);
  background-size: 128px 128px;
}
.page-head .wrap-tight { position: relative; }
.page-head p { color: var(--ink-soft); max-width: 62ch; margin-bottom: 0; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  font-size: var(--t-sm);
  color: var(--muted);
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }

.prose { padding: var(--s-8) 0 var(--s-9); }
.prose h2 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: var(--t-h4); margin-top: var(--s-5); }
.prose p, .prose li { color: var(--ink-soft); }
.prose dl { margin: 0 0 var(--s-5); }
.prose dt { font-weight: 650; color: var(--ink); margin-top: var(--s-4); }
.prose dd { margin: 4px 0 0; color: var(--ink-soft); }
.fact-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--s-5);
}
.fact-table dt { margin-top: var(--s-3); }
.fact-table dt:first-child { margin-top: 0; }

/* author page */
.author-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}
.author-portrait {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background: var(--surface);
}
.author-portrait img { width: 100%; aspect-ratio: 1 / 1.12; object-fit: cover; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.profile-links li { margin: 0; }
.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--slate-700);
  box-shadow: var(--shadow-1);
}
.profile-links a:hover { border-color: var(--primary); color: var(--primary-700); }

/* site map */
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.map-card ul { list-style: none; padding: 0; margin: 0; }
.map-card li { padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.map-card li:last-child { border-bottom: 0; }
.map-card a { font-weight: 650; text-decoration: none; }
.map-card a:hover { text-decoration: underline; }
.map-card span { display: block; font-size: var(--t-sm); color: var(--muted); }

/* thanks and 404 */
.centered-panel {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--s-9) 0;
}
.centered-panel .btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }
.big-glyph {
  width: 96px; height: 96px;
  margin: 0 auto var(--s-5);
  border-radius: 28px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--mint-050), var(--mint-200));
  border: 1px solid var(--mint-200);
  color: var(--primary-700);
  box-shadow: var(--shadow-2);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 2.5rem + 7vw, 7rem);
  line-height: .95;
  color: var(--primary);
  letter-spacing: -.05em;
  margin: 0 0 var(--s-3);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

/* ============================================================
   11. Motion
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, .7, .3, 1), transform .7s cubic-bezier(.22, .7, .3, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   12. Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .daysheet { left: auto; right: 12px; bottom: -30px; }
  .steps-layout { grid-template-columns: 1fr; }
  .figure { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .contact-panel { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-7) var(--s-5); }
  .author-hero { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    left: 20px; right: 20px;
    top: 74px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
    padding: var(--s-5);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: 13px 4px; font-size: 1.02rem; }
  .header-cta { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tier--featured { order: -1; }
  .map-grid { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; gap: var(--s-4); }
  .result { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); text-align: left; }
}

@media (max-width: 620px) {
  .section { padding: var(--s-8) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-hero { grid-template-columns: 1fr; }
  .author-portrait { max-width: 240px; }
  .outcomes { padding: var(--s-7) var(--s-5); }
  .daysheet { position: static; width: 100%; margin-top: var(--s-4); }
  .faq-a { padding-right: 8px; }
  .hero { padding-top: var(--s-7); }
}

@media (max-width: 380px) {
  .wrap, .wrap-tight { width: min(100% - 28px, var(--wrap)); }
  .btn { padding: 13px 18px; font-size: .95rem; }
}

/* ============================================================
   13. Reduced motion and print
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .slot--gap b::after { transform: scaleX(1); }
  .btn:hover, .card:hover, .feature:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .hero-actions, form { display: none; }
  body { background: #fff; }
}

/* ============================================================
   14. The Open Chair: magazine index, article pages, cards
   Built from the tokens above. No new palette, no new typeface.
   ============================================================ */

/* ---- 14.1 Shared magazine furniture ---------------------- */
.mag-crumbs { margin-bottom: var(--s-4); }
.mag-crumbs .breadcrumbs { margin-bottom: 0; }
.mag-crumbs a { text-decoration: none; }
.mag-crumbs a:hover { text-decoration: underline; }

.mag-kicker {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary-700);
  margin: 0 0 10px;
}

.mag-standfirst {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 0;
}

.mag-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  display: inline-block;
  flex: none;
}

/* ---- 14.2 Magazine masthead ------------------------------ */
.mag-masthead {
  position: relative;
  padding: var(--s-8) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
  background-image: var(--motif-chair);
  background-size: 128px 128px;
  overflow: hidden;
}
.mag-masthead::after {
  content: "";
  position: absolute;
  right: -140px; top: -180px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--mint-100), transparent 68%);
  pointer-events: none;
}
.mag-masthead-inner { position: relative; max-width: 46rem; }
.mag-masthead h1 { margin-bottom: var(--s-4); }
.mag-masthead-note {
  margin: var(--s-5) 0 0;
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 44rem;
}

/* ---- 14.3 Index grid and cards --------------------------- */
.mag-index { padding: var(--s-8) 0 var(--s-7); }
.mag-index-cta { padding: 0 0 var(--s-9); }

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

.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.mag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--mint-200);
}
.mag-card-media {
  background: var(--mint-050);
  border-bottom: 1px solid var(--line);
}
.mag-card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.mag-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--s-5) var(--s-5) var(--s-5);
}
.mag-card-title {
  font-size: var(--t-h4);
  line-height: 1.2;
  margin: 0 0 10px;
}
.mag-card-title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size .24s ease, color .18s ease;
}
.mag-card-title a:hover { color: var(--primary-700); background-size: 100% 2px; }
.mag-card-dek {
  color: var(--ink-soft);
  font-size: .97rem;
  line-height: 1.6;
  margin: 0 0 var(--s-4);
}
.mag-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto 0 0;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the first article of the plan runs as the lead */
.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  border-color: var(--mint-200);
  box-shadow: var(--shadow-2);
}
.mag-card.lead .mag-card-media {
  flex: 0 0 54%;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.mag-card.lead .mag-card-media img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 320px;
}
.mag-card.lead .mag-card-body {
  justify-content: center;
  padding: var(--s-7);
}
.mag-card.lead .mag-card-title { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); }
.mag-card.lead .mag-card-dek { font-size: 1.05rem; max-width: 34rem; }
.mag-card.lead .mag-kicker::after {
  content: "Latest";
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--primary-700);
  letter-spacing: .08em;
}

/* ---- 14.4 Article header --------------------------------- */
.mag-article { display: block; }

.mag-head {
  position: relative;
  padding: var(--s-8) 0 var(--s-6);
  overflow: hidden;
}
.mag-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--motif-chair);
  background-size: 128px 128px;
  -webkit-mask-image: linear-gradient(210deg, rgba(0,0,0,.9), transparent 60%);
  mask-image: linear-gradient(210deg, rgba(0,0,0,.9), transparent 60%);
  pointer-events: none;
}
.mag-head .wrap { position: relative; }
.mag-head-inner { max-width: 46rem; }
.mag-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  margin-bottom: var(--s-4);
}

.mag-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.mag-byline-mark {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--mint-050), var(--mint-200));
  border: 1px solid var(--mint-200);
  color: var(--primary);
}
.mag-byline-mark svg { width: 24px; height: 24px; }
.mag-byline-who {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.mag-byline-who a { color: var(--ink); text-decoration-color: var(--accent); }
.mag-byline-who a:hover { color: var(--primary-700); }
.mag-byline-who span {
  display: block;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--muted);
}
.mag-byline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  list-style: none;
  flex: 1 1 100%;
  margin: var(--s-3) 0 0;
  padding: 0;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-byline-meta li { margin: 0; }
.mag-byline-meta time { color: var(--slate-700); }

/* ---- 14.5 Featured photograph ---------------------------- */
.mag-figure { margin: 0; padding: var(--s-6) 0 0; }
.mag-figure-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background: var(--surface);
}
.mag-figure-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.mag-figure figcaption {
  margin: var(--s-3) auto 0;
  max-width: 62ch;
  font-size: var(--t-sm);
  color: var(--muted);
  text-align: center;
}

/* ---- 14.6 Article body typography ------------------------ */
.mag-body-wrap { padding: var(--s-7) 0 var(--s-8); }

.mag-body {
  max-width: 62ch;          /* a measure of roughly 70 characters */
  margin-inline: auto;
  font-size: 1.09rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.mag-body > h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.95rem);
  color: var(--ink);
  margin: var(--s-8) 0 var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.mag-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mag-body > h3 {
  font-size: var(--t-h4);
  color: var(--ink);
  margin: var(--s-6) 0 var(--s-3);
}
.mag-body p { margin: 0 0 var(--s-5); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--s-5); padding-left: 1.35rem; }
.mag-body li { margin-bottom: var(--s-3); }
.mag-body li::marker { color: var(--primary); }
.mag-body strong { color: var(--ink); }
.mag-body a { color: var(--primary-700); text-decoration-color: var(--mint-300); }
.mag-body a:hover { color: var(--ink); text-decoration-color: var(--primary); }
.mag-body blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-5) var(--s-6);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--mint-050);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s-5);
  font-size: .97rem;
  display: block;
  overflow-x: auto;
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.mag-body th { color: var(--ink); font-weight: 650; background: var(--mint-050); }

/* contextual link, dropped between two sections of the body */
.mag-body .inline-read {
  position: relative;
  margin: var(--s-6) 0;
  padding: var(--s-4) var(--s-5) var(--s-4) calc(var(--s-5) + 22px);
  background: var(--mint-050);
  border: 1px solid var(--mint-200);
  border-radius: var(--r-md);
  font-size: .97rem;
  font-weight: 550;
  color: var(--slate-700);
  line-height: 1.5;
}
.mag-body .inline-read::before {
  content: "";
  position: absolute;
  left: var(--s-5);
  top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}
.mag-body .inline-read a {
  color: var(--primary-700);
  font-weight: 650;
  text-decoration-color: var(--mint-300);
}
.mag-body .inline-read a:hover { color: var(--slate-900); text-decoration-color: var(--primary); }

/* ---- 14.7 Call to action block --------------------------- */
.mag-cta {
  position: relative;
  max-width: 62ch;
  margin: var(--s-8) auto 0;
  padding: var(--s-7);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--slate-900), var(--primary-800));
  color: var(--on-dark);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.mag-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--motif-chair);
  background-size: 128px 128px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(220deg, rgba(0,0,0,.9), transparent 62%);
  mask-image: linear-gradient(220deg, rgba(0,0,0,.9), transparent 62%);
  pointer-events: none;
}
.mag-cta > * { position: relative; }
.mag-cta .eyebrow { color: var(--accent); }
.mag-cta .eyebrow::before { box-shadow: 0 2px 0 0 rgba(123, 216, 196, .3); }
.mag-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  margin-bottom: var(--s-4);
}
.mag-cta p { color: var(--on-dark-muted); margin-bottom: var(--s-6); }
.mag-cta .btn--primary {
  background: linear-gradient(180deg, var(--accent), var(--mint-300));
  color: var(--slate-900);
  box-shadow: 0 18px 40px rgba(18, 36, 43, .3);
}
.mag-cta .btn--primary:hover { color: var(--slate-900); }
.mag-cta--wide { max-width: none; margin-top: 0; }

/* ---- 14.8 Author box ------------------------------------- */
.mag-author {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
  max-width: 62ch;
  margin: var(--s-6) auto 0;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.mag-author-photo {
  width: 132px;
  height: 132px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--mint-050);
}
.mag-author-body h2 { font-size: var(--t-h4); margin-bottom: var(--s-3); }
.mag-author-body p { color: var(--ink-soft); font-size: .99rem; margin-bottom: var(--s-5); }

/* ---- 14.9 Read also -------------------------------------- */
.mag-related {
  padding: var(--s-8) 0 var(--s-9);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--mint-050), transparent 72%);
}
.mag-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.mag-related-head h2 { font-size: var(--t-h3); margin: 0; }
.mag-related-all {
  font-size: var(--t-sm);
  font-weight: 650;
  text-decoration: none;
  color: var(--primary-700);
  border-bottom: 2px solid var(--mint-200);
  padding-bottom: 2px;
}
.mag-related-all:hover { color: var(--ink); border-bottom-color: var(--primary); }

.mag-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.mag-rel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--mint-200); }
.mag-rel-media { border-bottom: 1px solid var(--line); background: var(--mint-050); }
.mag-rel-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mag-rel-body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1 1 auto; }
.mag-rel-title { font-size: 1.06rem; line-height: 1.25; margin: 0 0 8px; }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary-700); text-decoration: underline; }
.mag-rel-dek {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 var(--s-4);
}
.mag-rel-date {
  margin: auto 0 0;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- 14.10 Magazine teaser on the home page --------------- */
.magazine { background: linear-gradient(180deg, transparent, var(--mint-050) 55%, transparent); }
.magazine-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}
.magazine-head .section-head { margin-bottom: 0; }
.mag-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.mag-more {
  display: flex;
  justify-content: center;
  margin-top: var(--s-7);
}

/* author page article list */
.mag-list { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.mag-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  margin: 0;
}
.mag-list li:last-child { border-bottom: 0; }
.mag-list a { font-weight: 650; text-decoration: none; color: var(--slate-900); }
.mag-list a:hover { color: var(--primary-700); text-decoration: underline; }
.mag-list time {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

/* ---- 14.11 Magazine responsive --------------------------- */
@media (max-width: 1080px) {
  .mag-grid, .mag-related-grid, .mag-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-card.lead .mag-card-media { flex-basis: 46%; }
  .mag-card.lead .mag-card-body { padding: var(--s-6); }
}

@media (max-width: 860px) {
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media {
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mag-card.lead .mag-card-media img { aspect-ratio: 3 / 2; min-height: 0; }
  .mag-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .mag-masthead { padding: var(--s-7) 0 var(--s-6); }
  .mag-crumbs .breadcrumbs li:last-child {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mag-grid, .mag-related-grid, .mag-home-grid { grid-template-columns: 1fr; }
  .mag-index { padding: var(--s-7) 0 var(--s-6); }
  .mag-body-wrap { padding: var(--s-6) 0 var(--s-7); }
  .mag-body { font-size: 1.05rem; }
  .mag-figure-frame { border-radius: var(--r-lg); }
  .mag-cta { padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); }
  .mag-author {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    padding: var(--s-5);
  }
  .mag-author-photo { width: 108px; height: 108px; }
  .mag-card.lead .mag-card-body { padding: var(--s-5); }
  .mag-related { padding: var(--s-7) 0 var(--s-8); }
  .magazine-head { margin-bottom: var(--s-6); }
}

@media (max-width: 380px) {
  .mag-card-body { padding: var(--s-4); }
  .mag-rel-body { padding: var(--s-4); }
  .mag-byline { gap: var(--s-3); }
  .mag-byline-meta { gap: var(--s-1) var(--s-3); }
  .mag-cta { padding: var(--s-5) var(--s-4); }
  .mag-list li { padding: 12px 0; }
  .mag-list time { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mag-card:hover, .mag-rel:hover { transform: none; }
  .mag-card-title a { transition: none; }
}

@media print {
  .mag-cta, .mag-related, .mag-crumbs { display: none; }
  .mag-body { max-width: none; }
}


/* Network footer strip: five sibling products, rotated so every site is linked
   the same number of times. Inherits the footer colours already defined above. */
.site-network { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid currentColor; opacity: 0.72; }
.site-network h2 { font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.6rem; font-weight: 600; }
.site-network ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.15rem; }
.site-network a { font-size: 0.82rem; text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 0.9rem; } }
