:root {
  --navy: #0c1f3d;
  --navy-deep: #081730;
  --navy-raised: #15305a;
  --on-navy: #ffffff;
  --on-navy-soft: #bcc7d9;
  --rule-on-navy: rgba(255, 255, 255, 0.2);
  --brass: #c79f61;
  --brass-deep: #7c581c;
  --paper: #ffffff;
  --mist: #f2f4f8;
  --ink: #0c1f3d;
  --ink-soft: #47566f;
  --rule: #d8dde6;
  --field: radial-gradient(120% 150% at 10% -20%, #17355f 0%, #0c1f3d 48%, #081730 100%);

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(72px, 10vw, 148px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lift: 0 28px 60px -32px rgba(8, 23, 48, 0.5);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: var(--navy) var(--mist);
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brass); color: var(--navy); }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
}
.skip:focus { top: 12px; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.lead {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.lead + .lead { margin-top: 1em; }

.statement {
  max-width: 30em;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  line-height: 1.38;
  text-wrap: pretty;
}
.statement + .statement { margin-top: 1em; }
.statement.big { max-width: 27em; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.3; }
.statement.big::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin-bottom: clamp(24px, 3vw, 40px);
  background: var(--brass-deep);
}

.section { padding-block: var(--section); }
.tinted { background: var(--mist); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.btn svg { flex: none; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }

.btn-light { background: var(--on-navy); color: var(--navy); }
.btn-light:hover { background: var(--brass); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.5); color: var(--on-navy); }
.btn-outline-light:hover { border-color: var(--on-navy); background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-raised); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--on-navy); }
.btn-compact { min-height: 42px; padding: 0 20px; font-size: 0.75rem; }
@media (max-width: 420px) {
  .actions .btn, .glance .btn, form .btn { max-width: 100%; padding: 14px 22px; line-height: 1.35; text-align: center; white-space: normal; }
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header: name bar, then a menu row that stays at the top of the screen */
.masthead { background: var(--navy-deep); color: var(--on-navy); view-transition-name: masthead; }
.masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.wordmark {
  font-family: var(--display);
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: 0.002em;
  text-decoration: none;
}
.masthead-note { color: var(--on-navy-soft); font-size: 0.8125rem; letter-spacing: 0.01em; text-align: right; }
.masthead-actions { display: none; align-items: center; gap: 12px; flex: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  background: none;
  color: var(--on-navy);
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle line { transition: transform 0.35s var(--ease-out); transform-origin: 9px 6px; }
.menu-toggle[aria-expanded="true"] line:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] line:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.site-nav { background: var(--navy-deep); color: var(--on-navy); view-transition-name: site-nav; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav ul { display: flex; gap: clamp(14px, 1.75vw, 28px); }
.site-nav li a {
  position: relative;
  display: block;
  padding-block: 17px;
  color: var(--on-navy-soft);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease-out);
}
.site-nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.site-nav li a:hover { color: var(--on-navy); }
.site-nav li a:hover::after, .site-nav li a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav li a[aria-current="page"] { color: var(--on-navy); }
.site-nav .nav-apply { display: none; }

@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-top: 1px solid var(--rule-on-navy);
    box-shadow: 0 16px 32px -24px rgba(8, 23, 48, 0.7);
  }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .site-nav ul { gap: 13px; }
  .site-nav li a { font-size: 0.8125rem; letter-spacing: 0.01em; }
  .nav-cta { padding-inline: 16px; }
}
@media (max-width: 1099px) {
  .masthead { position: sticky; top: 0; z-index: 50; }
  .masthead-note { display: none; }
  .masthead-actions { display: flex; }
  .nav-row { display: block; }
  .nav-cta { display: none; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block;
    position: fixed;
    inset: var(--bar-h, 78px) 0 0 0;
    z-index: 49;
    overflow-y: auto;
    border-top: 1px solid var(--rule-on-navy);
  }
  .site-nav ul { flex-direction: column; gap: 0; padding-block: 12px 40px; }
  .site-nav li + li { border-top: 1px solid var(--rule-on-navy); }
  .site-nav li a { padding-block: 16px; color: var(--on-navy); font-family: var(--serif); font-size: 1.3125rem; letter-spacing: 0; }
  .site-nav li a::after { display: none; }
  .site-nav li a[aria-current="page"] { color: var(--brass); }
  .site-nav .nav-apply { display: block; }
}
@media (max-width: 559px) {
  .masthead-actions .btn { display: none; }
}
/* Phones: the name sits as a deliberate two-line lockup, with a compact menu button beside it */
@media (max-width: 719px) {
  .masthead-bar { gap: 16px; padding-block: 14px; }
  .wordmark { font-size: clamp(1.25rem, 1rem + 1.6vw, 1.5rem); line-height: 1.08; }
  .wordmark span { display: block; }
  .menu-toggle { gap: 8px; min-height: 40px; padding: 0 12px; }
}

