/* ==========================================================================
   CoachCheckIns design system
   Gym floor bold in daylight: chalk white and deep olive with an electric
   lime pop. Anton display over Manrope body. Oversized numerals, hard stops,
   no dark panels. Every value reads dark ink on a light ground.
   ========================================================================== */

:root {
  /* core palette from the brand book */
  --bg: #F6F7F4;
  --surface: #FFFFFF;
  --ink: #14150F;
  --primary: #3F6212;
  --accent: #A3E635;
  --muted: #5F6553;

  /* derived shades and tints, all built on the light ground */
  --surface-2: #EEF1E6;
  --surface-3: #E4E8D8;
  --bg-deep: #EAEDE1;
  --primary-dim: #497214;
  --primary-deep: #2F4A0C;
  --primary-wash: rgba(63, 98, 18, 0.10);
  --primary-line: rgba(63, 98, 18, 0.42);
  --accent-wash: rgba(163, 230, 53, 0.45);
  --ink-soft: #33362B;
  --line: rgba(20, 21, 15, 0.16);
  --line-strong: rgba(20, 21, 15, 0.30);
  --chalk: rgba(20, 21, 15, 0.07);

  /* type */
  --font-display: "Anton", "Arial Black", Haettenschweiler, Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --fs-100: 0.78rem;
  --fs-200: 0.875rem;
  --fs-300: 1rem;
  --fs-400: 1.0625rem;
  --fs-500: 1.25rem;
  --fs-600: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  --fs-700: clamp(2rem, 1.3rem + 3.1vw, 3.25rem);
  --fs-800: clamp(2.6rem, 1.3rem + 5.6vw, 5.25rem);
  --fs-mega: clamp(3.4rem, 1rem + 11vw, 8.5rem);

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

  /* structure */
  --wrap: 1240px;
  --r-0: 0px;
  --r-1: 2px;
  --border: 2px solid var(--ink);
  --border-thin: 1px solid var(--line);
  --shadow-hard: 10px 10px 0 var(--primary);
  --shadow-hard-red: 10px 10px 0 var(--ink);
  --shadow-flat: 0 10px 26px rgba(20, 21, 15, 0.10);
  --shadow-soft: 0 6px 18px rgba(20, 21, 15, 0.07);
  --ease-hard: cubic-bezier(0.16, 0.84, 0.28, 1);
  --speed: 180ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

/* chalk dust on a pale floor: fixed grain layer, never interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 12% 22%, var(--chalk) 0 1.2px, transparent 1.3px),
    radial-gradient(circle at 63% 8%, var(--chalk) 0 1px, transparent 1.1px),
    radial-gradient(circle at 84% 61%, var(--chalk) 0 1.4px, transparent 1.5px),
    radial-gradient(circle at 31% 77%, var(--chalk) 0 1px, transparent 1.1px),
    radial-gradient(circle at 47% 44%, var(--chalk) 0 1.1px, transparent 1.2px);
  background-size: 180px 180px, 240px 240px, 300px 300px, 210px 210px, 160px 160px;
}

main, header, footer { position: relative; z-index: 1; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

::selection { background: var(--primary); color: var(--bg); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
}
h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); letter-spacing: 0.04em; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

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

/* --------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--s-5), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--s-9); position: relative; }
.section--tight { padding-block: var(--s-8); }
.section--surface { background: var(--surface); border-block: 2px solid var(--line); }
.section--deep { background: var(--bg-deep); }

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

.skip-link {
  position: absolute;
  left: var(--s-4); top: -80px;
  z-index: 999;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--s-3) var(--s-5);
  border: 2px solid var(--ink);
  transition: top var(--speed) var(--ease-hard);
}
.skip-link:focus { top: var(--s-4); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.on-lime :focus-visible, .btn--primary:focus-visible { outline-color: var(--ink); }

/* --------------------------------------------------------- motif pieces */
/* gym floor hazard tape, hard stops, zero blur */
.tape {
  height: 14px;
  background-image: repeating-linear-gradient(
    135deg,
    var(--primary) 0 16px,
    var(--accent) 16px 32px
  );
  border-block: 2px solid var(--ink);
}
.tape--red {
  background-image: repeating-linear-gradient(
    135deg,
    var(--ink) 0 16px,
    var(--accent) 16px 32px
  );
}
.tape--thin { height: 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-200);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 6px var(--s-3);
  margin-bottom: var(--s-4);
}
.eyebrow--red { background: var(--primary); color: var(--bg); }
.eyebrow--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary-line);
}

