/* ==========================================================================
   Socria Academy: site styles
   Colours, type and spacing are tokens at the top. Every component below is named after the
   `component` field in the page files (pages/*.jsx) and has its own commented block.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colours (design spec section 2). Allowed text pairs: Plum/Ivory, Yale/Ivory,
     Yale-soft/Ivory, Ivory/Plum, Ivory/Yale, Yale/Turmeric, Turmeric/Yale, Plum/White, Yale/White. */
  --plum: #8C1671;
  --plum-dark: #6E1159;
  --ivory: #F8F6E3;
  --yale: #113E55;
  --yale-soft: #416577;
  --turmeric: #E0A215;      /* accent only: rules, dots, bubbles, highlights; never text on Ivory */
  --white: #FFFFFF;
  --line: rgba(17, 62, 85, .18);
  --mat: #EFEBD1;           /* a deeper Ivory behind small photos */

  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Type (sizes at 1440 px; fluid down to phones) */
  --fs-display: clamp(38px, calc(30.25px + 2.066vw), 60px);   /* h1, h2 */
  --fs-h3: clamp(25px, calc(21.7px + .76vw), 34px);
  --fs-body: clamp(19px, calc(17.77px + .33vw), 22.5px);
  --fs-lead: clamp(21px, calc(19.6px + .37vw), 25px);
  --fs-eyebrow: clamp(13px, calc(10.54px + .657vw), 20px);
  --fs-link: clamp(20px, calc(18.6px + .375vw), 24px);
  --fs-quote: clamp(22px, calc(19.6px + .58vw), 28px);
  --fs-small: clamp(13px, calc(12.6px + .1vw), 14px);

  /* Layout */
  --gutter: clamp(16px, 6.95vw, 100px);      /* 100 px at 1440, so content is 1240 px wide */
  --header-h: 60px;
  --contents-h: 48px;       /* the in-page contents bar on long pages */
  --section-y: clamp(56px, 6vw, 96px);
  --radius: 18px;
  --card-radius: clamp(20px, 2.5vw, 36px);   /* the top corners of the home page's cards */
  --shadow-soft: 0 4px 10px rgba(17, 62, 85, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth;
  /* Anchors, and anything focus scrolls to (Tab or Shift+Tab), stop below the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html:has(.contents) { scroll-padding-top: calc(var(--header-h) + var(--contents-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--yale);
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--plum-dark); text-decoration-thickness: 2px; }
em { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--turmeric); color: var(--yale); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.noscript { padding: 48px var(--gutter); font-size: 22px; }
#main:focus { outline: none; }
.nowrap { white-space: nowrap; }
/* The thin "→" after text links (an inline SVG; see Arrow in shared.jsx) */
.arrow { display: inline-block; width: .62em; height: .4em; margin-left: .3em; vertical-align: .06em; overflow: visible; }
.arrow path { stroke-width: 1.3px; vector-effect: non-scaling-stroke; }
/* No one-word last lines in short headings and labels; kinder breaks in running text */
.hero-eyebrow, .idea-title, .finding-title, .tile-title, .tcard-q, .faq-q, .sched-title, .person-name, .pairs-title { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

/* ---------- Type: headlines, eyebrows, text ---------- */
.title,
.hero-title,
.page-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.17;
  letter-spacing: -.01em;
  color: var(--plum);
}
.title em, .hero-title em, .page-hero-title em { font-style: italic; }
.section .title, .cta-band .title, .page-hero-title { text-wrap: balance; }
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yale);
}
.eyebrow--signature img { width: clamp(250px, 33vw, 475px); }
.head { max-width: 1000px; }
.head + * { margin-top: clamp(20px, 2.2vw, 32px); }
.lead { font-size: var(--fs-lead); line-height: 1.45; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: .8em; }
.prose--cols { columns: 2; column-gap: clamp(32px, 4vw, 64px); max-width: none; }
.prose--cols p { orphans: 3; widows: 3; break-inside: avoid; }
.footnote {
  margin-top: 28px;
  max-width: 90ch;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--yale-soft);
}
.note-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yale);
}

/* ---------- Buttons and text links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(15px, calc(13.6px + .38vw), 18px);
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--plum); border-color: var(--plum); color: var(--ivory); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: var(--ivory); }
.btn-secondary { background: var(--ivory); border-color: var(--plum); color: var(--plum); box-shadow: var(--shadow-soft); }
.btn-secondary:hover { border-color: var(--plum-dark); color: var(--plum-dark); background: #F1EDD5; }
/* On dark bands: Turmeric with Yale text (5.07:1), or an Ivory outline */
.btn-turmeric { background: var(--turmeric); border-color: var(--turmeric); color: var(--yale); }
.btn-turmeric:hover { background: var(--ivory); border-color: var(--ivory); color: var(--yale); }
.btn-ivory { background: transparent; border-color: var(--ivory); color: var(--ivory); }
.btn-ivory:hover { background: var(--ivory); color: var(--yale); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 20px; }

.text-link {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: var(--fs-link);
  line-height: 1.34;
  color: var(--plum);
  text-decoration: none;
}
.text-link:hover, .text-link:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; }
.ctas { display: flex; flex-direction: column; gap: 22px; margin-top: clamp(28px, 2.8vw, 40px); }
.link-list li + li { margin-top: 2px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--yale); color: var(--ivory);
  font-family: var(--sans); font-weight: 600; font-size: 15px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ivory); outline: 3px solid var(--plum); outline-offset: 2px; }

/* ==========================================================================
   Header: logo, menu (items set apart by space, no separators), "Book a visit".
   Below 1260 px, or whenever the menu doesn't fit (shared.jsx checks), the header gets .is-compact:
   the menu folds into the Menu button, which opens a full-width panel.
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(248, 246, 227, .9);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 3px 12px rgba(17, 62, 85, .14);
}
.header-inner { display: flex; align-items: center; height: 100%; gap: 16px; }
.brand { flex: none; margin-right: auto; padding: 6px 0; }
.brand img { width: 136px; }
.nav { flex: none; }
/* column-gap rather than gap, so the folded menu's two-column grid (short screens) keeps its rows tight */
.nav-list { display: flex; align-items: center; column-gap: 29px; }
.nav-list a {
  display: block; padding: 10px 0;
  font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.2;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--plum); text-decoration: none;
}
.nav-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn-header { flex: none; min-height: 40px; margin-left: 6px; padding: 8px 16px; font-size: 15px; box-shadow: none; }
.menu-button { display: none; }

/* 1260-1399 px: a slightly smaller menu, so it keeps the same gutter as the logo */
@media (max-width: 1399px) {
  .nav-list { column-gap: 21px; }
  .nav-list a { font-size: 13px; letter-spacing: .07em; }
}

/* The folded menu */
.is-compact .menu-button {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 8px 14px 8px 12px;
  background: transparent; border: 1.5px solid var(--plum); border-radius: 999px;
  color: var(--plum); cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.is-compact .menu-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.is-compact .btn-header { margin-left: 0; border-radius: 999px; }
.is-compact .nav-list {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 32px;
  background: var(--ivory);
  box-shadow: 0 16px 24px rgba(17, 62, 85, .16);
}
.is-compact.is-open .nav-list { display: block; }
.is-compact .nav-list li { display: block; max-width: 640px; border-bottom: 1px solid var(--line); }
.is-compact .nav-list a {
  padding: 14px 0;
  font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2;
  letter-spacing: 0; text-transform: none;
}
/* Short screens (phones held sideways): two columns, so every link shows without scrolling */
@media (max-height: 520px) {
  .is-compact.is-open .nav-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); column-gap: 32px; align-content: start;
    padding-bottom: 16px;
  }
  .is-compact .nav-list li { max-width: none; }
  .is-compact .nav-list a { padding: 10px 0; font-size: 24px; }
}
/* Phones: logo, Menu and "Book a visit" share one row inside the gutters */
@media (max-width: 480px) {
  .header-inner { gap: 6px; }
  .brand img { width: 108px; }
  .is-compact .btn-header { min-height: 40px; padding: 6px 12px; font-size: 12px; letter-spacing: .04em; }
  .is-compact .menu-button { gap: 6px; padding: 8px 11px 8px 9px; font-size: 11.5px; letter-spacing: .06em; }
}
@media (max-width: 389px) {
  /* The word "Menu" stays as the button's name for screen readers */
  .is-compact .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .is-compact .menu-button { padding: 10px; }
}
@media (max-width: 359px) {
  .brand img { width: 96px; }
  .is-compact .btn-header { padding: 6px 10px; }
}

/* ==========================================================================
   hero-carousel (home): text left, art bleeding off the right under the header
   ========================================================================== */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); }
