/* ==========================================================================
   TMS Surat — "Engine" design system
   Display: Anybody (variable wdth/wght) · Text: Instrument Sans ·
   Accent: Instrument Serif italic · Labels: JetBrains Mono
   Motif: the crest's peaks — particles, ridge fills, ridge wipes, open frames.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --paper: #F4EFEA;
  --paper-2: #EDE6DE;
  --white: #FFFDFB;
  --ink: #141A2E;
  --ink-soft: #4C5165;
  --blue: #385CA7;
  --blue-2: #4B70BD;
  --navy: #293567;
  --navy-2: #1E284F;
  --grey: #C8C7C7;
  --green: #25984A;
  --green-dark: #0E5C36;
  --green-light: #5FBF80;
  --line: rgba(20, 26, 46, .13);
  --line-light: rgba(244, 239, 234, .16);

  --f-disp: "Anybody", "Arial Narrow", Impact, sans-serif;
  --f-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* type scale */
  --fs-h1: clamp(46px, 11vw, 150px);
  --fs-h2: clamp(34px, 5.4vw, 78px);
  --fs-h3: clamp(21px, 2.2vw, 28px);
  --fs-lead: clamp(19px, 1.7vw, 23px);
  --fs-body: 1.0625rem;
  --fs-small: 15px;

  --gut: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --bar-h: 64px;
  --sec: clamp(56px, 7vw, 104px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-tap: 100ms;
  --t-ui: 240ms;
}
@media (min-width: 900px) { :root { --fs-body: 1.125rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 64px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: var(--fs-body); line-height: 1.55;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--green-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .mast :focus-visible, .menu :focus-visible, .obar :focus-visible, .foot :focus-visible { outline-color: var(--green-light); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.sec--white { background: var(--white); }
.sec--sand { background: var(--paper-2); }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec--blue { background: var(--blue); color: var(--paper); }
.rule { border-top: 1px solid var(--line); }

/* ---------- type roles ---------- */
.lbl { font-family: var(--f-mono); font-size: 12px; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.on-dark .lbl, .mast .lbl, .sec--ink .lbl, .sec--blue .lbl { color: rgba(244, 239, 234, .72); }
.lbl .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 2px; }

.kin { font-family: var(--f-disp); font-weight: 600; font-variation-settings: "wdth" var(--w, 80); letter-spacing: -.022em; line-height: .9; }
.kin em, .serif-em em, .h2 em, .h3 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-variation-settings: normal;
  letter-spacing: -.01em; color: var(--green); font-size: 1.07em; line-height: .8;
}
.on-dark .kin em, .mast .kin em, .sec--ink .kin em, .sec--blue .kin em, .sec--blue .h2 em, .sec--ink .h2 em { color: var(--green-light); }
.kin .ch { display: inline-block; font-variation-settings: "wdth" var(--w, 80); will-change: transform; }
.kin em .ch { font-variation-settings: normal; }
.fitting .ch { font-variation-settings: "wdth" 80 !important; }
.fitting em .ch { font-variation-settings: normal !important; }
.line { display: block; white-space: nowrap; }
.lm { display: block; overflow: hidden; padding: .02em .14em .16em 0; margin: -.02em -.14em -.16em 0; }

.h1 { font-size: var(--fs-h1); }
.h2 { font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 88; letter-spacing: -.02em; line-height: 1; font-size: var(--fs-h2); }
.h3 { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 92; letter-spacing: -.012em; line-height: 1.02; font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft); max-width: 40ch; }
.on-dark .lead, .sec--ink .lead, .sec--blue .lead, .mast .lead { color: rgba(244, 239, 234, .88); }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-small); }

.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head--row { align-items: end; }
@media (min-width: 900px) { .sec-head--row { grid-template-columns: 1fr minmax(0, 40ch); gap: 64px; } }

/* ---------- buttons & links ---------- */
.btn {
  --bg: transparent; --fg: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-text); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-tap) ease-out, background-color var(--t-ui), color var(--t-ui), box-shadow var(--t-ui);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 400ms var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-solid { --bg: var(--green); --fg: #fff; box-shadow: 0 10px 24px -12px rgba(14, 92, 54, .8); }
.btn-solid:hover { --bg: var(--green-dark); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover { --bg: var(--blue); }
.btn-line { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: rgba(127, 127, 127, .1); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) left calc(100% - 8px) / 100% 1.5px no-repeat; transition: background-size 900ms var(--ease-out); }
.link:hover { background-size: 0 1.5px; background-position: right calc(100% - 8px); }
.link svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.on-dark .chip, .sec--blue .chip, .sec--ink .chip { background: rgba(244, 239, 234, .1); box-shadow: inset 0 0 0 1px var(--line-light); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gut); color: var(--paper);
  transition: background-color var(--t-ui), color var(--t-ui), transform 450ms var(--ease-out), box-shadow var(--t-ui);
  view-transition-name: bar;
}
.bar.solid { background: rgba(244, 239, 234, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.bar.tuck { transform: translateY(-100%); }
.menu-open .bar { background: transparent !important; color: var(--paper) !important; box-shadow: none !important; transform: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 36px; height: 36px; object-fit: contain; background: var(--paper); border-radius: 8px; padding: 3px; }
.brand-name { font-family: var(--f-disp); font-size: 21px; font-weight: 640; font-variation-settings: "wdth" 70; letter-spacing: -.01em; }
.brand-name b { font-weight: 300; }
.bar-links { display: none; }
@media (min-width: 1100px) {
  .bar-links { display: flex; gap: 2px; }
  .bar-links a { position: relative; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: 15px; }
  .bar-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-ui) var(--ease-out); }
  .bar-links a:hover::after, .bar-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
}
.bar-actions { display: flex; align-items: center; gap: 8px; }
.btn-enquire { min-height: 44px; padding: 0 16px; font-size: 15px; background: var(--green); color: #fff; }
.btn-enquire:hover { background: var(--green-dark); }
@media (max-width: 380px) { .btn-enquire { padding: 0 12px; } }
.btn-menu { min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.menu-lines { display: grid; gap: 5px; width: 18px; }
.menu-lines i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 300ms var(--ease-out); }
.menu-open .menu-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.back-chip { position: fixed; z-index: 75; left: 12px; top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: 0 0;  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; padding: 8px 12px; border-radius: 999px; text-decoration: none; background: rgba(20, 26, 46, .78); color: var(--paper); transition: opacity var(--t-ui); }
@media (max-width: 1199px) { .back-chip { display: none; } }

/* ==========================================================================
   MENU — ridge wipe, full sitemap
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 78; background: var(--ink); color: var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0 round 0 0 50% 50%);
  transition: clip-path 1000ms var(--ease-io);
}
.menu.open { clip-path: inset(0 0 0 0 round 0); }
.menu-inner { min-height: 100%; display: grid; gap: 36px; padding: calc(var(--bar-h) + 24px) var(--gut) 40px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
@media (min-width: 1000px) { .menu-inner { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 72px; } }
.menu .lbl { color: rgba(244, 239, 234, .56); margin-bottom: 10px; }
.menu-main a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; padding: 4px 0; border-bottom: 1px solid var(--line-light); }
.mi-n { font-family: var(--f-mono); font-size: 12px; color: var(--green-light); width: 22px; flex: none; }
.mi-t { display: inline-block; font-family: var(--f-disp); font-weight: 460; letter-spacing: -.015em; font-size: clamp(32px, 7.5vw, 60px); line-height: 1.12; font-variation-settings: "wdth" var(--w, 90); transition: font-variation-settings 900ms var(--ease-out), color 600ms, transform 900ms var(--ease-out); }
.menu-main a:hover .mi-t, .menu-main a:focus-visible .mi-t, .menu-main a[aria-current="page"] .mi-t { --w: 108; color: var(--green-light); transform: translateX(8px); }
.menu-peek { display: none; }
@media (min-width: 1000px) and (hover: hover) {
  .menu-peek { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 28px; border-radius: 10px; background: var(--navy); }
  .menu-peek img { width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms, transform 1s var(--ease-out); }
}
.menu-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-bottom: 22px; }
.menu-sub a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-light); }
.menu-sub a:hover { color: var(--green-light); }
.menu-contact { font-size: 16px; line-height: 1.9; margin-bottom: 18px; }
.menu-contact a { text-decoration: none; }
.menu [data-anim] { opacity: 0; transform: translateY(28px); }
.menu.open [data-anim] { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out) calc(240ms + var(--d, 0ms)), transform 700ms var(--ease-out) calc(240ms + var(--d, 0ms)); }
.motion-toggle { min-height: 44px; padding: 0 14px; border-radius: 999px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 1px currentColor; opacity: .8; }
.motion-toggle:hover { opacity: 1; }

/* ==========================================================================
   MASTHEAD (sub pages) + HERO (home)
   ========================================================================== */
.mast, .hero { position: relative; background: var(--blue); color: var(--paper); }
.mast-stage, .hero-pin {
  position: relative; overflow: hidden;
  background:
    radial-gradient(110% 70% at 72% 30%, var(--blue-2) 0%, rgba(75, 112, 189, 0) 62%),
    linear-gradient(180deg, rgba(41, 53, 103, 0) 38%, rgba(30, 40, 84, .92) 100%),
    var(--blue);
}
.mast-stage { min-height: min(88svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--bar-h) + 28px) 0 clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .mast-stage { min-height: min(86vh, 860px); } }
.field { position: absolute; inset: 0; width: 100%; height: 100%; }
.mast-copy { position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.crumbs a { text-decoration: none; opacity: .75; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.mast .kin-hero { max-width: 100%; }
@media (min-width: 900px) { .mast .kin-hero { max-width: 52%; } }
.kin-hero { font-size: var(--fs-h1); font-weight: 680; line-height: .86; letter-spacing: -.026em; }
.kin-hero em { color: var(--green-light); }
.mast .lead { margin-top: 20px; max-width: 44ch; }
.mast-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* sticky in-page index */
.toc { position: sticky; top: 0; z-index: 60; background: rgba(244, 239, 234, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top 450ms var(--ease-out); }
.bar.solid:not(.tuck) ~ main .toc { top: var(--bar-h); }
.toc-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px var(--gut); max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; scroll-snap-type: x proximity; }
.toc-in::-webkit-scrollbar { display: none; }
.toc a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-soft); scroll-snap-align: start; transition: background var(--t-ui), color var(--t-ui); }
.toc a span { font-family: var(--f-mono); font-size: 11px; opacity: .6; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.toc-progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--green); transform-origin: left; transform: scaleX(var(--p, 0)); width: 100%; }

/* hero photo under the masthead: opens through a ridge */
.mast-photo { position: relative; background: linear-gradient(180deg, #202b59 0 40%, var(--paper) 40%); }
.mast-photo figure { position: relative; height: clamp(260px, 62vw, 720px); overflow: hidden; clip-path: inset(0 var(--rx, 0%) 0 var(--rx, 0%) round var(--rr, 0px)); }
.mast-photo img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.mast-photo figcaption { position: absolute; right: var(--gut); bottom: 16px; z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: rgba(20, 26, 46, .6); padding: 6px 10px; border-radius: 4px; }
.mast-photo::after { content: ""; display: block; height: 0; }

/* ==========================================================================
   REVEALS
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1100ms var(--ease-out), transform 1300ms var(--ease-out); transition-delay: var(--rd, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-ridge] { clip-path: inset(18% 6% 0 6% round 18px); opacity: 0; transition: clip-path 1.6s var(--ease-out), opacity 1.2s var(--ease-out); transition-delay: var(--rd, 0ms); }
.js [data-ridge].in { clip-path: inset(0 0 0 0 round 8px); opacity: 1; }
.js [data-ridge] img { transform: scale(1.12); transition: transform 2s var(--ease-out); }
.js [data-ridge].in img { transform: none; }

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* --- media frame with open corners (crest frame) --- */
.frame { position: relative; }
.frame::before { content: ""; position: absolute; inset: -10px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--fc, var(--blue)), var(--fc, var(--blue))) center top / calc(100% - 56px) 3px no-repeat,
    linear-gradient(var(--fc, var(--blue)), var(--fc, var(--blue))) center bottom / calc(100% - 56px) 3px no-repeat,
    linear-gradient(var(--fc, var(--blue)), var(--fc, var(--blue))) left center / 3px calc(100% - 56px) no-repeat,
    linear-gradient(var(--fc, var(--blue)), var(--fc, var(--blue))) right center / 3px calc(100% - 56px) no-repeat; }
.ph { position: relative; overflow: hidden; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.ph-43 { aspect-ratio: 4 / 3; } .ph-169 { aspect-ratio: 16 / 9; } .ph-45 { aspect-ratio: 4 / 5; } .ph-11 { aspect-ratio: 1; } .ph-32 { aspect-ratio: 3 / 2; }
.cap { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* --- split: text + media --- */
.split { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } .split--wide { grid-template-columns: .9fr 1.1fr; } }
.split .h2 + .lead, .split .h2 + p { margin-top: 20px; }
.split .btn, .split .link { margin-top: 24px; }

/* --- ridge-fill task tiles --- */
.tasks { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); }
@media (min-width: 900px) { .tasks { grid-template-columns: repeat(4, 1fr); } .tasks--3 { grid-template-columns: repeat(3, 1fr); } }
.tasks li { border-bottom: 1px solid var(--line); }
.tasks li:nth-child(odd) { border-right: 1px solid var(--line); }
@media (min-width: 900px) { .tasks li { border-right: 1px solid var(--line); } .tasks:not(.tasks--3) li:nth-child(4n), .tasks--3 li:nth-child(3n) { border-right: 0; } }
.task { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 4px 8px; min-height: 136px; height: 100%; padding: 14px 14px 16px; text-decoration: none; transition: color 700ms cubic-bezier(.22, 1, .36, 1) 80ms, transform var(--t-tap) ease-out; -webkit-tap-highlight-color: transparent; }
@media (min-width: 900px) { .task { min-height: 168px; padding: 20px 22px 24px; } }
.task::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tb, var(--blue)); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 1000ms cubic-bezier(.22, 1, .36, 1); }
.task--hi { --tb: var(--green); }
.task:hover, .task:focus-visible { color: var(--paper); }
.task:hover::before, .task:focus-visible::before { transform: scaleY(1); }
.task:active { transform: scale(.975); }
.task-n { font-family: var(--f-mono); font-size: 12px; opacity: .6; }
.task-a { grid-column: 2; grid-row: 1; width: 20px; height: 20px; transition: transform 900ms var(--ease-out); }
.task:hover .task-a { transform: translate(3px, -3px) rotate(-8deg); }
.task-t { grid-column: 1 / -1; align-self: end; font-family: var(--f-disp); font-weight: 520; letter-spacing: -.01em; line-height: 1.02; font-size: clamp(21px, 2.3vw, 30px); font-variation-settings: "wdth" var(--w, 90); transition: font-variation-settings 1000ms var(--ease-out); }
.task:hover .task-t, .task:focus-visible .task-t { --w: 100; }
.task-d { grid-column: 1 / -1; font-size: 14px; line-height: 1.35; color: var(--ink-soft); transition: color 700ms cubic-bezier(.22, 1, .36, 1) 80ms; }
.task:hover .task-d, .task:focus-visible .task-d { color: rgba(244, 239, 234, .86); }
.task--hi .task-t { color: var(--green); }
.task--hi:hover .task-t { color: var(--paper); }

/* --- photo cards (links) --- */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } .cards--4 .pcard { aspect-ratio: 4 / 5; min-height: 0; } }
@media (min-width: 640px) and (max-width: 999px) { .cards--4 .pcard { aspect-ratio: 4 / 5; min-height: 0; } }
.pcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 18px; overflow: hidden; isolation: isolate; border-radius: 6px; color: var(--paper); text-decoration: none; background: var(--ink); transition: transform var(--t-tap); }
@media (min-width: 900px) { .pcard { min-height: 360px; padding: 24px; } }
.pcard:active { transform: scale(.98); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease-out); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 26, 46, 0) 35%, rgba(20, 26, 46, .88) 100%); }
.pcard:hover img { transform: scale(1.06); }
.pcard .tag { align-self: flex-start; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: 4px 7px 3px; border-radius: 3px; margin-bottom: 10px; }
.pcard .t { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 92; font-size: clamp(24px, 3vw, 34px); line-height: 1; letter-spacing: -.012em; }
.pcard .d { margin-top: 8px; font-size: 15px; line-height: 1.4; color: rgba(244, 239, 234, .86); max-width: 38ch; }
.pcard .go { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 239, 234, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 900ms var(--ease-out), background 600ms; }
.pcard .go svg { width: 16px; height: 16px; }
.pcard:hover .go { transform: rotate(-45deg); background: var(--green); }
.pcard--text { background: var(--blue); }
.pcard--text::after { display: none; }
.pcard--green { background: var(--green-dark); }
.pcard .big { position: absolute; top: 12px; left: 18px; font-family: var(--f-disp); font-weight: 400; font-variation-settings: "wdth" 60; line-height: .9; letter-spacing: -.03em; font-size: clamp(56px, 12vw, 104px); }

