/* ==========================================================================
   EPIGFIT Körperschmiede – 6-Wochen-Challenge
   Design tokens are derived from the EPIGFIT logo (steel blue #326F9A,
   anthracite #3C3E40, hexagon grey #F0F1F2).
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* colour */
  --navy: #0f1b26;
  --navy-2: #16283a;
  --navy-3: #1f3549;
  --steel: #326f9a;
  --steel-strong: #285b80;
  --ice: #9cc4e2;
  --chalk: #f0f1f2;
  --paper: #ffffff;
  --graphite: #22262a;
  --slate: #56616c;
  --line: #d9dee3;
  --line-dark: rgba(156, 196, 226, 0.18);

  /* type */
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-300: 0.875rem;
  --fs-400: 1.0625rem;
  --fs-500: 1.25rem;
  --fs-600: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-700: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-800: clamp(2.9rem, 1.8rem + 4.6vw, 5.6rem);

  /* layout */
  --wrap: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --header-h: 72px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, .section--light :focus-visible, .section--white :focus-visible { outline-color: var(--steel); }

.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: 1rem; top: -100px; z-index: 200;
  background: var(--paper); color: var(--navy);
  padding: 0.75rem 1rem; border-radius: var(--radius-s); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
}
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-700);
  line-height: 1;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-600);
  line-height: 1.05;
}
.lead {
  font-size: var(--fs-500);
  line-height: 1.55;
  max-width: 38em;
  color: var(--slate);
  text-wrap: pretty;
}
.section--dark .lead,
.hero .lead,
.page-hero .lead,
.cta-band .lead { color: rgba(240, 241, 242, 0.78); }
.prose p + p { margin-top: 1em; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--steel);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s var(--ease-out), transform 0.16s var(--ease-out), box-shadow 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bg: var(--steel-strong); box-shadow: 0 10px 24px -12px rgba(50, 111, 154, 0.9); }
.btn:active { transform: scale(0.97); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--navy); }
.btn--light:hover { --btn-bg: var(--chalk); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(240, 241, 242, 0.4);
}
.btn--ghost:hover { --btn-bg: rgba(240, 241, 242, 0.08); box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.text-link {
  color: var(--steel);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--steel-strong); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.is-solid,
.site-header--solid {
  background: rgba(15, 27, 38, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; flex: none; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: rgba(240, 241, 242, 0.82);
  padding-block: 0.4rem;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--paper); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { min-height: 44px; padding: 0.6rem 1.25rem; font-size: 0.98rem; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  color: var(--paper);
  align-items: center;
  justify-content: center;
}
.menu-toggle__bars { position: relative; width: 24px; height: 14px; }
.menu-toggle__bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s, top 0.35s var(--ease-out);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--navy);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-dark); }
  .nav__link {
    display: block;
    padding-block: 1rem;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--paper);
  }
  .nav__link::after { display: none; }
  .nav__cta { min-height: 56px; font-size: 1.0625rem; }
  body.menu-open { overflow: hidden; }
  .site-header.menu-is-open { background: var(--navy); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--light { background: var(--chalk); }
.section--white { background: var(--paper); }
.section--dark { background: var(--navy); color: var(--chalk); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .lead { margin-top: 1.1rem; }
.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.25rem 3rem;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; }
  .section-head--split .lead { margin-top: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 0;
  background: var(--navy);
  color: var(--chalk);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 27, 38, 0.97) 0%, rgba(15, 27, 38, 0.9) 38%, rgba(15, 27, 38, 0.45) 70%, rgba(15, 27, 38, 0.6) 100%),
    linear-gradient(0deg, var(--navy) 0%, rgba(15, 27, 38, 0) 35%);
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: end;
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr); gap: 4rem; }
}
.hero__kicker {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  letter-spacing: 0.01em;
  color: var(--ice);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-800);
  line-height: 0.92;
  letter-spacing: 0.004em;
  color: var(--paper);
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line > span { display: inline-block; }
.hero .lead { margin-top: 1.5rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }
.hero__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: rgba(240, 241, 242, 0.85);
  font-size: 0.95rem;
}
.rating strong { color: var(--paper); font-size: 1.05rem; }
.rating__stars { color: #f5c451; letter-spacing: 1px; font-size: 0.9rem; }
.rating:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* hero facts strip */
.facts {
  position: relative;
  border-top: 1px solid var(--line-dark);
  background: rgba(15, 27, 38, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts__item {
  padding: 1.1rem 1rem 1.2rem 0;
  font-size: 0.95rem;
  color: rgba(240, 241, 242, 0.75);
}
.facts__item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--paper);
}
@media (min-width: 820px) {
  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts__item + .facts__item { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
}
@media (max-width: 819px) {
  .facts__item:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line-dark); }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- measurement readout (hero signature) ---------- */
.readout {
  position: relative;
  background: rgba(22, 40, 58, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.readout__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dark);
}
.readout__who { font-weight: 700; color: var(--paper); }
.readout__who span { display: block; font-weight: 400; font-size: 0.875rem; color: rgba(240, 241, 242, 0.65); }
.readout__week {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ice);
  white-space: nowrap;
}
.readout__rows { margin: 0; padding: 0; list-style: none; }
.readout__row { padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); }
.readout__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  color: rgba(240, 241, 242, 0.7);
}
.readout__from { font-variant-numeric: tabular-nums; }
.readout__value {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.readout__value small { font-size: 0.45em; font-weight: 700; color: rgba(240, 241, 242, 0.7); margin-left: 0.15em; }
.readout__bar {
  position: relative;
  height: 6px;
  margin-top: 0.85rem;
  background: rgba(156, 196, 226, 0.14);
  border-radius: 6px;
  overflow: hidden;
}
.readout__bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--steel), var(--ice));
  transform-origin: left;
  transform: scaleX(var(--to, 1));
}
.readout__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}
.readout__delta {
  font-family: var(--display);
  font-size: 1.65rem;
  white-space: nowrap;
  font-weight: 800;
  color: var(--ice);
  line-height: 1;
}
.readout__note { font-size: 0.8rem; color: rgba(240, 241, 242, 0.55); text-align: right; max-width: 15em; }

