/* ==========================================================================
   MED DEVICE ACADEMY — DESIGN SYSTEM
   --------------------------------------------------------------------------
   A sibling of the Med Dev Services system: same typefaces, grid, rail and
   component vocabulary, so the two sites read as one family. The Academy
   takes navy as its accent (from the existing course decks and collateral)
   with a teal "progress" colour used only for learning cues: free modules,
   ticks, the live dot.
   Edit tokens at the top; everything else follows.
   Typefaces: Newsreader (display) · Instrument Sans (body/UI) · IBM Plex Mono (labels)
   ========================================================================== */

/* Layout concept: a course prospectus — mono index rail on the left, serif
   headlines, the syllabus itself used as the hero image. */
:root {
  --ink:        #141a22;
  --ink-soft:   #2c3542;
  --slate:      #586371;
  --slate-mute: #7c8794;
  --line:       #dde1e5;
  --line-soft:  #eceef1;
  --bone:       #f0f2f3;
  --paper:      #fbfcfc;
  --paper-lift: #ffffff;

  /* Accent — Academy navy */
  --accent:      #1b3a5c;
  --accent-deep: #11283f;
  --accent-tint: #e4ebf3;
  --accent-line: #bccbdc;
  --on-accent:   #f4f7fa;

  /* Progress — teal, learning cues only */
  --spark:      #17806f;
  --spark-tint: #e0f0ed;

  /* Dark bands (stats, CTA) */
  --band:       #13233a;
  --band-fg:    #f2f5f8;
  --band-mute:  #a7b4c3;
  --band-line:  rgba(255,255,255,.16);
  --band-link:  #8fd0c4;

  --f-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-hero:  clamp(2.45rem, 1.2rem + 4.3vw, 4.35rem);
  --t-h1:    clamp(2.15rem, 1.2rem + 3.2vw, 3.5rem);
  --t-h2:    clamp(1.65rem, 1.1rem + 1.9vw, 2.5rem);
  --t-h3:    clamp(1.2rem, 1.03rem + 0.6vw, 1.5rem);
  --t-lede:  clamp(1.1rem, 1.0rem + 0.45vw, 1.3rem);
  --t-body:  1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.75rem;

  --gutter:  clamp(1.25rem, 0.6rem + 2.6vw, 4rem);
  --measure: 34rem;
  --sec-y:   clamp(3.75rem, 2rem + 6vw, 7.25rem);
  --max:     78rem;

  --radius: 3px;
  --shadow: 0 1px 2px rgba(20, 26, 34, .04), 0 12px 34px -18px rgba(20, 26, 34, .24);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9edf1; --ink-soft: #cbd3db; --slate: #9ca7b3; --slate-mute: #7e8995;
    --line: #273039; --line-soft: #1d242c; --bone: #141a21; --paper: #0d1217; --paper-lift: #131920;
    --accent: #8fb4de; --accent-deep: #b6cfec; --accent-tint: #172537; --accent-line: #2c4560; --on-accent: #0b1420;
    --spark: #4fc0ae; --spark-tint: #12302c;
    --band: #111c2b; --band-fg: #eef2f6; --band-mute: #9aa8b8; --band-line: rgba(255,255,255,.12); --band-link: #7fcabd;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 38px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e9edf1; --ink-soft: #cbd3db; --slate: #9ca7b3; --slate-mute: #7e8995;
  --line: #273039; --line-soft: #1d242c; --bone: #141a21; --paper: #0d1217; --paper-lift: #131920;
  --accent: #8fb4de; --accent-deep: #b6cfec; --accent-tint: #172537; --accent-line: #2c4560; --on-accent: #0b1420;
  --spark: #4fc0ae; --spark-tint: #12302c;
  --band: #111c2b; --band-fg: #eef2f6; --band-mute: #9aa8b8; --band-line: rgba(255,255,255,.12); --band-link: #7fcabd;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 38px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--f-display); font-weight: 400; line-height: 1.08;
  letter-spacing: -0.014em; text-wrap: balance; margin: 0; color: var(--ink);
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.22; letter-spacing: -0.008em; }
p { margin: 0; }
a { color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1.1rem; z-index: 200; font-size: var(--t-small); }
.skip:focus { left: .5rem; top: .5rem; }

