/* ============================================================
   hpy CE - light mode, monotone
   Tokens map to the hpy design system (Mono only).
   No brand accent (Core.Sun/Peach) or Secondary accents - hierarchy
   comes from type weight, size, and Mono grayscale layering.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@400;500;600&family=Lora:ital,wght@1,400;1,500&display=swap');
@import url('https://unpkg.com/@phosphor-icons/web@2.1.1/src/regular/style.css');
@import url('https://unpkg.com/@phosphor-icons/web@2.1.1/src/fill/style.css');

:root {
  /* ---- 4px primitives ---- */
  --n-0:    0px;
  --n-4:    4px;
  --n-8:    8px;
  --n-12:  12px;
  --n-16:  16px;
  --n-20:  20px;
  --n-24:  24px;
  --n-28:  28px;
  --n-32:  32px;
  --n-40:  40px;
  --n-44:  44px;
  --n-48:  48px;
  --n-56:  56px;
  --n-64:  64px;
  --n-72:  72px;
  --n-80:  80px;
  --n-96:  96px;
  --n-112: 112px;

  /* ---- Spacing.Vertical / Horizontal ---- */
  --space-xs:  var(--n-4);
  --space-s:   var(--n-8);
  --space-m:   var(--n-12);
  --space-l:   var(--n-16);
  --space-2xl: var(--n-20);
  --space-3xl: var(--n-24);
  --space-4xl: var(--n-32);
  --space-max: var(--n-44);

  /* ---- Spacing.Padding ---- */
  --pad-1-4: var(--n-4);
  --pad-2-4: var(--n-8);
  --pad-3-4: var(--n-12);
  --pad-4-4: var(--n-16);
  --pad-3-2: var(--n-24);
  --pad-4-2: var(--n-32);

  /* ---- Radius ---- */
  --radius-sharp:    4px;
  --radius-subtle:   8px;
  --radius-soft:    16px;
  --radius-rounded: 24px;
  --radius-pill:    9999px;
  --radius-circle: 128px;

  /* ---- Sizes ---- */
  --size-small:   24px;
  --size-medium:  40px;
  --size-large:   48px;
  --size-xlarge:  56px;

  /* ---- Mono primitives ---- */
  --mono-white:    #ffffff;
  --mono-mist:     #f2f2f2;
  --mono-ash:      #adadad;
  --mono-lucid:    #444444;
  --mono-night:    #2f2f2f;
  --mono-midnight: #212121;

  /* ---- Warm off-whites (pulled from thinkhpy.com brand) ---- */
  --warm-bone:    #fbfaf8;   /* canvas - barely-warm white */
  --warm-linen:   #f6f5f4;   /* subtle elevated surfaces */
  --warm-sand:    #f1efeb;   /* deeper elevated, section bg */
  --warm-peach:   #fff4ea;   /* Core.Peach token - warmest surface */
  --warm-blush:   #fff0e3;   /* between sand and peach */

  /* ---- Semantic colors - light mode (warm-tinted) ---- */
  --bg-canvas:    var(--warm-bone);
  --bg-subtle:    var(--warm-linen);
  --bg-elevated:  var(--warm-sand);
  --bg-card:      var(--mono-white);
  --bg-card-hover: var(--warm-linen);
  --bg-peach:     var(--warm-peach);

  --border-subtle: #ece8e3;        /* warm hairline */
  --border-default: var(--warm-sand);
  --border-strong: #d8d2cc;        /* warm version of Mono.Ash */

  --text-strong:    var(--mono-midnight);
  --text-default:   var(--mono-night);
  --text-muted:     var(--mono-lucid);
  --text-subtle:    var(--mono-ash);
  --text-inverse:   var(--mono-white);

  /* Sentiments (used only where the surface IS about a sentiment) */
  --sentiment-danger:  #c44545;
  --sentiment-warning: #b7791f;

  /* ---- Secondary palette (Color.Secondary.*) - category accents ---- */
  --secondary-teal:    #2fa39c;
  --secondary-amber:   #d9b93c;
  --secondary-apricot: #db8f5c;
  --secondary-mauve:   #b781a4;

  /* ---- hpy gradient (Iconmark) ---- */
  --hpy-gradient: linear-gradient(135deg, #F22FB0 26%, #F58A25 84%);
  --hpy-pink:   #F22FB0;
  --hpy-orange: #F58A25;

  /* ---- Typography ---- */
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif:  "Lora", Georgia, "Times New Roman", serif;

  /* ---- Shadows (kept minimal - restraint over flash) ---- */
  --shadow-card: 0 1px 0 rgba(33,33,33,0.04);
  --shadow-card-hover: 0 1px 0 rgba(33,33,33,0.04), 0 8px 24px rgba(33,33,33,0.06);
  --shadow-focus: 0 0 0 3px rgba(33,33,33,0.10);

  /* ---- Back-compat aliases for admin.ejs (still using old names) ---- */
  --text-primary:   var(--text-strong);
  --text-secondary: var(--text-muted);
  --text-tertiary:  var(--text-subtle);
  --text-inverted:  var(--text-inverse);
  --accent:         var(--text-strong);
  --accent-soft:    var(--mono-mist);
  --accent-glow:    rgba(33,33,33,0.08);
  --cat-domestic:   var(--mono-ash);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  color: var(--text-default);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

body {
  /* Editorial canvas: warm paper-ish base with a quiet peach wash near the
     top. No multi-color mesh - that read as SaaS. The grain layer (added via
     the body::before below) gives a printed-paper texture under everything. */
  background:
    radial-gradient(72rem 56rem at 50% -20%, var(--warm-peach), transparent 70%),
    var(--warm-bone);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}
/* Paper grain - an inline SVG of small noise dots, opaque enough to read as
   texture but quiet enough not to interfere with type. Sits behind all
   content via fixed positioning so it doesn't repaint on scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.13 0 0 0 0 0.13 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }

a { color: var(--text-strong); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 120ms ease; }
a:hover { border-bottom-color: var(--text-strong); }

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

::selection { background: var(--mono-midnight); color: var(--mono-white); }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--pad-3-2);
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-3-2);
}
section { padding: var(--n-96) 0; }

/* ============================================================
   Brand lockup - iconmark (orb) + wordmark (Lora "hpy") + CE eyebrow
   ============================================================ */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-m);
  border-bottom: none;
}
.brand-lockup:hover { border-bottom: none; }

