/* P6 Foresight, February 2027.
   No inline styles anywhere: the live Content-Security-Policy only allows this stylesheet.
   Colours marked "film" are sampled from the Alderbank sequence so the page and the
   captions burned into the video read as one piece. Fonts are system fonts: nothing to download. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --wash: #f7f5ee;
  --cream: #fffaf0;        /* film: caption band */
  --mint: #e8f1ec;
  --sand: #f6ecdd;
  --ink: #0d3429;          /* film: milestone title */
  --text: #2a403a;
  --muted: #50625c;
  --rule: #d6ddd2;         /* film: idle progress segment */
  --rule-mid: #aebbb1;
  --field: #7d8c85;
  --green: #174a43;
  --green-deep: #0f3a34;
  --rust: #8a4b28;         /* film: label and active progress segment */
  --gold: #edbd79;
  --gold-light: #f4cf9a;
  --gold-ink: #2a2118;
  --error: #a3271b;
  --focus: #1257c4;
  --line: 1.5px;
  --gutter: 20px;
  --serif-display: "Sitka Banner", "Sitka Display", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif: "Sitka Heading", "Sitka Display", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --din: Bahnschrift, "DIN Alternate", "Roboto Condensed", sans-serif-condensed, "Arial Narrow", Arial, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--sans); font-variant-numeric: lining-nums; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
b, strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; color: var(--rust); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; z-index: 50; transform: translateY(-200%); padding: 10px 16px; background: var(--paper); border: var(--line) solid var(--ink); font-weight: 600; }
.skip:focus { transform: none; }

h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; color: var(--ink); line-height: 1.06; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.25rem); }
h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.16; letter-spacing: -.004em; }
h4, .label, .kicker, .who-no, .part-no, .part-do-label, .steps-title, .fee-open h3, .chart h3 {
  font: 600 .8rem/1.35 var(--din); letter-spacing: .13em; text-transform: uppercase;
}
h4 { color: var(--muted); }
.label { display: flex; align-items: center; gap: 10px; color: var(--rust); }
.grid-ref { flex: none; display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border: var(--line) solid var(--ink); border-radius: 50%; color: var(--ink); font-size: .84rem; letter-spacing: 0; }
.unit { font: 600 .72em/1 var(--din); letter-spacing: .08em; color: var(--muted); }
.t-id { font: 600 .86rem/1.55 var(--din); letter-spacing: .04em; color: var(--rust); font-variant-numeric: lining-nums tabular-nums; }