/* ---------- before / after ---------- */
.cases { display: grid; gap: clamp(3rem, 2rem + 4vw, 5.5rem); }
.case {
  display: grid;
  gap: 2rem 3.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .case { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); }
  .case--flip .compare { order: 2; }
}
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--line);
  touch-action: pan-y;
  user-select: none;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(15, 27, 38, 0.15);
}
.compare__knob {
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(15, 27, 38, 0.35);
  transition: transform 0.2s var(--ease-out);
}
.compare:hover .compare__knob,
.compare.is-dragging .compare__knob { transform: scale(1.08); }
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none; /* pointer is handled on .compare; the range stays for keyboard users */
  -webkit-appearance: none;
  appearance: none;
}
.compare { cursor: ew-resize; }
.compare__range:focus-visible + .compare__handle .compare__knob { outline: 3px solid var(--steel); outline-offset: 3px; }
.compare__tag {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
  background: rgba(15, 27, 38, 0.78);
  color: var(--paper);
}
.compare__tag--before { left: 1rem; }
.compare__tag--after { right: 1rem; background: var(--steel); }

.case__name { font-family: var(--display); font-size: var(--fs-700); font-weight: 800; line-height: 1; }
.case__role { margin-top: 0.4rem; color: var(--slate); }
.case__delta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.case__delta strong {
  font-family: var(--display);
  font-size: clamp(3.4rem, 2.6rem + 3vw, 4.8rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--steel);
}
.case__delta span { color: var(--slate); max-width: 17em; line-height: 1.35; }
.case__table {
  width: 100%;
  margin-top: 1.75rem;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.case__table th,
.case__table td { text-align: left; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.case__table thead th { font-size: 0.85rem; font-weight: 700; color: var(--slate); }
.case__table tbody th { font-weight: 600; color: var(--slate); width: 30%; }
.case__table td:last-child { color: var(--navy); font-weight: 700; }
.case__quote {
  margin-top: 1.75rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--steel);
  font-size: 1.05rem;
  line-height: 1.6;
}
.disclaimer { margin-top: 1rem; font-size: 0.85rem; color: var(--slate); }

/* results rail */
.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin: clamp(4rem, 3rem + 4vw, 6rem) 0 1.75rem;
}
.rail-head .h3 { font-size: var(--fs-600); }
.rail-controls { display: flex; gap: 0.5rem; }
.rail-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background-color 0.2s, transform 0.16s var(--ease-out);
}
.rail-btn:hover { border-color: var(--steel); }
.rail-btn:active { transform: scale(0.94); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 82%);
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 1rem;
  margin: 0 calc(var(--gutter) * -1);
  list-style: none;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .rail { grid-auto-columns: minmax(300px, 45%); } }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 2 * 1.25rem - 2 * var(--gutter)) / 3); } }
