/* Someone You Love Is Becoming a Doctor: site styles.
   Palette sampled from the cover: cream paper, deep teal ink, a gold rule. */

:root {
  --paper: #faf4e8;
  --paper-2: #f3ead9;
  --paper-3: #eadfc9;
  --card: #fffcf5;
  --ink: #173d46;
  --ink-2: #3d5b62;
  --ink-3: #6b8086;
  --line: #e2d6bf;
  --gold: #b7904b;
  --gold-2: #d8b56e;
  --gold-ink: #8a6a2f;
  --green: #225e51;
  --pencil: #b4533a;
  --night: #0f262d;
  --night-2: #16333b;
  --note: #fff3c4;
  --mint: #e3f1e7;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Patrick Hand", "Bradley Hand", "Comic Neue", cursive;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 61, 70, 0.06), 0 4px 14px rgba(23, 61, 70, 0.07);
  --shadow: 0 2px 4px rgba(23, 61, 70, 0.06), 0 18px 40px -12px rgba(23, 61, 70, 0.22);
  --shadow-lg: 0 40px 80px -30px rgba(23, 61, 70, 0.45);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .31 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
em { font-style: italic; }
strong, b { font-weight: 650; }
::selection { background: rgba(216, 181, 110, 0.4); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; font: 600 14px var(--sans); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- type helpers ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow--light { color: var(--gold-2); }
.display { font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -0.025em; font-weight: 450; }
.h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 450; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0; }
.rule { width: 72px; height: 3px; border: 0; margin: 22px 0; background: var(--gold); border-radius: 2px; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .h2 { margin: 12px 0 14px; }
.section-head p { font-size: 20px; color: var(--ink-2); margin: 0; }
.quote-mark { color: var(--gold); }

/* ---------- buttons ---------- */

.btn {
  --b: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--b);
  background: var(--b);
  color: #fdf8ee;
  font: 600 15.5px/1.1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.2s, background 0.2s, color 0.2s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 18px -8px rgba(23, 61, 70, 0.55);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(23, 61, 70, 0.6); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: #fdf8ee; }
.btn--gold { --b: var(--gold); color: #fff; }
.btn--gold:hover { --b: #a47f3e; }
.btn--light { --b: #fdf8ee; color: var(--ink); }
.btn--light:hover { color: var(--ink); background: #fff; }
.btn--line-light { background: transparent; border-color: rgba(253, 248, 238, 0.55); color: #fdf8ee; box-shadow: none; }
.btn--line-light:hover { background: rgba(253, 248, 238, 0.1); border-color: #fdf8ee; }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.play-dot { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.btn--ghost .play-dot { background: var(--ink); color: #fdf8ee; }
.btn--ghost:hover .play-dot { background: #fdf8ee; color: var(--ink); }
.play-dot svg { width: 12px; height: 12px; margin-left: 2px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 232, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(23, 61, 70, 0.5); }
.site-header__in { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; flex-shrink: 0; }
@media (max-width: 1240px) { .brand { flex-shrink: 1; } }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-size: 17px; line-height: 1.15; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__name small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 650; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink);
  font: 550 14.5px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: rgba(23, 61, 70, 0.07); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 1240px) {
  .menu-btn { display: grid; place-items: center; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    background: rgba(250, 244, 232, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(23, 61, 70, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .nav .btn { margin: 10px 0 0; }
}
@media (max-width: 420px) { .brand__name { font-size: 15px; } }

/* Families | Schools & programs: the same switch on every page, current side filled in */
.nav .aud-switch { display: inline-flex; gap: 2px; margin-left: 10px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.nav .aud-switch a { padding: 8px 13px; border-radius: 999px; font: 600 13px/1 var(--sans); color: var(--ink-2); }
.nav .aud-switch a:hover { background: rgba(23, 61, 70, 0.07); }
.nav .aud-switch a[aria-current="true"] { background: var(--ink); color: #fdf8ee; }
@media (max-width: 1240px) {
  .nav .aud-switch { order: -1; display: flex; margin: 0 0 10px; }
  .nav .aud-switch a { flex: 1; padding: 12px; text-align: center; font-size: 14.5px; }
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--night {
  background: radial-gradient(80% 60% at 50% 0%, #1f4550 0%, var(--night) 60%), var(--night);
  color: #efe7d6;
}
.section--night .h2, .section--night .display { color: #fbf4e6; }
.section--night .section-head p, .section--night .lede { color: #c9d5d3; }
.section--night a:not(.btn) { color: var(--gold-2); }
.section-edge { position: absolute; left: 0; right: 0; height: 60px; pointer-events: none; }

/* ---------- hero ---------- */

.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__quote { display: inline-block; margin: 0 0 8px; font-family: var(--hand); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; color: var(--ink); position: relative; }
.hero__quote::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c30-4 60-4 90-1s70 3 106-2' fill='none' stroke='%23b7904b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero h1 { margin: 18px 0 20px; }
.hero h1 .line { display: block; white-space: nowrap; }
@media (max-width: 400px) { .hero h1 .line { white-space: normal; } }
.hero .lede { max-width: 34em; margin-bottom: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font: 500 14px/1.4 var(--sans); color: var(--ink-3); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-right: 10px; }
.hero__art { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 1.8vw, 26px); }
/* The notes overlap only the cover's blank margins: the strip left of the coat,
   and the strip right of the coat's lower half. They step aside when the book flips. */
.book-stage { position: relative; --bw: clamp(250px, 22vw, 320px); }
.hero__art .book3d { --w: var(--bw); }
.book-stage .note {
  position: absolute;
  z-index: 3;
  width: clamp(138px, 10.5vw, 156px);
  font-size: 17px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
}
.book-stage .note--a { right: 84%; top: calc(var(--bw) * 0.72); transform: rotate(-5deg); }
.book-stage .note--b { left: 83%; top: calc(var(--bw) * 1.02); transform: rotate(4deg); }
.book3d.is-flipped ~ .note--a { opacity: 0; transform: translateX(-36px) rotate(-10deg); pointer-events: none; }
.book3d.is-flipped ~ .note--b { opacity: 0; transform: translateX(36px) rotate(9deg); pointer-events: none; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; padding: 8px 0 0; order: -1; }
  .hero__art .book3d { --w: min(210px, 54vw); }
  .book3d__hint { margin-top: 12px; font-size: 12px; }
  .hero { padding-top: 20px; }
}

/* 3D book */
.book3d { --w: min(330px, 62vw); --h: calc(var(--w) * 1.6); --d: calc(var(--w) * 0.062); perspective: 1800px; position: relative; z-index: 2; }
.book3d__btn { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.book3d__body {
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(4deg);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.book3d:hover .book3d__body { transform: rotateY(-14deg) rotateX(3deg) translateY(-6px); }
.book3d.is-flipped .book3d__body { transform: rotateY(-196deg) rotateX(4deg); }
.book3d__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book3d__front { transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 4px 0 6px -2px rgba(0, 0, 0, 0.12); border-radius: 2px 4px 4px 2px; overflow: hidden; }
.book3d__front img, .book3d__back img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book3d__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 0, 0, 0.12) 0%, rgba(255, 255, 255, 0.18) 3%, rgba(255, 255, 255, 0) 12%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.05) 100%); }
.book3d__back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); border-radius: 4px 2px 2px 4px; overflow: hidden; }
.book3d__spine {
  position: absolute;
  top: 0;
  left: calc(50% - var(--d) / 2);
  width: var(--d);
  height: 100%;
  background: linear-gradient(90deg, #e9e1d0, #faf4e8 40%, #e6ddcb);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
}
.book3d__pages {
  position: absolute;
  top: 1.5%;
  left: calc(50% - var(--d) / 2);
  width: var(--d);
  height: 97%;
  background: repeating-linear-gradient(90deg, #fbf7ee 0 1px, #ece4d3 1px 2px);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
}
.book3d__shadow {
  position: absolute;
  left: 8%;
  right: -10%;
  bottom: -6%;
  height: 12%;
  background: radial-gradient(closest-side, rgba(23, 61, 70, 0.35), rgba(23, 61, 70, 0));
  filter: blur(6px);
  transform: translateZ(-60px);
  z-index: -1;
}
.book3d__hint { display: block; margin-top: 20px; text-align: center; font: 500 13px var(--sans); color: var(--ink-3); }

/* Sticky notes */
.note {
  position: absolute;
  z-index: 3;
  width: 190px;
  padding: 16px 16px 18px;
  background: var(--note);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 19px;
  line-height: 1.2;
  box-shadow: 0 10px 22px -12px rgba(23, 61, 70, 0.55), 0 1px 0 rgba(0, 0, 0, 0.04);
}
.note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 64px; height: 20px; margin-left: -32px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transform: rotate(-3deg); }
.note small { display: block; margin-bottom: 4px; font: 700 10.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.note--mint { background: var(--mint); }
@media (max-width: 1000px) { .book-stage .note { display: none; } }
@media (max-width: 900px) { .note { display: none; } }

/* ---------- film section ---------- */

.film-section { padding-top: clamp(64px, 8vw, 100px); }
.film-section .film { max-width: 1040px; margin: 0 auto; }
.film-section .film__chapters button { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #efe7d6; }
.film-section .film__chapters button:hover { border-color: var(--gold-2); }
.transcript__body { margin-top: 10px; padding: 22px 26px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #d7e0de; columns: 2 340px; column-gap: 40px; }
.transcript__body h3 { font: 700 11.5px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin: 18px 0 8px; break-after: avoid; }
.transcript__body h3:first-child { margin-top: 0; }
.transcript__body p { margin: 0 0 10px; line-height: 1.55; break-inside: avoid; }
.transcript__body .speaker { font-weight: 700; color: #fff; margin-right: 4px; }
.transcript__body .speaker::after { content: ":"; }

/* ---------- audiences ---------- */

.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.aud__card { padding: 28px 28px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.aud__card svg { width: 40px; height: 40px; color: var(--ink); }
.aud__card h3 { margin-top: 12px; font-size: 26px; font-weight: 500; }
.aud__label { margin: 18px 0 5px; font: 700 11.5px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.aud__problem { margin: 0; font-size: 21px; line-height: 1.3; color: var(--ink); }
.aud__learn { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.aud__card .checks { margin-top: 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 16.5px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23225e51' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
@media (max-width: 900px) { .aud { grid-template-columns: 1fr; } }

/* ---------- cartoon frames ---------- */

.frame { background: #fff; padding: 10px; border-radius: 4px; box-shadow: var(--shadow); }
.frame img { display: block; width: 100%; border-radius: 2px; }
.frame--btn { border: 0; cursor: zoom-in; font: inherit; }

/* ---------- stage picker ---------- */

.stages { position: relative; }
.stage-track { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 26px; }
.stage-track::before { content: ""; position: absolute; left: 7%; right: 7%; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.stage-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 2px; border: 0; background: none; color: var(--ink-3); font: 600 13px/1.25 var(--sans); text-align: center; cursor: pointer; }
.stage-btn i { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font: 700 13px var(--sans); font-style: normal; color: var(--ink-2); transition: all 0.2s; }
.stage-btn:hover i { border-color: var(--gold); }
.stage-btn[aria-pressed="true"] { color: var(--ink); }
.stage-btn[aria-pressed="true"] i { background: var(--ink); border-color: var(--ink); color: #fdf8ee; transform: scale(1.12); box-shadow: 0 8px 18px -8px rgba(23, 61, 70, 0.7); }
.stage-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage-card__cell { padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.stage-card__cell h3 { font: 700 12px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.stage-card__cell h3 svg { width: 18px; height: 18px; }
.stage-card__cell p { margin: 0; font-size: 18px; line-height: 1.5; }
.stage-card__cell--protect { background: #fbefe9; border-color: #efd3c6; }
.stage-card__cell--protect h3 { color: var(--pencil); }
.stage-card__cell--plans { background: var(--mint); border-color: #cbe3d3; }
.stage-card__cell--plans h3 { color: var(--green); }
.stage-say { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 20px 24px; border-radius: 18px; background: var(--ink); color: #f3ead9; }
.stage-say .hand { font-size: 22px; line-height: 1.25; color: #fff; }
.stage-say small { display: block; font: 700 11.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 4px; }
.stage-say svg { width: 30px; height: 30px; flex: none; color: var(--gold-2); margin-top: 2px; }
@media (max-width: 860px) {
  .stage-track { grid-template-columns: repeat(7, minmax(64px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .stage-card { grid-template-columns: 1fr; }
}

/* ---------- say this, not that ---------- */

.flips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flip { perspective: 1200px; min-height: 250px; }
.flip button { position: relative; display: block; width: 100%; height: 100%; min-height: 250px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.flip__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.3, 1.2, 0.4, 1); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 22px 20px; border-radius: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 14px 28px -16px rgba(23, 61, 70, 0.55); }
.flip__front { background: var(--note); transform: rotate(-1deg); }
.flip:nth-child(2n) .flip__front { transform: rotate(1.2deg); }
.flip__back { background: var(--mint); transform: rotateY(180deg); }
.flip__label { font: 700 11px/1 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; display: flex; justify-content: space-between; }
.flip__front .hand { font-size: 23px; line-height: 1.2; }
.flip__front .hand s { text-decoration-color: var(--pencil); text-decoration-thickness: 3px; }
.flip__back .hand { font-size: 22px; line-height: 1.2; color: var(--ink); }
.flip__why { margin-top: auto; padding-top: 12px; font: italic 15px/1.4 var(--serif); color: var(--ink-2); }
.flip__cta { margin-top: auto; font: 600 12.5px var(--sans); color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.flip__cta svg { width: 16px; height: 16px; }
.flips-foot { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; margin-top: 36px; }
.flips-foot p { margin: 0; font: 500 15px var(--sans); color: var(--ink-3); }
@media (max-width: 1060px) { .flips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flips { grid-template-columns: 1fr; } .flip, .flip button { min-height: 220px; } }

/* ---------- look inside ---------- */

.pages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, calc((100% - 80px) / 5)); gap: 20px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.page-card { scroll-snap-align: start; margin: 0; }
.page-card button { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; box-shadow: var(--shadow); border-radius: 3px; transition: transform 0.25s; }
.page-card button:hover { transform: translateY(-4px) rotate(-0.6deg); }
.page-card img { display: block; width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 3px; }
.page-card figcaption { margin-top: 12px; font: 600 13.5px/1.35 var(--sans); color: var(--ink-2); }
.page-card figcaption span { display: block; font-weight: 500; color: var(--ink-3); }
@media (max-width: 960px) { .pages { grid-auto-columns: minmax(200px, 30%); } }
@media (max-width: 520px) { .pages { grid-auto-columns: 70%; } }

/* ---------- author ---------- */

.author { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.author__photo { position: relative; }
.author__photo img { display: block; width: 100%; border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; }
.author blockquote { margin: 0 0 22px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; font-style: italic; }
@media (max-width: 860px) {
  .author { grid-template-columns: 1fr; }
  .author__photo { max-width: 320px; }
}

/* ---------- buy ---------- */

.buy { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.buy__cover { position: relative; display: grid; place-items: center; }
.buy__cover img { width: min(300px, 70vw); box-shadow: 0 50px 70px -40px rgba(23, 61, 70, 0.7), 0 2px 6px rgba(23, 61, 70, 0.2); border-radius: 2px 4px 4px 2px; transform: rotate(-2deg); }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 18px; }
.price-card { padding: 22px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); }
.price-card--main { border-color: var(--ink); box-shadow: var(--shadow); }
.price-card h3 { font: 700 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.price-card .price { font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; }
.price-card p { margin: 6px 0 16px; font: 500 14px/1.45 var(--sans); color: var(--ink-3); }
.price-card .btn { width: 100%; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--green); font: 700 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font: 500 13.5px/1.5 var(--sans); color: var(--ink-3); }
.specs b { color: var(--ink-2); font-weight: 650; }
@media (max-width: 860px) { .buy { grid-template-columns: 1fr; } .price-cards { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer { padding: 64px 0 40px; background: var(--night); color: #c9d5d3; font: 15px/1.6 var(--sans); }
.site-footer a { color: #efe7d6; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font: 500 22px/1.2 var(--serif); color: #fbf4e6; margin-bottom: 12px; letter-spacing: 0; }
.site-footer h3 { font: 700 11.5px var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.crisis { display: flex; gap: 14px; align-items: flex-start; margin-top: 40px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.crisis svg { width: 24px; height: 24px; flex: none; color: var(--gold-2); margin-top: 1px; }
.crisis p { margin: 0; }
.fine-print { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #8fa5a3; }
.fine-print p { margin: 0 0 6px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- film dialog (schools page) ---------- */

.film-modal { width: min(1100px, 94vw); max-width: none; max-height: 94vh; padding: 50px 0 4px; border: 0; background: transparent; color: #efe7d6; overflow: auto; }
.film-modal::backdrop { background: rgba(8, 20, 24, 0.9); }
.film-modal__close { position: absolute; top: 4px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: #fff; font: 400 24px/1 var(--sans); cursor: pointer; }
.film-modal__close:hover { background: rgba(255, 255, 255, 0.18); }
.film-modal .film__chapters button { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #efe7d6; }
.film-modal .film__chapters button:hover { border-color: var(--gold-2); }

/* ---------- lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vmin; background: rgba(11, 26, 31, 0.88); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 12vmin - 40px); width: auto; background: #fff; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { margin-top: 14px; font: 500 15px var(--sans); color: #e5ecea; text-align: center; }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- institutions page ---------- */

.inst-hero { padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 100px); }
.inst-hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.inst-hero h1 { margin: 16px 0 22px; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 450; }
.inst-hero h1 em { color: var(--green); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.stat { padding: 18px 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 34px; font-weight: 450; line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; font: 500 13.5px/1.35 var(--sans); color: var(--ink-3); }
.inst-card { position: relative; padding: 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.inst-card img { display: block; width: 62%; margin: -70px auto 18px; box-shadow: 0 30px 50px -28px rgba(23, 61, 70, 0.7); transform: rotate(-2deg); }
.inst-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font: 14.5px/1.4 var(--sans); }
.inst-card dt { color: var(--ink-3); font-weight: 500; }
.inst-card dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 960px) {
  .inst-hero__grid { grid-template-columns: 1fr; }
  .inst-card { margin-top: 70px; max-width: 460px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.why-grid .lede { color: var(--ink-2); }
.pullquote { margin: 0; padding: 30px 32px; border-radius: 22px; background: var(--ink); color: #f3ead9; box-shadow: var(--shadow-lg); }
.pullquote p { font-size: 25px; line-height: 1.35; margin: 0 0 14px; color: #fff; }
.pullquote cite { font: 500 13.5px/1.5 var(--sans); font-style: normal; color: #b9cac8; }
.pullquote + .pullquote { margin-top: 18px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pullquote + .pullquote p { color: var(--ink); font-size: 21px; }
.pullquote + .pullquote cite { color: var(--ink-3); }
.friction { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.friction li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; font-size: 18px; line-height: 1.5; }
.friction i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fbefe9; color: var(--pencil); font: 700 15px var(--sans); font-style: normal; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

.topics { columns: 2; column-gap: clamp(28px, 5vw, 64px); margin: 0; padding: 0; list-style: none; }
.topics li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.topics b { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .topics { columns: 1; } }
.friction-sum { margin: 22px 0 0; font-size: 20px; font-style: italic; color: var(--ink); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, rgba(216, 181, 110, 0), rgba(216, 181, 110, 0.6) 8%, rgba(216, 181, 110, 0.6) 92%, rgba(216, 181, 110, 0)); }
.moment { position: relative; padding-top: 70px; }
.moment::before { content: attr(data-when); position: absolute; top: 12px; left: 0; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: #1b2f33; font: 700 11px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.moment h3 { font-size: 22px; font-weight: 500; color: #fbf4e6; margin-bottom: 8px; }
.moment p { font: 15px/1.55 var(--sans); color: #c3d1cf; margin: 0; }
@media (max-width: 1060px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline::before { display: none; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

.agenda { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.agenda ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.agenda li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.agenda li b { font-weight: 550; font-size: 19px; display: block; margin-bottom: 2px; }
.agenda li p { margin: 0; font: 15px/1.5 var(--sans); color: var(--ink-2); }
.agenda .mins { display: grid; place-items: center; align-self: start; padding: 10px 0; border-radius: 12px; background: var(--paper-2); font: 700 13px/1.2 var(--sans); color: var(--ink-2); text-align: center; }
@media (max-width: 900px) { .agenda { grid-template-columns: 1fr; } }


.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; cursor: pointer; font-size: 21px; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); font: 400 20px/1 var(--sans); color: var(--ink-2); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; font-size: 18px; color: var(--ink-2); max-width: 44em; }

.inquire { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { padding: clamp(24px, 3.5vw, 38px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font: 650 13.5px var(--sans); color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 16px/1.4 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 61, 70, 0.1); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checkset { display: flex; flex-wrap: wrap; gap: 8px; }
.checkset label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 550 14px var(--sans); color: var(--ink); cursor: pointer; }
.checkset input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.checkset label:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 22px; }
.form__foot p { margin: 0; font: 13.5px/1.5 var(--sans); color: var(--ink-3); max-width: 30em; }
.form__status { margin-top: 14px; font: 600 14px var(--sans); color: var(--green); }
@media (max-width: 900px) { .inquire { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

.contact-card { margin-top: 22px; padding: 20px 22px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line); font: 15px/1.55 var(--sans); }
.contact-card b { display: block; font: 700 11.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }

/* ---------- print sheets (fridge sheet, overview) ---------- */

.sheet { max-width: 8.5in; margin: 30px auto; padding: 0.6in; background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.sheet-tools { max-width: 8.5in; margin: 26px auto 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 0 var(--gutter); }
@media print {
  @page { size: letter; margin: 0.45in; }
  body { background: #fff; font-size: 11pt; }
  .no-print, .site-header, .site-footer { display: none !important; }
  .sheet { margin: 0; padding: 0; box-shadow: none; max-width: none; }
  a { color: inherit; text-decoration: none; }
}