/* Buttons and links */
.button {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 52px; padding: 9px 22px; border: var(--line) solid var(--ink); border-radius: 3px;
  background: var(--paper); color: var(--ink); font: 600 1rem/1.25 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s, box-shadow .15s;
}
.button:hover:not(:disabled) { box-shadow: 0 3px 0 var(--ink); }
.button:disabled { cursor: wait; opacity: .6; }
.button-gold { background: var(--gold); color: var(--gold-ink); }
.button-gold:hover:not(:disabled) { background: var(--gold-light); }
.button-green { background: var(--green); border-color: var(--green); color: #fff; }
.button-green:hover:not(:disabled) { background: var(--green-deep); box-shadow: 0 3px 0 var(--gold); }
.button-outline:hover { background: var(--paper); }
.button-sub { font-weight: 400; font-size: .84rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .26em; }
.text-link:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-mark { flex: none; display: grid; align-content: center; gap: 4px; width: 38px; height: 38px; padding: 0 6px; background: var(--green); border-radius: 3px; }
.brand-mark i { display: block; height: 3px; border-radius: 2px; background: #e0c47e; }
.brand-mark i:first-child { width: 11px; }
.brand-mark i:nth-child(2) { width: 12px; margin-left: 5px; }
.brand-mark i:last-child { width: 12px; margin-left: 11px; }
.brand-name { font: 600 .95rem/1.15 var(--din); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.brand-name small { display: block; margin-top: 3px; font-size: .68rem; letter-spacing: .15em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { display: none; padding: 12px; font-weight: 600; font-size: .94rem; line-height: 20px; text-decoration: none; color: var(--ink); }
.nav-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.nav-apply { display: inline-block; margin-left: 8px; padding: 11px 18px; border: var(--line) solid var(--ink); border-radius: 3px; color: var(--ink); font-weight: 600; font-size: .94rem; line-height: 20px; text-decoration: none; white-space: nowrap; }
.nav-apply:hover { background: var(--gold); }
.nav-extra { display: none; }

/* Hero */
.hero { border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; gap: 24px; padding-block: 18px 26px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero-copy > * { max-width: 100%; }
.kicker { display: block; margin-bottom: 12px; color: var(--rust); }
.hero-q { display: block; font-size: clamp(1.9rem, 1.15rem + 4vw, 3.7rem); }
.hero-q-accent { font-style: italic; color: var(--rust); }
.hero-lead { max-width: 33em; margin-top: 14px; font-size: 1.0625rem; }
.title-block { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch; margin-top: 18px; border: var(--line) solid var(--ink); background: var(--paper); }
.title-block > div { min-width: 0; padding: 8px 12px 10px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.title-block > div:nth-child(2n) { border-right: 0; }
.title-block > div:nth-last-child(-n+2) { border-bottom: 0; }
.title-block dt { font: 600 .68rem/1.2 var(--din); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.title-block dd { margin-top: 3px; color: var(--ink); font: 600 1.16rem/1.2 var(--din); letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 16px; }
.hero-choice { max-width: 34em; margin-top: 10px; font-size: .9rem; color: var(--muted); }

.film { min-width: 0; border: var(--line) solid var(--ink); background: var(--paper); }
.film-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.film-frame img, .film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.film-frame video { opacity: 0; pointer-events: none; }
.film-frame video.has-frame { opacity: 1; }
.film-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-top: 1px solid var(--ink); }
.film-control { flex: none; min-width: 78px; min-height: 44px; padding: 0 14px; border: var(--line) solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); font: 600 .92rem/1 var(--sans); cursor: pointer; }
.film-control:hover:not(:disabled) { background: var(--gold); }
.film-control:disabled { cursor: default; color: var(--muted); border-color: var(--rule-mid); }
.film-now { display: flex; align-items: baseline; gap: 9px; min-width: 0; color: var(--ink); font: 400 1.04rem/1.25 var(--serif); }
.film-count { flex: none; color: var(--rust); font: 600 .8rem/1 var(--din); letter-spacing: .08em; font-variant-numeric: lining-nums tabular-nums; }
.film-meta { display: none; margin-left: auto; color: var(--muted); font: 600 .74rem/1.3 var(--din); letter-spacing: .12em; text-transform: uppercase; text-align: right; }
/* The seven stage buttons are never smaller than 44 by 44 CSS pixels.
   Under 380px they wrap into two rows (four, then three); from 380px they sit in one row; from 560px they become a titled list. */
.milestones { display: grid; border-top: 1px solid var(--ink); }
.milestones li { min-width: 0; }
.ms { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 .88rem/1.2 var(--din); letter-spacing: .04em; text-align: left; }
button.ms { cursor: pointer; }
button.ms:hover:not(:disabled) { background: var(--wash); color: var(--ink); }
button.ms:disabled { cursor: default; }
.ms::before { content: ""; position: absolute; inset: 0 auto auto 0; width: calc(var(--p, 0) * 100%); height: 3px; background: var(--rust); }
.is-done .ms { --p: 1; }
.is-current .ms { background: var(--cream); color: var(--ink); }
.ms-n { font-variant-numeric: lining-nums tabular-nums; }
.ms-t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.film-note { padding: 9px 12px; border-top: 1px solid var(--ink); background: var(--cream); font-size: .88rem; line-height: 1.45; }
.film figcaption { padding: 10px 12px 12px; border-top: 1px solid var(--ink); color: var(--muted); font-size: .88rem; line-height: 1.5; }
.film figcaption strong { color: var(--ink); }
.hero-contents { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: -10px; }
.hero-contents a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--green); font-weight: 600; font-size: .92rem; }

/* Sections */
.section { padding-block: clamp(38px, 7vw, 96px); }
.section-wash { background: var(--wash); border-block: 1px solid var(--rule); }
.section-mint { background: var(--mint); border-block: 1px solid #c8dbd0; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(22px, 4vw, 44px); padding-top: 14px; border-top: var(--line) solid var(--ink); }
.section-intro { max-width: 39em; font-size: 1.0625rem; }

/* Cohort calendar */
.calendar-grid { display: grid; gap: 24px; align-items: start; }
.calendar-info > p { margin-top: 12px; }
.calendar-times { margin-top: 20px; border-top: 1px solid var(--rule-mid); }
.calendar-times > div { display: grid; grid-template-columns: 5.3rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-mid); }
.calendar-times dt { color: var(--green); font-weight: 600; }
.calendar-recordings { max-width: 36em; }
.calendar-dates { min-width: 0; border: 1px solid var(--ink); background: var(--paper); }
.calendar-dates table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calendar-dates caption { padding: 12px 16px; background: var(--ink); color: var(--paper); text-align: left; font: 500 1.15rem/1.35 var(--serif); }
.calendar-dates th, .calendar-dates td { padding: 12px 4px; border-top: 1px solid var(--rule); text-align: center; line-height: 1.3; white-space: nowrap; }
.calendar-dates thead th { background: var(--wash); color: var(--ink); font: 600 .9rem/1.25 var(--din); }
.calendar-dates abbr { text-decoration: none; }
.calendar-dates tbody th { color: var(--muted); }
.calendar-dates tr > :last-child { background: var(--sand); color: var(--ink); }
.clinic-label { display: block; color: var(--rust); font-size: .8rem; }
@media (min-width: 760px) {
  .calendar-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); }
  .calendar-dates caption { padding: 16px 20px; font-size: 1.35rem; }
  .calendar-dates th, .calendar-dates td { padding: 13px 6px; }
}

/* Who it's for */
.who-grid { display: grid; gap: 26px; }
.who-card { padding-top: 16px; border-top: 1px solid var(--ink); }
.who-no { color: var(--rust); }
.who-card h3 { margin: 6px 0 10px; font-family: var(--serif-display); font-size: 1.7rem; }
.who-topics { margin-top: 14px; }
.who-topics li { border-top: 1px solid var(--rule); }
.who-topics li:last-child { border-bottom: 1px solid var(--rule); }
.who-topics a { display: grid; grid-template-columns: 3.3rem minmax(0, 1fr); gap: 4px; align-items: baseline; min-height: 44px; padding: 9px 0; text-decoration: none; }
.who-topics a:hover span:last-child, .who-topics a:focus-visible span:last-child { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; color: var(--ink); }

/* Programme: the syllabus as a bar chart */
.chart { margin-bottom: clamp(26px, 4vw, 46px); padding: 14px 16px 12px; border: var(--line) solid var(--ink); background: var(--paper); }
.chart-head { display: grid; gap: 8px; padding-bottom: 8px; }
.chart h3 { color: var(--ink); }
.chart-scale { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); color: var(--muted); font: 600 .72rem/1 var(--din); letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
.chart-scale span { grid-row: 1; justify-self: center; white-space: nowrap; }
.chart-scale span:nth-child(1) { grid-column: 1; }
.chart-scale span:nth-child(2) { grid-column: 7; }
.chart-scale span:nth-child(3) { grid-column: 14; }
.chart-scale span:nth-child(4) { grid-column: 21; }
.chart-scale span:nth-child(5) { grid-column: 28; }
.chart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; min-height: 46px; padding: 6px 0 8px; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.chart-name { font-weight: 600; font-size: .96rem; line-height: 1.3; }
.chart-no { display: inline-block; width: 1.5em; color: var(--rust); font: 600 .86rem/1 var(--din); }
.chart-range { color: var(--muted); font: 600 .82rem/1 var(--din); letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
.chart-track { grid-column: 1 / -1; display: block; height: 9px; background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: calc(100% / 28) 100%; border-right: 1px solid var(--rule); }
.chart-track i { display: block; width: calc(var(--n) / 28 * 100%); height: 100%; margin-left: calc(var(--from) / 28 * 100%); background: var(--green); }
.chart-row:hover .chart-track i, .chart-row:focus-visible .chart-track i { background: var(--rust); }
.chart-row:hover .chart-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.bar-1 { --from: 0; --n: 5; }
.bar-2 { --from: 5; --n: 5; }
.bar-3 { --from: 10; --n: 6; }
.bar-4 { --from: 16; --n: 6; }
.bar-5 { --from: 22; --n: 3; }
.bar-6 { --from: 25; --n: 3; }
.chart-note { padding-top: 10px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .86rem; }

.part { padding: 20px 0 8px; border-top: var(--line) solid var(--ink); }
.part-no { display: flex; gap: 14px; color: var(--rust); }
.part-range { color: var(--muted); }
.part h3 { margin-top: 6px; font-family: var(--serif-display); font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.1rem); }
.part-do { max-width: 34em; margin-top: 14px; }
.part-do-label { margin-right: 6px; color: var(--muted); }
.topics { margin-top: 14px; border-top: 1px solid var(--rule-mid); }
.topics li { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0 4px; padding: 9px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 20px; }
.topics li:last-child { border-bottom: 0; }
.topics li:target { background: var(--cream); box-shadow: -10px 0 0 var(--cream), 10px 0 0 var(--cream), -13px 0 0 var(--rust); }
.t-text { line-height: 1.45; }
.t-format { grid-column: 2; margin-top: 3px; color: var(--rust); font: 600 .76rem/1.4 var(--din); letter-spacing: .12em; text-transform: uppercase; }

.capstone { display: grid; gap: 22px; margin-top: clamp(26px, 4vw, 46px); padding: clamp(18px, 3vw, 38px); border: var(--line) solid var(--ink); background: var(--sand); }
.capstone h3 { margin: 10px 0 14px; font-family: var(--serif-display); font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem); }
.capstone-steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 10px 0; border-top: 1px solid #d8c5a6; }
.step-n { color: var(--rust); font: 600 .9rem/1.5 var(--din); }
.capstone-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
.capstone-photo figcaption { margin-top: 8px; color: #4d453b; font-size: .86rem; line-height: 1.5; }

/* Instructor */
.instructor-grid { display: grid; gap: 24px; }
.portrait img { width: 100%; height: auto; border: var(--line) solid var(--ink); }
.portrait figcaption { margin-top: 8px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.credit-owner { white-space: nowrap; }
.credit-owner::before { content: "· "; }
.instructor-copy h2 { margin-top: 12px; }
.instructor-lead { max-width: 33em; margin-top: 14px; font-size: 1.0625rem; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; border: var(--line) solid var(--ink); }
.credentials > div { min-width: 0; padding: 9px 12px 11px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.credentials > div:nth-child(2n) { border-right: 0; }
.credentials > div:nth-last-child(-n+2) { border-bottom: 0; }
.credentials dt { color: var(--ink); font: 600 1.12rem/1.25 var(--din); letter-spacing: .03em; }
.credentials dd { margin-top: 2px; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.instructor-note { max-width: 33em; margin: 14px 0 6px; color: var(--muted); font-size: .95rem; }

/* Masterclass resources */
.resource-grid { display: grid; gap: 28px; }
.resource-copy h2 { margin-top: 12px; }
.resource-copy > p:not(.label) { max-width: 35em; margin-top: 14px; }
.resource-copy .button { margin-top: 20px; }
.resource-copy .resource-note { margin-top: 20px; padding: 12px 14px; border-left: 3px solid var(--rust); background: #ffffffbf; font-size: .92rem; }
.resource-list { border-top: var(--line) solid var(--ink); }
.resource-list li { padding: 14px 0; border-bottom: 1px solid #b8cec2; }
.resource-list strong { display: block; font: 400 1.4rem/1.2 var(--serif); }
.resource-list span { display: block; margin-top: 4px; font-size: .95rem; }

.class-exercise { align-self: start; margin: 12px 0; border: var(--line) solid var(--green); border-radius: 4px; background: var(--paper); }
.class-exercise summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 14px; align-items: center;
  min-height: 52px; padding: 12px 14px; border-radius: 3px; background: var(--mint);
  color: var(--green-deep); cursor: pointer; list-style: none;
}
.class-exercise summary::-webkit-details-marker { display: none; }
.class-exercise summary:hover .exercise-action { text-decoration: underline; text-underline-offset: .18em; }
.exercise-action { grid-column: 1; font-weight: 700; line-height: 1.3; }
.exercise-subject { grid-column: 1; color: var(--text); font-size: .94rem; line-height: 1.4; }
.exercise-hide, .class-exercise[open] .exercise-show { display: none; }
.class-exercise[open] .exercise-hide { display: inline; }
.exercise-arrow {
  grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center;
  width: 30px; height: 30px; border: 1px solid var(--green); border-radius: 50%; background: var(--green); color: var(--paper);
}
.exercise-arrow::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.class-exercise[open] .exercise-arrow::after { transform: translateY(2px) rotate(225deg); }
.class-exercise[open] summary { border-radius: 3px 3px 0 0; border-bottom: 1px solid var(--rule-mid); }
.class-exercise ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 12px; padding: 14px; }
.class-exercise li { padding-left: 12px; border-left: 2px solid var(--rule-mid); }
.class-exercise li strong { display: block; }
.payment-option { max-width: 27em; margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--green); background: var(--wash); color: var(--ink); }
.payment-option p { font-size: 1rem; font-weight: 400; line-height: 1.5; }
.payment-option p + p { margin-top: 8px; }
.payment-option a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; color: var(--green-deep); }

/* Fee */
.fee-grid { display: grid; gap: 28px; }
.fee-amount { color: var(--ink); font: 400 clamp(3.7rem, 2.4rem + 6.4vw, 6.2rem)/.95 var(--serif-display); letter-spacing: -.02em; }
.fee-amount .unit { font-size: 1rem; letter-spacing: .14em; vertical-align: .9em; }
.fee-terms { max-width: 24em; margin-top: 14px; }
.fee-facts { display: none; margin-top: 18px; border-top: 1px solid var(--ink); }
.fee-facts > div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.fee-facts dt { color: var(--muted); font: 600 .72rem/1.4 var(--din); letter-spacing: .14em; text-transform: uppercase; }
.fee-facts dd { color: var(--ink); font-weight: 600; }
.covers { border-top: var(--line) solid var(--ink); }
.covers li { position: relative; padding: 11px 0 11px 2.1rem; border-bottom: 1px solid var(--rule); }
.covers li::before { content: ""; position: absolute; left: 2px; top: 1.32em; width: 15px; height: 6px; background: var(--green); }
.fee-open { display: grid; gap: 18px; margin-top: 24px; }
.fee-open h3 { margin-bottom: 4px; color: var(--rust); }
.fee-open p { font-size: .95rem; }

/* Apply */
.apply-grid { display: grid; gap: 28px; }
.apply-info h2 { margin-top: 12px; }
.apply-lead { max-width: 33em; margin-top: 14px; }
.steps-title { margin-top: 26px; color: var(--muted); }
.steps { margin-top: 12px; }
.steps li { position: relative; display: grid; gap: 2px; padding: 0 0 16px 2.1rem; }
.steps li::before { content: ""; position: absolute; left: 6.25px; top: 14px; bottom: -6px; width: var(--line); background: var(--ink); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.diamond { position: absolute; left: 0; top: 5px; width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg); }
.steps strong { font: 400 1.22rem/1.25 var(--serif); }
.steps li > span:last-child { max-width: 30em; font-size: .95rem; }
.steps-note { max-width: 30em; margin-top: 16px; padding: 10px 12px; border-left: 3px solid var(--rust); background: var(--paper); color: var(--ink); font-weight: 600; font-size: .95rem; }
.apply-contact { margin-top: 22px; font-size: .95rem; }

.application-card { min-width: 0; padding: clamp(18px, 3.4vw, 36px); border: var(--line) solid var(--ink); background: var(--paper); }
.application-card > form > h3, #application-result h3, .application-card noscript h3 { font-family: var(--serif-display); font-size: 1.85rem; }
.form-key { margin: 6px 0 18px; color: var(--muted); font-size: .9rem; }
.field-row { display: grid; gap: 16px; margin-bottom: 16px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; font-size: .95rem; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 3px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); }
textarea { min-height: 96px; resize: vertical; }
input:not([type=checkbox]):hover, select:hover, textarea:hover { border-color: var(--ink); }
[aria-invalid="true"]:not([type=checkbox]) { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-hint { margin-top: 5px; color: var(--muted); font-size: .86rem; }
.field-error { margin-top: 6px; color: var(--error); font-weight: 600; font-size: .9rem; line-height: 1.4; }
.field-error::before { content: "Error: "; }
.checks { min-width: 0; margin-top: 18px; padding: 0; border: 0; }
.checks legend { padding: 0; margin-bottom: 2px; color: var(--muted); font: 600 .76rem/1.4 var(--din); letter-spacing: .13em; text-transform: uppercase; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; padding: 9px 0; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.check + .field-error { margin: -2px 0 6px 36px; }
.checks:not(.checks-optional) { padding-bottom: 8px; border-bottom: 1px dashed var(--rule-mid); }
.checks-optional { margin-top: 14px; }
.form-alert { margin-top: 18px; padding: 12px 14px; border: var(--line) solid var(--error); background: #fdf1ef; color: #7a1c13; font-weight: 600; }
.routes { display: grid; grid-template-rows: repeat(4, auto); gap: 0 14px; margin-top: 22px; }
.route { display: grid; grid-row: span 4; grid-template-rows: subgrid; gap: 8px; padding: 14px; border: 1px solid var(--ink); background: var(--wash); }
.route + .route { margin-top: 14px; }
.route h4 { color: var(--ink); font: 400 1.4rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; }
.route-text { font-size: .93rem; line-height: 1.5; }
.route .button { width: 100%; margin-top: 4px; align-self: end; }
.when-open, .when-closed, .when-unknown { display: none; }
form[data-checkout="open"] .when-open, form[data-checkout="closed"] .when-closed, form[data-checkout="unknown"] .when-unknown { display: block; }
form[data-checkout] .when-checking { display: none; }
.form-note { color: var(--muted); font-size: .88rem; line-height: 1.45; }
form[data-checkout="closed"] #checkout-note, form[data-checkout="unknown"] #checkout-note { color: var(--ink); font-weight: 600; font-size: .93rem; }
.form-status { margin-top: 12px; color: var(--ink); font-weight: 600; }
.form-status:empty { display: none; }
#application-result p { margin-top: 10px; }
#application-result .button { margin-top: 18px; }
#application-result .result-reminder { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .93rem; }
.application-card noscript p { margin-top: 10px; }

/* Questions */
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; color: var(--ink); font: 400 1.3rem/1.25 var(--serif); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 1.2em; color: var(--rust); font: 400 1.6rem/1 var(--din); text-align: center; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:hover { color: var(--green); }
.faq-list details p { max-width: 40em; padding-bottom: 18px; }

/* Footer */
.site-footer { --focus: var(--gold); padding-block: 36px 104px; background: var(--green-deep); color: #d2ded7; font-size: .93rem; }
.footer-grid { display: grid; gap: 20px; }
.footer-brand { margin-bottom: 8px; color: #fff; font: 600 .82rem/1.35 var(--din); letter-spacing: .13em; text-transform: uppercase; }
.footer-about p:last-child { max-width: 38em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }

/* Phone-only apply bar. Shown by script once the hero button has scrolled away, hidden while the form is in view. */
.apply-bar { position: fixed; inset: auto 0 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px)); border-top: var(--line) solid var(--ink); background: var(--paper); box-shadow: 0 -8px 20px #0d342917; }
.apply-bar p { display: grid; color: var(--muted); font: 600 .8rem/1.25 var(--din); letter-spacing: .06em; }
.apply-bar strong { color: var(--ink); font-size: 1.22rem; letter-spacing: 0; }
.apply-bar .button { min-height: 46px; padding: 8px 18px; white-space: nowrap; }
html.has-apply-bar { scroll-padding-bottom: 76px; }

/* Standalone pages (payment return) */
.standalone { min-height: 100vh; background: var(--wash); }
.standalone-main { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(28px, 7vw, 80px); }
.standalone-card { margin-top: 22px; padding: clamp(22px, 5vw, 48px); border: var(--line) solid var(--ink); background: var(--paper); }
.standalone-card h1 { margin: 12px 0 18px; font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.4rem); }
.standalone-card p + p { margin-top: 14px; }
.standalone-card .steps { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }
.standalone-card .button { margin-top: 8px; }
.standalone-card .standalone-small { color: var(--muted); font-size: .9rem; }
.standalone-card .standalone-return { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .95rem; }
.standalone-return a { display: inline-block; padding-block: 10px; }

/* Stage buttons on phones. Source order is always 01 to 07, read left to right, top to bottom. */
@media (max-width: 379.98px) {
  .milestones { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .milestones li { grid-column: span 3; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .milestones li:nth-child(n+5) { grid-column: span 4; border-bottom: 0; }
  .milestones li:nth-child(4), .milestones li:last-child { border-right: 0; }
}
@media (min-width: 380px) and (max-width: 559.98px) {
  .milestones { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .milestones li { border-right: 1px solid var(--rule); }
  .milestones li:last-child { border-right: 0; }
}

/* Very narrow phones: keep "Mon 1 Feb 2027" on one line */
@media (max-width: 359px) {
  .title-block { grid-template-columns: 1.14fr 1fr; }
  .title-block > div { padding-inline: 10px; }
  .title-block dd { font-size: 1.04rem; }
}

/* 560px and up */
@media (min-width: 560px) {
  .hero-copy h1 { order: -2; }
  .hero-lead { order: -1; margin-top: 16px; }
  .title-block { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .title-block > div, .title-block > div:nth-child(2n) { border-right: 1px solid var(--ink); border-bottom: 0; }
  .title-block > div:last-child { border-right: 0; }
  .film-now { display: none; }
  .film-meta { display: block; }
  .milestones { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; }
  .milestones li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .milestones li:nth-child(-n+4) { border-right: 1px solid var(--rule); }
  .milestones li:nth-child(4), .milestones li:last-child { border-bottom: 0; }
  .ms { justify-content: flex-start; gap: 10px; min-height: 44px; padding: 8px 12px; color: var(--text); font: 400 .95rem/1.3 var(--sans); letter-spacing: 0; }
  .ms::before { inset: auto auto 0 0; height: 2px; }
  .ms-n { flex: none; color: var(--rust); font: 600 .82rem/1 var(--din); letter-spacing: .06em; }
  .ms-t { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
  .is-current .ms { font-weight: 600; }
  .credentials { grid-template-columns: repeat(4, 1fr); }
  .credentials > div, .credentials > div:nth-child(2n) { border-right: 1px solid var(--ink); border-bottom: 0; }
  .credentials > div:last-child { border-right: 0; }
}

/* 640px and up */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .field-row, .routes, .fee-open { grid-template-columns: 1fr 1fr; }
  .route + .route { margin-top: 0; }
  .fee-open { gap: 28px; }
}

/* 700px and up */
@media (min-width: 700px) {
  .nav-link { display: inline-block; }
  .hero-contents { display: none; }
  .chart-head, .chart-row { grid-template-columns: minmax(0, 17.5rem) 3.4rem minmax(0, 1fr); gap: 0 12px; }
  .chart-head { align-items: end; }
  .chart h3 { grid-column: 1 / 3; }
  .chart-track { grid-column: auto; }
  .chart-row { min-height: 44px; padding: 6px 0; }
  .topics li { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .t-format { grid-column: 3; margin-top: 0; padding: 2px 0 0 18px; white-space: nowrap; }
}

/* 900px and up: two-column layouts and the sticky header */
@media (min-width: 900px) {
  html { scroll-padding-top: 84px; }
  .site-header { position: sticky; top: 0; z-index: 20; }
  .header-row { min-height: 68px; }
  .nav-extra { display: inline; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 4.4vw, 60px); align-items: center; padding-block: clamp(28px, 3.2vw, 44px); }
  .hero-lead { font-size: 1.125rem; }
  .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
  .section-head .label { grid-column: 1 / -1; }
  .who-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
  .who-topics { margin-top: 18px; }
  .who-topics a { min-height: 44px; padding: 10px 0; }
  .part { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: 56px; padding: 26px 0 28px; }
  .part-head, .part-do { grid-column: 1; }
  .part-do-label { display: block; margin: 0 0 2px; }
  .topics li { padding: 11px 0; }
  .topics { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; border-top: 0; }
  .topics li:first-child { padding-top: 2px; }
  .topics li { scroll-margin-top: 100px; }
  .capstone { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
  .instructor-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4.4vw, 64px); align-items: center; }
  .credentials { grid-template-columns: 1fr 1fr; }
  .credentials > div { border-bottom: 1px solid var(--ink); }
  .credentials > div:nth-child(2n) { border-right: 0; }
  .credentials > div:nth-last-child(-n+2) { border-bottom: 0; }
  .resource-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: start; }
  .fee-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
  .fee-facts { display: block; }
  .apply-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 4.6vw, 64px); align-items: start; }
  .faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq-grid .section-head { display: block; margin-bottom: 0; }
  .faq-grid .section-head h2 { margin-top: 14px; }
  .faq-list { border-top: var(--line) solid var(--ink); }
  .site-footer { padding-block: 40px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .footer-nav { justify-content: flex-end; align-content: start; }
  .apply-bar { display: none; }
}

@media (min-width: 1100px) {
  .credentials { grid-template-columns: repeat(4, 1fr); }
  .credentials > div, .credentials > div:nth-child(2n) { border-right: 1px solid var(--ink); border-bottom: 0; }
  .credentials > div:last-child { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .diamond, .chart-track i, .covers li::before, .ms::before, .brand-mark i { forced-color-adjust: none; background: CanvasText; }
  .brand-mark { forced-color-adjust: none; background: Canvas; border: 1px solid CanvasText; }
}

@media print {
  .site-header, .apply-bar, .film-bar, .milestones, .hero-contents, .hero-actions { display: none !important; }
  .section { padding-block: 24px; }
  body { font-size: 11pt; }
}

.masterclass-invitation {
  inset: 0;
  width: min(33rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  overflow: auto;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid var(--green);
  border-top: 5px solid var(--gold);
  border-radius: 4px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 14px 48px rgb(13 52 41 / 22%);
}
.masterclass-invitation::backdrop { background: rgb(12 37 30 / 54%); }
.masterclass-invitation h2 { color: var(--ink); font: 400 clamp(2rem, 6vw, 3rem)/1.08 var(--serif-display); }
.masterclass-invitation p { margin-top: 16px; }
.invitation-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 480px) {
  .invitation-actions { flex-direction: column; }
  .invitation-actions .button { width: 100%; }
}
@media print {
  .masterclass-invitation { display: none !important; }
}
