/* ==========================================================================
   Liminal Space Training
   Palette: logo gold, graphite and silver, widened with warm neutrals.
   Type: Newsreader (headings), Jost (body and interface).
   ========================================================================== */

:root {
  /* logo colours */
  --gold: #E9B521;
  --gold-soft: #F3D57E;
  --gold-text: #7A5C0F;      /* gold that passes contrast as text on linen */
  --graphite: #4F4E54;
  --silver: #BFBFBF;

  /* warm neutrals */
  --ink: #2E2D32;
  --ink-soft: #5B585C;
  --paper: #FBF8F3;
  --linen: #F4EFE8;
  --stone: #E6DED3;
  --taupe: #B9AC9C;
  --dusk: #3A3836;
  --dusk-deep: #2F2D2C;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  --header-h: 4.75rem;
  --section: clamp(4.5rem, 10vw, 9rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem); line-height: 1.03; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); font-weight: 400; line-height: 1.2; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: 64ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { color: var(--gold-text); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--gold-soft); color: var(--ink); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--paper); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 46rem); }

.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* Placeholder content that the institute still needs to supply */
.tbc {
  background: rgba(233, 181, 33, .16);
  border-bottom: 1px dashed var(--gold-text);
  padding: 0 .2em;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans); font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn--line { border-color: var(--graphite); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--line-light { border-color: rgba(244, 239, 232, .55); color: var(--linen); }
.btn--line-light:hover { background: var(--linen); color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(244, 239, 232, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: rgba(185, 172, 156, .45); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 2.6rem; height: 2.6rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; letter-spacing: .005em; }
.brand__sub {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .02em; margin-top: .3rem; color: var(--ink-soft);
}
.brand__sub::before, .brand__sub::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .6; }
.brand--light, .brand--light:hover { color: var(--linen); }
.brand--light .brand__sub { color: var(--stone); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-block; padding: .5rem 0;
  font-size: .98rem; font-weight: 500; text-decoration: none; color: var(--ink);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__item--sub { position: relative; }
.nav__sub {
  position: absolute; top: calc(100% + .5rem); left: -1.25rem;
  min-width: 21rem; list-style: none; margin: 0; padding: .75rem;
  background: var(--paper);
  border: 1px solid rgba(185, 172, 156, .45);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(58, 56, 54, .35);
  opacity: 0; visibility: hidden; transform: translateY(-.35rem);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.75rem; height: .75rem; }
.nav__sub a { display: block; padding: .6rem .75rem; border-radius: .6rem; text-decoration: none; font-size: .95rem; }
.nav__sub a:hover { background: var(--linen); color: var(--ink); }
.nav__sub li:first-child a { font-weight: 500; }
.nav__item--sub:hover .nav__sub,
.nav__item--sub:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}

.menu-toggle {
  display: none; align-items: center; gap: .6rem;
  min-height: 2.75rem; padding: .5rem .25rem;
  background: none; border: 0; cursor: pointer;
  font: 500 1rem var(--sans); color: var(--ink);
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 1.4rem; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -.4rem; }
.menu-toggle__bars::after { top: .4rem; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(.4rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-.4rem) rotate(-45deg); }

@media (max-width: 64rem) {
  .menu-toggle { display: inline-flex; }
  .nav {
    /* the header's backdrop-filter makes it the containing block, so size against the viewport explicitly */
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 2rem;
    padding: 2rem var(--gutter) 3rem;
    background: var(--linen);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-.75rem);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid rgba(185, 172, 156, .5); }
  .nav__link { display: block; padding: 1rem 0; font-family: var(--serif); font-weight: 300; font-size: 1.75rem; }
  .nav__link::after { display: none; }
  .nav__sub {
    position: static; min-width: 0; padding: 0 0 1rem; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__sub li:first-child { display: none; }
  .nav__sub a { padding: .5rem 0 .5rem 1rem; border-left: 1px solid var(--taupe); border-radius: 0; color: var(--ink-soft); }
  .nav__cta { align-self: flex-start; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--stone { background: var(--stone); }
.section--paper { background: var(--paper); }
.section--dusk { background: var(--dusk); color: var(--linen); }
.section--dusk h2, .section--dusk h3 { color: var(--linen); }
.section--dusk .lead, .section--dusk .muted { color: #D9D1C6; }
.section--dusk a:not(.btn) { color: var(--linen); }
.section--dusk :focus-visible { outline-color: var(--gold); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 44rem; }
.section-head p { color: var(--ink-soft); }
.section--dusk .section-head p { color: #D9D1C6; }

/* Soft threshold between sections: a curved lintel */
.lintel { position: relative; }
.lintel::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: clamp(2.5rem, 6vw, 5.5rem);
  transform: translateY(-99%);
  background: inherit;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

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

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid; align-items: center;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: italic; }
.hero .lead { max-width: 34rem; margin-top: 1.5rem; }
.hero__visual { position: relative; width: min(100%, 38rem); justify-self: end; aspect-ratio: 1; }

@media (max-width: 52rem) {
  .hero { min-height: 0; padding-top: 1.5rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(78vw, 24rem); justify-self: center; margin-bottom: .5rem; }
}

/* ---------- The ring (logo dots) ---------- */

.ring { width: 100%; height: auto; overflow: visible; --open: 0; }
.ring .dot { transform: translate(calc(var(--ox) * var(--open) * 90px), calc(var(--oy) * var(--open) * 90px)); }
.ring__glow { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .js .ring .dot__in { animation: assemble 2.4s var(--ease-out) var(--t) both; }
  .js .ring circle:not(.ring__glow) {
    transform-box: fill-box; transform-origin: center;
    animation: breathe 7s ease-in-out var(--b) infinite;
  }
  .js .ring__glow { animation: glow 7s ease-in-out infinite; }
  /* pause only the endless loops off screen; the one-off assembly always completes */
  .ring.is-paused circle, .cta-band__mark.is-paused { animation-play-state: paused; }
}
@keyframes assemble {
  from { transform: translate(var(--dx), var(--dy)) scale(.35); opacity: 0; }
  60% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.76); }
}
@keyframes glow {
  0%, 100% { transform: scale(.9); opacity: .7; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* ---------- Bodies strip ---------- */

.bodies { border-block: 1px solid rgba(185, 172, 156, .55); padding-block: 1.75rem; }
.bodies__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 2.5rem; }
.bodies__label { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.bodies__list { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; list-style: none; margin: 0; padding: 0; }
.bodies__list li { font-family: var(--serif); font-size: 1.35rem; color: var(--graphite); letter-spacing: .02em; }

/* ---------- Principles ---------- */

.principles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.principles__statement { position: sticky; top: calc(var(--header-h) + 2rem); }
.principles__statement p.big { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.25; color: var(--ink); max-width: 20ch; }
.principles__list { list-style: none; margin: 0; padding: 0; }
.principles__list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; padding-block: 2rem; border-top: 1px solid var(--taupe); }
.principles__list li:last-child { border-bottom: 1px solid var(--taupe); }
.principles__list h3 { margin-bottom: .4rem; }
.principles__list p { color: var(--ink-soft); }
.principle__glyph { width: 3rem; height: 3rem; }

@media (max-width: 52rem) {
  .principles { grid-template-columns: 1fr; }
  .principles__statement { position: static; }
}

/* ---------- Two column feature ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 52rem) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split__visual--first-mobile { order: -1; }
}

/* ---------- Ego state diagram (TA's Parent, Adult, Child) ---------- */

.ego { width: min(100%, 22rem); margin-inline: auto; }
.ego__circle { fill: none; stroke-width: 2.5; }
.ego__label { font-family: var(--serif); font-size: 30px; font-weight: 300; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.ego__note { font-family: var(--sans); font-size: 15px; fill: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .js .ego .ego__circle { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s var(--ease) calc(var(--i) * .35s); }
  .js .ego.is-in .ego__circle { stroke-dashoffset: 0; }
  .js .ego .ego__label, .js .ego .ego__note { opacity: 0; transition: opacity 1s var(--ease) calc(var(--i) * .35s + .9s); }
  .js .ego.is-in .ego__label, .js .ego.is-in .ego__note { opacity: 1; }
}

/* ---------- Arch (doorway) imagery ---------- */

.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px .75rem .75rem;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 50% 34%, rgba(233, 181, 33, .55), rgba(233, 181, 33, 0) 70%),
    linear-gradient(180deg, #EFE6D8 0%, var(--stone) 55%, #D8CCBD 100%);
  isolation: isolate;
}
.arch::after {
  /* the floor of light falling through the doorway */
  content: ""; position: absolute; left: 50%; bottom: -12%; width: 130%; height: 40%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(251, 248, 243, .9), rgba(251, 248, 243, 0) 70%);
  z-index: -1;
}
.arch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch--dusk {
  background:
    radial-gradient(55% 40% at 50% 32%, rgba(233, 181, 33, .5), rgba(233, 181, 33, 0) 70%),
    linear-gradient(180deg, #4A4744 0%, var(--dusk) 60%, var(--dusk-deep) 100%);
}
.arch--dusk::after { background: radial-gradient(50% 50% at 50% 50%, rgba(233, 181, 33, .18), rgba(233, 181, 33, 0) 70%); }

@media (prefers-reduced-motion: no-preference) {
  .js .arch .drift { animation: drift 14s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .js .arch .drift:nth-child(2n) { animation-duration: 18s; animation-delay: -6s; }
  .js .arch .drift:nth-child(3n) { animation-duration: 22s; animation-delay: -11s; }
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(6px, -14px); }
}

/* ---------- Route (progression graphic) ---------- */

.route { --node: 1.25rem; }
.route__list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.route__list::before {
  content: ""; position: absolute; left: calc(12.5% - .6rem); right: calc(12.5% - .6rem); top: calc(var(--node) / 2 - 1px);
  height: 2px; background: linear-gradient(90deg, var(--gold), var(--taupe));
  transform-origin: left center;
}
.route__stage { position: relative; display: flex; flex-direction: column; align-items: stretch; }
.route__node {
  align-self: center;
  width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--gold); border: 2px solid var(--gold);
  box-shadow: 0 0 0 .4rem rgba(233, 181, 33, .2);
  position: relative; z-index: 1;
}
.route__card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-top: 1.5rem; padding: 3.75rem 1.5rem 2rem;
  min-height: 17rem;
  background: var(--paper);
  border: 1px solid rgba(185, 172, 156, .55);
  border-radius: 999px 999px .75rem .75rem;
  text-decoration: none; color: var(--ink);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .5s var(--ease);
}
.route__card:hover { color: var(--ink); border-color: var(--gold); background: #FFFDF8; transform: translateY(-3px); }
.route__step { font-size: .9rem; color: var(--gold-text); font-weight: 500; }
.route__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin: .5rem 0 .75rem; }
.route__desc { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }

.route__exit {
  position: relative; margin-top: 2.25rem; padding: 1.25rem 1.25rem 1.35rem;
  border-radius: .75rem; text-align: center;
  display: flex; flex-direction: column; gap: .2rem;
  flex: 1;
}
.route__exit::before {
  content: ""; position: absolute; left: 50%; top: -2.25rem; height: 2.25rem; width: 0;
  border-left: 2px dashed var(--taupe);
}
.route__exit--member { background: var(--stone); color: var(--ink); }
.route__exit--register { background: var(--dusk); color: var(--linen); }
.route__exit-kind { font-size: .8rem; opacity: .75; }
.route__exit-name { font-family: var(--serif); font-size: 1.2rem; }
.route__exit-body { font-size: .9rem; line-height: 1.45; }
.section--stone .route__exit--member { background: var(--linen); }

/* Stage 4 forks into two routes */
.route__fork { position: relative; margin-top: 2.25rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.route__fork::before {
  content: ""; position: absolute; left: 50%; top: -2.25rem; height: 2.25rem; width: 0;
  border-left: 2px dashed var(--taupe);
}
.route__fork-label { font-size: .8rem; color: var(--ink-soft); text-align: center; }
.route__fork .route__exit { margin-top: 0; flex: none; text-decoration: none; padding: 1rem 1.1rem 1.1rem; }
.route__fork .route__exit::before { display: none; }
/* the whole box is clickable (stretched link), but glossary terms inside stay tappable */
.route__exit--link { color: var(--linen); border: 1px solid transparent; }
.route__exit--link:hover, .route__exit--link:focus-within { border-color: var(--gold); background: var(--dusk-deep); }
.route__exit--link .route__exit-name { color: var(--linen); text-decoration: underline; text-decoration-color: rgba(233, 181, 33, .6); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.route__exit--link .route__exit-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.route__exit--link .route__exit-name:focus-visible { outline: none; }
.route__exit--link:has(.route__exit-name:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.route__exit--link .term { position: relative; z-index: 1; }
.route__note { margin: 1rem 0 0; max-width: 46rem; }

/* Status note, e.g. RTE application in progress */
.note { padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 .6rem .6rem 0; font-size: .97rem; color: var(--ink); }

.route__key { display: flex; flex-wrap: wrap; gap: .75rem 2rem; list-style: none; margin: 2rem 0 0; padding: 0; font-size: .92rem; color: var(--ink-soft); }
.route__key li { display: inline-flex; align-items: center; gap: .6rem; }
.route__swatch { width: 1rem; height: 1rem; border-radius: .25rem; }
.route__swatch--member { background: var(--stone); outline: 1px solid var(--taupe); }
.section--stone .route__swatch--member { background: var(--linen); }
.route__swatch--register { background: var(--dusk); }

@media (prefers-reduced-motion: no-preference) {
  .js .route__list::before { transform: scaleX(0); transition: transform 2s var(--ease) .2s; }
  .js .route.is-in .route__list::before { transform: none; }
  .js .route__node { background: var(--linen); border-color: var(--taupe); box-shadow: 0 0 0 0 rgba(233, 181, 33, 0); transition: all .7s var(--ease) calc(var(--i) * .45s + .35s); }
  .js .route.is-in .route__node { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 .4rem rgba(233, 181, 33, .2); }
  .js .route__card, .js .route__exit { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) calc(var(--i) * .45s + .45s), transform .9s var(--ease) calc(var(--i) * .45s + .45s), border-color .4s var(--ease), background-color .4s var(--ease); }
  .js .route__exit, .js .route__fork-label { transition-delay: calc(var(--i) * .45s + .8s); }
  .js .route__fork-label { opacity: 0; transition-property: opacity; transition-duration: .9s; }
  .js .route__fork .route__exit + .route__exit { transition-delay: calc(var(--i) * .45s + 1.1s); }
  .js .route.is-in .route__card, .js .route.is-in .route__exit, .js .route.is-in .route__fork-label { opacity: 1; transform: none; }
  .js .route.is-in .route__card:hover { transform: translateY(-3px); transition-delay: 0s; }
}

@media (max-width: 60rem) {
  .route__list { grid-template-columns: 1fr; gap: 2.5rem; padding-left: 2.5rem; }
  .route__list::before { left: calc(var(--node) / 2 - 1px); right: auto; top: .5rem; bottom: .5rem; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), var(--taupe)); transform-origin: center top; }
  .js .route__list::before { transform: scaleY(0); }
  .route__node { position: absolute; left: -2.5rem; top: 1.25rem; }
  .route__card { margin-top: 0; min-height: 0; padding: 1.5rem 1.5rem 1.6rem; border-radius: 1rem; align-items: flex-start; text-align: left; }
  .route__exit { margin: 0 0 0 1.5rem; padding: 1rem 1.25rem; text-align: left; border-radius: 0 0 .75rem .75rem; }
  .route__exit::before { display: none; }
  .route__fork { margin: 0 0 0 1.5rem; flex: none; }
  .route__fork::before { display: none; }
  .route__fork-label { text-align: left; }
  .route__fork .route__exit { margin: 0; border-radius: .75rem; }
}

/* ---------- Learning modes ---------- */

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.mode { padding-top: 1.75rem; border-top: 2px solid var(--gold); }
.mode--quiet { border-top-color: var(--taupe); }
.mode h3 { margin-bottom: .6rem; }
.mode p { color: var(--ink-soft); }
@media (max-width: 44rem) { .modes { grid-template-columns: 1fr; } }

/* ---------- Faculty ---------- */

.faculty { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.person__portrait { aspect-ratio: 4 / 5; margin-bottom: 1.25rem; }
.person__name { font-family: var(--serif); font-size: 1.45rem; margin: 0; line-height: 1.2; }
.person__role { color: var(--gold-text); font-weight: 500; font-size: .95rem; margin: .3rem 0 .75rem; }
.person__bio { color: var(--ink-soft); font-size: .98rem; }
.person__portrait--photo { background: var(--stone); }
.person__portrait--photo::after { display: none; }
.person__portrait--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a11y-calm .person__portrait--photo { filter: none; }
.person__pronouns { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--ink-soft); letter-spacing: .01em; white-space: nowrap; }
.person__post { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); letter-spacing: .01em; white-space: nowrap; }
.person__quals { font-size: .95rem; color: var(--ink); margin: -.4rem 0 .9rem; }

