/* Blessed Children Academy: public website
   Editorial system: Fraunces (display) + Plus Jakarta Sans (text), forest + gold. */
:root {
  --forest: #0e4a33;
  --forest-2: #15603f;
  --forest-deep: #082c1e;
  --forest-ink: #0b3c29;
  --moss: #2c7a55;
  --gold: #f4b73e;
  --gold-soft: #f9dc9a;
  --gold-ink: #8a5a00;
  --ivory: #fbf8f1;
  --bone: #f3ede1;
  --paper: #fffdf9;
  --ink: #13221b;
  --ink-2: #34453c;
  --muted: #5b6a62;
  --line: #e2dacb;
  --line-dark: rgba(244, 183, 62, .22);
  --on-dark: #f3efe4;
  --on-dark-2: rgba(243, 239, 228, .74);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: 20px;
  --shadow: 0 1px 2px rgba(8, 44, 30, .05), 0 24px 48px -24px rgba(8, 44, 30, .22);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--ivory); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--forest-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
main { overflow-x: clip; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--forest-deep); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--forest-deep); }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 380; font-variation-settings: "opsz" 144, "SOFT" 30; font-size: clamp(2.3rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.025em; color: var(--forest-deep); text-wrap: balance; }
.display em, h1 em { font-style: italic; font-weight: 340; color: var(--gold-ink); }
.display.light, .wellbeing .display, .contact .display { color: var(--on-dark); }
.wellbeing .display em, .contact .display em { color: var(--gold); }
.kicker { display: inline-block; font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.kicker.light { color: var(--gold); }
.chapter { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.chapter .num { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15rem; letter-spacing: 0; color: var(--gold-ink); }
.chapter .rule { width: 56px; height: 1px; background: currentColor; opacity: .45; }
.chapter.light { color: var(--on-dark-2); }
.chapter.light .num { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: .94rem; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; transition: transform .3s var(--ease), background .25s, box-shadow .25s, color .25s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--forest-2); box-shadow: 0 12px 24px -12px rgba(8, 44, 30, .6); }
.btn-gold { background: var(--gold); color: var(--forest-deep); }
.btn-gold:hover { background: #f7c55c; box-shadow: 0 14px 30px -14px rgba(244, 183, 62, .9); }
.btn-line { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(243, 239, 228, .45); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1px rgba(14, 74, 51, .3); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--forest); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--forest); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: var(--forest); color: var(--on-dark); transition: background .3s, box-shadow .3s; }
header.site.scrolled { background: rgba(8, 44, 30, .9); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6); }
.ribbon { background: var(--forest-deep); color: var(--gold-soft); font-size: .8rem; letter-spacing: .02em; border-bottom: 1px solid rgba(244, 183, 62, .12); }
.ribbon-in { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; text-align: center; }
.ribbon a { color: var(--gold); font-weight: 700; border-bottom: 1px solid rgba(244, 183, 62, .4); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(244, 183, 62, .7); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(244, 183, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 183, 62, 0); } }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; transition: height .3s; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; }
.brand .logo-mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(244, 183, 62, .45); }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark b { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; }
.wordmark small { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .24em; color: var(--gold); margin-top: 5px; }
nav.main { display: flex; align-items: center; gap: 2px; }
nav.main a:not(.btn) { position: relative; color: var(--on-dark-2); font-weight: 600; font-size: .9rem; padding: 10px 12px; transition: color .2s; }
nav.main a:not(.btn):not(.nav-portal)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
nav.main a:not(.btn):hover { color: var(--on-dark); }
nav.main a:not(.btn):hover::after { transform: scaleX(1); }
.nav-portal { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; }
.nav-portal svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.nav-cta { margin-left: 8px; padding: 10px 20px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid rgba(243, 239, 228, .25); background: transparent; border-radius: 50%; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--on-dark); transition: transform .35s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-dark); background:
  radial-gradient(900px 600px at 78% 30%, rgba(244, 183, 62, .16), transparent 60%),
  radial-gradient(800px 700px at 10% 110%, rgba(44, 122, 85, .5), transparent 60%),
  linear-gradient(180deg, var(--forest) 0%, var(--forest-ink) 100%);
  padding: clamp(40px, 7vw, 96px) 0 0; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .16; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; min-height: min(640px, calc(100vh - 220px)); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: clamp(20px, 3vw, 32px); }
