/* =========================================================================
   Maplecrest School · SF-01-01 Schools template (Softfire)
   Contents: 1 Tokens · 2 Base · 3 Buttons & labels · 4 Top bar & header
             5 Hero slider · 6 Values · 7 About · 8 Stages · 9 Approach
             10 Campus gallery · 11 Why · 12 Notices · 13 Admissions
             14 Voices · 15 FAQs · 16 Final CTA · 17 Contact form
             18 Footer · 19 Lightbox · 20 Motion
   Edit the theme in section 1: colours, fonts, spacing, radius, shadows.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Brand */
  --navy: #1A2744;
  --navy-deep: #111A30;
  --navy-soft: #2A3A5E;
  --gold: #B9975B;
  --gold-light: #D9C08F;
  --gold-text: #7D5F2A;          /* gold dark enough for text on ivory */
  --ivory: #F7F1E3;
  --ivory-deep: #EFE5CF;
  --paper: #FCFAF4;
  --ink: #1C2233;
  --ink-soft: #3E4559;
  --muted: #5F6577;
  --line: #E3D8BF;
  --line-soft: #ECE4D2;
  --success: #1E6B47;
  --danger: #A2312A;

  /* Type */
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-sm: clamp(0.85rem, 0.83rem + 0.1vw, 0.92rem);
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --fs-lead: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  --fs-h2: clamp(2rem, 1.55rem + 2vw, 3.3rem);
  --fs-h1: clamp(2.6rem, 1.7rem + 4.2vw, 5.4rem);

  /* Space & shape */
  --space-xs: 0.5rem;
  --space-s: clamp(0.75rem, 0.7rem + 0.25vw, 1rem);
  --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l: clamp(2.25rem, 1.8rem + 2vw, 3.75rem);
  --space-xl: clamp(4.5rem, 3.4rem + 5vw, 8rem);
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(17, 26, 48, .06), 0 4px 14px rgba(17, 26, 48, .05);
  --shadow-m: 0 2px 6px rgba(17, 26, 48, .07), 0 22px 44px -22px rgba(17, 26, 48, .35);
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 450; line-height: 1.08; letter-spacing: -0.015em; color: var(--navy); }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold-text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--navy); color: var(--ivory); }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
@media (min-width: 760px) { .container { width: min(100% - 4rem, var(--container)); } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .75rem 1.1rem; background: var(--navy); color: var(--ivory); border-radius: var(--radius-s); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.section { padding-block: var(--space-xl); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.55; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine-note { margin-top: var(--space-m); font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 3. Buttons & labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .7rem 1.35rem; border: 1.5px solid transparent; border-radius: 999px; font-weight: 650; font-size: .95rem; letter-spacing: .01em; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: .85rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(17, 26, 48, .6); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-light { border-color: rgba(247, 241, 227, .55); color: var(--ivory); }
.btn-outline-light:hover { background: rgba(247, 241, 227, .12); border-color: var(--ivory); }

.section-label { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.section-label span { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.section-label::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .6; }
.section-label.light { color: var(--gold-light); }
.sample-tag { display: inline-block; margin-left: .35rem; padding: .1rem .55rem; border: 1px dashed currentColor; border-radius: 999px; font-family: var(--font-sans); font-size: .7rem; font-style: normal; font-weight: 700; letter-spacing: .04em; color: var(--gold-text); vertical-align: middle; max-width: 100%; }

.section-head { margin-bottom: var(--space-l); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p:not(.section-label) { color: var(--muted); max-width: 40rem; }
.split-head { display: grid; gap: var(--space-s) var(--space-l); align-items: end; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.15fr 1fr; } .split-head > p { padding-bottom: .4rem; } }
.center-head { text-align: center; max-width: 46rem; margin-inline: auto; }
.center-head .section-label::after { display: none; }
.center-head p:not(.section-label) { margin: 1rem auto 0; }

/* ---------- 4. Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: rgba(247, 241, 227, .82); font-size: .82rem; }
.topbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1.5rem; padding-block: .55rem; }
.demo-pill { display: inline-block; margin-right: .45rem; padding: .05rem .5rem; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.topbar-links { display: flex; gap: .6rem; }
.topbar-links a { color: var(--gold-light); font-weight: 600; }
@media (max-width: 640px) { .topbar-links { display: none; } }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line-soft); transition: box-shadow .25s, background-color .25s; }
.site-header.is-scrolled { background: rgba(252, 250, 244, .96); box-shadow: 0 10px 30px -22px rgba(17, 26, 48, .45); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-scrolled { background: rgba(252, 250, 244, .86); backdrop-filter: saturate(1.3) blur(12px); } }
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.crest { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; }
.brand-sub { margin-top: .3rem; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: .15rem; }
.nav-list a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav-list a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 8px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--navy); }
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: .9rem; color: var(--navy); cursor: pointer; }
  .menu-icon { display: grid; gap: 4px; width: 18px; }
  .menu-icon span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Mobile drawer: only collapsed once JS is running, so links stay usable without JS. */
  .js .site-nav { position: fixed; inset: calc(var(--header-top, 0px) + var(--header-h)) 0 auto 0; z-index: 55; flex-direction: column; align-items: stretch; gap: 1rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 1rem 1.25rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(17, 26, 48, .45); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s, transform .22s var(--ease); }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a { width: 100%; min-height: 52px; padding: 0 .25rem; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 450; color: var(--navy); border-bottom: 1px solid var(--line-soft); }
  .js .nav-list a::after { display: none; }
  .js .nav-cta { display: inline-flex; }
  .no-js .site-nav { display: none; }
  .no-js .header-row { flex-wrap: wrap; }
  .no-js .menu-toggle { display: none; }
}
@media (max-width: 1080px) { .no-js .site-nav { display: block; width: 100%; overflow-x: auto; padding-bottom: .5rem; } .no-js .nav-list { flex-wrap: wrap; } }
body.menu-open { overflow: hidden; }

/* ---------- 5. Hero slider ---------- */
.hero { position: relative; isolation: isolate; color: var(--ivory); background: var(--navy-deep); overflow: hidden; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, calc(100svh - var(--header-h) - 34px), 860px); padding-block: clamp(6rem, 12vh, 9rem) clamp(7.5rem, 14vh, 9.5rem); }
.slide picture, .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide-img { object-fit: cover; object-position: var(--focus, 50% 50%); transform: scale(1.04); transition: transform 7.5s linear; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(17, 26, 48, .9) 0%, rgba(17, 26, 48, .72) 38%, rgba(17, 26, 48, .2) 72%, rgba(17, 26, 48, .1) 100%),
  linear-gradient(0deg, rgba(17, 26, 48, .75) 0%, rgba(17, 26, 48, 0) 45%); }
.slide-content { position: relative; z-index: 2; }
.slide-eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.slide-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.slide-title { max-width: 13ch; font-size: var(--fs-h1); font-weight: 400; line-height: 1.02; color: var(--ivory); letter-spacing: -.02em; }
.slide-title em { color: var(--gold-light); }
.slide-text { max-width: 34rem; margin-top: 1.3rem; font-size: var(--fs-lead); line-height: 1.55; color: rgba(247, 241, 227, .9); }
.slide-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* JS-enhanced state: crossfade between stacked slides. */
.js .slide { opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s .55s; }
.js .slide.is-active { opacity: 1; visibility: visible; transition: opacity .55s ease; }
.js .slide.is-active .slide-img { transform: scale(1); }
.no-js .slide:not(:first-child) { display: none; }
.no-js .slider-ui { display: none; }

.slider-ui { position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 4vh, 2.5rem); z-index: 3; display: flex; align-items: center; gap: 1.25rem; }
.slide-count { font-family: var(--font-serif); font-size: 1.05rem; color: rgba(247, 241, 227, .75); font-variant-numeric: tabular-nums; }
.slide-count span { color: var(--ivory); font-size: 1.35rem; }
.dots { display: flex; gap: .25rem; }
.dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot span { position: relative; width: 34px; height: 3px; border-radius: 3px; background: rgba(247, 241, 227, .35); overflow: hidden; transition: background-color .2s; }
.dot:hover span { background: rgba(247, 241, 227, .6); }
.dot[aria-current="true"] span { background: rgba(247, 241, 227, .45); }
.dot[aria-current="true"] span::after { content: ""; position: absolute; inset: 0; background: var(--gold-light); transform-origin: left; }
.hero.is-playing .dot[aria-current="true"] span::after { animation: progress var(--interval, 7000ms) linear forwards; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider-buttons { display: flex; gap: .5rem; margin-left: auto; }
.round-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid rgba(247, 241, 227, .45); border-radius: 50%; background: rgba(17, 26, 48, .35); color: var(--ivory); cursor: pointer; transition: background-color .2s, border-color .2s; }
.round-btn:hover { background: rgba(247, 241, 227, .16); border-color: var(--ivory); }
.round-btn .i-play { display: none; }
.round-btn.is-paused .i-play { display: block; }
.round-btn.is-paused .i-pause { display: none; }
.photo-note { position: absolute; right: 1rem; top: 1rem; z-index: 3; padding: .2rem .6rem; border-radius: 999px; background: rgba(17, 26, 48, .5); font-size: .7rem; letter-spacing: .04em; color: rgba(247, 241, 227, .8); }