.iconmark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-image: url('/orb.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.iconmark-sm { width: 20px; height: 20px; }
.iconmark-lg { width: 56px; height: 56px; }

/* Horizontal lockup: orb + "hpy" baked into one image */
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-logo-sm { height: 26px; }

/* NBCC ACEP seal - credential signal */
.nbcc-seal {
  display: inline-block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.nbcc-seal-lg { width: 96px; height: 96px; }
.nav .nbcc-seal { width: 40px; height: 40px; }

.nbcc-card {
  margin-top: var(--space-3xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-m);
  align-items: center;
}
.nbcc-card .nbcc-seal-lg { width: 64px; height: 64px; }
.nbcc-card-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 2px;
}
.nbcc-card-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.005em;
  color: var(--text-strong);
  line-height: 1;
}
.brand-ce {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: var(--space-m);
  margin-left: var(--space-xs);
  border-left: 1px solid var(--border-default);
  line-height: 1;
}

/* Gradient text utility - used sparingly for editorial emphasis */
.gradient-text {
  background: var(--hpy-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-l) var(--pad-3-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-m);
  color: var(--text-strong);
  border-bottom: none;
}
.nav-brand:hover { border-bottom: none; }
.nav-brand .wordmark { font-size: 22px; }
.nav-brand .iconmark { width: 26px; height: 26px; }
.nav-links {
  display: flex;
  gap: var(--space-4xl);
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-bottom: none;
}
.nav-links a:hover { color: var(--text-strong); border-bottom: none; }
.nav-cta { display: flex; gap: var(--space-m); align-items: center; }

