/* ==========================================================================
   TutorCredits design system
   Study bright: notebook white, focused violet, highlighter yellow.
   Motifs: index tab shapes, ruled paper, progress ladders, credit tickers.
   ========================================================================== */

:root {
  /* ---- brief palette ---- */
  --bg: #FAF9FE;
  --surface: #FFFFFF;
  --ink: #1A1726;
  --primary: #5B3FC4;
  --accent: #FFD34E;
  --muted: #615C71;

  /* ---- derived violets ---- */
  --violet-950: #1B1240;
  --violet-900: #241A52;
  --violet-800: #2F2069;
  --violet-700: #422DA0;
  --violet-600: #5B3FC4;
  --violet-500: #7358D6;
  --violet-400: #9481E4;
  --violet-300: #B4A6EF;
  --violet-200: #D6CDF7;
  --violet-100: #E9E3FB;
  --violet-050: #F4F1FE;

  /* ---- derived highlighter ---- */
  --yellow-700: #8A6300;
  --yellow-600: #B98A05;
  --yellow-500: #E7B117;
  --yellow-400: #FFD34E;
  --yellow-300: #FFE28A;
  --yellow-200: #FFEFC0;
  --yellow-100: #FFF8E4;

  /* ---- support ---- */
  --ink-soft: #3A3450;
  --muted-2: #7A7489;
  --rule: #E4DFF4;
  --rule-strong: #CEC5EA;
  --green: #1C7A57;
  --green-soft: #E4F5EE;
  --rose: #B03A5F;
  --rose-soft: #FCE9EF;

  /* ---- spacing scale ---- */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 2.75rem;
  --s7: 3.5rem;
  --s8: 4.5rem;
  --s9: 6rem;
  --s10: 8rem;

  /* ---- radii ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* ---- shadows, violet tinted ---- */
  --sh-1: 0 1px 2px rgba(36, 26, 82, 0.06), 0 2px 6px rgba(36, 26, 82, 0.05);
  --sh-2: 0 2px 6px rgba(36, 26, 82, 0.07), 0 10px 24px rgba(36, 26, 82, 0.08);
  --sh-3: 0 4px 12px rgba(36, 26, 82, 0.09), 0 22px 46px rgba(36, 26, 82, 0.12);
  --sh-tab: 0 -2px 0 rgba(36, 26, 82, 0.06);
  --ring: 0 0 0 3px var(--surface), 0 0 0 6px var(--violet-600);

  /* ---- type ---- */
  --font-display: "Gabarito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Domine", Georgia, "Times New Roman", serif;
  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.08rem, 0.4vw + 1rem, 1.2rem);
  --t-xl: clamp(1.3rem, 0.8vw + 1.05rem, 1.55rem);
  --t-2xl: clamp(1.6rem, 1.4vw + 1.2rem, 2.1rem);
  --t-3xl: clamp(2rem, 2.4vw + 1.3rem, 2.9rem);
  --t-4xl: clamp(2.4rem, 3.6vw + 1.4rem, 3.9rem);

  /* ---- layout ---- */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 74px;

  /* ---- motif geometry ---- */
  --tab-cut: polygon(0% 100%, 7% 8%, 12% 0%, 88% 0%, 93% 8%, 100% 100%);
  --rule-height: 30px;
}

/* ---- animated credit ticker registers ---- */
@property --burn {
  syntax: "<integer>";
  inherits: true;
  initial-value: 24;
}
@property --burn2 {
  syntax: "<integer>";
  inherits: true;
  initial-value: 12;
}

/* ==========================================================================
   1. Reset and base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display {
  font-family: var(--font-display);
  color: var(--violet-950);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s3);
  font-weight: 700;
}

h1 { font-size: var(--t-4xl); letter-spacing: -0.028em; }
h2 { font-size: var(--t-3xl); letter-spacing: -0.022em; }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

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

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

ul, ol { margin: 0 0 var(--s3); padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 700; color: var(--violet-900); }

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: var(--s6) 0;
}

::selection { background: var(--yellow-300); color: var(--violet-950); }

/* ---- focus ring, visible on every interactive element ---- */
:focus-visible {
  outline: 3px solid var(--violet-600);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.btn:focus-visible,
.tab-link:focus-visible,
.faq__q:focus-visible {
  outline: 3px solid var(--violet-700);
  outline-offset: 4px;
}
a:focus-visible { text-decoration: none; background: var(--yellow-200); }

/* ---- helpers ---- */
.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 {
  position: absolute;
  top: -70px;
  left: var(--s3);
  z-index: 999;
  background: var(--violet-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.18s ease;
}
.skip:focus { top: 0; color: #fff; }

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

.section { padding-block: clamp(3.2rem, 7vw, 6.2rem); position: relative; }
.section--tight { padding-block: clamp(2.4rem, 5vw, 4rem); }

/* ==========================================================================
   2. Motif primitives: ruled paper, index tabs, highlighter, ladders
   ========================================================================== */

/* ---- ruled notebook paper ---- */
.paper {
  background-color: var(--surface);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--rule-height) - 1px),
      var(--violet-100) calc(var(--rule-height) - 1px),
      var(--violet-100) var(--rule-height)
    );
  background-position: 0 6px;
}
.paper--margin {
  position: relative;
}
.paper--margin::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 34px;
  width: 2px;
  background: color-mix(in srgb, var(--rose) 42%, transparent);
  opacity: 0.55;
}

/* a torn out sheet of the notebook, used to hold the ladder */
.notesheet {
  border: 1px solid var(--rule);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  box-shadow: var(--sh-1);
  padding: var(--s5) var(--s4) var(--s5) var(--s6);
}
.notesheet .ladder { --rail-gap: 44px; }