.rule {
  height: 6px;
  width: 96px;
  background: var(--primary);
  margin: var(--s-5) 0;
}

.lead {
  font-size: var(--fs-500);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.5;
}
.muted { color: var(--muted); }
.small { font-size: var(--fs-200); color: var(--muted); }

.section-head { max-width: 74ch; margin-bottom: var(--s-7); }
.section-head p { color: var(--muted); font-size: var(--fs-400); }

/* oversized numeral, chalk outline */
.numeral {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 3px var(--primary);
  letter-spacing: -0.02em;
  display: block;
}
.numeral--solid { color: var(--primary); -webkit-text-stroke: 0; }
.numeral--red { -webkit-text-stroke-color: var(--ink); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-300);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 16px var(--s-6);
  border: 2px solid var(--primary);
  background: var(--primary);
  color: var(--bg);
  cursor: pointer;
  border-radius: var(--r-0);
  transition: transform var(--speed) var(--ease-hard),
              box-shadow var(--speed) var(--ease-hard),
              background-color var(--speed) linear,
              color var(--speed) linear;
}
.btn:hover {
  text-decoration: none;
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
}
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { box-shadow: 8px 8px 0 var(--primary); background: var(--surface-2); }
.btn--red { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--red:hover { box-shadow: 8px 8px 0 var(--ink); }
.btn--wide { width: 100%; }
.btn--sm { padding: 11px var(--s-4); font-size: var(--fs-200); }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 247, 244, 0.92);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(6px);
  transition: border-color var(--speed) linear, background-color var(--speed) linear;
}
.site-header.is-stuck {
  border-bottom-color: var(--primary);
  background: rgba(255, 255, 255, 0.97);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 74px;
}
.wordmark { display: inline-flex; align-items: center; gap: var(--s-3); }
.wordmark:hover { text-decoration: none; }
.wordmark svg { flex: none; }
.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark-text b { color: var(--primary); font-weight: inherit; }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a {
  font-family: var(--font-display);
  font-size: var(--fs-200);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition: color var(--speed) linear, border-color var(--speed) linear;
}
.nav a:hover, .nav a:focus-visible {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 44px;
  padding: 0 10px;
  background: var(--surface-2);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; background: var(--ink); }
.nav-toggle[aria-expanded="true"] { background: var(--primary); border-color: var(--primary); }
.nav-toggle[aria-expanded="true"] span { background: var(--bg); }

@media (max-width: 899px) {
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-deep);
    border-bottom: 4px solid var(--primary);
    padding: var(--s-3) var(--s-5) var(--s-5);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 14px 0; border-bottom: 2px solid var(--line); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav[hidden] { display: flex; }
  .header-cta { display: inline-flex; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-block: var(--s-9) var(--s-8);
  border-bottom: 2px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -120px;
  width: 460px; height: 460px;
  background: var(--accent-wash);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: var(--s-8);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-5); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  border: 3px solid var(--ink);
  filter: contrast(1.12) saturate(0.82);
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 3px solid var(--primary);
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -12px; bottom: -22px;
  background: var(--accent);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: var(--s-3) var(--s-4);
  max-width: 230px;
}
.hero-badge .numeral {
  -webkit-text-stroke: 0;
  color: var(--ink);
  font-size: 2.6rem;
  line-height: 1;
}
.hero-badge > span:last-child {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-100);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-top: 4px;
}

.trust-strip {
  display: grid;
  gap: 2px;
  margin-top: var(--s-8);
  background: var(--line);
  border: 2px solid var(--line-strong);
}
.trust-strip li {
  list-style: none;
  background: var(--surface);
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.trust-strip svg { flex: none; fill: var(--primary); }
ul.trust-strip { padding: 0; margin-inline: 0; }

@media (min-width: 780px) {
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-9); }
}