.faculty--pair { grid-template-columns: repeat(auto-fill, minmax(15rem, 22rem)); }
.faculty--full { grid-template-columns: 1fr; gap: 0; }
.faculty--full .person {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--taupe);
}
.faculty--full .person:last-child { border-bottom: 1px solid var(--taupe); }
.faculty--full .person__portrait { margin: 0; }
@media (max-width: 40rem) {
  .faculty--full .person { grid-template-columns: 1fr; }
  .faculty--full .person__portrait { width: 10rem; }
}

/* ---------- Page heroes (inner pages) ---------- */

.page-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 38rem; }
.page-hero__visual { width: min(100%, 22rem); justify-self: end; }
.crumbs { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-soft); }
@media (max-width: 52rem) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__visual { display: none; }
}

/* stage indicator on course pages */
.stage { display: flex; align-items: center; gap: .85rem; font-size: .95rem; color: var(--ink-soft); margin: 0 0 1.25rem; }
.stage__dots { display: inline-flex; gap: .4rem; }
.stage__dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--silver); }
.stage__dot.is-lit { background: var(--graphite); }
.stage__dot.is-here { background: var(--gold); box-shadow: 0 0 0 .25rem rgba(233, 181, 33, .25); }

/* ---------- Course page parts ---------- */

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0 1.5rem; margin: 0;
  border-top: 1px solid var(--taupe);
}
.facts div { padding: 1.25rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--taupe); }
.facts dt { font-size: .9rem; color: var(--ink-soft); margin-bottom: .3rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }

.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.25rem; max-width: 62ch; }
.prose li { margin-bottom: .55rem; padding-left: .3rem; }
.prose li::marker { color: var(--gold); }

/* Syllabus: each module with its topics as small tags */
.syllabus { display: grid; gap: 1rem; margin: 1.25rem 0 1.75rem; }
.syllabus__module {
  padding: 1.15rem 1.25rem 1.25rem; background: var(--paper);
  border: 1px solid rgba(185, 172, 156, .55); border-left: 3px solid var(--gold); border-radius: 0 .75rem .75rem 0;
}
.prose .syllabus__module :is(h3, h4) {
  margin: 0 0 .7rem; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.3; letter-spacing: 0;
}
.prose .syllabus__topics { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; max-width: none; }
.prose .syllabus__topics li {
  margin: 0; padding: .3rem .75rem; font-size: .9rem; line-height: 1.35;
  background: var(--linen); border: 1px solid var(--stone); border-radius: 999px;
}
.prose .syllabus__topics li::marker { content: none; }
.a11y-contrast .syllabus__module { border: 2px solid var(--ink); border-left: 5px solid var(--gold); }
.a11y-contrast .prose .syllabus__topics li { border-color: var(--ink); background: var(--paper); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.aside {
  position: sticky; top: calc(var(--header-h) + 2rem);
  background: var(--paper); border: 1px solid rgba(185, 172, 156, .55);
  border-radius: 1rem; padding: 1.75rem;
}
.aside h2 { font-size: 1.6rem; }
.aside .btn { width: 100%; margin-top: 1.25rem; }
.aside__exit { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--stone); font-size: .95rem; color: var(--ink-soft); }
.aside__exit strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--ink); margin-bottom: .25rem; }
@media (max-width: 56rem) {
  .content-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}