/* ---- Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-y); }
.section + .section { padding-top: 0; }
.section--bone { background: var(--bone); }
.section--bone + .section, .band + .section { padding-top: var(--sec-y); }
.section.section--bone { padding-block: var(--sec-y); }

.railed { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3.5rem); align-items: start; }
.railed > * { min-width: 0; }
@media (min-width: 900px) { .railed { grid-template-columns: 11rem 1fr; gap: clamp(2.5rem, 1rem + 5vw, 5.5rem); } }
.rail {
  font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate-mute); padding-top: .45rem; border-top: 1px solid var(--line);
}
.measure { max-width: var(--measure); }
.measure-wide { max-width: 46rem; }
.stack { display: flex; flex-direction: column; }
.stack > * { min-width: 0; }
.stack-xs { gap: .5rem; } .stack-sm { gap: .9rem; } .stack-md { gap: 1.5rem; } .stack-lg { gap: 2.5rem; }
.grid { display: grid; gap: clamp(1.25rem, .8rem + 1.6vw, 2.25rem); }
.grid > * { min-width: 0; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---- Type utilities ---------------------------------------------------- */
.eyebrow { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-soft); }
.prose { color: var(--slate); max-width: var(--measure); }
.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.small { font-size: var(--t-small); color: var(--slate); }
.mono { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; }
.display-hero { font-family: var(--f-display); font-size: var(--t-hero); font-weight: 300; line-height: 1.03; letter-spacing: -0.022em; text-wrap: balance; }
.display-hero em { font-style: italic; color: var(--accent); }
.serif-quote { font-family: var(--f-display); font-size: clamp(1.35rem, 1rem + 1.6vw, 2.05rem); font-weight: 300; line-height: 1.28; font-style: italic; }

/* ---- Buttons & links --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-body); font-size: var(--t-small); font-weight: 500;
  padding: .82rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
.btn--free { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--free::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spark); }
.btn--free:hover { background: transparent; border-color: var(--spark); }
.btn--light { background: var(--band-fg); color: var(--band); border-color: var(--band-fg); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--onband { background: transparent; color: var(--band-fg); border-color: var(--band-line); }
.btn--onband:hover { border-color: var(--band-fg); }
.btn--onband.btn--free::before { background: var(--band-link); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.tlink {
  display: inline-flex; align-items: baseline; gap: .45rem; color: var(--accent);
  text-decoration: none; font-weight: 500; font-size: var(--t-small);
  background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1px;
  background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s ease; padding-bottom: 1px;
}
.tlink:hover, .tlink:focus-visible { background-size: 100% 1px; }
.tlink .arw { transition: transform .25s ease; }
.tlink:hover .arw { transform: translateX(3px); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: var(--paper); background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand-glyph { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: .22rem; }
.brand-mark { font-family: var(--f-body); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.03em; line-height: 1; }
.brand-sub { font-family: var(--f-mono); font-size: .5625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--slate-mute); line-height: 1; }
.nav-links { display: none; align-items: center; gap: clamp(.9rem, .2rem + 1.2vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
@media (min-width: 1060px) { .nav-links { display: flex; } }
.nav-links a { text-decoration: none; font-size: var(--t-small); color: var(--slate); padding-block: .4rem; border-bottom: 1px solid transparent; white-space: nowrap; transition: color .18s ease, border-color .18s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-actions { display: none; align-items: center; gap: 1rem; }
@media (min-width: 1060px) { .nav-actions { display: flex; } }
.nav-login { font-size: var(--t-small); color: var(--slate); text-decoration: none; white-space: nowrap; }
.nav-login:hover { color: var(--ink); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem; background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase;
  padding: .6rem .8rem; cursor: pointer;
}
@media (min-width: 1060px) { .nav-toggle { display: none; } }
.nav-toggle .bars { display: grid; gap: 3px; }
.nav-toggle .bars i { display: block; width: 14px; height: 1px; background: currentColor; }
.nav-panel { border-top: 1px solid var(--line-soft); background: var(--paper); max-height: calc(100vh - 4.5rem); overflow-y: auto; }
.nav-panel ul { list-style: none; margin: 0; padding: 0 0 1rem; }
.nav-panel li + li { border-top: 1px solid var(--line-soft); }
.nav-panel a { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.nav-panel a span { color: var(--slate-mute); font-family: var(--f-mono); font-size: var(--t-micro); }
.nav-panel .btn-row { padding-bottom: 1.25rem; }
.nav-panel .btn { flex: 1 1 12rem; justify-content: center; }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.75rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.hero-grid { display: grid; gap: clamp(2.25rem, 1rem + 4vw, 4rem); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-copy { display: flex; flex-direction: column; gap: 1.6rem; max-width: 40rem; }
.hero-copy .lede { max-width: 34rem; }
.hero-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-mute); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--spark); display: inline-block; box-shadow: 0 0 0 4px var(--spark-tint); }
.hero-note { font-size: .875rem; color: var(--slate-mute); }
.hero-note strong { color: var(--ink-soft); font-weight: 500; }

.page-hero { padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.25rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
.page-hero .display-hero { max-width: 20ch; }
.page-hero .lede { max-width: 40rem; }

/* Syllabus panel — the hero "image" is the course itself */
.syllabus {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-lift); box-shadow: var(--shadow); overflow: hidden;
}
.syl-head, .syl-foot {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .85rem 1.1rem; font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase; color: var(--slate-mute);
}
.syl-head { border-bottom: 1px solid var(--line); background: var(--bone); }
.syl-head b { color: var(--ink); font-weight: 500; }
.syl-foot { border-top: 1px solid var(--line); background: var(--bone); flex-wrap: wrap; }
.syl-foot a { color: var(--accent); text-decoration: none; }
.syl-foot a:hover { text-decoration: underline; }
.syl-list { list-style: none; margin: 0; padding: .35rem 0; }
.syl-list li {
  display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .75rem; align-items: baseline;
  padding: .34rem 1.1rem; font-size: .9rem; color: var(--ink-soft);
}
.syl-list li:nth-child(even) { background: color-mix(in srgb, var(--bone) 55%, transparent); }
.syl-no { font-family: var(--f-mono); font-size: var(--t-micro); color: var(--slate-mute); font-variant-numeric: tabular-nums; }
.syl-t { min-width: 0; }
.syl-min { font-family: var(--f-mono); font-size: .6875rem; color: var(--slate-mute); white-space: nowrap; }
.syl-list li.is-free .syl-no { color: var(--spark); }
.chip-free {
  font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--spark); border: 1px solid currentColor; border-radius: 99px; padding: .1rem .45rem; white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .syl-list li { animation: rise .5s cubic-bezier(.22,.61,.36,1) both; }
  .syl-list li:nth-child(1) { animation-delay: .25s } .syl-list li:nth-child(2) { animation-delay: .29s }
  .syl-list li:nth-child(3) { animation-delay: .33s } .syl-list li:nth-child(4) { animation-delay: .37s }
  .syl-list li:nth-child(5) { animation-delay: .41s } .syl-list li:nth-child(6) { animation-delay: .45s }
  .syl-list li:nth-child(7) { animation-delay: .49s } .syl-list li:nth-child(8) { animation-delay: .53s }
  .syl-list li:nth-child(9) { animation-delay: .57s } .syl-list li:nth-child(10) { animation-delay: .61s }
  .syl-list li:nth-child(11) { animation-delay: .65s } .syl-list li:nth-child(12) { animation-delay: .69s }
  .syl-list li:nth-child(13) { animation-delay: .73s } .syl-list li:nth-child(14) { animation-delay: .77s }
  .syl-list li:nth-child(15) { animation-delay: .81s }
}