@media (max-width: 760px) {
  .slide { align-items: flex-end; padding-top: 7rem; }
  .slide::before { background: linear-gradient(0deg, rgba(17, 26, 48, .94) 0%, rgba(17, 26, 48, .78) 45%, rgba(17, 26, 48, .25) 100%); }
  .slide-actions .btn { flex: 1 1 100%; }
  .slider-ui { gap: .5rem; }
  .slide-count { display: none; }
  .dot { width: 36px; }
  .dot span { width: 26px; }
  .round-btn { width: 44px; height: 44px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .slide { min-height: 520px; padding-block: 4rem 6rem; }
  .slide-title { font-size: clamp(2rem, 6vh + 1rem, 3rem); }
}

/* ---------- 6. Values ---------- */
.values { background: var(--ivory); border-bottom: 1px solid var(--line); }
.values-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.values-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.75rem 1.25rem 1.75rem 0; }
@media (min-width: 1000px) { .values-list li + li { padding-left: 1.75rem; border-left: 1px solid var(--line); } }
.values-list svg { flex: none; color: var(--gold-text); }
.values-list strong { display: block; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; color: var(--navy); line-height: 1.2; }
.values-list span { display: block; margin-top: .25rem; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }

/* ---------- 7. About ---------- */
.about-grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); } }
.about-media { position: relative; padding-bottom: 3rem; }
.about-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 120px; box-shadow: var(--shadow-m); }
@media (max-width: 959px) { .about-media img { aspect-ratio: 4 / 3; border-radius: var(--radius-l); } }
.note-card { position: absolute; right: clamp(-1rem, -2vw, 0rem); bottom: 0; max-width: 21rem; margin: 0; padding: 1.5rem 1.6rem; background: var(--navy); color: var(--ivory); border-radius: var(--radius-m); box-shadow: var(--shadow-m); }
.note-card::before { content: "“"; position: absolute; top: -.3rem; left: 1.2rem; font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--gold); }
.note-card blockquote { margin: 0; }
.note-card p { font-family: var(--font-serif); font-style: italic; font-size: 1.12rem; line-height: 1.45; padding-top: .6rem; }
.note-card figcaption { margin-top: .9rem; font-size: .8rem; font-weight: 600; color: var(--gold-light); }
.note-card .sample-tag { color: var(--gold-light); }
@media (max-width: 559px) { .about-media { padding-bottom: 0; } .note-card { position: relative; right: auto; margin: -2.5rem 1rem 0; } }
.about-copy h2 { font-size: var(--fs-h2); margin-bottom: 1.3rem; }
.about-copy > p + p { margin-top: 1rem; color: var(--ink-soft); }
.highlights { display: grid; gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 560px) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlights li { padding: 1.15rem 1.2rem; background: var(--paper); font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.highlights strong { display: block; margin-bottom: .2rem; font-family: var(--font-serif); font-size: 1.12rem; font-weight: 500; color: var(--navy); }

/* ---------- 8. Stages (tabs) ---------- */
.stages { background: var(--ivory); }
.tab-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.tab-list[hidden] { display: none; }
.tab-list [role="tab"] { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-height: 44px; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.tab-list [role="tab"]:hover { border-color: var(--gold); }
.tab-list [aria-selected="true"] { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-m); }
.tab-grade { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.tab-name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); }
[aria-selected="true"] .tab-grade { color: var(--gold-light); }
[aria-selected="true"] .tab-name { color: var(--ivory); }
@media (max-width: 760px) {
  .tab-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-list [role="tab"] { flex: none; min-width: 9.5rem; scroll-snap-align: start; padding: .8rem 1rem; }
  .tab-name { font-size: 1.12rem; }
}
.tab-panel { display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); }
.tab-panel + .tab-panel { margin-top: 1.5rem; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel[hidden] { display: none; }
.js .tab-panel:not([hidden]) { animation: panel-in .4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 900px) { .tab-panel { grid-template-columns: 1.05fr 1fr; } }
.stage-media img { width: 100%; height: 100%; min-height: 260px; max-height: 520px; object-fit: cover; }
.stage-copy { padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem); display: flex; flex-direction: column; align-items: flex-start; }
.stage-grade { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.stage-copy h3 { margin: .4rem 0 1rem; font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem); }
.stage-copy > p:not(.stage-grade) { color: var(--ink-soft); }
.ticks { display: grid; gap: .6rem; margin: 1.4rem 0 1.9rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--ivory-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%237D5F2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- 9. Approach ---------- */
.approach-grid { display: grid; gap: var(--space-l); }
@media (min-width: 960px) { .approach-grid { grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.approach-copy h2 { font-size: var(--fs-h2); margin-bottom: 1.2rem; }
.principles { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.principles .num { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--gold); line-height: 1; }
.principles h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.principles p { color: var(--muted); }
.approach-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 959px) { .approach-side { position: static; } }
.approach-side img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-l); }
.faculty { margin-top: 1.25rem; padding: 1.4rem; background: var(--ivory); border-radius: var(--radius-l); border: 1px solid var(--line); }
.faculty-title { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 1rem; }
.faculty-list { display: grid; gap: .85rem; }
.faculty-list li { display: flex; align-items: center; gap: .9rem; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-family: var(--font-serif); font-size: 1rem; letter-spacing: .04em; }
.faculty-list strong { display: block; font-family: var(--font-serif); font-size: 1.12rem; font-weight: 500; color: var(--navy); line-height: 1.2; }
.faculty-list span:not(.avatar) { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 10. Campus gallery ---------- */
.campus { background: var(--paper); padding-top: 0; }
.gallery { display: grid; gap: clamp(.6rem, .4rem + .8vw, 1rem); grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 18vw, 240px); grid-auto-flow: dense; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } .g-tall { grid-row: span 2; } .g-wide { grid-column: span 2; } }
@media (max-width: 899px) { .g-wide { grid-column: span 2; } }
.gallery a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius-m); background: var(--ivory-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17, 26, 48, .78) 0%, rgba(17, 26, 48, 0) 55%); }
.g-cap { position: absolute; left: 1rem; right: 1rem; bottom: .85rem; z-index: 1; color: var(--ivory); font-size: .8rem; line-height: 1.3; }
.g-cap strong { display: block; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; }

