/* =========================================================
   Present Times Public School & College
   Palette is derived from the school crest:
   navy #0a1859 plate, silver #cdcdcd linework, gold torch.
   ========================================================= */

:root {
  --navy:        #0a1859;
  --navy-deep:   #060f39;
  --navy-soft:   #13236e;
  --gold:        #c9a227;
  --gold-bright: #e3bd4a;
  --silver:      #cdcdcd;

  --ink:         #14172b;
  --ink-soft:    #4b5068;
  --cream:       #f7f5f0;
  --tint:        #f2f1ec;
  --line:        #e3e0d8;
  --white:       #ffffff;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(10, 24, 89, .07);
  --shadow-md: 0 14px 34px rgba(10, 24, 89, .11);
  --shadow-lg: 0 26px 60px rgba(6, 15, 57, .22);

  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Jump links land below the sticky header rather than behind it. */
section[id], [id]:target { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: var(--navy); text-decoration-color: rgba(10, 24, 89, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--gold); color: var(--navy-deep);
  padding: .7rem 1.2rem; font-weight: 600; border-radius: 0 0 10px 10px;
  text-decoration: none; transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .82); }

.h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  color: var(--navy);
  margin-bottom: .8rem;
}
.h2--light { color: var(--white); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .85rem;
}
.eyebrow--light { color: var(--gold-bright); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head__lead { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; max-width: none; flex-wrap: wrap;
}

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.ico--stroke { fill: none; stroke: currentColor; }

.link-arrow {
  font-weight: 600; font-size: .95rem; text-decoration: none;
  color: var(--navy); white-space: nowrap;
}
.link-arrow span { display: inline-block; transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
/* Same treatment when it opens a dialog instead of navigating. */
.link-arrow--btn {
  padding: 0; background: none; border: 0; cursor: pointer;
  font-family: inherit; text-align: left;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: .95rem 1.85rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--gold   { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(201, 162, 39, .32); }
.btn--gold:hover { background: var(--gold-bright); }

.btn--navy   { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); }

.btn--ghost  { background: rgba(255, 255, 255, .1); color: var(--white); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }

.btn--outline { background: transparent; color: var(--navy); border-color: rgba(10, 24, 89, .3); }
.btn--outline:hover { border-color: var(--navy); background: rgba(10, 24, 89, .05); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-bright); }
.topbar__contact, .topbar__links { display: flex; align-items: center; gap: 1.4rem; }
/* Opens a dialog rather than navigating, so it is a button dressed as a link. */
.topbar__btn {
  padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.topbar__btn:hover { color: var(--gold-bright); }
.topbar__contact a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__portal { color: var(--gold-bright); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 8px 30px rgba(6, 15, 57, .28); }

.site-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand__mark {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 39, .55);
  background: var(--navy);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 600;
  color: var(--white); letter-spacing: .01em;
}
.brand__sub {
  font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-bright);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.7rem; }
.nav__list a {
  position: relative; color: rgba(255, 255, 255, .88);
  font-size: .95rem; font-weight: 500; text-decoration: none; padding: .4rem 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__list a:hover { color: var(--white); }
.nav__list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; justify-items: center; }
.nav-toggle__bars span {
  display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  isolation: isolate;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--navy-deep); }
.hero__poster, .hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 1s var(--ease); }
.hero__video.is-playing { opacity: 1; }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 57, .78) 0%, rgba(6, 15, 57, .55) 42%, rgba(6, 15, 57, .88) 100%),
    linear-gradient(90deg, rgba(10, 24, 89, .68) 0%, rgba(10, 24, 89, .18) 65%);
}

