/* Classic School of Administration
   World: the registry file. Navy pressboard jackets, ruled minute paper, gold registry stamps. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy-950: #07112f;
  --navy-900: #0a1845;
  --navy-800: #0d1f5c;
  --navy-700: #16307f;
  --navy-600: #2a4596;
  --gold-200: #f0dfb0;
  --gold-300: #e3c77e;
  --gold-500: #c9a24b;
  --gold-700: #7d5f1b;
  --red-600: #a3302a;

  --desk: #e9edf3;
  --paper: #fafbfc;
  --paper-2: #f2f4f8;
  --rule: #d6dce7;
  --rule-strong: #b7c0d2;
  --ink: #10142a;
  --ink-2: #3f4660;
  --ink-3: #596079;
  --on-navy: #f3f5fa;
  --on-navy-2: #bcc6e2;

  --font-sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-type: "Courier Prime", "Courier New", monospace;
  --font-serif: "Source Serif 4", Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --header-h: 72px;

  --shadow-sheet: 0 1px 2px rgb(13 31 92 / 0.08), 0 18px 40px -18px rgb(13 31 92 / 0.35);
  --shadow-lift: 0 2px 4px rgb(7 17 47 / 0.18), 0 24px 48px -20px rgb(7 17 47 / 0.55);
  --focus: var(--navy-600);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--navy-700) var(--desk);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--desk);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--gold-300); color: var(--navy-950); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-navy { --focus: var(--gold-300); color: var(--on-navy); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-800); color: var(--on-navy);
  padding: 10px 16px; border-radius: var(--radius);
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform: translateY(76px); }

.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */
.display,
.h1, .h2, .h3 {
  font-family: var(--font-sans);
  font-stretch: 74%;
  font-weight: 780;
  letter-spacing: -0.012em;
  word-spacing: 0.08em;
  line-height: 1.02;
}
.h1 { font-size: clamp(2.7rem, 1.4rem + 4.8vw, 5.4rem); }
.h2 { font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.6rem); line-height: 1.04; }
.h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.15; letter-spacing: -0.012em; font-stretch: 85%; }
.lede { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.on-navy .lede { color: var(--on-navy-2); }
.typed { font-family: var(--font-type); letter-spacing: 0; }
.measure { max-width: 66ch; }
.muted { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-bg-hover: var(--navy-700);
  --btn-fg: var(--on-navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px;
  padding: 0 1.35em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 1rem;
  font-stretch: 92%;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .i { width: 1.2em; height: 1.2em; }
.btn--gold { --btn-bg: var(--gold-500); --btn-bg-hover: var(--gold-300); --btn-fg: var(--navy-950); }
.btn--line {
  --btn-bg: transparent; --btn-bg-hover: rgb(13 31 92 / 0.06); --btn-fg: var(--navy-800);
  border-color: var(--rule-strong);
}
.on-navy .btn--line { --btn-fg: var(--on-navy); --btn-bg-hover: rgb(255 255 255 / 0.08); border-color: rgb(188 198 226 / 0.45); }
.btn--sm { min-height: 42px; padding: 0 1em; font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-bg-hover); }
  .btn--line:hover { border-color: currentColor; }
}
.btn .i-arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .i-arrow { transform: translateX(3px); }
}

.text-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 650; color: var(--navy-700);
  text-decoration: underline; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px;
}
.on-navy .text-link { color: var(--gold-300); text-decoration-color: rgb(227 199 126 / 0.5); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: currentColor; }
}

/* ---------- stamps ---------- */
.stamp {
  --stamp-ink: var(--gold-700);
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.42em 0.8em 0.36em;
  border: 2px solid var(--stamp-ink);
  outline: 1px solid var(--stamp-ink);
  outline-offset: -5px;
  border-radius: 3px;
  color: var(--stamp-ink);
  font-family: var(--font-sans);
  font-stretch: 68%;
  font-weight: 820;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(var(--tilt, -4deg));
}
.stamp--red { --stamp-ink: var(--red-600); }
.stamp--navy { --stamp-ink: var(--navy-700); }
.stamp--gold-on-navy { --stamp-ink: var(--gold-300); }
.stamp--flat { --tilt: 0deg; }


/* ---------- scroll motion ---------- */
/* Reveals are opted in by main.js only for content below the fold, and only without reduced motion. */
[data-reveal] {
  transition:
    opacity 600ms var(--ease-out) calc(var(--i, 0) * 60ms),
    transform 700ms var(--ease-out) calc(var(--i, 0) * 60ms);
}
[data-reveal]:not(.is-in) { opacity: 0; }
[data-reveal="rise"]:not(.is-in) { transform: translateY(24px); }
[data-reveal="sheet"]:not(.is-in) { transform: translateY(48px) rotate(-0.8deg); }
[data-reveal="photo"] {
  transition:
    clip-path 800ms var(--ease-in-out),
    transform 1100ms var(--ease-out);
}
[data-reveal="photo"]:not(.is-in) { opacity: 1; clip-path: inset(100% 0 0 0); transform: scale(1.08); }