/* ---- Dark band: facts -------------------------------------------------- */
.band { background: var(--band); color: var(--band-fg); padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--band-line); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 1.4rem 0; border-bottom: 1px solid var(--band-line); }
@media (min-width: 640px) { .fact { padding-inline: 0 1.5rem; } }
@media (min-width: 1000px) {
  .fact { border-bottom: 0; padding: 1.6rem 1.75rem 0; }
  .fact:first-child { padding-left: 0; }
  .fact + .fact { border-left: 1px solid var(--band-line); }
}
.fact-fig { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fact-fig small { font-size: .45em; letter-spacing: 0; margin-left: .15em; color: var(--band-mute); }
.fact-lab { margin-top: .7rem; font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase; color: var(--band-mute); }
.fact-note { margin-top: .4rem; font-size: var(--t-small); color: var(--band-mute); max-width: 22rem; }

/* ---- Problems: the organising principle -------------------------------- */
.problems { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .problems { grid-template-columns: repeat(3, 1fr); } }
.problem {
  background: var(--paper); padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  display: flex; flex-direction: column; gap: .9rem; justify-content: space-between;
  text-decoration: none; color: inherit; transition: background .2s ease;
}
.section--bone .problem { background: var(--paper-lift); }
.problem:hover { background: var(--bone); }
.section--bone .problem:hover { background: var(--accent-tint); }
.problem-who { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-mute); }
.problem-q { font-family: var(--f-display); font-size: 1.17rem; line-height: 1.32; color: var(--ink); }
.problem-q::before { content: "\201C"; }
.problem-q::after { content: "\201D"; }
.problem-to { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: .5rem; align-items: center; }
.problem-to .arw { transition: transform .2s ease; }
.problem:hover .problem-to .arw { transform: translateX(3px); }