.story {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
}
.story img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.story__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.story__name { font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.story__place { display: block; font-family: var(--body); font-size: 0.9rem; font-weight: 400; color: var(--slate); margin-top: 0.3rem; }
.story__data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.9rem 0;
  border-block: 1px solid var(--line);
}
.story__data dt { font-size: 0.8rem; color: var(--slate); }
.story__data dd { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); }
.story__quote { font-size: 0.98rem; line-height: 1.6; color: var(--graphite); }

/* ---------- what's included ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar {
  display: grid;
  gap: 1rem 3rem;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .pillar { grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.2fr); align-items: start; }
}
.pillar__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--chalk);
  color: var(--steel);
  display: grid;
  place-items: center;
}
.pillar__title { font-family: var(--display); font-size: var(--fs-600); font-weight: 800; line-height: 1.05; }
.pillar__text { color: var(--slate); max-width: 36em; }
.pillar__list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.pillar__list li { position: relative; padding-left: 1.8rem; }
.pillar__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.32em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.package {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--navy);
  color: var(--chalk);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.package__item {
  padding: 1.6rem 1.4rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.package__item dt {
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--paper);
}
.package__item dd { margin-top: 0.4rem; color: rgba(240, 241, 242, 0.75); font-size: 0.98rem; line-height: 1.4; }
@media (min-width: 900px) {
  .package { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .package__item { border-bottom: 0; }
  .package__item:last-child { border-right: 0; }
}
@media (max-width: 899px) {
  .package__item:nth-child(even) { border-right: 0; }
  .package__item:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- InBody ---------- */
.inbody { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .inbody { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 5rem; } }
.inbody__device {
  position: relative;
  justify-self: center;
  width: min(300px, 70%);
}
.inbody__device::before {
  content: "";
  position: absolute;
  inset: 12% -20% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(50, 111, 154, 0.55), transparent);
  z-index: 0;
}
.inbody__device img { position: relative; z-index: 1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  overflow: hidden;
  list-style: none;
  padding: 0;
}
.metrics li { background: var(--navy); padding: 1.1rem 1.1rem 1.2rem; }
.metrics li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.metrics strong { display: block; color: var(--paper); font-size: 1.05rem; }
.metrics span { display: block; margin-top: 0.25rem; font-size: 0.9rem; color: rgba(240, 241, 242, 0.68); line-height: 1.45; }

.versus {
  width: 100%;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}
.versus caption { text-align: left; margin-bottom: 1.5rem; }
.versus th, .versus td { text-align: left; padding: 1rem 1.25rem; vertical-align: top; border-bottom: 1px solid var(--line-dark); }
.versus thead th { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--paper); border-bottom-width: 2px; }
.versus thead th:last-child { color: var(--ice); }
.versus td:first-child { color: rgba(240, 241, 242, 0.62); }
.versus td:last-child { color: var(--paper); background: rgba(50, 111, 154, 0.12); }
.versus thead th:last-child { background: rgba(50, 111, 154, 0.12); border-radius: var(--radius-s) var(--radius-s) 0 0; }
@media (max-width: 700px) {
  .versus, .versus tbody, .versus tr, .versus td { display: block; width: 100%; }
  .versus thead { display: none; }
  .versus tr { padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
  .versus td { border: 0; padding: 0.35rem 0 0.35rem 1.9rem; position: relative; background: none !important; }
  .versus td::before {
    position: absolute; left: 0; top: 0.3rem;
    font-weight: 700; font-size: 1rem; width: 1.4rem; text-align: center;
  }
  .versus td:first-child::before { content: "–"; color: rgba(240, 241, 242, 0.5); }
  .versus td:last-child::before { content: "✓"; color: var(--ice); }
}

/* ---------- timeline ---------- */
.timeline {
  --progress: 0;
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-left: clamp(3.5rem, 2.5rem + 3vw, 6rem);
  list-style: none;
  margin: 0;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 0.5rem; bottom: 0.5rem;
  left: clamp(1.1rem, 0.8rem + 1vw, 1.8rem);
  width: 2px;
}
.timeline::before { background: var(--line); }
.timeline::after {
  background: var(--steel);
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.phase { position: relative; display: grid; gap: 0.75rem 3rem; }
@media (min-width: 900px) { .phase { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); } }
.phase::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(3.5rem, 2.5rem + 3vw, 6rem) + clamp(1.1rem, 0.8rem + 1vw, 1.8rem) - 9px);
  top: 0.55rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  z-index: 1;
  transition: border-color 0.4s, background-color 0.4s, transform 0.4s var(--ease-out);
}
.phase.is-reached::before { border-color: var(--steel); background: var(--steel); transform: scale(1.1); }
.phase__weeks {
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--steel);
}
.phase__title { font-family: var(--display); font-size: var(--fs-600); font-weight: 800; line-height: 1.05; margin-top: 0.4rem; }
.phase__text { color: var(--slate); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.tags li { padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--chalk); font-size: 0.88rem; font-weight: 600; color: var(--navy); }