/* ---------- 11. Why ---------- */
.why { background: var(--navy); color: var(--ivory); position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; border: 1px solid rgba(185, 151, 91, .3); box-shadow: 0 0 0 70px rgba(185, 151, 91, .04), 0 0 0 140px rgba(185, 151, 91, .03); }
.why-grid { position: relative; display: grid; gap: var(--space-l); }
@media (min-width: 960px) { .why-grid { grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 6vw, 6rem); } .why-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.why h2 { font-size: var(--fs-h2); color: var(--ivory); margin-bottom: 2rem; }
.why h2 em { color: var(--gold-light); }
.why-list { display: grid; gap: 1px; background: rgba(247, 241, 227, .14); border: 1px solid rgba(247, 241, 227, .14); border-radius: var(--radius-l); overflow: hidden; }
@media (min-width: 640px) { .why-list { grid-template-columns: 1fr 1fr; } }
.why-list li { padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); background: var(--navy); transition: background-color .3s; }
.why-list li:hover { background: var(--navy-soft); }
.why-no { font-family: var(--font-serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--gold); }
.why-list h3 { margin: 1.1rem 0 .6rem; font-size: 1.4rem; color: var(--ivory); }
.why-list p { color: rgba(247, 241, 227, .75); font-size: .98rem; }