/* ---- index tab, the signature shape ---- */
.tab {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--violet-950);
  background: var(--yellow-400);
  padding: 0.55rem 1.4rem 0.45rem;
  clip-path: var(--tab-cut);
  line-height: 1.2;
}
.tab--violet { background: var(--violet-600); color: #fff; }
.tab--pale { background: var(--violet-100); color: var(--violet-800); }

/* eyebrow tab that sits on the top edge of a panel */
.tabhead {
  display: flex;
  align-items: flex-end;
  gap: var(--s1);
  margin-bottom: 0;
  transform: translateY(1px);
}

/* card with a folder tab notched into its top edge */
.tabcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  padding: var(--s5) var(--s4) var(--s4);
  box-shadow: var(--sh-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tabcard::before {
  content: "";
  position: absolute;
  top: -13px;
  left: -1px;
  width: 96px;
  height: 14px;
  background: var(--violet-600);
  clip-path: polygon(0 100%, 0 22%, 9% 0, 78% 0, 92% 40%, 100% 100%);
}
.tabcard--accent::before { background: var(--yellow-400); }
.tabcard--pale::before { background: var(--violet-300); }
.tabcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--violet-200);
}

/* ---- highlighter swipe behind words ---- */
.hl {
  position: relative;
  display: inline;
  background-image: linear-gradient(to top, var(--yellow-300) 0 42%, transparent 42%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.12em;
  border-radius: 2px;
}
.hl--strong {
  background-image: linear-gradient(to top, var(--yellow-400) 0 58%, transparent 58%);
}
.reveal .hl { background-size: 0% 100%; }
.reveal.is-in .hl {
  background-size: 100% 100%;
  transition: background-size 0.75s cubic-bezier(0.22, 0.9, 0.3, 1) 0.15s;
}

/* ---- progress ladder ---- */
.ladder {
  --rail-gap: 56px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--rail-gap);
  counter-reset: rung;
}
.ladder::before,
.ladder::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: var(--r-pill);
  background: var(--violet-200);
}
.ladder::before { left: 8px; }
.ladder::after { left: calc(var(--rail-gap) - 16px); }

.ladder > li {
  position: relative;
  margin: 0 0 var(--s5);
  padding: 0 0 0 var(--s3);
}
.ladder > li:last-child { margin-bottom: 0; }
.ladder > li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--rail-gap) + 12px);
  top: 1.15em;
  width: calc(var(--rail-gap) - 24px);
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--violet-300);
}
.ladder > li::after {
  counter-increment: rung;
  content: counter(rung);
  position: absolute;
  left: calc(-1 * var(--rail-gap) + 14px);
  top: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-400);
  color: var(--violet-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-sm);
  box-shadow: 0 0 0 4px var(--surface);
}

/* the climbing marker */
.climber {
  position: relative;
  height: 250px;
  width: 96px;
  flex: 0 0 96px;
}
.climber__rails::before,
.climber__rails::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 5px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--violet-300) 60%, transparent);
}
.climber__rails::before { left: 16px; }
.climber__rails::after { right: 16px; }
.climber__rungs {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  right: 18px;
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--violet-300) 60%, transparent) 0 4px,
    transparent 4px 56px
  );
  background-position: 0 14px;
}
.climber__pip {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 9px;
  background: var(--yellow-400);
  border: 2px solid var(--violet-900);
  box-shadow: 0 6px 14px rgba(36, 26, 82, 0.2);
  animation: climb 6.5s cubic-bezier(0.6, 0, 0.35, 1) infinite;
}
@keyframes climb {
  0%   { transform: translateY(0) rotate(-3deg); }
  18%  { transform: translateY(-56px) rotate(2deg); }
  36%  { transform: translateY(-112px) rotate(-2deg); }
  54%  { transform: translateY(-168px) rotate(3deg); }
  72%, 88% { transform: translateY(-214px) rotate(0deg); }
  100% { transform: translateY(0) rotate(-3deg); }
}

/* ---- credit ticker that counts itself down ---- */
.ticker {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--violet-950);
}
.ticker::after {
  content: counter(burnc);
  counter-reset: burnc var(--burn);
}
.ticker--b::after {
  content: counter(burnd);
  counter-reset: burnd var(--burn2);
}
.is-in .ticker { animation: burndown 9s steps(1, end) infinite; }
.is-in .ticker--b { animation: burndown2 7.5s steps(1, end) infinite; }
@keyframes burndown {
  0%   { --burn: 24; }
  10%  { --burn: 24; }
  70%  { --burn: 2; }
  86%  { --burn: 2; }
  100% { --burn: 24; }
}
@keyframes burndown2 {
  0%   { --burn2: 12; }
  8%   { --burn2: 12; }
  74%  { --burn2: 1; }
  90%  { --burn2: 1; }
  100% { --burn2: 12; }
}