.course-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.course-nav a {
  display: block; padding: 1.5rem 1.75rem; border-radius: 1rem; text-decoration: none;
  background: var(--paper); border: 1px solid rgba(185, 172, 156, .55);
  transition: border-color .3s var(--ease);
}
.course-nav a:hover { border-color: var(--gold); color: var(--ink); }
.course-nav span { display: block; font-size: .9rem; color: var(--ink-soft); }
.course-nav strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.course-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 40rem) {
  .course-nav { grid-template-columns: 1fr; }
  .course-nav .next { grid-column: auto; text-align: left; }
}

/* ---------- Steps (admissions) ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.35rem;
  border: 1px solid var(--graphite);
}
.steps li:first-child::before { background: var(--gold); border-color: var(--gold); }
.steps li::after { content: ""; position: absolute; top: 1.5rem; left: 3.75rem; right: -1rem; height: 1px; background: var(--taupe); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.steps p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 56rem) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: .98rem; }
.table th, .table td { text-align: left; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--taupe); vertical-align: top; }
.table thead th { font-weight: 500; color: var(--ink-soft); font-size: .9rem; border-bottom-color: var(--graphite); }
.table tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }

/* phones: each row becomes a small stacked card */
@media (max-width: 40rem) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; min-width: 0; }
  .table { min-width: 0; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { padding: 1.25rem 0; border-bottom: 1px solid var(--taupe); }
  .table tr:first-child { border-top: 1px solid var(--graphite); }
  .table th, .table td { border: 0; padding: .2rem 0; }
  .table tbody th { font-size: 1.3rem; margin-bottom: .35rem; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: .82rem; color: var(--ink-soft); margin-top: .5rem; }
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--taupe); }
.faq details { border-bottom: 1px solid var(--taupe); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .75rem; height: .75rem;
  border-right: 1.5px solid var(--graphite); border-bottom: 1.5px solid var(--graphite);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details > div { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Events and CPD ---------- */

.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.kinds__title { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); margin-bottom: .6rem; }

.events { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--taupe); }
.event {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: center; padding: clamp(1.5rem, 3vw, 2rem) 0; border-top: 1px solid var(--taupe);
}
.event__date {
  margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; padding-top: .6rem;
  background: var(--paper); border: 1px solid rgba(185, 172, 156, .7);
  border-radius: 999px 999px .6rem .6rem; text-align: center;
}
.event__day { font-family: var(--serif); font-size: 1.85rem; line-height: 1; }
.event__month { font-size: .85rem; color: var(--gold-text); font-weight: 500; margin-top: .25rem; }
.event__kind { margin: 0 0 .3rem; font-size: .9rem; color: var(--gold-text); font-weight: 500; }
.event__title { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin: 0 0 .4rem; }
.event__desc { margin: 0; color: var(--ink-soft); max-width: 40rem; }
.event__action { white-space: nowrap; }