/* Outbound link back to the parent hpy brand (thinkhpy.com).
   Styled to look like the wordmark, with a small "↗" outbound arrow. */
.nav-hpy {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 19px;
  color: var(--text-strong);
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 4px var(--space-s);
  border-bottom: none;
  transition: opacity 120ms ease;
}
.nav-hpy::after {
  content: "\2197";  /* ↗ */
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
  position: relative;
  top: -2px;
}
.nav-hpy:hover { border-bottom: none; opacity: 0.7; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  height: var(--size-medium);
  padding: 0 var(--pad-3-2);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--mono-midnight);
  color: var(--mono-white);
  border-color: var(--mono-midnight);
}
.btn-primary:hover {
  background: var(--mono-night);
  color: var(--mono-white);
  border-color: var(--mono-night);
}

.btn-secondary {
  background: var(--mono-white);
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--mono-mist);
  border-color: var(--text-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text-strong); }

.btn-large {
  height: var(--size-xlarge);
  padding: 0 var(--pad-4-2);
  font-size: 15px;
}
.btn-block { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: var(--n-96) 0 var(--n-96);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--n-64);
  align-items: center;
}
.hero-visual {
  display: grid;
  place-items: center;
  position: relative;
}
.hero-image,
.hero-orb,
.hero-video {
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-rounded);
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 0 rgba(33,33,33,0.04),
              0 32px 80px rgba(33,33,33,0.10),
              0 12px 32px rgba(33,33,33,0.06);
}
.hero-orb {
  border-radius: 50%;
  animation: orb-drift 14s ease-in-out infinite;
  box-shadow: none;
  filter: drop-shadow(0 24px 64px rgba(242,47,176,0.18))
          drop-shadow(0 48px 96px rgba(245,138,37,0.10));
}
.hero-video {
  border-radius: 50%;
  animation: orb-drift 14s ease-in-out infinite;
}
.hero-video img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
@keyframes orb-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-video { animation: none; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--n-48); }
  .hero-visual { order: -1; }
  .hero-orb, .hero-video { max-width: 240px; }
  .hero-image { max-width: 360px; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--pad-1-4) var(--pad-3-4) var(--pad-1-4) var(--pad-2-4);
  background: var(--mono-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-bottom: var(--space-3xl);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-strong);
}
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--text-strong);
  max-width: 920px;
  margin-bottom: var(--space-3xl);
}
.hero h1 em {
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: var(--space-max);
}
.hero-actions {
  display: flex;
  gap: var(--space-m);
  flex-wrap: wrap;
}

/* Partner row */
.partner-row {
  margin-top: var(--n-80);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: var(--space-s);
  flex-wrap: wrap;
  color: var(--text-subtle);
  font-size: 13px;
}
.partner-row strong {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   Section headers
   ============================================================ */
.section-head {
  display: block;
  margin-bottom: var(--n-48);
  max-width: 720px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1.12;
  color: var(--text-strong);
  margin-bottom: var(--space-l);
}
.section-head h2 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
}
.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 620px;
}

/* ============================================================
   Pillar / step cards (generic monotone card)
   ============================================================ */
.card {
  background: transparent;
  border: none;
  padding: 0;
}
.card-icon { display: none; }
.btn i { font-size: 16px; line-height: 1; }
.btn-large i { font-size: 18px; }
.card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-m);
  line-height: 1.25;
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Step labels (How it works) */
.step-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-subtle);
  font-weight: 400;
  margin-bottom: var(--space-m);
}
.step h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin-bottom: var(--space-m);
}
.step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   Timeline (How it works) - scroll-pinned, fill follows the user
   ------------------------------------------------------------
   Wrapper is a tall .howitworks-track. The inner .howitworks-pin
   sticks at top of viewport. JS calculates scroll progress through
   the track and pushes it into `--progress` on .timeline-vertical.
   The connector line fills based on --progress; each step gets
   `.active` toggled when progress crosses (i + 0.5) / steps.
   ============================================================ */