/* ---------- 12. Notices ---------- */
.notices-grid { display: grid; gap: var(--space-l); }
@media (min-width: 960px) { .notices-grid { grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 6vw, 6rem); } }
.notices-head h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.notices-head p:not(.section-label) { color: var(--muted); }
.notice-list { border-top: 1px solid var(--line); }
.notice { border-bottom: 1px solid var(--line); }
.notice summary { display: grid; grid-template-columns: 4.2rem 1fr 2rem; gap: 1.1rem; align-items: center; padding: 1.2rem 0; cursor: pointer; list-style: none; }
.notice summary::-webkit-details-marker { display: none; }
.notice summary::after { content: ""; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231A2744' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--ease), background-color .2s; }
.notice[open] summary::after { transform: rotate(180deg); background-color: var(--ivory); }
.notice summary:hover .n-title { color: var(--gold-text); }
.notice time { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: var(--radius-m); background: var(--navy); color: var(--ivory); line-height: 1; }
.n-day { font-family: var(--font-serif); font-size: 1.6rem; }
.n-month { margin-top: .25rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.n-main { display: grid; gap: .35rem; }
.n-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.n-cat { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.n-tags .sample-tag { margin-left: 0; }
.n-title { font-family: var(--font-serif); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--navy); line-height: 1.25; transition: color .2s; }
.notice > p { padding: 0 0 1.4rem calc(4.2rem + 1.1rem); color: var(--ink-soft); max-width: 46rem; }
@media (max-width: 559px) { .notice summary { grid-template-columns: 3.4rem 1fr 2rem; gap: .8rem; } .notice > p { padding-left: 0; } .n-day { font-size: 1.3rem; } }

/* ---------- 13. Admissions ---------- */
.admissions { background: var(--ivory); }
.steps { position: relative; display: grid; gap: 1.25rem; margin-bottom: var(--space-l); counter-reset: step; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .steps::before { content: ""; position: absolute; top: 2rem; left: 12%; right: 12%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); }
}
.steps li { position: relative; padding: 1.75rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); text-align: center; }
@media (max-width: 899px) { .steps li { text-align: left; display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1rem; } .steps li .step-no { grid-row: span 2; margin: 0; } }
.step-no { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: -3.5rem auto 1.1rem; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-family: var(--font-serif); font-size: 1.5rem; box-shadow: 0 0 0 6px var(--ivory); }
@media (min-width: 900px) { .steps { margin-top: 2rem; } }
@media (max-width: 899px) { .step-no { box-shadow: none; } }
.steps h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .97rem; }