.hero-inner { position: relative; min-height: clamp(660px, 55.6vw, 800px); }
.hero-text { padding: clamp(110px, 11.8vw, 170px) 0 48px; max-width: clamp(380px, 43vw, 610px); }
.hero-eyebrow { margin-bottom: clamp(24px, 2.6vw, 37px); }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .4s ease, visibility 0s; }
.hero.is-still .hero-slide { transition: none; }
/* --title-w: a question's own width (a layout option in pages/home.jsx), used from 900 px up */
.hero-title { position: relative; z-index: 1; max-width: var(--title-w, 7.85em); }
.hero-art {
  position: absolute;
  top: max(-13.2vw, -190px);
  /* 72 px past the right edge of the window, also on screens wider than 1440 px */
  right: min(max(-5vw, -72px), calc((1440px - 100vw) / 2 - 72px));
  width: min(56.6vw, 815px);
  /* --aw / --ah: the picture's own size (set by HeroArt) */
  aspect-ratio: var(--aw, 815) / var(--ah, 1011);
  container-type: size;
  pointer-events: none;
}
/* Browsers without aspect-ratio: the same height, worked out (phones set their own heights below) */
@supports not (aspect-ratio: 1 / 1) {
  .hero-art { height: calc(min(56.6vw, 815px) * 1011 / 815); }
}

/* The picture's canvas inside the box, cut to it the way object-fit: cover would (centred across,
   28% down). The layers fill the canvas (the small "?" has its own box in it), so they line up at
   every size. --u is one pixel of the picture, for the motion below. */
.art-canvas {
  --cw: max(100cqw, 100cqh * var(--aw, 815) / var(--ah, 1011));
  --ch: max(100cqh, 100cqw * var(--ah, 1011) / var(--aw, 815));
  --u: calc(var(--cw) / var(--aw, 815));
  position: absolute;
  left: calc((100cqw - var(--cw)) / 2);
  top: calc((100cqh - var(--ch)) * .28);
  width: var(--cw);
  height: var(--ch);
}
.art-canvas img, .art-lens, .art-lens-fill {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
}
.art-lens-fill { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* Browsers without container query units only ever get the still picture (shared.jsx checks too) */
@supports not (width: 1cqw) {
  .art-canvas { inset: 0; width: auto; height: auto; }
  .art-canvas img { object-fit: cover; object-position: 50% 28%; }
}

/* The question marks move (HeroArt in shared.jsx). The big "?" drifts a few pixels while the photo
   inside it stays still (it moves back by the same amount), so it slides across the child like a
   coloured lens; the small "?" floats and tilts. Distances are in the picture's pixels (--u), so they
   scale with it. Motion rests when Pause is pressed, when the carousel is out of view or covered by
   the next card, and on questions not showing; visitors who ask for reduced motion never get it. */
@keyframes art-lens {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(calc(3.4 * var(--u)), calc(-3 * var(--u))); }
  50% { transform: translate(calc(.8 * var(--u)), calc(3.4 * var(--u))); }
  75% { transform: translate(calc(-3.3 * var(--u)), calc(.2 * var(--u))); }
}
@keyframes art-lens-back {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(calc(-3.4 * var(--u)), calc(3 * var(--u))); }
  50% { transform: translate(calc(-.8 * var(--u)), calc(-3.4 * var(--u))); }
  75% { transform: translate(calc(3.3 * var(--u)), calc(-.2 * var(--u))); }
}
@keyframes art-q {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35% { transform: translate(calc(2.9 * var(--u)), calc(-8.6 * var(--u))) rotate(-2.4deg); }
  70% { transform: translate(calc(-2.4 * var(--u)), calc(3 * var(--u))) rotate(1.6deg); }
}
.hero-art.is-live .art-lens { animation: art-lens 11s ease-in-out infinite; }
.hero-art.is-live .art-lens-photo { animation: art-lens-back 11s ease-in-out infinite; }
.hero-art.is-live .art-q { animation: art-q 7.5s ease-in-out infinite; }
.hero.is-paused .hero-art *, .hero.is-away .hero-art *, .hero-slide:not(.is-active) .hero-art *,
.stack-card.is-covered .hero-art *, .stack-card.is-buried .hero-art * { animation-play-state: paused; }
.hero-desc { position: relative; z-index: 1; margin-top: clamp(14px, 1.4vw, 20px); max-width: 25em; font-size: var(--fs-lead); line-height: 1.4; }
.hero-signature { position: relative; z-index: 1; width: min(530px, 100%); margin-top: clamp(20px, 2vw, 28px); }
/* The rotation control and dots come first in the page order. Below 1100 px they sit above the
   buttons; from 1100 px they sit to the right of the buttons, under the art, as in the mockup. */
.hero-actions {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  margin-top: clamp(24px, 2.6vw, 36px);
}
@media (min-width: 1100px) {
  /* Level with the buttons' row (48px), even when a text link sits under the buttons */
  .hero-actions { flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 20px 36px; width: max-content; }
  .hero-controls { min-height: 48px; }
}
.hero-actions .ctas { margin-top: 0; }
.hero-controls { display: flex; align-items: center; gap: 8px; }
.hero-play {
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  border: 1.5px solid var(--plum); border-radius: 50%;
  background: var(--ivory); color: var(--plum); cursor: pointer;
}
.hero-play svg { width: 14px; height: 14px; fill: currentColor; }
.hero-play:hover { background: var(--plum); color: var(--ivory); }
.hero-dots { display: flex; align-items: center; }
.hero-dot {
  display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
/* Rings are borders (not shadows), so they survive Windows High Contrast */
.hero-dot span {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--turmeric);
  border: 1.5px solid var(--plum);
  transition: transform .2s var(--ease);
}
.hero-dot:hover span { transform: scale(1.15); }
.hero-dot[aria-current="true"] span { width: 20px; height: 20px; border-width: 4px; }

@media (max-width: 899px) {
  .hero-inner { min-height: 0; }
  .hero-text { padding: calc(92vw + 12px) 0 48px; max-width: none; }
  /* a box of its own shape; .art-canvas crops the picture to it */
  .hero-art {
    top: 0; right: calc(-10vw - 0px);
    width: 110vw; height: 92vw;
    overflow: hidden;
  }
  .hero-title { max-width: 11em; }
}
@media (min-width: 600px) and (max-width: 899px) {
  /* Tablets: a smaller art box, still bleeding off the right */
  .hero-text { padding-top: calc(66vw + 12px); }
  .hero-art { right: -6vw; width: 86vw; height: 66vw; }
}
@media (max-width: 599px) {
  /* Phones: the art gives way on short screens, so the question and the one-line description stay
     on the first screen (svh: the height with the browser's toolbars showing) */
  .hero-art { height: min(92vw, 40vh); height: min(92vw, 40svh); }
  .hero-text { padding-top: calc(min(92vw, 40vh) + 12px); padding-top: calc(min(92vw, 40svh) + 12px); }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-slide { align-self: start; }
}
@media (max-width: 359px) {
  .hero-art { height: min(92vw, 36vh); height: min(92vw, 36svh); }
  .hero-text { padding-top: calc(min(92vw, 36vh) + 12px); padding-top: calc(min(92vw, 36svh) + 12px); }
}

/* ==========================================================================
   page-hero (inner pages)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); }
.page-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  min-height: clamp(560px, 46vw, 680px);
  padding-top: calc(var(--header-h) + clamp(40px, 5vw, 80px));
  padding-bottom: clamp(48px, 5vw, 80px);
}
.page-hero-text { max-width: 640px; }
.page-hero-title { max-width: 12em; }
.page-hero-text .eyebrow { margin-bottom: clamp(20px, 2.2vw, 30px); }
.page-hero-text .lead { margin-top: clamp(18px, 1.8vw, 26px); max-width: 30em; }
.page-hero-more { margin-top: .8em; max-width: 34em; }
.page-hero-media { display: flex; justify-content: center; align-items: center; }

/* Composite art (hero-N): bleeds off the right edge and runs under the header, like the home hero */
.page-hero--composite .page-hero-inner { min-height: clamp(600px, 50vw, 720px); }
.page-hero-art {
  position: absolute;
  top: max(-10.4vw, -150px);
  right: min(max(-5vw, -72px), calc((1440px - 100vw) / 2 - 72px));
  width: min(48vw, 693px);
  max-width: none;
  pointer-events: none;
}
/* The heads-together ring: large, partly off the right edge */
.page-hero--ring .page-hero-inner { min-height: clamp(560px, 51.4vw, 740px); }
.page-hero-ring {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  right: min(max(-9vw, -130px), calc((1440px - 100vw) / 2 - 130px));
  width: min(45.8vw, 660px);
  max-width: none;
  pointer-events: none;
}
.page-hero--composite .page-hero-media,
.page-hero--ring .page-hero-media { position: static; }
.page-hero--none .page-hero-inner { min-height: clamp(440px, 36vw, 560px); }
.page-hero-mark {
  justify-self: center;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(220px, 30vw, 440px); line-height: .8;
  color: var(--turmeric);
  user-select: none;
}