/* --- facts / odometer --- */
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid currentColor; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
@media (max-width: 899px) { .facts > .fact:last-child:nth-child(odd) { grid-column: 1 / -1; padding-left: 0; border-left: 0; } }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 18px 12px 22px 0; border-bottom: 1px solid var(--line); }
.sec--blue .fact, .sec--ink .fact { border-color: var(--line-light); }
.fact:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.sec--blue .fact:nth-child(even), .sec--ink .fact:nth-child(even) { border-left-color: var(--line-light); }
@media (min-width: 900px) { .fact, .fact:nth-child(even) { padding: 24px 20px 28px; border-left: 1px solid var(--line); } .fact:first-child { border-left: 0; padding-left: 0; } .sec--blue .fact, .sec--ink .fact { border-left-color: var(--line-light); } }
.fact dt { font-size: 14px; line-height: 1.35; color: var(--ink-soft); max-width: 22ch; }
.sec--blue .fact dt, .sec--ink .fact dt { color: rgba(244, 239, 234, .78); }
.odo { display: flex; align-items: flex-start; font-family: var(--f-disp); font-weight: 330; font-variation-settings: "wdth" 76; font-size: clamp(58px, 14vw, 120px); line-height: 1; letter-spacing: -.03em; height: 1em; overflow: hidden; }
.odo .col { display: inline-block; position: relative; height: 1em; overflow: hidden; }
.odo .col-in { display: flex; flex-direction: column; transition: transform 1600ms var(--ease-out); transition-delay: var(--dl, 0ms); }
.odo .col-in span { height: 1em; line-height: 1; }
.odo .sep { color: var(--green); line-height: 1; }
.sec--blue .odo .sep, .sec--ink .odo .sep { color: var(--green-light); }

/* --- accordion (FAQ) --- */
.acc { border-top: 1.5px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 40px; gap: 16px; align-items: center; min-height: 64px; padding: 18px 0; font-family: var(--f-disp); font-weight: 520; font-variation-settings: "wdth" 92; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.12; letter-spacing: -.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc .pm { position: relative; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background var(--t-ui), transform 400ms var(--ease-out); }
.acc .pm::before, .acc .pm::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform 400ms var(--ease-out); }
.acc .pm::after { transform: rotate(90deg); }
.acc details[open] .pm { background: var(--ink); color: var(--paper); transform: rotate(180deg); }
.acc details[open] .pm::after { transform: rotate(0); }
.acc summary:hover .pm { background: var(--paper-2); }
.acc details[open] summary:hover .pm { background: var(--blue); }
.acc .ans { overflow: hidden; }
.acc .ans-in { padding: 0 48px 24px 0; color: var(--ink-soft); max-width: 70ch; }

/* --- stepper (admissions) --- */
.steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; padding-bottom: 36px; }
.step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step::after { content: ""; position: absolute; left: 27px; top: 56px; width: 2px; height: calc(100% - 56px); background: var(--green); transform-origin: top; transform: scaleY(var(--f, 0)); transition: transform 900ms var(--ease-out); }
.step:last-child::after { display: none; }
.step-n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-disp); font-weight: 850; font-variation-settings: "wdth" 70; font-size: 24px; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); transition: background 400ms, color 400ms, box-shadow 400ms; }
.step.in .step-n { background: var(--ink); color: var(--paper); }
.step.in::after { --f: 1; }
.step h3 { margin-top: 12px; }
.step p { margin-top: 8px; color: var(--ink-soft); max-width: 56ch; }

/* --- segmented tabs --- */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ink); transition: transform 440ms var(--ease-out), width 440ms var(--ease-out); pointer-events: none; }
.seg button { position: relative; z-index: 1; flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: color 300ms; }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { color: var(--paper); }
.sec--blue .seg, .sec--ink .seg { background: rgba(244, 239, 234, .1); }
.sec--blue .seg-ind, .sec--ink .seg-ind { background: var(--paper); }
.sec--blue .seg button[aria-selected="true"], .sec--ink .seg button[aria-selected="true"] { color: var(--ink); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: panelIn 600ms var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

/* --- quote deck --- */
.deck { scroll-padding-inline: var(--gut); display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 520px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 24px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: none; cursor: grab; }
.deck::-webkit-scrollbar { display: none; }
.deck.drag { cursor: grabbing; scroll-snap-type: none; }
.quote { scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 340px; padding: 26px; border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); user-select: none; }
.sec--blue .quote, .sec--ink .quote { background: rgba(244, 239, 234, .08); box-shadow: inset 0 0 0 1px var(--line-light); }
.quote blockquote { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.22; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--f-disp); font-style: normal; font-weight: 900; font-size: 64px; line-height: .6; color: var(--green); margin-bottom: 8px; }
.sec--blue .quote blockquote::before { color: var(--green-light); }
.who { display: flex; align-items: center; gap: 12px; }
.who img, .who .mono { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.who .mono { display: grid; place-items: center; background: var(--green-dark); color: var(--paper); font-family: var(--f-disp); font-weight: 800; }
.who b { display: block; font-weight: 600; }
.who span { font-size: 14px; opacity: .75; }
.deck-nav { display: flex; gap: 8px; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px currentColor; transition: background var(--t-ui), color var(--t-ui), transform var(--t-tap); }
.round svg { width: 18px; height: 18px; }
.round:hover { background: var(--ink); color: var(--paper); }
.sec--blue .round:hover, .sec--ink .round:hover { background: var(--paper); color: var(--ink); }
.round:active { transform: scale(.92); }

/* --- video facade --- */
.vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--ink); color: var(--paper); text-align: left; isolation: isolate; }
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out), filter 600ms; }
.vid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 26, 46, .05) 30%, rgba(20, 26, 46, .82)); }
.vid:hover img { transform: scale(1.05); }
.vid .play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); transition: transform 400ms var(--ease-out); }
.vid .play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(244, 239, 234, .6); animation: ringpulse 2.4s var(--ease-io) infinite; }
.vid .play svg { width: 28px; height: 28px; margin-left: 4px; fill: #fff; }
.vid:hover .play { transform: scale(1.08); }
.vid .vcap { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.vid .vcap b { display: block; font-family: var(--f-disp); font-weight: 780; font-variation-settings: "wdth" 84; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.05; }
.vid .vcap span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes ringpulse { 50% { transform: scale(1.12); opacity: .2; } }

/* --- gallery masonry + lightbox --- */
.masonry { columns: 2 160px; column-gap: 10px; }
@media (min-width: 900px) { .masonry { columns: 4 240px; column-gap: 14px; } }
.masonry .gi { display: block; width: 100%; margin-bottom: 10px; break-inside: avoid; overflow: hidden; border-radius: 4px; position: relative; background: var(--paper-2); }
@media (min-width: 900px) { .masonry .gi { margin-bottom: 14px; } }
.masonry .gi img { width: 100%; height: auto; transition: transform 1s var(--ease-out), filter 400ms; }
.masonry .gi:hover img { transform: scale(1.05); }
.masonry .gi span { position: absolute; left: 8px; bottom: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; background: rgba(20, 26, 46, .72); color: var(--paper); padding: 4px 7px; border-radius: 3px; opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 400ms var(--ease-out); }
.masonry .gi:hover span, .masonry .gi:focus-visible span { opacity: 1; transform: none; }
.masonry .gi[hidden] { display: none; }
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(12, 16, 30, .96); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; pointer-events: none; transition: opacity 300ms; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gut); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.lb-stage img { max-width: 94vw; max-height: 78vh; object-fit: contain; border-radius: 4px; transition: opacity 250ms, transform 450ms var(--ease-out); }
.lb-bot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gut) calc(16px + env(safe-area-inset-bottom)); }
.lb-cap { font-size: 15px; opacity: .85; }
.lb .round { color: var(--paper); }
.lb .round:hover { background: var(--paper); color: var(--ink); }

/* --- filterable list / table --- */
.search { position: relative; display: flex; align-items: center; max-width: 520px; }
.search svg { position: absolute; left: 16px; width: 18px; height: 18px; opacity: .6; }
.search input { width: 100%; min-height: 54px; padding: 0 16px 0 46px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--t-ui); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }
mark { background: color-mix(in srgb, var(--green-light) 55%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }

/* --- marquee --- */
.marq { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq-track { display: flex; gap: clamp(32px, 5vw, 72px); width: max-content; align-items: center; animation: marq var(--dur, 40s) linear infinite; }
.marq:hover .marq-track, .paused .marq-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* --- people list with hover portrait --- */
.people { border-top: 1.5px solid var(--ink); }
.people li { border-bottom: 1px solid var(--line); }
.person { display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 0; text-decoration: none; }
.p-thumb { grid-row: span 2; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--paper-2); }
.p-mono { display: grid; place-items: center; background: var(--navy); color: var(--paper); font-family: var(--f-disp); font-weight: 800; font-size: 18px; }
.p-name { font-family: var(--f-disp); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-size: clamp(28px, 6.6vw, 88px); font-variation-settings: "wdth" var(--w, 70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: font-variation-settings 500ms var(--ease-out), color var(--t-ui), transform 500ms var(--ease-out); }
.p-role { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.person:hover .p-name, .person:focus-visible .p-name { --w: 84; color: var(--blue); }
@media (min-width: 900px) and (hover: hover) {
  .person { grid-template-columns: 1fr auto; padding: 22px 0; }
  .person .p-thumb { display: none; }
  .p-role { grid-row: 1; grid-column: 2; margin: 0; }
  .p-name { grid-row: 1; }
  .person:hover .p-name { transform: translateX(16px); }
}
.peek { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: 200px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; opacity: 0; transition: opacity 250ms; }
.peek.on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* --- form --- */
.form { position: relative; background: var(--paper); color: var(--ink); padding: 28px 20px 24px; display: grid; gap: 18px; }
@media (min-width: 600px) { .form { padding: 40px 36px 36px; } }
.form.frame::before { --fc: var(--green-light); }
.form h3 { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 78; font-size: clamp(30px, 6vw, 44px); line-height: 1; letter-spacing: -.015em; }
.form-note { font-size: 14px; color: var(--ink-soft); margin-top: -8px; }
.f { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.f label, .f legend { font-weight: 600; font-size: 16px; padding: 0; }
.f input:not([type="radio"]), .f select, .f textarea { width: 100%; min-height: 52px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 0; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(20, 26, 46, .35); transition: box-shadow var(--t-ui); }
.f textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; box-shadow: inset 0 0 0 2.5px var(--blue); }
.f [aria-invalid="true"] { box-shadow: inset 0 0 0 2.5px #B3261E; }
.f-hint { font-size: 14px; color: var(--ink-soft); }
.f-err { font-size: 15px; font-weight: 600; color: #B3261E; }
.f-err[hidden] { display: none; }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: grid; place-items: center; min-height: 52px; border-radius: 4px; font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 70; font-size: 18px; box-shadow: inset 0 0 0 1.5px rgba(20, 26, 46, .35); background: var(--white); transition: background var(--t-ui), color var(--t-ui), box-shadow var(--t-ui), transform var(--t-tap); }
.pick input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.pick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.pick label:active span { transform: scale(.95); }
.form .btn-submit { width: 100%; min-height: 56px; font-size: 17px; border-radius: 4px; }
.done { display: grid; gap: 12px; }
.done[hidden] { display: none; }
.done svg { width: 120px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done .pk { stroke: var(--blue); stroke-width: 4; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s var(--ease-out) forwards; }
.done .tk { stroke: var(--green); stroke-width: 6; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .5s var(--ease-out) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form.sent > :not(.done):not(h3) { display: none; }

/* --- CTA band (admissions) --- */
.cta { position: relative; background: var(--blue); color: var(--paper); padding: clamp(80px, 11vw, 160px) 0; border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0; }
.cta-edge { display: none; }
.cta-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .cta-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; } }
.cta .kin { font-size: clamp(46px, 9vw, 120px); margin-top: 14px; font-weight: 560; }
.cta .kin em { display: block; line-height: .86; }
.cta .lead { margin-top: 22px; }
.badge-wrap { position: relative; width: 168px; height: 168px; margin-top: 32px; }
.badge { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font-family: var(--f-mono); font-size: 13.4px; letter-spacing: .2em; fill: var(--paper); }
.badge-btn { position: absolute; inset: 30px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 2px; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); transition: transform 300ms var(--ease-out), background var(--t-ui); }
.badge-btn:hover { background: var(--green-dark); }
.badge-btn svg { width: 34px; fill: rgba(255, 255, 255, .92); }
@keyframes spin { to { transform: rotate(360deg); } }
.paused .badge { animation-play-state: paused; }

/* --- next-page teaser --- */
.next { display: block; text-decoration: none; background: var(--ink); color: var(--paper); padding: clamp(48px, 8vw, 110px) 0; overflow: hidden; }
.next .lbl { color: rgba(244, 239, 234, .6); }
.next-t { display: flex; align-items: center; gap: 20px; margin-top: 12px; font-family: var(--f-disp); font-weight: 400; font-size: clamp(48px, 10vw, 140px); line-height: .9; letter-spacing: -.03em; font-variation-settings: "wdth" var(--w, 70); transition: font-variation-settings 1200ms var(--ease-out), color 800ms; }
.next-t svg { width: .5em; height: .5em; flex: none; transition: transform 600ms var(--ease-out); }
.next:hover .next-t { --w: 110; color: var(--green-light); }
.next:hover .next-t svg { transform: translateX(12px) rotate(-10deg); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 100px) 0 calc(120px + env(safe-area-inset-bottom)); overflow: hidden; border-top: 1px solid var(--line-light); }
.foot .lbl { color: rgba(244, 239, 234, .56); margin-bottom: 10px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid > :first-child { grid-column: auto; } }
.foot address { font-style: normal; }
.foot a { text-decoration: none; line-height: 2; }
.foot a:hover { color: var(--green-light); }
.foot ul a { display: inline-flex; min-height: 32px; align-items: center; }
.giant { margin: clamp(40px, 7vw, 80px) 0 0; padding: 0 var(--gut); font-family: var(--f-disp); font-weight: 300; line-height: .8; letter-spacing: -.03em; font-size: 19vw; white-space: nowrap; color: var(--blue); display: flex; justify-content: space-between; }
.giant .gl { display: inline-block; font-variation-settings: "wdth" var(--w, 70); transition: font-variation-settings 400ms var(--ease-out), color 300ms; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; font-family: var(--f-mono); font-size: 12px; color: rgba(244, 239, 234, .56); }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-light); line-height: 1; }
.socials a:hover { background: var(--paper); color: var(--ink); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   PERSONA BAR + SHEET
   ========================================================================== */
.obar { position: fixed; z-index: 70; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); width: min(460px, calc(100% - 20px)); display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 6px; border-radius: 999px; background: rgba(20, 26, 46, .94); color: var(--paper); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgba(20, 26, 46, .6); transform: translate(-50%, 150%); transition: transform 600ms var(--ease-out); view-transition-name: obar; }
.obar.show { transform: translate(-50%, 0); }
.obar.show.away, .menu-open .obar, .sheet-open .obar, .lb-open .obar { transform: translate(-50%, 150%); }
.ob-side { position: relative; min-height: 52px; padding: 0 12px 0 18px; border-radius: 999px; display: grid; grid-template-columns: 1fr auto; align-content: center; text-align: left; transition: background var(--t-ui); }
.ob-side--r { padding: 0 18px 0 12px; }
.ob-side:hover, .ob-side[aria-expanded="true"] { background: rgba(244, 239, 234, .1); }
.ob-side small { grid-column: 1; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 234, .6); line-height: 1.2; }
.ob-side b { grid-column: 1; font-weight: 600; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-side i { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 12px; height: 12px; opacity: .7; transition: transform 300ms var(--ease-out); }
.ob-side[aria-expanded="true"] i { transform: rotate(180deg); }
.orb { position: relative; width: 60px; height: 60px; margin: -14px auto 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #5A7FCB, var(--blue) 60%, var(--navy)); box-shadow: 0 10px 24px -8px rgba(56, 92, 167, .9), inset 0 0 0 1px rgba(255, 255, 255, .2); transition: transform 200ms var(--ease-out); }
.orb:active { transform: scale(.92); }
.orb svg { width: 30px; fill: var(--paper); }
.orb-ring { position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--green-light); opacity: .55; animation: breathe 3.2s var(--ease-io) infinite; }
.orb.thinking .orb-ring { animation: think 700ms var(--ease-out) infinite; opacity: 1; }
.paused .orb-ring { animation-play-state: paused; }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .2; } }
@keyframes think { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.wheel { position: absolute; bottom: calc(100% + 12px); left: 0; display: grid; gap: 6px; justify-items: start; }
.wheel--r { left: auto; right: 0; justify-items: end; }
.wheel[hidden] { display: none; }
.wheel button { min-height: 46px; padding: 0 18px; border-radius: 999px; background: rgba(20, 26, 46, .95); color: var(--paper); font-weight: 600; font-size: 15px; box-shadow: 0 10px 24px -12px rgba(20, 26, 46, .6), inset 0 0 0 1px rgba(244, 239, 234, .16); opacity: 0; transform: translateY(14px) scale(.9); transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out), background var(--t-ui); }
.wheel.open button { opacity: 1; transform: none; }
.wheel button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.wheel button:hover { background: var(--blue); color: var(--paper); }

.sheet { position: fixed; inset: 0; z-index: 110; display: grid; align-items: end; pointer-events: none; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(12, 16, 30, .5); opacity: 0; transition: opacity 400ms; }
.sheet-panel { position: relative; max-height: 86svh; overflow-y: auto; overscroll-behavior: contain; background: var(--white); border-radius: 22px 22px 0 0; padding: 12px var(--gut) calc(28px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 600ms var(--ease-out); pointer-events: auto; }
@media (min-width: 900px) { .sheet { align-items: center; justify-items: center; } .sheet-panel { width: min(1100px, 92vw); border-radius: 18px; padding: 24px 32px 32px; transform: translateY(40px) scale(.97); opacity: 0; transition: transform 600ms var(--ease-out), opacity 400ms; } }
.sheet.open { pointer-events: auto; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-panel { transform: none; opacity: 1; }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
@media (min-width: 900px) { .sheet-grab { display: none; } }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.sheet-head h2 { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 78; font-size: clamp(28px, 5vw, 48px); line-height: 1; letter-spacing: -.015em; }
.sheet-head h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--green); font-variation-settings: normal; }
.fy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .fy-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 14px; } }
.fy-grid .pcard { min-height: 190px; padding: 14px; }
.fy-grid .pcard:first-child { grid-column: span 2; min-height: 240px; }
@media (min-width: 900px) { .fy-grid .pcard { min-height: 0; padding: 20px; } .fy-grid .pcard:first-child { grid-column: span 1; grid-row: span 2; } }
.fy-grid .pcard .t { font-size: clamp(19px, 2.2vw, 28px); }
.fy-grid .pcard:first-child .t { font-size: clamp(26px, 3.4vw, 42px); }