/* the grade figure lands in two beats: 13, then the arrow and 14 */
.grade__to { display: inline-block; }
.grade[data-reveal] .grade__figure .i,
.grade[data-reveal] .grade__to {
  transition: opacity 500ms var(--ease-out) 320ms, transform 700ms var(--ease-out) 320ms;
}
.grade[data-reveal] .grade__to { transition-delay: 460ms; }
.grade[data-reveal]:not(.is-in) .grade__figure .i { opacity: 0; transform: translateX(-28px); }
.grade[data-reveal]:not(.is-in) .grade__to { opacity: 0; transform: translateY(0.25em); }

/* scroll-linked: a gold reading line under the header, and the hero photo lifting off the file as you leave it */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after {
      content: "";
      position: absolute; left: 0; right: 0; bottom: -1px;
      height: 2px;
      background: var(--gold-500);
      transform-origin: 0 50%;
      transform: scaleX(0);
      animation: read-progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes read-progress { to { transform: scaleX(1); } }

/* GSAP motion layer (assets/js/motion.js) */
.intro .hero .hero__grid,
.intro .hero-levels,
.intro .jacket__tabs,
.intro .page-hero__grid { visibility: hidden; }

.grade__to { overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.roll { display: flex; flex-direction: column; }
.roll > span { display: block; height: 1em; line-height: 1; }

.minute__progress {
  position: absolute; top: 0; bottom: 0; left: clamp(26px, 3.6vw, 60px);
  width: 2px; margin-left: -0.5px;
  background: var(--gold-500);
  transform-origin: 50% 0;
  transform: scaleY(0);
  pointer-events: none;
}

.is-parallax { overflow: hidden; border-radius: 4px; }
.is-parallax img { will-change: transform; }

/* page to page: the old page steps back, the new file is laid down; the header stays put */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 200ms cubic-bezier(0.23, 1, 0.32, 1) both vt-out; }
::view-transition-new(root) { animation: 320ms cubic-bezier(0.23, 1, 0.32, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(250 251 252 / 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-stuck { border-bottom-color: var(--rule); box-shadow: 0 8px 24px -18px rgb(13 31 92 / 0.45); }
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy-800);
  margin-right: auto;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand__name {
  display: flex; flex-direction: column;
  font-stretch: 74%; font-weight: 820; text-transform: uppercase;
  font-size: 0.98rem; line-height: 1; letter-spacing: 0.02em;
}
.brand__name span + span { margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 12px;
  font-weight: 560; font-size: 0.97rem;
  color: var(--ink-2); text-decoration: none;
  transition: color 160ms ease;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav a[aria-current="page"],
.nav a.is-active { color: var(--navy-800); }
.nav a[aria-current="page"]::after,
.nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--navy-800); }
  .nav a:hover::after { transform: scaleX(1); }
}
.header-cta { margin-left: 8px; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: transparent; color: var(--navy-800); cursor: pointer;
}
.menu-toggle .i { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgb(13 31 92 / 0.45);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-header.menu-open .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--rule); }
  .site-header.menu-open .nav a::after { display: none; }
  .site-header.menu-open .nav .btn { margin-top: 18px; color: var(--on-navy); border-bottom: 0; padding: 0 1.35em; }
  .nav .nav-cta-mobile { display: inline-flex; }
}
.nav .nav-cta-mobile { display: none; }
.nav a.btn, .nav a.btn:hover { color: var(--on-navy); }
.nav a.btn::after { display: none; }