/* Home hero: version one. Type only on flat navy, with a thin line between the two sides. */
.hero { background: var(--navy); color: var(--on-navy); }
.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  padding-block: clamp(44px, 7vw, 88px) clamp(48px, 6vw, 80px);
}
.stack {
  font-family: var(--display);
  font-size: min(6rem, 10.4vw);
  line-height: 1;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}
.stack .line { display: block; overflow-x: visible; overflow-y: clip; padding-block: 0.03em; }
.stack .line > span { display: block; }
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.3vw, 1.9375rem);
  line-height: 1.2;
  text-wrap: balance;
}
.hero-copy p { max-width: 34ch; margin-top: 14px; color: var(--on-navy-soft); font-size: 1.125rem; }
.hero-copy .actions { margin-top: 32px; }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; }
  .stack { font-size: min(5.5rem, 5.9vw); }
  .hero-copy { padding: 6px 0 0.9vw clamp(28px, 3.2vw, 52px); border-left: 1px solid var(--rule-on-navy); }
}

.facts { border-top: 1px solid var(--rule-on-navy); }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(24px, 3vw, 36px) clamp(16px, 3vw, 40px) clamp(28px, 3.4vw, 44px);
}
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid var(--rule-on-navy); }
.fact dd { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; }
.fact dd span { font-size: clamp(1rem, 1.8vw, 1.5rem); letter-spacing: 0.08em; text-transform: uppercase; }
.fact dt { color: var(--on-navy-soft); font-size: 0.9375rem; }
@media (max-width: 599px) {
  .facts-row { grid-template-columns: 1fr; }
  .fact { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding: 18px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--rule-on-navy); }
}

/* Words beside a tall photo (version one), with the ways it is taught as ticked labels */
.learn-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.learn-grid h2 { max-width: 13ch; }
.learn-grid .lead { max-width: 54ch; margin-top: clamp(24px, 3vw, 36px); }
.learn-photo { max-width: 480px; }
.learn-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--mist); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 3.4vw, 44px); }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.3;
}
.chips svg { flex: none; color: var(--brass-deep); }
@media (min-width: 860px) {
  .learn-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .learn-photo { justify-self: end; }
}