.eyebrow i { width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 340; font-variation-settings: "opsz" 144, "SOFT" 50; font-size: clamp(3.3rem, 8.2vw, 7.4rem); line-height: .94; letter-spacing: -.035em; color: var(--on-dark); }
.hero h1 > span { display: block; }
.hero h1 em { color: var(--gold); font-weight: 300; }
.hero h1 .amp { font-style: italic; font-weight: 300; color: var(--on-dark-2); font-size: .8em; }
.hero h1 .l2 { padding-left: .6em; }
.hero h1 .l3 { padding-left: 1.6em; }
.lead { max-width: 33em; margin-top: clamp(24px, 3vw, 36px); font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--on-dark-2); line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.5vw, 40px); }

.medallion { position: relative; width: min(100%, 470px); aspect-ratio: 1; justify-self: center; color: var(--gold); }
.medallion .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 80s linear infinite; }
.medallion .ring text { font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 5px; fill: var(--gold-soft); }
.crest-wrap { position: absolute; inset: 18%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255, 253, 249, .1), rgba(255, 253, 249, .02) 70%); box-shadow: inset 0 0 0 1px rgba(244, 183, 62, .25), 0 40px 80px -30px rgba(0, 0, 0, .55); }
.crest-wrap img { width: 82%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); animation: float 9s ease-in-out infinite; }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px 3px rgba(244, 183, 62, .6); animation: twinkle 4s ease-in-out infinite; }
.s1 { top: 9%; left: 22%; } .s2 { top: 70%; right: 2%; animation-delay: 1.3s; } .s3 { bottom: 4%; left: 34%; animation-delay: 2.6s; width: 4px; height: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.6); } }

.ledger { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line-dark); }
.ledger > div { padding: 24px 24px 30px 0; }
.ledger > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.ledger dt { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ledger dd { color: var(--on-dark-2); font-size: .94rem; }
.ledger dd b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--on-dark); margin-right: 6px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.split-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.split-head > p, .split-head > div > p { color: var(--ink-2); font-size: 1.04rem; max-width: 34em; }
.split-head.compact { margin-bottom: 36px; }

/* 01 School */
.essay { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.essay-body p { color: var(--ink-2); font-size: 1.08rem; }
.essay-body p + p { margin-top: 1.1em; }
.dropcap::first-letter { float: left; font-family: var(--serif); font-weight: 400; font-size: 4.4em; line-height: .8; margin: .08em .1em 0 0; color: var(--forest); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); margin-top: clamp(56px, 8vw, 104px); }
.pillars li { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.p-no { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-ink); }
.pillars h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: -.01em; color: var(--forest-deep); margin: 10px 0 8px; }
.pillars p { color: var(--muted); font-size: .98rem; }