/* ==========================================================================
   3. Buttons and small components
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-base);
  letter-spacing: 0.005em;
  line-height: 1.15;
  padding: 0.92rem 1.55rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn--primary {
  background: var(--violet-600);
  color: #fff;
  box-shadow: 0 6px 0 var(--violet-800);
}
.btn--primary:hover {
  background: var(--violet-700);
  color: #fff;
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--violet-900);
}
.btn--primary:active { transform: translateY(6px); box-shadow: 0 0 0 var(--violet-900); }
.btn--accent {
  background: var(--yellow-400);
  color: var(--violet-950);
  box-shadow: 0 6px 0 var(--yellow-600);
}
.btn--accent:hover {
  background: var(--yellow-300);
  color: var(--violet-950);
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--yellow-600);
}
.btn--ghost {
  background: var(--surface);
  color: var(--violet-800);
  border-color: var(--violet-200);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { border-color: var(--violet-400); color: var(--violet-700); background: var(--violet-050); }
.btn--sm { padding: 0.62rem 1.1rem; font-size: var(--t-sm); }
.btn--wide { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.34rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--violet-100);
  color: var(--violet-800);
}
.pill--accent { background: var(--yellow-200); color: var(--yellow-700); }
.pill--green { background: var(--green-soft); color: var(--green); }
.pill--rose { background: var(--rose-soft); color: var(--rose); }

.lede {
  font-size: var(--t-lg);
  color: var(--ink-soft);
  line-height: 1.68;
}
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-600);
  margin: 0 0 var(--s2);
}

.icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 34px; height: 34px; flex-basis: 34px; }
.icon--sm { width: 18px; height: 18px; flex-basis: 18px; stroke-width: 2.1; }

.iconpad {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  background: var(--violet-050);
  color: var(--violet-700);
  border: 1px solid var(--violet-100);
  margin-bottom: var(--s3);
}
.tabcard--accent .iconpad { background: var(--yellow-100); color: var(--yellow-700); border-color: var(--yellow-200); }

/* ==========================================================================
   4. Header and navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 18px rgba(36, 26, 82, 0.07);
}
.site-header__bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--violet-950);
  text-decoration: none;
}
.brand:hover { color: var(--violet-700); }
.brand__mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand__name .hl { background-image: linear-gradient(to top, var(--yellow-300) 0 34%, transparent 34%); }

.nav { display: flex; align-items: center; gap: var(--s1); }
.nav__list {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.tab-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.95rem 0.55rem;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.tab-link:hover {
  background: var(--violet-100);
  color: var(--violet-800);
  transform: translateY(-2px);
}
.nav__cta { margin-left: var(--s2); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--violet-200);
  background: var(--surface);
  color: var(--violet-800);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s1);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    box-shadow: var(--sh-3);
    padding: var(--s3);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .tab-link { border-radius: var(--r-sm); padding: 0.7rem 0.8rem; }
  .tab-link:hover { transform: none; }
  .nav__cta { margin-left: 0; }
  .nav__cta .btn { width: 100%; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(2.4rem, 5vw, 4.6rem) clamp(3rem, 6vw, 5.4rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 12% -10%, var(--violet-100) 0%, transparent 62%),
    radial-gradient(680px 380px at 96% 4%, var(--yellow-100) 0%, transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: var(--s4); }
.hero__lede { max-width: 34rem; margin-bottom: var(--s5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }

.trustrip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: flex-end;
  border-bottom: 3px solid var(--violet-200);
  padding-bottom: 0;
}
.trustrip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--violet-900);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-bottom: none;
  padding: 0.6rem 0.95rem;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  margin-right: 4px;
}
.trustrip__item svg { color: var(--violet-600); }
.trustrip__item:nth-child(2) { background: var(--yellow-100); border-color: var(--yellow-200); }
.trustrip__item:nth-child(3) { background: var(--violet-050); }

/* the hero photograph, framed like an index card in a folder */
.hero__media { position: relative; z-index: 1; }
.folder {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 6px var(--r-lg) var(--r-lg) var(--r-lg);
  padding: 10px;
  box-shadow: var(--sh-3);
}
.folder::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -1px;
  width: 168px;
  height: 20px;
  background: var(--violet-600);
  clip-path: polygon(0 100%, 0 26%, 6% 0, 82% 0, 93% 44%, 100% 100%);
}
.folder::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 158px;
  width: 96px;
  height: 20px;
  background: var(--yellow-400);
  clip-path: polygon(0 100%, 4% 20%, 12% 0, 84% 0, 94% 44%, 100% 100%);
}
.folder__label {
  position: absolute;
  top: -16px;
  left: 16px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
}
.folder img {
  width: 100%;
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

/* floating balance chip over the photo */
.balance {
  position: absolute;
  right: -14px;
  bottom: -26px;
  background: var(--surface);
  border: 1px solid var(--violet-200);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 0.85rem 1.05rem;
  min-width: 214px;
}
.balance__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
}
.balance__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--violet-900);
}
.balance__count { font-size: 1.75rem; line-height: 1; }
.balance__unit { font-size: var(--t-xs); color: var(--muted); font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.balance__bar {
  margin-top: 0.55rem;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--violet-100);
  overflow: hidden;
}
.balance__bar span {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--violet-500), var(--yellow-400));
}
.balance__note {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--t-xs);
  color: var(--yellow-700);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { margin-top: var(--s5); }
  .balance { right: 4px; bottom: -20px; }
}
@media (max-width: 460px) {
  .balance { position: static; margin-top: var(--s4); min-width: 0; }
  .folder::after { display: none; }
}

/* ==========================================================================
   6. Section furniture
   ========================================================================== */

.section__head {
  max-width: 44rem;
  margin-bottom: var(--s6);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: var(--t-lg); }

.rulebar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: var(--s3);
}
.rulebar span {
  display: block;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--violet-200);
}
.rulebar span:nth-child(1) { width: 42px; background: var(--violet-600); }
.rulebar span:nth-child(2) { width: 22px; background: var(--yellow-400); }
.rulebar span:nth-child(3) { width: 12px; }

.grid { display: grid; gap: var(--s4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

/* ==========================================================================
   7. Problem section
   ========================================================================== */

.problem { background: var(--bg); }
.problem__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s4); }

.leak {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--rose);
  border-radius: 4px var(--r-md) var(--r-md) 4px;
  padding: var(--s4);
  box-shadow: var(--sh-1);
}
.leak h3 { font-size: var(--t-lg); margin-bottom: 0.6rem; }
.leak p { font-size: var(--t-base); color: var(--ink-soft); margin-bottom: var(--s3); }
.leak__cost {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--rose);
  background: var(--rose-soft);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.7rem;
  font-size: var(--t-sm);
}
.leak:nth-child(2) { border-left-color: var(--yellow-500); }
.leak:nth-child(2) .leak__cost { color: var(--yellow-700); background: var(--yellow-100); }
.leak:nth-child(3) { border-left-color: var(--violet-500); }
.leak:nth-child(3) .leak__cost { color: var(--violet-700); background: var(--violet-050); }
.leak:nth-child(4) { border-left-color: var(--muted); }
.leak:nth-child(4) .leak__cost { color: var(--ink-soft); background: var(--violet-050); }