@media (max-width: 899px) {
  .page-hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 32px; }
  .page-hero--none .page-hero-inner { min-height: 0; }
  .page-hero--composite .page-hero-inner,
  .page-hero--ring .page-hero-inner { padding-top: calc(var(--header-h) + 84vw); min-height: 0; }
  .page-hero-art {
    top: 0; right: -10vw; width: 110vw; height: 92vw;
    object-fit: cover; object-position: 50% 28%;
  }
  .page-hero-ring { top: calc(var(--header-h) - 4vw); right: -22vw; width: 100vw; }
  .page-hero-media { order: -1; }
  .page-hero--composite .page-hero-media,
  .page-hero--ring .page-hero-media { order: 0; }
  .page-hero-mark { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  /* Tablets: smaller art, so the headline and buttons stay on the first screen; the ring sits higher
     so its lower arms clear the eyebrow and headline */
  .page-hero--composite .page-hero-inner { padding-top: calc(var(--header-h) + 60vw); }
  .page-hero-art { right: -6vw; width: 86vw; height: 66vw; }
  .page-hero-ring { top: calc(var(--header-h) - 2vw); right: -14vw; width: 74vw; }
  .page-hero--ring .page-hero-inner { padding-top: calc(var(--header-h) + 70vw); }
}
@media (max-width: 599px) {
  .page-hero--ring .page-hero-inner { padding-top: calc(var(--header-h) + 92vw); }
}

/* Phones held sideways (short and wide): picture and words side by side, so the question shows on
   the first screen */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 540px) {
  .hero-text { padding: calc(var(--header-h) + 18px) 0 32px; max-width: 56%; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-art { top: 0; right: -4vw; width: 44vw; height: 100vh; height: 100svh; overflow: hidden; }
  .hero-title, .page-hero-title { font-size: clamp(28px, 8.2vh, 40px); }
  .hero-title { max-width: none; }
  .hero-slide { align-self: start; }
  .page-hero-inner,
  .page-hero--composite .page-hero-inner,
  .page-hero--ring .page-hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-top: calc(var(--header-h) + 20px); min-height: 0; }
  .page-hero-media,
  .page-hero--composite .page-hero-media,
  .page-hero--ring .page-hero-media { order: 0; align-self: start; }
  .page-hero-art { top: 0; right: -4vw; width: 40vw; height: 100vh; height: 100svh; object-fit: cover; object-position: 50% 28%; }
  .page-hero-ring { top: calc(var(--header-h) + 4px); right: -8vw; width: 46vw; }
  .disc--hero { --want: min(32vw, 64vh); }
}
@media (min-width: 900px) and (orientation: landscape) and (max-height: 540px) {
  /* Larger phones held sideways get the desktop layout with a shorter headline */
  .hero-text { padding-top: calc(var(--header-h) + 28px); }
  .hero-title, .page-hero-title { font-size: clamp(28px, 8.2vh, 44px); }
  .page-hero-inner { padding-top: calc(var(--header-h) + 24px); min-height: 0; }
}

/* ---------- Disc: circle-cropped picture with a Turmeric ring and a Plum question mark ---------- */
.disc {
  --want: clamp(240px, 34vw, 500px);
  position: relative;
  width: min(var(--want), var(--cap), 100%);
  aspect-ratio: 1;
  container-type: inline-size;
}
.disc-ring {
  position: absolute; inset: -5%;
  border: max(4px, 1.4cqw) solid var(--turmeric);
  border-radius: 50%;
  transform: translate(6%, -5%);
}
.disc-photo {
  position: absolute; inset: 0;
  border-radius: 50%; overflow: hidden;
  isolation: isolate;
  background: var(--mat);
}
.disc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Plum duotone, as on the brand guide's "Heads together" page: the photo in a luminosity blend over
   Plum, kept soft so shadows stay deep plum (not black) and highlights don't turn hot pink */
.disc--duo .disc-photo { background: var(--plum); }
.disc--duo .disc-photo img { filter: grayscale(1) contrast(.8) brightness(.96); mix-blend-mode: luminosity; }
.disc-mark {
  position: absolute; left: -10%; bottom: -14%;
  font-family: var(--serif); font-weight: 400; font-size: 44cqw; line-height: 1;
  color: var(--plum);
  user-select: none;
}
.disc--hero { --want: clamp(260px, 36vw, 520px); }
/* Small photos: the circle stays at its sharp size, overlapping a larger Turmeric circle */
.disc--small { width: min(var(--want), 100%); }
.disc--small .disc-photo { inset: auto auto 0 0; width: min(68%, var(--cap)); aspect-ratio: 1; box-shadow: 0 0 0 max(5px, 1.4cqw) var(--bg, var(--ivory)); }
.disc--small .disc-ring { inset: 0 0 auto auto; width: 74%; aspect-ratio: 1; border: 0; background: var(--turmeric); transform: none; }
.disc--small .disc-mark { left: auto; right: 2%; bottom: -6%; font-size: 40cqw; }
@media (max-width: 899px) {
  /* The question mark hangs less, so it doesn't crowd the eyebrow below */
  .disc-mark { bottom: -6%; }
}
@media (max-width: 359px) {
  .disc--hero { --want: 230px; }
}

/* ---------- Photos and art in sections ---------- */
.photo { width: 100%; border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; }
.art { width: 100%; }
.art--cutout { max-width: 480px; margin: 0 auto; }

/* ==========================================================================
   statement
   ========================================================================== */
.statement-inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.statement--media .statement-inner {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.statement--media.is-flipped .statement-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.statement--media.is-flipped .statement-media { order: -1; }
.statement-media { display: flex; justify-content: center; }
.statement .disc { --want: clamp(220px, 28vw, 420px); }
@media (max-width: 899px) {
  .statement--media .statement-inner,
  .statement--media.is-flipped .statement-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .statement-media { order: -1; }
  .statement .disc { --want: min(72vw, 420px); margin-bottom: 8px; }
}

/* ==========================================================================
   story (home, slide 6): signature line, headline, text, the large logo; the heads-together
   ring bleeds off the right and bottom. Without a picture (About): a reading column.
   ========================================================================== */
.story--brand { position: relative; overflow: hidden; padding: clamp(72px, 9.4vw, 136px) 0 clamp(48px, 3.6vw, 52px); }
.story-art {
  position: absolute;
  left: calc(50% + 1.39vw);      /* 740 px at 1440, as measured on the mockup */
  top: 0;
  width: min(86.1vw, 1240px);
  max-width: none;
  pointer-events: none;
}
/* The text column ends 32 px before the ring starts (51.39vw), so no word sits on the art */
.story-text { position: relative; z-index: 1; max-width: min(640px, calc(44.4vw - 32px)); }
.story .eyebrow--signature { margin-bottom: 21px; }
.story .title { max-width: 9.67em; }
.story-body { margin-top: 19px; max-width: 575px; line-height: 1.34; }
.story-body p + p { margin-top: .42em; }
.story-body a {
  font-style: italic; font-weight: 600; font-size: var(--fs-link);
  text-decoration: none;
}
.story-body a::after { content: ""; }
.story-body a:hover, .story-body a:focus-visible { text-decoration: underline; }
.story-logo { width: clamp(220px, 26.2vw, 377px); margin-top: 33px; }

.story-read { max-width: 68ch; margin: 0; }
.story-read .head { margin-bottom: 28px; }
.story-read p + p { margin-top: .9em; }
.story-read .pull {
  font-size: clamp(26px, calc(20px + 1.1vw), 36px);
  line-height: 1.3;
  color: var(--plum);
  font-weight: 500;
  margin-bottom: 1em;
}

@media (max-width: 899px) {
  /* Phones: the ring follows the text, partly cut off by the ticker below */
  .story--brand { display: flex; flex-direction: column; padding-bottom: 0; }
  .story-inner { order: 1; }
  .story-art { position: relative; order: 2; left: auto; top: auto; width: 120vw; margin: 32px 0 -46vw 24vw; }
  .story-text { max-width: none; }
}

/* ==========================================================================
   ticker: static Yale band
   ========================================================================== */
.ticker { background: var(--yale); color: var(--ivory); padding: 11px 24px; position: relative; z-index: 1; }
.ticker-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.25;
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.ticker-list li { white-space: nowrap; }
.ticker-list li:not(:last-child)::after { content: "·"; content: "·" / ""; margin: 0 .45em; }
/* A line that wraps never ends on a "·" (shared.jsx marks the last phrase on each line) */
.ticker-list li.is-line-end::after { visibility: hidden; }
@media (min-width: 700px) {
  /* Desktop: one centred line, as in the mockup (14 px from about 1444 px up) */
  .ticker-list { font-size: clamp(12px, .97vw, 14px); }
}
@media (max-width: 699px) {
  .ticker { padding-top: 14px; padding-bottom: 14px; }
  .ticker-list { font-size: 13.5px; font-weight: 400; line-height: 1.9; }
  .ticker-list li { white-space: normal; text-wrap: balance; }
}

/* ==========================================================================
   meet: photo, panel, lollipop fact bubbles
   ========================================================================== */
.meet--bleed { position: relative; min-height: clamp(560px, 55.6vw, 1080px); display: flex; flex-direction: column; }
.meet-photo { position: absolute; inset: 0; overflow: hidden; }
.meet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.meet-wrap { position: relative; margin-top: auto; }
.meet-panel {
  margin: 0 -30px;
  padding: 36px 30px 16px;
  background: rgba(248, 246, 227, .9);
}
.meet-panel .eyebrow { margin-bottom: 4px; }
.meet .head + * { margin-top: 10px; }
.meet-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.meet-copy { max-width: 590px; }
.meet .prose { line-height: 1.34; }
.meet .ctas { margin-top: 16px; }

.bubbles { display: flex; align-items: flex-end; gap: clamp(14px, 2.2vw, 32px); flex: none; }
/* A lollipop: the circle is the words' own box (so it can grow if a reader widens the text spacing;
   shared.jsx sets --fit), with the SVG stem tucked under it */
.bubble {
  --d: 120px;
  --c: var(--turmeric);
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: calc(var(--d) * var(--fit, 1));
  color: var(--yale);
}
.bubble:nth-child(1) { --d: clamp(92px, 7.25vw, 104px); margin-bottom: 13px; }
.bubble:nth-child(2) { --d: clamp(100px, 8.35vw, 120px); --c: var(--yale); color: var(--ivory); }
.bubble:nth-child(3) { --d: clamp(106px, 9vw, 130px); --c: var(--plum); color: var(--ivory); }
.bubble:nth-child(4) { --d: clamp(94px, 7.5vw, 108px); margin-bottom: 13px; }
.bubble-text {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c);
  font-family: var(--sans); text-align: left;
}
/* A soft highlight on the top edge only, never behind the words */
.bubble-text::before {
  content: ""; position: absolute; left: 22%; top: 5%; width: 46%; height: 20%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.bubble:nth-child(4n+1) .bubble-text::before, .bubble:nth-child(4n) .bubble-text::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); }