/* ------------------------------------------------------------- problem */
.card-grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.pain {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-left: 8px solid var(--primary);
  padding: var(--s-5);
  transition: transform var(--speed) var(--ease-hard),
              box-shadow var(--speed) var(--ease-hard),
              border-color var(--speed) linear;
}
.pain:hover {
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow-hard-red);
  border-top-color: var(--ink);
  border-right-color: var(--ink);
  border-bottom-color: var(--ink);
}
.pain h3 { color: var(--ink); margin-bottom: var(--s-3); }
.pain p { color: var(--muted); font-size: var(--fs-300); }
.pain .cost {
  display: block;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 2px dotted var(--line-strong);
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------- steps */
.steps { display: grid; gap: var(--s-6); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: start;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  padding: var(--s-5);
}
.step:hover { border-color: var(--primary-line); }
.step .numeral { font-size: clamp(3rem, 8vw, 4.6rem); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--muted); font-size: var(--fs-300); margin-bottom: 0; }
.step-meta {
  display: inline-block;
  margin-top: var(--s-3);
  font-size: var(--fs-100);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  border: 2px solid var(--primary-line);
  padding: 3px 10px;
}
.split { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.floor-figure { position: relative; }
.floor-figure img {
  border: 3px solid var(--ink);
  width: 100%;
  filter: contrast(1.1) saturate(0.78) brightness(1.02);
}
.floor-figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--fs-200);
  color: var(--muted);
  border-left: 4px solid var(--primary);
  padding-left: var(--s-3);
}
.floor-figure figcaption { position: relative; padding-top: var(--s-5); }
.floor-figure figcaption::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 6px;
  height: 10px;
  background-image: repeating-linear-gradient(135deg, var(--primary) 0 14px, transparent 14px 28px);
}

/* ------------------------------------------------------------ features */
.feature {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  padding: var(--s-5);
  position: relative;
  transition: transform var(--speed) var(--ease-hard),
              box-shadow var(--speed) var(--ease-hard),
              background-color var(--speed) linear;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--primary);
  transition: width var(--speed) var(--ease-hard);
}
.feature:hover {
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow-hard);
  background: var(--surface-2);
}
.feature:hover::before { width: 6px; }
.icon-slab {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--accent);
  margin-bottom: var(--s-4);
}
.icon-slab svg { fill: var(--ink); }
.feature h3 { font-size: 1.4rem; margin-bottom: var(--s-3); }
.feature p { color: var(--muted); font-size: var(--fs-300); margin-bottom: 0; }

/* ------------------------------------------------------------ outcomes */
.outcome {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-top: 10px solid var(--primary);
  padding: var(--s-6) var(--s-5);
}
.outcome:nth-child(2) { border-top-color: var(--ink); }
.outcome:nth-child(2) .numeral { -webkit-text-stroke-color: var(--ink); }
.outcome .numeral { margin-bottom: var(--s-3); font-size: clamp(3.2rem, 9vw, 5.4rem); }
.outcome h3 { font-size: 1.25rem; margin-bottom: var(--s-3); color: var(--ink); }
.outcome p { color: var(--muted); font-size: var(--fs-300); margin-bottom: 0; }
.counter-unit { -webkit-text-stroke: 0; color: var(--primary); font-size: 0.5em; }