.howitworks { padding: var(--n-96) 0; }
.howitworks-track { position: relative; height: auto; }
.howitworks-pin {
  position: static;
  display: block;
  padding: 0;
}
.howitworks-pin .section-head { margin-bottom: var(--n-40); }

.timeline-vertical {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: var(--n-48);
  list-style: none;
}
/* Line segments live on each row instead of the whole <ol>, so the line
   ends with the last node instead of trailing past it. Each segment runs
   from just below its node down to the next node's top edge. */
.timeline-row {
  position: relative;
  padding-bottom: var(--n-40);
  opacity: 1;
}
.timeline-row::before {
  content: "";
  position: absolute;
  /* Node is left:-48 width:40 → center at row-coord x:-28. Line is 2px
     so left:-29 centers it on the node. */
  left: -29px;
  top: 44px;     /* node is 40 tall + 4px breathing */
  bottom: -4px;  /* tuck into next row by 4px so segments meet visually */
  width: 2px;
  background: var(--border-strong);
  border-radius: 2px;
}
.timeline-row:last-child { padding-bottom: 0; }
.timeline-row:last-child::before { display: none; }

.timeline-node {
  position: absolute;
  left: calc(-1 * var(--n-48));
  top: 0;
  width: var(--size-medium);
  height: var(--size-medium);
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-strong);
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 17px;
  letter-spacing: -0.01em;
  z-index: 2;
}

.timeline-card {
  background: transparent;
  border: none;
  /* Push the title down so its baseline visually centers on the node (which
     sits at top:0 to top:40 of the row, center at top:20). The "Step XX"
     italic label was removed - it duplicated the number in the circle. */
  padding: 6px 0 0 0;
}
.timeline-card .step-label { display: none; }
.timeline-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text-strong);
  margin-bottom: var(--space-m);
  line-height: 1.2;
}
.timeline-card h3 i { display: none; }  /* no icon */
.timeline-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 600px;
}

/* Coda - soft closing under the timeline */
.howitworks-coda {
  margin-top: var(--n-40);
  padding-left: var(--n-48);
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 15px;
  opacity: 0.55;
  transition: opacity 400ms ease;
}
.timeline-vertical[style*="--progress: 1"] + .howitworks-coda,
.howitworks-coda.lit { opacity: 1; }

.howitworks-coda .coda-text {
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--text-default);
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.howitworks-coda .coda-text em {
  font-style: normal;
  color: var(--text-strong);
  font-weight: 500;
}

@media (max-width: 720px) {
  /* On mobile, drop the sticky behavior - natural scroll feels better */
  .howitworks-track { height: auto; }
  .howitworks-pin { position: static; min-height: auto; }
  .timeline-vertical { padding-left: var(--n-40); }
  .timeline-node { left: calc(-1 * var(--n-40)); width: 32px; height: 32px; font-size: 13px; }
  .timeline-vertical::before,
  .timeline-vertical::after { left: 15px; }
  .howitworks-coda { padding-left: var(--n-40); }
}

/* Honor reduced-motion: skip the fade-in and the smooth fill */
@media (prefers-reduced-motion: reduce) {
  .timeline-row { opacity: 1; transform: none; }
  .timeline-vertical::after { transition: none; }
}

/* ============================================================
   Bundles (Endeavors tiers) - 3 cards, one featured
   ============================================================ */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3xl);
  align-items: stretch;
}
.bundle-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-rounded);
  padding: var(--pad-4-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  transition: border-color 200ms ease, transform 200ms ease;
}
.bundle-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.bundle-card-featured {
  background: var(--warm-peach);
  border-color: var(--border-strong);
}
.bundle-flag {
  position: absolute;
  top: calc(-1 * var(--space-m));
  left: var(--pad-4-2);
  padding: var(--pad-1-4) var(--pad-3-4);
  background: var(--mono-midnight);
  color: var(--mono-white);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: var(--radius-pill);
}
.bundle-header { display: grid; gap: var(--space-xs); }
.bundle-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--text-strong);
  line-height: 1.1;
}
.bundle-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.bundle-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-m);
  flex-wrap: wrap;
  padding-top: var(--space-s);
  border-top: 1px solid var(--border-subtle);
}
.bundle-price {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text-strong);
  line-height: 1;
  font-feature-settings: "onum" 1, "pnum" 1;
}
.bundle-price-was {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text-subtle);
  text-decoration: line-through;
  font-feature-settings: "onum" 1;
}
.bundle-meta { font-size: 13px; color: var(--text-muted); }