/* ---------- jacket (navy file) ---------- */
.desk { padding: 44px 0 0; }
.desk--tabs { padding-top: 58px; }
.jacket {
  position: relative;
  background: var(--navy-800);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), var(--shadow-lift);
}
.jacket__tab {
  position: absolute; left: clamp(20px, 4vw, 48px); top: -30px;
  height: 31px; padding: 0 28px 0 22px;
  display: inline-flex; align-items: center;
  background: var(--navy-800);
  color: var(--on-navy-2);
  font-stretch: 72%; font-weight: 720; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  clip-path: polygon(0 100%, 10px 0, calc(100% - 10px) 0, 100% 100%);
  border-radius: 4px 4px 0 0;
}
.jacket__tabs {
  position: absolute; left: clamp(20px, 4vw, 48px); right: clamp(20px, 4vw, 48px); top: -38px;
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.jacket__tabs::-webkit-scrollbar { display: none; }
.jacket__tabs a {
  flex: none;
  display: inline-flex; align-items: center;
  height: 39px; padding: 0 22px;
  background: var(--navy-900);
  color: var(--on-navy-2);
  font-stretch: 74%; font-weight: 720; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  transition: background-color 180ms ease, color 180ms ease;
  --focus: var(--gold-300);
}
.jacket__tabs a:first-child { background: var(--navy-800); color: var(--gold-300); }
.jacket__tabs a:focus-visible { outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .jacket__tabs a:not(:first-child):hover { background: var(--navy-700); color: var(--on-navy); }
}
@media (max-width: 640px) {
  .jacket__tabs { left: 10px; right: 10px; top: -34px; gap: 3px; }
  .jacket__tabs a { flex: 1 1 auto; justify-content: center; height: 35px; padding: 0 6px; font-size: 0.7rem; letter-spacing: 0.03em; font-stretch: 66%; }
}
.jacket__holes {
  position: absolute; left: 14px; top: 28px;
  display: grid; gap: 64px;
}
.jacket__holes::before,
.jacket__holes::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--desk);
  box-shadow: inset 0 1px 1px rgb(7 17 47 / 0.6);
}

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) clamp(22px, 4.5vw, 64px) 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.cover-label {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: clamp(26px, 3.4vw, 48px) clamp(24px, 3.4vw, 48px) clamp(28px, 3.4vw, 44px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 20px 40px -24px rgb(0 0 0 / 0.6);
}
.cover-label::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  pointer-events: none;
}
.cover-label .h1 { color: var(--navy-800); max-width: 13ch; }
.cover-label .lede { margin-top: 18px; max-width: 44ch; }

/* minuted prose: the serif lives only on paper */
.cover-label .lede,
.award-list p,
.minute .measure,
.entry,
.rulings p,
.commitments li span,
.fee-note {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
}
.cover-label .lede { font-size: clamp(1.15rem, 1.02rem + 0.4vw, 1.35rem); line-height: 1.5; }
.award-list p, .rulings p { font-size: 1.08rem; line-height: 1.55; }
.entry { font-weight: 480; letter-spacing: -0.005em; }
.route__note { font-family: var(--font-serif); font-size: 1.08rem; }

/* paper surfaces laid on a navy jacket go back to ink colours */
.on-navy .cover-label,
.on-navy .form-sheet { --focus: var(--navy-600); color: var(--ink); }
.on-navy .cover-label .lede,
.on-navy .form-sheet .lede { color: var(--ink-2); }
.on-navy .cover-label .btn--line,
.on-navy .form-sheet .btn--line { --btn-fg: var(--navy-800); --btn-bg-hover: rgb(13 31 92 / 0.06); border-color: var(--rule-strong); }
.on-navy .form-sheet a:not(.btn) { color: var(--navy-700); }
.cover-label__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; position: relative; }
.cover-label__ref {
  margin-top: 28px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-type); font-size: 0.88rem; color: var(--ink-3);
}
.btn--slip {
  --btn-bg: var(--gold-500); --btn-bg-hover: var(--gold-300); --btn-fg: var(--navy-950);
  position: relative;
  padding-left: 2.6em; padding-right: 1.5em;
  border-radius: 2px;
  font-family: var(--font-sans);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 6.5px, #000 7px);
  mask: radial-gradient(circle 7px at 0 50%, transparent 6.5px, #000 7px);
  box-shadow: 0 1px 0 rgb(125 95 27 / 0.35);
}
.btn--slip::before {
  content: ""; position: absolute; left: 1.35em; top: 0; bottom: 0;
  border-left: 2px dashed rgb(7 17 47 / 0.45);
}
.cover-label .stamp { position: absolute; right: clamp(18px, 3vw, 40px); top: clamp(-16px, -1vw, -10px); --tilt: 5deg; background: var(--paper); }

.pinned {
  position: relative;
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.7);
  transform: rotate(1.4deg);
}
.pinned img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%;
  border-radius: 2px;
}
.pinned figcaption {
  padding: 10px 4px 12px;
  font-family: var(--font-type); font-size: 0.86rem; color: var(--ink-3);
}
.pinned__clip {
  position: absolute; top: -26px; left: 28px;
  width: 44px; height: 70px;
  color: var(--gold-500);
  fill: currentColor;
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.35));
}
.seal {
  position: absolute; left: -58px; bottom: 34px;
  width: 150px; height: 150px;
  color: var(--gold-300);
  --tilt: -12deg;
  transform: rotate(var(--tilt));
}
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal image { overflow: visible; }
.seal text { font-family: var(--font-sans); font-stretch: 70%; font-weight: 820; fill: currentColor; text-transform: uppercase; }

/* levels track */
.levels {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: none;
}
.level {
  position: relative;
  padding: 18px 18px 20px;
}
.level__code {
  display: block;
  font-stretch: 72%; font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  line-height: 1; letter-spacing: -0.01em;
}
.level__step { display: block; font-family: var(--font-type); font-size: 0.82rem; margin-bottom: 8px; }
.level__name { display: block; margin-top: 6px; font-size: 0.92rem; line-height: 1.35; }