/* ---------- 14. Voices ---------- */
.voices { padding-block: var(--space-l) var(--space-xl); }
.voices-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: var(--space-m); }
.voices-head h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); }
.voices-head .sample-tag { margin-left: 0; }
.quotes { display: grid; gap: var(--space-m); }
@media (min-width: 860px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); border-left: 3px solid var(--gold); background: linear-gradient(90deg, var(--ivory), var(--paper)); border-radius: 0 var(--radius-l) var(--radius-l) 0; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--font-serif); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.4; color: var(--navy); }
.quote figcaption { margin-top: 1.1rem; font-size: var(--fs-sm); color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); }

/* ---------- 15. FAQs ---------- */
.faqs { background: var(--paper); border-top: 1px solid var(--line-soft); }
.faqs-grid { display: grid; gap: var(--space-l); }
@media (min-width: 960px) { .faqs-grid { grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 6vw, 6rem); } .faqs-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.faqs-head h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.faqs-head p:not(.section-label) { color: var(--muted); }
.faqs-head a { color: var(--navy); font-weight: 650; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 1.1rem 3.5rem 1.1rem 0; cursor: pointer; list-style: none; font-family: var(--font-serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); color: var(--navy); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: .9rem; top: 50%; width: 16px; height: 1.6px; background: var(--gold-text); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--gold-text); }
.faq-body { padding: 0 3rem 1.4rem 0; color: var(--ink-soft); }
.faq-body a { color: var(--navy); font-weight: 650; }