.bundle-includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-m);
  flex: 1;
}
.bundle-includes li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--space-m);
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-default);
  line-height: 1.5;
}
.bundle-includes li i { display: none; }
.bundle-includes li {
  grid-template-columns: 12px 1fr;
}
.bundle-includes li::before {
  content: "·";
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1;
  color: var(--text-strong);
  margin-top: -4px;
}

.nbcc-band {
  margin-top: var(--n-48);
  padding: var(--pad-3-2) 0 0 0;
  border-top: 1px solid var(--border-subtle);
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
}
.nbcc-band i { display: none; }

/* ============================================================
   Faculty
   ============================================================ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3xl);
}
.faculty-card {
  background: transparent;
  border: none;
  padding: 0;
  display: grid;
  gap: var(--space-m);
}
.faculty-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--warm-sand);
  margin-bottom: var(--space-m);
}
.faculty-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.faculty-pronouns {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
}
.faculty-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}
.faculty-bio { font-size: 15px; color: var(--text-default); line-height: 1.65; }
.faculty-modules {
  padding-top: var(--space-m);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
}
.faculty-modules .mod-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-strong);
  background: transparent;
  padding: 0 4px;
  font-weight: 500;
  letter-spacing: 0;
}

/* ============================================================
   Testimonials (3-quote grid)
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3xl);
}
.testimonial-card {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  position: relative;
}
.testimonial-card .quote-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 52px;
  line-height: 0.6;
  color: var(--text-muted);
  height: 24px;
}
.testimonial-card .quote-mark i { display: none; }
.testimonial-card .quote-mark::before { content: "\201C"; }  /* curly opening quote */
.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  font-style: italic;
  color: var(--text-strong);
  font-weight: 400;
  flex: 1;
  margin: 0;
}
.testimonial-card .attrib {
  padding-top: var(--space-l);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: var(--space-m);
  align-items: center;
}
.testimonial-card .attrib > div { display: grid; gap: 2px; flex: 1; }
.testimonial-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid color-mix(in oklab, var(--quote-color, var(--mono-ash)) 35%, white);
  background: var(--mono-mist);
}
.testimonial-card .attrib .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}
.testimonial-card .attrib .meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   Filters
   ============================================================ */
.filters {
  display: flex;
  gap: var(--space-4xl);
  flex-wrap: wrap;
  margin-bottom: var(--n-48);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid var(--border-subtle);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--pad-1-4) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
  letter-spacing: -0.005em;
}
.filter-chip:hover { color: var(--text-strong); }
.filter-chip.active {
  color: var(--text-strong);
  border-bottom-color: var(--text-strong);
}
.filter-chip .count {
  font-family: var(--font-serif);
  font-style: italic;
  opacity: 0.6;
  font-weight: 400;
  font-feature-settings: "onum" 1;
}

/* ============================================================
   Course grid
   ============================================================ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3xl);
}
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, transform 200ms ease;
  text-decoration: none;
  color: inherit;
}
.course-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.course-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--warm-sand);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.course-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Add-On covers (e.g. the NBCC seal logo) are square logos, not photos.
   Show the whole mark inside the 16:9 area instead of cropping to edges. */
.course-card[data-cat="Add-On"] .course-cover img {
  object-fit: contain;
  padding: var(--space-l);
}
/* Glass-morph category badge sits on top of the photo (or alone if the
   image fails to load and is removed). Tinted with the category accent. */