/* -------------------------------------------------------- social proof */
.testimonial {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  padding: var(--s-6) var(--s-5) var(--s-5);
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 46px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.testimonial:hover { border-color: var(--primary-line); }
.testimonial p {
  font-size: var(--fs-400);
  line-height: 1.55;
  color: var(--ink-soft);
}
.testimonial footer {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 2px solid var(--line);
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.tstamp {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.tname {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  color: var(--ink);
  display: block;
}
.trole { font-size: var(--fs-200); color: var(--muted); display: block; line-height: 1.4; }

.metric-bar {
  display: grid;
  gap: 2px;
  margin-top: var(--s-7);
  background: var(--line-strong);
  border: 3px solid var(--primary);
}
.metric-bar div {
  background: var(--bg-deep);
  padding: var(--s-5);
  text-align: center;
}
.metric-bar .numeral { font-size: clamp(2.6rem, 7vw, 4rem); }
.metric-bar div > span:last-child {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--fs-100);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 780px) { .metric-bar { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------- pricing */
.price-grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 940px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier:hover { border-color: var(--line-strong); }
.tier--best {
  border: 3px solid var(--primary);
  background: var(--surface-2);
  box-shadow: var(--shadow-hard);
  position: relative;
}
.tier-flag {
  position: absolute;
  top: -19px; left: -3px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-100);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px var(--s-4);
}
.tier h3 { font-size: 1.6rem; margin-bottom: var(--s-2); }
.tier .who { font-size: var(--fs-200); color: var(--muted); margin-bottom: var(--s-4); }
.price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.2rem);
  line-height: 0.9;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}
.price small {
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tier ul { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-3); }
.tier li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--s-3);
  font-size: var(--fs-300);
  color: var(--ink-soft);
  align-items: start;
}
.tier li svg { fill: var(--primary); margin-top: 4px; }
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--s-6);
  border: 2px dashed var(--line-strong);
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-300);
  color: var(--muted);
  text-align: center;
}
.billing-note strong { color: var(--primary); }

/* ----------------------------------------------------------------- faq */
.faq-list { display: grid; gap: var(--s-3); max-width: 900px; }
.faq-item { background: var(--surface); border: 2px solid var(--line-strong); }
.faq-item:hover { border-color: var(--primary-line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  padding: var(--s-5);
  cursor: pointer;
}
.faq-q .plus {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  transition: background-color var(--speed) linear, transform var(--speed) var(--ease-hard);
}
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-q[aria-expanded="true"] { color: var(--primary); }
.faq-q[aria-expanded="true"] .plus { background: var(--primary); color: var(--bg); }
.faq-a { padding: 0 var(--s-5) var(--s-5); color: var(--muted); font-size: var(--fs-300); }
.faq-a p { max-width: 72ch; }

/* ------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: var(--s-8); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.form-card {
  background: var(--surface);
  border: 3px solid var(--primary);
  padding: var(--s-6) var(--s-5);
}
.field { margin-bottom: var(--s-5); }
.field label, .form-legend {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-200);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--line-strong);
  padding: 13px var(--s-4);
  font-family: var(--font-body);
  font-size: var(--fs-300);
  border-radius: var(--r-0);
  transition: border-color var(--speed) linear, background-color var(--speed) linear;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%),
                    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 14px) 22px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: var(--surface-2);
  outline: none;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--ink);
  background: var(--accent-wash);
}
.err {
  display: none;
  margin-top: 6px;
  font-size: var(--fs-200);
  font-weight: 800;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: var(--s-2);
}
.err.is-on { display: block; }
.field-row { display: grid; gap: var(--s-5); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--s-3);
  align-items: start;
  margin-bottom: var(--s-5);
}
.consent input { width: 22px; height: 22px; accent-color: var(--primary); margin-top: 2px; }
.consent label {
  font-family: var(--font-body);
  font-size: var(--fs-200);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.5;
}
.form-aside li {
  list-style: none;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  color: var(--ink-soft);
  font-size: var(--fs-300);
}
.form-aside ul { padding: 0; margin: var(--s-5) 0 0; }
.form-aside li svg { fill: var(--primary); margin-top: 3px; }
.reassure { margin-top: var(--s-4); font-size: var(--fs-200); color: var(--muted); }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--bg-deep); border-top: 6px solid var(--primary); }
.footer-grid { display: grid; gap: var(--s-7); padding-block: var(--s-8); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h4 {
  font-size: var(--fs-200);
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.footer-grid a { color: var(--ink-soft); font-size: var(--fs-300); }
.footer-grid a:hover { color: var(--primary); }
.footer-blurb { color: var(--muted); font-size: var(--fs-300); max-width: 34ch; margin-top: var(--s-4); }
.social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  transition: background-color var(--speed) linear, transform var(--speed) var(--ease-hard);
}
.social a svg { fill: var(--ink); }
.social a:hover { background: var(--primary); transform: translateY(-4px); }
.social a:hover svg { fill: var(--bg); }
.footer-base {
  border-top: 2px solid var(--line);
  padding-block: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  font-size: var(--fs-200);
  color: var(--muted);
}
.footer-base a { color: var(--muted); }
.author-byline {
  border: 2px solid var(--line-strong);
  border-left: 8px solid var(--primary);
  background: var(--surface);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-8);
}
.author-byline strong { font-family: var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; }
.author-byline p { color: var(--muted); font-size: var(--fs-300); }

/* -------------------------------------------------- inner page styling */
.page-head {
  padding-block: var(--s-8) var(--s-6);
  border-bottom: 2px solid var(--line);
  background: var(--surface);
}
.crumbs { font-size: var(--fs-200); color: var(--muted); margin-bottom: var(--s-4); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.prose { max-width: 78ch; }
.prose h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: 4px solid var(--primary);
}
.prose h3 { font-size: 1.25rem; margin-top: var(--s-6); }
.prose p, .prose li { color: var(--ink-soft); font-size: var(--fs-300); }
.prose ul, .prose ol { padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--primary); }
.fact-table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; }
.fact-table th, .fact-table td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border: 2px solid var(--line-strong);
  font-size: var(--fs-300);
}
.fact-table th { background: var(--surface-2); color: var(--primary); width: 42%; font-weight: 800; }
.portrait {
  border: 3px solid var(--primary);
  width: 220px;
  filter: grayscale(0.25) contrast(1.05);
}
.author-top { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 820px) { .author-top { grid-template-columns: 240px 1fr; } }
.link-list { display: grid; gap: var(--s-3); padding: 0; list-style: none; }
.link-list a { font-weight: 700; }
.map-group {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}
.map-group h2 { border: 0; margin-top: 0; padding-top: 0; font-size: 1.4rem; }
.map-group li { margin-bottom: var(--s-3); }
.map-group li b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.center-card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  border: 3px solid var(--primary);
  background: var(--surface);
  padding: var(--s-8) var(--s-5);
}
.center-card .numeral { margin-bottom: var(--s-4); }
.center-card .hero-actions { justify-content: center; }