.events-signup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.events-signup h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); margin-bottom: .4rem; }
.events-signup p { margin: 0; }

@media (max-width: 52rem) {
  .kinds { grid-template-columns: 1fr; }
  .event { grid-template-columns: 4.5rem minmax(0, 1fr); align-items: start; }
  .event__action { grid-column: 2; justify-self: start; }
  .event__day { font-size: 1.5rem; }
}

/* ---------- Contact ---------- */

.contact-card { background: var(--paper); border: 1px solid rgba(185, 172, 156, .55); border-radius: 1.25rem; padding: clamp(1.75rem, 4vw, 3rem); }
.contact-card__email { font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1.6vw, 2.1rem); word-break: break-word; line-height: 1.2; }

/* ---------- CTA band ---------- */

.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { position: relative; z-index: 1; }
.cta-band h2 { max-width: 14ch; }
.cta-band p { color: #D9D1C6; max-width: 38rem; }
.cta-band__ring { position: absolute; right: -14rem; top: 50%; width: 38rem; transform: translateY(-50%); opacity: .5; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .cta-band__mark { animation: turn 120s linear infinite; }
}
@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 44rem) {
  .cta-band__ring { right: -16rem; width: 26rem; top: 2rem; transform: none; opacity: .3; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--dusk-deep); color: #D9D1C6; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; font-size: .95rem; }
.site-footer a { color: var(--linen); text-decoration-color: rgba(233, 181, 33, .7); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer :focus-visible { outline-color: var(--gold); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 2.5rem; }
.site-footer__intro p { margin-top: 1.25rem; max-width: 30rem; }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--gold-soft); letter-spacing: 0; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer__base { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(217, 209, 198, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-size: .88rem; }
.site-footer__base p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (max-width: 52rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__intro { grid-column: 1 / -1; } }
@media (max-width: 34rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal (used sparingly) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* hero copy arrives after the ring begins to gather */
  .js .hero__copy > * { animation: rise 1.2s var(--ease-out) both; }
  .js .hero__copy > :nth-child(1) { animation-delay: .5s; }
  .js .hero__copy > :nth-child(2) { animation-delay: .75s; }
  .js .hero__copy > :nth-child(3) { animation-delay: 1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mt-l { margin-top: clamp(2.5rem, 5vw, 4rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Reading options panel ---------- */

.a11y { position: fixed; right: clamp(.9rem, 2.5vw, 1.5rem); bottom: clamp(.9rem, 2.5vw, 1.5rem); z-index: 60; }
.no-js .a11y { display: none; }
.a11y__toggle {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; padding: 0;
  border-radius: 50%; border: 2px solid var(--gold); cursor: pointer;
  background: var(--dusk); color: var(--linen);
  box-shadow: 0 .75rem 1.75rem -.75rem rgba(47, 45, 44, .6);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.a11y__toggle svg { width: 1.6rem; height: 1.6rem; }
.a11y__toggle:hover, .a11y__toggle[aria-expanded="true"] { background: var(--dusk-deep); transform: translateY(-2px); }
.a11y__toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 50%; }

.a11y__panel {
  position: absolute; right: 0; bottom: calc(100% + .85rem);
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid rgba(185, 172, 156, .7); border-radius: 1.25rem;
  box-shadow: 0 1.5rem 3rem -1.25rem rgba(47, 45, 44, .45);
}
@media (prefers-reduced-motion: no-preference) {
  .a11y__panel:not([hidden]) { animation: rise .35s var(--ease-out); }
}
.a11y__panel { max-height: calc(100vh - var(--header-h) - 6rem); max-height: calc(100dvh - var(--header-h) - 6rem); overflow-y: auto; overscroll-behavior: contain; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.a11y .a11y__title { font-size: 1.5rem; margin-bottom: .35rem; }
.a11y__close {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; flex: none;
  border: 1px solid var(--taupe); border-radius: 50%; background: none; cursor: pointer;
  font-size: 1.35rem; line-height: 1; color: var(--ink);
}
.a11y__close:hover { border-color: var(--ink); }
.a11y__group { margin-top: .75rem; }
.a11y .a11y__group-title {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-text); margin: 0 0 .1rem; padding-top: .6rem;
}
.a11y__group .a11y__row:first-of-type { border-top: 0; padding-top: .5rem; }

.sizes { display: inline-flex; border: 2px solid var(--graphite); border-radius: 999px; overflow: hidden; flex: none; }
.sizes__btn {
  display: grid; place-items: center; width: 2.6rem; height: 2.1rem; padding: 0;
  border: 0; background: none; cursor: pointer; color: var(--ink);
  font-family: var(--sans); font-weight: 600; line-height: 1;
}
.sizes__btn + .sizes__btn { border-left: 1px solid var(--taupe); }
.sizes__btn[aria-pressed="true"] { background: var(--gold); }
.sizes__btn:focus-visible { outline-offset: -4px; }

.listen { display: inline-flex; gap: .4rem; flex: none; }
.listen__btn {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
  border: 2px solid var(--graphite); border-radius: 50%; background: none; cursor: pointer; color: var(--ink);
}
.listen__btn svg { width: 1.1rem; height: 1.1rem; }
.listen__btn:first-child { background: var(--gold); border-color: var(--ink); }
.listen__btn:disabled { opacity: .35; cursor: default; }
.listen__pause { display: none; }
.listen__btn.is-playing .listen__play { display: none; }
.listen__btn.is-playing .listen__pause { display: inline; }
.is-speaking { background: rgba(233, 181, 33, .2); box-shadow: 0 0 0 .35rem rgba(233, 181, 33, .2); border-radius: .25rem; }

/* Explain key terms */
.term {
  display: inline; padding: 0; margin: 0; border: 0; background: none; cursor: help;
  font: inherit; color: inherit; letter-spacing: inherit;
  text-decoration: underline dotted; text-decoration-color: var(--gold-text);
  text-decoration-thickness: 1.5px; text-underline-offset: .22em;
}
.term:hover, .term[aria-expanded="true"] { color: var(--gold-text); text-decoration-style: solid; }
:is(.section--dusk, .route__exit--register, .site-footer) .term { text-decoration-color: var(--gold); }
:is(.section--dusk, .route__exit--register, .site-footer) .term:hover,
:is(.section--dusk, .route__exit--register, .site-footer) .term[aria-expanded="true"] { color: var(--gold-soft); }
.a11y-noglossary .term { cursor: inherit; text-decoration: none; pointer-events: none; }
.term-pop {
  position: fixed; z-index: 70; width: min(20rem, calc(100vw - 1.5rem));
  padding: .9rem 1.1rem; border-radius: .9rem;
  background: var(--dusk); color: var(--linen); font-size: .92rem; line-height: 1.5;
  box-shadow: 0 1rem 2rem -1rem rgba(47, 45, 44, .6);
}
.term-pop strong { display: block; color: var(--gold-soft); font-weight: 600; margin-bottom: .2rem; }
.term-pop p { margin: 0; max-width: none; }
.term-pop__link {
  display: inline-block; margin-top: .6rem; color: var(--linen); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: .22em;
}
.term-pop__link:hover { color: var(--gold-soft); }
.term-pop :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Reading ruler */
.ruler { display: none; }
.a11y-ruler .ruler {
  display: block; position: fixed; left: 0; top: 0; z-index: 55; width: 100%; height: 3.2em;
  pointer-events: none;
  background: rgba(233, 181, 33, .08);
  border-block: 2px solid rgba(233, 181, 33, .75);
  box-shadow: 0 0 0 100vmax rgba(28, 26, 24, .16);
}
.a11y__intro { font-size: .9rem; color: var(--ink-soft); margin-bottom: .75rem; }
.a11y__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--stone); }
.a11y__label { margin: 0; font-weight: 500; line-height: 1.3; }
.a11y__hint { margin: .15rem 0 0; font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }
.a11y__reset {
  margin-top: .5rem; padding: .4rem 0; background: none; border: 0; cursor: pointer;
  font: 500 .9rem var(--sans); color: var(--ink-soft);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em;
}
.a11y__reset:hover { color: var(--ink); }

.switch {
  position: relative; flex: none; width: 3.25rem; height: 1.9rem; padding: 0;
  border-radius: 999px; border: 2px solid var(--graphite); background: var(--stone); cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.switch__thumb {
  position: absolute; top: 50%; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--graphite); transform: translateY(-50%);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.switch[aria-checked="true"] { background: var(--gold); border-color: var(--ink); }
.switch[aria-checked="true"] .switch__thumb { background: var(--ink); transform: translate(1.3rem, -50%); }

.site-footer__a11y {
  padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--linen);
  text-decoration: underline; text-decoration-color: rgba(233, 181, 33, .7); text-underline-offset: .22em;
}
.site-footer__a11y:hover { color: var(--gold-soft); }
.site-footer { padding-bottom: 5.5rem; }

/* ---------- Dyslexia-friendly text ----------
   One rounded, open sans-serif (Lexend) for everything, more space between
   letters, words and lines, no italics, and slightly smaller display sizes so
   long headings don't break awkwardly. */

html.a11y-dyslexic {
  --serif: "Lexend", Verdana, Tahoma, sans-serif;
  --sans: "Lexend", Verdana, Tahoma, sans-serif;
}
.a11y-dyslexic body { letter-spacing: .03em; word-spacing: .12em; line-height: 1.85; }
.a11y-dyslexic :is(h1, h2, h3, h4) { font-weight: 400; letter-spacing: 0; line-height: 1.25; }
.a11y-dyslexic h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.75rem); }
.a11y-dyslexic h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
.a11y-dyslexic :is(em, i) { font-style: normal; }
.a11y-dyslexic .hero h1 em { font-style: normal; color: var(--gold-text); }
.a11y-dyslexic :is(p, li, dd) { text-align: left; }
.a11y-dyslexic .nav__link { font-weight: 400; }
@media (min-width: 64.01rem) and (max-width: 82rem) {
  /* Lexend is wider than Jost: tighten the desktop menu so it stays on one line */
  .a11y-dyslexic .nav { gap: 1.25rem; }
  .a11y-dyslexic .nav__list { gap: 1rem; }
  .a11y-dyslexic .nav__link { font-size: .9rem; letter-spacing: .01em; word-spacing: .04em; white-space: nowrap; }
  .a11y-dyslexic .nav__cta { padding-inline: 1.15rem; white-space: nowrap; }
  .a11y-dyslexic .brand__name { font-size: 1.05rem; }
}

/* ---------- Text size ---------- */

html.a11y-text-l { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }
/* long words (Psychotherapeutic, email addresses) may break rather than push the page sideways */
:is(.a11y-text-l, .a11y-text-xl, .a11y-dyslexic) :is(h1, h2, h3, .route__name, .contact-card__email, .site-footer a, a[href^="mailto:"], .facts dd, .table th) {
  overflow-wrap: anywhere; hyphens: auto;
}
:is(.a11y-text-l, .a11y-text-xl) .page-hero__grid > *, :is(.a11y-text-l, .a11y-text-xl) .route__stage { min-width: 0; }

/* keep the desktop menu at its normal size so it still fits on one line */
@media (min-width: 64.01rem) {
  :is(.a11y-text-l, .a11y-text-xl) .nav { gap: 22px; }
  :is(.a11y-text-l, .a11y-text-xl) .nav__list { gap: 22px; }
  :is(.a11y-text-l, .a11y-text-xl) .nav__link { font-size: 15px; }
  :is(.a11y-text-l, .a11y-text-xl) .nav__cta { font-size: 15px; min-height: 44px; padding: 10px 20px; }
  :is(.a11y-text-l, .a11y-text-xl) .nav__sub a { font-size: 15px; }
  :is(.a11y-text-l, .a11y-text-xl) .brand__mark { width: 40px; height: 40px; }
  :is(.a11y-text-l, .a11y-text-xl) .brand__name { font-size: 17px; }
  :is(.a11y-text-l, .a11y-text-xl) .brand__sub { font-size: 12px; }
  :is(.a11y-text-l, .a11y-text-xl).a11y-dyslexic .nav__link { font-size: 14px; letter-spacing: .01em; word-spacing: .04em; }
  :is(.a11y-text-l, .a11y-text-xl).a11y-dyslexic :is(.nav__list, .nav) { gap: 16px; }
}

/* ---------- Shorter lines ---------- */

.a11y-narrow :is(p, li, dd, .lead, .faq details > div, .event__desc) { max-width: 52ch; }
.a11y-narrow .prose ul { max-width: 52ch; }

/* ---------- Pause animations ---------- */

.a11y-still *, .a11y-still *::before, .a11y-still *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-still { scroll-behavior: auto; }

/* ---------- Calm colours ----------
   Lower saturation and softer contrast (still AA for text), the gold muted
   to ochre, and imagery desaturated. The opposite of high contrast. */

html.a11y-calm {
  --gold: #CDB06A;
  --gold-soft: #E4D6B0;
  --gold-text: #6B5A2E;
  --graphite: #5C5B60;
  --silver: #C6C4C1;
  --ink: #3B393E;
  --ink-soft: #5F5C60;
  --paper: #F7F5F1;
  --linen: #F0EDE8;
  --stone: #E3DED7;
  --taupe: #BEB6AC;
  --dusk: #4A484B;
  --dusk-deep: #403E41;
}
.a11y-calm :is(.ring, .arch, .brand__mark, .cta-band__ring, .cta-band__mark, .ego, .principle__glyph) { filter: saturate(.5) brightness(1.03); }
.a11y-calm .is-speaking { background: rgba(205, 176, 106, .2); box-shadow: 0 0 0 .35rem rgba(205, 176, 106, .2); }

/* ---------- High contrast ----------
   Same layout and character, redrawn in near-black ink on clean paper with
   solid lines, deeper gold text and underlined links. Gold stays as the accent. */

html.a11y-contrast {
  --ink: #0E0D0F;
  --ink-soft: #1F1E22;
  --paper: #FFFFFF;
  --linen: #FFFCF6;
  --stone: #F1EADF;
  --taupe: #0E0D0F;
  --graphite: #0E0D0F;
  --dusk: #0E0D0F;
  --dusk-deep: #000000;
  --gold-text: #5A4204;
  --silver: #6B6B6B;
}
.a11y-contrast .site-header { background: var(--linen); border-bottom: 2px solid var(--ink); }
.a11y-contrast :is(.section--dusk .lead, .section--dusk .muted, .section--dusk .section-head p, .cta-band p, .site-footer) { color: #FFFFFF; }
.a11y-contrast .site-footer__base { border-top-color: rgba(255, 255, 255, .6); }
.a11y-contrast :is(.bodies, .route__card, .route__exit--member, .aside, .course-nav a, .contact-card, .event__date, .nav__sub, .a11y__panel) { border: 2px solid var(--ink); }
.a11y-contrast .bodies { border-inline: 0; }
.a11y-contrast :is(.aside__exit, .a11y__row) { border-top: 1px solid var(--ink); }
.a11y-contrast .note { border-left-width: 6px; border: 2px solid var(--ink); border-left: 6px solid var(--gold); }
.a11y-contrast .btn--gold { border: 2px solid var(--ink); }
.a11y-contrast .btn--line { border-width: 2px; }
.a11y-contrast a:not(.btn):not(.brand):not(.nav__link):not(.route__card):not(.course-nav a) { text-decoration-line: underline; text-decoration-thickness: 2px; }
.a11y-contrast .nav__sub a, .a11y-contrast .site-footer li a { text-decoration: underline; text-decoration-thickness: 1.5px; }
.a11y-contrast :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--gold); }
.a11y-contrast :is(.section--dusk, .cta-band, .site-footer) :focus-visible { outline-color: #FFFFFF; }
.a11y-contrast .tbc { background: #FFF1C2; border-bottom: 2px dashed var(--ink); }
.a11y-contrast .lead, .a11y-contrast .muted { color: var(--ink-soft); }
.a11y-contrast .route__exit--register { color: #FFFFFF; }
.a11y-contrast .route__exit--link:hover { border-color: var(--gold); }
.a11y-contrast .a11y__toggle { background: #000; border-width: 3px; }
.a11y-contrast .term { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.a11y-contrast .term-pop { background: #000; border: 2px solid var(--gold); }
.a11y-contrast .is-speaking { background: #FFF1C2; box-shadow: 0 0 0 .35rem #FFF1C2; outline: 2px solid var(--ink); }
.a11y-contrast .ruler { background: rgba(255, 241, 194, .25); border-color: var(--ink); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
.a11y-contrast :is(.sizes, .listen__btn) { border-color: var(--ink); }

@media print {
  .site-header, .cta-band, .site-footer, .a11y { display: none; }
  body { background: #fff; }
}
