/* BEDLAM Medical Training · "Clean Room" (docs/redesign/v7-clean-room.html).
   White and warm grey, ink #111110, one signal red used sparingly. Instrument Sans throughout.
   Layers: base -> layout -> components -> utilities -> motion. Motion only animates transform/opacity (plus clip-path
   for image reveals) and is off under prefers-reduced-motion. */
@layer base, layout, components, utilities, motion;

/* Self-hosted (Google Fonts' latin subset, OFL): no render-blocking cross-origin stylesheet, preloaded by base.html.
   One variable file covers weights 400-700 and widths 75-100%. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.2cfc58cc232f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF; --bg2: #F4F4F2; --bg3: #ECECE9;
  --ink: #111110; --ink2: #565653; --ink3: #696963; --line: #E6E6E2; --line2: #CFCFCA;
  --accent: #C8231B; --accent-hover: #A91C15; --ok: #2F8A55; --warn: #9A5B00;
  --r-s: 12px; --r: 20px; --r-l: 28px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --sh1: 0 0 0 1px rgba(17,17,16,.04), 0 1px 2px rgba(17,17,16,.04), 0 4px 12px rgba(17,17,16,.04);
  --sh2: 0 0 0 1px rgba(17,17,16,.04), 0 2px 4px rgba(17,17,16,.04), 0 12px 32px rgba(17,17,16,.07), 0 32px 64px -24px rgba(17,17,16,.10);
  --sh3: 0 0 0 1px rgba(17,17,16,.06), 0 24px 64px -12px rgba(17,17,16,.25);
  --ease: cubic-bezier(.2,.7,.1,1); --spring: cubic-bezier(.34,1.4,.5,1);
  --w: 1280px; --g: clamp(16px, 4vw, 48px); --header-h: 72px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
  body { margin: 0; font: 400 17px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
  a[href^="tel:"] { white-space: nowrap; }
  button, input, select, textarea { font: inherit; color: inherit; }
  h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
  h1 { font-size: clamp(44px, 7.6vw, 112px); letter-spacing: -.05em; line-height: .95; }
  h2 { font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -.045em; }
  h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.02em; }
  p { margin: 0; }
  ul, ol, dl { margin: 0; padding: 0; }
  ::selection { background: var(--ink); color: #fff; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
}

@layer layout {
  .wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--g); }
  .wrap--narrow { max-width: 860px; }
  .section { padding-block: clamp(64px, 9vw, var(--s10)); position: relative; }
  .section--tight { padding-block: clamp(48px, 6vw, var(--s8)); }
  .section--flush { padding-top: 0; }
  .section--grey { background: var(--bg2); }
  .sec__hd { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s6); margin-bottom: var(--s7); flex-wrap: wrap; }
  .sec__hd h2 { margin-top: var(--s4); max-width: 14ch; }
  .sec__hd > p { color: var(--ink2); max-width: 36ch; }
  .split { display: grid; gap: clamp(32px, 6vw, 96px); align-items: start; }
  @media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--text-wide { grid-template-columns: minmax(0, 1fr) 380px; }
    .split--photo { grid-template-columns: 5fr 6fr; align-items: center; }
    .split--portrait { grid-template-columns: 5fr 6fr; align-items: center; }
  }
  .skip { position: absolute; left: -999px; top: 0; }
  .skip:focus { left: 16px; top: 16px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; z-index: 100; box-shadow: var(--sh2); }
}

@layer components {
  /* type helpers */
  .kick { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink2); display: flex; align-items: center; gap: 10px; margin: 0; }
  .kick::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
  .lede, .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink2); max-width: 40ch; }
  .muted, .meta, .role { color: var(--ink2); }
  .prose { max-width: 72ch; }
  .prose h1 { font-size: clamp(40px, 6vw, 80px); margin-bottom: var(--s6); }
  .prose h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; margin: var(--s7) 0 var(--s3); }
  .prose p, .prose li { color: var(--ink2); }
  .prose p + p { margin-top: var(--s4); }
  .prose a { color: var(--ink); }
  .copy > * + * { margin-top: var(--s4); }
  .copy h2 { margin-top: var(--s7); font-size: clamp(26px, 3vw, 40px); }
  .copy p { color: var(--ink2); max-width: 62ch; }
  .copy p.lead { color: var(--ink); font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.01em; max-width: 46ch; }
  .copy strong { color: var(--ink); }
  .text-link { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line2); padding-bottom: 1px; transition: border-color .25s; }
  .text-link:hover { border-color: var(--ink); }
  .text-link::after { content: " →"; display: inline-block; transition: transform .4s var(--ease); }
  .text-link:hover::after { transform: translateX(3px); }

  /* buttons: pills */
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
    background: var(--ink); color: #fff; font: 500 15px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; position: relative; isolation: isolate; overflow: hidden;
    transition: transform .4s var(--ease), background-color .25s, color .25s, box-shadow .4s var(--ease); }
  .button:hover { background: #2a2a28; color: #fff; }
  .button:active { transform: scale(.97); }
  .button--outline, .button--ghost { background: var(--bg2); color: var(--ink); }
  .button--outline:hover, .button--ghost:hover { background: var(--bg3); color: var(--ink); }
  .button--accent { background: var(--accent); }
  .button--accent:hover { background: var(--accent-hover); }
  .button--light { background: #fff; color: var(--ink); }
  .button--light:hover { background: var(--bg2); color: var(--ink); }
  .button--glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .button--glass:hover { background: rgba(255,255,255,.26); color: #fff; }
  .button--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .button[disabled], .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
  .button .arr { transition: transform .4s var(--ease); }
  .button:hover .arr { transform: translateX(3px); }
  .button.is-busy { pointer-events: none; opacity: .85; }
  .button.is-busy::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
  .btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s6); }
  .ibtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg2); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background-color .2s, transform .3s var(--ease); }
  .ibtn:hover { background: var(--bg3); }
  .ibtn:active { transform: scale(.94); }

  /* scroll progress */
  .progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: var(--accent); }

  /* header */
  .site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; view-transition-name: site-header; }
  .site-header.is-scrolled { border-bottom-color: var(--line); }
  .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); height: var(--header-h); }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
  .brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: var(--sh1); transition: transform .6s var(--spring); }
  .brand:hover img { transform: rotate(-12deg) scale(1.06); }
  .brand__name { font-weight: 600; letter-spacing: .14em; font-size: 15px; display: flex; align-items: baseline; gap: 10px; }
  .brand__name small { font-weight: 400; letter-spacing: 0; color: var(--ink3); font-size: 13px; }
  .nav-toggle { display: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--bg2); font-size: 14px; font-weight: 500; cursor: pointer; align-items: center; gap: 10px; }
  .nav-toggle i { position: relative; width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: background-color .2s; }
  .nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
  .nav-toggle i::before { top: -4.5px; } .nav-toggle i::after { top: 4.5px; }
  .nav-toggle[aria-expanded="true"] i { background: transparent; }
  .nav-toggle[aria-expanded="true"] i::before { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i::after { transform: translateY(-4.5px) rotate(-45deg); }
  .site-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
  .site-nav a, .sub-toggle { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--ink2); text-decoration: none; font-size: 15px; background: none; border: 0; cursor: pointer; transition: color .2s, background-color .2s; }
  .site-nav a:hover, .sub-toggle:hover { color: var(--ink); background: var(--bg2); }
  .site-nav a[aria-current="page"] { color: var(--ink); }
  .site-nav > ul > li > a[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
  .sub-toggle::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
  .has-sub { position: relative; }
  .sub { list-style: none; position: absolute; left: -8px; top: calc(100% + 8px); min-width: 280px; padding: 8px; background: #fff; border-radius: var(--r); box-shadow: var(--sh3);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: 20% 0; transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
  .sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
  .sub a { border-radius: var(--r-s); padding: 10px 14px; color: var(--ink); }
  .sub a[aria-current="page"] { background: var(--bg2); }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-sub:hover > .sub-toggle::after, .has-sub.open > .sub-toggle::after { transform: rotate(225deg) translate(-2px, 0); }
  .nav-cta a, .site-nav .nav-cta a { background: var(--ink); color: #fff; padding: 0 18px; height: 40px; margin-left: 8px; font-weight: 500; }
  .site-nav .nav-cta a:hover { background: #2a2a28; color: #fff; }
  @media (max-width: 1080px) {
    .brand__name small { display: none; }
    .nav-toggle { display: inline-flex; }
    .js .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line);
      padding: var(--s3) var(--g) var(--s5); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
    .js .site-nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .site-nav a, .sub-toggle { font-size: 18px; padding: 12px 14px; border-radius: var(--r-s); width: 100%; color: var(--ink); }
    .sub { position: static; min-width: 0; box-shadow: none; padding: 0 0 0 12px; opacity: 1; visibility: visible; transform: none; display: none; }
    .has-sub.open > .sub, .has-sub:focus-within > .sub { display: block; }
    .has-sub:hover > .sub { display: none; } .has-sub.open:hover > .sub { display: block; }
    .sub a { font-size: 16px; color: var(--ink2); }
    .site-nav .nav-cta { margin-top: var(--s3); }
    .site-nav .nav-cta a { justify-content: center; height: 52px; margin: 0; font-size: 16px; }
    .js .site-nav > ul > li { opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
    .js .site-nav.open > ul > li { opacity: 1; transform: none; }
    .js .site-nav.open > ul > li:nth-child(2) { transition-delay: 40ms } .js .site-nav.open > ul > li:nth-child(3) { transition-delay: 80ms }
    .js .site-nav.open > ul > li:nth-child(4) { transition-delay: 120ms } .js .site-nav.open > ul > li:nth-child(5) { transition-delay: 160ms }
    .js .site-nav.open > ul > li:nth-child(6) { transition-delay: 200ms } .js .site-nav.open > ul > li:nth-child(7) { transition-delay: 240ms }
  }
  @media (max-width: 1080px) { .header-cta { display: none; } }

  /* home hero */
  .hero { padding: clamp(48px, 8vw, 112px) 0 var(--s8); }
  .hero h1 { font-size: clamp(52px, 10.4vw, 156px); letter-spacing: -.055em; line-height: .92; max-width: 9ch; margin: var(--s5) 0 0 -.04em; }
  .hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s6); margin-top: var(--s7); flex-wrap: wrap; }
  .hero__row .btn-row { margin: 0; }
  .hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s4); margin-top: var(--s8); }
  .card { border-radius: var(--r-l); background: var(--bg2); box-shadow: var(--sh1); overflow: hidden; position: relative; }
  .render { aspect-ratio: 5 / 4.4; display: grid; place-items: center; perspective: 900px; background: radial-gradient(120% 90% at 50% 20%, #FAFAF8 0%, #F0F0ED 70%); }
  .render::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(400px circle at calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%), rgba(255,255,255,.7), transparent 60%); }
  .render:hover::after { opacity: 1; }
  .render__obj { width: 78%; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); transform-style: preserve-3d; }
  .render__tag { position: absolute; left: var(--s5); bottom: var(--s5); font-size: 13px; color: var(--ink2); }
  .render__tag b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
  .photo-card img { width: 100%; height: 100%; object-fit: cover; }
  .photo-card figcaption, .chip-cap { position: absolute; left: var(--s4); bottom: var(--s4); z-index: 2; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--ink); }
  @media (max-width: 760px) { .hero__grid { grid-template-columns: 1fr; } .photo-card { aspect-ratio: 4 / 3; } }

  /* facts */
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: var(--s9); list-style: none; }
  .facts li { padding: var(--s6) var(--s5) 0 0; }
  .facts b { display: block; font-size: clamp(36px, 4.6vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
  .facts span { display: block; margin-top: var(--s3); color: var(--ink2); font-size: 15px; max-width: 26ch; }
  @media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts li { padding: var(--s5) 0; border-bottom: 1px solid var(--line); } }

  /* the gap timeline */
  .gap { background: var(--bg2); border-radius: var(--r-l); padding: clamp(28px, 5vw, 64px); margin: 0; }
  .gap h2 { margin-top: var(--s4); max-width: 16ch; }
  .gap__plot { position: relative; margin-top: clamp(56px, 7vw, 88px); height: 132px; }
  .gap__track { position: absolute; left: 0; right: 0; top: 48px; height: 12px; border-radius: 12px; background: var(--bg3); overflow: hidden; }
  .gap__bleed { position: absolute; left: 0; top: 0; bottom: 0; width: 33.333%; background: var(--accent); border-radius: 12px; transform-origin: left; transform: scaleX(var(--gp, 1)); }
  .gap__window { position: absolute; left: 33.333%; right: 6.667%; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, rgba(17,17,16,.10) 0 2px, transparent 2px 8px); opacity: var(--gw, 1); }
  .gap__mark { position: absolute; top: 0; height: 60px; width: 0; border-left: 1.5px solid var(--ink); }
  .gap__mark::after { content: ""; position: absolute; left: -6px; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg2); }
  .gap__mark--5 { left: 33.333%; border-color: var(--accent); } .gap__mark--5::after { background: var(--accent); }
  .gap__mark--7 { left: 46.667%; } .gap__mark--14 { left: 93.333%; }
  .gap__mark span { position: absolute; bottom: calc(100% + 12px); left: 0; transform: translateX(-50%); font-size: 14px; font-weight: 500; white-space: nowrap; }
  .gap__mark--14 span { transform: translateX(-90%); }
  .gap__mark--5 span { color: var(--accent); }
  .gap__axis { position: absolute; left: 0; right: 0; top: 76px; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; }
  .gap__note { position: absolute; top: 104px; left: 33.333%; right: 6.667%; text-align: center; font-size: 15px; color: var(--ink); font-weight: 500; }
  .gap__legend { display: none; list-style: none; margin-top: var(--s5); gap: var(--s3); font-size: 15px; color: var(--ink2); }
  .gap__legend li { display: flex; gap: 12px; align-items: baseline; }
  .gap__legend b { color: var(--ink); font-weight: 600; min-width: 4.5ch; font-variant-numeric: tabular-nums; }
  .gap__src { font-size: 13px; color: var(--ink3); margin-top: var(--s6); }
  @media (max-width: 720px) {
    .gap__mark span, .gap__note { display: none; }
    .gap__plot { height: 100px; margin-top: var(--s6); }
    .gap__legend { display: grid; }
  }

  /* home: courses as sticky stacking cards */
  .stack { list-style: none; display: grid; gap: var(--s6); }
  .stack > li { position: sticky; top: calc(var(--header-h) + 24px + var(--k, 0) * 14px); }
  .course-card { display: grid; grid-template-columns: 1fr 1fr; min-height: min(560px, 76vh); background: #fff; border-radius: var(--r-l); box-shadow: var(--sh2); overflow: hidden; position: relative;
    transform: scale(calc(1 - var(--p, 0) * .05)); transform-origin: 50% 0; will-change: transform; }
  .course-card::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: calc(var(--p, 0) * .55); pointer-events: none; }
  .course-card__txt { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; }
  .course-card__n { font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; }
  .course-card h3 { font-size: clamp(28px, 3.3vw, 44px); letter-spacing: -.04em; margin: var(--s5) 0 var(--s4); max-width: 14ch; }
  .course-card h3 a { text-decoration: none; }
  .course-card p { color: var(--ink2); max-width: 42ch; }
  .course-card dl, .facts-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--s5); margin: var(--s6) 0; font-size: 15px; }
  .course-card dt, .facts-dl dt { color: var(--ink3); }
  .course-card dd, .facts-dl dd { margin: 0; }
  .course-card .btn-row { margin-top: auto; }
  .course-card__img { position: relative; margin: var(--s3); border-radius: calc(var(--r-l) - 8px); overflow: hidden; }
  .course-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
  .course-card:hover .course-card__img img { transform: scale(1.04); }
  @media (max-width: 820px) { .course-card { grid-template-columns: 1fr; min-height: 0; } .course-card__img { aspect-ratio: 16 / 10; order: -1; } .stack > li { top: calc(var(--header-h) + 8px + var(--k, 0) * 10px); } }

  /* stories carousel: one centred frame */
  .stories__frame { position: relative; border-radius: var(--r-l); overflow: hidden; background: #1a1a19; aspect-ratio: 16 / 9; box-shadow: var(--sh2); touch-action: pan-y; isolation: isolate; }
  /* Slides move right-to-left: motion.js parks the incoming slide off to one side, then lets it glide in while the
     outgoing one (.is-leaving) glides out the other side. Hidden slides wait off-frame and invisible. */
  .slide { position: absolute; inset: 0; transform: translateX(100%); visibility: hidden; transition: transform .9s var(--ease), visibility 0s linear .9s; }
  .slide.is-active, .slide.is-leaving { visibility: visible; transition: transform .9s var(--ease), visibility 0s; }
  .slide.is-active { transform: none; z-index: 1; }
  .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s linear; }
  .slide.is-active img { transform: scale(1); }
  .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 100%); z-index: 1; }
  .slide__copy { position: absolute; left: clamp(20px, 4vw, 48px); right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px); z-index: 2; color: #fff; max-width: 28ch; }
  .slide__copy p { font-size: 13px; opacity: .86; margin-bottom: var(--s3); }
  .slide__copy h3 { font-size: clamp(24px, 3.4vw, 46px); letter-spacing: -.035em; line-height: 1.04; font-weight: 500; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease) .15s, transform .8s var(--ease) .15s; }
  .slide.is-active .slide__copy h3 { opacity: 1; transform: none; }
  .bars { list-style: none; margin: 0 0 var(--s4); display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 6px; }
  .bars button { width: 100%; height: 24px; padding: 10px 0; background: none; border: 0; cursor: pointer; }
  .seg { display: block; height: 3px; border-radius: 3px; background: var(--bg3); overflow: hidden; }
  .seg i { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
  .bars button:hover .seg { background: #DADAD6; }
  .stories__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-top: var(--s5); flex-wrap: wrap; }
  .cap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--ink2); min-height: 24px; }
  .cap__n { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
  .ctrls { display: flex; gap: var(--s2); }
  .ctrls [data-toggle] .play { display: none; }
  .ctrls [data-toggle][aria-pressed="true"] .play { display: block; }
  .ctrls [data-toggle][aria-pressed="true"] .pause { display: none; }
  @media (max-width: 640px) { .stories__frame { aspect-ratio: 4 / 5; } }

  /* photos */
  .photo { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh1); width: 100%; object-fit: cover; }
  .frame { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh1); position: relative; background: var(--bg2); }
  .frame img { width: 100%; height: 100%; object-fit: cover; }
  .frame--portrait { aspect-ratio: 4 / 5; }
  .frame--wide { aspect-ratio: 16 / 10; }
  @media (max-width: 899px) { .frame--portrait { aspect-ratio: 4 / 3; } }
  .gallery { list-style: none; columns: 3; column-gap: var(--s4); }
  .gallery li { break-inside: avoid; margin-bottom: var(--s4); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh1); background: var(--bg2); }
  .gallery img { display: block; width: 100%; height: auto; }
  .gallery video { display: block; width: 100%; height: auto; background: var(--ink); }
  .gallery figure { margin: 0; }
  .gallery figcaption { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); font-size: 14px; font-weight: 500; }
  .gallery figcaption span { color: var(--ink3); font-variant-numeric: tabular-nums; }
  .gallery a[data-zoom] { display: block; cursor: zoom-in; }
  .gallery a[data-zoom]:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
  .gallery__more { margin-top: var(--s5); }
  .sec__hd .lede { margin-top: var(--s3); }
  .viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
  .viewer::backdrop { background: rgba(17,17,16,.92); }
  .viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); padding: var(--s4) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
  .viewer figure { margin: 0; display: flex; flex-direction: column; align-items: center; min-height: 0; }
  .viewer img { max-width: calc(100vw - 2 * var(--s4)); max-height: calc(100dvh - 190px); width: auto; height: auto; border-radius: var(--r); }
  .viewer p { color: #fff; max-width: 70ch; margin: var(--s3) var(--s4) 0; text-align: center; font-size: 14px; }
  .viewer__bar { display: flex; justify-content: center; gap: var(--s3); flex: none; }
  .viewer button { font: inherit; font-weight: 500; color: var(--ink); background: #fff; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
  .viewer button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  @media (max-width: 899px) { .gallery { columns: 2; } }
  @media (max-width: 480px) { .gallery { column-gap: var(--s3); } .gallery li { margin-bottom: var(--s3); } }

  /* career timeline */
  .career { list-style: none; border-top: 1px solid var(--line); }
  .career li { display: grid; grid-template-columns: 7.5em 1fr; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
  .career span { font-size: 14px; color: var(--ink2); font-variant-numeric: tabular-nums; padding-top: 2px; }
  .career b { display: block; font-weight: 600; letter-spacing: -.01em; }
  .career p { margin-top: var(--s1); font-size: 15px; color: var(--ink2); }
  @media (max-width: 480px) { .career li { grid-template-columns: 1fr; gap: var(--s1); } }

  /* testimonials */
  /* masonry: up to 3 columns (desktop / iPad landscape), 2 on iPad portrait, 1 on phones */
  .voices { --pad: clamp(20px, 2.4vw, 32px); list-style: none; columns: 3 300px; column-gap: var(--s4); }
  .voices > li { break-inside: avoid; margin-bottom: var(--s4); }
  .voices figure { margin: 0; display: flex; flex-direction: column; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sh1); overflow: hidden; }
  .voices__body { padding: var(--pad); }
  .voices blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink2); overflow-wrap: anywhere; }
  .voices blockquote p + p { margin-top: var(--s3); }
  .voices__lead blockquote { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -.005em; }
  .voices__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: var(--s3); }
  .voices figcaption { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--pad); border-top: 1px solid var(--line); }
  .voices__av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
  .voices__who { min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.4; color: var(--ink2); }
  .voices__who b { color: var(--ink); font-size: 15px; font-weight: 600; }
  .voices--duo { columns: 2 320px; }
  /* one quote: use the full width and flow long text into two columns so it reads short and wide */
  .voices--solo { columns: auto; }
  .voices--solo > li { margin-bottom: 0; }
  .voices--solo .voices__body { --pad: clamp(24px, 4vw, 48px); }
  .voices--solo blockquote { columns: 2 340px; column-gap: clamp(32px, 4vw, 64px); font-size: clamp(16px, 1.4vw, 18px); }
  .voices--solo blockquote::before { content: "\201C"; column-span: all; display: block; font-size: 56px; line-height: .6; height: 28px; color: var(--accent); margin-bottom: var(--s3); }
  .voices--solo figcaption { padding-inline: clamp(24px, 4vw, 48px); }

  /* venues pills (we come to your...) */
  .venues { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s5) 0; }
  .venues li { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--bg2); font-size: 15px; font-weight: 500; transition: background-color .25s, transform .4s var(--spring); }
  .venues li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .venues li:hover { background: var(--bg3); transform: translateY(-2px); }

  /* instructor */
  .motto { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 15px; }
  .motto i { font-style: normal; font-weight: 600; }

  /* badges */
  .badges { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; margin-top: var(--s6); }
  .badges li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink2); }
  .badges img { height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .5s var(--spring); }
  .badges li:hover img { filter: none; opacity: 1; transform: scale(1.08); }

  /* marquee (partners/badges strip) */
  .marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .marquee__track { display: flex; gap: var(--s8); width: max-content; list-style: none; align-items: center; padding-block: var(--s4); }
  .marquee__track li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink2); white-space: nowrap; }
  .marquee__track img { height: 48px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
  .marquee__track li:hover img { filter: none; opacity: 1; }

  /* where: partner cards */
  .where { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
  .where a { display: flex; flex-direction: column; gap: var(--s5); height: 100%; padding: var(--s5); border-radius: var(--r); background: var(--bg2); text-decoration: none; transition: background-color .25s, transform .5s var(--spring), box-shadow .4s; }
  .where a:hover { background: #fff; box-shadow: var(--sh2); transform: translateY(-4px); }
  .where img { height: 56px; width: auto; max-width: 70%; object-fit: contain; object-position: left; mix-blend-mode: multiply; }
  .where b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
  .where span { display: block; font-size: 14px; color: var(--ink2); margin-top: var(--s2); }
  @media (max-width: 900px) { .where { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 420px) { .where { grid-template-columns: 1fr; } }

  /* voice promo on home */
  .talk { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
  .talk__card { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh2); padding: clamp(28px, 4vw, 48px); text-align: center; }
  .talk__fine { font-size: 14px; color: var(--ink3); max-width: 44ch; margin-top: var(--s5); }
  @media (max-width: 820px) { .talk { grid-template-columns: 1fr; } }
  .orb { position: relative; width: min(220px, 56vw); aspect-ratio: 1; margin: 0 auto var(--s5); display: grid; place-items: center; }
  .orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); transform: scale(calc(.62 + var(--lvl, 0) * .38)); transition: transform .12s linear; }
  .orb i:nth-child(2) { inset: 14%; border-color: #DCDCD7; transform: scale(calc(.7 + var(--lvl, 0) * .5)); }
  .orb b { position: relative; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); transform: scale(calc(.9 + var(--lvl, 0) * .28)); transition: transform .1s linear, background-color .4s, box-shadow .4s; box-shadow: 0 10px 30px -8px rgba(17,17,16,.45); }
  .orb b svg { position: absolute; inset: 0; margin: auto; width: 34%; color: #fff; }

  /* photo CTA band */
  .cta { border-radius: var(--r-l); overflow: hidden; position: relative; min-height: 520px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
  .cta > img { position: absolute; inset: -10% 0 auto; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
  .cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,17,16,.1), rgba(17,17,16,.7)); }
  .cta__in { padding: clamp(28px, 5vw, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s6); width: 100%; flex-wrap: wrap; }
  .cta h2 { font-size: clamp(38px, 5.6vw, 80px); letter-spacing: -.05em; max-width: 12ch; }
  .cta p { margin-top: var(--s4); opacity: .9; max-width: 40ch; }
  .cta .btn-row { margin: 0; }
  .cta--plain { min-height: 0; background: var(--bg2); color: var(--ink); }
  .cta--plain::after { display: none; }
  .cta--plain p { color: var(--ink2); opacity: 1; }

  /* sub-page head */
  .page-head { padding: clamp(48px, 7vw, 104px) 0 clamp(32px, 4vw, 56px); }
  .page-head h1 { margin: var(--s5) 0 0 -.03em; max-width: 14ch; }
  .page-head .lede { margin-top: var(--s5); max-width: 44ch; }
  .page-head__img { margin-top: clamp(32px, 5vw, 64px); aspect-ratio: 21 / 9; }
  @media (max-width: 640px) { .page-head__img { aspect-ratio: 4 / 3; } }

  /* course page */
  .course-layout { display: grid; gap: clamp(32px, 6vw, 96px); align-items: start; }
  @media (min-width: 900px) { .course-layout { grid-template-columns: 380px minmax(0, 1fr); } .specs { position: sticky; top: calc(var(--header-h) + 24px); } }
  .specs { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh2); padding: clamp(24px, 3vw, 36px); display: grid; gap: var(--s4); }
  .specs h2 { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink2); display: flex; align-items: center; gap: 10px; }
  .specs h2::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .specs dl { display: grid; gap: 0; }
  .specs dl > div { display: grid; grid-template-columns: 9.5ch 1fr; gap: var(--s4); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .specs dl > div:last-child { border-bottom: 0; }
  .specs dt { color: var(--ink3); }
  .specs dd { margin: 0; }
  .specs .button { width: 100%; }
  .specs__alt { justify-self: center; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink2); }
  .specs__alt:hover { color: var(--ink); }
  .course-copy .frame, .course-copy > img { margin-top: var(--s6); }
  .course-copy > img { border-radius: var(--r-l); box-shadow: var(--sh1); }
  .bullets { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s4); }
  .bullets li { position: relative; padding-left: 26px; color: var(--ink2); max-width: 62ch; }
  .bullets li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  .bullets--cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); counter-reset: card; }
  .bullets--cards li { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); padding: var(--s5); font-size: 18px; color: var(--ink); line-height: 1.4; max-width: none; counter-increment: card; }
  /* numbered label instead of the list dot: "01" in the accent, on its own line with room below */
  .bullets--cards li::before { content: counter(card, decimal-leading-zero); position: static; display: block; width: auto; height: auto; border-radius: 0; background: none;
    margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }

  /* course roster (class registration) */
  .roster { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s4); }
  .roster__item { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); border-radius: var(--r); background: #fff; box-shadow: var(--sh1); transition: box-shadow .4s, transform .5s var(--spring); }
  .roster__item:hover { box-shadow: var(--sh2); transform: translateY(-3px); }
  .roster__item h3 a { text-decoration: none; }
  .roster__item h3 a:hover { text-decoration: underline; }
  .roster__item dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s4); font-size: 14px; margin: var(--s2) 0; }
  .roster__item dt { color: var(--ink3); }
  .roster__item dd { margin: 0; }
  .roster__price { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-top: auto; }
  .c-none { color: var(--ink3); }
  .c-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
  .c-actions > a:not(.button) { font-size: 14px; font-weight: 500; color: var(--ink2); text-decoration: none; }
  .c-actions > a:not(.button):hover { color: var(--ink); }

  /* sessions */
  .sessions { list-style: none; display: grid; gap: var(--s3); }
  .session { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s5); align-items: center; padding: var(--s4) var(--s5) var(--s4) var(--s4); background: #fff; border-radius: var(--r); box-shadow: var(--sh1); transition: box-shadow .4s, transform .5s var(--spring); }
  .session:hover { box-shadow: var(--sh2); transform: translateY(-2px); }
  .session__date { display: grid; place-items: center; align-content: center; width: 76px; height: 76px; border-radius: 16px; background: var(--bg2); line-height: 1; }
  .session__day { font-size: 30px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
  .session__mon { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; margin-top: 4px; }
  .session__body h3 { font-size: 19px; }
  .session__meta { font-size: 14px; color: var(--ink2); margin-top: 4px; }
  .session__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); justify-content: flex-end; }
  .session__full { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent); }
  .session__full::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  @media (max-width: 640px) { .session { grid-template-columns: auto 1fr; } .session__act { grid-column: 1 / -1; justify-content: flex-start; } }
  .empty { background: var(--bg2); border-radius: var(--r); padding: var(--s6); }
  .empty p { color: var(--ink2); max-width: 56ch; }
  .empty .btn-row { margin-top: var(--s5); }

  /* entries (locations, veteran resources) */
  .entries { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--s4); margin-top: var(--s7); }
  .entry { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border-radius: var(--r-l); background: var(--bg2); transition: background-color .3s, box-shadow .4s, transform .5s var(--spring); }
  .entry:hover { background: #fff; box-shadow: var(--sh2); transform: translateY(-4px); }
  .entry img { height: 72px; width: auto; max-width: 60%; object-fit: contain; object-position: left; mix-blend-mode: multiply; }
  .entry h3 { font-size: 22px; }
  .entry p { color: var(--ink2); font-size: 15px; }
  .entry .meta { margin-top: 4px; font-size: 14px; color: var(--ink3); }
  .entry > div { display: grid; gap: var(--s3); }
  .entry .links { display: flex; gap: var(--s5); flex-wrap: wrap; }

  /* panels + forms */
  .panel { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh2); padding: clamp(24px, 4vw, 48px); }
  .panel > h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: var(--s5); }
  .form-grid { display: grid; gap: var(--s5) var(--s4); margin-top: var(--s5); }
  @media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
  .field { display: grid; gap: 6px; align-content: start; }
  .field label { font-size: 14px; font-weight: 500; }
  .req { color: var(--accent); }
  .hint { font-size: 13px; color: var(--ink3); }
  .field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid transparent; background: var(--bg2); font-size: 16px;
    transition: border-color .2s, background-color .2s, box-shadow .3s var(--ease); appearance: none; -webkit-appearance: none; }
  .field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
  .field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
  .field input:hover, .field select:hover, .field textarea:hover { background: var(--bg3); }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,16,.06); }
  .has-error input, .has-error select, .has-error textarea { border-color: var(--accent); background: #FFF7F6; }
  /* radio choices (gift delivery): a row per option, the whole row is the click target */
  .choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
  .choices legend { font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
  .choice { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 16px; border-radius: 14px; background: var(--bg2); font-size: 15px; cursor: pointer; }
  .choice:hover { background: var(--bg3); }
  .field .choice input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; appearance: auto; -webkit-appearance: auto; accent-color: var(--ink); background: none; box-shadow: none; }
  .choice:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
  .choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
  .gift-prices { list-style: none; display: grid; gap: 6px; font-size: 15px; }
  .gift-prices strong { font-variant-numeric: tabular-nums; }
  .errorlist { list-style: none; color: var(--accent); font-size: 14px; font-weight: 500; }
  .error-summary { border-radius: var(--r); padding: var(--s5); background: #FFF4F3; box-shadow: inset 0 0 0 1.5px var(--accent); margin-bottom: var(--s5); }
  .error-summary:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
  .error-summary h2 { font-size: 18px; margin-bottom: var(--s2); color: var(--accent); }
  .error-summary ul { list-style: none; display: grid; gap: 4px; font-size: 15px; }
  .error-summary a { font-weight: 500; }
  .form-actions { margin-top: var(--s6); }
  .form-note { font-size: 13px; color: var(--ink3); margin-top: var(--s4); max-width: 60ch; }
  .form-note a { color: var(--ink2); }
  .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .note { padding: var(--s4) var(--s5); border-radius: var(--r-s); background: var(--bg2); font-size: 15px; margin-bottom: var(--s5); display: flex; gap: 12px; align-items: baseline; }
  .note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
  .note--draft { background: #FFF6E5; }
  .note--draft::before { background: var(--warn); }
  form.inline { margin-top: var(--s5); }
  .contact-card { background: var(--bg2); border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); display: grid; gap: var(--s4); align-content: start; }
  @media (min-width: 900px) { .contact-card { position: sticky; top: calc(var(--header-h) + 24px); } }
  .contact-card h2 { font-size: 24px; }
  .contact-card__who { color: var(--ink2); font-size: 15px; }
  .contact-card__who strong { color: var(--ink); font-weight: 600; }
  .contact-list { list-style: none; display: grid; gap: var(--s3); }
  .contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--r-s); background: #fff; font-size: 15px; transition: transform .4s var(--spring), box-shadow .3s; }
  .contact-list li:hover { transform: translateX(3px); box-shadow: var(--sh1); }
  .contact-list svg { width: 20px; height: 20px; flex: none; fill: var(--ink); margin-top: 2px; }
  .contact-list span { display: grid; min-width: 0; }
  .contact-list__k { font-size: 12px; color: var(--ink3); }
  .contact-list a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
  .contact-list a:hover { text-decoration: underline; }

  /* registration */
  .reg-summary { display: flex; gap: var(--s5); align-items: center; padding-bottom: var(--s5); margin-bottom: var(--s5); border-bottom: 1px solid var(--line); }
  .reg-summary h2 { font-size: clamp(22px, 2.4vw, 30px); }
  .steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); counter-reset: step; font-size: 13px; font-weight: 500; color: var(--ink3); margin-bottom: var(--s5); }
  .steps li { counter-increment: step; display: grid; gap: 10px; }
  .steps li::before { content: ""; height: 3px; border-radius: 3px; background: var(--bg3); }
  .steps span::before { content: counter(step) ". "; font-variant-numeric: tabular-nums; }
  .steps li[aria-current="step"] { color: var(--ink); }
  .steps li[aria-current="step"]::before { background: var(--ink); }

  /* success check */
  .check { margin-bottom: var(--s5); stroke: var(--ink); }
  .check__ring { stroke: var(--line2); }
  .done { text-align: center; max-width: 620px; margin-inline: auto; }
  .done .check { margin-inline: auto; }
  .done p { color: var(--ink2); }
  .done .btn-row { justify-content: center; }

  /* footer */
  .site-footer { padding: var(--s9) 0 var(--s7); }
  .foot-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s6); padding-bottom: var(--s7); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .foot-top h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; font-weight: 500; max-width: 22ch; }
  .foot-top .btn-row { margin: 0; }
  .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); padding-top: var(--s7); font-size: 15px; }
  .foot-grid h3 { font-size: 13px; font-weight: 500; color: var(--ink3); letter-spacing: 0; margin-bottom: var(--s4); }
  .foot-grid ul { list-style: none; display: grid; gap: 10px; }
  .foot-grid a { text-decoration: none; color: var(--ink2); transition: color .2s; }
  .foot-grid a:hover { color: var(--ink); }
  .foot-grid p { color: var(--ink2); max-width: 32ch; margin-top: var(--s4); }
  .foot-grid .brand { margin: 0; }
  .social { display: flex; gap: var(--s2); margin-top: var(--s5); }
  .social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); color: var(--ink); transition: background-color .2s, transform .4s var(--spring); }
  .social a:hover { background: var(--bg3); transform: translateY(-2px); }
  .social svg { width: 18px; height: 18px; fill: currentColor; }
  .social svg[stroke] { fill: none; }
  .legal { margin-top: var(--s8); font-size: 13px; color: var(--ink3); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
  /* the floating chat button sits bottom-right: keep the last footer line clear of it */
  body:has(.chat) .site-footer { padding-bottom: calc(var(--s7) + 80px); }
  .legal a { color: inherit; }
  .legal a:hover { color: var(--ink); }
  @media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

  /* chat widget */
  .chat { position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s3); }
  .chat__toggle { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; cursor: pointer;
    box-shadow: 0 8px 24px -6px rgba(17,17,16,.35); transition: transform .5s var(--spring), opacity .25s; }
  .chat__toggle:hover { transform: translateY(-2px); }
  .chat__toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: #3FBF6E; box-shadow: 0 0 0 3px rgba(63,191,110,.22); }
  .chat__toggle[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
  .chat__panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 120px)); background: #fff; border-radius: 24px; box-shadow: var(--sh3);
    display: flex; flex-direction: column; overflow: hidden; transform-origin: 100% 100%; }
  .chat__head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s4) var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
  .chat__head h2 { font-size: 16px; letter-spacing: -.01em; flex: 1; }
  .chat__head h2 small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink3); letter-spacing: 0; margin-top: 2px; }
  .chat__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg2); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .4s var(--ease); }
  .chat__close:hover { background: var(--bg3); transform: rotate(90deg); }
  .chat__voice { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--bg2); font-size: 13.5px; font-weight: 500; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--ink); transition: background-color .2s; }
  .chat__voice:hover { background: var(--bg3); }
  .chat__log { list-style: none; margin: 0; padding: var(--s5); flex: 1; overflow: auto; display: flex; flex-direction: column; gap: var(--s3); font-size: 15px; overscroll-behavior: contain; }
  .chat__msg { max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; }
  .chat__msg--bot { align-self: flex-start; }
  .chat__msg--bot > a, .chat__text a { color: var(--ink); }
  .chat__msg--user { align-self: flex-end; background: var(--bg2); padding: 10px 16px; border-radius: 18px 18px 6px 18px; }
  .chat__typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--bg2); border-radius: 16px; }
  .chat__typing span { width: 6px; height: 6px; border-radius: 50%; background: #9A9A94; }
  .chat__booking { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--sh1); white-space: normal; }
  .chat__booking small { color: var(--ink3); }
  .chat__booking .button { justify-self: start; }
  /* rich replies: formatted text, then cards, then buttons; quick replies under the latest answer */
  .chat__msg--rich { max-width: 100%; width: 100%; white-space: normal; display: grid; gap: var(--s3); }
  .chat__text { max-width: 92%; line-height: 1.5; }
  .chat__text p + p, .chat__text p + ul, .chat__text ul + p { margin-top: 8px; }
  .chat__text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
  .chat__text li { position: relative; padding-left: 16px; }
  .chat__text li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
  .chat__text strong { font-weight: 600; }
  .chat__cards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--s5)); padding: 4px var(--s5) 10px; scroll-padding: 0 var(--s5); scrollbar-width: none; }
  .chat__cards::-webkit-scrollbar { display: none; }
  .chat__cards:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 12px; }
  .chat__cards--one { overflow: visible; }
  .chat__cards > * { flex: 0 0 min(258px, 82%); scroll-snap-align: start; }
  .chat__cards--one > * { flex-basis: 100%; }
  .ccard { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fff; border-radius: 18px; box-shadow: var(--sh1); font-size: 14px; }
  .ccard__top { display: flex; gap: 12px; align-items: flex-start; }
  .ccard__date { flex: none; display: grid; place-items: center; align-content: center; width: 52px; height: 56px; border-radius: 12px; background: var(--bg2); line-height: 1; }
  .ccard__mon { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
  .ccard__day { font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }
  .ccard__title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
  .ccard__title a { color: inherit; text-decoration: none; }
  .ccard__title a:hover { text-decoration: underline; }
  .ccard__meta { color: var(--ink2); font-size: 13px; margin-top: 3px; display: grid; gap: 1px; }
  .ccard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
  .ccard__price { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
  .ccard__seats { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ok); }
  .ccard__seats::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .ccard__seats--low { color: var(--warn); }
  .ccard__seats--full { color: var(--accent); }
  .ccard__seats--muted { color: var(--ink3); }
  .ccard__btns { display: flex; gap: 8px; align-items: center; }
  .ccard__btns .button { min-height: 36px; padding: 0 14px; font-size: 13.5px; flex: 1; }
  .ccard__btns .button:only-child { flex: 1; }
  .ccard__link { font-size: 13px; font-weight: 500; color: var(--ink2); text-decoration: none; white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; }
  .ccard__link:hover { color: var(--ink); text-decoration: underline; }
  .ccard--course { padding: 0; overflow: hidden; }
  .ccard--course .ccard__body { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; flex: 1; }
  .ccard--course .ccard__body:first-child { padding-top: 14px; }
  .ccard__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--bg2); display: block; }
  .ccard__sum { color: var(--ink2); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ccard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .ccard__chips span { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }
  .ccard__chips span:first-child { background: var(--ink); color: #fff; }
  .chat__actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .chat__actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--bg2); color: var(--ink); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: background-color .2s; }
  .chat__actions a:hover { background: var(--bg3); }
  .chat__actions svg { flex: none; }
  .chat__chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: stretch; }
  .chat__chips button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; transition: background-color .2s, border-color .2s; }
  .chat__chips button:hover { background: var(--bg2); border-color: var(--ink3); }
  .chat__chips button:disabled { opacity: .5; cursor: default; }
  .chat__form { display: flex; flex-wrap: wrap; gap: 8px; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
  .chat__form input { flex: 1; min-width: 0; height: 44px; border: 0; background: var(--bg2); border-radius: 999px; padding: 0 18px; }
  .chat__form input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
  .chat__form .button { min-height: 44px; padding: 0 18px; }
  .chat__form .cf-turnstile { flex-basis: 100%; }
  .chat__note { font-size: 12px; color: var(--ink3); padding: 0 var(--s5) var(--s4); }
  body.on-talk .chat__toggle { display: none; }
}