.problem__aside {
  margin-top: var(--s5);
  background: var(--violet-950);
  color: #F2EFFB;
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  justify-content: space-between;
}
.problem__aside p { margin: 0; max-width: 46rem; font-size: var(--t-base); }
.problem__aside strong { color: var(--yellow-400); }

/* ==========================================================================
   8. Solution, the ladder of steps
   ========================================================================== */

.solution { background: var(--surface); border-block: 1px solid var(--rule); }
.solution__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}
.solution .ladder > li h3 { margin-bottom: 0.35rem; font-size: var(--t-lg); }
.solution .ladder > li p { font-size: var(--t-base); color: var(--ink-soft); margin-bottom: 0; }

.shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  box-shadow: var(--sh-2);
}
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption {
  background: var(--violet-050);
  border-top: 1px solid var(--rule);
  padding: 0.85rem 1.1rem;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  font-family: var(--font-display);
}
.solution__side { position: sticky; top: calc(var(--header-h) + 20px); }

.sidecard {
  margin-top: var(--s4);
  background: var(--violet-050);
  border: 1px dashed var(--violet-300);
  border-radius: var(--r-md);
  padding: var(--s4);
}
.sidecard h3 { font-size: var(--t-base); text-transform: uppercase; letter-spacing: 0.1em; color: var(--violet-700); }
.sidecard ul { list-style: none; padding: 0; margin: 0; }
.sidecard li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}
.sidecard li:last-child { margin-bottom: 0; }
.sidecard li svg { color: var(--violet-600); margin-top: 3px; }

@media (max-width: 900px) {
  .solution__grid { grid-template-columns: 1fr; }
  .solution__side { position: static; }
}
@media (max-width: 560px) {
  .notesheet { padding: var(--s4) var(--s3) var(--s4) var(--s5); }
  .notesheet .ladder { --rail-gap: 38px; }
  .notesheet.paper--margin::before { left: 16px; }
  .ladder > li { padding-left: var(--s1); }
}

/* ==========================================================================
   9. Features
   ========================================================================== */

.features { background: var(--bg); }
.feature h3 { font-size: var(--t-lg); margin-bottom: 0.5rem; }
.feature p { font-size: var(--t-base); color: var(--ink-soft); margin-bottom: 0; }
.creditchip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: var(--s3);
  padding: 0.3rem 0.75rem 0.35rem;
  border-radius: var(--r-pill);
  background: var(--yellow-100);
  border: 1px solid var(--yellow-200);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--yellow-700);
}
.creditchip .ticker { font-size: 1.1rem; color: var(--violet-950); letter-spacing: 0; }

.feature__tag {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-500);
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   10. Outcomes, on the violet band
   ========================================================================== */

.outcomes {
  background: var(--violet-950);
  color: #EFEBFA;
  position: relative;
  overflow: hidden;
}
.outcomes::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 29px,
      rgba(255, 255, 255, 0.05) 29px,
      rgba(255, 255, 255, 0.05) 30px
    );
  pointer-events: none;
}
.outcomes .wrap { position: relative; z-index: 1; }
.outcomes h2, .outcomes h3 { color: #fff; }
.outcomes .eyebrow { color: var(--yellow-400); }
.outcomes .section__head p { color: #CFC6EE; }

.outcomes__grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}
.outcome {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: var(--s4) 0;
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: var(--s4);
  align-items: baseline;
}
.outcome:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.outcome__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--yellow-400);
  letter-spacing: -0.03em;
}
.outcome__num small {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #BDB2E6;
  margin-top: 0.4rem;
  font-weight: 600;
}
.outcome p { color: #DCD5F2; font-size: var(--t-base); margin: 0; }
.outcome h3 { font-size: var(--t-lg); margin-bottom: 0.4rem; }

@media (max-width: 760px) {
  .outcomes__grid { grid-template-columns: 1fr; }
  .climber { display: none; }
  .outcome { grid-template-columns: 1fr; gap: var(--s2); }
}

/* ==========================================================================
   11. Social proof
   ========================================================================== */

.proof { background: var(--surface); border-block: 1px solid var(--rule); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: var(--s4); }

.testimonial {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  padding: var(--s5) var(--s4) var(--s4);
  margin: 0;
  box-shadow: var(--sh-1);
}
.testimonial::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -1px;
  width: 82px;
  height: 13px;
  background: var(--yellow-400);
  clip-path: polygon(0 100%, 0 24%, 10% 0, 80% 0, 92% 42%, 100% 100%);
}
.testimonial:nth-child(2)::before { background: var(--violet-500); }
.testimonial:nth-child(3)::before { background: var(--violet-300); }
.testimonial blockquote { margin: 0 0 var(--s3); font-size: var(--t-base); color: var(--ink-soft); }
.testimonial blockquote p:first-child::before { content: "\201C"; }
.testimonial blockquote p:last-child::after { content: "\201D"; }
.testimonial figcaption {
  border-top: 1px dashed var(--rule-strong);
  padding-top: var(--s2);
  font-size: var(--t-sm);
  color: var(--muted);
  font-family: var(--font-display);
}
.testimonial figcaption b {
  display: block;
  color: var(--violet-950);
  font-size: var(--t-base);
  font-weight: 700;
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 2px;
  margin: 0 0 var(--s2);
  font-size: var(--t-sm);
  color: var(--yellow-700);
  background: var(--yellow-100);
  border: 1px solid var(--yellow-200);
  border-radius: var(--r-pill);
  padding: 0.18rem 0.6rem 0.24rem;
}