/* Course content as a syllabus table, with a course details box beside it */
.syllabus { order: 2; width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); text-align: left; }
.syllabus caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.syllabus thead th {
  padding-block: 14px;
  border-bottom: 1px solid var(--navy);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.syllabus tbody th, .syllabus td { padding-block: clamp(22px, 2.8vw, 34px); border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.syllabus .no {
  width: clamp(64px, 8vw, 116px);
  color: var(--brass-deep);
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.syllabus td { color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.3; text-wrap: pretty; }
.syllabus td strong { color: var(--ink); font-weight: 700; }
.syllabus tbody tr { transition: background-color 0.4s var(--ease-out); }
.syllabus tbody tr:hover { background: #fbfaf6; }

/* Admission rules set out like a handbook: heading in the margin, table beside it. Nothing pins. */
.regs { display: grid; gap: clamp(24px, 3.4vw, 40px) clamp(32px, 5vw, 72px); }
.regs > h2 { font-size: clamp(1.75rem, 2.7vw, 2.375rem); line-height: 1.12; }
.regs .lead { margin-bottom: clamp(24px, 3vw, 40px); }
.regs .syllabus td { font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.4; }
.regs .syllabus .no { width: clamp(56px, 7vw, 104px); font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.regs .syllabus tbody th, .regs .syllabus td { padding-block: clamp(18px, 2.2vw, 26px); }
.tinted .syllabus tbody tr:hover { background: var(--paper); }
.syllabus.ticked td { vertical-align: top; }
.syllabus .mark { width: 44px; color: var(--brass-deep); }
.syllabus .mark svg { display: block; margin-top: 0.22em; }
.reg-note { margin-top: clamp(28px, 3.6vw, 48px); padding: clamp(20px, 2.6vw, 32px) clamp(20px, 2.6vw, 36px); border: 1px solid var(--rule); background: var(--mist); }
.reg-note h3 { color: var(--brass-deep); font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; line-height: 1.4; text-transform: uppercase; }
.reg-note p { max-width: 60ch; margin-top: 10px; font-family: var(--serif); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; text-wrap: pretty; }
@media (min-width: 960px) {
  .regs { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: start; }
}

.course-facts { padding: 4px clamp(18px, 2vw, 26px); border: 1px solid var(--rule); background: var(--mist); }
.why-head > .course-facts { order: 3; }
.course-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 14px; }
.course-facts div + div { border-top: 1px solid var(--rule); }
.course-facts dt { color: var(--ink-soft); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.course-facts dd { font-family: var(--serif); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); text-align: right; }
.tinted .chips li { background: var(--paper); }
.org-facts { margin-top: clamp(28px, 3.4vw, 44px); }
.org-facts dd { max-width: 68%; }

/* Inner pages reuse the same block. Key words in bold so the point lands at a glance. */
.learn-grid .statement { max-width: 24em; color: var(--ink-soft); }
.statement strong { color: var(--ink); font-weight: 700; }
.lead strong { color: var(--ink); font-weight: 600; }

/* A short headline with one supporting line, in place of a long block of large text */
.keyline h2 { max-width: 24ch; font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.12; }
.keyline .lead { margin-top: clamp(18px, 2.2vw, 28px); }
.program .keyline { margin-top: clamp(56px, 7vw, 104px); }
.duo .note { margin-top: clamp(24px, 3vw, 36px); }

/* Key points: heading side stays in view beside the list */
.why { padding-block: var(--section); background: var(--mist); }
.why.on-paper { background: var(--paper); }
.why-grid { display: grid; gap: clamp(28px, 4vw, 44px) clamp(32px, 5vw, 72px); }
.reasons { display: grid; gap: 1px; border: 1px solid var(--rule); background: var(--rule); }
.reasons li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.6vw, 34px);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.42;
  text-wrap: pretty;
  transition: background-color 0.4s var(--ease-out);
}
.reasons li:hover { background: #fbfaf6; }
.reasons svg { margin-top: 0.2em; color: var(--brass-deep); }
.reasons strong { color: var(--ink); font-weight: 700; }
.reasons.numbered { counter-reset: step; }
.reasons.numbered li { counter-increment: step; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; }
.reasons.numbered li::before {
  content: counter(step);
  color: var(--brass-deep);
  font-family: var(--display);
  font-size: 1.5em;
  line-height: 1;
}
/* Four points across on navy, split by thin lines. Same family as the numbers strip under the home hero. */
.pillar-band { padding-block: clamp(56px, 7vw, 104px); background: var(--navy) var(--field); color: var(--on-navy); }
.pillars { display: grid; }
.pillars li {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-block: 24px;
  border-top: 1px solid var(--rule-on-navy);
  color: var(--on-navy-soft);
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.7vw, 1.5rem);
  line-height: 1.32;
  text-wrap: balance;
}
.pillars li:first-child { padding-top: 0; border-top: 0; }
.pillars li:last-child { padding-bottom: 0; }
.pillars svg { width: 28px; height: 28px; color: var(--brass); }
.pillars strong { color: var(--on-navy); font-weight: 700; }
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .pillars li { padding: 4px 0 4px clamp(20px, 2.6vw, 40px); border-top: 0; border-left: 1px solid var(--rule-on-navy); }
  .pillars li:nth-child(odd) { padding-left: 0; padding-right: clamp(20px, 2.6vw, 40px); border-left: 0; }
}
@media (min-width: 1000px) {
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pillars li, .pillars li:nth-child(odd) { padding: 4px clamp(18px, 2.2vw, 36px); border-left: 1px solid var(--rule-on-navy); }
  .pillars li:first-child { padding-left: 0; border-left: 0; }
  .pillars li:last-child { padding-right: 0; }
}
@media (min-width: 760px) {
  .reasons.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons.two li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.why-head { display: contents; }
.why h2, .why-head > p { order: 1; }
.reasons { order: 2; }
.why .actions, .why-head > .note { order: 3; }
.why-head h2.long { font-size: clamp(1.75rem, 2.9vw, 2.375rem); line-height: 1.14; letter-spacing: -0.005em; }
.why-intro {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.36;
  text-wrap: pretty;
}
@media (min-width: 860px) {
  .why-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .why-head {
    display: grid;
    gap: clamp(24px, 2.6vw, 36px);
    position: sticky;
    top: max(96px, calc(50vh - var(--head-h, 220px) / 2));
  }
}

.note { padding: clamp(28px, 3.2vw, 44px); background: var(--navy) var(--field); color: var(--on-navy); box-shadow: var(--lift); }
.note p { font-family: var(--serif); font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); line-height: 1.42; text-wrap: pretty; }
.note::before { content: ""; display: block; width: 48px; height: 1px; margin-bottom: 22px; background: var(--brass); }

/* The seven weekends as a row of date tiles */
.program { padding-block: var(--section); background: var(--navy) var(--field); color: var(--on-navy); }
.program.on-light { background: var(--paper); color: var(--ink); }
.program-head { display: grid; gap: 20px; }
.program-head p { max-width: 44ch; color: var(--on-navy-soft); font-size: 1.125rem; }
.program-head h2:only-child { grid-column: 1 / -1; }
.program .statement { margin-top: clamp(56px, 7vw, 104px); }
@media (min-width: 860px) {
  .program-head { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: end; gap: clamp(32px, 5vw, 72px); }
}

.dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 5.5vw, 72px);
  border: 1px solid var(--rule-on-navy);
  background: var(--rule-on-navy);
}
.dates li {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(20px, 2vw, 28px) clamp(16px, 1.6vw, 22px) clamp(24px, 2.4vw, 34px);
  background: var(--navy);
  transition: background-color 0.4s var(--ease-out);
}
.dates li:hover { background: var(--navy-raised); }
.dates li:last-child { grid-column: span 2; }
.dates .wk {
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dates time { display: grid; gap: 8px; }
.dates .days { font-family: var(--display); font-size: clamp(2.25rem, 3.2vw, 2.875rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.dates .month { color: var(--on-navy-soft); font-size: 0.9375rem; white-space: nowrap; }
.on-light .dates { border-color: var(--rule); background: var(--rule); }
.on-light .dates li { background: var(--paper); }
.on-light .dates li:hover { background: #fbfaf6; }
.on-light .dates .wk { color: var(--brass-deep); }
.on-light .dates .month { color: var(--ink-soft); }
@media (min-width: 640px) {
  .dates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .dates { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .dates li:last-child { grid-column: auto; }
}

/* Voices on the home page: large, one at a time */
.pull { display: grid; gap: clamp(8px, 2vw, 32px); }
.pull-mark { color: var(--brass); font-family: var(--display); font-size: clamp(6rem, 13vw, 11rem); line-height: 0.72; }
.voice-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .pull { grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); }
}

/* Closing band */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--navy) var(--field); color: var(--on-navy); }
.cta-media { position: absolute; inset: 0 0 0 auto; z-index: -1; width: min(62%, 900px); opacity: 0.72; }
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60%);
  mask-image: linear-gradient(to right, transparent 0, #000 60%);
}
.cta > .wrap { padding-block: clamp(72px, 9vw, 136px); }
.cta-line {
  font-family: var(--display);
  font-size: clamp(2rem, 4.7vw, 3.875rem);
  line-height: 1.04;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}