.bubble-inner { position: relative; width: calc(var(--d) * .76); min-width: min-content; }
.bubble-stem { flex: none; width: calc(var(--d) * .4); height: calc(var(--d) * .85); margin-top: calc(var(--d) * -.2); max-width: none; overflow: visible; }
.bubble-stem path { fill: var(--c); }
.bubble-figure, .bubble-label { display: block; }
.bubble-figure { font-weight: 400; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.05; }
.bubble-figure.is-long { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.15; }
.bubble-figure.is-words { font-weight: 500; font-size: clamp(12.5px, 1.05vw, 15px); line-height: 1.15; }
.bubble-label { font-weight: 500; font-size: clamp(12.5px, 1.05vw, 15px); line-height: 1.12; }
.bubble-figure + .bubble-label, .bubble-label + .bubble-figure { margin-top: 2px; }

/* Real photos and cut-out art: picture beside the text, with roomier bubbles */
.meet--framed .bubble:nth-child(n), .meet--art .bubble:nth-child(n) { --d: clamp(116px, 9.6vw, 138px); margin-bottom: 0; }
.meet--framed .bubble-inner, .meet--art .bubble-inner { width: calc(var(--d) * .78); }
.meet-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.meet-media { display: flex; justify-content: center; }
.meet--framed .meet-row,
.meet--art .meet-row { flex-direction: column; align-items: flex-start; gap: 36px; }

@media (max-width: 899px) {
  .meet--bleed { min-height: 0; display: block; }
  .meet-photo { position: relative; inset: auto; height: 62vw; }
  .meet-photo img { object-position: 60% 70%; }
  .meet-panel { margin: 0; padding: 32px 0 56px; background: var(--ivory); }
  .meet-row { flex-direction: column; align-items: flex-start; }
  .meet-inner { grid-template-columns: minmax(0, 1fr); }
  .meet--art .meet-media img { max-width: 70vw; }
  /* Tablets get the phone-sized bubbles, not the smallest desktop ones */
  .bubble:nth-child(n) { --d: 116px; }
  .bubble-figure { font-size: 26px; }
  .bubble-figure.is-long { font-size: 19px; }
  .bubble-figure.is-words, .bubble-label { font-size: 13.5px; }
}
@media (max-width: 599px) {
  .bubbles { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 18px 40px; align-items: end; }
  /* Three bubbles: the third is centred under the first two */
  .bubbles--3 .bubble:last-child { grid-column: 1 / -1; justify-self: center; }
}

/* ==========================================================================
   numbered-ideas (home, slide 8)
   ========================================================================== */
.ideas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px clamp(32px, 5.56vw, 80px);
}
.head + .ideas { margin-top: clamp(28px, 2.9vw, 42px); }
.ideas--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idea { border-top: 1px solid var(--turmeric); }
.idea-top { display: flex; align-items: stretch; }
.idea-num {
  flex: none;
  width: 64px;
  padding-top: 22px;
  border-right: 1px solid var(--turmeric);
  font-family: var(--sans); font-weight: 200; font-size: clamp(52px, 4.93vw, 71px); line-height: 62px;
  color: var(--plum);
}
.idea-title {
  padding: 19px 0 0 20px;
  font-family: var(--sans); font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.16;
  color: var(--yale);
}
.idea-text { margin-top: 20px; line-height: 1.34; }
.ideas-section .note-label { margin-top: clamp(32px, 3.4vw, 49px); }
.ideas-section .note-label + .ctas { margin-top: 24px; }
/* A note with no links after it closes the grid like a caption, instead of hanging as a stray heading */
.ideas-section .note-label:last-child {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 15px; letter-spacing: .1em;
}
.idea-text { max-width: 68ch; }
@media (max-width: 1023px) {
  .ideas, .ideas--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* An odd one out (3 or 5 ideas) spans both columns instead of sitting alone */
  .ideas > .idea:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .ideas, .ideas--4 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .idea-num { width: 52px; padding-top: 16px; line-height: 52px; }
  .idea-title { padding-top: 14px; }
}

/* ==========================================================================
   steps: vertical Turmeric rule with Plum nodes
   ========================================================================== */
.steps-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.steps-head .lead { margin-top: 20px; }
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; left: 14px; top: 16px; bottom: 16px; width: 1px;
  background: var(--turmeric);
}
.step { position: relative; padding-left: 60px; }
.step + .step { margin-top: clamp(24px, 2.4vw, 34px); }
.step-node {
  position: absolute; left: 0; top: 0;
  width: 29px; height: 29px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--plum); color: var(--ivory);
  font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 1;
  box-shadow: 0 0 0 5px var(--bg, var(--ivory));
}
.step-title {
  padding-top: 5px;
  font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: 1.3;
  letter-spacing: .1em; text-transform: uppercase; color: var(--plum);
}
.step-text { margin-top: 6px; }
@media (max-width: 899px) {
  .steps-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  /* Phones: a simple numbered list, without the rule */
  .steps::before { display: none; }
  .step { padding-left: 44px; }
}

/* ==========================================================================
   pairs: two columns whose rows line up (subgrid), stacked on phones
   ========================================================================== */
.pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), auto);
  column-gap: clamp(40px, 5.56vw, 80px);
}
.head + .pairs { margin-top: clamp(28px, 3vw, 44px); }
.pairs-col { display: grid; grid-row: span var(--rows); grid-template-rows: subgrid; }
.pairs-list { display: grid; grid-row: span var(--items); grid-template-rows: subgrid; }
.pairs-title {
  padding-bottom: 14px; border-bottom: 1px solid var(--turmeric);
  font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.2; color: var(--plum);
}
.pairs-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.lead-in { font-weight: 700; }
@media (max-width: 699px) {
  .pairs { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 40px; }
  .pairs-col, .pairs-list { display: block; }
}

/* ==========================================================================
   table (compare): real table in a scroll container
   ========================================================================== */
.table-intro .prose--cols { max-width: 1100px; }
.table-wrap { position: relative; margin-top: clamp(32px, 3.4vw, 48px); }
/* When the table scrolls sideways, room is kept above it for the arrow cue, so the cue never covers a
   heading; the cue and a soft fade show while there is more to the right */