.start-box {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-m);
  background: var(--navy);
  color: var(--chalk);
}
@media (min-width: 900px) { .start-box { grid-template-columns: 1fr auto auto; } }
.start-box__date { font-family: var(--display); font-size: var(--fs-600); font-weight: 800; color: var(--paper); line-height: 1.05; }
.start-box__label { color: rgba(240, 241, 242, 0.7); font-size: 0.95rem; }
.countdown { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.countdown li {
  min-width: 76px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-s);
  background: var(--navy-2);
  text-align: center;
}
.countdown strong { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 0.8rem; color: rgba(240, 241, 242, 0.65); }

/* ---------- coaches ---------- */
.coaches { display: grid; gap: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.coach { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 900px) {
  .coach { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .coach:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .coach:nth-child(even) .coach__photo { order: 2; }
}
.coach__photo { position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--navy-2); }
.coach__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.coach__name { font-family: var(--display); font-size: var(--fs-700); font-weight: 900; line-height: 1; color: var(--paper); }
.coach__role { margin-top: 0.5rem; color: var(--ice); font-weight: 600; }
.coach__bio { margin-top: 1.5rem; color: rgba(240, 241, 242, 0.8); max-width: 38em; }
.coach__bio p + p { margin-top: 0.9em; }
.coach__quote {
  margin-top: 1.75rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--steel);
  font-style: italic;
  color: var(--paper);
}
.coach__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0 0;
  border-top: 1px solid var(--line-dark);
}
.coach__stats div { padding: 1rem 0.75rem 0 0; }
.coach__stats dt { order: 2; font-size: 0.88rem; color: rgba(240, 241, 242, 0.65); line-height: 1.35; }
.coach__stats dd { font-family: var(--display); font-size: 2.2rem; font-weight: 900; color: var(--paper); line-height: 1.05; }
.coach__stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.2rem; }

.quote-band {
  margin-top: clamp(4rem, 3rem + 4vw, 6rem);
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 900px) { .quote-band { grid-template-columns: 1fr auto; } }
.quote-band blockquote p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  line-height: 1.1;
  color: var(--paper);
  max-width: 26ch;
  text-wrap: balance;
}
.quote-band cite { display: block; margin-top: 1rem; font-style: normal; color: var(--ice); }