/* Values */
.values { background: var(--forest-deep); color: var(--on-dark); padding: clamp(64px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); overflow: hidden; }
.values-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; margin-bottom: clamp(28px, 4vw, 44px); }
.values-head h2 { font-size: .74rem; }
.values-head p { color: var(--on-dark-2); max-width: 36em; }
.marquee { display: flex; width: max-content; }
.marquee-track { display: flex; flex: none; animation: marquee 48s linear infinite; }
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(3rem, 8vw, 7rem); line-height: 1.1; letter-spacing: -.03em; padding-right: .5em; white-space: nowrap; color: var(--on-dark); }
.marquee-track li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(244, 183, 62, .8); }
.marquee-track li::after { content: ""; width: .14em; height: .14em; margin-left: .5em; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-toggle { margin-top: 20px; background: none; border: 0; color: var(--on-dark-2); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; min-height: 44px; border-bottom: 1px solid rgba(243, 239, 228, .3); }
.marquee-toggle:hover { color: var(--gold); }

/* 02 Learning */
.stages { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.stage-tabs { display: flex; flex-direction: column; }
.stage-tabs [role=tab] { display: grid; gap: 2px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 22px 0 22px 22px; position: relative; color: var(--muted); transition: color .25s, padding .35s var(--ease); }
.stage-tabs [role=tab]:last-child { border-bottom: 1px solid var(--line); }
.stage-tabs [role=tab]::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px; background: var(--gold); transform: scaleY(0); transition: transform .35s var(--ease); }
.stage-tabs [role=tab] span { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.stage-tabs [role=tab] b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.15; }
.stage-tabs [role=tab] small { display: block; font-family: var(--font); font-size: .84rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.stage-tabs [role=tab]:hover { color: var(--ink); }
.stage-tabs [aria-selected=true] { color: var(--forest-deep); padding-left: 30px; }
.stage-tabs [aria-selected=true]::before { transform: scaleY(1); }
.stage-tabs [aria-selected=true] span { color: var(--gold-ink); }
.stage-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow); animation: fadeUp .5s var(--ease) both; }
.sp-intro { font-family: var(--serif); font-weight: 350; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; color: var(--forest-deep); letter-spacing: -.01em; }
.sp-h { margin: 30px 0 14px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; counter-reset: a; }
.areas li { counter-increment: a; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-weight: 600; color: var(--ink); }
.areas li::before { content: counter(a, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .9rem; color: var(--gold-ink); min-width: 1.6em; }
.areas em { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--moss); background: #e8f2ec; padding: 2px 8px; border-radius: 99px; }
.sp-foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 32px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.sp-foot b { display: block; font-size: .82rem; color: var(--forest-deep); margin-bottom: 4px; }
.sp-foot span { color: var(--muted); font-size: .95rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

.assess { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.assess h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.02em; line-height: 1.15; color: var(--forest-deep); margin-bottom: 12px; }
.assess p { color: var(--ink-2); }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.levels li { border-radius: 16px; padding: 22px 16px 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.levels abbr { text-decoration: none; font-family: var(--serif); font-weight: 400; font-size: 2.6rem; letter-spacing: -.02em; line-height: 1; }
.levels span { font-size: .82rem; font-weight: 600; line-height: 1.35; }
.levels li:nth-child(1) { background: var(--forest); color: var(--on-dark); }
.levels li:nth-child(1) abbr { color: var(--gold); }
.levels li:nth-child(2) { background: #d9eadf; color: var(--forest-deep); }
.levels li:nth-child(3) { background: #fbeccb; color: #5a3d00; }
.levels li:nth-child(4) { background: var(--bone); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

.competencies { margin-top: clamp(48px, 6vw, 72px); }
.competencies ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.competencies li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .93rem; color: var(--ink-2); }

/* Day */
.day { background: var(--bone); }
.seg { display: inline-flex; margin-top: 22px; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.seg [role=tab] { border: 0; background: none; min-height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); transition: background .25s, color .25s; }
.seg [aria-selected=true] { background: var(--forest); color: var(--ivory); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(16px, 2.5vw, 32px); }
.timeline li { position: relative; padding: 28px 0 36px; border-top: 1px solid rgba(14, 74, 51, .25); animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bone); }
.timeline time { display: block; font-family: var(--serif); font-weight: 350; font-size: 2.3rem; letter-spacing: -.03em; line-height: 1; color: var(--forest); font-variant-numeric: lining-nums; }
.timeline h3 { margin: 12px 0 4px; font-size: 1rem; font-weight: 700; color: var(--forest-deep); }
.timeline p { color: var(--muted); font-size: .94rem; }

/* 03 Wellbeing */
.wellbeing { position: relative; background: radial-gradient(800px 500px at 90% 0%, rgba(244, 183, 62, .12), transparent 60%), var(--forest); color: var(--on-dark); }
.wellbeing .split-head > p { color: var(--on-dark-2); }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.care { padding: clamp(26px, 3vw, 40px); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .35s; }
.care:hover { background: rgba(255, 255, 255, .03); }
.care svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.care h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; letter-spacing: -.01em; margin-bottom: 8px; }
.care p { color: var(--on-dark-2); font-size: .96rem; }

/* Portal showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.sc-copy .display { margin: 14px 0 18px; }
.sc-lead { color: var(--ink-2); font-size: 1.06rem; max-width: 30em; }
.sc-list { margin: 30px 0 28px; display: grid; }
.sc-item { text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 18px 0 18px 20px; position: relative; display: grid; gap: 2px; }
.sc-item:last-child { border-bottom: 1px solid var(--line); }
.sc-item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--gold); transform: scaleY(0); transition: transform .35s var(--ease); }
.sc-item b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--muted); transition: color .25s; }
.sc-item span { color: var(--muted); font-size: .93rem; }
.sc-item[aria-selected=true] b { color: var(--forest-deep); }
.sc-item[aria-selected=true]::before { transform: scaleY(1); }
.phone-stage { position: relative; display: grid; justify-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -52%); background: radial-gradient(circle, rgba(244, 183, 62, .28), rgba(244, 183, 62, 0) 60%); z-index: -1; }
.phone { width: 300px; height: 600px; border-radius: 46px; background: #0b1511; padding: 12px; box-shadow: 0 0 0 1px #2a3a33, 0 50px 90px -30px rgba(8, 44, 30, .55); position: relative; transform: rotate(-3deg); }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: #0b1511; border-radius: 99px; z-index: 2; }
.screen { height: 100%; border-radius: 36px; background: var(--ivory); padding: 56px 18px 18px; overflow: hidden; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; font-size: .86rem; }
.screen.show { opacity: 1; transform: none; }
.phone-cap { margin-top: 22px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.ps-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.ps-top span { font-family: var(--serif); font-size: 1.45rem; color: var(--forest-deep); }
.ps-top small { color: var(--muted); font-weight: 600; }
.ps-balance { background: var(--forest); color: var(--on-dark); border-radius: 18px; padding: 18px; margin-bottom: 14px; display: grid; gap: 4px; }
.ps-balance small { color: var(--on-dark-2); }
.ps-balance b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.ps-btn { justify-self: start; margin-top: 8px; background: var(--gold); color: var(--forest-deep); font-weight: 700; padding: 7px 14px; border-radius: 99px; font-size: .8rem; }
.ps-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.ps-row.ok b { color: var(--moss); }
.ps-toast { margin-top: 16px; text-align: center; background: #e2f0e7; color: var(--forest); font-weight: 700; padding: 10px; border-radius: 12px; }
.lvl { font-style: normal; font-weight: 800; font-size: .74rem; padding: 4px 9px; border-radius: 8px; }
.lvl.ee { background: var(--forest); color: var(--gold); } .lvl.me { background: #d9eadf; color: var(--forest-deep); } .lvl.ae { background: #fbeccb; color: #5a3d00; }
.ps-remark { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--forest-deep); background: var(--bone); padding: 14px; border-radius: 14px; }
.ps-remark small { display: block; margin-top: 6px; font-family: var(--font); font-style: normal; font-size: .74rem; color: var(--muted); }
.ps-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin-bottom: 10px; display: grid; gap: 3px; }
.ps-card small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.ps-card.gold { background: #fdf1d6; border-color: #f1d9a0; }

/* 04 Admissions */
.admissions { background: linear-gradient(180deg, var(--ivory), var(--bone)); }
.admit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.admit-lead { margin: 20px 0 8px; color: var(--ink-2); font-size: 1.06rem; max-width: 32em; }
.journey { counter-reset: j; margin-top: 28px; }
.journey li { counter-increment: j; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.journey li::before { content: counter(j, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--gold-ink); letter-spacing: -.03em; }
.journey h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--forest-deep); }
.journey p { color: var(--muted); font-size: .97rem; }
.bring { margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bring summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--forest); display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.bring summary::-webkit-details-marker { display: none; }
.bring summary::after, .faq summary::after { content: "+"; font-family: var(--serif); font-weight: 300; font-size: 1.8rem; line-height: 1; color: var(--gold-ink); transition: transform .3s var(--ease); flex: none; margin-left: 16px; }
.bring[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.bring ul { padding-bottom: 12px; }
.bring li { position: relative; padding: 6px 0 6px 24px; color: var(--ink-2); font-size: .97rem; }
.bring li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }
.bring .muted { padding-bottom: 18px; }
.enq-open-btn { display: none; margin-top: 24px; }

.enquiry { position: relative; background: var(--paper); border-radius: 28px; padding: clamp(26px, 4vw, 48px); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px var(--line), 0 40px 80px -40px rgba(8, 44, 30, .35); position: sticky; top: 100px; }
.enq-crest { position: absolute; right: clamp(22px, 3vw, 40px); top: clamp(22px, 3vw, 40px); width: 56px; height: 56px; opacity: .1; }
.enquiry h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -.02em; color: var(--forest-deep); padding-right: 64px; }
.enquiry > .muted { margin: 4px 0 22px; font-size: .95rem; }
.kind { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bone); border-radius: 16px; margin-bottom: 20px; }
.kind label { position: relative; }
.kind input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.kind span { display: grid; place-items: center; min-height: 44px; border-radius: 12px; font-weight: 700; font-size: .9rem; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; text-align: center; padding: 0 8px; }
.kind input:checked + span { background: var(--paper); color: var(--forest-deep); box-shadow: 0 2px 8px -2px rgba(8, 44, 30, .2); }
.kind input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.field label i { font-style: normal; color: var(--gold-ink); }
.field input, .field select, .field textarea, .fee-card select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d6cdbb; border-radius: 12px; background: var(--ivory); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus, .fee-card select:focus { outline: none; border-color: var(--forest); background: #fff; box-shadow: 0 0 0 4px rgba(14, 74, 51, .12); }
.field .fx-msg, .field small { font-size: .8rem; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); flex: none; }
.check a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.form-msg { margin-top: 14px; font-size: .92rem; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--moss); } .form-msg.err { color: #a3321b; }
.enq-close { display: none; position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: var(--bone); font-size: 1.6rem; line-height: 1; color: var(--ink); z-index: 2; }

/* 05 Fees & calendar */
.fees-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.fee-card { background: var(--forest); color: var(--on-dark); border-radius: 28px; padding: clamp(26px, 3.5vw, 44px); box-shadow: 0 40px 80px -40px rgba(8, 44, 30, .6); }
.est-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.est-head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.est-head span { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.fee-card label[for] { display: block; font-size: .8rem; font-weight: 700; color: var(--on-dark-2); margin-bottom: 6px; }
.fee-card select { background-color: rgba(255, 255, 255, .06); color: var(--on-dark); border-color: rgba(243, 239, 228, .25); }
.fee-card select:focus { background: var(--forest-deep); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(244, 183, 62, .2); }
.fee-card select option { color: var(--ink); background: #fff; }
#est-extras { margin-top: 16px; }
.est-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(243, 239, 228, .12); font-size: .93rem; color: var(--on-dark-2); }
.est-row span { flex: 1; }
.est-row small { font-size: .72rem; font-weight: 700; color: var(--gold); margin-left: 4px; }
.est-row b { font-variant-numeric: tabular-nums; color: var(--on-dark); font-weight: 600; }
.est-row.opt { cursor: pointer; min-height: 44px; }
.est-row.opt input { width: 18px; height: 18px; accent-color: var(--gold); }
.est-row.base { color: var(--on-dark); font-weight: 600; }
.est-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(244, 183, 62, .45); }
.est-total span { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.est-total b { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.est-note { margin-top: 14px; font-size: .84rem; color: var(--on-dark-2); }
.est-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.fee-side { display: grid; gap: 28px; }
table.fees { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.fees caption { text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); padding-bottom: 10px; }
table.fees th { text-align: left; font-size: .76rem; font-weight: 700; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--ink-2); }
table.fees th:last-child, table.fees td:last-child { text-align: right; }
table.fees td { padding: 11px 0; border-bottom: 1px solid var(--line); }
table.fees td:first-child { font-family: var(--serif); font-size: 1.08rem; color: var(--forest-deep); }
table.fees td:last-child { font-weight: 600; }
.pay { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; }
.pay h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--forest-deep); margin-bottom: 8px; }
.pay p { color: var(--ink-2); font-size: .95rem; }
.pay p + p { margin-top: 6px; }
.pay-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calendar { margin-top: clamp(64px, 8vw, 104px); }
.calendar > .muted { margin-top: 14px; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.term { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--paper); }
.term header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.t-no { font-family: var(--serif); font-size: 1.6rem; color: var(--forest-deep); letter-spacing: -.02em; }
.t-tag { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--bone); color: var(--muted); }
.term dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .93rem; }
.term dt { color: var(--muted); }
.term dd { font-weight: 700; color: var(--ink); text-align: right; }
.term.done { opacity: .7; }
.term.now { background: var(--forest); border-color: var(--forest); color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(8, 44, 30, .6); }
.term.now .t-no { color: var(--on-dark); }
.term.now .t-tag { background: var(--gold); color: var(--forest-deep); }
.term.now dl div { border-color: rgba(243, 239, 228, .15); }
.term.now dt { color: var(--on-dark-2); } .term.now dd { color: var(--on-dark); }