.table-wrap.is-scrollable { padding-top: 44px; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: 6px; }
.table-wrap.has-more::after {
  content: ""; position: absolute; top: 44px; right: 0; bottom: 0; width: 48px; pointer-events: none;
  background: linear-gradient(to left, rgba(17, 62, 85, .16), rgba(17, 62, 85, 0));
}
.scroll-cue { display: none; }
.table-wrap.has-more .scroll-cue {
  display: grid; place-items: center;
  position: absolute; z-index: 1; right: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--plum); color: var(--ivory);
  pointer-events: none;
}
.scroll-cue-arrow { width: 16px; height: 10px; margin: 0; }
.scroll-cue-arrow path { stroke-width: 1.8px; }
.data-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 19px; line-height: 1.4; }
.data-table th, .data-table td { padding: 16px 18px; text-align: left; vertical-align: top; }
.data-table thead th {
  font-family: var(--sans); font-weight: 600; font-size: 13px; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase;
  color: var(--yale); border-bottom: 2px solid var(--turmeric); vertical-align: bottom;
}
.data-table tbody th { width: 17%; font-weight: 700; color: var(--yale); }
.data-table tbody tr:nth-child(odd) { background: var(--white); }
.data-table tbody tr { border-bottom: 1px solid var(--line); }
.data-table .is-us { color: var(--plum); font-weight: 600; background: rgba(224, 162, 21, .12); }
.data-table thead th.is-us { color: var(--plum); border-bottom-color: var(--plum); background: rgba(224, 162, 21, .12); }
@media (max-width: 899px) {
  .prose--cols { columns: 1; }
}
@media (max-width: 599px) {
  /* Phones: the row labels stay pinned while the other columns scroll, and the next column peeks in */
  .data-table { min-width: 0; width: max-content; }
  .data-table th, .data-table td { width: 168px; min-width: 168px; padding: 14px; }
  .data-table tbody th, .data-table thead .corner {
    position: sticky; left: 0; z-index: 1; width: 116px; min-width: 116px;
    box-shadow: inset -1px 0 0 var(--line);
  }
  .data-table tbody tr:nth-child(odd) th { background: var(--white); }
  .data-table tbody tr:nth-child(even) th, .data-table thead .corner { background: var(--ivory); }
}

/* ==========================================================================
   claims: two-column table; each row becomes a card on phones
   ========================================================================== */
.claims { width: 100%; max-width: 1100px; border-collapse: collapse; }
.head + .claims { margin-top: clamp(28px, 3vw, 44px); }
.claims thead th {
  padding: 0 20px 14px 0; text-align: left;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid var(--turmeric);
}
.claims tbody th, .claims tbody td { padding: 18px 24px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.claims tbody th { width: 52%; font-weight: 700; }
@media (max-width: 699px) {
  .claims, .claims thead, .claims tbody, .claims tr, .claims th, .claims td { display: block; }
  .claims thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .claims tbody tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .claims tbody th, .claims tbody td { width: auto; padding: 0; border: 0; }
  .claims tbody td { margin-top: 8px; }
  .claims tbody td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--yale-soft);
  }
}

/* ==========================================================================
   faq: accordion with a plus/minus marker
   ========================================================================== */
.faq-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 20px 0;
  font-family: var(--serif); font-weight: 500; font-size: clamp(22px, calc(19.5px + .45vw), 26px); line-height: 1.3;
  color: var(--plum);
}
summary.faq-q { cursor: pointer; list-style: none; }
summary.faq-q::-webkit-details-marker { display: none; }
summary.faq-q:hover > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.faq-icon { position: relative; flex: none; width: 24px; height: 24px; margin-top: 4px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 11px; height: 2px; background: var(--plum);
  transition: transform .2s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
details[open] > summary .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 48px 26px 0; max-width: 74ch; }
.faq-a p + p { margin-top: .7em; }
.verdict-label {
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--plum);
}
.faq--open .faq-q { padding-bottom: 8px; }
@media (max-width: 899px) {
  .faq-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .faq-a { padding-right: 0; }
}

/* ==========================================================================
   evidence: findings with citations
   ========================================================================== */
.evidence-intro { max-width: 860px; }
.quiet-note {
  margin-top: 18px; padding-left: 18px; border-left: 2px solid var(--turmeric);
  font-size: clamp(19px, calc(18px + .2vw), 20px); line-height: 1.5; color: var(--yale-soft);
}
.findings {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(32px, 4vw, 64px);
  margin-top: clamp(36px, 3.6vw, 52px);
}
.findings--2, .findings--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finding { display: flex; flex-direction: column; padding-top: 20px; border-top: 1px solid var(--turmeric); }
.finding-title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, calc(20px + .3vw), 25px); line-height: 1.25; color: var(--yale); }
.finding-text { margin-top: 10px; }
.cite {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px;
  margin-top: auto; padding-top: 14px;
  font-family: var(--sans); font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--yale-soft);
}
.cite-link { display: inline-block; padding: 3px 0; font-weight: 600; white-space: nowrap; }
.cite-link .arrow path { stroke-width: 1.4px; }
.finding-text { max-width: 68ch; }
.evidence-section .ctas { margin-top: 40px; }
@media (max-width: 1023px) {
  .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .findings > .finding:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .findings, .findings--2, .findings--4 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ==========================================================================
   quotes: parents' words with a big Turmeric quote mark
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(32px, 4vw, 64px); }
.head + .quotes { margin-top: clamp(28px, 3vw, 44px); }
.quotes--1 { grid-template-columns: minmax(0, 920px); }
.quote { position: relative; padding-top: 58px; }
.quote::before {
  content: "\201C"; content: "\201C" / "";
  position: absolute; left: -6px; top: -14px;
  font-family: var(--serif); font-weight: 500; font-size: 128px; line-height: 1;
  color: var(--turmeric);
}
.quote p { font-style: italic; font-weight: 500; font-size: var(--fs-quote); line-height: 1.4; }
.quotes--1 .quote p { font-size: clamp(25px, calc(20px + 1.1vw), 34px); }
.quote figcaption {
  margin-top: 18px;
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--yale);
}
@media (max-width: 1023px) {
  .quotes { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
}

/* ==========================================================================
   team: founder cards with circular headshots and a full-bio toggle
   ========================================================================== */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(32px, 4vw, 64px); align-items: start; }
.head + .team { margin-top: clamp(32px, 3.4vw, 48px); }
.person-photo {
  width: min(240px, 72%); aspect-ratio: 1; margin-bottom: 28px;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 6px var(--ivory), 0 0 0 8px var(--turmeric);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, calc(22px + .45vw), 28px); line-height: 1.2; color: var(--plum); }