.cta-line span { display: block; }
.cta-sub { margin-top: clamp(18px, 2.2vw, 28px); color: var(--on-navy-soft); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.cta-head { max-width: 15em; font-size: clamp(2.125rem, 4.6vw, 3.75rem); }
.cta-head + .cta-sub { max-width: 50ch; }
.cta-sub strong { color: var(--on-navy); font-weight: 600; }
.cta .actions { margin-top: clamp(30px, 3.8vw, 48px); }

/* Closing band with a brass-edged card beside the words (The Training) */
.group-grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
.group-card { padding: clamp(24px, 3vw, 44px); border: 1px solid var(--brass); background: rgba(8, 23, 48, 0.5); }
.group-card li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 15px;
  border-bottom: 1px solid var(--rule-on-navy);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.3;
}
.group-card li:first-child { padding-top: 0; }
.group-card svg { flex: none; color: var(--brass); }
.group-card p { margin-top: 22px; color: var(--on-navy-soft); font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.55; text-wrap: pretty; }
@media (min-width: 900px) {
  .group-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.cta.on-light { background: var(--mist); color: var(--ink); }
.cta.on-light .cta-sub { color: var(--ink-soft); }
@media (max-width: 759px) {
  .cta-media { width: 100%; opacity: 0.3; }
}

/* Inner page title block */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--navy) var(--field); color: var(--on-navy); }
.page-head-inner { padding-block: clamp(48px, 7vw, 112px) clamp(48px, 6.5vw, 104px); }
.page-head h1 {
  max-width: 17em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.125rem, 5.2vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}
.page-head p {
  max-width: 54ch;
  margin-top: clamp(20px, 2.6vw, 32px);
  color: var(--on-navy-soft);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  text-wrap: pretty;
}
.page-head p strong { color: var(--on-navy); font-weight: 600; }
.page-head-media { aspect-ratio: 16 / 10; overflow: hidden; }
.page-head-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40%);
}
.has-media { display: flex; flex-direction: column-reverse; }
.has-media .page-head-inner { padding-bottom: clamp(8px, 2vw, 24px); }
@media (min-width: 900px) {
  .has-media { display: block; min-height: clamp(400px, 38vw, 540px); }
  .has-media .page-head-inner { display: grid; align-content: center; min-height: inherit; padding-bottom: clamp(48px, 6.5vw, 104px); }
  .has-media h1 { max-width: min(11.5em, 58vw); font-size: clamp(2.125rem, 4.4vw, 3.625rem); }
  .has-media p { max-width: min(46ch, 52vw); }
  .page-head-media { position: absolute; inset: 0 0 0 auto; z-index: -1; width: 46%; aspect-ratio: auto; }
  .page-head-media img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 52%);
    mask-image: linear-gradient(to right, transparent 0, #000 52%);
  }
}
.head-facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: clamp(22px, 3vw, 36px);
  color: var(--on-navy-soft);
  font-size: 1.0625rem;
}
@media (min-width: 900px) {
  .head-facts { flex-direction: row; gap: 0; }
  .head-facts li + li { margin-left: 20px; padding-left: 20px; border-left: 1px solid var(--rule-on-navy); }
}