/* drag hint */
.drag-tip { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity 200ms, transform 300ms var(--ease-out); }
.drag-tip.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ==========================================================================
   PAGE TRANSITION — the ridge wipe
   ========================================================================== */
::view-transition-old(root) { animation: 380ms ease-out both vtOut; }
::view-transition-new(root) { animation: 900ms var(--ease-out) 120ms both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .menu { clip-path: none; opacity: 0; } .menu.open { opacity: 1; }
  .js [data-reveal], .js [data-ridge] { opacity: 1; transform: none; clip-path: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================================
   SET PIECES (home, reused on sub pages)
   ========================================================================== */
/* hero (home) */
.hero-pin { height: 100vh; height: 100svh; min-height: 600px; }
.hero-copy { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(80px + env(safe-area-inset-bottom)); max-width: 720px; z-index: 2; }
.hero-step { position: absolute; left: 0; right: 0; bottom: 0; visibility: hidden; }
.hero-step.is-on { position: relative; visibility: visible; }
.hero-step .lbl { margin-bottom: 14px; }
.hero-step .lead { margin-top: 18px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-foot { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 2; }
.hero-dots { display: flex; gap: 2px; }
.hero-dots button { width: 44px; height: 44px; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: rgba(244, 239, 234, .35); transition: background var(--t-ui), width var(--t-ui) var(--ease-out); }
.hero-dots button.on::before { background: var(--paper); width: 34px; }
.scroll-cue { display: none; }
@media (min-width: 900px) {
  .hero-copy { bottom: 110px; max-width: min(46vw, 720px); }
  .hero-foot { bottom: 28px; }
  .scroll-cue { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); }
  .scroll-cue i { width: 1.5px; height: 36px; background: linear-gradient(var(--paper) 50%, rgba(244,239,234,.25) 50%); background-size: 100% 200%; animation: cue 1.6s var(--ease-io) infinite; }
}
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.static .hero-step:not(.is-on) { display: none; }

/* peak window — a photo that opens through the ridge */
.window { position: relative; padding: 0 0 var(--sec); background: var(--paper); }
.window figure { --o: 1; position: relative; height: clamp(360px, 80vw, 860px); overflow: hidden;
  clip-path: inset(0 round calc(28px * (1 - var(--o))));
  margin-inline: calc(var(--gut) * (1 - var(--o))); }
.window img { width: 100%; height: 100%; object-fit: cover; }
.window figcaption { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(20px, 4vw, 48px); color: var(--paper); z-index: 2; display: grid; gap: 10px; }
.window figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,46,0) 45%, rgba(20,26,46,.75)); }
.window .kin { font-size: clamp(38px, 7.4vw, 100px); font-weight: 560; }
.window .kin em { color: var(--green-light); }

/* vision */
.vision-text { font-family: var(--f-disp); font-weight: 420; font-variation-settings: "wdth" 90; letter-spacing: -.018em; font-size: clamp(30px, 5.6vw, 74px); line-height: 1.1; max-width: 20ch; }
@media (min-width: 900px) { .vision-text { max-width: 21ch; } }
.vision-text em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-variation-settings: normal; font-size: 1.1em; line-height: .8; }
.vision-text .vw { opacity: calc(.16 + var(--p, 1) * .84); }
.vision-text em .vw { color: color-mix(in srgb, var(--green) calc(var(--p, 1) * 100%), var(--ink-soft)); }

/* stages: dots → crest */
.stages { background: var(--paper-2); }
.stages-pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; padding: calc(var(--bar-h) + 8px) 0 96px; }
@media (min-width: 900px) { .stages-pin { align-items: center; padding-bottom: 40px; } }
.stages-grid { display: grid; gap: 12px; }
.stages-head .kin-sec { font-size: clamp(36px, 9.4vw, 100px); margin-top: 12px; }
.stage-tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.stage-tabs button { min-height: 56px; padding: 6px 4px 10px; text-align: left; display: grid; gap: 2px; align-content: end; opacity: .5; transition: opacity var(--t-ui); }
.stage-tabs button[aria-selected="true"] { opacity: 1; }
.stage-tabs b { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 70; font-size: clamp(17px, 4.6vw, 26px); line-height: 1; }
.stage-tabs span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.stage-rail { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(20, 26, 46, .15); }
.stage-rail i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--sp, .25)); }
.morph-wrap { position: relative; justify-self: center; width: min(28svh, 62vw); aspect-ratio: 1; }
.morph { width: 100%; height: 100%; overflow: visible; }
.morph-cap { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.stage-stack { position: relative; min-height: 210px; }
.stage { position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: 92px 1fr; gap: 14px; opacity: 0; transform: translateY(14px); visibility: hidden; transition: opacity 320ms var(--ease-out), transform 480ms var(--ease-out), visibility 0s 480ms; }
.stage.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity 420ms var(--ease-out) 80ms, transform 600ms var(--ease-out) 80ms, visibility 0s; }
.stage-ph { width: 92px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px;  }
.stage-ph img { width: 100%; height: 100%; object-fit: cover; }
.stage h3 { font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 90; font-size: clamp(24px, 3.4vw, 42px); line-height: 1; letter-spacing: -.015em; }
.st-cls { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 8px; font-variation-settings: normal; }
.st-lede { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--ink-soft); max-width: 44ch; }
.stage .chips { margin-top: 10px; gap: 6px; }
.stage .chip { min-height: 32px; font-size: 13px; }
@media (min-width: 900px) {
  .stages-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 64px; }
  .morph-wrap { grid-column: 2; grid-row: 1 / span 2; width: min(54vh, 34vw, 100%); align-self: center; }
  .stage-stack { grid-column: 1; min-height: 300px; margin-top: 28px; }
  .stage { grid-template-columns: 160px 1fr; gap: 24px; }
  .stage-ph { width: 160px; }
  .st-lede { font-size: 18px; }
}
.static .stage-stack { min-height: 0; display: grid; gap: 28px; }
.static .stage { position: static; opacity: 1; transform: none; visibility: visible; }
.static .stages-pin { min-height: 0; padding-block: 80px; }

/* words — photos inside the letters */
.words { border-top: 1px solid var(--line); }
.words li { border-bottom: 1px solid var(--line); }
.word { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px var(--gut) 0; text-decoration: none; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
.w-t { display: block; font-family: var(--f-disp); font-weight: 900; text-transform: uppercase; font-size: clamp(58px, 15vw, 200px); line-height: .92; letter-spacing: -.02em; font-variation-settings: "wdth" var(--w, 60); color: transparent; -webkit-text-stroke: 1.5px var(--ink); background-position: center; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; background-size: 0 0; white-space: nowrap; padding-bottom: .04em; }
.word.on .w-t { -webkit-text-stroke: 0 transparent; background-size: cover; }
.w-c { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-align: right; max-width: 14ch; line-height: 1.35; opacity: 0; transform: translateX(8px); transition: opacity 300ms, transform 500ms var(--ease-out); }
.word.on .w-c { opacity: 1; transform: none; }
@media (max-width: 560px) { .w-c { display: none; } }

/* houses prism */
.houses { --hc: #A12B25; background: color-mix(in srgb, var(--hc) 12%, var(--paper)); transition: background-color 700ms var(--ease-out); overflow: hidden; }
.houses-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .houses-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.house-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.house-now { min-width: 9ch; text-align: center; font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 80; font-size: 24px; }
.house-dots { display: flex; gap: 6px; margin-top: 14px; }
.house-dots button { width: 44px; height: 44px; display: grid; place-items: center; }
.house-dots button::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px transparent; transition: box-shadow 300ms; }
.house-dots button[aria-pressed="true"]::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); }
.prism-stage { --fw: min(66vw, 340px); perspective: 1400px; display: grid; place-items: center; height: calc(var(--fw) * 1.28 + 40px); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
@media (min-width: 900px) { .prism-stage { --fw: min(30vw, 420px); } }
.prism-stage:active { cursor: grabbing; }
.prism { position: relative; width: var(--fw); height: calc(var(--fw) * 1.28); transform-style: preserve-3d; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: var(--c); color: var(--on); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.face::before { content: ""; position: absolute; inset: auto -30% -40% -30%; height: 80%; opacity: .12; background: radial-gradient(closest-side, currentColor, transparent); }
.face img { position: relative; width: 72%; margin: 18% auto 0; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .28)); pointer-events: none; }
.face-n { position: absolute; top: 16px; left: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; }
.face b { position: relative; font-family: var(--f-disp); font-weight: 600; font-variation-settings: "wdth" 70; font-size: calc(var(--fw) * .2); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }

/* ring */
.ring-stage { --cw: clamp(170px, 42vw, 250px); position: relative; height: calc(var(--cw) * 1.3 + 60px); perspective: 1100px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; overflow: hidden; }
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 20px; width: var(--cw); height: calc(var(--cw) * 1.3); margin-left: calc(var(--cw) / -2); transform-style: preserve-3d; }
.ring > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rc { display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border-radius: 6px; text-decoration: none; overflow: hidden; color: var(--paper); background: var(--ink); box-shadow: 0 24px 40px -24px rgba(20, 26, 46, .6); }
.rc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.rc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,46,.1), rgba(20,26,46,.85)); z-index: 0; }
.rc > * { position: relative; z-index: 1; }
.rc--blue { background: var(--blue); } .rc--green { background: var(--green-dark); } .rc--paper { background: var(--white); color: var(--ink); } .rc--navy { background: var(--navy); }
.rc--blue::after, .rc--green::after, .rc--paper::after, .rc--navy::after { display: none; }
.rc .rk { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.rc .rv { font-family: var(--f-disp); font-weight: 380; font-variation-settings: "wdth" 60; font-size: calc(var(--cw) * .34); line-height: .9; letter-spacing: -.03em; }
.rc .rt { font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 86; font-size: clamp(18px, 2vw, 22px); line-height: 1.08; }
.rc .rs { font-size: 13px; opacity: .8; margin-top: 4px; }
.ring-foot { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; }
.ring-hint { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.static .ring-stage { perspective: none; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
.static .ring { position: static; display: flex; gap: 12px; width: max-content; margin: 0; padding: 0 var(--gut) 12px; transform: none !important; height: auto; }
.static .ring > * { position: relative; inset: auto; width: var(--cw); aspect-ratio: 10 / 13; transform: none !important; opacity: 1 !important; scroll-snap-align: center; }

/* for-you inline section */
.foryou-title { font-family: var(--f-disp); font-weight: 520; letter-spacing: -.018em; line-height: 1.04; font-variation-settings: "wdth" 90; font-size: clamp(32px, 5.2vw, 72px); max-width: 17ch; }
.foryou-title em { display: inline-block; font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--green); font-variation-settings: normal; font-size: 1.08em; }
.fy-controls { display: grid; gap: 14px; margin-bottom: 28px; }
@media (min-width: 900px) { .fy-controls { grid-template-columns: auto auto; justify-content: start; gap: 28px; } }
.fy-controls .seg-lbl { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
@media (max-width: 380px) { .seg button { padding: 0 11px; font-size: 14px; } }

/* logos strip */
.logos .marq-track img { height: 44px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .75; transition: filter 300ms, opacity 300ms; }
.logos .marq-track img:hover { filter: none; opacity: 1; }

/* --- school-day timeline --- */
.day { display: grid; gap: 14px; }
.day-axis, .day-row { display: grid; grid-template-columns: minmax(96px, 22%) 1fr; gap: 14px; align-items: center; }
.day-axis > div { position: relative; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--ink-soft); }
.day-row b { font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 80; font-size: clamp(17px, 2vw, 24px); line-height: 1.05; }
.day-row small { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 400; margin-top: 2px; font-family: var(--f-text); font-variation-settings: normal; }
.day-track { position: relative; height: 56px; border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--line) calc(12.5% - 1px) 12.5%), var(--white); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.day-bar { position: absolute; top: 8px; bottom: 8px; left: var(--s); width: var(--w); border-radius: 4px; background: var(--bb, var(--blue)); color: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-family: var(--f-mono); font-size: 12px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out) var(--rd, 0ms); }
.day-bar span { opacity: 0; transition: opacity 400ms 800ms; }
.day.in .day-bar { transform: none; }
.day.in .day-bar span { opacity: 1; }
@media (max-width: 600px) {
  .day-axis, .day-row { grid-template-columns: 1fr; gap: 8px; }
  .day-axis > :first-child:empty { display: none; }
  .day-row { margin-top: 18px; }
  .day-row b { font-size: 20px; }
  .day-row small { font-size: 14px; margin-top: 4px; }
  .day-track { height: 48px; }
  .day-bar { padding: 0 10px; font-size: 11px; }
}

/* --- the four looks (questioning) --- */
.looks { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .looks { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.look-q { font-family: var(--f-serif); font-style: italic; font-size: clamp(34px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -.01em; }
.look-q::before { content: "“"; color: var(--green); }
.look-q::after { content: "”"; color: var(--green); }
.look-d { margin-top: 18px; font-size: var(--fs-lead); color: var(--ink-soft); max-width: 36ch; }
.looks .ph { border-radius: 6px; }

/* --- big numbered list (values, stages) --- */
.numbered { border-top: 1.5px solid var(--ink); }
.numbered > li { display: grid; grid-template-columns: 64px 1fr; gap: 8px 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .numbered > li { grid-template-columns: 120px 1fr 1.1fr; gap: 32px; padding: 36px 0; align-items: start; } }
.numbered .n { font-family: var(--f-disp); font-weight: 330; font-variation-settings: "wdth" 80; font-size: clamp(40px, 6vw, 76px); line-height: .85; color: var(--green); }
.numbered h3 { grid-column: 2; }
.numbered p { grid-column: 2; color: var(--ink-soft); }
@media (min-width: 900px) { .numbered p { grid-column: 3; font-size: 19px; } }

/* --- stage rows (academics) --- */
.stage-row { display: grid; gap: 24px; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); align-items: center; }
@media (min-width: 900px) { .stage-row { grid-template-columns: 1fr 1fr; gap: 72px; } .stage-row:nth-child(even) > .ph { order: 2; } }
.stage-row .ph { border-radius: 6px; aspect-ratio: 4 / 3; }
.stage-row .rng { font-family: var(--f-disp); font-weight: 330; font-variation-settings: "wdth" 80; font-size: clamp(56px, 8vw, 112px); line-height: .85; letter-spacing: -.03em; color: var(--blue); }
.stage-row h3 { margin-top: 10px; }
.stage-row p { margin-top: 12px; color: var(--ink-soft); max-width: 46ch; }
.stage-row .chips { margin-top: 16px; }

/* --- pull quote --- */
.pull { font-family: var(--f-serif); font-style: italic; font-size: clamp(32px, 5.4vw, 72px); line-height: 1.06; max-width: 22ch; }
.pull + .who { margin-top: 26px; }

/* --- results list --- */
.results { margin-top: 24px; border-top: 1.5px solid var(--ink); columns: 1; }
@media (min-width: 900px) { .results { columns: 2; column-gap: 48px; } }
.results li { break-inside: avoid; display: grid; grid-template-columns: 34px 1fr 64px auto; gap: 12px; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); }
.results li[hidden] { display: none; }
.r-n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); }
.r-name { font-weight: 600; }
.r-bar { height: 6px; border-radius: 3px; background: var(--paper-2); position: relative; overflow: hidden; }
.r-bar::after { content: ""; position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(var(--v)); transition: transform 1s var(--ease-out); }
.r-p { font-family: var(--f-disp); font-weight: 520; font-variation-settings: "wdth" 70; font-size: 20px; }
.routes { margin-top: 24px; }
.routes li[hidden] { display: none; }
.routes summary { grid-template-columns: 1fr auto 40px; }
.rt-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); font-weight: 400; font-variation-settings: normal; }
.rt-stops { font-size: 16px; line-height: 1.7; }
.steps .step-n { font-size: 20px; }
.sec-head > *, .fy-controls > *, .split > *, .cta-grid > * { min-width: 0; }

.split .facts .odo { font-size: clamp(56px, 6.4vw, 104px); }
.pcard--text { padding-top: clamp(76px, 10vw, 120px); }
.fy-grid .pcard .big { font-size: clamp(40px, 9vw, 76px); }
@media (min-width: 1000px) { .mi-t { font-size: clamp(30px, 5.4vh, 54px); } .menu-inner { padding-top: calc(var(--bar-h) + 12px); padding-bottom: 24px; } }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; } }

/* ==========================================================================
   v2 — calmer components
   ========================================================================== */