/* ---- Pathways ---------------------------------------------------------- */
.paths { display: grid; gap: clamp(1.25rem, .8rem + 1.6vw, 2rem); }
@media (min-width: 860px) { .paths { grid-template-columns: repeat(2, 1fr); } }
.path {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--paper-lift); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); min-width: 0;
}
.path-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.path h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); }
.path-for { font-family: var(--f-display); font-style: italic; color: var(--slate); font-size: 1.05rem; }
.path-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.path-meta > div { padding: .8rem .2rem; min-width: 0; }
.path-meta > div + div { border-left: 1px solid var(--line); padding-left: .9rem; }
.path-meta dt { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-mute); }
.path-meta dd { margin: .15rem 0 0; font-family: var(--f-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.path-meta dd small { font-family: var(--f-body); font-size: .75rem; color: var(--slate-mute); margin-left: .2rem; }
.path .btn-row { margin-top: auto; padding-top: .4rem; }

/* ---- Routes: team / career split -------------------------------------- */
.routes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 820px) { .routes { grid-template-columns: repeat(2, 1fr); } }
.route { background: var(--paper); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.route .btn-row { margin-top: auto; padding-top: .5rem; }

/* ---- Cards ------------------------------------------------------------- */
.card { display: flex; flex-direction: column; gap: .85rem; padding: clamp(1.4rem, 1rem + 1.2vw, 2rem); background: var(--paper-lift); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; height: 100%; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a.card:hover { border-color: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--slate); font-size: var(--t-small); }
.card .mono { color: var(--slate-mute); }
.card-foot { margin-top: auto; padding-top: .6rem; }

/* ---- Steps (real sequences only) --------------------------------------- */
.steps { display: grid; gap: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 1.4rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
@media (min-width: 820px) { .step { padding-inline: 1.5rem; } .step:first-child { padding-left: 0; } .step:last-child { padding-right: 0; } }
.step-n { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .12em; color: var(--accent); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: var(--t-small); color: var(--slate); }

/* ---- Lists ------------------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--slate); font-size: var(--t-small); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 5px; border-left: 1.5px solid var(--spark); border-bottom: 1.5px solid var(--spark); transform: rotate(-45deg); }
@media (min-width: 720px) { .ticks-2 { grid-template-columns: repeat(2, 1fr); gap: .6rem 2rem; } }

.deflist { display: grid; gap: 0; margin: 0; }
.deflist > div { display: grid; gap: .35rem 2.5rem; padding-block: 1.15rem; border-top: 1px solid var(--line); }
.deflist > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .deflist > div { grid-template-columns: 15rem 1fr; } }
.deflist dt { font-weight: 500; color: var(--ink); }
.deflist dd { margin: 0; color: var(--slate); font-size: var(--t-small); max-width: 44rem; }

/* Full curriculum list */
.modules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.modules li { display: grid; grid-template-columns: 3.2rem 1fr; gap: .4rem 1.25rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .modules li { grid-template-columns: 3.2rem 16rem 1fr; } }
.modules .m-no { font-family: var(--f-mono); font-size: var(--t-micro); color: var(--slate-mute); padding-top: .3rem; font-variant-numeric: tabular-nums; }
.modules .m-t { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.3; }
.modules .m-d { color: var(--slate); font-size: var(--t-small); grid-column: 2; }
@media (min-width: 760px) { .modules .m-d { grid-column: 3; } }
.modules li.is-free .m-no { color: var(--spark); }

/* ---- Plans table ------------------------------------------------------- */
.plans { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--paper-lift); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.plan.is-featured { background: var(--accent-tint); }
.plan-name { font-family: var(--f-display); font-size: 1.4rem; }
.plan-seats { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--slate-mute); }
.plan-price { display: grid; gap: .25rem; padding-block: .8rem; border-block: 1px solid var(--line); }
.plan.is-featured .plan-price { border-color: var(--accent-line); }
.plan-price .row { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; font-size: var(--t-small); color: var(--slate); }
.plan-price .fig { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-price .quote { font-family: var(--f-display); font-size: 1.25rem; font-style: italic; color: var(--ink); }
.plan .ticks li { font-size: .875rem; }
.plan .btn-row { margin-top: auto; }
.plan .btn { width: 100%; justify-content: center; }
.fineprint { font-size: .8125rem; color: var(--slate-mute); }

/* ---- FAQ --------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.25rem 1.15rem 0; position: relative;
  font-family: var(--f-display); font-size: 1.17rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.05rem; font-family: var(--f-mono); font-size: 1.1rem; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 1.3rem; color: var(--slate); max-width: 44rem; font-size: var(--t-small); }
.faq .ans p + p { margin-top: .8em; }

/* ---- Quote / founder --------------------------------------------------- */
.pullquote { display: grid; gap: 1.25rem; border-left: 2px solid var(--accent); padding-left: clamp(1.25rem, .8rem + 1.6vw, 2.25rem); max-width: 46rem; }
.portrait { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(170deg, var(--bone), var(--paper-lift)); aspect-ratio: 4 / 5; overflow: hidden; max-width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 86%, transparent); font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .11em; text-transform: uppercase; color: var(--slate-mute); }
.signature { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--ink-soft); }

/* Callout for partner bodies etc. */
.note-box { border: 1px solid var(--accent-line); background: var(--accent-tint); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: grid; gap: .8rem; }
.note-box p { color: var(--ink-soft); font-size: var(--t-small); }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { background: var(--band); color: var(--band-fg); }
.cta-inner { display: grid; gap: 2rem; align-items: end; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.cta-inner > * { min-width: 0; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.15fr .85fr; } }
.cta-inner .eyebrow { color: var(--band-link); }
.cta-inner h2 { color: var(--band-fg); max-width: 18ch; }
.cta-inner p { color: var(--band-mute); max-width: 34rem; }
.cta-contacts { display: flex; flex-direction: column; gap: .5rem; font-size: var(--t-small); color: var(--band-mute); }
.cta-contacts a { color: var(--band-fg); text-decoration: none; border-bottom: 1px solid var(--band-line); align-self: flex-start; }
.cta-contacts a:hover { border-bottom-color: var(--band-fg); }

/* ---- Form -------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; max-width: 36rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-size: var(--t-small); font-weight: 500; }
.field .hint { font-size: .8125rem; color: var(--slate-mute); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: var(--t-body); color: var(--ink);
  background: var(--paper-lift); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .85rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: grid; gap: .5rem; }
@media (min-width: 620px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice label { display: flex; gap: .65rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .85rem; cursor: pointer; font-weight: 400; background: var(--paper-lift); font-size: var(--t-small); }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choice input { margin-top: .25rem; accent-color: var(--accent); }
.choice b { display: block; font-weight: 500; color: var(--ink); }
.choice span span { color: var(--slate-mute); font-size: .8125rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .8125rem; color: var(--slate); }
.consent input { margin-top: .28rem; accent-color: var(--accent); }
.form-out { border: 1px solid var(--accent-line); background: var(--accent-tint); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .75rem; font-size: var(--t-small); }
.form-out pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--f-mono); font-size: .8125rem; line-height: 1.6; color: var(--ink); max-height: 15rem; overflow: auto; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 2rem; }
.footer-grid { display: grid; gap: 2.25rem; }
.footer-grid > * { min-width: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-col h4 { font-family: var(--f-mono); font-size: var(--t-micro); font-weight: 400; letter-spacing: .13em; text-transform: uppercase; color: var(--slate-mute); margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--slate); text-decoration: none; font-size: var(--t-small); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--ink); }
.footer-legal { margin-top: clamp(2rem, 1.2rem + 2vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-size: .8125rem; color: var(--slate-mute); }
.footer-legal a { color: var(--slate-mute); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* ---- Motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.22,.61,.36,1) both; }
  .rise-1 { animation-delay: .04s; } .rise-2 { animation-delay: .12s; }
  .rise-3 { animation-delay: .2s; } .rise-4 { animation-delay: .28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

@media print {
  .site-header, .nav-panel, .cta-band, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Full, uncropped photograph in the portrait frame */
.portrait--photo { aspect-ratio: auto; max-width: 30rem; justify-self: center; width: 100%; }
.portrait--photo img { height: auto; display: block; }

/* Enquiry form states */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-error { font-size: var(--t-small); color: #9b2c2c; background: #fdecec; border: 1px solid #f3c2c2; border-radius: var(--radius); padding: .75rem .9rem; }
.form-error a { color: inherit; }
.form-done { scroll-margin-top: 6rem; display: grid; gap: 1rem; max-width: 36rem; border-top: 2px solid var(--spark); padding-top: 1.5rem; }
.form-done:focus { outline: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-error { color: #f3b4b4; background: #2a1414; border-color: #5a2a2a; } }
:root[data-theme="dark"] .form-error { color: #f3b4b4; background: #2a1414; border-color: #5a2a2a; }