/* Heading left, words right */
.duo { display: grid; gap: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 72px); }
@media (min-width: 860px) {
  .duo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}

/* Faculty roll: name and home country on the left, biography on the right, like a handbook listing */
.faculty-title { font-size: clamp(1.75rem, 2.7vw, 2.375rem); line-height: 1.12; }
.faculty-roll { margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--navy); }
.fac { display: grid; gap: 14px clamp(32px, 5vw, 72px); padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--rule); }
.fac h3 { font-family: var(--serif); font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 400; line-height: 1.2; }
.fac-place { margin-top: 8px; color: var(--brass-deep); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; line-height: 1.4; text-transform: uppercase; }
.fac-bio { max-width: 68ch; }
.fac-bio p { color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.0625rem); line-height: 1.65; text-wrap: pretty; }
.fac-bio p + p { margin-top: 0.85em; }
.fac-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: 600 0.875rem/1.4 var(--sans);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
@media (min-width: 860px) {
  .fac { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
}

/* Participant feedback page: every quote in one list, read top to bottom */
.quote-list { border-top: 2px solid var(--navy); }
.quote-list li {
  display: grid;
  grid-template-columns: clamp(40px, 6vw, 96px) minmax(0, 1fr);
  padding-block: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}
.quote-list li::before {
  content: "“";
  color: var(--brass);
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 0.8;
}
.quote-list blockquote, .quote-list footer { grid-column: 2; }
.quote-list blockquote p {
  max-width: 34ch;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2.375rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.quote-list footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(14px, 1.8vw, 22px);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-style: italic;
  line-height: 1.3;
}
.quote-list footer::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--brass-deep); }
.quote-foot { margin-top: clamp(32px, 4vw, 52px); }

/* Participant feedback: quotes that slide through on their own */
.stage { background: var(--navy) var(--field); color: var(--on-navy); }
.stage-inner { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 120px); border-top: 1px solid var(--rule-on-navy); }
.stage-mark { display: block; color: var(--brass); font-family: var(--display); font-size: clamp(6rem, 12vw, 10rem); line-height: 0.72; }
.voice-list { max-width: 1040px; margin-top: clamp(4px, 1vw, 12px); touch-action: pan-y; }
.voice-list li + li { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.stage .voice-list li + li { border-color: var(--rule-on-navy); }
.voice-list blockquote p {
  font-family: var(--display);
  font-size: clamp(1.875rem, 4.2vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.voice-list footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(22px, 2.8vw, 36px);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.7vw, 1.4375rem);
  font-style: italic;
  line-height: 1.3;
}
.voice-list footer::before { content: ""; flex: none; width: 48px; height: 1px; background: var(--brass-deep); }
.stage .voice-list footer { color: var(--on-navy-soft); }
.stage .voice-list footer::before { background: var(--brass); }
.js .voice-list { display: grid; overflow-x: clip; }
.js .voice-list li { grid-area: 1 / 1; margin: 0; padding: 0; border: 0; }
.js .voice-list li:not(.is-active) { visibility: hidden; }

/* One bar per quote. The lit bar fills as its turn runs out; any bar can be pressed. */
.voice-progress { display: none; gap: 8px; }
.js .voice-progress { display: flex; }
.stage .voice-progress { margin-top: clamp(28px, 4vw, 52px); }
.voice-progress button {
  position: relative;
  width: clamp(36px, 5.2vw, 64px);
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.voice-progress button::before, .voice-progress button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  height: 2px;
}
.voice-progress button::before { right: 0; background: var(--rule); transition: background-color 0.3s var(--ease-out); }
.voice-progress button::after { width: 0; background: var(--brass-deep); }
.voice-progress button.is-active::after { width: 100%; }
.voice-progress button:hover::before { background: var(--ink-soft); }
.stage .voice-progress button::before { background: var(--rule-on-navy); }
.stage .voice-progress button::after { background: var(--brass); }
.stage .voice-progress button:hover::before { background: var(--on-navy-soft); }

/* Questions and answers */
.faq-grid { display: grid; gap: clamp(40px, 6vw, 88px); }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 24px;
  align-items: center;
  padding-block: clamp(20px, 2.4vw, 28px);
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color 0.25s var(--ease-out);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { color: var(--brass-deep); }
.faq-list summary line { transition: transform 0.4s var(--ease-out); transform-origin: 10px 10px; }
.faq-list details[open] summary line:last-child { transform: scaleY(0); }
.faq-list summary:hover { color: var(--brass-deep); }
.answer { max-width: 62ch; padding: 0 44px clamp(24px, 3vw, 32px) 0; color: var(--ink-soft); }
.answer ol { margin-top: 14px; font-variant-numeric: lining-nums tabular-nums; }
.answer li + li { margin-top: 4px; }

.glance { padding: clamp(28px, 3.2vw, 44px); background: var(--navy) var(--field); color: var(--on-navy); box-shadow: var(--lift); }
.glance div + div { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule-on-navy); }
.glance dt { color: var(--on-navy-soft); font-size: 0.9375rem; }
.glance dd { margin-top: 2px; font-family: var(--display); font-size: clamp(2rem, 3vw, 2.625rem); line-height: 1.05; }
.glance dd span { color: var(--brass); font-size: clamp(1rem, 1.5vw, 1.3125rem); letter-spacing: 0.08em; text-transform: uppercase; }
.glance .btn { width: 100%; margin-top: 28px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .glance { position: sticky; top: 104px; }
}
@media (max-width: 959px) {
  .glance { order: 2; }
}