.person-role {
  margin-top: 6px;
  font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 1.45; letter-spacing: .1em; text-transform: uppercase;
}
.person-bio { margin-top: 16px; }
.bio-toggle {
  margin-top: 16px; padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: var(--fs-link); color: var(--plum);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em;
}
.bio-toggle:hover { color: var(--plum-dark); text-decoration-thickness: 2px; }
.bio-full { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--turmeric); }
.bio-full[hidden] { display: none; }
.bio-full p + p { margin-top: .75em; }
@media (max-width: 1023px) {
  .team { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
}
.head + .team-group, .team-intro + .team-group { margin-top: clamp(32px, 3.4vw, 48px); }
.team-intro { margin-top: 18px; }

/* A campus team: people listed under group names, with smaller headshots (or their initials, until a
   photo arrives) and the partner organisation they're with */
.team-group + .team-group { margin-top: clamp(48px, 5vw, 72px); }
.team-group-title {
  margin-bottom: clamp(24px, 2.4vw, 32px); padding-bottom: 12px; border-bottom: 1px solid var(--turmeric);
  font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase;
  color: var(--yale);
}
.team--people { gap: 48px clamp(28px, 3.4vw, 56px); }
.team--people .person-photo { width: min(180px, 64%); margin-bottom: 24px; }
.person-photo--initials { display: grid; place-items: center; background: var(--mat); }
.person-photo--initials span { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 4vw, 56px); line-height: 1; letter-spacing: .04em; color: var(--plum); }
.person-partner { margin-top: 8px; font-size: 18px; line-height: 1.35; }
.person-partner a {
  color: var(--plum); font-style: italic; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em;
}
.person-partner a:hover { color: var(--plum-dark); text-decoration-thickness: 2px; }
.team--people .bio-toggle { margin-top: 10px; }
@media (min-width: 1200px) {
  .team--people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .team--people { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}
/* Phones: one person per row, a small headshot beside the name. In browsers without pop-ups, the bio opens
   below at full width. */
@media (max-width: 519px) {
  .team--people { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .team--people .person { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 22px; align-items: start; }
  .team--people .person > * { grid-column: 2; }
  .team--people .person-photo {
    grid-column: 1; grid-row: 1 / span 4; width: 96px; margin: 4px 0 0;
    box-shadow: 0 0 0 4px var(--ivory), 0 0 0 6px var(--turmeric);
  }
  .team--people .person-photo--initials span { font-size: 34px; }
  .team--people .person-name { font-size: 24px; }
  .team--people .bio-toggle { margin-top: 6px; justify-self: start; }
  .team--people .bio-full { grid-column: 1 / -1; }
}

/* A team member's bio over the page (BioDialog in shared.jsx). The photo on the card opens it too. */
.person-photo--opens { cursor: pointer; }
.bio-dialog {
  width: min(880px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 0; border-radius: var(--card-radius);
  background: var(--ivory); color: var(--yale);
  box-shadow: 0 24px 60px rgba(17, 62, 85, .35);
  overflow: auto; overscroll-behavior: contain;
}
.bio-dialog::backdrop { background: rgba(17, 62, 85, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* On a page with bios, room for a scrollbar that takes up space (Windows, or a Mac set to always show
   them) is always kept, so 100vw, and every size built on it, stays the same while a bio hides the
   scrollbar. Only there: on a page too short to scroll (404 in a tall window) the room would show as a
   strip beside the header and footer. */
html:has(.bio-dialog) { scrollbar-gutter: stable; }
/* The page behind stays put while a bio is open. Where a scrollbar was, the room kept for it (above)
   darkens with the backdrop, so no light stripe shows beside it. */
html:has(.bio-dialog[open]) { overflow: hidden; background: #6D888E; background: color-mix(in srgb, var(--yale) 60%, var(--ivory)); animation: bio-gutter .3s ease; }
.bio-dialog[open] { animation: bio-in .3s var(--ease); }
.bio-dialog[open]::backdrop { animation: bio-fade .3s ease; }
@keyframes bio-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes bio-fade { from { opacity: 0; } }
@keyframes bio-gutter { from { background-color: var(--ivory); } }
.bio-dialog-inner { --pad: clamp(28px, 4vw, 56px); padding: var(--pad); }
/* Below Previous and Next, the nav's own 16px (kept for when it's stuck) stands in for part of this */
.bio-dialog-inner:has(> .bio-dialog-nav) { padding-bottom: calc(var(--pad) - 16px); }
/* The × sits 16px in from the top corner and stays there while a long bio scrolls under it. Its margins
   pull it into the corner and give back the room it would take, so what follows starts at the top. */
.bio-dialog-close {
  position: sticky; top: 16px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  margin: calc(16px - var(--pad)) calc(16px - var(--pad)) calc(var(--pad) - 60px) auto;
  border: 1.5px solid var(--plum); border-radius: 50%; background: var(--ivory); color: var(--plum); cursor: pointer;
}
.bio-dialog-close:hover { background: var(--plum); color: var(--ivory); }
.bio-dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bio-dialog-head { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: center; padding-right: 48px; }
.bio-dialog-head .person-photo { width: 160px; margin: 0; }
.bio-dialog-head .person-photo--initials span { font-size: 52px; }
.bio-dialog-name { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, calc(24px + 1.2vw), 40px); line-height: 1.15; color: var(--plum); overflow-wrap: break-word; }
.bio-dialog-name:focus { outline: none; }   /* focused by Previous and Next in a short window, as a starting point */
/* The rule runs the full width, like the one above Previous and Next; only the text keeps to a measure */
.bio-dialog-text { margin-top: clamp(24px, 3vw, 32px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--turmeric); }
.bio-dialog-text p { max-width: 68ch; }
.bio-dialog-text p + p { margin-top: .8em; }
/* Previous and Next stay in sight at the foot of the pop-up while a long bio scrolls. The Ivory either side
   hides letters (the tail of a 'y') that reach just past the edge of the text behind them. */
.bio-dialog-nav {
  position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: space-between; gap: 16px;
  margin-top: clamp(28px, 3vw, 40px); padding: 18px 0 16px; border-top: 1px solid var(--line); background: var(--ivory);
  box-shadow: -8px 0 var(--ivory), 8px 0 var(--ivory);
}
/* Paging through a bio (Page Down, Space) and Tab to a link keep clear of the stuck Previous and Next (up to
   121px tall when names wrap). Their own buttons are left out, so tabbing to them doesn't scroll the bio. */
.bio-dialog { scroll-padding-bottom: 128px; }
.bio-dialog-step { scroll-margin-bottom: -128px; }
.bio-dialog-step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 0;
  border: 0; background: none; color: var(--plum); text-align: left; cursor: pointer;
}
.bio-dialog-step--next { align-items: flex-end; margin-left: auto; text-align: right; }
.bio-dialog-dir {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--yale-soft);
}
.bio-dialog-who { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: var(--fs-link); line-height: 1.3; }
.bio-dialog-step:hover .bio-dialog-who { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.arrow--back { transform: scaleX(-1); }
@media (max-width: 599px) {
  .bio-dialog { width: calc(100vw - 24px); }
}
/* Phones, upright or on their side: less room around the pop-up, and a smaller photo, so more of the bio shows */
@media (max-width: 599px), (max-height: 520px) {
  .bio-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .bio-dialog-head { grid-template-columns: 88px minmax(0, 1fr); padding-right: 40px; }
  .bio-dialog-head .person-photo { width: 88px; box-shadow: 0 0 0 4px var(--ivory), 0 0 0 6px var(--turmeric); }
  .bio-dialog-head .person-photo--initials span { font-size: 32px; }
  .bio-dialog-close { top: 12px; width: 40px; height: 40px; margin: calc(12px - var(--pad)) calc(12px - var(--pad)) calc(var(--pad) - 52px) auto; }
}
/* Short windows (phones on their side, browser zoom of 200% or more): Previous and Next held at the foot
   would leave the bio a line or two, so they sit at its end. The text, and the focus ring on Next, keep
   clear of the × in the corner (12px in, 40px wide, and 6px for the ring). */
@media (max-height: 520px) {
  .bio-dialog { scroll-padding-bottom: 0; }
  .bio-dialog-nav { position: static; }
  .bio-dialog-step { scroll-margin-bottom: 0; }
  .bio-dialog-text, .bio-dialog-nav { margin-right: max(0px, calc(58px - var(--pad))); }
}
/* Too narrow for a long surname beside the photo: the name goes under it, at full width */
@media (max-width: 399px) {
  .bio-dialog-head { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-right: 0; }
  .bio-dialog-head .person-photo { width: 72px; }
  .bio-dialog-head .person-photo--initials span { font-size: 28px; }
}
/* Narrow and short (browser zoom of 300-400%): the name and role keep clear of the × as they scroll under it */
@media (max-width: 399px) and (max-height: 520px) {
  .bio-dialog-head { padding-right: max(0px, calc(52px - var(--pad))); }
}

/* ==========================================================================
   gallery: real photos in 16:9 frames, with captions
   ========================================================================== */
.gallery-head .prose { margin-top: 18px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(24px, 2.8vw, 40px); margin-top: clamp(32px, 3.4vw, 48px); }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { margin: 0; }
.frame {
  display: grid; place-items: center;
  grid-template: 100% / 100%;   /* so the photo's height: 100% resolves and object-fit crops it */
  aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: var(--mat);
}
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
/* A very small photo: a sharp circle with a Turmeric ring, like the founders' headshots. It is at most
   150 px, and smaller when the frame is short, so the 8 px ring is never cut off by the frame's edge. */
.frame--small img {
  width: auto; height: min(150px, calc(100% - 20px)); aspect-ratio: 1; max-width: none; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--mat), 0 0 0 8px var(--turmeric);
}
.tile figcaption { margin-top: 18px; }
.tag {
  display: inline-block; margin-bottom: 10px; padding: 5px 12px;
  border: 1px solid var(--plum); border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--plum);
}
.tile-title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, calc(20px + .4vw), 26px); line-height: 1.2; color: var(--yale); }
.tile-text { margin-top: 6px; }
@media (max-width: 1023px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .gallery, .gallery--2 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* ==========================================================================
   campuses: one card per campus, with a photo (or a big question mark for a campus still to open)
   ========================================================================== */
.campuses-head .prose { margin-top: 18px; }
.campuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(24px, 2.8vw, 40px); margin-top: clamp(32px, 3.4vw, 48px); }
.campuses--1 { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
@media (min-width: 1024px) {
  .campuses--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.doors-note { margin-top: clamp(32px, 3.4vw, 48px); }
.frame--mark { background: var(--yale); }
.frame--mark span {
  font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(110px, 12vw, 190px); line-height: .8;
  color: var(--turmeric); user-select: none;
}
.campus-body { margin-top: 20px; }
.campus .tag { margin-bottom: 12px; }
.campus-name { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; color: var(--plum); }
.campus-address { margin-top: 8px; font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.5; letter-spacing: .02em; color: var(--yale-soft); }
.campus-text { margin-top: 10px; max-width: 50ch; }
.campus-link { margin-top: 14px; }
@media (max-width: 767px) {
  .campuses { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ==========================================================================
   partners: organisations that work with Socria at a campus, each with a link to their own site
   ========================================================================== */
.partners-head .prose { margin-top: 18px; }
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 2.8vw, 40px); margin-top: clamp(32px, 3.4vw, 48px); }
.partners--1 { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.partners--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(24px, 2.4vw, 36px); background: var(--white); border-radius: var(--radius);
}
.partner-logo { display: flex; align-items: center; height: 56px; margin-bottom: 24px; }
.partner-logo img { width: auto; height: 100%; max-width: 220px; object-fit: contain; object-position: left center; }
.partner .tag { margin-bottom: 12px; }
.partner-name { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, calc(21px + .45vw), 28px); line-height: 1.2; color: var(--yale); }
.partner-text { margin-top: 10px; }
.partner-people { margin-top: 16px; }
.partner-people-label {
  display: block; margin-bottom: 2px;
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--yale-soft);
}
.partner-people a { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.partner-link { margin-top: auto; padding-top: 20px; }
@media (max-width: 1023px) {
  .partners, .partners--2 { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
}

/* ==========================================================================
   schedule: parts of the day, or years of a history
   ========================================================================== */
.schedule-head .prose { margin-top: 18px; }
.schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); margin-top: clamp(32px, 3.4vw, 48px); }
.schedule--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sched { padding-top: 18px; border-top: 1px solid var(--turmeric); }
.sched-title {
  font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase;
  color: var(--plum);
}
.sched-text { margin-top: 8px; }
.schedule-section .ctas { margin-top: 40px; }
@media (max-width: 1023px) {
  .schedule, .schedule--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .schedule, .schedule--4 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ==========================================================================
   thought-cards: square cards as on brand guide p19
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.7vw, 24px); }
.head + .cards { margin-top: clamp(28px, 3vw, 44px); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 440px)); }
.cards--1 { grid-template-columns: minmax(0, 520px); }
.cards-section--1 .cards-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.cards-section--1 .head + .cards { margin-top: 0; }
.tcard {
  position: relative;
  aspect-ratio: 1;
  padding: 9% 17% 9% 10%;
  border-radius: 10px;
  container-type: inline-size;
}
.tcard--plum { background: var(--plum); color: var(--ivory); }
.tcard--yale { background: var(--yale); color: var(--ivory); }
.tcard--turmeric { background: var(--turmeric); color: var(--yale); }
.tcard--ivory { background: var(--ivory); color: var(--plum); box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px rgba(17, 62, 85, .1); }
.tcard-q { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 17cqw, 64px); line-height: 1.04; letter-spacing: -.005em; }
.tcard-logo { position: absolute; left: 10%; bottom: 8.5%; width: 31%; }
.tcard-sig { position: absolute; left: 92%; bottom: 8.5%; width: 62%; max-width: none; transform-origin: 0 100%; transform: rotate(-90deg); }
@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-section--1 .cards-inner { grid-template-columns: minmax(0, 1fr); }
  .cards-section--1 .head + .cards { margin-top: 32px; }
}
@media (max-width: 479px) {
  .cards, .cards--2 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   cta-band: Yale (default), Plum or light
   ========================================================================== */
.cta-band { padding: clamp(64px, 7vw, 104px) 0; background: var(--yale); color: var(--ivory); }
.cta-band--plum { background: var(--plum); }
.cta-band--light { background: var(--ivory); color: var(--yale); border-top: 1px solid var(--line); }
.cta-band .title { color: var(--ivory); max-width: 18em; }
.cta-band--light .title { color: var(--plum); }
.cta-band .eyebrow { color: inherit; }
.cta-band-body { max-width: 44em; font-size: var(--fs-lead); line-height: 1.45; }
.cta-band .head + .cta-band-body { margin-top: 18px; }
.cta-band-body p + p { margin-top: .7em; }
.cta-band:not(.cta-band--light) a:not(.btn) { color: var(--ivory); }
.cta-band:not(.cta-band--light) :focus-visible { outline-color: var(--turmeric); }

/* ==========================================================================
   sources: compact reference lists
   ========================================================================== */
.sources-section { padding-top: clamp(40px, 4vw, 64px); }
.sources-section--follows { padding-top: 0; }
.sources-title {
  font-family: var(--sans); font-weight: 500; font-size: var(--fs-eyebrow); line-height: 1.3;
  letter-spacing: .08em; text-transform: uppercase; color: var(--yale);
}
.sources { margin-top: 20px; max-width: 1240px; font-size: 19px; line-height: 1.45; }
.sources li { padding-left: 18px; position: relative; }
.sources li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--turmeric); }
.sources li + li { margin-top: 10px; }
.sources a { color: var(--yale); text-decoration-color: rgba(17, 62, 85, .4); }
.sources a:hover { color: var(--plum); text-decoration-color: currentColor; }
.sources .arrow { color: var(--plum); }
.sources--cols { columns: 2; column-gap: clamp(40px, 5vw, 72px); }
.sources--cols li { break-inside: avoid; }
@media (max-width: 899px) {
  .sources--cols { columns: 1; }
}