.metrics {
  margin-top: var(--s6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--violet-050);
}
.metric {
  padding: var(--s4);
  border-right: 1px solid var(--rule);
  text-align: center;
}
.metric:last-child { border-right: none; }
.metric b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--violet-700);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.metric span { font-size: var(--t-sm); color: var(--muted); }

/* ==========================================================================
   12. Pricing
   ========================================================================== */

.pricing { background: var(--bg); }
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: var(--s4);
  align-items: start;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px var(--r-lg) var(--r-lg) var(--r-lg);
  padding: var(--s5) var(--s4) var(--s4);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -1px;
  width: 118px;
  height: 15px;
  background: var(--violet-300);
  clip-path: polygon(0 100%, 0 22%, 8% 0, 80% 0, 92% 42%, 100% 100%);
}
.tier--best {
  border-color: var(--violet-600);
  box-shadow: 0 0 0 3px var(--violet-100), var(--sh-3);
}
.tier--best::before { background: var(--violet-600); width: 150px; }
.tier__flag {
  position: absolute;
  top: -14px;
  right: 16px;
  background: var(--yellow-400);
  color: var(--violet-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-1);
}
.tier h3 { font-size: var(--t-xl); margin-bottom: 0.3rem; }
.tier__who { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s3); min-height: 3.1em; }
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}
.tier__price b { font-size: clamp(2.3rem, 4vw, 2.9rem); line-height: 1; color: var(--violet-950); letter-spacing: -0.035em; }
.tier__price span { font-size: var(--t-sm); color: var(--muted); }
.tier__meta { font-size: var(--t-xs); color: var(--muted); margin-bottom: var(--s4); font-family: var(--font-display); letter-spacing: 0.04em; }
.tier ul { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.tier li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
  line-height: 1.55;
}
.tier li svg { color: var(--violet-600); margin-top: 3px; flex: 0 0 18px; }
.tier--best li svg { color: var(--yellow-600); }
.tier .btn { margin-top: auto; }

.pricing__note {
  margin-top: var(--s5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s4);
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.pricing__note svg { color: var(--violet-600); flex: 0 0 26px; }

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.faq { background: var(--surface); border-top: 1px solid var(--rule); }
.faq__list { border-top: 2px solid var(--violet-200); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--s4) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-lg);
  color: var(--violet-950);
  line-height: 1.35;
}
.faq__q:hover { color: var(--violet-700); }
.faq__sign {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px 10px 10px 3px;
  background: var(--violet-050);
  border: 1px solid var(--violet-100);
  display: grid;
  place-items: center;
  color: var(--violet-700);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.faq__q[aria-expanded="true"] .faq__sign {
  transform: rotate(45deg);
  background: var(--yellow-400);
  border-color: var(--yellow-500);
  color: var(--violet-950);
}
.faq__a {
  padding: 0 0 var(--s4);
  max-width: 58rem;
  color: var(--ink-soft);
  font-size: var(--t-base);
}
.faq__a[hidden] { display: none; }

/* ==========================================================================
   14. Contact form
   ========================================================================== */

.contact { background: var(--bg); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}
.contact__hook h2 { margin-bottom: var(--s3); }
.contact__hook .lede { margin-bottom: var(--s4); }
.contact__list { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.contact__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.contact__list svg { color: var(--violet-600); margin-top: 3px; }

.formcard {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 8px var(--r-lg) var(--r-lg) var(--r-lg);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--sh-2);
  position: relative;
}
.formcard::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -1px;
  width: 140px;
  height: 16px;
  background: var(--violet-600);
  clip-path: polygon(0 100%, 0 22%, 7% 0, 82% 0, 93% 42%, 100% 100%);
}

.field { margin-bottom: var(--s3); }
.field label,
.fieldset > legend {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--violet-900);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--t-base);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: 0.72rem 0.85rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--violet-600) 50%),
                    linear-gradient(135deg, var(--violet-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 1.28em, calc(100% - 14px) 1.28em;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--surface);
  border-color: var(--violet-600);
  box-shadow: 0 0 0 3px var(--violet-100);
  outline: none;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--rose);
  background: var(--rose-soft);
}
.field__hint { font-size: var(--t-xs); color: var(--muted); margin-top: 0.3rem; }
.field__error {
  display: none;
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--rose);
  margin-top: 0.3rem;
}
.field__error.is-shown { display: block; }

.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--violet-050);
  border: 1px solid var(--violet-100);
  border-radius: var(--r-sm);
  padding: 0.85rem;
  margin-bottom: var(--s3);
}
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--violet-600); flex: 0 0 20px; }
.consent label { font-size: var(--t-sm); color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; margin: 0; }

.formcard__after {
  margin-top: var(--s3);
  font-size: var(--t-sm);
  color: var(--muted);
  border-top: 1px dashed var(--rule-strong);
  padding-top: var(--s3);
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   15. Footer
   ========================================================================== */

.site-footer {
  background: var(--violet-950);
  color: #D9D2F0;
  padding-top: clamp(2.6rem, 6vw, 4.4rem);
  font-size: var(--t-sm);
}
.site-footer a { color: #E6E1F7; text-decoration: none; }
.site-footer a:hover { color: var(--yellow-400); text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  padding-bottom: var(--s6);
}
.footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: #fff; text-decoration: none; }
.footer__brand:hover { color: var(--yellow-400); text-decoration: none; }
.footer__pitch { margin: var(--s3) 0 var(--s4); max-width: 30rem; color: #BCB2E2; line-height: 1.65; }
.footer h2, .footer__col h2 {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow-400);
  margin: 0 0 var(--s3);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 0.55rem; }
.footer__pub { margin-top: var(--s3); color: #9F94CC; font-size: var(--t-xs); }

.social { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social li { margin: 0; }
.social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px 11px 11px 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #EDE9FA;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.social a:hover {
  background: var(--yellow-400);
  border-color: var(--yellow-400);
  color: var(--violet-950);
  transform: translateY(-2px);
  text-decoration: none;
}
.social .icon { width: 19px; height: 19px; }

.footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  align-items: center;
  color: #A99EDA;
  font-size: var(--t-xs);
}

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: var(--s4); } }