/* ------------------------------------------------------------- motion */
.reveal {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 420ms var(--ease-hard), transform 420ms var(--ease-hard);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--up { transform: translateY(34px); }
.reveal--right { transform: translateX(28px); }
.reveal:nth-child(2) { transition-delay: 70ms; }
.reveal:nth-child(3) { transition-delay: 140ms; }
.reveal:nth-child(4) { transition-delay: 210ms; }

@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; }
  .btn:hover, .feature:hover, .pain:hover, .social a:hover { transform: none; }
}

@media (max-width: 460px) {
  .hero-badge { position: static; margin-top: var(--s-5); max-width: none; }
  .hero-figure::before { display: none; }
  .btn { width: 100%; }
  .step { grid-template-columns: 1fr; }
}

/* chalk outline numerals need the stroke to exist before the fill is dropped */
.numeral { color: var(--primary); }
@supports (-webkit-text-stroke: 3px #3F6212) {
  .numeral { color: transparent; }
  .numeral--solid, .hero-badge .numeral, .metric-bar .numeral { color: var(--primary); }
  .hero-badge .numeral { color: var(--ink); }
}
.numeral .counter-unit { -webkit-text-stroke: 0; color: var(--primary); }
.hero-badge .numeral .counter-unit { color: var(--ink); }
.outcome:nth-child(2) .counter-unit { color: var(--ink); }

/* ==========================================================================
   BETWEEN SESSIONS, the magazine
   Same floor, same kit: chalk white plates, deep olive rules, electric lime
   hits, Anton over Manrope, hard stops and offset shadows. No new tokens.
   ========================================================================== */