/* activity list with a sticky, cross-fading photo */
.act { display: grid; gap: 40px; align-items: start; }
.act-list { border-top: 1px solid var(--line); }
.act-list li { border-bottom: 1px solid var(--line); }
.act-list a { display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 22px 0; text-decoration: none; }
.act-n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); padding-top: .9em; }
.act-t { font-family: var(--f-disp); font-weight: 440; font-variation-settings: "wdth" 92; letter-spacing: -.015em; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; color: var(--ink); opacity: .32; transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); }
.act-d { grid-column: 2; font-size: 16px; color: var(--ink-soft); max-width: 40ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 900ms var(--ease-out), opacity 700ms var(--ease-out); }
.act-list li.on .act-t { opacity: 1; transform: translateX(10px); }
.act-list li.on .act-d { max-height: 4em; opacity: 1; }
.act-thumb { display: none; }
.act-fig { position: sticky; top: calc(var(--bar-h) + 48px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--paper-2); }
.act-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1200ms var(--ease-out), transform 2200ms var(--ease-out); }
.act-fig img.on { opacity: 1; transform: none; }
.act-fig figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: rgba(20, 26, 46, .55); padding: 6px 10px; border-radius: 4px; }
@media (min-width: 900px) { .act { grid-template-columns: 1.05fr .95fr; gap: 80px; } .act-fig { max-height: calc(100vh - var(--bar-h) - 96px); } }
@media (max-width: 899px) {
  .act-fig { display: none; }
  .act-list { display: grid; grid-auto-flow: column; grid-auto-columns: 74vw; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; border: 0; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .act-list::-webkit-scrollbar { display: none; }
  .act-list li { border: 0; scroll-snap-align: start; }
  .act-list a { display: block; padding: 0; }
  .act-thumb { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
  .act-n { display: none; }
  .act-t { opacity: 1; font-size: 26px; transform: none !important; }
  .act-d { max-height: none; opacity: 1; margin-top: 4px; font-size: 15px; }
}

/* team portraits */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.team .ph { aspect-ratio: 4 / 5; border-radius: 10px; }
.team .ph img { object-position: 50% 16%; }
.team .mono-big { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--blue), var(--navy)); color: var(--paper); font-family: var(--f-disp); font-weight: 300; font-size: clamp(40px, 6vw, 72px); }
.team h3 { margin-top: 14px; font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 92; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.15; }
.team p { margin-top: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.team a { text-decoration: none; }
.team a:hover img { transform: scale(1.04); }

/* growing flower (curriculum) */
.grow-wrap { position: relative; justify-self: center; width: min(34svh, 72vw); aspect-ratio: 1; }
.grow-wrap canvas { width: 100%; height: 100%; display: block; }
@media (min-width: 900px) { .grow-wrap { grid-column: 2; grid-row: 1 / span 2; width: min(70vh, 40vw); align-self: center; } }
.stage { display: block; }

/* films: portrait-safe split cards */
.vid { display: grid; grid-template-columns: 1fr; aspect-ratio: auto; background: var(--navy-2); border-radius: 10px; }
.vid::after { display: none; }
.vid-ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.vid-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1.6s var(--ease-out); }
.vid:hover .vid-ph img { transform: scale(1.05); }
.vid-body { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 22px; }
.vid .play { position: static; width: 64px; height: 64px; margin: 0; transition: transform 900ms var(--ease-out), background 600ms; }
.vid .play::before { inset: -8px; }
.vid:hover .play { transform: scale(1.06); background: var(--green-dark); }
.vid .vcap { position: static; }
.vid .vcap b { font-weight: 540; font-variation-settings: "wdth" 92; font-size: clamp(20px, 2vw, 26px); margin-top: 6px; }
@media (min-width: 700px) { .vid { grid-template-columns: minmax(0, .8fr) 1fr; min-height: 320px; } .vid-ph { aspect-ratio: auto; } .vid-body { padding: 28px; } }
.vid.playing { display: block; aspect-ratio: 16 / 9; padding: 0; }

/* single-column quiet facts */
.facts--quiet { border-top-color: var(--line); }
.vid .play { position: relative; }
@media (min-width: 900px) { .fy-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 440px; } .fy-grid .pcard:first-child { grid-row: auto; } .fy-grid .pcard .t, .fy-grid .pcard:first-child .t { font-size: clamp(22px, 2.2vw, 30px); } }
.ph-45 img { object-position: 50% 15%; }
@media (min-width: 900px) { .split > .ph-45 { max-width: 460px; width: 100%; justify-self: center; } }

/* ==========================================================================
   v3 — source-content build
   ========================================================================== */
/* horizontal scrollers get a soft edge on small screens */
.seg { max-width: 100%; }
@media (max-width: 899px) {

}
.seg button { min-height: 44px; }

/* hero (no pin) */
.hero-pin { height: 100vh; height: 100svh; min-height: 620px; max-height: 1000px; }
.hero-copy .lead { margin-top: 18px; max-width: 42ch; }
@media (max-width: 699px) { .hero-copy { bottom: calc(76px + env(safe-area-inset-bottom)); } .hero-copy .lead { font-size: 17px; } }

/* menu: two-level */
.menu-inner { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .menu-inner { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.menu-cats { display: grid; border-top: 1px solid var(--line-light); }
.mcat { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 10px; min-height: 64px; padding: 6px 0; text-align: left; border-bottom: 1px solid var(--line-light); color: var(--paper); }
.mcat .mi-t { font-size: clamp(28px, 7vw, 56px); }
.mcat .mi-chev { width: 20px; height: 20px; opacity: .5; transition: transform 700ms var(--ease-out), opacity 400ms; }
.mcat.on .mi-t, .mcat:hover .mi-t { --w: 108; color: var(--green-light); transform: translateX(6px); }
.mcat.on .mi-chev { opacity: 1; transform: translateX(4px); }
.menu-subs { position: relative; }
.msub { display: none; }
.msub.on { display: block; animation: subIn 700ms var(--ease-out); }
@keyframes subIn { from { opacity: 0; transform: translateY(12px); } }
.msub ul { display: grid; gap: 0; margin-bottom: 22px; }
.msub a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line-light); transition: color 400ms, padding 600ms var(--ease-out); }
.msub a:hover, .msub a:focus-visible { color: var(--green-light); padding-left: 8px; }
.menu-back { display: none; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,239,234,.7); }
.menu-back svg { width: 18px; height: 18px; }
@media (max-width: 999px) {
  .menu-inner { position: relative; overflow: hidden; align-content: start; }
  .menu-subs { position: absolute; left: var(--gut); right: var(--gut); top: calc(var(--bar-h) + 24px); transform: translateX(110%); transition: transform 700ms var(--ease-out); }
  .menu-cats { transition: transform 700ms var(--ease-out), opacity 500ms; }
  .at-sub .menu-cats { transform: translateX(-30%); opacity: 0; pointer-events: none; }
  .at-sub .menu-subs { transform: none; }
  .menu-back { display: inline-flex; }
  .menu-peek { display: none; }
}
@media (min-width: 1000px) { .menu-peek { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 26px; border-radius: 10px; } .menu-peek img { width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms; } }

/* prose */
.prose--lead p { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.prose--lead p + p { margin-top: .9em; color: var(--ink-soft); }
.callout { padding: clamp(24px, 4vw, 44px); border-radius: 14px; background: var(--paper-2); margin-top: clamp(32px, 5vw, 56px); }
.callout .h3 + p { margin-top: 10px; color: var(--ink-soft); }
.callout--big { background: var(--blue); color: var(--paper); }
.callout--big .lbl { color: rgba(244,239,234,.7); }
.callout--big .lead { color: var(--paper); }
.empty { padding: clamp(28px, 5vw, 56px); border-radius: 14px; border: 1.5px dashed var(--line); text-align: center; color: var(--ink-soft); }
.on-dark .empty { border-color: var(--line-light); color: rgba(244,239,234,.7); }
.empty h3 { font-family: var(--f-disp); font-weight: 500; font-variation-settings: "wdth" 92; font-size: clamp(20px, 2.2vw, 26px); }

/* endcap (source "Contact Us" + Next) */
.endcap { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.endcap-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
.endcap-links .link { font-size: 18px; }

/* --- USP highlight --- */
.usp { position: relative; overflow: hidden; background: var(--navy-2); color: var(--paper); padding: clamp(80px, 11vw, 160px) 0; isolation: isolate; }
.usp-glow { position: absolute; left: 0; top: 0; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(closest-side, rgba(56,92,167,.55), transparent); z-index: -1; transform: translate(40vw, 10vh); transition: transform 1.4s var(--ease-out); pointer-events: none; }
.usp::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(90% 60% at 100% 0%, rgba(37,152,74,.18), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(56,92,167,.35), transparent 60%); }
.usp-head .lbl { color: var(--green-light); }
.usp-title { margin-top: 14px; font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 86; letter-spacing: -.02em; line-height: .98; font-size: clamp(40px, 8vw, 110px); }
.usp-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--green-light); font-variation-settings: normal; }
.usp-body { display: grid; gap: 26px; margin-top: clamp(32px, 5vw, 64px); }
.usp-index { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scroll-snap-type: x proximity; -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gut), #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 var(--gut), #000 88%, transparent); }
.usp-index::-webkit-scrollbar { display: none; }
.usp-index button { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); font-size: 14px; font-weight: 600; color: rgba(244,239,234,.75); transition: background 600ms var(--ease-out), color 500ms, box-shadow 500ms; }
.usp-index button span { font-family: var(--f-mono); font-size: 11px; color: var(--green-light); }
.usp-index button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.usp-index button[aria-selected="true"] span { color: var(--green-dark); }
.usp-stage { display: grid; grid-template-columns: 88px 1fr; gap: 6px 18px; align-items: start; min-height: 420px; touch-action: pan-y; }
.usp-art { grid-row: span 2; width: 88px; aspect-ratio: 1; }
.usp-art svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.usp-art path, .usp-art .usp-ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
.usp-art .usp-ring { stroke: rgba(95,191,128,.5); stroke-width: 1.2; }
.usp-art svg.draw path { animation: drawIn 1.6s var(--ease-out) forwards; animation-delay: calc(var(--k) * 180ms + 200ms); }
.usp-art svg.draw .usp-ring { animation: drawIn 1.4s var(--ease-io) forwards; }
.usp-art svg.draw { animation: floaty 6s var(--ease-io) 1.8s infinite; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(-2deg); } }
.usp-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.usp-count { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; color: rgba(244,239,234,.7); display: inline-flex; align-items: baseline; gap: 6px; overflow: hidden; }
.usp-count b { display: inline-block; font-family: var(--f-disp); font-weight: 400; font-variation-settings: "wdth" 80; font-size: 40px; letter-spacing: -.02em; color: var(--paper); line-height: 1; }
.usp-nav { display: inline-flex; gap: 8px; }
.usp .round { color: var(--paper); }
.usp-h { grid-column: 1 / -1; margin-top: 18px; font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 88; letter-spacing: -.015em; line-height: 1.02; font-size: clamp(30px, 4.6vw, 60px); }
.usp-p { grid-column: 1 / -1; margin-top: 16px; font-size: 17px; line-height: 1.62; color: rgba(244,239,234,.86); max-width: 64ch; }
@media (min-width: 1000px) {
  .usp-body { grid-template-columns: 340px 1fr; gap: 72px; align-items: start; }
  .usp-index { flex-direction: column; overflow: visible; margin: 0; padding: 0; mask: none; -webkit-mask: none; border-top: 1px solid var(--line-light); gap: 0; }
  .usp-index button { justify-content: flex-start; width: 100%; min-height: 52px; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line-light); padding: 0 12px; font-size: 15px; }
  .usp-index button[aria-selected="true"] { background: rgba(244,239,234,.08); color: var(--paper); }
  .usp-index button[aria-selected="true"] span { color: var(--green-light); }
  .usp-index button:hover { color: var(--paper); padding-left: 18px; }
  .usp-stage { grid-template-columns: 150px 1fr; gap: 10px 36px; min-height: 560px; }
  .usp-art { width: 150px; }
  .usp-p { font-size: 18px; }
}

/* --- interschool events highlight --- */
.events { position: relative; background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 160px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.events .lbl { color: var(--green-light); }
.ev-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ev-tabs::-webkit-scrollbar { display: none; }
.ev-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-light); color: rgba(244,239,234,.8); transition: background 500ms, color 500ms; }
.ev-tabs a.on { background: var(--paper); color: var(--ink); box-shadow: none; }
.ev-tabs a:hover { color: var(--paper); background: rgba(244,239,234,.1); }
.ev-tabs a.on:hover { color: var(--ink); background: var(--paper); }
.ev-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 360px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px var(--gut) 20px; scroll-padding-inline: var(--gut); cursor: grab; perspective: 1200px; }
.ev-rail::-webkit-scrollbar { display: none; }
.ev-rail.drag { cursor: grabbing; scroll-snap-type: none; }
@media (min-width: 1100px) { .ev-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; cursor: default; } }
.ev-rail--grid { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; }
@media (min-width: 640px) { .ev-rail--grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ev-rail--grid { grid-template-columns: repeat(4, 1fr); } }
.ev-card { --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 22px; border-radius: 14px; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--paper); background: var(--navy); scroll-snap-align: start; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 900ms var(--ease-out), box-shadow 700ms; box-shadow: 0 30px 60px -40px rgba(0,0,0,.9); user-select: none; -webkit-user-select: none; }
.ev-card img, .ev-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
.ev-card img { transition: transform 1.6s var(--ease-out); filter: saturate(1.05); }
.ev-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,26,46,0) 35%, rgba(20,26,46,.86)); }
.ev-card:hover img { transform: scale(1.06); }
.ev-n { position: absolute; top: 18px; left: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; }
.ev-t { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 86; letter-spacing: -.015em; line-height: 1; font-size: clamp(30px, 3.2vw, 42px); }
.ev-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.ev-count { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; color: rgba(244,239,234,.7); }
.ev-count b { font-family: var(--f-disp); font-weight: 400; font-size: 32px; color: var(--paper); }
@media (min-width: 1100px) { .ev-count { visibility: hidden; } }
.ev-more { display: grid; grid-template-columns: 1fr; margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line-light); }
@media (min-width: 700px) { .ev-more { grid-template-columns: repeat(3, 1fr); } }
.ev-more a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 0 4px; text-decoration: none; border-bottom: 1px solid var(--line-light); font-family: var(--f-disp); font-weight: 500; font-variation-settings: "wdth" 92; font-size: clamp(22px, 2.4vw, 30px); transition: color 600ms, padding 700ms var(--ease-out); }
@media (min-width: 700px) { .ev-more li + li a { border-left: 1px solid var(--line-light); padding-left: 20px; } }
.ev-more a i { font-style: normal; color: var(--green-light); font-size: 20px; transition: transform 700ms var(--ease-out); }
.ev-more a:hover { color: var(--green-light); }
.ev-more a:hover i { transform: rotate(-20deg) scale(1.2); }
.events--page { padding-top: clamp(40px, 6vw, 80px); }
.events--page .ev-rail--grid { margin-top: 24px; padding-bottom: 40px; }

/* story reel */
.reel { background: var(--ink); padding: 0 0 clamp(48px, 7vw, 96px); }
.reel .marq { -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel .marq-track { gap: 14px; }
.rt { position: relative; width: clamp(220px, 28vw, 340px); aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; flex: none; }
.rt img { width: 100%; height: 100%; object-fit: cover; }
.rt figcaption { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 6px; background: rgba(20,26,46,.72); color: var(--paper); font-size: 14px; font-weight: 600; }
.rt figcaption i { font-family: var(--f-serif); font-weight: 400; color: var(--green-light); }

/* parent zone */
.pz { display: grid; gap: 14px; }
@media (min-width: 900px) { .pz { grid-template-columns: 1fr 1fr; gap: 20px; } }
.pz-card { background: var(--white); border-radius: 16px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 16px; align-content: start; box-shadow: inset 0 0 0 1px var(--line); }
.pz-card .h2 { font-size: clamp(30px, 4vw, 52px); }
.pz-list li { display: flex; align-items: center; gap: 14px; min-height: 56px; border-bottom: 1px solid var(--line); font-family: var(--f-disp); font-weight: 500; font-variation-settings: "wdth" 92; font-size: 22px; }
.pz-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.pz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; background: var(--paper-2); transition: background 500ms, color 500ms; }
.pz-chips a:hover { background: var(--ink); color: var(--paper); }

.cta-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; }
.cta-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(244,239,234,.4); }
.cta-links a:hover { border-color: var(--green-light); color: var(--green-light); }
.cta .lead { max-width: 52ch; }

/* admissions enquire */
.contact-list { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line-light); }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.contact-list dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,239,234,.7); padding-top: 3px; }
.contact-list dd a { color: var(--paper); }
.enq-card { background: var(--paper); color: var(--ink); border-radius: 16px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; align-content: start; }
.enq-card h3 { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 88; font-size: clamp(26px, 3vw, 36px); }
.enq-card p { color: var(--ink-soft); }
.enq-card .btn { justify-self: start; }

/* principal letter */
.letter { display: grid; gap: 32px; }
@media (min-width: 900px) { .letter { grid-template-columns: 340px 1fr; gap: 80px; align-items: start; } .letter-side { position: sticky; top: 110px; } }
.letter-side .ph { max-width: 340px; }
.letter-name, .letter-sign { display: grid; gap: 2px; margin-top: 16px; }
.letter-name b, .letter-sign b { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 90; font-size: 22px; }
.letter-name span, .letter-sign span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.letter-body .h2 { font-size: clamp(30px, 4.4vw, 60px); }
.letter-body .prose { font-size: 18px; line-height: 1.7; }
.dropcap::first-letter { float: left; font-family: var(--f-serif); font-style: italic; font-size: 4.2em; line-height: .8; padding: 6px 10px 0 0; color: var(--green); }
.letter-sign { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* team variants + staff */
.team--lead .team-n, .team .team-n { display: block; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--green-dark); }
.team--lead .team-n + h3 { margin-top: 4px; }
.team--three { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .team--three { grid-template-columns: repeat(3, 1fr); max-width: 980px; } }
.team .ph img { width: 100%; height: 100%; object-fit: cover; }
.team-bar { display: grid; gap: 12px; margin-bottom: 8px; }
@media (min-width: 1000px) { .team-bar { grid-template-columns: 1fr 300px; align-items: center; } }
.search--sm input { min-height: 48px; }
.staff { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; margin-top: 18px; }
@media (min-width: 640px) { .staff { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .staff { grid-template-columns: repeat(6, 1fr); gap: 28px 18px; } }
.staff .ph { aspect-ratio: 4 / 5; border-radius: 10px; }
.staff .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease-out); }
.staff li:hover .ph img { transform: scale(1.05); }
.staff h3 { margin-top: 10px; font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 92; font-size: 17px; line-height: 1.15; }
.staff p { margin-top: 3px; font-size: 13px; color: var(--ink-soft); }
.staff-more { display: flex; justify-content: center; margin-top: 36px; }
.staff-more .btn[hidden] { display: none; }