/* ==========================================================================
   16. Author byline, prose pages, utility pages
   ========================================================================== */

.byline {
  margin-top: var(--s6);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--violet-600);
  border-radius: 4px var(--r-md) var(--r-md) 4px;
  padding: var(--s4);
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.byline b { font-family: var(--font-display); color: var(--violet-950); }
.byline svg { color: var(--violet-600); flex: 0 0 26px; }

.page-hero {
  background: var(--violet-050);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}
.page-hero h1 { margin-bottom: var(--s2); }
.page-hero p { color: var(--ink-soft); max-width: 46rem; margin: 0; }
.crumbs {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s3);
}
.crumbs a { color: var(--violet-700); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.prose { max-width: 46rem; }
.prose h2 {
  font-size: var(--t-2xl);
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 2px solid var(--violet-100);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: var(--s4); font-size: var(--t-lg); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose dl { margin: 0 0 var(--s3); }
.prose dt { font-family: var(--font-display); font-weight: 700; color: var(--violet-900); margin-top: var(--s2); }
.prose dd { margin: 0 0 0.5rem; color: var(--ink-soft); }

.factbox {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s4);
  box-shadow: var(--sh-1);
  margin-bottom: var(--s4);
}
.factbox dl { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 0.35rem var(--s3); margin: 0; }
.factbox dt { margin: 0; font-size: var(--t-sm); }
.factbox dd { margin: 0; font-size: var(--t-sm); }
@media (max-width: 560px) { .factbox dl { grid-template-columns: 1fr; } .factbox dd { margin-bottom: 0.6rem; } }

.author__top {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: start;
}
.author__photo {
  border-radius: 8px var(--r-lg) var(--r-lg) var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  box-shadow: var(--sh-2);
  background: var(--surface);
}
.author__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.author__links { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.author__links li { margin-bottom: 0.5rem; font-size: var(--t-sm); }
@media (max-width: 700px) { .author__top { grid-template-columns: 1fr; } .author__photo { max-width: 232px; } }

.maplist { list-style: none; padding: 0; margin: 0; }
.maplist li {
  border-bottom: 1px dashed var(--rule-strong);
  padding: 0.75rem 0;
  display: grid;
  grid-template-columns: minmax(190px, 30%) 1fr;
  gap: var(--s2) var(--s3);
}
.maplist li:last-child { border-bottom: 0; }
.maplist a { font-family: var(--font-display); font-weight: 600; }
.maplist span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 620px) { .maplist li { grid-template-columns: 1fr; } }

.centered { text-align: center; max-width: 44rem; margin-inline: auto; }
.centered .btnrow { justify-content: center; }
.btnrow { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

.bignum {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 16vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--violet-600);
  margin-bottom: var(--s3);
}
.bignum .hl { background-image: linear-gradient(to top, var(--yellow-400) 0 26%, transparent 26%); }

/* ==========================================================================
   17. Reveal motion and reduced motion
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal .hl { background-size: 100% 100%; }
  .climber__pip { animation: none; transform: translateY(-214px); }
  .is-in .ticker, .is-in .ticker--b { animation: none; }
}

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

/* ==========================================================================
   18. Session Notes, the magazine
   Same notebook white, focused violet and highlighter yellow as the product
   pages. Index tab shapes on the kickers, ruled paper on the masthead, dashed
   rules between a card and its dateline.
   ========================================================================== */

/* ---- current section marker in the tab nav ---- */
.tab-link.is-current {
  color: var(--violet-800);
  background: var(--violet-100);
  box-shadow: inset 0 -3px 0 var(--yellow-400);
}
.tab-link.is-current:hover { background: var(--violet-200); transform: none; }

/* ---- breadcrumb rail ---- */
.mag-crumbs {
  background: var(--violet-050);
  border-bottom: 1px solid var(--rule);
}
.mag-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0.8rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-crumbs li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  min-width: 0;
}
.mag-crumbs li + li::before {
  content: "/";
  color: var(--violet-300);
  font-weight: 700;
}
.mag-crumbs a { color: var(--violet-700); text-decoration: none; }
.mag-crumbs a:hover { color: var(--violet-600); text-decoration: underline; }
.mag-crumbs [aria-current] {
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ---- magazine masthead, ruled like a notebook page ---- */
.mag-masthead {
  background-color: var(--violet-050);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--rule-height) - 1px),
      var(--violet-100) calc(var(--rule-height) - 1px),
      var(--violet-100) var(--rule-height)
    );
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.2rem, 6vw, 4.2rem);
}
.mag-masthead h1 { max-width: 16ch; margin-bottom: var(--s3); }
.mag-masthead__note {
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: var(--t-base);
  margin-bottom: var(--s5);
}
.mag-masthead__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--s2) var(--s4);
  max-width: 46rem;
  margin: 0;
  padding-top: var(--s3);
  border-top: 2px solid var(--violet-200);
}
.mag-masthead__facts dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--violet-600);
  margin: 0 0 0.15rem;
}
.mag-masthead__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--violet-950);
  font-size: var(--t-base);
}

/* ---- shared standfirst ---- */
.mag-standfirst {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-xl);
  line-height: 1.46;
  letter-spacing: -0.008em;
  color: var(--ink-soft);
  margin: 0 0 var(--s4);
}