/* News */
.news-sec { padding-top: 0; }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-item { padding: 26px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.news-item time { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.news-item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--forest-deep); margin: 8px 0 6px; line-height: 1.25; }
.news-item p { color: var(--muted); font-size: .95rem; }
.news-empty { grid-column: 1 / -1; padding: 36px; border: 1px dashed #d6cdbb; border-radius: var(--r); text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }

/* FAQ */
#faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 110px; }
.faq-grid > div:first-child .muted { margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; min-height: 44px; font-family: var(--serif); font-weight: 450; font-size: 1.22rem; letter-spacing: -.01em; color: var(--forest-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--forest-2); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }
.faq details p a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }

/* Contact */
.contact { position: relative; overflow: hidden; background: radial-gradient(700px 500px at 0% 100%, rgba(44, 122, 85, .55), transparent 60%), radial-gradient(600px 400px at 100% 0%, rgba(244, 183, 62, .14), transparent 60%), var(--forest-ink); color: var(--on-dark); padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: end; }
.contact-copy .display { margin: 14px 0 18px; font-size: clamp(2.6rem, 5.6vw, 5rem); }
.contact-copy > p { color: var(--on-dark-2); font-size: 1.06rem; max-width: 30em; }
.contact-list > div { padding: 18px 0; border-top: 1px solid var(--line-dark); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-list dt { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact-list dd { font-family: var(--serif); font-size: 1.3rem; color: var(--on-dark); }
.contact-list a { color: var(--on-dark); border-bottom: 1px solid rgba(244, 183, 62, .4); }
.contact-list a:hover { color: var(--gold); }

/* Privacy */
.privacy { background: var(--bone); padding: 8px 0; border-top: 1px solid var(--line); }
.privacy summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 22px 0; min-height: 44px; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary h2 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--forest-deep); }
.privacy summary span { color: var(--muted); font-size: .92rem; }
.privacy summary span::after { content: " ›"; color: var(--gold-ink); }
.privacy-body { columns: 2 320px; column-gap: 48px; padding-bottom: 32px; }
.privacy-body p { break-inside: avoid; margin-bottom: 14px; color: var(--ink-2); font-size: .93rem; }
.privacy-body b { color: var(--forest-deep); }