/* labs */
.labs { display: grid; gap: 28px; }
@media (min-width: 1000px) { .labs { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } .labs-panel { position: sticky; top: 110px; } }
.labs-list { border-top: 1.5px solid var(--ink); }
.labs-list button { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; width: 100%; text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line); }
.labs-list .n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); padding-top: 6px; grid-row: span 2; }
.labs-list b { font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 90; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; transition: color 500ms; }
.labs-list .d { font-size: 15px; color: var(--ink-soft); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 900ms var(--ease-out), opacity 700ms; }
.labs-list button[aria-selected="true"] b { color: var(--blue); }
.labs-list button[aria-selected="true"] .d { max-height: 90em; opacity: 1; }
.labs-ph { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.labs-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease-out), transform 1.8s var(--ease-out); }
.labs-ph img.on { opacity: 1; transform: none; }
.labs-h { margin-top: 18px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kv > div { padding: 16px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.kv dt { font-family: var(--f-disp); font-weight: 500; font-variation-settings: "wdth" 88; font-size: 22px; line-height: 1.1; }
.kv dd { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

/* counselling streams */
.streams { display: grid; gap: 22px; }

/* fees */
.fees { display: grid; gap: 20px; }
.fee-card { position: relative; overflow: hidden; border-radius: 16px; background: var(--blue); color: var(--paper); padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.fee-name { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 88; font-size: clamp(30px, 4vw, 52px); }
.fee-lines { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.fee-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.fee-line span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,239,234,.75); }
.fee-line b { font-family: var(--f-disp); font-weight: 400; font-variation-settings: "wdth" 78; font-size: clamp(36px, 7vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.fee-bars { display: none; }
.notes .h3 { margin-bottom: 14px; }
.note-list { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.note-list li { padding: 16px 0 16px 26px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-soft); }
.note-list li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.store { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--paper); transition: transform 500ms var(--ease-out), background 500ms; }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store:hover { background: var(--blue); transform: translateY(-3px); }

/* transport */
.routemap { height: clamp(180px, 34vw, 340px); margin: 0 calc(-1 * var(--gut)) 24px; }
.routemap canvas { width: 100%; height: 100%; display: block; }
.routes .rt-n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); }
.routes .rt-n::after { content: " ●"; color: var(--green); font-size: 9px; vertical-align: 2px; }
.safety { display: grid; gap: 14px; }
@media (min-width: 700px) { .safety { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .safety { grid-template-columns: repeat(4, 1fr); } }
.safety li { padding: 24px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.safety svg { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.safety h3 { font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 92; font-size: 22px; }
.safety p { font-size: 15px; color: var(--ink-soft); }

/* disclosure */
.docs { border-top: 1.5px solid var(--ink); }
.docs-head { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 12px; padding: 12px 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.docs-list li[hidden] { display: none; }
.docs-list a { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 12px; align-items: center; min-height: 60px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background 500ms, padding 600ms var(--ease-out); }
.docs-list a:hover { background: var(--white); padding-left: 8px; }
.d-n { font-family: var(--f-disp); font-weight: 400; font-size: 22px; }
.d-doc { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.d-doc svg { width: 16px; height: 16px; }
.d-cat { font-size: 14px; color: var(--ink-soft); }

/* achievements */
.toppers { display: grid; gap: 12px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 800px) { .toppers { grid-template-columns: 1.3fr 1fr 1fr; } }
.toppers li { position: relative; overflow: hidden; border-radius: 16px; padding: 24px; display: grid; gap: 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.toppers li:first-child { background: var(--blue); color: var(--paper); box-shadow: none; }
.toppers li:first-child .lbl { color: var(--green-light); }
.tp-p { font-family: var(--f-disp); font-weight: 330; font-variation-settings: "wdth" 76; font-size: clamp(54px, 8vw, 96px); line-height: 1; letter-spacing: -.03em; }
.toppers b { font-weight: 600; letter-spacing: .04em; }
.results-wrap { display: grid; gap: 0 48px; margin-top: 18px; }
@media (min-width: 900px) { .results-wrap { grid-template-columns: 1fr 1fr; } }
.results-wrap .results { margin-top: 0; columns: 1; }
.r-name { font-size: 15px; letter-spacing: .02em; }
.wins { display: grid; gap: 16px; }
@media (min-width: 700px) { .wins { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .wins { grid-template-columns: repeat(3, 1fr); } }
.win { border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-rows: auto 1fr; }
.win[hidden] { display: none; }
.win-ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.win-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.4s var(--ease-out); }
.win:hover .win-ph img { transform: scale(1.04); }
.win-b { padding: 20px; display: grid; gap: 8px; align-content: start; }
.win-b h3 { font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 92; font-size: 21px; line-height: 1.15; }
.win-b p { font-size: 15px; color: var(--ink-soft); }

/* alumni */
.alumni { display: grid; gap: 16px; }
@media (min-width: 1000px) { .alumni { grid-template-columns: repeat(3, 1fr); } }
.quote--big { min-height: 380px; }
.q-n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); }

/* testimonials */
.vt-grid { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 800px) { .vt-grid { grid-template-columns: repeat(3, 1fr); } }
.vt { position: relative; aspect-ratio: 9 / 12; border-radius: 16px; background: linear-gradient(160deg, var(--navy), var(--blue)); color: var(--paper); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; }
.vt .play { position: absolute; left: 50%; top: 42%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; background: rgba(244,239,234,.14); }
.vt .play svg { width: 24px; height: 24px; fill: var(--paper); margin-left: 3px; }
.vt .lbl { color: var(--green-light); }
.vt h3 { font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 92; font-size: 24px; }

/* parent guidance */
.pg { display: grid; gap: 40px; }
@media (min-width: 1000px) { .pg { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.pg-qs { display: grid; gap: 8px; margin-top: 14px; }
.pg-q { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 20px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; text-align: left; transition: background 500ms, color 500ms, transform 150ms; }
.pg-q:hover { background: var(--ink); color: var(--paper); }
.pg-q:active { transform: scale(.98); }
.pg-form { background: var(--white); border-radius: 18px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 90px; }
.pg-note { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--green-light) 25%, var(--white)); font-weight: 600; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-soft); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.f-hp { position: absolute; left: -9999px; }
.pg-form .btn-submit[disabled] { opacity: .45; cursor: not-allowed; }

/* clubs */
.clubs { display: grid; gap: 24px; }
@media (min-width: 1000px) { .clubs { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; } }
.clubs-wheel { aspect-ratio: 1; width: min(100%, 460px); justify-self: center; }
.clubs-wheel canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 699px) { .clubs-wheel { width: 72%; } }
.clubs-panel { margin-top: 20px; display: grid; gap: 12px; min-height: 220px; }
.clubs-h { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 88; font-size: clamp(32px, 4.4vw, 56px); line-height: 1; }
.clubs-p { font-size: 18px; color: var(--ink-soft); max-width: 52ch; }

/* houses: element drawings */
.face canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.face b, .face-n { z-index: 1; }

/* misc */
.faq-side { position: relative; }
@media (min-width: 900px) { .faq-side { position: sticky; top: 110px; } }
.pcard--text .big { font-weight: 300; }
.window figure { height: clamp(300px, 70vw, 780px); }
@media (max-width: 699px) {
  .sec-head { margin-bottom: 28px; }
  .h2 { font-size: clamp(32px, 9vw, 48px); }
  .tasks .task-t { font-size: 20px; }
  .fy-grid .pcard:first-child { min-height: 260px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .odo { font-size: clamp(48px, 15vw, 72px); }
  .endcap-links .link { font-size: 17px; }
  .usp-stage { min-height: 0; }
}
.win-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.win-tags .lvl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.pg-chat { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; opacity: .5; }
.pg-del { background: none; min-height: 44px; font-size: 14px; }
.clubs { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .clubs { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
canvas { max-width: 100%; }
.ev-card canvas { max-width: none; }
@media (max-width: 699px) {
  .hero-foot { display: none; }
  .hero-copy { bottom: calc(28px + env(safe-area-inset-bottom)); }
  .facts .odo { font-size: clamp(40px, 12vw, 60px); }
}
.face b { margin-top: auto; }
@media (max-width: 699px) { .win-ph { aspect-ratio: 1; } }

/* ==========================================================================
   v4 — chapters, stack, media, journey
   ========================================================================== */
/* hero chapters */
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; font-size: 15px; color: rgba(244,239,234,.8); }
.hero-stats b { display: block; font-family: var(--f-disp); font-weight: 400; font-variation-settings: "wdth" 78; font-size: clamp(30px, 3.4vw, 44px); color: var(--paper); line-height: 1; }
.hero-step:not(.is-on) { pointer-events: none; }
@media (max-width: 699px) {
  .hero-foot { display: flex; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .hero-foot .motion-toggle, .hero-foot .scroll-cue { display: none; }
  .hero-copy { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* curriculum: photo card stack */
.stack { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 4 / 5; }
.stack-card { position: absolute; inset: 0; margin: 0; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 40px 70px -40px rgba(20,26,46,.55); transform-origin: 50% 100%; will-change: transform; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.stack-card::after { content: ""; position: absolute; inset: 0; background: rgba(20,26,46,var(--dim, 0)); transition: background 200ms linear; pointer-events: none; }
.stack-card figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: rgba(20,26,46,.6); padding: 6px 10px; border-radius: 6px; }
@media (max-width: 899px) { .stack { width: min(76vw, 340px); aspect-ratio: 4 / 4.2; margin: 6px 0 4px; } .stages-pin { padding-bottom: 40px; } }
@media (min-width: 900px) { .stack { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: min(62vh, 36vw); } }
.static .stack-card:not(:first-child) { display: none; }

/* USP: photo stage */
.usp-stage { grid-template-columns: 1fr; gap: 0; }
.usp-media { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9); isolation: isolate; }
.usp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; clip-path: inset(0 0 0 var(--from, 100%)); transform: scale(1.14); transition: clip-path 1.2s cubic-bezier(.65,0,.35,1), opacity .01s linear 1.2s, transform 8s linear; }
.usp-media img[style*="--from: -100%"] { clip-path: inset(0 100% 0 0); }
.usp-media img.on { opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1); transition: clip-path 1.2s cubic-bezier(.65,0,.35,1), opacity 0s, transform 9s cubic-bezier(.2,.6,.3,1); z-index: 1; }
.usp-media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(30,40,79,0) 55%, rgba(30,40,79,.55)); pointer-events: none; }
.usp-bar { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 3px; border-radius: 3px; background: rgba(244,239,234,.25); z-index: 3; overflow: hidden; transition: opacity 600ms; }
.usp-bar i { position: absolute; inset: 0; background: var(--green-light); transform-origin: left; transform: scaleX(0); }
.usp-meta { margin-top: 20px; }
.static .usp-media img:first-child { opacity: 1; clip-path: none; transform: none; }

/* journey: next page */
.nextp { --pull: 0; position: relative; display: block; text-decoration: none; background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 110px) 0 calc(clamp(56px, 8vw, 110px) + env(safe-area-inset-bottom)); overflow: hidden; border-top: 1px solid var(--line-light); }
.nextp-in { display: grid; gap: 18px; }
.nextp-head { display: flex; justify-content: space-between; align-items: baseline; }
.nextp .lbl { color: var(--green-light); }
.nextp-count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: rgba(244,239,234,.6); }
.nextp-t { font-family: var(--f-disp); font-weight: 400; font-variation-settings: "wdth" 78; letter-spacing: -.025em; line-height: .95; font-size: clamp(44px, 9vw, 132px); transform: translateX(calc(var(--pull) * 14px)); transition: color 600ms; }
.nextp:hover .nextp-t { color: var(--green-light); }
.nextp-ph { position: relative; height: clamp(220px, 46vw, 560px); margin: 8px 0 0; overflow: hidden; clip-path: inset(0 round 14px); }
.nextp-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.06 + var(--pull) * .08)); transition: transform 400ms var(--ease-out); }
.nextp-ring { position: absolute; right: calc(var(--gut) + 18px); bottom: calc(clamp(56px, 8vw, 110px) + 18px); display: grid; place-items: center; width: 96px; height: 96px; z-index: 2; }
.nextp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.nextp-ring circle { fill: none; stroke-width: 3; }
.nextp-ring .bg { stroke: rgba(244,239,234,.25); fill: rgba(20,26,46,.55); }
.nextp-ring .fg { stroke: var(--green-light); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.nextp-hint { font-style: normal; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; text-align: center; max-width: 64px; line-height: 1.3; }
.nextp.go .nextp-ph img { transform: scale(1.25); transition: transform 800ms var(--ease-io); }
@media (max-width: 699px) { .nextp-ring { width: 80px; height: 80px; right: calc(var(--gut) + 12px); } }

/* subtle film grain for depth */
body::after { content: ""; position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .usp-media img { transition: none; } }
.nextp-hint { color: var(--paper); }
.nextp-ring .bg { fill: rgba(20,26,46,.78); }
@media (max-width: 899px) { .stack { overflow: hidden; border-radius: 18px; } .stack-card { box-shadow: none; } }
.foot { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.nextp-in { grid-template-columns: 1fr auto; align-items: end; }
.nextp-head, .nextp-ph { grid-column: 1 / -1; }
.nextp-ring { position: relative; right: auto; bottom: auto; grid-column: 2; grid-row: 2; }
.nextp-ring .bg { fill: none; }
.nextp-ph { order: 3; }
@media (max-width: 699px) { .nextp-ph { height: 52vw; } .nextp-ring { width: 76px; height: 76px; } .nextp-t { font-size: clamp(38px, 11vw, 60px); } }

/* ==========================================================================
   v5 — mobile header, flags
   ========================================================================== */
@media (max-width: 699px) {
  .mast-stage { min-height: 0; justify-content: flex-start; padding-top: calc(34svh + 16px); padding-bottom: 36px; }
  .mast .lead { font-size: 16.5px; }
  .mast .kin-hero { font-size: clamp(42px, 13vw, 64px); }
}
.face { justify-content: flex-end; }
.face img { position: absolute; left: 10%; right: 10%; top: 16%; width: 80%; margin: 0; filter: drop-shadow(0 18px 22px rgba(0,0,0,.28)); transform-origin: 0 50%; animation: flagWave 5s var(--ease-io) infinite; }
@keyframes flagWave { 50% { transform: perspective(600px) rotateY(-8deg) skewY(-1.5deg); } }
.paused .face img { animation-play-state: paused; }
.kin-hero .lm { padding: .04em .2em .24em 0; margin: -.04em -.2em -.24em 0; }
.hero-step .hero-cta { margin-top: 28px; }

/* v6 — long-copy photo cards: on phones the photo sits above the text instead of behind it */
@media (max-width: 639px) {
  .pcard:not(.fy-grid .pcard):has(.d) { justify-content: flex-start; min-height: 0; padding-top: 0; }
  .pcard:not(.fy-grid .pcard):has(.d) img { position: relative; inset: auto; height: 210px; width: calc(100% + 36px); max-width: none; margin: 0 -18px 16px; z-index: 0; }
  .pcard:not(.fy-grid .pcard):has(.d)::after { display: none; }
  .pcard:not(.fy-grid .pcard):has(.d) .d { color: rgba(244, 239, 234, .8); }
}
li.nob { list-style: none; padding-left: 0 !important; }
li.nob::before, li.nob::marker { content: none !important; display: none !important; }

/* curriculum bloom — a seed that grows into a flower across the four stages, where the photos used to be */
.stage-bloom { --bs: min(78vw, 320px); display: block; pointer-events: none; justify-self: center; width: var(--bs); height: var(--bs); margin: 4px 0; }
@media (min-width: 900px) {
  .stage-bloom { --bs: min(70vh, 38vw); grid-column: 2; grid-row: 1 / -1; align-self: center; }
}
.static .stage-bloom { display: none; }

/* tab bars — wrap on wide screens, swipe on phones with fades only where more is hidden */
.seg-ind { bottom: auto; height: calc(100% - 8px); }
.seg .seg-n { font: 500 11px/1 var(--f-mono); opacity: .6; margin-left: 4px; vertical-align: 1px; }
@media (min-width: 900px) {
  .seg { flex-wrap: wrap; overflow: visible; border-radius: 26px; row-gap: 2px; }
  .sec-head--row:has(.seg) { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 899px) {
  .seg { display: flex; width: auto; max-width: 100%; min-width: 0; }
  .sec-head, .sec-head > *, .sec-head--row > *, .team-tools, .team-tools > * { min-width: 0; max-width: 100%; }
  .seg.more-r { -webkit-mask: linear-gradient(90deg, #000 84%, transparent); mask: linear-gradient(90deg, #000 84%, transparent); }
  .seg.more-l { -webkit-mask: linear-gradient(90deg, transparent, #000 16%); mask: linear-gradient(90deg, transparent, #000 16%); }
  .seg.more-l.more-r { -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
}
.toc-in.more-r { -webkit-mask: linear-gradient(90deg, #000 86%, transparent); mask: linear-gradient(90deg, #000 86%, transparent); }
.toc-in.more-l { -webkit-mask: linear-gradient(90deg, transparent, #000 14%); mask: linear-gradient(90deg, transparent, #000 14%); }
.toc-in.more-l.more-r { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* proud moments — poster cards: the achievement poster above, its title below */
.rc--poster { padding: 0; background: var(--ink); color: var(--paper); }
.rc--poster::after { display: none; }
.rc--poster img { position: relative; inset: auto; height: 64%; flex: none; object-fit: cover; object-position: 50% 20%; }
.rc-b { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.rc--poster .rc-t { font-family: var(--f-text); font-weight: 600; font-size: 14.5px; line-height: 1.3; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ring-foot { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.words .word { color: var(--ink); }

/* life at TMS — calmer word list */
.words .w-t { font-size: clamp(44px, 8.4vw, 124px); }
.words .w-c { white-space: nowrap; }
@media (max-width: 899px) { .words .w-t { font-size: clamp(40px, 12.5vw, 72px); } }
.rc--poster .rc-t, .rc--poster .rk { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.rc--poster .rc-b { min-width: 0; overflow: hidden; }

/* footer groups: plain columns on wide screens, tap-to-open on phones */
.fgrp summary { list-style: none; cursor: default; }
.fgrp summary::-webkit-details-marker { display: none; }
@media (min-width: 700px) { .fgrp summary { pointer-events: none; } }
@media (max-width: 699px) {
  .foot-grid { grid-template-columns: 1fr !important; gap: 0; }
  .fgrp { grid-column: 1 / -1; }
  .fgrp { border-top: 1px solid rgba(244, 239, 234, .14); }
  .fgrp summary { display: flex; justify-content: space-between; align-items: center; min-height: 54px; margin: 0; cursor: pointer; }
  .fgrp summary::after { content: "+"; font: 400 22px/1 var(--f-text); transition: transform 400ms var(--ease-out); }
  .fgrp[open] summary::after { transform: rotate(45deg); }
  .fgrp ul { padding-bottom: 14px; }
  .foot-grid > div:first-child { padding-bottom: 20px; }
}

/* phones: folded copy and lists */
.mclamp { display: -webkit-box; -webkit-line-clamp: var(--lines, 4); -webkit-box-orient: vertical; overflow: hidden; }
.mclamp.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px; padding: 0; font-weight: 600; font-size: 15px; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.more-btn--list { margin-top: 16px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; min-height: 44px; }
.m-hide { display: none !important; }

/* phones: the home page, curated */
@media (max-width: 699px) {
  .reel { display: none; }
  /* all five results show on phones too; an odd last one spans the row (see .facts) */
  [aria-labelledby="resLbl"] .facts { --cols: 1 !important; }
  .tasks .task { min-height: 92px; padding: 14px 14px 16px; }
  .tasks .task-n { display: none; }
  .tasks .task-t { font-size: 19px; }
  .pz { gap: 14px; }
}

/* life at TMS — solid words, the photo opens as a pill beside the active one */
.words .w-t { color: rgba(26, 31, 54, .2); -webkit-text-stroke: 0 transparent; background: none !important; font-variation-settings: "wdth" 78 !important; transition: color 500ms var(--ease-out); }
.words .word.on .w-t { color: var(--ink); }
.word { justify-content: flex-start; }
.w-img { flex: none; display: block; height: clamp(40px, 6.4vw, 104px); width: 0; border-radius: 999px; overflow: hidden; opacity: 0; transition: width 800ms var(--ease-out), opacity 500ms; }
.w-img img { width: 100%; height: 100%; object-fit: cover; }
.word.on .w-img { width: clamp(84px, 16vw, 260px); opacity: 1; }
.words .w-c { margin-left: auto; }
@media (max-width: 899px) { .w-img { height: clamp(34px, 9.5vw, 60px); } .word.on .w-img { width: clamp(64px, 24vw, 150px); } }
@media (hover: hover) { .word:hover .w-t { color: var(--ink); } .word:hover .w-img { width: clamp(84px, 16vw, 260px); opacity: 1; } }

@media (max-width: 699px) {
  .ring-stage { height: auto; perspective: none; }
  .ring.ring--flat { position: static; width: auto; height: auto; margin: 0; transform: none !important; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gut) 20px; scrollbar-width: none; }
  .ring--flat::-webkit-scrollbar { display: none; }
  .ring--flat > * { position: relative; inset: auto; flex: 0 0 min(78vw, 320px); scroll-snap-align: center; opacity: 1 !important; pointer-events: auto !important; }
  .ring--flat .rc--poster img { height: auto; aspect-ratio: 1; }
  .ring--flat .rc--blue { min-height: 0; justify-content: space-between; }
  .ring--flat .rc--poster .rc-t { -webkit-line-clamp: 4; font-size: 15px; }
}
/* narrow phones: keep the header on one line */
@media (max-width: 374px) {
  .brand-name { white-space: nowrap; font-size: 15px; }
  .brand img { width: 30px; height: 30px; }
  .bar-actions { gap: 6px; }
  .bar-actions > * { white-space: nowrap; padding-inline: 12px !important; font-size: 14px !important; min-height: 40px; }
}
.brand-name, .bar-actions > * { white-space: nowrap; }

/* phones: logo only in the bar */
@media (max-width: 699px) { .brand-name { display: none; } .brand img { width: 38px; height: 38px; } }

/* in-page tabs — phones get one slim "you are here" bar that drops down the full list */
.toc-now { display: none; }
@media (max-width: 699px) {
  .toc { background: rgba(244, 239, 234, .96); }
  .toc-now { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 var(--gut); text-align: left; font-weight: 600; font-size: 15px; color: var(--ink); }
  .toc-now-n { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; color: var(--green-dark, #1F6B45); }
  .toc-now-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toc-now svg { width: 18px; height: 18px; flex: none; transition: transform 450ms var(--ease-out); }
  .toc.open .toc-now svg { transform: rotate(180deg); }
  .toc-in { display: grid; gap: 2px; overflow: hidden; max-height: 0; padding: 0 var(--gut); opacity: 0; transition: max-height 500ms var(--ease-out), opacity 300ms, padding 400ms; -webkit-mask: none !important; mask: none !important; }
  .toc.open .toc-in { max-height: 70vh; opacity: 1; padding: 4px var(--gut) 14px; }
  .toc a { justify-content: flex-start; min-height: 46px; border-radius: 10px; padding: 0 12px; font-size: 16px; }
  .toc a[aria-current="true"] { background: var(--ink); color: var(--paper); }
}

/* about — numbered pillars: no wasted gutter on phones */
@media (max-width: 699px) {
  .pillars li, .vmv li { grid-template-columns: 34px 1fr !important; column-gap: 12px !important; }
}
@media (max-width: 699px) {
  .ring--flat { align-items: stretch; }
  .ring--flat > .rc--blue { flex-basis: min(62vw, 240px); display: flex; flex-direction: column; justify-content: space-between; }
  .ring--flat .rc--blue .rv { display: block; font-size: 64px; margin-bottom: 8px; }
  .ring--flat .rc--blue .rt { display: block; font-size: 22px; }
}
@media (max-width: 699px) { .events--page .ev-card { aspect-ratio: 4 / 3; } }
@media (max-width: 699px) {
  .tasks--3 { grid-template-columns: 1fr; }
  .tasks--3 li { border-right: 0 !important; }
  .tasks--3 .task { min-height: 76px; }
  .task-t { overflow-wrap: anywhere; }
}
@media (max-width: 699px) {
  .words .w-t { font-size: clamp(32px, 9.6vw, 56px); }
  .word.on .w-img { width: clamp(56px, 18vw, 96px); }
  .word { overflow: hidden; }
}

/* ================= v7 */
/* Important Links — bento: one tall feature card + four */
.fy-controls { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 28px; }
.fy-controls > div { min-width: 0; max-width: 100%; }
.fy-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
.fy-grid .pcard { min-height: 0 !important; padding: 14px; border-radius: 12px; }
.fy-grid .pcard:first-child { grid-column: 1 / -1; grid-row: span 2; }
.fy-grid .pcard .d { display: none; }
.fy-grid .pcard .tag { font-size: 10px; }
.fy-grid .pcard .t { font-size: clamp(17px, 4.6vw, 22px) !important; }
.fy-grid .pcard:first-child .t { font-size: clamp(26px, 7vw, 34px) !important; }
.fy-grid .pcard .go { width: 34px; height: 34px; top: 10px; right: 10px; }
@media (min-width: 900px) {
  .fy-grid { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: repeat(2, clamp(230px, 30vh, 290px)); grid-auto-rows: 0; }
  .fy-grid .pcard { padding: 22px; }
  .fy-grid .pcard:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .fy-grid .pcard .t { font-size: clamp(22px, 2vw, 30px) !important; }
  .fy-grid .pcard:first-child .t { font-size: clamp(32px, 3.2vw, 48px) !important; }
  .fy-grid .pcard .go { width: 42px; height: 42px; top: 16px; right: 16px; }
}

/* Why Choose TMS — the whole section fits one screen on desktop */
@media (min-width: 900px) {
  .usp { min-height: 100svh; padding: calc(var(--bar-h, 76px) + 24px) 0 36px; display: flex; align-items: center; }
  .usp > .wrap { width: 100%; }
  .usp-head { display: flex; align-items: baseline; gap: 24px; }
  .usp-title { font-size: clamp(40px, 4.6vw, 72px); margin-top: 0; }
  .usp-body { margin-top: clamp(20px, 3.5vh, 36px); grid-template-columns: minmax(260px, 30%) 1fr; gap: 48px; align-items: stretch; }
  .usp-index button { min-height: 0; height: calc((100svh - 330px) / var(--usp-count, 9)); max-height: 56px; font-size: 15px; }
  .usp-stage { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto 1fr; gap: 0 36px; min-height: 0; align-content: start; }
  .usp-media { grid-column: 1; grid-row: 1 / -1; aspect-ratio: auto; height: calc(100svh - 330px); max-height: 520px; }
  .usp-meta { grid-column: 2; grid-row: 1; }
  .usp-h { grid-column: 2; grid-row: 2; font-size: clamp(28px, 2.8vw, 44px); margin-top: 22px; }
  .usp-p { grid-column: 2; grid-row: 3; font-size: 16.5px; line-height: 1.6; margin-top: 16px; }
}

/* Next page — title and ring beside the photo on desktop, so portraits are never cropped */
@media (min-width: 900px) {
  .nextp-in { grid-template-columns: 1fr minmax(0, 46%); grid-template-rows: auto 1fr auto; column-gap: 56px; align-items: start; }
  .nextp-head { grid-column: 1; grid-row: 1; }
  .nextp-t { grid-column: 1; grid-row: 2; align-self: center; font-size: clamp(48px, 6vw, 104px); }
  .nextp-ring { grid-column: 1; grid-row: 3; justify-self: start; }
  .nextp-ph { grid-column: 2; grid-row: 1 / -1; order: 0; margin: 0; height: auto; aspect-ratio: 4 / 3; }
}

/* result lists: each column names its class */
.res-h { font-family: var(--f-disp); font-weight: 560; font-size: 22px; margin: 28px 0 12px; }
@media (min-width: 900px) {
  .usp-head .lbl { display: none; }
  .usp .more-btn { grid-column: 2; grid-row: 4; justify-self: start; }
  .usp-stage { grid-template-rows: auto auto auto 1fr; }
  #links.sec { padding-block: clamp(64px, 8vh, 96px); }
  #links .sec-head { margin-bottom: 20px; }
  .fy-controls .seg button { font-size: 14px; padding: 0 13px; min-height: 40px; }
}

/* houses — named house buttons with a scroll progress fill; no drag */
.houses { min-height: 100svh; display: flex; align-items: center; }
.houses > .wrap { width: 100%; }
.house-pick { flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.house-pick button { width: auto; height: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; font-weight: 600; font-size: 15px; background: rgba(255,255,255,.55); transition: background 400ms, color 400ms; }
.house-pick button::before { display: none; }
.house-pick button i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.house-pick button[aria-pressed="true"] { background: var(--c); color: #fff; }
.house-pick button[aria-pressed="true"] i { background: #fff; }
.prism-stage { cursor: default; touch-action: auto; }
.prism-stage::after, .prism-stage::before { display: none !important; }

/* Life at TMS — list + following photo */
.life-grid { display: grid; gap: 28px; }
.life-list .words { border-top: 1px solid var(--line); margin-top: 20px; }
.life-list .word { display: flex; align-items: center; gap: 16px; padding: 10px 0; max-width: none; margin: 0; text-decoration: none; color: var(--ink); }
.life-list .w-n { font: 500 12px var(--f-mono); color: var(--ink-soft); transition: color 400ms; }
.life-list .w-t { font-size: clamp(34px, 5.2vw, 76px) !important; color: rgba(20,26,46,.2); transition: color 500ms var(--ease-out), transform 700ms var(--ease-out); }
.life-list .word.on .w-t { color: var(--ink); transform: translateX(12px); }
.life-list .word.on .w-n { color: var(--green); }
.life-ph figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--ink); }
.life-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); clip-path: inset(100% 0 0 0); transition: clip-path 1s cubic-bezier(.65,0,.35,1), transform 1.4s var(--ease-out), opacity 0s 1s; }
.life-ph.lazy img:not(.ld):not(.on) { display: none; }
.life-ph img.on { opacity: 1; transform: none; clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.65,0,.35,1), transform 1.4s var(--ease-out), opacity 0s; z-index: 1; }
.life-ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: end; padding: 20px 22px; color: #fff; background: linear-gradient(transparent, rgba(20,26,46,.75)); }
.life-ph figcaption b { font: 560 clamp(22px, 2.4vw, 34px)/1 var(--f-disp); }
.life-ph figcaption span { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
@media (min-width: 900px) {
  .life-grid { grid-template-columns: 1fr minmax(0, 44%); gap: 64px; align-items: start; }
  .life-ph { position: sticky; top: calc(var(--bar-h, 76px) + 28px); }
  .life-ph figure { aspect-ratio: auto; height: calc(100svh - var(--bar-h, 76px) - 72px); max-height: 720px; }
}
@media (max-width: 899px) {
  .life-grid { grid-template-columns: 1fr; }
  .life-ph { position: sticky; top: calc(var(--bar-h, 64px) + 8px); z-index: 2; order: -1; grid-row: 2; }
  .life-list { display: contents; }
  .life-list .sec-head { grid-row: 1; }
  .life-list .words { grid-row: 3; margin-top: 0; }
  .life-list > .link { grid-row: 4; justify-self: start; }
  .life-ph figure { aspect-ratio: 16 / 10; }
  .life-list .word { padding: 14px 0; }
}

/* Proud moments — poster + list */
.pm { display: grid; gap: 28px; }
.pm-ph { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--paper-2); box-shadow: 0 40px 70px -50px rgba(20,26,46,.6); }
.pm-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; opacity: 0; transform: scale(1.06) rotate(-1deg); transition: opacity 700ms var(--ease-out), transform 1.2s var(--ease-out); }
.pm-ph img.on { opacity: 1; transform: none; }
.pm-top { display: flex; align-items: center; gap: 16px; margin: 18px 0 8px; }
.pm-top .odo { font: 400 clamp(44px, 5vw, 64px)/1 var(--f-disp); font-variation-settings: "wdth" 70; color: var(--blue); }
.pm-top > span:last-child { font-size: 14px; color: var(--ink-soft); line-height: 1.3; }
.pm-top b { color: var(--ink); }
.pm-list { border-top: 1px solid var(--line); margin-bottom: 24px; }
.pm-i { position: relative; display: grid; gap: 4px; padding: 14px 0 15px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); transition: color 400ms, padding 500ms var(--ease-out); }
.pm-k { font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.pm-t { font-weight: 600; font-size: 16px; line-height: 1.3; }
.pm-i.on { color: var(--ink); padding-left: 14px; }
.pm-i.on .pm-k { color: var(--green); }
.pm-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--green); }
.pm-i.on .pm-bar { animation: pmBar var(--dur, 4500ms) linear forwards; }
@keyframes pmBar { to { width: 100%; } }
@media (min-width: 900px) {
  .pm { grid-template-columns: minmax(0, 42%) 1fr; gap: 72px; align-items: center; }
  .pm-ph { aspect-ratio: auto; height: min(78svh, 720px); }
}
@media (max-width: 899px) {
  .pm-side { display: contents; }
  .pm .sec-head { order: -2; }
  .pm-top { order: -1; margin: 0; }
  .pm-ph { aspect-ratio: 1; }
  .pm-list .pm-i:not(.on) .pm-t { font-size: 15px; }
}

/* in-page sections — a quiet rail in the left margin on desktop */
@media (min-width: 1100px) {
  .has-toc { --rail: 190px; }
  .has-toc main > section:not(.mast) > .wrap, .has-toc main > section:not(.mast) > div > .wrap, .has-toc main .pin-spacer > section > .wrap, .has-toc main .pin-spacer > section > div > .wrap { padding-left: calc(var(--gut) + var(--rail)); }
  .toc { position: fixed !important; top: 50% !important; left: var(--gut); z-index: 40; width: calc(var(--rail) - 28px); transform: translate(-12px, -50%); opacity: 0; pointer-events: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; transition: opacity 500ms, transform 700ms var(--ease-out); }
  .toc.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
  .toc-now { display: none !important; }
  .toc-in { display: grid !important; gap: 2px; padding: 0 0 0 14px; max-height: none !important; opacity: 1 !important; overflow: visible; margin: 0; border-left: 1px solid var(--line); -webkit-mask: none !important; mask: none !important; }
  .toc a { position: relative; display: block; min-height: 0; padding: 8px 0; border-radius: 0; background: none !important; color: var(--ink-soft) !important; font-size: 13.5px; line-height: 1.3; white-space: normal; }
  .toc a span { display: block; margin-bottom: 2px; }
  .toc a[aria-current="true"] { color: var(--ink) !important; }
  .toc a[aria-current="true"]::before { content: ""; position: absolute; left: -15px; top: 6px; bottom: 6px; width: 2px; background: var(--green); }
  .toc a:hover { color: var(--ink) !important; }
  .toc-progress { display: none; }
  .on-dark .toc a, .toc.on-dark a { color: inherit; }
}
@media (min-width: 1100px) {
  .toc.dark a { color: rgba(244,239,234,.62) !important; }
  .toc.dark a[aria-current="true"], .toc.dark a:hover { color: var(--paper) !important; }
  .toc.dark .toc-in { border-color: rgba(244,239,234,.2); }
}

/* Questioning-Based Thinking — four cards */
.looks4 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 640px) { .looks4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .looks4 { grid-template-columns: repeat(4, 1fr); } }
.look { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: 16px; padding: 10px 10px 22px; box-shadow: 0 0 0 1px var(--line); transition: transform 700ms var(--ease-out), box-shadow 700ms; }
.look:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -36px rgba(20,26,46,.5); }
.look-ph { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.look-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.look:hover .look-ph img { transform: scale(1.06); }
.look-n { font: 500 11px var(--f-mono); color: var(--green); margin: 18px 12px 0; }
.look-h { font: 560 clamp(22px, 2vw, 28px)/1.05 var(--f-disp); margin: 6px 12px 0; }
.look-q { font: italic 400 clamp(19px, 1.6vw, 22px)/1.25 var(--f-serif); margin: 12px 12px 0; color: var(--ink); }
.look-q::before { content: "“"; color: var(--green); } .look-q::after { content: "”"; color: var(--green); }
@media (max-width: 639px) { .looks4 { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; scrollbar-width: none; } .look { scroll-snap-align: start; } }

/* Bus routes — drawing left (sticky), searchable list right */
.bus-grid { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .bus-grid { grid-template-columns: minmax(0, 44%) 1fr; gap: 64px; align-items: start; }
  .bus-map { position: sticky; top: calc(var(--bar-h, 76px) + 24px); }
  .bus-map .routemap { height: min(62svh, 560px); margin: 16px 0 0; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
  .bus-list { padding-top: 8px; }
  .bus-list .search { max-width: none; }
}

/* Voices — featured slot + list (videos drop in via data-video) */
.vx { display: grid; gap: 18px; margin-top: 8px; }
.vx-stage { position: relative; display: grid; }
.vx-p { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out), visibility 0s 600ms; }
.vx-p.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.vx-media { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ink); isolation: isolate; }
.vx-media > img, .vx-media > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vx-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,26,46,.1), rgba(20,26,46,.82)); }
.vx-media blockquote { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 3vw, 40px); color: #fff; font: italic 400 clamp(20px, 2.4vw, 34px)/1.2 var(--f-serif); max-width: 30em; }
.vx-media iframe, .vx-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }
.vx-play { position: absolute; left: 50%; top: 42%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255,253,251,.94); z-index: 2; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transition: transform 500ms var(--ease-out); }
.vx-play::after { content: ""; position: absolute; left: 36px; top: 28px; border-left: 20px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
button.vx-play:hover { transform: scale(1.08); }
span.vx-play { opacity: .5; }
.vx-await { font-style: normal !important; font-family: var(--f-mono) !important; font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; }
.vx-p .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.vx-p .who img, .vx-p .who .mono, .vx-i img, .vx-i .mono { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--green-dark); color: #fff; font-weight: 600; font-size: 14px; }
.vx-p .who b, .vx-i b { display: block; }
.vx-p .who span, .vx-i small { font-size: 13.5px; color: var(--ink-soft); }
.vx-list { display: grid; gap: 8px; align-content: start; }
.vx-i { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: background 400ms, box-shadow 400ms; }
.vx-i.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.vx-i.on small { color: rgba(244,239,234,.7); }
@media (min-width: 900px) { .vx { grid-template-columns: 1fr minmax(260px, 30%); gap: 28px; align-items: start; } }

/* Result — class switch + podium */
.res-tabs { margin: 8px 0 28px; }
.res-col.res-off:not(.res-all) { display: none; }
.results-wrap:has(.res-off) { grid-template-columns: 1fr !important; }
.results-wrap .res-col:not(.res-off) .results { columns: 2; column-gap: 48px; }
@media (max-width: 899px) { .results-wrap .res-col .results { columns: 1 !important; } }
.res-col:not(.res-off) .res-h { display: none; }
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 12px; align-items: end; margin-bottom: 36px; }
.pd { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 20px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line); min-height: 170px; justify-content: flex-end; }
.pd-1 { background: var(--blue); color: #fff; box-shadow: none; min-height: 230px; }
.pd-r { font: 500 11px var(--f-mono); letter-spacing: .12em; opacity: .7; }
.pd-p { font: 400 clamp(34px, 4.6vw, 72px)/1 var(--f-disp); font-variation-settings: "wdth" 70; color: var(--green); }
.pd-1 .pd-p { color: #fff; font-size: clamp(44px, 6vw, 96px); }
.pd b { font-weight: 600; font-size: clamp(13px, 1.3vw, 17px); }
@media (max-width: 560px) { .pd { padding: 12px 10px 14px; min-height: 120px; } .pd-1 { min-height: 160px; } .pd b { font-size: 12px; } }
.vx-p .who { display: none; }

/* curriculum — the dot morph returns, stage photos on the left */
.stage-bloom.morph-wrap { position: relative; height: auto; }
.morph { width: 100%; height: 100%; overflow: visible; display: block; }
.morph-cap { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.stage.is-on, .stage { }
.stages .stage { display: grid !important; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; }
.stages .stage-ph { width: 92px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; }
.stages .stage-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.stages .stage.is-on .stage-ph img { transform: none; }
@media (min-width: 900px) { .stages .stage { grid-template-columns: 180px 1fr; gap: 28px; } .stages .stage-ph { width: 180px; } .stage-stack { min-height: 260px !important; } }
@media (max-width: 899px) { .stage-bloom.morph-wrap { --bs: min(58vw, 30svh); } }
.static .stages .stage { display: grid !important; }
/* menu categories: stay on one line; hover slides and tints without widening the letters */
.mcat .mi-t { white-space: nowrap; font-size: clamp(26px, min(7vw, 4.4vh), 52px); --w: 90 !important; min-width: 0; overflow: visible; }
.mcat.on .mi-t, .mcat:hover .mi-t, .menu-main a:hover .mi-t { --w: 90 !important; }
#grow { width: 100%; height: 100%; display: block; }
@media (max-width: 899px) { .stage-bloom.morph-wrap { --bs: min(66vw, 34svh); } }

/* Read more — height glide + soft fade, no re-wrapping */
.mclamp, .mclamp.open { display: block !important; -webkit-line-clamp: unset !important; overflow: hidden; transition: max-height 650ms cubic-bezier(.22,1,.36,1), -webkit-mask-size 650ms, mask-size 650ms;
  -webkit-mask: linear-gradient(#000 calc(100% - 2.2em), transparent) top / 100% 100% no-repeat; mask: linear-gradient(#000 calc(100% - 2.2em), transparent) top / 100% 100% no-repeat; }
.mclamp.open, .mclamp.short { -webkit-mask-size: 100% calc(100% + 2.2em); mask-size: 100% calc(100% + 2.2em); }
.more-btn { transition: opacity 300ms; }
/* menu: every sub-list lives in the same grid cell so the panel never changes height on hover */
@media (min-width: 1000px) {
  .menu-subs { display: grid; }
  .msub { display: block !important; grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 350ms var(--ease-out), transform 500ms var(--ease-out), visibility 0s 350ms; animation: none !important; }
  .msub.on { opacity: 1; visibility: visible; transform: none; transition-delay: 60ms, 60ms, 0s; }
}
.mcat .mi-t { transition: color 450ms var(--ease-out), transform 700ms var(--ease-out) !important; }
.menu-cats:hover .mcat.on:not(:hover) .mi-t { color: var(--paper); transform: none; }

/* The homepage uses a light hero: readable chrome before JS initializes. */
body[data-page="home"] .bar { color: var(--ink); background: rgba(244,239,234,.94); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

@media(max-width:600px){.hD .hD-l{padding-bottom:90px}.hD .hD-pin{min-height:calc(100svh + 56px);height:auto;grid-template-rows:44svh auto}.hD .hD-chs{height:auto;min-height:390px}.hD .hD-ch{position:relative}.hD .hD-ch:not(.on){display:none}.hD .hero-cta{gap:10px;flex-wrap:wrap}}

/* FAQ collection uses the established editorial accordion. */
.faq-content{min-width:0}.faq-group+.faq-group{margin-top:56px}.faq-group>.lbl{margin-bottom:20px;color:var(--green)}
@media(max-width:600px){.faq-group+.faq-group{margin-top:36px}.faq-content summary{overflow-wrap:anywhere}}

/* comfortable touch targets for small inline links (phone numbers, breadcrumbs) without moving the layout */
@media (max-width: 760px) { .crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; } .foot-grid p a { display: inline-block; padding: 6px 0; } }

/* --- CBSE mandatory public disclosure (disclosure.html) --- */
.md-name { max-width: 62ch; margin: 0 0 clamp(16px, 2vw, 24px); padding: 16px 20px; border-left: 3px solid var(--green); background: var(--white); border-radius: 0 6px 6px 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft); }
.md-name strong { color: var(--ink); }
.md-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.md-all { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 15px/1 var(--f-text); color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow var(--t-ui), color var(--t-ui); }
.md-all:hover, .md-all:focus-visible { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.md-block { border-top: 1px solid var(--line); }
.md-block:first-of-type { border-top: 1.5px solid var(--ink); }
.md-block:last-of-type { border-bottom: 1px solid var(--line); }
.md-sum { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: clamp(18px, 2.4vw, 26px) 0; cursor: pointer; list-style: none; }
.md-sum::-webkit-details-marker { display: none; }
.md-sum:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.md-tt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.md-h { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 88; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.012em; transition: color var(--t-ui); }
.md-sum:hover .md-h { color: var(--blue); }
.md-hint { font-size: var(--fs-small); color: var(--ink-soft); }
.md-chev { flex: none; width: 22px; height: 22px; color: var(--ink-soft); transition: transform 360ms var(--ease-out); }
.md-block[open] .md-chev { transform: rotate(180deg); }
.md-body { padding: 4px 0 clamp(28px, 4vw, 44px); }
@media (min-width: 760px) { .md-body { padding-left: 50px; } }
.md-block[open] .md-body { animation: md-in 360ms var(--ease-out); }
@keyframes md-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .md-block[open] .md-body { animation: none; } .md-chev { transition: none; } }
.md-l { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 14px; font-weight: 500; }
.md-rows { margin: 0; min-width: 0; }
.md-rows > div { display: grid; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.md-rows > div:first-child { padding-top: 0; }
@media (min-width: 700px) { .md-rows > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.md-rows dt { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.45; }
.md-rows dd { margin: 0; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.md-rows dd a { color: var(--blue); text-underline-offset: 3px; }
.md-rows--docs dd { display: grid; gap: 8px; }
.md-rows--docs dd a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: 6px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-ui), color var(--t-ui); }
.md-rows--docs dd a:hover, .md-rows--docs dd a:focus-visible { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.md-rows .doc-open { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.md-sub { display: block; }
.md-labs { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-weight: 400; font-size: var(--fs-small); color: var(--ink-soft); }
.md-results { display: grid; gap: 28px; margin-top: 12px; min-width: 0; }
@media (min-width: 1000px) { .md-results { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.md-res { min-width: 0; }
.md-res .lbl { margin-bottom: 10px; color: var(--green-dark); }
.md-tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.md-tbl th, .md-tbl td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-tbl thead th { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1.5px solid var(--ink); }
.md-tbl tbody th { font-family: var(--f-disp); font-weight: 600; font-size: 18px; }
.md-tbl td:nth-child(4) { font-weight: 700; }
@media (max-width: 480px) {
  .md-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .md-tbl tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .md-tbl tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .md-tbl td { padding: 0; border: 0; }
  .md-tbl td::before { content: attr(data-l); display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
  .md-tbl td:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .md-rows:not(.md-rows--docs) dd a { display: inline-block; padding: 8px 0; margin: -8px 0; } }

/* --- Academic: the four facets of questioning-based thinking in full --- */
.facets { display: grid; gap: clamp(16px, 2vw, 24px); margin-top: clamp(48px, 7vw, 96px); }
@media (min-width: 900px) { .facets { grid-template-columns: 1fr 1fr; } }
.facet { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); background: var(--white); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); scroll-margin-top: 110px; }
.facet-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); }
.facet-n span { color: var(--ink-soft); margin-right: 6px; }
.facet-h { font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 88; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.015em; }
.facet-d { font-size: 18px; line-height: 1.55; }
.facet-pts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.facet-pts li { position: relative; padding-left: 20px; }
.facet-pts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.facet-pts b { color: var(--ink); font-weight: 600; }
.facet-ex { margin-top: 6px; padding: 16px 18px; border-left: 3px solid var(--green); background: var(--paper); border-radius: 0 10px 10px 0; }
.facet-ex + .facet-ex { margin-top: -4px; }
.facet-ex .lbl { margin-bottom: 6px; color: var(--green-dark); }
.facet-ex p:last-child { font-size: 16px; line-height: 1.55; }
.nut-wrap { margin-top: clamp(48px, 7vw, 96px); }
.nut-wrap .h3 { margin-bottom: 18px; }
.nut { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.nut th, .nut td { padding: 16px 14px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.nut thead th { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1.5px solid var(--ink); }
.nut tbody th { font-family: var(--f-disp); font-weight: 600; font-size: 19px; white-space: nowrap; }
.nut td:nth-child(3) { font-family: var(--f-serif); font-style: italic; font-size: 19px; }
@media (max-width: 760px) {
  .nut thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nut tr { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nut th, .nut td { padding: 0; border: 0; }
  .nut td::before { content: attr(data-l); display: block; margin-bottom: 2px; font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
}
.facet-flow { margin-top: clamp(32px, 4vw, 48px); max-width: 60ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); }
.facet-flow b { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* --- Beyond Academics: NCC officer's note --- */
.ncc { align-items: start; }
.ncc-ph .ph, .ncc-ph img { display: block; width: 100%; border-radius: 16px; object-fit: cover; aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .ncc-ph { position: sticky; top: calc(var(--bar-h, 76px) + 28px); } }
.ncc-copy .h2 { margin-top: 14px; }
.ncc-sub { margin: 10px 0 28px; font: italic 400 clamp(20px, 2vw, 26px)/1.3 var(--f-serif); color: var(--ink-soft); }
.ncc-copy .learning-copy strong { color: var(--ink); font-weight: 600; }
.ncc-sign { display: grid; gap: 2px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.ncc-sign b { font-family: var(--f-disp); font-weight: 600; font-size: 20px; }
.ncc-sign span { font-size: 15px; color: var(--ink-soft); }
.ks-b p a { color: var(--blue); text-underline-offset: 3px; white-space: nowrap; }

/* --- Our Team: the whole-staff group photo is very wide; show everyone, never crop the ends --- */
[data-page="team"] .mast-photo figure { height: auto; aspect-ratio: 2.75; }
[data-page="team"] .mast-photo img { height: 118%; object-fit: cover; }

/* --- accessibility: text contrast (WCAG AA) --- */
.doc-open, .video-no, .faq-group > .lbl { color: var(--green-dark); }
.btn-enquire { background: #1E7F3D; }
.btn-enquire:hover { background: var(--green-dark); }
.motion-toggle { opacity: 1; }
.words .w-t { color: rgba(26, 31, 54, .5); }
.calendar-events time { color: #2F7A3C; }
.document-list small { color: var(--ink-soft); }
.vision-text .vw { opacity: calc(.42 + var(--p, 1) * .58); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- tablets in landscape (900–1199px): four result figures must fit their columns --- */
.facts > .fact { min-width: 0; }
@media (min-width: 900px) and (max-width: 1199px) { .facts .odo { font-size: clamp(44px, 6vw, 72px); } }

/* --- phones: no text under 12px --- */
@media (max-width: 760px) {
  .toc-now-n, .docs-head, .look-n, .programme-nav small, .proud-copy .lbl { font-size: 12px !important; }
}
@media (max-width: 760px) { .day-bar span { font-size: 12px !important; } }

/* --- home: Mandatory Disclosure at a glance (key facts left, sections A–E right) --- */
.mdh-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .mdh-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "intro rows" "more rows"; gap: 0 clamp(48px, 6vw, 104px); align-items: start; } .mdh-intro { grid-area: intro; } .mdh-rows { grid-area: rows; } .mdh-more { grid-area: more; } }
.mdh-grid > * { min-width: 0; }
.mdh-intro .h2 { margin-top: 14px; }
.mdh-intro .lead { margin-top: 20px; }
.mdh-keys { display: grid; grid-template-columns: 1fr 1fr; margin: clamp(28px, 4vw, 40px) 0 0; border-top: 1.5px solid var(--ink); }
.mdh-keys > div { display: grid; gap: 6px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.mdh-keys > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.mdh-keys > div:nth-child(even) { padding-left: 18px; }
.mdh-keys dt { font-family: var(--f-mono); font-size: 12px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.mdh-keys dd { margin: 0; font-family: var(--f-disp); font-weight: 560; font-variation-settings: "wdth" 88; font-size: clamp(26px, 2.8vw, 38px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mdh-more { justify-self: start; }
@media (min-width: 900px) { .mdh-more { margin-top: 24px; } }
.mdh-rows { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.mdh-rows li { border-bottom: 1px solid var(--line); }
.mdh-rows a { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 76px; padding: 16px 6px; color: var(--ink); text-decoration: none; transition: color 700ms cubic-bezier(.22, 1, .36, 1) 80ms, transform var(--t-tap) ease-out; -webkit-tap-highlight-color: transparent; }
@media (min-width: 900px) { .mdh-rows a { min-height: 104px; gap: 24px; padding: 22px 20px; } }
.mdh-rows a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 1000ms cubic-bezier(.22, 1, .36, 1); }
.mdh-rows a:hover, .mdh-rows a:focus-visible { color: var(--paper); }
.mdh-rows a:hover::before, .mdh-rows a:focus-visible::before { transform: scaleY(1); }
.mdh-rows a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mdh-rows a:active { transform: scale(.985); }
.mdh-rows .md-l { transition: background-color var(--t-ui), color var(--t-ui); }
.mdh-rows a:hover .md-l, .mdh-rows a:focus-visible .md-l { background: var(--paper); color: var(--blue); }
.mdh-t { display: grid; gap: 4px; }
.mdh-t b { font-family: var(--f-disp); font-weight: 520; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.05; letter-spacing: -.01em; font-variation-settings: "wdth" var(--w, 90); transition: font-variation-settings 1000ms var(--ease-out); }
.mdh-rows a:hover .mdh-t b, .mdh-rows a:focus-visible .mdh-t b { --w: 100; }
.mdh-t small { font-size: var(--fs-small); line-height: 1.35; color: var(--ink-soft); transition: color 700ms cubic-bezier(.22, 1, .36, 1) 80ms; }
.mdh-rows a:hover .mdh-t small, .mdh-rows a:focus-visible .mdh-t small { color: rgba(244, 239, 234, .86); }
.mdh-a { width: 22px; height: 22px; transition: transform 900ms var(--ease-out); }
.mdh-rows a:hover .mdh-a { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .mdh-rows a, .mdh-rows a::before, .mdh-t b, .mdh-t small, .mdh-a { transition: none; } }

/* row-style section headings wrap label + title in one block: keep the same 14px gap as stacked headings */
.sec-head > div > .lbl + .h2, .sec-head > div > .lbl + h2 { margin-top: 14px; }
@media (max-width: 760px) {
  .hD-stats span, .stage-tabs span, .stage-tabs abbr, .morph-cap, .seg-lbl, .fy-grid .tag, .pcard .tag, .usp-index span, .toc-in span, thead th, .day-axis span,
  .enquiry-form-top span, legend span, .enquiry-privacy, .enquiry-alternative, .enquiry-alternative a, .pd-r, .win-tags .lvl, .guidance-topic-head,
  .cmp-eyebrow, .cmp-starter-head, .cmp-starter-k, .cmp-foot span, .cmp-foot-link, .guidance-method-grid span { font-size: 12px !important; }
}
/* inline contact and document links get a taller tap area without moving the text */
.md-rows dd a, .guidance-sidebar a { display: inline-block; padding-block: 6px; margin-block: -6px; }
/* big monitors: the content column widens so 1920–4K screens are filled, not framed by empty margins */
@media (min-width: 1900px) { :root { --max: 1520px; } }
@media (min-width: 2400px) { :root { --max: 1680px; } }

/* The Mindcrest School logo: full colour on a light plate, so it reads on light and dark headers alike */
.brand-logo { display: block; width: auto !important; height: 44px !important; aspect-ratio: 1525 / 478; padding: 4px 10px !important; box-sizing: content-box; background: #fff !important; border-radius: 10px !important; object-fit: contain; }
.bar.solid .brand-logo, body[data-page="home"] .bar .brand-logo { box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 1100px) { .brand-logo { height: 38px !important; padding: 3px 8px !important; } }
@media (max-width: 699px) { .brand-logo { height: 32px !important; padding: 3px 7px !important; border-radius: 8px !important; } }
@media (max-width: 399px) { .brand-logo { height: 28px !important; padding: 3px 6px !important; } }
@media (max-width: 359px) { .brand-logo { height: 23px !important; padding: 3px 5px !important; } }
.foot-logo { display: inline-block; margin-bottom: 22px; padding: 8px 12px; background: #fff; border-radius: 12px; }
.foot-logo img { display: block; width: 168px; height: auto; }
@media (max-width: 359px) { .bar-actions { gap: 4px; } .bar-actions > * { padding-inline: 10px !important; } }

/* Facilities: 360° virtual tour */
.tour { background: var(--ink); color: var(--paper); }
.tour-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .tour-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.tour-grid > * { min-width: 0; }
.tour-card { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; isolation: isolate; }
.tour-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tour-card:hover img, .tour-card:focus-visible img { transform: scale(1.04); }
.tour-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,46,0) 45%, rgba(20,26,46,.55)); }
.tour-badge { position: absolute; left: 18px; bottom: 16px; z-index: 1; font: 600 clamp(28px, 4vw, 52px)/1 var(--f-disp); font-variation-settings: "wdth" 80; color: #fff; }
.tour-play { position: absolute; right: 18px; bottom: 18px; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; }
.tour-play svg { width: 26px; height: 26px; }
.tour-card:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.tour-copy .h2 { margin-top: 14px; } .tour-copy .lead { margin-top: 18px; color: rgba(244,239,234,.86); } .tour-copy .btn { margin-top: 26px; }
.tour .lbl { color: rgba(244,239,234,.75); }

/* Home: questions parents ask */
.hq-grid { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .hq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 104px); align-items: start; } .hq-grid .sec-head { position: sticky; top: 112px; } }
.hq-grid > * { min-width: 0; }
.hq-grid .lead { max-width: 36ch; }
.hq-list { border-top: 1.5px solid var(--ink); }
.hq { border-bottom: 1px solid var(--line); }
.hq summary { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none; }
.hq summary::-webkit-details-marker { display: none; }
.hq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.hq-q { flex: 1; min-width: 0; font-family: var(--f-disp); font-weight: 540; font-variation-settings: "wdth" 90; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.15; letter-spacing: -.01em; transition: color var(--t-ui); }
.hq summary:hover .hq-q { color: var(--blue); }
.hq-i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.hq-i::before, .hq-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform 360ms var(--ease-out); }
.hq-i::after { transform: translate(-50%, -50%) rotate(90deg); }
.hq[open] .hq-i::after { transform: translate(-50%, -50%) rotate(0deg); }
.hq-a { padding: 0 0 22px; max-width: 62ch; color: var(--ink-soft); line-height: 1.6; }
.hq[open] .hq-a { animation: md-in 360ms var(--ease-out); }

/* --- site search --- */
.btn-search { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; flex: none; transition: background-color var(--t-ui), color var(--t-ui), transform var(--t-tap) ease-out; }
.btn-search svg { width: 20px; height: 20px; }
.btn-search:hover, .btn-search:focus-visible { background: var(--ink); color: var(--paper); box-shadow: none; }
.on-dark-bar .btn-search:hover { background: var(--paper); color: var(--ink); }
.btn-search:active { transform: scale(.94); }
@media (max-width: 1100px) { .btn-search { width: 40px; height: 40px; } }
@media (max-width: 479px) { .btn-search { display: none; } } /* small phones: search sits at the top of the menu */
.menu-search { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 0 0 18px; padding: 0 18px; border-radius: 999px; background: rgba(244, 239, 234, .1); box-shadow: inset 0 0 0 1px rgba(244, 239, 234, .28); color: var(--paper); font: 500 17px var(--f-text); text-align: left; }
.menu-search svg { width: 20px; height: 20px; flex: none; }
.menu-search:hover, .menu-search:focus-visible { background: rgba(244, 239, 234, .18); }
.srch { position: fixed; inset: 0; z-index: 1000; display: grid; justify-items: center; align-items: start; padding: clamp(12px, 10vh, 120px) 16px 16px; }
.srch-back { position: absolute; inset: 0; background: rgba(20, 26, 46, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 220ms ease; }
.srch.on .srch-back { opacity: 1; }
.srch-box { position: relative; width: min(720px, 100%); max-height: min(78vh, 760px); display: flex; flex-direction: column; background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 80px rgba(20, 26, 46, .35); overflow: hidden; transform: translateY(-10px) scale(.985); opacity: 0; transition: transform 320ms var(--ease-out), opacity 220ms ease; }
.srch.on .srch-box { transform: none; opacity: 1; }
.srch-bar { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); }
.srch-bar > svg { width: 22px; height: 22px; flex: none; color: var(--ink-soft); }
.srch-in { flex: 1; min-width: 0; height: 64px; border: 0; outline: 0; background: none; font: 400 20px var(--f-text); color: var(--ink); }
.srch-in::-webkit-search-cancel-button { display: none; }
.srch-x { flex: none; min-height: 32px; padding: 0 10px; border-radius: 8px; font: 500 12px var(--f-mono); letter-spacing: .06em; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.srch-status { padding: 10px 20px 0; font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.srch-status:empty { display: none; }
.srch-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.srch-list:empty { display: none; }
.srch-list a, .srch-ask button { display: grid; gap: 3px; width: 100%; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: inherit; text-align: left; }
.srch-list [aria-selected="true"] a, .srch-list a:hover, .srch-ask button:hover, .srch-ask button:focus-visible { background: color-mix(in srgb, var(--blue) 9%, transparent); }
.srch-list [aria-selected="true"] a { box-shadow: inset 3px 0 0 var(--blue); }
.srch-k { font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark, #1d7a3b); }
.srch-list b { font: 600 17px/1.25 var(--f-text); }
.srch-x2 { font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.srch-list mark { background: color-mix(in srgb, var(--green) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.srch-ask { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.srch-ask .srch-k { color: var(--blue); }
.srch-pop { padding: 16px 20px 20px; }
.srch-pop[hidden] { display: none; }
.srch-lbl { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.srch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; font: 500 15px var(--f-text); box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); color: var(--ink); }
.srch-chips button:hover, .srch-chips button:focus-visible { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
html.srch-open { overflow: hidden; }
@media (max-width: 699px) { .srch { padding: 0; } .srch-box { width: 100%; height: 100%; max-height: none; border-radius: 0; } .srch-in { font-size: 17px; height: 58px; } }
@media (prefers-reduced-motion: reduce) { .srch-box, .srch-back { transition: none; } }
/* a section opened from search: room under the sticky header, and a short highlight */
main h2[id], main h3[id], main section[id], main details[id] { scroll-margin-top: calc(var(--bar-h, 76px) + 24px); }
.srch-hit { animation: srch-hit 2.4s ease-out; border-radius: 6px; }
@keyframes srch-hit { 0%, 25% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 30%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); } 100% { box-shadow: 0 0 0 6px transparent; background: transparent; } }
/* admission enquiry form: hold its space while it loads from the school's ERP, so the page doesn't jump */
#schoolEnquiry { min-height: 2240px; }
@media (min-width: 740px) { #schoolEnquiry { min-height: 1300px; } }
.srch-tc { display: none; }
@media (hover: none), (max-width: 699px) { .srch-kb { display: none; } .srch-tc { display: inline; } }
.srch-dym { padding: 10px 20px 0; font-size: 15px; color: var(--ink-soft); }
.srch-dym[hidden] { display: none; }
.srch-dym button { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font: inherit; padding: 0; }
.srch-dym button b { font-weight: 650; }

/* School uniform */
.uni-days { display: grid; gap: 14px; }
@media (min-width: 760px) { .uni-days { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.uni-day { padding: clamp(20px, 2.4vw, 30px); border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.uni-when { font: 560 clamp(22px, 2.2vw, 28px)/1.1 var(--f-disp); font-variation-settings: "wdth" 88; letter-spacing: -.01em; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.uni-day dl { display: grid; gap: 14px; margin: 0; }
.uni-day dt { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 4px; }
.uni-day dd { margin: 0; font-size: 17px; line-height: 1.4; }
.uni-tbl th[scope="row"] { font-weight: 600; width: 45%; }
.uni-tbl thead th { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1.5px solid var(--ink); }

/* Blog */
.blog-grid { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bcard a { display: grid; height: 100%; text-decoration: none; color: inherit; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: transform 500ms var(--ease-out), box-shadow var(--t-ui); }
.bcard a:hover, .bcard a:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--blue), 0 18px 40px rgba(20,26,46,.08); }
.bcard-ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.bcard-ph img { width: 100%; height: 100%; object-fit: cover; }
.bcard-b { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; }
.bcard-k { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.bcard b { font: 560 clamp(19px, 1.6vw, 23px)/1.2 var(--f-disp); font-variation-settings: "wdth" 90; letter-spacing: -.01em; }
.bcard-x { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.blog-empty { padding: 40px 0; color: var(--ink-soft); }
.blog-follow { margin-top: 28px; color: var(--ink-soft); } .blog-follow a { color: var(--blue); }
.post { padding: calc(var(--bar-h, 76px) + clamp(28px, 5vw, 64px)) 0 clamp(40px, 6vw, 80px); }
.post-head, .post-body, .post-foot { max-width: calc(760px + 2 * var(--gut)); }
.post-head .lbl a { color: inherit; }
.post-title { margin-top: 14px; font: 560 clamp(34px, 5vw, 64px)/1.02 var(--f-disp); font-variation-settings: "wdth" 86; letter-spacing: -.02em; }
.post-meta { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
.post-hero { max-width: calc(1040px + 2 * var(--gut)); margin-top: clamp(24px, 4vw, 44px); }
.post-hero img { width: 100%; max-height: 80vh; object-fit: cover; border-radius: 16px; }
.post-body { margin-top: clamp(24px, 4vw, 40px); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; }
.post-body p + p, .post-body ul, .post-body p + ul, .post-body ul + p { margin-top: 1em; }
.post-body h2 { margin-top: 1.6em; font: 560 clamp(23px, 2.2vw, 30px)/1.15 var(--f-disp); font-variation-settings: "wdth" 90; }
.post-body ul { padding-left: 1.2em; } .post-body li + li { margin-top: .35em; }
.post-gallery { max-width: calc(1040px + 2 * var(--gut)); margin-top: 32px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.post-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.post-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
/* photo loading placeholders (see site.js) — the frame shimmers, the photo fades in when it has fully arrived */
.ld-host { background-color: var(--paper-2, #e9e4dc); background-image: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 80%); background-size: 220% 100%; background-repeat: no-repeat; animation: ld-shimmer 1.4s ease-in-out infinite; }
.on-dark .ld-host { background-color: rgba(255,255,255,.08); }
.life-ph .ld-host { background-color: var(--paper-2, #e9e4dc); }
img.ld-wait { opacity: 0 !important; }
img { transition: opacity .45s ease; }
@keyframes ld-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .ld-host { animation: none; background-image: none; } img { transition: none; } }
/* menu search: only on small phones (wider screens have the search button in the bar), as a quiet row under the sections */
.menu-search { max-width: 560px; margin: 0; min-height: 48px; font-size: 16px; transition: opacity 400ms; }
@media (min-width: 480px) { .menu-search { display: none; } }
.at-sub .menu-search { opacity: 0; pointer-events: none; }

/* the menu always fits the window: no scrollbar on any screen */
.menu { scrollbar-width: none; } .menu::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) {
  .menu { overflow: hidden; }
  .menu-inner { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: center; padding-top: calc(var(--bar-h) + clamp(16px, 4vh, 40px)); padding-bottom: clamp(16px, 4vh, 48px); }
  /* photo, links and contact share the column; the photo gives up height first */
  .menu-subs { align-self: stretch; container-type: inline-size; min-height: 0; grid-template-rows: minmax(0, auto) auto auto; align-content: center; row-gap: clamp(12px, 2.4vh, 26px); }
  .menu-peek { grid-area: 1 / 1; margin: 0; aspect-ratio: auto; height: calc(100cqw * 9 / 16); max-height: 100%; min-height: 0; }
  .msub { grid-area: 2 / 1 !important; }
  .msub ul { margin-bottom: 0; }
  .msub a { min-height: clamp(38px, 5vh, 48px); }
  .menu-contact { grid-area: 3 / 1; margin: 0; line-height: 1.7; }
  .mcat { min-height: clamp(52px, 9vh, 64px); }
}
@media (min-width: 1000px) and (max-height: 820px) { .menu .menu-subs .menu-peek { height: 28vh; } }
@media (min-width: 1000px) and (max-height: 680px) { .menu .menu-subs .menu-peek { display: none; } }
/* small laptops: give the links column more room so no link wraps onto two lines */
@media (min-width: 1000px) and (max-width: 1279px) { .menu-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; } .menu .menu-subs .msub a { font-size: 15.5px; } .menu .menu-subs .msub ul { column-gap: 20px; } }
/* the assistant bubble steps aside while the menu is open (it covered the last links) */
.menu-open .companion-orb, .menu-open .companion-minimise, .menu-open .companion-restore { translate: 0 140px; opacity: 0; pointer-events: none; }
/* phones and tablets: rows shrink a little on short screens (landscape phones) */
@media (max-width: 999px) {
  .mcat { min-height: clamp(44px, 10.5vh, 64px); }
  .msub a { min-height: clamp(42px, 6.4vh, 48px); }
  /* a long list (Media & Achievements on a small phone) slides within its own panel instead of being cut off */
  .menu-subs { bottom: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .menu-subs::-webkit-scrollbar { display: none; }
}
@media (max-width: 999px) and (min-width: 560px) and (max-height: 700px) { .msub ul { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
