:root {
  --green: #173f35;
  --green-deep: #0d2e27;
  --green-soft: #dbe7df;
  --gold: #e9b949;
  --gold-dark: #ca9430;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --ink: #17211e;
  --muted: #66716d;
  --burgundy: #7c263f;
  --line: rgba(23, 63, 53, .14);
  --shadow: 0 24px 70px rgba(13, 46, 39, .16);
  --radius: 22px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -60px; background: var(--gold); padding: 12px 18px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.utility-bar { background: var(--green-deep); color: rgba(255,255,255,.72); font-size: .76rem; letter-spacing: .02em; }
.utility-inner { height: 34px; display: flex; align-items: center; justify-content: space-between; }
.utility-inner div { display: flex; gap: 26px; }
.utility-bar a { text-decoration: none; }
.site-header { position: absolute; top: 34px; left: 0; right: 0; z-index: 20; color: white; border-bottom: 1px solid rgba(255,255,255,.2); }
.site-header.scrolled { position: fixed; top: 0; background: rgba(13,46,39,.96); backdrop-filter: blur(16px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.nav-wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 46px; height: 52px; object-fit: contain; flex: none; }
.brand > span:last-child { line-height: 1; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.03em; }
.brand small { display: block; margin-top: 5px; text-transform: uppercase; letter-spacing: .28em; font-size: .55rem; opacity: .72; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .86rem; font-weight: 650; }
.main-nav a { text-decoration: none; }
.main-nav > a:not(.button) { position: relative; }
.main-nav > a:not(.button)::after { content: ""; position: absolute; height: 1px; background: var(--gold); left: 0; right: 100%; bottom: -7px; transition: .25s; }
.main-nav > a:not(.button):hover::after { right: 0; }
.nav-login { border: 0; background: none; color: white; cursor: pointer; font-weight: 650; }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 9px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: white; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 2px; font-weight: 800; font-size: .82rem; letter-spacing: .015em; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 44px; padding-inline: 19px; }
.button-gold { color: #1d261e; background: var(--gold); box-shadow: 0 10px 24px rgba(233,185,73,.18); }
.button-gold:hover { background: #f2c55d; }
.button-dark { color: white; background: var(--green); }
.button-dark:hover { background: var(--green-deep); }
.button-outline-light { color: white; border: 1px solid rgba(255,255,255,.4); background: transparent; }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--green); font-size: .87rem; font-weight: 800; text-decoration: none; }
.text-link span { color: var(--gold-dark); font-size: 1.15rem; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.light-link { color: white; }
.eyebrow { margin-bottom: 16px; color: var(--burgundy); text-transform: uppercase; letter-spacing: .22em; font-size: .68rem; font-weight: 850; }
.eyebrow.light { color: var(--gold); }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(2.45rem, 5vw, 4.4rem); }

.hero { min-height: 820px; height: 100svh; position: relative; display: flex; align-items: center; color: white; overflow: hidden; background: var(--green-deep); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(8,32,27,.92) 0%, rgba(8,32,27,.72) 38%, rgba(8,32,27,.08) 72%), linear-gradient(0deg, rgba(8,32,27,.55), transparent 44%); }
.hero-content { position: relative; z-index: 2; padding-top: 90px; }
.hero h1 { max-width: 780px; font-size: clamp(4rem, 8.5vw, 7.4rem); font-weight: 500; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-content > p { max-width: 610px; margin: 28px 0 34px; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.8vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.hero-proof { display: flex; gap: 54px; margin-top: 64px; }
.hero-proof div { display: grid; padding-left: 15px; border-left: 1px solid rgba(255,255,255,.24); }
.hero-proof strong { font-family: var(--serif); font-size: 1.4rem; color: white; }
.hero-proof span { color: rgba(255,255,255,.58); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-scroll { position: absolute; right: 26px; bottom: 58px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; color: white; text-decoration: none; }
.hero-scroll span { writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: .18em; font-size: .58rem; opacity: .6; }

.access-strip { position: relative; z-index: 5; margin-top: -22px; }
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: white; box-shadow: var(--shadow); }
.access-item { min-height: 118px; padding: 25px 30px; display: flex; gap: 18px; align-items: center; text-align: left; color: var(--ink); background: white; border: 0; border-right: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.access-item:last-child { border-right: 0; }
.access-item:hover { background: var(--cream); }
.access-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-family: var(--serif); font-weight: 800; }
.access-item > span:nth-child(2) { display: grid; }
.access-item strong { font-family: var(--serif); font-size: 1.08rem; }
.access-item small { color: var(--muted); font-size: .72rem; }
.access-item b { margin-left: auto; color: var(--gold-dark); }

.section { padding: 120px 0; }
.story { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: .92fr 1fr; gap: 11%; align-items: center; }
.story-visual { min-height: 570px; position: relative; background: var(--green); overflow: hidden; }
.story-pattern { position: absolute; inset: 0; opacity: .18; background: radial-gradient(circle at 50% 50%, transparent 0 34%, var(--gold) 35% 36%, transparent 37% 47%, var(--gold) 48% 49%, transparent 50%), repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,.15) 25px 26px); transform: scale(1.25); }
.story-card { position: absolute; left: 9%; right: 9%; bottom: 9%; padding: 38px; background: var(--cream); box-shadow: var(--shadow); }
.quote-mark { display: block; height: 42px; color: var(--gold-dark); font-size: 4.5rem; font-family: var(--serif); line-height: 1; }
.story-card p { font-family: var(--serif); font-size: 1.55rem; line-height: 1.35; }
.story-card div { display: grid; }
.story-card strong { font-size: .8rem; }
.story-card small { color: var(--muted); }
.since-badge { position: absolute; top: 0; right: 0; width: 108px; height: 108px; display: grid; place-content: center; text-align: center; color: var(--green-deep); background: var(--gold); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; }
.since-badge strong { font-size: 1.2rem; font-family: var(--serif); }
.story-copy .lead { margin: 28px 0 18px; font-size: 1.16rem; color: var(--ink); }
.story-copy p:not(.lead) { color: var(--muted); margin-bottom: 30px; }
.heritage-strip { position: relative; margin-top: 84px; padding: 42px 9% 42px 7%; display: grid; grid-template-columns: 190px 1fr; gap: 7%; align-items: center; background: var(--cream); border: 1px solid var(--line); }
.heritage-strip > img { width: 190px; aspect-ratio: 1; object-fit: contain; padding: 8px; background: white; mix-blend-mode: multiply; }
.heritage-strip h3 { margin-bottom: 12px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.heritage-strip p { max-width: 650px; margin: 0; color: var(--muted); }
.crest-use { position: absolute; right: 0; top: 0; padding: 12px 16px; color: white; background: var(--green); text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: .52rem; font-weight: 850; }

.programmes { background: var(--cream); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 54px; }
.section-heading p { max-width: 390px; margin: 0 0 9px; color: var(--muted); }
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.programme-card { position: relative; min-width: 0; background: white; transition: transform .3s, box-shadow .3s; }
.programme-card:hover { transform: translateY(-7px); box-shadow: 0 22px 50px rgba(23,63,53,.11); }
.programme-number { position: absolute; top: 18px; left: 20px; z-index: 2; color: white; font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.programme-art { height: 220px; display: grid; place-items: center; position: relative; overflow: hidden; }
.programme-art::before, .programme-art::after { content: ""; position: absolute; border-radius: 50%; }
.programme-art span { position: relative; z-index: 2; font-family: var(--serif); color: white; font-size: 5.5rem; font-style: italic; }
.nursery-art { background: var(--burgundy); }
.nursery-art::before { width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.24); }
.nursery-art::after { width: 125px; height: 125px; background: rgba(233,185,73,.5); transform: translate(60px,35px); }
.primary-art { background: #286959; }
.primary-art::before { width: 300px; height: 300px; border: 55px solid rgba(255,255,255,.09); transform: translate(-70px,60px); }
.secondary-art { background: #cb8c35; }
.secondary-art::before { width: 260px; height: 260px; background: rgba(124,38,63,.35); transform: translate(90px,-60px); }
.programme-body { padding: 30px; }
.programme-body .age { color: var(--burgundy); font-size: .65rem; text-transform: uppercase; font-weight: 850; letter-spacing: .14em; }
.programme-body h3 { margin: 8px 0 14px; font-size: 2rem; }
.programme-body p { min-height: 78px; color: var(--muted); font-size: .9rem; }
.programme-body a { display: flex; justify-content: space-between; padding-top: 18px; color: var(--green); border-top: 1px solid var(--line); text-decoration: none; font-size: .76rem; font-weight: 800; }

.campus-life { padding: 0 0 120px; background: var(--cream); }
.campus-frame { position: relative; min-height: 620px; overflow: hidden; box-shadow: var(--shadow); }
.campus-frame > img, .campus-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.campus-frame > img { object-fit: cover; object-position: center 43%; }
.campus-shade { background: linear-gradient(90deg, rgba(8,32,27,.84) 0%, rgba(8,32,27,.48) 39%, rgba(8,32,27,.02) 74%), linear-gradient(0deg, rgba(8,32,27,.38), transparent 45%); }
.campus-caption { position: absolute; z-index: 2; left: 7%; bottom: 10%; max-width: 540px; color: white; }
.campus-caption h2 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); }
.campus-caption p { max-width: 470px; color: rgba(255,255,255,.76); }
.campus-note { position: absolute; z-index: 2; right: 0; top: 0; padding: 13px 18px; color: var(--green-deep); background: var(--gold); text-transform: uppercase; letter-spacing: .13em; font-size: .58rem; font-weight: 850; }

.difference { position: relative; color: white; background: var(--green-deep); overflow: hidden; }
.difference::before { content: ""; position: absolute; width: 680px; height: 680px; left: -270px; top: -220px; border: 1px solid rgba(233,185,73,.15); border-radius: 50%; box-shadow: 0 0 0 100px rgba(233,185,73,.03), 0 0 0 200px rgba(233,185,73,.025); }
.difference-grid { position: relative; display: grid; grid-template-columns: .72fr 1fr; gap: 12%; }
.difference-copy h2 { margin-bottom: 24px; }
.difference-copy p { max-width: 430px; color: rgba(255,255,255,.65); margin-bottom: 32px; }
.principle { display: grid; grid-template-columns: 45px 1fr; gap: 24px; padding: 29px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.principle:first-child { padding-top: 0; }
.principle > span { color: var(--gold); font-size: .7rem; font-weight: 850; }
.principle h3 { font-size: 1.55rem; }
.principle p { margin: 8px 0 0; color: rgba(255,255,255,.58); font-size: .9rem; }

.portal-section { background: white; }
.portal-grid { display: grid; grid-template-columns: .75fr 1fr; gap: 10%; align-items: center; }
.portal-copy p { color: var(--muted); }
.check-list { list-style: none; margin: 28px 0 34px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: .85rem; }
.check-list li { position: relative; padding-left: 25px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 900; }
.portal-preview { padding: 28px 0 0 28px; background: var(--cream); box-shadow: var(--shadow); }
.preview-top { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 15px; background: white; }
.preview-top > span { width: 7px; height: 7px; border-radius: 50%; background: #c4cbc7; }
.preview-top small { margin: auto; color: #9da5a1; font-size: .55rem; }
.preview-body { min-height: 370px; display: grid; grid-template-columns: 76px 1fr; background: #eff4f1; }
.preview-body aside { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 22px; background: var(--green-deep); }
.mini-logo { width: 30px; height: 30px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-family: var(--serif); font-size: .55rem; }
.preview-body aside i { width: 20px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.2); }
.preview-body aside i.active { background: var(--gold); }
.preview-content { padding: 44px; }
.mini-label { font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; }
.preview-content h3 { margin: 7px 0 28px; font-size: 1.7rem; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-stats span { padding: 22px; display: grid; background: white; color: var(--muted); font-size: .55rem; }
.mini-stats b { color: var(--green); font-family: var(--serif); font-size: 1.5rem; }
.mini-chart { height: 120px; margin-top: 16px; display: flex; gap: 9px; align-items: flex-end; padding: 20px 25px; background: white; }
.mini-chart i { flex: 1; background: var(--green-soft); }
.mini-chart i:nth-child(1) { height: 28%; }.mini-chart i:nth-child(2) { height: 48%; }.mini-chart i:nth-child(3) { height: 38%; }.mini-chart i:nth-child(4) { height: 70%; background: var(--gold); }.mini-chart i:nth-child(5) { height: 59%; }.mini-chart i:nth-child(6) { height: 82%; }

.admissions { padding-top: 60px; background: linear-gradient(180deg, white 0 50%, var(--cream) 50%); }
.admissions-card { padding: 62px 7%; display: grid; grid-template-columns: .85fr 1fr; gap: 10%; color: white; background: var(--burgundy); box-shadow: var(--shadow); }
.admissions-card p { color: rgba(255,255,255,.72); }
.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { display: grid; gap: 7px; }
label > span { color: inherit; font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
input, select { width: 100%; height: 51px; padding: 0 15px; border: 1px solid rgba(255,255,255,.25); outline: 0; color: inherit; background: rgba(255,255,255,.09); border-radius: 2px; }
input::placeholder { color: rgba(255,255,255,.46); }
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,185,73,.14); }
select option { color: var(--ink); }
.form-note { grid-column: 1/-1; margin: 0; font-size: .7rem; }

.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .75fr 1fr; gap: 12%; }
.contact-intro p { max-width: 450px; color: var(--muted); }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-details div:first-child { grid-row: span 2; }
.contact-details div { display: grid; align-content: start; padding-top: 14px; border-top: 1px solid var(--line); }
.contact-details small { margin-bottom: 8px; color: var(--burgundy); text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; font-weight: 850; }
.contact-details a, .contact-details strong { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }

footer { padding: 75px 0 24px; color: rgba(255,255,255,.65); background: #0a2721; }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 60px; }
.footer-brand { color: white; }
.footer-main > div:first-child p { max-width: 260px; font-family: var(--serif); font-size: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: .77rem; }
.footer-links strong { margin-bottom: 7px; color: white; text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; }
.footer-links a, .footer-links button { width: fit-content; padding: 0; border: 0; color: inherit; background: none; text-decoration: none; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold); }
.footer-bottom { margin-top: 60px; padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); font-size: .65rem; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,23,19,.76); backdrop-filter: blur(6px); }
.modal-panel { position: relative; width: min(570px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; padding: 46px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.35); border-radius: 4px; animation: modal-in .22s ease-out; }
.compact-panel { width: min(660px, 100%); text-align: center; }
@keyframes modal-in { from { opacity: 0; transform: translateY(15px) scale(.98); } }
.modal-close { position: absolute; top: 16px; right: 18px; width: 36px; height: 36px; border: 0; color: var(--muted); background: var(--cream); border-radius: 50%; cursor: pointer; font-size: 1.5rem; }
.modal-panel h2 { font-size: 2.7rem; }
.modal-panel > p { color: var(--muted); }
.modal-brand { display: flex; justify-content: center; margin-bottom: 20px; }
.modal-brand-mark { width: 62px; height: 70px; }
.portal-options { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.portal-options button { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: white; cursor: pointer; transition: .2s; }
.portal-options button:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(23,63,53,.1); }
.portal-options button > span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 50%; color: var(--green); background: var(--green-soft); font-family: var(--serif); font-weight: 800; }
.portal-options small { color: var(--muted); font-size: .67rem; }
.portal-form { display: grid; gap: 16px; margin-top: 26px; }
.portal-form label > span { color: var(--ink); }
.portal-form input, .portal-form select { color: var(--ink); border-color: var(--line); background: white; }
.portal-form input::placeholder { color: #9ca4a1; }
.demo-hint, .secure-note { padding: 10px 12px; color: var(--muted); background: var(--cream); font-size: .68rem; text-align: center; }
.form-error { min-height: 16px; margin: 0; color: #a52626; font-size: .72rem; }
.result-card { margin-top: 28px; }
.result-card > div { display: flex; gap: 12px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.result-avatar, .pupil-row > span { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: .7rem; font-weight: 800; }
.result-card > div span:nth-child(2) { display: grid; }
.result-card > div small { display: block; color: var(--muted); font-size: .64rem; }
.result-card > div > b { margin-left: auto; color: var(--green); font-family: var(--serif); font-size: 1.5rem; text-align: right; }
.result-card table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: .75rem; }
.result-card th, .result-card td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
.result-card th { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .59rem; }
.attendance-card { margin-top: 26px; }
.attendance-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.attendance-head div { display: grid; }
.attendance-head small { color: var(--muted); }
.attendance-head span { font-size: .68rem; color: var(--muted); }
.pupil-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.status-group { display: flex; }
.status-group button { padding: 7px 9px; border: 1px solid var(--line); background: white; color: var(--muted); font-size: .58rem; cursor: pointer; }
.status-group button.selected { color: white; background: var(--green); }
.status-group button.selected.absent { background: var(--burgundy); }
.save-register { width: 100%; margin-top: 20px; }
.payment-success { padding: 30px 0 10px; text-align: center; }
.payment-success > span { width: 70px; height: 70px; margin: auto; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 2rem; }
.payment-success h3 { margin-top: 20px; font-size: 2rem; }
.payment-success p { color: var(--muted); }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 25px; padding: 13px 20px; color: white; background: var(--green-deep); border-radius: 2px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .25s; font-size: .8rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { top: 34px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 88px; left: 24px; right: 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; color: var(--ink); background: white; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.button), .nav-login { padding: 14px 6px; color: var(--ink); text-align: left; }
  .main-nav .button { margin-top: 8px; }
  .story-grid, .difference-grid, .portal-grid, .admissions-card, .contact-grid { grid-template-columns: 1fr; }
  .story-grid, .portal-grid { gap: 70px; }
  .heritage-strip { grid-template-columns: 160px 1fr; padding-inline: 5%; }
  .heritage-strip > img { width: 160px; }
  .difference-grid { gap: 65px; }
  .admissions-card { gap: 35px; }
  .programme-grid { grid-template-columns: 1fr 1fr; }
  .programme-card:last-child { grid-column: 1 / -1; }
  .programme-card:last-child .programme-art { height: 190px; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-main > div:last-child { grid-column: 2; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1180px); }
  .utility-inner { justify-content: center; }
  .utility-inner > span, .utility-inner a:last-child { display: none; }
  .nav-wrap { height: 76px; }
  .main-nav { top: 76px; left: 16px; right: 16px; }
  .brand-mark { width: 39px; height: 44px; }
  .brand strong { font-size: 1.25rem; }
  .hero { min-height: 760px; height: 100svh; align-items: flex-end; padding-bottom: 45px; }
  .hero-image { object-position: 61% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(8,32,27,.97) 0%, rgba(8,32,27,.8) 52%, rgba(8,32,27,.25) 100%); }
  .hero-content { padding-top: 130px; }
  .hero h1 { font-size: clamp(3.45rem, 17vw, 5.1rem); }
  .hero-content > p { margin-block: 19px 24px; font-size: .93rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-proof { gap: 22px; margin-top: 36px; }
  .hero-proof strong { font-size: 1rem; }
  .hero-proof span { font-size: .52rem; }
  .hero-scroll { display: none; }
  .access-strip { margin: 0; }
  .access-grid { grid-template-columns: 1fr; }
  .access-item { min-height: 92px; padding: 18px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 82px 0; }
  h2 { font-size: 2.75rem; }
  .story-grid { gap: 55px; }
  .heritage-strip { margin-top: 55px; padding: 30px 24px; grid-template-columns: 1fr; gap: 25px; }
  .heritage-strip > img { width: 150px; margin: auto; }
  .crest-use { display: none; }
  .story-visual { min-height: 460px; }
  .story-card { padding: 26px; }
  .story-card p { font-size: 1.25rem; }
  .since-badge { width: 84px; height: 84px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading p { margin-top: 18px; }
  .programme-grid { grid-template-columns: 1fr; }
  .programme-card:last-child { grid-column: auto; }
  .programme-art, .programme-card:last-child .programme-art { height: 180px; }
  .programme-body p { min-height: 0; }
  .campus-life { padding-bottom: 82px; }
  .campus-frame { min-height: 0; overflow: visible; background: var(--green); box-shadow: none; }
  .campus-frame > img { position: relative; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; }
  .campus-shade { display: none; }
  .campus-caption { position: relative; left: auto; bottom: auto; max-width: none; padding: 38px 24px 31px; }
  .campus-caption h2 { font-size: 2.7rem; }
  .campus-caption p { margin-bottom: 0; font-size: .9rem; }
  .campus-note { top: 0; right: 0; font-size: .48rem; }
  .check-list { grid-template-columns: 1fr; }
  .portal-preview { padding: 15px 0 0 15px; }
  .preview-body { min-height: 300px; grid-template-columns: 55px 1fr; }
  .preview-content { padding: 26px 18px; }
  .mini-stats { grid-template-columns: 1fr; }
  .mini-stats span:last-child { display: none; }
  .admissions { padding-top: 20px; }
  .admissions-card { width: 100%; padding: 55px 24px; }
  .enquiry-form { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-details div:first-child { grid-row: auto; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px 25px; }
  .footer-main > div:first-child { grid-column: 1/-1; }
  .footer-main > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .modal { padding: 10px; }
  .modal-panel { max-height: calc(100svh - 20px); padding: 42px 22px 28px; }
  .modal-panel h2 { font-size: 2.2rem; }
  .portal-options { grid-template-columns: 1fr; }
  .portal-options button { min-height: 90px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; justify-items: start; text-align: left; padding: 14px; }
  .portal-options button > span { grid-row: 1/3; margin: 0; }
  .pupil-row { grid-template-columns: 36px 1fr; }
  .pupil-row > span { width: 36px; height: 36px; }
  .status-group { grid-column: 1/-1; }
  .status-group button { flex: 1; }
}

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

@media print {
  body * { visibility: hidden; }
  #result-card, #result-card * { visibility: visible; }
  #result-card { position: absolute; inset: 20px; }
}