/* ==========================================================================
   18.1 Magazine index grid
   ========================================================================== */

.mag-list { padding-block: clamp(2.4rem, 6vw, 4.4rem); }
.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--s4);
}

.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--violet-200);
}
.mag-card__media {
  display: block;
  overflow: hidden;
  background: var(--violet-100);
  border-bottom: 1px solid var(--rule);
}
.mag-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mag-card:hover .mag-card__media img { transform: scale(1.03); }
.mag-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--s4);
}
.mag-card__angle { margin: 0 0 var(--s2); }
.mag-card__title {
  font-size: var(--t-lg);
  line-height: 1.26;
  margin: 0 0 0.6rem;
  overflow-wrap: break-word;
}
.mag-card__title a { color: var(--violet-950); text-decoration: none; }
.mag-card__title a:hover {
  color: var(--violet-700);
  text-decoration: underline;
  text-decoration-color: var(--yellow-500);
  text-decoration-thickness: 2px;
}
.mag-card__dek {
  font-size: var(--t-base);
  color: var(--ink-soft);
  margin: 0 0 var(--s3);
}
.mag-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: auto 0 0;
  padding-top: var(--s3);
  border-top: 1px dashed var(--rule-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-card__dot {
  width: 5px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--yellow-500);
}

/* the first article of the issue runs larger */
.mag-card.lead { grid-column: 1 / -1; border-color: var(--violet-200); }
.mag-card.lead .mag-card__angle .tab { background: var(--yellow-400); color: var(--violet-950); }
@media (min-width: 860px) {
  .mag-card.lead { flex-direction: row; }
  .mag-card.lead .mag-card__media {
    flex: 0 0 54%;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .mag-card.lead .mag-card__media img {
    height: 100%;
    min-height: 340px;
    aspect-ratio: auto;
  }
  .mag-card.lead .mag-card__body {
    justify-content: center;
    padding: clamp(1.6rem, 3vw, 2.6rem);
  }
  .mag-card.lead .mag-card__title { font-size: var(--t-2xl); }
  .mag-card.lead .mag-card__dek { font-size: var(--t-lg); }
  .mag-card.lead .mag-card__meta { margin: var(--s4) 0 0; }
}

.mag-close { padding-block: 0 clamp(2.6rem, 6vw, 4.6rem); }
.mag-close .mag-cta__panel { max-width: none; }

/* ==========================================================================
   18.2 Article page
   ========================================================================== */

.mag-article__head { padding-block: clamp(1.8rem, 5vw, 3.2rem) clamp(1.2rem, 3vw, 1.9rem); }
.mag-article__head > * { max-width: 42rem; margin-inline: auto; }
.mag-article__head h1 {
  font-size: var(--t-3xl);
  margin-bottom: var(--s3);
  overflow-wrap: break-word;
}

.mag-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  margin: 0;
  padding-top: var(--s3);
  border-top: 1px dashed var(--rule-strong);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  color: var(--muted);
}
.mag-byline__by {
  font-weight: 700;
  color: var(--violet-800);
  text-decoration: none;
  background: var(--violet-100);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.85rem;
}
.mag-byline__by:hover { background: var(--violet-200); color: var(--violet-900); }
.mag-byline__item time { color: var(--ink-soft); font-weight: 600; }
.mag-byline__read {
  font-weight: 600;
  color: var(--yellow-700);
  background: var(--yellow-100);
  border: 1px solid var(--yellow-200);
  border-radius: var(--r-pill);
  padding: 0.24rem 0.7rem;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mag-figure { margin: 0 0 clamp(1.5rem, 4vw, 2.4rem); }
.mag-figure__frame {
  max-width: 62rem;
  margin-inline: auto;
  border-radius: 8px var(--r-lg) var(--r-lg) var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  box-shadow: var(--sh-2);
  background: var(--surface);
}
.mag-figure__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-figure figcaption {
  margin-top: var(--s2);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 62rem;
  margin-inline: auto;
}

/* ---- body typography: 38rem holds roughly 68 characters of Domine ---- */
.mag-body {
  max-width: 38rem;
  margin-inline: auto;
  padding-block: var(--s2) clamp(1.8rem, 5vw, 3rem);
  font-size: var(--t-md);
  line-height: 1.78;
  color: var(--ink);
}
.mag-body > p { margin: 0 0 1.15rem; }
.mag-body > h2 {
  font-size: var(--t-2xl);
  line-height: 1.16;
  margin: var(--s7) 0 var(--s3);
  padding-top: var(--s3);
  border-top: 2px solid var(--violet-100);
  position: relative;
}
.mag-body > h2::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 58px;
  height: 2px;
  background: var(--yellow-400);
}
.mag-body > h3 {
  font-size: var(--t-lg);
  margin: var(--s5) 0 var(--s2);
  color: var(--violet-800);
}
.mag-body > *:first-child { margin-top: 0; }
.mag-body > h2:first-child { border-top: 0; padding-top: 0; }
.mag-body > h2:first-child::before { display: none; }
.mag-body ul, .mag-body ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
.mag-body li { margin-bottom: 0.55rem; }
.mag-body li::marker { color: var(--violet-500); font-weight: 700; }
.mag-body a { color: var(--violet-700); text-underline-offset: 4px; }
.mag-body blockquote {
  margin: var(--s4) 0;
  padding: var(--s3) var(--s4);
  border-left: 5px solid var(--yellow-400);
  background: var(--violet-050);
  border-radius: 4px var(--r-sm) var(--r-sm) 4px;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--violet-900);
}
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s4) 0;
  font-size: var(--t-sm);
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.mag-body th {
  font-family: var(--font-display);
  color: var(--violet-900);
  background: var(--violet-050);
}