/* --------------------------------------------------- header room for it */
@media (min-width: 900px) {
  .nav { flex-wrap: wrap; justify-content: flex-end; row-gap: var(--s-2); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .nav { gap: var(--s-4); }
  .nav a { font-size: var(--fs-100); letter-spacing: 0.07em; }
  .header-cta { padding: 10px var(--s-4); }
}

/* -------------------------------------------------- magazine containers */
.mag-shell { width: min(100% - 2 * var(--s-5), 44rem); margin-inline: auto; }
.mag-figure-wrap { width: min(100% - 2 * var(--s-5), 60rem); margin-inline: auto; }

/* ------------------------------------------------------- magazine index */
.mag-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 2px solid var(--line);
  padding-block: var(--s-7) var(--s-8);
}
.mag-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: var(--accent-wash);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}
.mag-hero h1 { max-width: 14ch; margin-bottom: var(--s-5); }
.mag-hero .mag-standfirst { margin-bottom: var(--s-6); }

.mag-hero-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-4);
  border-top: 3px solid var(--primary);
  padding-top: var(--s-5);
  max-width: 64rem;
}
@media (min-width: 780px) { .mag-hero-facts { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.mag-hero-facts li {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-200);
  line-height: 1.35;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mag-hero-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.85;
  color: var(--primary);
  flex: none;
}

.mag-crumbs { margin-bottom: var(--s-5); }
.mag-crumb-sep { margin: 0 var(--s-2); color: var(--primary-deep); }
.mag-crumb-here { color: var(--ink-soft); }

.mag-grid { display: grid; gap: var(--s-6); }
@media (min-width: 700px) { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .mag-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------- index cards */
.mag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  transition: transform var(--speed) var(--ease-hard),
              box-shadow var(--speed) var(--ease-hard),
              border-color var(--speed) linear;
}
.mag-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--primary);
  border-color: var(--ink);
}
.mag-card:focus-within { border-color: var(--primary); }
.mag-card-media { position: relative; border-bottom: 2px solid var(--line-strong); }
.mag-card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: contrast(1.12) saturate(0.82);
}
.mag-card-angle {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  font-family: var(--font-display);
  font-size: var(--fs-100);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--bg);
  padding: 5px var(--s-3);
}
.mag-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1 1 auto;
  padding: var(--s-5);
}
.mag-card-title { margin: 0; font-size: 1.3rem; line-height: 1.02; }
.mag-card-title a { color: var(--ink); }
.mag-card-title a:hover { color: var(--primary); text-decoration: none; }
.mag-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.mag-card-dek { margin: 0; color: var(--muted); font-size: var(--fs-300); }
.mag-card-meta {
  margin: auto 0 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 2px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--fs-100);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-card-dot { width: 6px; height: 6px; background: var(--primary); flex: none; }

/* the lead story runs wide, with a hazard tape flash above it */
.mag-card.lead { border-color: var(--primary-line); }
.mag-card.lead::before {
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: -12px;
  height: 8px;
  background-image: repeating-linear-gradient(135deg, var(--primary) 0 16px, var(--bg) 16px 32px);
}
.mag-card.lead .mag-card-angle { background: var(--accent); color: var(--ink); }
@media (min-width: 700px) { .mag-card.lead { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .mag-card.lead { flex-direction: row; align-items: stretch; }
  .mag-card.lead .mag-card-media {
    flex: 1 1 56%;
    min-height: 22rem;
    border-bottom: 0;
    border-right: 2px solid var(--line-strong);
  }
  .mag-card.lead .mag-card-media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    aspect-ratio: auto;
  }
  .mag-card.lead .mag-card-body {
    flex: 1 1 44%;
    justify-content: center;
    gap: var(--s-4);
    padding: var(--s-7);
  }
  .mag-card.lead .mag-card-title { font-size: clamp(1.7rem, 1.1rem + 1.5vw, 2.5rem); }
  .mag-card.lead .mag-card-dek { color: var(--ink-soft); font-size: var(--fs-400); }
}