/* Forms */
.form-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.group { display: grid; gap: 22px clamp(32px, 5vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.group + .group { margin-top: clamp(40px, 5vw, 64px); }
.group > h3 { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 400; line-height: 1.25; }
@media (min-width: 960px) {
  .group { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: start; }
}
.form { display: grid; gap: 22px 24px; align-items: end; }
@media (min-width: 720px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .full { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.field input:not([type="checkbox"]), .field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  border: 1px solid #8490a6;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  caret-color: var(--brass-deep);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.field textarea { min-height: 88px; resize: vertical; field-sizing: content; }
.field textarea[rows="4"] { min-height: 156px; }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy), 0 0 0 4px rgba(199, 159, 97, 0.55);
}
.field input[type="file"] { padding: 10px 11px; color: var(--ink-soft); font-size: 0.9375rem; }
.field input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 14px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--paper);
  color: var(--navy);
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.field label.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }

.panel { padding: clamp(24px, 3.2vw, 40px); border: 1px solid var(--rule); background: var(--mist); }

/* Applicant declarations: a numbered list the applicant agrees to with one tick */
.declarations { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--rule); border-top: 2px solid var(--navy); background: var(--mist); }
.declarations h4 { color: var(--brass-deep); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; line-height: 1.4; text-transform: uppercase; }
.declarations > p { margin-top: 12px; color: var(--ink); font-family: var(--serif); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.45; }
.declarations ol { margin-top: 18px; counter-reset: decl; }
.declarations li {
  position: relative;
  padding: 16px 0 16px 40px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
  counter-increment: decl;
}
.declarations li::before {
  content: counter(decl);
  position: absolute;
  left: 0;
  top: 13px;
  color: var(--brass-deep);
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.2;
}
.declarations li:last-child { padding-bottom: 0; }
.declarations strong { color: var(--ink); font-weight: 600; }
.panel p { max-width: 62ch; color: var(--ink-soft); }
.panel p + p, .panel .bank + p { margin-top: 14px; }
.panel .amount { color: var(--ink); font-family: var(--display); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.1; }
.bank { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; margin-top: 20px; padding-block: 20px; border-block: 1px solid var(--rule); }
.bank dt { color: var(--ink-soft); }
.bank dd { color: var(--ink); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 520px) {
  .bank { grid-template-columns: 1fr; gap: 2px; }
  .bank dd + dt { margin-top: 12px; }
}