/* ---------- 16. Final CTA ---------- */
.final-cta { position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); padding-block: clamp(5rem, 4rem + 6vw, 9rem); }
.final-cta > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17, 26, 48, .94), rgba(17, 26, 48, .78) 55%, rgba(17, 26, 48, .55)); }
.final-cta-inner { max-width: 44rem; margin-left: max(1rem, calc((100% - var(--container)) / 2)); }
@media (min-width: 760px) { .final-cta-inner { margin-left: max(2rem, calc((100% - var(--container)) / 2)); } }
.final-cta h2 { font-size: var(--fs-h2); color: var(--ivory); margin-bottom: 1.1rem; }
.final-cta h2 em { color: var(--gold-light); }
.final-cta p:not(.section-label) { font-size: var(--fs-lead); color: rgba(247, 241, 227, .88); margin-bottom: 2rem; max-width: 36rem; }
.final-cta .container { width: auto; }

/* ---------- 17. Contact & form ---------- */
.contact { background: var(--ivory); }
.contact-grid { display: grid; gap: var(--space-l); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.contact-info h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.info-list { margin: 2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-list div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.info-list dd { margin: .3rem 0 0; color: var(--ink); }
.info-list .sample-tag { margin-left: .5rem; }

.enquiry { padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.demo-banner { margin-bottom: 1.5rem; padding: .8rem 1rem; border-radius: var(--radius-s); background: var(--ivory); border: 1px dashed var(--gold); font-size: var(--fs-sm); color: var(--ink-soft); }
.field { display: grid; gap: .4rem; margin-bottom: 1.15rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-weight: 650; font-size: .93rem; color: var(--navy); }
.req, .opt { font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.req { color: var(--gold-text); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231A2744' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right .9rem center / 16px no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cdbf9f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(185, 151, 91, .35); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: .82rem; color: var(--muted); }
.error { display: flex; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--danger); }
.error::before { content: "!"; display: grid; place-items: center; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .1rem; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; }
.error[hidden] { display: none; }
.field.is-flash input, .field.is-flash select { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px rgba(185, 151, 91, .55); } }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(247, 241, 227, .35); border-top-color: var(--ivory); border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-s); font-weight: 600; font-size: .95rem; }
.form-status.is-demo { background: #FFF7E6; border: 1px solid var(--gold); color: var(--navy); }
.form-status.is-error { background: #FBEDEC; border: 1px solid var(--danger); color: var(--danger); }
.form-status.is-success { background: #EAF5EF; border: 1px solid var(--success); color: var(--success); }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(247, 241, 227, .75); padding-top: var(--space-xl); font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: var(--space-l); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.brand-light { color: var(--ivory); margin-bottom: 1.2rem; }
.brand-light .brand-sub { color: var(--gold-light); }
.footer-brand p { max-width: 22rem; }
.footer-col h2 { margin-bottom: 1rem; font-family: var(--font-sans); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.footer-col ul { display: grid; gap: .1rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: rgba(247, 241, 227, .82); transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col p + p { margin-top: .6rem; }
.footer-col .muted { color: rgba(247, 241, 227, .5); font-size: .85rem; }
.legal summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; color: rgba(247, 241, 227, .82); }
.legal summary:hover { color: var(--gold-light); }
.legal p { margin-top: .5rem; font-size: .88rem; color: rgba(247, 241, 227, .6); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(247, 241, 227, .12); font-size: .85rem; }
.footer-base a { color: var(--gold-light); text-decoration: none; }

/* ---------- 19. Lightbox ---------- */
.lightbox { width: min(100% - 1.5rem, 1100px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 14, 26, .9); }
.lightbox[open] { animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lb-figure { margin: 0; }
.lb-figure img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius-m); background: var(--navy-deep); }
.lb-figure figcaption { margin-top: .9rem; color: var(--ivory); font-family: var(--font-serif); font-size: 1.15rem; text-align: center; }
.lb-close { position: absolute; top: -3.5rem; right: 0; }
.lb-prev, .lb-next { position: absolute; top: calc(39vh - 24px); background: rgba(17, 26, 48, .7); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
.lb-count { margin-top: .3rem; text-align: center; color: rgba(247, 241, 227, .6); font-size: .85rem; }
body.lb-open { overflow: hidden; }

/* ---------- 20. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .slide-img { transform: none !important; }
}

/* Small-screen brand: keep the tagline to one line. */
@media (max-width: 560px) { .brand-tag { display: none; } .brand-name { font-size: 1.4rem; } }