/* ------------------------------------------------------- article header */
.mag-head {
  background: var(--bg-deep);
  border-bottom: 2px solid var(--line);
  padding-block: var(--s-7) var(--s-7);
}
.mag-head h1 { font-size: clamp(2.1rem, 1.2rem + 3.7vw, 3.6rem); margin-bottom: var(--s-5); }
.mag-standfirst {
  font-size: var(--fs-500);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}
.mag-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 3px solid var(--primary);
  font-size: var(--fs-200);
  color: var(--muted);
}
.mag-byline-who { color: var(--ink-soft); }
.mag-byline a { color: var(--ink); font-weight: 800; }
.mag-byline a:hover { color: var(--primary); }
.mag-byline time { color: var(--ink-soft); }
.mag-read {
  font-family: var(--font-display);
  font-size: var(--fs-100);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--bg);
  padding: 4px var(--s-3);
}

/* ------------------------------------------------------ featured figure */
.mag-figure { margin: 0; padding-block: var(--s-7) var(--s-7); }
.mag-figure img {
  width: 100%;
  border: 3px solid var(--ink);
  filter: contrast(1.12) saturate(0.82);
}
.mag-caption {
  margin-top: var(--s-4);
  padding-left: var(--s-4);
  border-left: 4px solid var(--primary);
  font-size: var(--fs-200);
  color: var(--muted);
  max-width: 60ch;
}

/* -------------------------------------------------------- article body */
.mag-body {
  max-width: 68ch;
  font-size: var(--fs-400);
  line-height: 1.75;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}
.mag-body > h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.1rem);
  line-height: 1;
  margin: var(--s-8) 0 var(--s-4);
  padding-top: var(--s-4);
  border-top: 3px solid var(--primary);
}
.mag-body > h2:first-child { margin-top: 0; }
.mag-body h3 {
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  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: var(--s-5);
  display: grid;
  gap: var(--s-3);
}
.mag-body li { line-height: 1.7; }
.mag-body li::marker { color: var(--primary); font-weight: 800; }
.mag-body strong { color: var(--ink); }
.mag-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--primary-line);
}
.mag-body a:hover { text-decoration-color: var(--primary); }
.mag-body blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-5);
  background: var(--surface);
  border-left: 6px solid var(--primary);
  color: var(--ink);
  font-size: var(--fs-500);
  line-height: 1.45;
}
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-6) 0;
  font-size: var(--fs-300);
}
.mag-body th, .mag-body td {
  border: 2px solid var(--line);
  padding: var(--s-3) var(--s-4);
  text-align: left;
  vertical-align: top;
}
.mag-body th {
  background: var(--surface-2);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* the contextual read on links dropped between sections */
.inline-read {
  margin: var(--s-6) 0;
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-left: 6px solid var(--primary);
  font-size: var(--fs-300);
  line-height: 1.5;
  color: var(--muted);
}
.inline-read a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--primary);
}
.inline-read a:hover { color: var(--primary); }

/* ------------------------------------------------ call to action block */
.mag-cta {
  position: relative;
  display: block;
  margin-top: var(--s-8);
  padding: var(--s-7) var(--s-6) var(--s-6);
  background: var(--surface);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-flat);
}
.mag-cta::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background-image: repeating-linear-gradient(135deg, var(--primary) 0 16px, var(--surface) 16px 32px);
}
.mag-cta h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem);
  margin-bottom: var(--s-3);
}
.mag-cta p {
  color: var(--ink-soft);
  font-size: var(--fs-300);
  margin-bottom: var(--s-6);
  max-width: 56ch;
}

/* ------------------------------------------------------------ author box */
.mag-author {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding: var(--s-6);
  background: var(--bg-deep);
  border: 2px solid var(--line-strong);
  border-top: 6px solid var(--primary);
}
@media (min-width: 620px) { .mag-author { grid-template-columns: 132px 1fr; align-items: start; } }
.mag-author-photo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 3px solid var(--primary);
  filter: contrast(1.06) saturate(0.9);
}
.mag-author-kicker {
  font-family: var(--font-display);
  font-size: var(--fs-100);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-2);
}
.mag-author-name { font-size: 1.5rem; margin-bottom: var(--s-3); }
.mag-author p:not(.mag-author-kicker) { color: var(--muted); font-size: var(--fs-300); }
.mag-author-more {
  display: inline-block;
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-200);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--primary-line);
}
.mag-author-more:hover { border-bottom-color: var(--primary); text-decoration: none; }