.form-note { color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.5; text-wrap: pretty; }
.form-status { padding: 16px 18px; border: 1px solid var(--brass-deep); background: #fbf6ec; color: var(--ink); }
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: #a23b2a; background: #fbefec; }
.form-status.is-sent { border-color: #3c6e47; background: #eef6ef; }
/* Spam trap: hidden from people, filled in only by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* Privacy and Terms */
.legal { max-width: 72ch; }
.legal h2 { margin-top: clamp(36px, 4.5vw, 52px); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }
.legal h2:first-child { margin-top: 0; }
.legal > p:first-child { color: var(--ink-soft); font-size: 0.875rem; letter-spacing: 0.02em; }
.legal > p:first-child + h2 { margin-top: 24px; }
.legal p, .legal li { color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.0625rem); line-height: 1.7; }
.legal h2 + p, .legal h2 + ul { margin-top: 14px; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.9em; }
.legal ul { padding-left: 1.25em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--brass-deep); }
.legal a { color: var(--navy); text-underline-offset: 3px; }
.legal strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 88px); }
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
/* Details and enquiry form joined as one sheet */
.contact-sheet { display: grid; background: var(--paper); box-shadow: var(--lift); }
.contact-sheet .contact-card { padding: clamp(28px, 3.8vw, 56px); box-shadow: none; }
.contact-form { padding: clamp(28px, 3.8vw, 56px); }
.contact-form h2 { margin-bottom: clamp(22px, 2.8vw, 36px); font-size: clamp(1.75rem, 2.7vw, 2.375rem); line-height: 1.12; }
.field .optional { color: var(--ink-soft); font-weight: 400; }
@media (min-width: 860px) {
  .contact-sheet { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.contact-card { padding: clamp(28px, 3.4vw, 48px); background: var(--navy) var(--field); color: var(--on-navy); box-shadow: var(--lift); }
.contact-card div + div { margin-top: clamp(20px, 2.4vw, 28px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--rule-on-navy); }
.contact-card dt { color: var(--brass); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-card dd { margin-top: 6px; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.3; overflow-wrap: anywhere; }
.contact-card a { text-decoration-color: var(--rule-on-navy); transition: text-decoration-color 0.25s var(--ease-out); }
.contact-card a:hover { text-decoration-color: currentColor; }

/* Footer */
.site-footer { padding-block: clamp(56px, 7vw, 96px) 36px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.7; }
.footer-grid { display: grid; gap: 36px clamp(32px, 5vw, 72px); }
.site-footer .org { max-width: 13em; text-wrap: balance; color: var(--ink); font-family: var(--display); font-size: clamp(1.625rem, 2.4vw, 2.125rem); line-height: 1.1; }
.site-footer .org + p { max-width: 34ch; margin-top: 16px; }
.site-footer h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.site-footer li + li { margin-top: 6px; }
.site-footer a { text-decoration-color: transparent; transition: text-decoration-color 0.25s var(--ease-out), color 0.25s var(--ease-out); }
.site-footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
/* Bottom row: copyright left, credit centred, links right */
.footer-base {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
}
.footer-base ul { display: flex; justify-content: flex-end; gap: 24px; }
.site-footer .footer-base li + li { margin-top: 0; }
.footer-base .credit { text-align: center; white-space: nowrap; }
.footer-base .credit a { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); }
}

/* Application form: each part numbered, so a long form reads as six short steps */
form[data-preview] { counter-reset: part; }
.group { counter-increment: part; }
.group > h3::before {
  content: counter(part);
  display: block;
  margin-bottom: 6px;
  color: var(--brass-deep);
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1;
}

/* Phones: long sections are tightened, turned into rows, or made to swipe sideways */
@media (max-width: 719px) {
  :root { --section: 56px; }

  /* Tall photos become wide ones */
  .learn-photo { max-width: none; }
  .learn-photo img { aspect-ratio: 4 / 3; object-position: 50% 26%; }

  /* Ticked lists and tables: smaller boxes, same words */
  .reasons li { gap: 12px; padding: 16px; font-size: 1.0625rem; }
  .syllabus td, .regs .syllabus td { font-size: 1.0625rem; }
  .syllabus tbody th, .syllabus td, .regs .syllabus tbody th, .regs .syllabus td { padding-block: 16px; }
  .syllabus .no, .regs .syllabus .no { width: 48px; font-size: 1.625rem; }
  .syllabus .mark { width: 36px; }
  .pillars li { gap: 12px; padding-block: 18px; }

  /* Faculty biographies: long ones open to a short preview, with a button to read the rest */
  .fac-bio.is-clamped {
    max-height: 13.5em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 60%, transparent);
    mask-image: linear-gradient(#000 60%, transparent);
  }

  /* Quotes: a little smaller, so the longest one stays on one screen */
  .voice-list blockquote p { font-size: 1.625rem; line-height: 1.2; }
  .pull-mark { justify-self: center; font-size: 4.5rem; }
  /* Feedback slider is centred on phones: mark, quote, name, bars and button */
  .pull { text-align: center; }
  .pull .voice-list { margin-inline: auto; }
  .pull .voice-list footer { flex-direction: column; gap: 12px; }
  .pull .voice-foot { flex-direction: column; align-items: center; }
  .pull .voice-progress { justify-content: center; }

  /* Forms: closer together */
  .group { gap: 16px; padding-top: 24px; }
  .group + .group { margin-top: 28px; }
  .form { gap: 16px; }
  .field textarea { min-height: 76px; }
  .panel { padding: 20px; }
  .contact-sheet .contact-card, .contact-form { padding: 24px 20px; }

  /* Footer: the two link lists sit side by side */
  .site-footer { padding-top: 44px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .site-footer .org { font-size: 1.5rem; }
  .site-footer .org + p { margin-top: 10px; }
  .site-footer h2 { margin-bottom: 8px; }
  .site-footer li + li { margin-top: 8px; }
  .footer-base { grid-template-columns: 1fr; justify-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; text-align: center; }
  .footer-base ul { order: -1; justify-content: center; }
}

/* Phones: the seven dates as one compact row each, all visible at once */
@media (max-width: 639px) {
  .dates { grid-template-columns: minmax(0, 1fr); }
  .dates li, .dates li:last-child {
    grid-column: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
  }
  .dates time { display: flex; align-items: baseline; gap: 10px; }
  .dates .days { font-size: 1.625rem; }
}

/* Phones: the application form opens one numbered part at a time */
.step-head { all: unset; cursor: pointer; }
.step-head:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.is-stepped .step-head { display: block; flex: 1; min-height: 44px; padding-block: 9px; }
.is-stepped .group { gap: 0; padding-top: 0; }
.is-stepped .group + .group { margin-top: 0; }
.is-stepped .group > h3 { display: flex; align-items: center; gap: 14px; padding-block: 8px; }
.is-stepped .group > h3::before { flex: none; width: 1.1em; margin: 0; font-size: 1.625rem; }
.is-stepped .group > h3::after { margin-left: auto; color: var(--ink-soft); font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.is-stepped .group.is-done > h3::after { content: "Done"; color: var(--brass-deep); }
.is-stepped .group:not(.is-open) > :not(h3) { display: none; }
.is-stepped .group:not(.is-open):not(.is-done) > h3 { color: var(--ink-soft); }
.is-stepped .group.is-open { padding-bottom: 28px; }
.is-stepped form > .group:last-child { border-bottom: 1px solid var(--rule); }
.step-next { margin-top: 20px; }
.step-count { margin-bottom: 18px; color: var(--ink-soft); font-size: 0.9375rem; }

@media (max-width: 359px) {
  .dates li, .dates li:last-child { flex-wrap: wrap; row-gap: 4px; }
}

/* Motion: the page settles in as you reach each part */
@media (prefers-reduced-motion: no-preference) {
  .stack .line > span { animation: rise 1.1s var(--ease-out) both; }
  .stack .line:nth-child(2) > span { animation-delay: 0.1s; }
  .stack .line:nth-child(3) > span { animation-delay: 0.2s; }
  .stack .line:nth-child(4) > span { animation-delay: 0.3s; }
  .hero-copy, .facts { animation: settle 1s var(--ease-out) 0.55s both; }
  .page-head-media { animation: develop 1.8s var(--ease-out) 0.15s both; }
  .page-head h1 { animation: settle 1s var(--ease-out) both; }
  .page-head p, .page-head .head-facts { animation: settle 1s var(--ease-out) 0.12s both; }
  .js .voice-list li {
    visibility: hidden;
    opacity: 0;
    transform: translateX(56px);
    transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out), visibility 0s 0.7s;
  }
  .js .voice-list li.is-leaving { transform: translateX(-56px); }
  .js .voice-list li.is-active {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--ease-out) 0.2s, transform 1s var(--ease-out) 0.2s, visibility 0s;
  }
  .is-playing .voice-progress button.is-active::after { animation: fill 2s linear both; }
  @keyframes fill { from { width: 0; } }
  @keyframes rise { from { transform: translateY(104%); } }
  @keyframes settle { from { opacity: 0; transform: translateY(14px); } }
  @keyframes develop { from { opacity: 0; transform: scale(1.05); } }

  .js [data-reveal] { opacity: 0; transform: translateY(22px); }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  }
  .js [data-reveal="wipe"] { opacity: 1; transform: none; overflow: hidden; }
  .js [data-reveal="wipe"] img { clip-path: inset(0 0 100% 0); transform: scale(1.1); }
  .js [data-reveal="wipe"].is-in img {
    clip-path: inset(0 0 0 0);
    transform: none;
    transition: clip-path 1.3s var(--ease-out), transform 1.7s var(--ease-out);
  }
  .js [data-reveal="stagger"] { opacity: 1; transform: none; }
  .js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(16px); }
  .js [data-reveal="stagger"].is-in > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), background-color 0.4s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s;
  }
  .reveal-all [data-reveal], .reveal-all [data-reveal] > *, .reveal-all [data-reveal] li, .reveal-all [data-reveal] .year, .reveal-all [data-reveal] img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn svg, .site-nav li a, .site-nav li a::after, .faq-list summary line, .voice-progress button::before, .field input, .field textarea, .reasons li { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