.cover-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--cat-color, white) 32%, rgba(255,255,255,0.72));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 6px 18px rgba(33,33,33,0.18);
  display: grid;
  place-items: center;
  color: var(--cat-color, var(--text-strong));
  transition: transform 200ms ease;
}
.course-card:hover .cover-badge { transform: scale(1.06); }
.cover-badge i { font-size: 22px; line-height: 1; }
/* Larger fallback icon when no image is present (no badge, icon fills) */
.course-cover > i:not(.cover-badge i) {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 56px;
  color: var(--cat-color, var(--text-strong));
  opacity: 0.6;
}

.course-body {
  padding: var(--pad-3-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  flex: 1;
}
.course-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--pad-1-4) var(--pad-3-4);
  background: var(--mono-mist);
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}
.tag-format {
  color: var(--cat-color, var(--text-strong));
  background: color-mix(in oklab, var(--cat-color, var(--mono-mist)) 14%, white);
  font-weight: 600;
}
.tag-hours { color: var(--text-muted); background: var(--mono-mist); }

.course-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--text-strong);
}
.course-card .instructor {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-s);
}
.course-card .course-footer {
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}
.course-card .course-date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  font-feature-settings: "onum" 1;
}
.course-card .course-date i { display: none; }
.course-card .course-price {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.012em;
  line-height: 1;
  font-feature-settings: "onum" 1, "pnum" 1;
}
.instructor .avatar {
  width: var(--size-small);
  height: var(--size-small);
  border-radius: 50%;
  background: color-mix(in oklab, var(--cat-color, var(--mono-ash)) 18%, white);
  color: var(--cat-color, var(--text-strong));
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============================================================
   Course detail
   ============================================================ */
.detail-hero {
  padding: var(--n-64) 0 var(--n-48);
  border-bottom: 1px solid var(--border-subtle);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--n-64);
  align-items: start;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.detail-eyebrow {
  display: flex;
  gap: var(--space-s);
  align-items: center;
  margin-bottom: var(--space-3xl);
  font-size: 13px;
  color: var(--text-subtle);
}
.detail-eyebrow a { color: var(--text-subtle); border-bottom: none; }
.detail-eyebrow a:hover { color: var(--text-strong); border-bottom: none; }

.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin-bottom: var(--space-3xl);
  color: var(--text-strong);
}
.detail-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 620px;
}
.detail-cover {
  margin-top: var(--n-48);
  aspect-ratio: 21/9;
  border-radius: var(--radius-soft);
  background: var(--warm-sand);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.detail-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Add-On detail cover: square mark contained inside the 21:9 area. */
.detail-hero[data-cat="Add-On"] .detail-cover img {
  object-fit: contain;
  padding: var(--space-2xl);
}

/* Optional CE certificate upsell shown in the enroll card on module pages. */
.ce-upsell {
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.ce-upsell a {
  color: var(--text-strong);
  text-decoration: underline;
  font-weight: 500;
}
/* Fallback when the cover image doesn't load: a small white icon chip
   sits centered in the warm-sand cover area. The img sits on top with
   position:absolute when it does load, hiding the icon-wrap visually. */
.detail-cover .icon-wrap {
  width: var(--n-72);
  height: var(--n-72);
  border-radius: var(--radius-soft);
  background: var(--mono-white);
  border: 1px solid color-mix(in oklab, var(--cat-color, var(--mono-ash)) 30%, white);
  display: grid;
  place-items: center;
  color: var(--cat-color, var(--text-strong));
}
.detail-cover .icon-wrap i { font-size: 40px; line-height: 1; }
/* When an img sibling exists (image loaded), hide the fallback chip */
.detail-cover:has(img) .icon-wrap { display: none; }

/* Enroll card */
.enroll-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-soft);
  padding: var(--pad-4-2);
  position: sticky;
  top: 96px;
}
.enroll-card .price {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.024em;
  margin-bottom: var(--space-xs);
  color: var(--text-strong);
}
.enroll-card .price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-3xl);
  line-height: 1.5;
}
.enroll-card .meta-list {
  display: grid;
  gap: var(--space-l);
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-3xl);
}
.enroll-card .meta-list dt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}
.enroll-card .meta-list dd {
  font-size: 14px;
  color: var(--text-strong);
  font-weight: 500;
}
.enroll-card .actions {
  display: grid;
  gap: var(--space-m);
}