.hero__content {
  padding-top: clamp(3.5rem, 9vw, 6rem);
  padding-bottom: clamp(4rem, 9vw, 6.5rem);
  max-width: 100%;
}
.hero__eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-bright); margin: 0 0 1.1rem;
}
.hero__title {
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: .95;
  margin: 0 0 1.3rem;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .35);
}
.hero__lead {
  max-width: 33rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: rgba(255, 255, 255, .9);
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__stats {
  margin-top: auto;
  background: rgba(6, 15, 57, .55);
  border-top: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}
.hero__stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 1.5rem;
}
.stat { text-align: center; padding-inline: .5rem; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .16); }
.stat__num {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block; font-size: .8rem; letter-spacing: .06em;
  color: rgba(255, 255, 255, .72);
}

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about__media { position: relative; }
/* 3:2 matches the photograph, so the flag at the right edge is not cropped off. */
.about__media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.about__badge {
  position: absolute; right: clamp(-1rem, -1vw, 0rem); bottom: -1.5rem;
  background: var(--navy); color: var(--white);
  padding: 1.1rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); text-align: center;
  border-bottom: 3px solid var(--gold);
}
.about__badge-num { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.about__badge-txt { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

.about__body p { color: var(--ink-soft); }
.about__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }

.ticks { margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: rgba(201, 162, 39, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a8801a'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / .8rem no-repeat;
}

/* ---------- Pillars ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201, 162, 39, .5); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--navy); margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; fill: var(--gold-bright); }
.card__title { font-size: 1.22rem; color: var(--navy); margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* =========================================================
   Interior pages (about.html)
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(300px, 42vh, 440px);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  color: var(--white); overflow: hidden;
  background: var(--navy-deep);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 15, 57, .72) 0%, rgba(6, 15, 57, .88) 100%),
    linear-gradient(90deg, rgba(10, 24, 89, .7) 0%, rgba(10, 24, 89, .3) 70%);
}
.page-hero__title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin: 0 0 .8rem;
}
.page-hero__lead {
  max-width: 38rem; margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, .88);
}

/* 404 uses the same banner, but full height and with its own brand mark. */
.page-hero--full { min-height: 100vh; min-height: 100dvh; align-items: center; }
.brand--standalone { display: inline-flex; margin: 0 0 2rem; }

.crumbs {
  font-size: .82rem; letter-spacing: .04em;
  color: rgba(255, 255, 255, .62); margin-bottom: 1.1rem;
}
.crumbs a { color: var(--gold-bright); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin-inline: .3rem; }

/* ---------- Generic split (text beside a photograph) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--reverse .split__body { order: 2; }
.split__body p { color: var(--ink-soft); }
.split__media img {
  width: 100%; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
/* Portrait sources get a taller frame; landscape ones stay wide. */
/* Portrait source, cropped from the top — the students sit low in the frame. */
.story .split__media img { aspect-ratio: 3 / 4; max-height: 34rem; object-position: center bottom; }
.section--tint .split__media img,
.detail .split__media img { aspect-ratio: 3 / 2; }

.section--navy .split__body p { color: rgba(255, 255, 255, .8); }
.detail .split__media img { border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg); }

/* ---------- Fact row ---------- */
.facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 2rem;
}
.fact { display: grid; gap: .2rem; }
.fact__num {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  color: var(--navy); line-height: 1;
}
.fact__label { font-size: .8rem; color: var(--ink-soft); max-width: 11rem; }

/* ---------- Principal bio ---------- */
.principal__bio {
  max-width: 40rem; margin: 2.25rem auto 0;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.principal__bio p { color: var(--ink-soft); margin: 0; }

/* ---------- Numbered principles ---------- */
.principles {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; counter-reset: none;
}
.principle {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201, 162, 39, .5); }
.principle__n {
  flex: none; font-family: var(--font-display); font-size: 1.6rem;
  color: rgba(10, 24, 89, .22); line-height: 1.1;
}
.principle__body h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: .45rem; }
.principle__body p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.principles__summary {
  margin-top: 2rem; padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--navy); color: rgba(255, 255, 255, .86);
  border-radius: var(--radius-lg); border-bottom: 4px solid var(--gold);
}
.principles__summary p { margin: 0; font-size: 1.02rem; }
.principles__summary strong { color: var(--gold-bright); }

/* ---------- Equal opportunity ---------- */
.eeo__inner { max-width: 46rem; }
.eeo__inner p { color: var(--ink-soft); }
.eeo__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Closing CTA band ---------- */
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.cta-band__inner p { color: var(--ink-soft); margin: 0; max-width: 32rem; }
.cta-band__inner .h2 { margin-bottom: .5rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Principal ---------- */
.principal__inner { max-width: 52rem; margin-inline: auto; text-align: center; }
.principal__quote { margin: 0; }
.principal__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  line-height: 1.35; color: var(--navy); margin: 0;
}
.principal__quote em { font-style: italic; color: var(--gold); }
.principal__by { margin-top: 1.75rem; }
.principal__name {
  display: block; font-weight: 600; font-size: 1.05rem; color: var(--navy);
}
.principal__role {
  display: block; font-size: .88rem; color: var(--ink-soft);
  max-width: 34rem; margin: .3rem auto 0;
}