/* ------------------------------------------------------- read also cards */
.mag-also {
  margin-top: var(--s-9);
  padding-block: var(--s-8);
  background: var(--surface);
  border-block: 2px solid var(--line);
}
.mag-also-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-bottom: var(--s-6);
}
.mag-also-head .eyebrow { margin-bottom: 0; }
.mag-also-head h2 { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
.mag-also-all {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: var(--fs-200);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--primary-line);
}
.mag-also-all:hover { border-bottom-color: var(--primary); text-decoration: none; }

.mag-also-grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .mag-also-grid { grid-template-columns: repeat(3, 1fr); } }

.mag-rel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  transition: transform var(--speed) var(--ease-hard),
              box-shadow var(--speed) var(--ease-hard),
              border-color var(--speed) linear;
}
.mag-rel:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
  border-color: var(--ink);
}
.mag-rel:focus-within { border-color: var(--primary); }
.mag-rel-media { border-bottom: 2px solid var(--line-strong); }
.mag-rel-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: contrast(1.12) saturate(0.82);
}
.mag-rel-title {
  margin: var(--s-4) var(--s-4) var(--s-2);
  font-size: 1.08rem;
  line-height: 1.06;
}
.mag-rel-title a { color: var(--ink); }
.mag-rel-title a:hover { color: var(--primary); text-decoration: none; }
.mag-rel-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.mag-rel-dek {
  margin: 0 var(--s-4) var(--s-4);
  color: var(--muted);
  font-size: var(--fs-200);
  line-height: 1.5;
}
.mag-rel-date {
  margin: auto var(--s-4) var(--s-4);
  padding-top: var(--s-3);
  border-top: 2px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--fs-100);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dim);
}

/* -------------------------------------------- magazine band on the home */
.mag-home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
.mag-home-head > div { max-width: 62ch; }
.mag-home-head h2 { margin-bottom: var(--s-4); }
.mag-home-head p { color: var(--muted); margin: 0; }
.mag-home-head .btn { margin-left: auto; }
.mag-home-grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .mag-home-grid { grid-template-columns: repeat(3, 1fr); } }

.mag-foot-cta-inner {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 980px) { .mag-foot-cta-inner { grid-template-columns: 1.4fr auto; } }
.mag-foot-cta-inner h2 { margin-bottom: var(--s-3); }
.mag-foot-cta-inner p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ------------------------------------------ author page article listing */
ul.mag-list {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  border-top: 2px solid var(--line);
}
ul.mag-list li {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) 0;
  border-bottom: 2px solid var(--line);
}
ul.mag-list a {
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
ul.mag-list a:hover { color: var(--primary); text-decoration: none; }
ul.mag-list time {
  font-family: var(--font-display);
  font-size: var(--fs-100);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------ narrow phones, 360 up */
@media (max-width: 560px) {
  .mag-shell, .mag-figure-wrap { width: calc(100% - 2 * var(--s-4)); }
  .mag-hero { padding-block: var(--s-6) var(--s-7); }
  .mag-head { padding-block: var(--s-6); }
  .mag-body { font-size: var(--fs-300); line-height: 1.7; }
  .mag-body > h2 { margin-top: var(--s-7); }
  .mag-card-body { padding: var(--s-4); }
  .mag-card-title { font-size: 1.16rem; }
  .mag-cta { padding: var(--s-6) var(--s-4) var(--s-5); }
  .mag-author { padding: var(--s-5) var(--s-4); }
  .mag-byline { gap: var(--s-2) var(--s-4); font-size: var(--fs-100); }
  .mag-also-all { margin-left: 0; }
  .mag-home-head .btn { margin-left: 0; }
  .mag-hero-num { font-size: 2.1rem; }
  .inline-read { padding: var(--s-4); }
}

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



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