@layer utilities {
  .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mt-0 { margin-top: 0 !important; }
  .mt-2 { margin-top: var(--s6) !important; }
  .center { text-align: center; }
  /* motion.js never ran (blocked or failed): show everything */
  .m-fail [data-reveal], .m-fail [data-split] .w > span { opacity: 1 !important; transform: none !important; }
  .m-fail [data-clip] { clip-path: none !important; }
}

@layer motion {
  /* Reveal on scroll: motion.js adds .in when the element enters. Content is visible without JS. */
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
  .js [data-reveal="scale"] { transform: translateY(12px) scale(.97); }
  .js [data-reveal="left"] { transform: translateX(-24px); }
  /* rise without the fade, for the big text at the top of a page: Chrome doesn't count an element at opacity 0 as
     painted, so a faded-in lede made Largest Contentful Paint wait for motion.js plus its delay (about 1.5s) */
  .js [data-reveal="rise"] { opacity: 1; }
  .js [data-reveal].in { opacity: 1; transform: none; }
  /* image wipe: clip opens from the bottom */
  .js [data-clip] { clip-path: inset(12% 6% 12% 6% round var(--r-l)); transition: clip-path 1.3s var(--ease) var(--d, 0ms); }
  .js [data-clip].in { clip-path: inset(0 0 0 0 round var(--r-l)); }
  /* headline words rise out of a mask */
  .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .w > span { display: inline-block; }
  .js [data-split] .w > span { transform: translateY(105%); transition: transform 1.1s var(--ease) calc(var(--d, 0ms) + var(--wi, 0) * 70ms); }
  .js [data-split].in .w > span { transform: none; }
  /* parallax: CSS scroll-driven where supported, else motion.js writes --py */
  [data-parallax] { overflow: hidden; }
  [data-parallax] > img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }
  .render__obj svg { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }
  .marquee__track { animation: marquee 40s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .talk__card .orb i:first-child { animation: ripple 3.2s var(--ease) infinite; }
  .talk__card .orb i:nth-child(2) { animation: ripple 3.2s var(--ease) .5s infinite; }
  @keyframes ripple { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.05); opacity: 0; } }
  .chat__toggle .dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(63,191,110,0); } }
  .js .chat__panel { opacity: 0; transform: translateY(16px) scale(.94); transition: opacity .3s var(--ease), transform .5s var(--spring); }
  .js .chat__panel.is-open { opacity: 1; transform: none; }
  .chat__msg, .chat__chips { animation: msg .45s var(--ease) both; }
  .chat__cards > *, .chat__actions, .chat__chips button { animation: msg .5s var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
  @keyframes msg { from { opacity: 0; transform: translateY(8px); } }
  .chat--restoring .chat__panel { transition: none; }
  .chat--restoring .chat__msg, .chat--restoring .chat__chips, .chat--restoring .chat__cards > *, .chat--restoring .chat__actions, .chat--restoring .chat__chips button { animation: none !important; }
  .chat__typing span { animation: dot 1.2s infinite ease-in-out; }
  .chat__typing span:nth-child(2) { animation-delay: .15s; } .chat__typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-3px); opacity: 1; } }
  .button.is-busy::before { animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .errorlist { animation: msg .35s var(--ease) both; }
  .check__ring, .check__tick { stroke-dasharray: 1; animation: draw .7s var(--ease) .2s both; }
  .check__tick { animation-duration: .45s; animation-delay: .75s; }
  @keyframes draw { from { stroke-dashoffset: 1; } }
  .site-header { animation: drop .8s var(--ease) both; }
  @keyframes drop { from { transform: translateY(-100%); } }
  /* the gap: bars fill when the figure enters */
  .js .gap:not(.in) { --gp: 0; --gw: 0; }
  .gap__bleed { transition: transform 1.4s var(--ease) .3s; }
  .gap__window { transition: opacity .8s ease 1.4s; }
  .gap__mark { transition: opacity .5s var(--ease), transform .7s var(--spring); }
  .js .gap:not(.in) .gap__mark { opacity: 0; transform: translateY(-10px); }
  .gap__mark--5 { transition-delay: 1.2s; } .gap__mark--7 { transition-delay: 1.6s; } .gap__mark--14 { transition-delay: 1.8s; }
  .gap__note { transition: opacity .6s ease 2s; }
  .js .gap:not(.in) .gap__note { opacity: 0; }
  /* cross-page fade */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
  /* scroll progress, CSS-driven where supported */
  @supports (animation-timeline: scroll()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
  @media (prefers-reduced-motion: no-preference) {
    .sda [data-parallax] > img { animation: px linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes px { from { transform: translate3d(0, -5%, 0) scale(1.12); } to { transform: translate3d(0, 5%, 0) scale(1.12); } }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; }
    .js [data-clip] { clip-path: none; }
    .js .gap:not(.in) { --gp: 1; --gw: 1; }
    .js .gap:not(.in) .gap__mark, .js .gap:not(.in) .gap__note { opacity: 1; transform: none; }
    .slide { transform: none !important; opacity: 0; } .slide.is-active { opacity: 1; }
    .slide img, .course-card { transform: none; } .course-card::after { opacity: 0; }
    [data-parallax] > img { transform: none; }
    .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee__track [aria-hidden="true"] { display: none; }
    .progress { display: none; }
    @view-transition { navigation: none; }
  }
}