/* ==========================================================================
   text: prose column
   ========================================================================== */
.text-col { max-width: 68ch; }

/* ==========================================================================
   contact: details beside the enquiry form
   ========================================================================== */
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { margin-top: 32px; border-bottom: 1px solid var(--line); }
.contact-list > div { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list dt { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--yale-soft); }
.contact-list dd { margin-top: 4px; font-size: clamp(21px, calc(18.6px + .6vw), 26px); line-height: 1.3; overflow-wrap: anywhere; }
/* A page that isn't about one campus lists each campus under its name */
.contact-campus-name { margin-top: 36px; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, calc(21px + .45vw), 28px); line-height: 1.2; color: var(--plum); }
.contact-campus-name a { color: inherit; text-decoration: none; }
.contact-campus-name a:hover, .contact-campus-name a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.contact-campus-name + .contact-list { margin-top: 12px; }
.contact-note { display: block; margin-top: 4px; font-size: 18px; line-height: 1.4; color: var(--yale-soft); }
.contact-map {
  display: inline-block; margin-top: 8px;
  font-style: italic; font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--plum); text-decoration: none;
}
.contact-map:hover, .contact-map:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; }
/* A campus's Google map, across the foot of the section */
.contact-inner:has(> .campus-map) { row-gap: clamp(32px, 4vw, 56px); }
.campus-map { grid-column: 1 / -1; margin: 0; }
.campus-map-name { margin-bottom: 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, calc(21px + .45vw), 28px); line-height: 1.2; color: var(--plum); }
.campus-map-frame { aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden; background: var(--mat); }
.campus-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) {
  .campus-map-frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 899px) {
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  display: block; margin-bottom: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--yale);
}
.optional { font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--yale-soft); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 11px 16px;
  background: var(--white); color: var(--yale);
  border: 1.5px solid var(--yale-soft); border-radius: 10px;
  font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238C1671' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--yale-soft); opacity: 1; }