/* ---- the contextual link the editor drops between sections ---- */
.mag-body .inline-read {
  margin: var(--s4) 0;
  padding: 0.85rem 1.05rem;
  background: var(--violet-050);
  border: 1px solid var(--violet-100);
  border-left: 5px solid var(--yellow-400);
  border-radius: 4px var(--r-sm) var(--r-sm) 4px;
  font-family: var(--font-display);
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--violet-800);
}
.mag-body .inline-read a { font-weight: 700; text-decoration-thickness: 2px; }

/* ---- call to action after the conclusion ---- */
.mag-cta { padding-block: 0 clamp(1.8rem, 4vw, 2.6rem); }
.mag-cta__panel {
  max-width: 42rem;
  margin-inline: auto;
  background: var(--violet-950);
  color: var(--violet-100);
  border-radius: 8px var(--r-lg) var(--r-lg) var(--r-lg);
  box-shadow: var(--sh-3);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}
.mag-cta__panel h2 { color: var(--surface); font-size: var(--t-2xl); margin-bottom: var(--s3); }
.mag-cta__panel p { color: var(--violet-200); font-size: var(--t-base); }
.mag-cta__panel .tabhead { margin-bottom: var(--s3); }
.mag-cta__go { margin: var(--s4) 0 0; }
.mag-cta__panel .btn--primary {
  background: var(--yellow-400);
  color: var(--violet-950);
  box-shadow: 0 6px 0 var(--yellow-600);
}
.mag-cta__panel .btn--primary:hover {
  background: var(--yellow-300);
  color: var(--violet-950);
  box-shadow: 0 4px 0 var(--yellow-600);
}
.mag-cta__panel .btn--primary:focus-visible { outline-color: var(--yellow-400); }

/* ---- author box ---- */
.mag-author { padding-block: 0 clamp(2.2rem, 5vw, 3.6rem); }
.mag-author__panel {
  max-width: 42rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--violet-600);
  border-radius: 4px var(--r-md) var(--r-md) 4px;
  box-shadow: var(--sh-1);
  padding: var(--s4);
}
.mag-author__photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px var(--r-md) var(--r-md) var(--r-md);
  border: 1px solid var(--rule-strong);
  background: var(--violet-050);
}
.mag-author__kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-500);
  margin: 0 0 0.2rem;
}
.mag-author__text h2 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.mag-author__text p { font-size: var(--t-base); color: var(--ink-soft); }
.mag-author__link {
  margin: var(--s2) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-sm);
}

/* ---- read also ---- */
.mag-also {
  background: var(--violet-050);
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.4rem, 6vw, 4.2rem);
}
.mag-also__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.mag-also__head h2 { margin-bottom: 0; font-size: var(--t-2xl); }
.mag-also__all { margin: 0; }
.mag-also__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--s4);
}

.mag-rel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--violet-200); }
.mag-rel__media { display: block; overflow: hidden; background: var(--violet-100); border-bottom: 1px solid var(--rule); }
.mag-rel__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s ease; }
.mag-rel:hover .mag-rel__media img { transform: scale(1.03); }
.mag-rel__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: var(--s3) var(--s4) var(--s4); }
.mag-rel__title { font-size: var(--t-base); line-height: 1.3; margin: 0 0 0.5rem; overflow-wrap: break-word; }
.mag-rel__title a { color: var(--violet-950); text-decoration: none; }
.mag-rel__title a:hover {
  color: var(--violet-700);
  text-decoration: underline;
  text-decoration-color: var(--yellow-500);
  text-decoration-thickness: 2px;
}
.mag-rel__dek { font-size: var(--t-sm); color: var(--ink-soft); margin: 0 0 var(--s3); }
.mag-rel__meta {
  margin: auto 0 0;
  padding-top: var(--s2);
  border-top: 1px dashed var(--rule-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   18.3 The magazine block on the home page
   ========================================================================== */

.magazine { background: var(--surface); border-block: 1px solid var(--rule); }
.magazine__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr));
  gap: var(--s4);
}
.magazine__more { margin-top: var(--s5); }
.magazine .mag-card { background: var(--bg); }

/* ---- author page list of published articles ---- */
.mag-index { list-style: none; padding: 0; margin: 0; }
.mag-index li {
  border-bottom: 1px dashed var(--rule-strong);
  padding: 0.8rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem var(--s3);
  align-items: baseline;
}
.mag-index li:last-child { border-bottom: 0; }
.mag-index a { font-family: var(--font-display); font-weight: 600; }
.mag-index time {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .mag-index li { grid-template-columns: 1fr; }
}

/* ==========================================================================
   18.4 Narrow screens, down to 360 pixels
   ========================================================================== */

@media (max-width: 640px) {
  .mag-masthead h1 { max-width: none; }
  .mag-article__head h1 { font-size: var(--t-2xl); }
  .mag-byline { gap: 0.4rem 0.7rem; font-size: var(--t-xs); }
  .mag-body { font-size: var(--t-base); line-height: 1.74; }
  .mag-body > h2 { margin-top: var(--s6); font-size: var(--t-xl); }
  .mag-card__body { padding: var(--s3); }
  .mag-rel__body { padding: var(--s3); }
  .mag-cta__panel, .mag-author__panel { border-radius: 6px var(--r-md) var(--r-md) var(--r-md); }
  .mag-also__head { margin-bottom: var(--s4); flex-direction: column; align-items: stretch; }
  .mag-also__all { width: 100%; }
  .mag-also__all .btn { width: 100%; }
}
@media (max-width: 560px) {
  .mag-author__panel { grid-template-columns: 1fr; border-left-width: 4px; }
  .mag-author__photo { width: 96px; height: 96px; }
  .mag-masthead { background-image: none; }
  .mag-figure__frame { border-radius: 6px var(--r-md) var(--r-md) var(--r-md); }
}



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