/* "Add to calendar" dropdown - wraps a <details>/<summary> as a popover. */
.cal-menu { position: relative; }
.cal-menu summary {
  list-style: none;
  cursor: pointer;
}
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu summary::marker { content: ""; }
.cal-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-soft);
  box-shadow: 0 12px 32px rgba(33,33,33,0.10);
  padding: 6px;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.cal-menu-panel a {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: 10px 14px;
  border-radius: var(--radius-subtle);
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: none;
  transition: background 120ms ease;
}
.cal-menu-panel a:hover {
  background: var(--warm-linen);
  border-bottom: none;
}
.cal-menu-panel a i {
  width: 18px;
  font-size: 17px;
  color: var(--text-muted);
}

/* Detail body */
.detail-body-inline { padding-top: var(--n-48); }
.detail-body-inline h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.016em;
  margin-bottom: var(--space-l);
  margin-top: var(--n-48);
  color: var(--text-strong);
}
.detail-body-inline h2:first-child { margin-top: 0; }
.detail-body-inline p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: var(--space-l);
  max-width: 680px;
}
.detail-body-inline ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
  max-width: 680px;
}
.detail-body-inline ul li {
  color: var(--text-muted);
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
}
.detail-body-inline ul li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 10px;
  background: var(--text-strong);
  border-radius: 50%;
  flex-shrink: 0;
}

.state-grid { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.state-chip {
  padding: var(--pad-1-4) var(--pad-3-4);
  background: var(--mono-mist);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-default);
}

/* Instructor block */
.instructor-block {
  display: flex;
  gap: var(--space-l);
  align-items: center;
  padding: var(--pad-3-2);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-soft);
  max-width: 480px;
}
.instructor-block .avatar {
  width: var(--size-xlarge);
  height: var(--size-xlarge);
  border-radius: 50%;
  background: var(--warm-sand);
  color: var(--text-strong);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 18px;
  object-fit: cover;
  flex-shrink: 0;
}
.instructor-block .name { font-weight: 600; color: var(--text-strong); font-size: 16px; }
.instructor-block .role { color: var(--text-muted); font-size: 14px; margin-top: var(--space-xs); }

/* ============================================================
   Forms
   ============================================================ */
.form-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-soft);
  padding: var(--pad-3-2);
  margin-top: var(--n-32);
}
.form-row { margin-bottom: var(--space-l); }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: var(--space-s);
}
.form-row input {
  width: 100%;
  height: var(--size-xlarge);
  padding: 0 var(--pad-3-2);
  background: var(--mono-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-subtle);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.form-row input::placeholder { color: var(--text-subtle); }
.form-row input:focus {
  outline: none;
  border-color: var(--text-strong);
  box-shadow: var(--shadow-focus);
}
.form-row .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--space-s);
  line-height: 1.5;
}

.disclosure {
  padding: var(--pad-3-4) var(--pad-3-2);
  background: var(--mono-mist);
  border-radius: var(--radius-subtle);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-l);
}
.disclosure strong { color: var(--text-strong); display: block; margin-bottom: var(--space-xs); }