/* ---------- gym gallery ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 800px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 1rem; }
  .mosaic__item--wide { grid-column: span 2; }
  .mosaic__item--tall { grid-row: span 2; }
}
.mosaic__item--hero { grid-column: span 2; grid-row: span 2; }
.mosaic__item { position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--line); }
.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__item figcaption {
  position: absolute;
  left: 0.75rem; bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 27, 38, 0.75);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
}
.visit {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  align-items: center;
}
@media (min-width: 800px) { .visit { grid-template-columns: 1fr auto; } }
.visit address { font-style: normal; font-size: 1.1rem; }
.visit address strong { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: none;
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--chalk);
  transition: background-color 0.25s, transform 0.35s var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), background-color 0.25s;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--steel); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: var(--paper); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--steel); }
.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }
.faq__answer { padding: 0 3.5rem 1.6rem 0; color: var(--slate); max-width: 44em; }

/* ---------- lead form / final CTA ---------- */
.signup { display: grid; gap: 3rem 4.5rem; align-items: start; }
@media (min-width: 960px) { .signup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.signup__points { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.signup__points li { position: relative; padding-left: 2.1rem; color: rgba(240, 241, 242, 0.85); }
.signup__points li::before {
  content: "";
  position: absolute; left: 0; top: 0.15em;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.signup__points strong { color: var(--paper); }

.form-card {
  background: var(--paper);
  color: var(--graphite);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.form-card__title { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.05; color: var(--navy); }
.form-card__intro { margin-top: 0.5rem; color: var(--slate); }
.form { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover { border-color: #b9c2ca; }
.field input:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(50, 111, 154, 0.18); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__error { font-size: 0.875rem; color: #b3261e; min-height: 0; }
.field__error:empty { display: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: 0.85rem; color: var(--slate); line-height: 1.5; }
.form__legal a { color: var(--steel); }
.form__status { font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-error { color: #b3261e; }
.form .btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.form-success { text-align: left; }
.form-success__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--steel);
  color: var(--paper);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(240, 241, 242, 0.75); padding: clamp(3.5rem, 3rem + 2vw, 5rem) 0 2rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer img { width: 190px; }
.site-footer h2 { font-size: 1rem; font-weight: 700; color: var(--paper); margin-bottom: 1rem; font-family: var(--body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { font-style: normal; margin-top: 1.25rem; line-height: 1.7; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: none; }
.link-button:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(15, 27, 38, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 961px) { .sticky-cta { display: none; } }

/* ---------- video dialog ---------- */
.video-dialog {
  width: min(1100px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  background: #000;
  overflow: visible;
}
.video-dialog::backdrop { background: rgba(8, 14, 20, 0.86); }
.video-dialog[open] { animation: dialog-in 0.35s var(--ease-out); }
.video-dialog__frame { position: relative; aspect-ratio: 16 / 9; border-radius: inherit; overflow: hidden; }
.video-dialog__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-dialog__close {
  position: absolute;
  top: -56px; right: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--navy);
  display: grid;
  place-items: center;
}
.video-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--paper);
  background: center / cover no-repeat;
}
.video-consent::before { content: ""; position: absolute; inset: 0; background: rgba(15, 27, 38, 0.72); }
.video-consent > * { position: relative; }
.video-consent p { max-width: 34em; margin: 0 auto 1.25rem; font-size: 0.95rem; color: rgba(240, 241, 242, 0.85); }
.video-consent a { color: var(--ice); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* video teaser button in hero */
.btn__play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-left: -0.5rem;
}

/* ---------- sub pages (blog, legal, form) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--chalk);
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 5.5rem)) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
}
.page-hero h1 { font-family: var(--display); font-size: var(--fs-800); font-weight: 900; line-height: 0.95; color: var(--paper); max-width: 18ch; text-wrap: balance; }
.page-hero--article h1 { font-size: var(--fs-700); max-width: 24ch; }
.page-hero .lead { margin-top: 1.25rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: 0.92rem; color: rgba(240, 241, 242, 0.65); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(240, 241, 242, 0.35); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--paper); text-decoration: underline; }
.meta-line { margin-top: 1.25rem; color: rgba(240, 241, 242, 0.7); font-size: 0.95rem; }

.article { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.article__cover { max-width: 960px; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem); border-radius: var(--radius-m); overflow: hidden; }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body { max-width: 68ch; margin-inline: auto; font-size: 1.125rem; line-height: 1.75; }
.article__body h2 { font-family: var(--display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); font-weight: 800; line-height: 1.05; margin: 2.6em 0 0.7em; color: var(--navy); }
.article__body p + p { margin-top: 1.1em; }
.article__body a { color: var(--steel); font-weight: 600; text-underline-offset: 3px; }
.article__body a:hover { color: var(--steel-strong); }
.article__body ul { margin: 1.1em 0; padding-left: 1.2em; }
.article__body li + li { margin-top: 0.4em; }
.article__body .tldr {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-m);
  background: var(--chalk);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.article__body .tldr strong { display: block; color: var(--navy); margin-bottom: 0.35rem; }
.author-box {
  max-width: 68ch;
  margin: clamp(3rem, 2rem + 2vw, 4rem) auto 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box strong { display: block; font-size: 1.1rem; }
.author-box p { color: var(--slate); font-size: 0.98rem; }

.post-list { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 800px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-m); overflow: hidden; background: var(--paper); border: 1px solid var(--line); text-decoration: none; height: 100%; transition: border-color 0.25s, transform 0.3s var(--ease-out); }
.post-card:hover { border-color: var(--steel); transform: translateY(-3px); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.post-card__title { font-family: var(--display); font-size: 1.8rem; font-weight: 800; line-height: 1.05; color: var(--navy); }
.post-card__excerpt { color: var(--slate); }
.post-card__more { margin-top: auto; color: var(--steel); font-weight: 700; }

.legal { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.legal__body { max-width: 72ch; }
.legal__body h2 { font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1.1; margin: 2.2em 0 0.6em; color: var(--navy); }
.legal__body h3 { font-size: 1.1rem; margin: 1.6em 0 0.4em; }
.legal__body p + p { margin-top: 0.9em; }
.legal__body ul { padding-left: 1.2em; margin: 0.8em 0; }
.legal__body a { color: var(--steel); }
.legal__todo { padding: 1rem 1.25rem; border-radius: var(--radius-s); background: #fff4d6; border: 1px solid #f0d58a; color: #5b4500; font-size: 0.95rem; margin: 1rem 0; }

.cta-band { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); background: var(--navy); color: var(--chalk); }
.cta-band__inner { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { margin-inline: auto; }

/* ---------- motion ---------- */
/* Hero page-load sequence (the one orchestrated moment). */
.js .hero__line > span { transform: translateY(105%); }
.js .hero__kicker,
.js .hero .lead,
.js .hero__actions,
.js .hero__ratings { opacity: 0; transform: translateY(14px); }
.js .readout { opacity: 0; transform: translateY(24px) scale(0.98); }
.js .is-loaded .hero__line > span { transform: none; transition: transform 0.9s var(--ease-out); }
.js .is-loaded .hero__line:nth-child(2) > span { transition-delay: 0.08s; }
.js .is-loaded .hero__line:nth-child(3) > span { transition-delay: 0.16s; }
.js .is-loaded .hero__kicker,
.js .is-loaded .lead,
.js .is-loaded .hero__actions,
.js .is-loaded .hero__ratings {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .is-loaded .hero__kicker { transition-delay: 0s; }
.js .is-loaded .lead { transition-delay: 0.35s; }
.js .is-loaded .hero__actions { transition-delay: 0.45s; }
.js .is-loaded .hero__ratings { transition-delay: 0.55s; }
.js .is-loaded .readout { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out) 0.4s, transform 0.9s var(--ease-out) 0.4s; }
.readout__bar > span { transition: transform 1.6s var(--ease-in-out); }
.js .readout:not(.is-measured) .readout__bar > span { transform: scaleX(1); }

/* Gallery images uncover once as they enter (clip reveal, no fade). */
.js .reveal-clip { clip-path: inset(0 0 100% 0 round var(--radius-m)); }
.js .reveal-clip.is-in { clip-path: inset(0 0 0 0 round var(--radius-m)); transition: clip-path 1s var(--ease-out); }
.js .mosaic .reveal-clip.is-in:nth-child(2) { transition-delay: 0.08s; }
.js .mosaic .reveal-clip.is-in:nth-child(3) { transition-delay: 0.16s; }
.js .mosaic .reveal-clip.is-in:nth-child(4) { transition-delay: 0.24s; }
.js .mosaic .reveal-clip.is-in:nth-child(5) { transition-delay: 0.12s; }
.js .mosaic .reveal-clip.is-in:nth-child(6) { transition-delay: 0.2s; }
.js .mosaic .reveal-clip.is-in:nth-child(7) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .hero__line > span,
  .js .hero__kicker, .js .hero .lead, .js .hero__actions, .js .hero__ratings,
  .js .readout { opacity: 1; transform: none; }
  .js .reveal-clip { clip-path: none; }
}

@media print {
  .site-header, .sticky-cta, .video-dialog, .nav { display: none !important; }
  .hero, .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
}