/* Footer */
footer.site { background: var(--forest-deep); color: var(--on-dark-2); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.foot-crest { width: 96px; height: 96px; }
.foot-motto { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--gold-soft); letter-spacing: -.01em; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 44px 0; }
.foot-grid h4 { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot-grid li { padding: 4px 0; font-size: .94rem; }
.foot-grid a { color: var(--on-dark-2); transition: color .2s; }
.foot-grid a:hover { color: var(--on-dark); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(243, 239, 228, .1); font-size: .84rem; }
.foot-bottom a { color: var(--on-dark-2); }
.foot-bottom a:hover { color: var(--gold); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > *, .medallion { animation: heroIn 1.1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .18s; } .hero-copy > :nth-child(4) { animation-delay: .26s; } .medallion { animation-delay: .2s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .screen { opacity: 1; transform: none; }
  .marquee { width: auto; flex-wrap: wrap; }
  .marquee-track[aria-hidden] { display: none; }
  .marquee-track { flex-wrap: wrap; padding: 0 var(--gutter); }
  .marquee-track li { font-size: clamp(2rem, 5vw, 3.6rem); }
  .marquee-toggle { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  nav.main a:not(.btn):not(.nav-portal) { padding: 10px 8px; font-size: .86rem; }
  .stages { grid-template-columns: 280px 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .menu-btn { display: block; z-index: 3; }
  nav.main { position: fixed; inset: 0; z-index: 2; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 96px var(--gutter) 40px; background: var(--forest-deep); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; overflow-y: auto; }
  .menu-open nav.main { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  nav.main a:not(.btn):not(.nav-portal) { font-family: var(--serif); font-weight: 350; font-size: clamp(1.8rem, 7vw, 2.6rem); color: var(--on-dark); padding: 10px 0; border-bottom: 1px solid var(--line-dark); letter-spacing: -.02em; }
  nav.main a:not(.btn)::after { display: none; }
  .nav-portal { margin: 24px 0 0; font-size: 1rem !important; }
  .nav-cta { margin: 16px 0 0; padding: 16px; }
  .brand { position: relative; z-index: 3; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .medallion { width: min(78%, 380px); order: -1; }
  .essay, .split-head, .showcase, .admit, .fees-grid, .faq-grid, .contact-grid, .assess { grid-template-columns: 1fr; }
  .split-head { align-items: start; }
  .stages { grid-template-columns: 1fr; }
  .stage-tabs { flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
  .stage-tabs::-webkit-scrollbar { display: none; }
  .stage-tabs [role=tab], .stage-tabs [role=tab]:last-child { flex: none; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; background: var(--paper); }
  .stage-tabs [role=tab]::before { display: none; }
  .stage-tabs [role=tab][aria-selected=true] { padding-left: 16px; background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
  .stage-tabs [aria-selected=true] span { color: var(--gold); }
  .stage-tabs [aria-selected=true] small { color: var(--on-dark-2); }
  .stage-tabs [role=tab] b { font-size: 1.2rem; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .enquiry { position: relative; top: 0; }
  .faq-grid > div:first-child { position: static; }
  .phone { transform: none; }
  .news { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .ribbon-in { font-size: .74rem; justify-content: flex-start; text-align: left; padding-top: 6px; padding-bottom: 6px; }
  .ribbon a { display: none; }
  .bar { height: 66px; }
  .wordmark b { font-size: 1.05rem; }
  .brand .logo-mark { width: 38px; height: 38px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.9rem, 14.5vw, 4.2rem); }
  .hero h1 .l2 { padding-left: .35em; } .hero h1 .l3 { padding-left: .9em; }
  .eyebrow { font-size: .68rem; letter-spacing: .16em; gap: 10px; }
  .medallion { width: min(64%, 260px); }
  .cta-row .btn { flex: 1 1 100%; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger > div, .ledger > div + div { padding: 18px 14px 20px 0; border-left: 0; }
  .ledger > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line-dark); }
  .ledger > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .ledger dd b { font-size: 1.25rem; display: block; }
  .ledger dd { font-size: .86rem; }
  .pillars, .care-grid, .news, .terms, .timeline { grid-template-columns: 1fr; }
  .timeline li { display: grid; grid-template-columns: 84px 1fr; gap: 0 12px; padding: 18px 0 18px; }
  .timeline time { font-size: 1.7rem; }
  .timeline h3 { margin-top: 2px; }
  .areas { grid-template-columns: 1fr; }
  .sp-foot { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr 1fr; }
  .levels li { min-height: 116px; }
  .phone { width: 270px; height: 540px; }
  .grid2 { grid-template-columns: 1fr; }
  .journey li { grid-template-columns: 48px 1fr; }
  .journey li::before { font-size: 1.9rem; }
  /* The enquiry form is a full-screen sheet on phones */
  .admit .enquiry { display: none; }
  .enq-open-btn { display: flex; }
  .enq-open .admit .enquiry { display: block; position: fixed; inset: 0; z-index: 70; border-radius: 0; overflow-y: auto; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); animation: fadeUp .3s var(--ease) both; opacity: 1; transform: none; }
  .enq-open { overflow: hidden; }
  .enquiry .enq-close { display: grid; }
  .enq-crest { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; }
  .faq summary { font-size: 1.1rem; }
  .faq details p { padding-right: 0; }
}
@media print {
  header.site, .marquee, .marquee-toggle, .medallion, .enquiry, .phone-stage { display: none; }
  body { background: #fff; }
}
@media (max-width: 960px) { .menu-open header.site { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--forest-deep); } }
.eyebrow { flex-wrap: wrap; row-gap: 6px; }
.eyebrow span { white-space: nowrap; }
.est-total { flex-wrap: wrap; gap: 4px 12px; }
@media (max-width: 640px) { .eyebrow { flex-direction: column; align-items: flex-start; } .eyebrow i { display: none; } }

/* Placeholders the school still has to confirm: visible, never mistaken for the real thing */
mark.ph { display: inline-block; vertical-align: middle; font: 700 .62rem/1.5 var(--sans, 'Plus Jakarta Sans', sans-serif); letter-spacing: .06em; text-transform: uppercase; color: #7a4a00; background: repeating-linear-gradient(135deg, #fff4d6 0 6px, #ffe9b0 6px 12px); border: 1px dashed #c98a12; border-radius: 6px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; cursor: help; }
.cta-row mark.ph { align-self: center; }

/* ---------- One screen at a time ----------
   The page scales with the screen's width (scale.js), so on a wide but short
   screen the hero used to run past the fold. Sizes now answer to the height
   too: the first screen is always the whole hero, headline to facts strip.
   --vh is the visible height in page units (divided by the page zoom). */
:root { --vh: calc(100vh / var(--z, 1)); --top: 124px; }
@supports (height: 100svh) { :root { --vh: calc(100svh / var(--z, 1)); } }
:root { --section: clamp(64px, min(11vw, calc(var(--vh) * .16)), 150px); }
@media (min-width: 961px) {
  .hero { display: flex; flex-direction: column; min-height: calc(var(--vh) - var(--top)); padding-top: clamp(16px, calc(var(--vh) * .035), 80px); }
  .hero .lead { line-height: 1.6; }
  .hero-grid { flex: 1; min-height: 0; }
  .hero > .container:last-of-type { flex: none; }
  .hero h1 { font-size: clamp(2.8rem, min(8.2vw, calc(var(--vh) * .092)), 7.4rem); }
  .eyebrow { margin-bottom: clamp(12px, calc(var(--vh) * .03), 32px); }
  .lead { margin-top: clamp(14px, calc(var(--vh) * .03), 36px); }
  .cta-row { margin-top: clamp(16px, calc(var(--vh) * .035), 40px); }
  .medallion { width: min(100%, 470px, calc(var(--vh) * .56)); }
  .ledger { margin-top: clamp(14px, calc(var(--vh) * .03), 72px); }
  .ledger > div { padding-top: clamp(12px, calc(var(--vh) * .025), 24px); padding-bottom: clamp(14px, calc(var(--vh) * .03), 30px); }
  .display { font-size: clamp(2.3rem, min(4.6vw, calc(var(--vh) * .075)), 4.1rem); }
}
html, body { overflow-x: clip; max-width: 100%; }
/* Phones and tablets: the crest medallion stays beside the headline, as on desktop */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eye eye" "title med" "lead lead" "cta cta"; column-gap: clamp(8px, 3vw, 28px); row-gap: 0; align-items: center; }
  .hero-copy { display: contents; }
  .hero .eyebrow { grid-area: eye; }
  .hero h1 { grid-area: title; font-size: clamp(2.2rem, 8vw, 4.6rem); }
  .hero .lead { grid-area: lead; }
  .hero .cta-row { grid-area: cta; }
  .medallion { grid-area: med; order: 0; width: clamp(128px, 38vw, 330px); justify-self: end; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(1.9rem, 10.2vw, 3.2rem); }
  .hero h1 .l2 { padding-left: .25em; } .hero h1 .l3 { padding-left: .6em; }
  .medallion { width: clamp(118px, 37vw, 200px); }
}

/* Ribbon: one line everywhere — the term on the left, admissions on the right */
.ribbon-in { flex-wrap: nowrap; white-space: nowrap; gap: 12px; }
.ribbon a { border-bottom: 0; }
.ribbon .r-status { color: var(--gold-soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ribbon .r-status b { color: #fff8e8; font-weight: 700; }
.ribbon .r-status:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ribbon .r-sep { width: 1px; height: 14px; background: rgba(244, 183, 62, .35); flex: none; }
.ribbon .r-adm { flex: none; color: var(--forest-deep); background: var(--gold); border-radius: 99px; padding: 3px 11px; font-weight: 700; font-size: .76rem; }
.ribbon .r-adm:hover { background: #ffd57a; }
@media (max-width: 640px) {
  .ribbon-in { display: flex !important; justify-content: space-between; gap: 8px; min-height: 36px; padding-top: 0; padding-bottom: 0; font-size: .74rem; }
  .ribbon .r-detail, .ribbon .r-sep { display: none; }
  .ribbon a.r-status, .ribbon a.r-adm { display: inline-block; }
  .ribbon .r-status { flex: 1; text-align: left; }
  .ribbon .r-adm { padding: 3px 9px; font-size: .7rem; }
}

.env-mark { position: fixed; right: 12px; bottom: 12px; z-index: 9999; background: #b42318; color: #fff; font: 700 .78rem/1.2 system-ui, sans-serif; padding: 7px 14px; border-radius: 99px; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }

.foot-powered { margin-top: 10px; font-size: .74rem; opacity: .7; text-align: center; } .foot-powered a { color: inherit; } .powered-by img { vertical-align: -2px; margin-right: 3px; border-radius: 3px; }