.order-summary {
  background: var(--mono-mist);
  border-radius: var(--radius-soft);
  padding: var(--pad-3-2);
  margin-bottom: var(--space-l);
}
.order-summary .label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: var(--space-s);
  font-weight: 500;
}
.order-summary .course-title-mini {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: var(--space-s);
}
.order-summary .meta-mini {
  display: flex;
  gap: var(--space-m);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ============================================================
   Confirmation
   ============================================================ */
.confirm-hero {
  text-align: center;
  padding: var(--n-96) 0 var(--space-max);
}
.confirm-check {
  width: var(--n-64);
  height: var(--n-64);
  border-radius: 50%;
  background: var(--mono-midnight);
  color: var(--mono-white);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-3xl);
}
.confirm-check svg { width: 28px; height: 28px; stroke-width: 2; }
.confirm-check i { font-size: 30px; line-height: 1; }
.confirm-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.024em;
  margin-bottom: var(--space-l);
  color: var(--text-strong);
}
.confirm-hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}
.timeline {
  margin: var(--space-max) 0;
  display: grid;
  gap: var(--space-l);
}
.timeline-step {
  display: grid;
  grid-template-columns: var(--size-medium) 1fr;
  gap: var(--space-l);
  padding: var(--pad-3-2);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-soft);
}
.timeline-num {
  width: var(--size-small);
  height: var(--size-small);
  border-radius: 50%;
  background: var(--mono-mist);
  color: var(--text-strong);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
}
.timeline-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}
.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.confirm-actions {
  display: flex;
  gap: var(--space-m);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-max);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  padding: var(--pad-3-2);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-soft);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-l);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 200ms ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--text-muted);
  margin-top: var(--space-m);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--n-64) 0 var(--n-48);
  margin-top: var(--n-96);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3xl);
  color: var(--text-subtle);
  font-size: 13px;
}
.footer-inner a { color: var(--text-subtle); border-bottom: none; }
.footer-inner a:hover { color: var(--text-strong); border-bottom: none; }
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-m);
  margin-bottom: var(--space-s);
}
.footer-brand .wordmark { font-size: 18px; color: var(--text-strong); }
.footer-links { display: flex; gap: var(--space-3xl); }

/* ============================================================
   Utilities
   ============================================================ */
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small { font-size: 13px; }

/* ============================================================
   Editorial components - Letter, pull-quote, drop-cap, signature
   ============================================================ */
.letter-section {
  padding: var(--n-48) 0 var(--n-64);
  border-bottom: 1px solid var(--border-subtle);
}
.pull-quote-section { padding: var(--n-48) 0; }

/* ============================================================
   Orientation video section (Vimeo embed)
   ============================================================ */
.orientation-section {
  padding: var(--n-64) 0 var(--n-96);
  border-bottom: 1px solid var(--border-subtle);
}
.orientation-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--n-48);
}
.orientation-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-subtle);
  margin-bottom: var(--space-l);
}
.orientation-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.014em;
  line-height: 1.15;
  color: var(--text-strong);
  margin-bottom: var(--space-l);
}
.orientation-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}
.orientation-frame {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: var(--mono-midnight);
  box-shadow: 0 1px 0 rgba(33,33,33,0.04), 0 24px 64px rgba(33,33,33,0.08);
}
.orientation-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.letter {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--n-64) var(--pad-3-2);
  text-align: center;
}
.letter-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-subtle);
  margin-bottom: var(--space-3xl);
}
.letter-body {
  text-align: left;
  margin-bottom: var(--space-4xl);
}
.letter-body p {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.65;
  font-style: italic;
  color: var(--text-default);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-l);
}
.letter-body p:last-child { margin-bottom: 0; }
.letter-attrib-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-l);
  text-align: left;
}
.letter-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--warm-sand);
}
.letter-attrib {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: 0.01em;
}
.letter-role {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.pull-quote {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--n-80) var(--pad-3-2);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.pull-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--text-strong);
  margin: 0 0 var(--space-3xl) 0;
}
.pull-quote .attribution {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
}

.drop-cap::first-letter {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 4.4em;
  line-height: 0.92;
  float: left;
  margin: 4px 12px 0 0;
  color: var(--text-strong);
}

.faculty-signature {
  margin-top: var(--n-48);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: var(--n-64) 0 var(--n-48); }
  section { padding: var(--n-64) 0; }
  .course-grid { grid-template-columns: 1fr; }
  .brand-ce { padding-left: var(--space-s); margin-left: var(--space-s); }
}