/* ---------- JAM ---------- */
.jam__grid {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.jam__body p { color: var(--ink-soft); }

/* Portrait, with the rules panel riding over its lower edge. A negative margin
   rather than absolute positioning, so it can never overflow the column. */
.jam__img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.jam__panel {
  position: relative;
  margin: -3.5rem 1.25rem 0;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center; box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--gold);
}
.jam__clock {
  display: grid; place-items: center; width: 62px; height: 62px;
  margin: 0 auto 1.1rem; border-radius: 50%;
  background: rgba(201, 162, 39, .16);
}
.jam__clock svg { width: 32px; height: 32px; fill: none; stroke: var(--gold-bright); }
.jam__rule {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--white); margin: 0 0 1.3rem;
}
.jam__rule strong { color: var(--gold-bright); font-weight: 600; }
.jam__nots { display: grid; gap: .55rem; }
.jam__nots li {
  font-size: .95rem; color: rgba(255, 255, 255, .82);
  padding: .55rem 0; border-top: 1px solid rgba(255, 255, 255, .16);
}

/* ---------- Academics ---------- */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stage {
  position: relative; padding: 2.2rem 1.5rem 1.8rem;
  border-top: 3px solid var(--navy);
  background: linear-gradient(180deg, rgba(10, 24, 89, .04), transparent 60%);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.stage:hover { border-top-color: var(--gold); transform: translateY(-4px); }
.stage__num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  color: rgba(10, 24, 89, .16); line-height: 1; display: block; margin-bottom: .6rem;
}
.stage__title { font-size: 1.3rem; color: var(--navy); }
.stage__grades {
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin: .35rem 0 .8rem;
}
.stage p:last-child { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------- Student life ---------- */
.life__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
/* 3:2 is the photograph's own shape, so it runs full width uncropped. */
.life__img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .14);
}
.life__body p { color: rgba(255, 255, 255, .8); }

.quote {
  margin: 1.8rem 0; padding: 1.2rem 0 1.2rem 1.6rem;
  border-left: 3px solid var(--gold);
}
.quote p {
  font-family: var(--font-display); font-size: clamp(1.15rem, 1.9vw, 1.42rem);
  line-height: 1.45; color: var(--white); margin-bottom: .7rem;
}
.quote footer { font-size: .88rem; color: rgba(255, 255, 255, .62); }
.quote cite { font-style: normal; }

/* ---------- Admissions ---------- */
.admissions__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.admissions__text p { color: var(--ink-soft); }
.admissions__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

.steps { display: grid; gap: 1rem; }
.step {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
}
.step__n {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--gold-bright);
  font-weight: 700; font-size: .95rem;
}
.step h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: .15rem; }
.step p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid; grid-template-columns: 1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.contact__body > p { color: var(--ink-soft); }
.contact__list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__list .ico { width: 1.35rem; height: 1.35rem; color: var(--gold); margin-top: .2rem; }
.contact__list strong { color: var(--navy); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__map { display: inline-block; margin-top: .35rem; font-size: .88rem; color: var(--gold); }

/* <address> is italic by default in every browser; it is used here purely for
   semantics, so keep it reading like the text around it. */
address { font-style: normal; }

.enquiry {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}

/* Homepage panel that routes to the form on admissions.html */
.enquire-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm); text-align: center;
  border-top: 4px solid var(--gold);
}
.enquire-card__title { font-size: 1.4rem; color: var(--navy); margin-bottom: .7rem; }
.enquire-card p { color: var(--ink-soft); font-size: .97rem; }
.enquire-card__or {
  margin: 1.4rem 0 1rem; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: center; gap: .8rem;
}
.enquire-card__or::before, .enquire-card__or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.enquire-card__links { display: grid; gap: .7rem; }
.enquire-card__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none;
}
.enquire-card__link:hover { text-decoration: underline; }
.enquire-card__ico { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.enquire-card__ico--wa { fill: #1f8a4c; }
.enquiry__title { font-size: 1.4rem; color: var(--navy); margin-bottom: 1.3rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--navy); margin-bottom: .35rem;
}
.field__opt { font-weight: 400; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem;
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 24, 89, .12);
}
.field input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.enquiry__note { margin: .9rem 0 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }
.enquiry__note.is-ok { color: #1c6b3c; font-weight: 600; }
.enquiry__note.is-error { color: #a3261e; font-weight: 600; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.enquiry__alt {
  margin: 1.1rem 0 0; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-soft); text-align: center;
}
.enquiry__wa {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: #1f8a4c; text-decoration: none; white-space: nowrap;
}
.enquiry__wa:hover { text-decoration: underline; }
.enquiry__wa svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.footer__mark { width: 66px; height: 66px; border-radius: 50%; border: 1.5px solid rgba(201, 162, 39, .5); }
.footer__motto {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-bright);
  margin: .9rem 0 .5rem; letter-spacing: .04em;
}
.footer__blurb { font-size: .92rem; margin: 0; max-width: 26rem; }
.footer__h {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin: 0 0 1rem;
}
.footer__col ul { display: grid; gap: .6rem; font-size: .93rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--gold-bright); }
.footer__contact li { line-height: 1.5; }
.footer__eeo {
  margin: 1.1rem 0 0; font-size: .8rem; line-height: 1.5;
  color: rgba(255, 255, 255, .5); max-width: 18rem;
}
.footer__social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.footer__social a:hover { background: rgba(201, 162, 39, .2); border-color: var(--gold); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }

.footer__bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.4rem; font-size: .85rem;
}
.footer__bar p { margin: 0; }
.footer__credit { color: rgba(255, 255, 255, .58); }

/* ---------- Footer link-buttons ----------
   These open dialogs rather than navigating, so they are buttons that are
   dressed to match the links beside them. */
.footer__btn {
  padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .93rem; color: inherit; text-align: left;
}
.footer__btn:hover { color: var(--gold-bright); }

/* ---------- Pop-up cards ---------- */
.modal {
  width: min(38rem, calc(100vw - 2rem));
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px rgba(6, 15, 57, .35);
  border-top: 4px solid var(--gold);
  overflow: visible;
}
.modal::backdrop { background: rgba(6, 15, 57, .62); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .28s var(--ease); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.modal__close-form { position: absolute; top: .85rem; right: .85rem; margin: 0; }
.modal__close {
  display: grid; place-items: center; width: 38px; height: 38px;
  font-size: 1.6rem; line-height: 1; color: var(--ink-soft);
  background: var(--tint); border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: var(--navy); color: var(--white); }

.modal__title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--navy); margin-bottom: 1.1rem; }

.modal__body { max-height: min(52vh, 30rem); overflow-y: auto; padding-right: .35rem; }
.modal__body p { color: var(--ink-soft); font-size: .97rem; }
.modal__body h3 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--navy); margin: 1.5rem 0 .6rem;
}
.ticks--tight { margin: 0 0 .5rem; gap: .45rem; }
.ticks--tight li { font-size: .95rem; }

.modal__note {
  margin-top: 1.3rem; padding: .9rem 1.1rem;
  background: var(--tint); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; font-size: .9rem;
}

.modal__hours {
  display: grid; gap: .15rem; text-align: center;
  margin: 1.4rem 0; padding: 1.2rem;
  background: var(--navy); border-radius: var(--radius);
}
.modal__hours-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-bright); margin-bottom: .3rem;
}
.modal__hours-value { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); }

.modal__actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.btn--wa { background: #1f8a4c; color: var(--white); }
.btn--wa:hover { background: #1a7541; }
.btn--wa svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* Keeps the page behind from scrolling while a card is open. */
body.has-modal { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .cards, .stages { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topbar__contact li:last-child, .topbar__links li:not(:last-child) { display: none; }

  .nav-toggle { display: grid; place-items: center; }
  /* Hangs off the sticky header itself, so it stays attached at any
     scroll position rather than to a fixed viewport offset. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep);
    padding: 1rem var(--gutter) 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;

    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    display: block; padding: .95rem 0; font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 1.3rem; width: 100%; }

  .about__grid, .life__grid, .admissions__inner, .contact__grid, .jam__grid,
  .split { grid-template-columns: 1fr; }
  /* Photograph below the words on narrow screens, whichever side it sat on. */
  .split--reverse .split__body { order: 0; }
  .story .split__media img { aspect-ratio: 4 / 3; max-height: none; }
  .cta-band__inner { display: block; }
  .cta-band__actions { margin-top: 1.5rem; }
  .life__media { max-width: 26rem; }
  .about__badge { right: 1rem; bottom: -1.25rem; }

  .hero { min-height: auto; }
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .16); }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .cards, .stages, .footer__grid, .field-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .principle { flex-direction: column; gap: .5rem; padding: 1.4rem; }
  .eeo__actions .btn, .cta-band__actions .btn { width: 100%; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 1.12rem; }
  .brand__sub { font-size: .6rem; letter-spacing: .12em; }
  .hero__actions .btn { width: 100%; }
  .section-head--row { align-items: flex-start; }
  .footer__bar { justify-content: center; text-align: center; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .hero__media, .nav-toggle, .enquiry { display: none !important; }
  body { color: #000; }
  .section--navy, .footer { background: #fff !important; color: #000 !important; }
}