.hero-levels {
  margin-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid rgb(188 198 226 / 0.25);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch;
}
.hero-levels .levels { color: var(--on-navy); }
.hero-levels .level + .level { border-left: 1px solid rgb(188 198 226 / 0.18); }
.hero-levels .level__step { color: var(--gold-300); }
.hero-levels .level__name { color: var(--on-navy-2); }
.hero-levels__duration {
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 0 20px 28px;
  border-left: 1px solid rgb(188 198 226 / 0.25);
  color: var(--on-navy-2); font-size: 0.92rem; line-height: 1.35;
}
.hero-levels__duration strong {
  display: block; color: var(--gold-300);
  font-stretch: 72%; font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1; margin-bottom: 6px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .pinned { max-width: 520px; margin-inline: auto 8px; transform: rotate(1deg); }
  .pinned img { aspect-ratio: 4 / 3; }
  .seal { left: -14px; bottom: -34px; width: 118px; height: 118px; }
  .hero-levels { grid-template-columns: 1fr; margin-top: 56px; }
  .hero-levels__duration { border-left: 0; border-top: 1px solid rgb(188 198 226 / 0.25); padding: 18px; flex-direction: row; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .hero-levels__duration strong { margin: 0; }
}
@media (max-width: 640px) {
  .desk { padding-top: 40px; }
  .desk--tabs { padding-top: 52px; }
  .hero { padding-inline: 14px; }
  .jacket__holes { display: none; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-levels .level:nth-child(3) { border-left: 0; }
  .hero-levels .level:nth-child(n + 3) { border-top: 1px solid rgb(188 198 226 / 0.18); }
  .level { padding: 16px 14px; }
  .cover-label .stamp { top: -14px; right: 14px; font-size: 0.72rem; }
  .cover-label__actions .btn { flex: 1 1 100%; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--paper { background: var(--paper); }
.section--tight-top { padding-top: clamp(40px, 5vw, 64px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .h2 { color: var(--navy-800); }
.section-head .lede { margin-top: 18px; }
.on-navy .section-head .h2 { color: var(--on-navy); }

/* recognition */
.recognition {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.grade {
  color: var(--navy-800);
}
.grade__figure {
  margin: 0;
  display: flex; align-items: center; gap: 0.12em;
  font-stretch: 64%; font-weight: 850;
  font-size: clamp(4.4rem, 2.8rem + 6.4vw, 9rem);
  line-height: 0.86; letter-spacing: -0.03em;
  white-space: nowrap;
}
.grade__figure .i { width: 0.62em; height: 0.62em; color: var(--gold-500); }
.grade__figure small { font-size: 0.42em; letter-spacing: 0; align-self: flex-start; margin-top: 0.14em; margin-right: 0.08em; }
.grade__text { margin-top: 24px; font-size: 1.12rem; color: var(--ink-2); max-width: 40ch; }

.register { list-style: none; border-top: 2px solid var(--navy-800); }
.register li {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.register__key { font-stretch: 74%; font-weight: 760; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.86rem; color: var(--gold-700); padding-top: 4px; }
.register__val { font-size: 1.08rem; color: var(--ink); }
.register__val strong { display: block; font-stretch: 85%; font-weight: 720; font-size: 1.2rem; color: var(--navy-800); margin-bottom: 4px; }
@media (max-width: 900px) {
  .recognition { grid-template-columns: 1fr; }
  .register li { grid-template-columns: 1fr; }
  .register__key { display: none; }
}

/* awards (minute sheet) */
.awards {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.photo-frame { position: relative; margin: 0; }
.photo-frame img { width: 100%; object-fit: cover; border-radius: 4px; }
.awards .photo-frame img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.photo-frame .stamp { position: absolute; right: -14px; bottom: 28px; background: var(--paper); --tilt: -7deg; }

.minute {
  position: relative;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: var(--shadow-sheet);
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 52px) clamp(28px, 4vw, 48px) clamp(44px, 6vw, 88px);
}
.minute::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: clamp(26px, 3.6vw, 60px);
  width: 1px; background: rgb(163 48 42 / 0.45);
}
.minute .h2 { color: var(--navy-800); }
.award-list { list-style: none; margin-top: 28px; }
.award-list li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.award-list .i { width: 40px; height: 40px; color: var(--gold-700); }
.award-list h3 { font-stretch: 86%; font-weight: 720; font-size: 1.28rem; line-height: 1.2; color: var(--navy-800); }
.award-list p { margin-top: 6px; color: var(--ink-2); }
.section--paper .minute { background: #fff; }
@media (max-width: 900px) {
  .awards { grid-template-columns: 1fr; }
  .awards .photo-frame img { aspect-ratio: 16 / 11; }
  .photo-frame .stamp { right: 12px; }
}

/* admission */
.admission {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.entry {
  font-stretch: 88%; font-weight: 560;
  font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.7rem); line-height: 1.35; color: var(--navy-800);
  margin-bottom: 36px;
}
.rulings { list-style: none; display: grid; gap: 0; }
.rulings li { padding: 22px 0; border-top: 1px solid var(--rule); }
.rulings li:last-child { border-bottom: 1px solid var(--rule); }
.rulings .stamp { --tilt: -2deg; margin-bottom: 12px; }
.rulings p { color: var(--ink-2); }
.rulings strong { color: var(--ink); font-weight: 650; }
@media (max-width: 960px) { .admission { grid-template-columns: 1fr; } }

/* route checker */
.checker {
  position: relative;
  background: var(--navy-800);
  color: var(--on-navy);
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
  padding: clamp(24px, 3.4vw, 44px);
  --focus: var(--gold-300);
}
.checker .h3 { color: var(--on-navy); font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); font-stretch: 78%; }
.checker > p { color: var(--on-navy-2); margin-top: 8px; max-width: 52ch; }
.checker fieldset { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.checker legend { font-weight: 650; margin-bottom: 12px; color: var(--on-navy); padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgb(188 198 226 / 0.4);
  border-radius: var(--radius);
  font-size: 0.95rem; line-height: 1.3; font-weight: 520;
  color: var(--on-navy);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.choice input:checked + span { background: var(--paper); color: var(--navy-900); border-color: var(--paper); font-weight: 650; }
.choice input:focus-visible + span { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.choice input:active + span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .choice input:not(:checked):hover + span { border-color: var(--on-navy-2); background: rgb(255 255 255 / 0.05); }
}

.route { margin-top: 30px; padding-top: 26px; border-top: 1px dashed rgb(188 198 226 / 0.35); }
.route .levels { gap: 10px; }
.route .level {
  border-radius: 4px;
  padding: 16px 14px 18px;
  min-height: 132px;
  background: var(--paper);
  color: var(--navy-900);
  border: 1px solid var(--paper);
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out), opacity 240ms var(--ease-out);
}
.route .level__step { color: var(--ink-3); transition: color 240ms ease; }
.route .level__name { color: var(--ink-2); font-size: 0.86rem; transition: color 240ms ease; }
.route .level__code { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); white-space: nowrap; }
.route .level .stamp { margin-top: 12px; font-size: 0.74rem; --tilt: -3deg; }
.route .level[data-state="exempt"] {
  background: transparent; color: var(--on-navy-2);
  border: 1px dashed rgb(188 198 226 / 0.45);
}
.route .level[data-state="exempt"] .level__step,
.route .level[data-state="exempt"] .level__name { color: rgb(188 198 226 / 0.75); }
.route .level[data-state="exempt"] .stamp,
.route .level[data-state="assess"] .stamp { --stamp-ink: var(--gold-300); }
.route .level[data-state="assess"] {
  background: rgb(255 255 255 / 0.06); color: var(--on-navy);
  border: 1px dotted rgb(227 199 126 / 0.7);
}
.route .level[data-state="assess"] .level__step,
.route .level[data-state="assess"] .level__name { color: var(--on-navy-2); }
.route .level[data-state="start"] { box-shadow: 0 0 0 3px var(--gold-500); }

.route__result { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: end; }
.route__duration {
  font-stretch: 74%; font-weight: 800; color: var(--gold-300);
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1;
}
.route__note { margin-top: 8px; color: var(--on-navy-2); max-width: 56ch; }
.route__subjects { margin-top: 22px; }
.route__subjects h4 { font-weight: 650; font-size: 0.98rem; color: var(--on-navy); margin-bottom: 10px; }
.route__subjects ol { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.route__subjects li { padding: 7px 0; border-top: 1px solid rgb(188 198 226 / 0.18); color: var(--on-navy-2); font-size: 0.95rem; line-height: 1.35; }
@media (max-width: 640px) {
  .route .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route__result { grid-template-columns: 1fr; }
  .route__result .btn { width: 100%; }
  .route__subjects ol { grid-template-columns: 1fr; }
}
.route [data-swap] { transition: opacity 180ms ease, filter 180ms ease; }
.route.is-updating [data-swap] { opacity: 0.35; filter: blur(2px); }
@media (prefers-reduced-motion: reduce) {
  .route.is-updating [data-swap] { filter: none; }
}

/* faculties */
.foundation {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 2px solid var(--navy-800);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.foundation .h3 { color: var(--navy-800); }
.foundation p { color: var(--ink-2); margin-top: 8px; }
.subject-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px;
}
.subject-grid li {
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-weight: 560; color: var(--ink); line-height: 1.35;
}
@media (max-width: 900px) {
  .foundation { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .subject-grid { grid-template-columns: 1fr; } }

.file-tabs { position: relative; }
.tablist {
  position: relative;
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 clamp(8px, 2vw, 24px);
  margin-bottom: -1px;
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: none;
  padding: 14px 22px 13px;
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--paper-2);
  color: var(--ink-2);
  font-stretch: 84%; font-weight: 680; font-size: 1rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.tab[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--on-navy); }
.tab:focus-visible { outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .tab:not([aria-selected="true"]):hover { background: #fff; color: var(--navy-800); }
}
.tabpanel {
  background: var(--navy-800);
  border-radius: 6px;
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: var(--shadow-lift);
}
.tabpanel[hidden] { display: none; }
.tabpanel__sheet {
  background: var(--paper);
  border-radius: 3px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stage { padding: clamp(22px, 2.6vw, 34px); }
.stage + .stage { border-left: 1px solid var(--rule); }
.stage h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stage h3 span:first-child { font-stretch: 72%; font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--navy-800); }
.stage h3 span:last-child { font-family: var(--font-type); font-weight: 400; font-size: 0.86rem; color: var(--ink-3); }
.stage ul { list-style: none; }
.stage li { padding: 10px 0; border-top: 1px solid var(--rule); line-height: 1.35; color: var(--ink); }
.stage--final { background: #fff; }
.stage--final h3 span:first-child { color: var(--gold-700); }
@media (max-width: 900px) {
  .tabpanel__sheet { grid-template-columns: 1fr; }
  .stage + .stage { border-left: 0; border-top: 1px solid var(--rule); }
}
.faculties-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.faculties-foot p { color: var(--ink-2); max-width: 60ch; }

/* study + venue */
.study {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px); align-items: stretch;
}
.study__photo { margin: 0; position: relative; min-height: 420px; }
.study__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.methods { display: grid; gap: 0; align-content: start; }
.method { padding: 26px 0; border-top: 1px solid rgb(188 198 226 / 0.25); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
.method:first-of-type { border-top: 0; padding-top: 0; }
.method .i { width: 40px; height: 40px; color: var(--gold-300); }
.method h3 { font-stretch: 84%; font-weight: 720; font-size: 1.35rem; line-height: 1.2; color: var(--on-navy); }
.method p { color: var(--on-navy-2); margin-top: 6px; }

.timetable {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
  border-top: 1px solid rgb(188 198 226 / 0.3);
}
.timetable > div { padding: 26px 26px 6px 0; }
.timetable > div + div { padding-left: 26px; border-left: 1px solid rgb(188 198 226 / 0.2); }
.timetable dt { font-family: var(--font-type); color: var(--gold-300); font-size: 0.9rem; margin-bottom: 8px; }
.timetable dd { margin: 0; color: var(--on-navy); }
.timetable .big { display: block; font-stretch: 72%; font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem); line-height: 1; margin-bottom: 8px; }
.timetable .small { color: var(--on-navy-2); font-size: 0.98rem; }
.timetable .text-link { margin-top: 12px; }
@media (max-width: 960px) {
  .study { grid-template-columns: 1fr; }
  .study__photo { min-height: 0; }
  .study__photo img { position: static; aspect-ratio: 16 / 10; height: auto; }
  .timetable { grid-template-columns: 1fr; }
  .timetable > div, .timetable > div + div { padding: 22px 0; border-left: 0; }
  .timetable > div + div { border-top: 1px solid rgb(188 198 226 / 0.2); }
}

/* fees */
.fees {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.fee-sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fee-sheet { background: #fff; border-radius: 4px; box-shadow: var(--shadow-sheet); padding: 26px 24px; }
.fee-sheet h3 { font-stretch: 84%; font-weight: 720; font-size: 1.15rem; line-height: 1.25; color: var(--navy-800); padding-bottom: 14px; border-bottom: 2px solid var(--navy-800); }
.fee-sheet ul { list-style: none; }
.fee-sheet li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.fee-note { margin-top: 14px; font-size: 0.98rem; color: var(--ink-3); }
.coordinator {
  position: relative;
  background: var(--navy-800); color: var(--on-navy);
  border-radius: 6px; box-shadow: var(--shadow-lift);
  padding: clamp(26px, 3vw, 40px);
  --focus: var(--gold-300);
}
.coordinator .stamp { position: absolute; top: -14px; right: 22px; background: var(--navy-800); --tilt: 4deg; }
.coordinator .coordinator__role { color: var(--gold-300); margin-top: 4px; }
.coordinator .coordinator__name { color: var(--on-navy); }
.coordinator__name { font-stretch: 78%; font-weight: 800; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.05; margin-top: 4px; }
.coordinator p { color: var(--on-navy-2); margin-top: 14px; }
.coordinator__actions { display: grid; gap: 10px; margin-top: 22px; }
.coordinator__actions .btn { justify-content: flex-start; }
@media (max-width: 960px) { .fees { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .fee-sheets { grid-template-columns: 1fr; } }

/* about */
.about {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
}
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 32px; }
.services li { padding: 18px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.commitments { background: #fff; border-radius: 4px; box-shadow: var(--shadow-sheet); padding: clamp(24px, 3vw, 36px); align-self: start; }
.commitments h3 { color: var(--navy-800); margin-bottom: 8px; }
.commitments ul { list-style: none; margin-top: 10px; }
.commitments li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); }
.commitments .i { width: 22px; height: 22px; color: var(--gold-700); margin-top: 3px; }
.address-block { margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--navy-800); color: var(--ink-2); font-size: 0.98rem; }
.address-block strong { color: var(--ink); display: block; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-stretch: 88%; font-weight: 680; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem); color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; transition: transform 220ms var(--ease-out); color: var(--gold-700); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* enrol */
.enrol { padding: clamp(40px, 5vw, 72px) clamp(22px, 4.5vw, 64px); }
.enrol__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.enrol .h2 { color: var(--on-navy); }
.enrol .lede { margin-top: 16px; }
.contact-list { list-style: none; margin-top: 30px; }
.contact-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid rgb(188 198 226 / 0.22); color: var(--on-navy-2); }
.contact-list .i { width: 24px; height: 24px; color: var(--gold-300); margin-top: 2px; }
.contact-list strong { display: block; color: var(--on-navy); font-weight: 650; }
.contact-list a { color: var(--on-navy); text-decoration-color: rgb(227 199 126 / 0.6); }

.form-sheet {
  position: relative;
  background: var(--paper); color: var(--ink);
  border-radius: 4px;
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.65);
  --focus: var(--navy-600);
}
.form-sheet .h3 { color: var(--navy-800); }
.form-sheet > p { color: var(--ink-2); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 24px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 620; font-size: 0.95rem; color: var(--ink); }
.field .hint { font-size: 0.86rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%230d1f5c'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input::placeholder, .field textarea::placeholder { color: #6b7289; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgb(42 69 150 / 0.25); }
.field [aria-invalid="true"] { border-color: var(--red-600); }
.field .error { display: none; font-size: 0.88rem; color: var(--red-600); font-weight: 560; }
.field [aria-invalid="true"] ~ .error { display: block; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-actions p { font-size: 0.9rem; color: var(--ink-3); max-width: 38ch; }
.form-status {
  display: none;
  margin-top: 20px; padding: 18px 20px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius); background: #fff;
}
.form-status.is-visible { display: block; }
.form-status strong { color: var(--navy-800); }
.form-status p { margin-top: 6px; color: var(--ink-2); }
.form-status .btn { margin-top: 12px; }
@media (max-width: 960px) { .enrol__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* page hero (inner pages) */
.page-hero { padding: clamp(32px, 4vw, 56px) clamp(22px, 4.5vw, 64px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero .h1 { color: var(--on-navy); font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); max-width: 15ch; }
.page-hero .lede { margin-top: 18px; }
.page-hero .cover-label__actions { margin-top: 26px; }
.page-hero .pinned img { aspect-ratio: 4 / 3; }
.breadcrumb { list-style: none; display: flex; gap: 8px; font-family: var(--font-type); font-size: 0.9rem; color: var(--on-navy-2); margin-bottom: 20px; }
.breadcrumb a { color: var(--gold-300); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgb(188 198 226 / 0.6); }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero .pinned { max-width: 560px; }
}

/* full faculty sheets (courses page) */
.faculty-block + .faculty-block { margin-top: clamp(48px, 6vw, 80px); }
.faculty-block__head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.faculty-block__head .h3 { color: var(--navy-800); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-stretch: 78%; }

/* map */
.map-frame { margin: 0; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-sheet); background: var(--paper-2); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
.venues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.venue { position: relative; background: #fff; border-radius: 4px; box-shadow: var(--shadow-sheet); padding: clamp(22px, 3vw, 34px); }
.venue .stamp { position: absolute; top: 22px; right: 22px; --tilt: 4deg; }
.venue h3 { padding-right: 110px; }
.venue h3 { font-stretch: 84%; font-weight: 720; font-size: 1.35rem; color: var(--navy-800); line-height: 1.2; }
.venue p { color: var(--ink-2); margin-top: 8px; }
.venue .text-link { margin-top: 14px; }
@media (max-width: 760px) { .venues { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--navy-950); color: var(--on-navy-2); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); --focus: var(--gold-300); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 1.8fr) minmax(0, 2.4fr) minmax(0, 3.2fr); gap: 36px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; }
.footer-brand strong { display: block; color: var(--on-navy); font-stretch: 74%; font-weight: 820; text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; letter-spacing: 0.02em; }
.footer-brand p { margin-top: 10px; font-size: 0.95rem; max-width: 36ch; }
.footer-motto { font-family: var(--font-type); color: var(--gold-300); margin-top: 8px; font-size: 0.92rem; }
.site-footer h2 { font-size: 0.95rem; font-weight: 650; color: var(--on-navy); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; font-size: 0.96rem; }
.site-footer a { color: var(--on-navy-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--gold-300); text-decoration: underline; } }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(188 198 226 / 0.18); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.88rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgb(250 251 252 / 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  transition: transform 260ms var(--ease-out);
}
.action-bar .btn { flex: 1; min-height: 48px; }
.action-bar.is-hidden { transform: translateY(110%); }
@media (max-width: 760px) {
  .action-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* closing band (inner pages) */
.closing { display: grid; grid-template-columns: minmax(0, 7fr) auto; gap: 24px 48px; align-items: center; }
.closing .lede { margin-top: 14px; }
.closing .cover-label__actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 900px) {
  .closing { grid-template-columns: 1fr; }
  .closing .cover-label__actions { justify-content: flex-start; }
}

.timetable .small--address { color: var(--on-navy); font-size: 1.08rem; }

/* ---------- phone type scale ----------
   One size per role on phones, so headings, figures, prose and labels line up across every section. */
@media (max-width: 640px) {
  :root {
    --fs-display: 2.5rem;   /* 40px  page titles */
    --fs-h2: 2rem;          /* 32px  section headings */
    --fs-figure: 1.75rem;   /* 28px  condensed figures and level codes */
    --fs-h3: 1.375rem;      /* 22px  card, sheet and row headings */
    --fs-lead: 1.125rem;    /* 18px  intro paragraphs, statements, questions */
    --fs-body: 1.0625rem;   /* 17px  all running text, sans or serif */
    --fs-small: 0.9375rem;  /* 15px  supporting text, form labels, choices */
    --fs-caption: 0.875rem; /* 14px  typed references and captions */
    --fs-label: 0.75rem;    /* 12px  stamps and index tabs */
  }

  .h1,
  .page-hero .h1 { font-size: var(--fs-display); line-height: 1.04; }

  .h2 { font-size: var(--fs-h2); line-height: 1.06; }

  .grade__figure { font-size: 4rem; }

  .level__code,
  .route .level__code,
  .hero-levels__duration strong,
  .route__duration,
  .timetable .big,
  .stage h3 span:first-child { font-size: var(--fs-figure); }

  .h3,
  .checker .h3,
  .foundation .h3,
  .faculty-block__head .h3,
  .commitments h3,
  .award-list h3,
  .method h3,
  .venue h3,
  .fee-sheet h3,
  .coordinator .coordinator__name { font-size: var(--fs-h3); line-height: 1.15; }

  .lede,
  .cover-label .lede,
  .page-hero .lede,
  .entry,
  .register__val strong,
  .faq summary { font-size: var(--fs-lead); line-height: 1.45; }

  body,
  .grade__text,
  .register__val,
  .award-list p,
  .rulings p,
  .route__note,
  .minute .measure,
  .checker > p,
  .foundation p,
  .faculties-foot p,
  .method p,
  .fee-sheet li,
  .coordinator p,
  .services li,
  .commitments li span,
  .faq .answer,
  .contact-list li,
  .form-sheet > p,
  .venue p,
  .subject-grid li,
  .stage li,
  .timetable .small.small--address { font-size: var(--fs-body); }

  .award-list p,
  .rulings p,
  .route__note,
  .minute .measure,
  .commitments li span { line-height: 1.55; }

  .timetable .small,
  .fee-note,
  .address-block,
  .route__subjects h4,
  .route__subjects li,
  .choice span,
  .field label,
  .level__name,
  .route .level__name,
  .hero-levels__duration,
  .form-actions p,
  .coordinator .coordinator__role { font-size: var(--fs-small); }

  .timetable dt,
  .breadcrumb,
  .cover-label__ref,
  .level__step,
  .stage h3 span:last-child,
  .field .hint { font-size: var(--fs-caption); }

  .stamp,
  .route .level .stamp,
  .cover-label .stamp,
  .jacket__tabs a { font-size: var(--fs-label); }

  /* give the minute sheet's prose a full measure on narrow screens */
  .minute { padding-left: 34px; padding-right: 20px; }
  .minute::before { left: 18px; }
  .award-list li { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
  .award-list .i { width: 30px; height: 30px; }
}
@media (max-width: 380px) {
  .jacket__tabs { gap: 2px; }
  .jacket__tabs a { padding: 0 3px; letter-spacing: 0.01em; }
}