.field-hint { margin: -2px 0 8px; font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--yale-soft); }
.field-error { margin-top: 6px; font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--plum); }
.field [aria-invalid="true"] { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
.form-note { font-size: 19px; }
.form-privacy { margin-top: 16px; font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--yale-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 18px 22px; border-radius: 10px; background: var(--white); font-size: 21px; }
.form-status--ok { border-left: 4px solid var(--turmeric); }
.form-status--ok:focus { outline: 3px solid var(--plum); outline-offset: 3px; }
.form-status--error { margin-top: 18px; border: 1.5px solid var(--plum); font-size: 19px; }
@media (max-width: 599px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: clamp(56px, 6vw, 88px) 0 28px; background: var(--yale); color: var(--ivory); font-family: var(--sans); }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--turmeric); }
/* The last column is never narrower than the email address, so it stays on one line */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) minmax(0, .85fr) minmax(max-content, 1.25fr); gap: 40px clamp(32px, 4vw, 64px); }
.footer-logo { width: 180px; }
.footer-signature { width: 250px; margin-top: 20px; }
.footer-brand p { margin-top: 20px; max-width: 30ch; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.45; }
.footer-col h2 {
  font-family: var(--sans); font-weight: 600; font-size: 13px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase;
  color: var(--turmeric);
}
.footer-col ul { margin-top: 16px; }
.footer-col-next { margin-top: 36px; }   /* a second heading in the same column */
.footer-col li { font-size: 15px; line-height: 1.4; }
.footer-col li + li { margin-top: 10px; }
.footer-col li a { display: inline-block; padding: 2px 0; overflow-wrap: anywhere; }
.footer-col li a[href^="mailto:"] { overflow-wrap: normal; }   /* if it must wrap, only after the "@" */
.social { display: flex; gap: 12px; }
.footer-col .social { margin-top: 20px; }
.footer-col .social li + li { margin-top: 0; }
.social a, .footer-col .social a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--ivory); border-radius: 50%; }
.social a:hover { background: var(--ivory); color: var(--yale); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(248, 246, 227, .3);
  font-size: 14px;
}
.footer-bottom a { display: inline-block; padding: 3px 0; }
/* Get in touch: each campus under its name */
.footer-campus { margin-top: 16px; }
.footer-campus + .footer-campus { margin-top: 22px; }
.footer-campus h3 { font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.4; }
/* max-width also keeps the long address from widening the column (it's sized to its widest line) */
.footer-address { margin-top: 6px; max-width: 24ch; font-size: 15px; line-height: 1.45; }
.footer-col .footer-campus ul { margin-top: 6px; }
.footer-col .footer-campus li + li { margin-top: 6px; }
/* A page that ends on a Yale band gets a fine line where the band meets the Yale footer */
main:has(> .cta-band--yale:last-child) + .site-footer,
main:has(> .stack > .stack-card:last-child > .stack-face > .cta-band--yale:nth-last-child(2)) + .site-footer { border-top: 1px solid rgba(248, 246, 227, .22); }
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(max-content, 1.2fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Alternate bands: in a long run of sections of one kind, every second one sits on a deeper Ivory
   (Yale 9.48:1, Yale-soft 5.21:1, Plum 7.08:1 on it). --bg lets rings drawn in the page colour follow.
   ========================================================================== */
.band-alt { --bg: var(--mat); background: var(--mat); }

/* ==========================================================================
   Card stack (CardStack in shared.jsx). shared.jsx adds .is-live, never with reduced motion. Then
   each card stops where shared.jsx has worked out (--stop: under the header or contents bar, or once
   a tall card's end is in view), the next card slides up over it, and the covered card shrinks and
   dims (shared.jsx sets that on .stack-face and .stack-shade).
   ========================================================================== */
.stack--under-header { margin-top: calc(-1 * var(--header-h)); }
.stack--under-header .hero, .stack--under-header .page-hero { margin-top: 0; }
.stack-face { position: relative; isolation: isolate; display: flow-root; background: var(--ivory); }
.stack-shade { position: absolute; inset: 0; z-index: 10; background: var(--yale); opacity: 0; pointer-events: none; }
/* --hold is the pause before a card: room to scroll while the card before it rests (shared.jsx draws
   the card up over that room until then, so no gap shows) */
.stack.is-live > .stack-card { position: sticky; top: var(--stop, 0px); margin-top: var(--hold, 0px); }
/* Two deep behind other cards, a card can't be seen: it stops sticking, so the browser can let it go */
.stack.is-live > .stack-card.is-buried { position: relative; top: auto; }
/* Measures 100svh: the window's height with a phone's address bar showing */
.stack-probe { position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
.stack.is-live > .stack-card > .stack-face { border-radius: var(--card-radius) var(--card-radius) 0 0; overflow: clip; }
.stack.is-live.stack--under-header > .stack-card:first-child > .stack-face { border-radius: 0; }   /* a hero at the very top */
/* A card coming up casts a soft shadow on the one it covers (shared.jsx marks it .is-arriving) */
.stack.is-live > .stack-card.is-arriving > .stack-face { box-shadow: 0 -10px 28px -6px rgba(17, 62, 85, .22); }
.stack-card.is-moving > .stack-face { will-change: transform; }

/* ==========================================================================
   contents bar: links to a long page's sections, sticky under the header
   ========================================================================== */
.contents {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(248, 246, 227, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.contents-wrap { position: relative; }
.contents-list {
  position: relative;
  display: flex; align-items: center;
  height: var(--contents-h);
  margin: 0 -6px; padding: 0 6px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.contents-list::-webkit-scrollbar { display: none; }
.contents-list li { flex: none; display: flex; align-items: center; }
.contents-list li + li::before {
  content: ""; flex: none; width: 4px; height: 4px; margin: 0 14px; border-radius: 50%; background: var(--plum);
}
.contents-list a {
  display: block; padding: 9px 0;
  font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 1.2;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--plum); text-decoration: none;
}
.contents-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contents-list a[aria-current] { color: var(--yale); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--plum); }
.contents-list a:focus-visible { outline-offset: 2px; }
/* Soft fades at the ends while there are more links to scroll to */
.contents.more-left .contents-wrap::before,
.contents.more-right .contents-wrap::after {
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 44px; pointer-events: none;
}
.contents.more-left .contents-wrap::before { left: var(--gutter); background: linear-gradient(to right, var(--ivory), rgba(248, 246, 227, 0)); }
.contents.more-right .contents-wrap::after { right: var(--gutter); background: linear-gradient(to left, var(--ivory), rgba(248, 246, 227, 0)); }
/* Arrow buttons over the end fades, for mouse users only (touch screens swipe; keyboards Tab) */
.contents-arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .contents-arrow {
    position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
    border: 1.5px solid var(--plum); border-radius: 50%; background: var(--ivory); color: var(--plum); cursor: pointer;
  }
  .contents-arrow.prev { left: calc(var(--gutter) - 6px); }
  .contents-arrow.next { right: calc(var(--gutter) - 6px); }
  .contents-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .contents-arrow:hover { background: var(--plum); color: var(--ivory); }
}
@media (max-width: 599px) {
  :root { --contents-h: 44px; }
  .contents-list li + li::before { margin: 0 11px; }
  .contents-list a { font-size: 12.5px; letter-spacing: .06em; }
}

/* ==========================================================================
   Windows High Contrast (forced colours): keep the shapes that carry meaning
   ========================================================================== */
@media (forced-colors: active) {
  .hero-dot span { forced-color-adjust: none; background: Canvas; border: 2px solid ButtonText; }
  .hero-dot[aria-current="true"] span { background: Highlight; border-color: Highlight; }
  .bubble-text { border: 2px solid CanvasText; }
  .bubble-text::before { display: none; }
  .bubble-stem path { fill: Canvas; stroke: CanvasText; stroke-width: 2px; vector-effect: non-scaling-stroke; }
  .faq-icon::before, .faq-icon::after { forced-color-adjust: none; background: CanvasText; }
  .scroll-cue { border: 2px solid CanvasText; }
  .stack-shade { display: none; }
  .stack.is-live > .stack-card + .stack-card > .stack-face { border-top: 2px solid CanvasText; }
  .bio-dialog { border: 2px solid CanvasText; }
}

/* ==========================================================================
   Reveal on scroll (only when shared.jsx has set it up; never with reduced motion)
   ========================================================================== */
.can-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.can-reveal .reveal.in { opacity: 1; transform: none; }

/* Printing: blocks never scrolled to are printed too, and nothing sticks to the top of each page */
@media print {
  .can-reveal .reveal { opacity: 1; transform: none; }
  .site-header, .contents, .stack.is-live > .stack-card { position: static; }
  /* No pauses on paper: no room left for them, and nothing drawn up over it */
  .stack.is-live > .stack-card { margin-top: 0 !important; transform: none !important; }
  .site-footer { transform: none !important; }
  .stack-face { transform: none !important; border-radius: 0 !important; box-shadow: none !important; }
  .stack-shade { display: none; }
  .hero-art * { animation: none !important; }
  /* An open bio prints on its own: no backdrop, no page behind it, and not repeated on every sheet */
  html:has(.bio-dialog) { scrollbar-gutter: auto; }   /* no scrollbar on paper: 100vw is the full sheet */
  html:has(.bio-dialog[open]) { overflow: visible; background: none; animation: none; }
  body:has(.bio-dialog[open]) > :not(.bio-dialog) { display: none !important; }
  .bio-dialog[open] { position: absolute; inset: 0 auto auto 0; width: auto; max-height: none; overflow: visible; margin: 0; border-radius: 0; box-shadow: none; animation: none; }
  .bio-dialog::backdrop { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bio-dialog-close, .bio-dialog-nav { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  /* ::backdrop isn't matched by *, and a browser that doesn't know it would drop a rule that names it */
  .bio-dialog[open]::backdrop { animation: none; }
  .can-reveal .reveal { opacity: 1; transform: none; }
}

/* approach: eight qualities
   Approach's "hopes" lists eight numbered ideas (NumberedIdeas gives the list `ideas--8`). From 1024 px
   they sit in two columns, four rows of two, instead of three, three and a lone two. Narrower screens
   already show two columns, then one. */
@media (min-width: 1024px) {
  .ideas--8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* end approach: eight qualities */
