/* ==========================================================================
   Aderibigbe Private School — design system
   Palette drawn from the school crest: ink, magenta, forest, parchment.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #171021;
  --ink-2: #241831;
  --ink-3: #33243f;
  --paper: #f7f1e6;
  --paper-2: #fcf8f1;
  --cream: #f2e8d8;
  --white: #fffdf9;
  --magenta: #d42a7f;
  --magenta-ink: #a01a5d;
  --magenta-soft: #f7d9e7;
  --pink: #ef4d9b;
  --green: #1f6b4a;
  --green-soft: #dce9df;
  --gold: #c0903b;
  --muted: #6d6379;
  --line: rgba(23, 16, 33, 0.14);
  --line-soft: rgba(23, 16, 33, 0.08);
  --line-light: rgba(247, 241, 230, 0.18);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 10px rgba(23, 16, 33, 0.06);
  --shadow-md: 0 18px 50px -22px rgba(23, 16, 33, 0.32);
  --shadow-lg: 0 40px 90px -40px rgba(23, 16, 33, 0.45);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
picture,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
::selection {
  background: var(--magenta);
  color: var(--white);
}
:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

/* Paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.section--paper2 {
  background: var(--paper-2);
}
.section--cream {
  background: var(--cream);
}
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark h2,
.section--dark h3 {
  color: var(--paper);
}
.section--flush-top {
  padding-top: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--magenta-ink);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--light {
  color: var(--pink);
}
.eyebrow--plain {
  letter-spacing: 0.16em;
}
.eyebrow--plain::before {
  display: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
}
.display em,
h1 em,
h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--magenta);
}
.section--dark .display em {
  color: var(--pink);
}

.section-title {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  max-width: 16ch;
}
.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
}
.section--dark .lede {
  color: rgba(247, 241, 230, 0.72);
}
.small {
  font-size: 0.82rem;
  color: var(--muted);
}
.mono-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.35s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--primary {
  --btn-bg: var(--magenta);
  --btn-fg: var(--white);
  --btn-bd: var(--magenta);
}
.btn--primary:hover {
  --btn-bg: var(--ink);
  --btn-bd: var(--ink);
}
.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
}
.btn--ink:hover {
  --btn-bg: var(--magenta);
  --btn-bd: var(--magenta);
  --btn-fg: var(--white);
}
.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}
.btn--light {
  --btn-fg: var(--paper);
  --btn-bd: rgba(247, 241, 230, 0.4);
}
.btn--light:hover {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--paper);
}
.btn--light-solid {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--paper);
}
.btn--light-solid:hover {
  --btn-bg: var(--magenta);
  --btn-fg: var(--white);
  --btn-bd: var(--magenta);
}
.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta-ink);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover {
  gap: 0.9rem;
  color: var(--ink);
}
.link-arrow svg {
  width: 14px;
  height: 14px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(247, 241, 230, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
}
.topbar p {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar p svg {
  width: 12px;
  height: 12px;
  color: var(--pink);
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}
.topbar a:hover {
  color: var(--pink);
}
.topbar .topbar__phone {
  color: var(--paper);
  font-weight: 700;
}
.topbar__divider {
  width: 1px;
  height: 12px;
  background: var(--line-light);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 241, 230, 0.97);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
  flex-shrink: 0;
}
.brand:hover .brand__mark {
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 0 4px 16px rgba(23, 16, 33, 0.12);
  border-color: rgba(212, 42, 127, 0.35);
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__text strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s ease;
}
.brand:hover .brand__text strong {
  color: var(--magenta);
}
.brand__text span {
  margin-top: 0.32rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand--light .brand__text strong {
  color: var(--paper);
}
.brand--light:hover .brand__text strong {
  color: var(--pink);
}
.brand--light .brand__text span {
  color: rgba(247, 241, 230, 0.7);
}
.brand--light .brand__mark {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-block: 0.4rem;
  color: var(--ink);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--magenta);
  transition: right 0.35s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  right: 0;
}
.nav a[aria-current="page"] {
  color: var(--magenta-ink);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}
.header__actions .btn--ghost {
  border-color: transparent;
}
.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s ease, top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) {
  top: 19px;
}
.nav-toggle span:nth-child(2) {
  top: 24px;
}
.nav-toggle span:nth-child(3) {
  top: 29px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 24px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 24px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 2.5rem;
  background: var(--ink);
  color: var(--paper);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.mobile-nav__header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-light);
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
  padding-block: 0.3rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line-light);
}
.mobile-nav nav a span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--pink);
}
.mobile-nav nav a[aria-current="page"] {
  color: var(--pink);
  font-style: italic;
}
.mobile-nav__meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.8rem;
  color: rgba(247, 241, 230, 0.65);
}
.mobile-nav__meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.mobile-nav__meta a:hover {
  color: var(--pink);
}
body.nav-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__copy .eyebrow {
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.1rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
}
.hero h1 .line {
  display: block;
}
.hero h1 em {
  color: var(--magenta);
  font-weight: 300;
}
.hero__lede {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.7;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  max-width: 480px;
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--magenta);
}

.hero__visual {
  position: relative;
}
.hero__arch {
  position: relative;
  border-radius: 280px 280px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 0.83;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.hero__arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.hero__visual:hover .hero__arch img {
  transform: scale(1);
}
.hero__arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 16, 33, 0.45) 100%);
}
.hero__caption {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: var(--paper);
}
.hero__caption p {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
}
.hero__caption span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.hero__seal {
  position: absolute;
  top: -22px;
  right: -18px;
  z-index: 3;
  width: 118px;
  height: 118px;
  padding: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf9 0%, var(--paper) 78%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md), inset 0 0 0 2px rgba(255, 253, 249, 0.6);
  animation: seal-spin 40s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(23, 16, 33, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
@keyframes seal-spin {
  to {
    transform: rotate(360deg);
  }
}
.hero__seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(23, 16, 33, 0.12));
  animation: seal-spin 40s linear infinite reverse;
}
.hero__sun {
  position: absolute;
  width: 620px;
  height: 620px;
  top: -220px;
  right: -160px;
  z-index: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -8deg,
    rgba(212, 42, 127, 0.4) 0deg 0.8deg,
    transparent 0.8deg 5deg
  );
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0 28%, transparent 66%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0 28%, transparent 66%);
  opacity: 0.55;
  pointer-events: none;
}
.hero__stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__stamp svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* ---------- Stat strip ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat:first-child {
  border-left: 0;
}
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat strong em {
  color: var(--magenta);
  font-style: normal;
}
.stat > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: 1.1rem;
  border-block: 1px solid var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
  flex: none;
}
.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marquee__group span::after {
  content: "✳";
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--pink);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  display: block;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.section-head--center .eyebrow {
  margin-bottom: 1.1rem;
}
.section-head--center .lede {
  margin-inline: auto;
  margin-top: 1.2rem;
}
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  font-weight: 300;
}
.section-head .eyebrow {
  margin-bottom: 1.1rem;
}
.section-head__aside {
  padding-bottom: 0.4rem;
}
.section-head__aside .lede {
  font-size: 1rem;
}
.section-head__aside .link-arrow {
  margin-top: 1.4rem;
}

/* ---------- Intro / editorial ---------- */
.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.intro__sticky {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.intro__sticky h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  margin-top: 1.1rem;
}
.intro__body p {
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
}
.intro__body p + p {
  margin-top: 1.2rem;
}
.intro__body .lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.intro__signature {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.intro__signature img {
  width: 46px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 2px 5px rgba(23, 16, 33, 0.08));
}
.intro__signature p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.intro__signature strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Programme cards ---------- */
.programmes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.programme {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 430px;
  overflow: hidden;
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.programme::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.programme:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-6px);
}
.programme:hover::before {
  transform: scaleX(1);
}
.programme__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.programme__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--magenta);
}
.programme__age {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  transition: color 0.45s, border-color 0.45s;
}
.programme:hover .programme__age {
  color: rgba(247, 241, 230, 0.7);
  border-color: var(--line-light);
}
.programme h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  margin-top: 2.2rem;
  transition: color 0.45s;
}
.programme__sub {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.45s;
}
.programme:hover .programme__sub {
  color: rgba(247, 241, 230, 0.6);
}
.programme p {
  margin-top: 1.1rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--muted);
  transition: color 0.45s;
}
.programme:hover p {
  color: rgba(247, 241, 230, 0.75);
}
.programme__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.4rem;
}
.programme__list li {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color 0.45s, color 0.45s;
}
.programme:hover .programme__list li {
  border-color: var(--line-light);
  color: rgba(247, 241, 230, 0.8);
}
.programme__foot {
  margin-top: auto;
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.programme__foot .link-arrow {
  color: var(--ink);
  transition: color 0.45s;
}
.programme:hover .programme__foot .link-arrow {
  color: var(--pink);
}
.programme__glyph {
  width: 34px;
  height: 34px;
  color: var(--magenta);
  opacity: 0.8;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.feature {
  padding: 2.2rem 1.8rem 2.2rem 0;
  border-right: 1px solid var(--line);
}
.feature:last-child {
  border-right: 0;
  padding-right: 0;
}
.feature + .feature {
  padding-left: 1.8rem;
}
.feature__icon {
  width: 34px;
  height: 34px;
  color: var(--magenta);
  margin-bottom: 1.4rem;
}
.feature h3 {
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.feature p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}
.feature__index {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--magenta-ink);
  margin-bottom: 1rem;
}

/* ---------- Portals ---------- */
.portals {
  position: relative;
  overflow: hidden;
}
.portals .sunburst {
  position: absolute;
  right: -8%;
  top: -30%;
  width: 760px;
  height: 760px;
  opacity: 0.16;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    var(--pink) 0deg 0.9deg,
    transparent 0.9deg 5.4deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0 32%, transparent 68%);
  mask-image: radial-gradient(circle, #000 0 32%, transparent 68%);
  pointer-events: none;
}
.portals__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.8rem;
  position: relative;
  z-index: 1;
}
.portals__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.portal {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(247, 241, 230, 0.04);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.portal:hover {
  background: rgba(247, 241, 230, 0.09);
  border-color: rgba(247, 241, 230, 0.4);
  transform: translateY(-4px);
}
.portal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.portal__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--pink);
}
.portal__icon svg {
  width: 18px;
  height: 18px;
}
.portal__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.55);
}
.portal h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-top: 0.8rem;
}
.portal p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(247, 241, 230, 0.68);
  max-width: 40ch;
}
.portal__link {
  margin-top: auto;
  padding-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}
.portal__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}
.portal:hover .portal__link svg {
  transform: translate(3px, -3px);
}

/* ---------- Campus split ---------- */
.campus {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.campus__media {
  position: relative;
}
.campus__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1.18;
  box-shadow: var(--shadow-md);
}
.campus__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.campus__media:hover .campus__frame img {
  transform: scale(1.03);
}
.campus__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--magenta);
  border-radius: var(--radius);
  pointer-events: none;
}
.campus__label {
  position: absolute;
  left: -1px;
  bottom: -1px;
  padding: 0.7rem 1rem;
  background: var(--paper);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top-right-radius: var(--radius);
}
.campus h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin-top: 1.1rem;
}
.campus .lede {
  margin-top: 1.2rem;
}
.facility-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.facility-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.facility-list li span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--magenta);
  min-width: 2rem;
}
.campus__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

/* ---------- Quote band ---------- */
.quote-band {
  position: relative;
  overflow: hidden;
}
.quote-band__inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.quote-band__crest {
  width: 140px;
  height: 140px;
  padding: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle, #ffffff 0%, var(--paper-2) 80%);
  box-shadow: var(--shadow-sm), inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-band__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(23, 16, 33, 0.1));
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.quote-band blockquote em {
  color: var(--magenta);
  font-style: italic;
}
.quote-band figcaption {
  margin-top: 1.7rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-band figcaption::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--magenta);
}

/* ---------- Admissions steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 2rem 1.4rem 0 0;
  border-right: 1px solid var(--line);
}
.step:last-child {
  border-right: 0;
  padding-right: 0;
}
.step + .step {
  padding-left: 1.4rem;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.3rem;
  background: var(--paper-2);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.step:hover .step__num {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--white);
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}
.admissions-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.admissions-cta p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  max-width: 36ch;
  line-height: 1.35;
}

/* ---------- Notices ---------- */
.notices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.notice {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.notice:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.notice__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.notice__tag {
  color: var(--magenta-ink);
}
.notice__kind {
  color: var(--muted);
}
.notice h3 {
  font-size: 1.45rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
.notice p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--muted);
}
.notice__foot {
  margin-top: auto;
  padding-top: 1.6rem;
}
.notice__foot .link-arrow {
  font-size: 0.68rem;
}

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.cta-band .sunburst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(239, 77, 155, 0.55) 0deg 0.7deg,
    transparent 0.7deg 5.6deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 62%);
  mask-image: radial-gradient(circle, #000 0 18%, transparent 62%);
  opacity: 0.4;
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  max-width: 16ch;
  margin-inline: auto;
}
.cta-band h2 em {
  color: var(--pink);
}
.cta-band p {
  max-width: 48ch;
  margin: 1.3rem auto 0;
  color: rgba(247, 241, 230, 0.72);
  font-size: 1rem;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.cta-band__meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(247, 241, 230, 0.55);
}
.cta-band__meta a {
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(247, 241, 230, 0.75);
}
.cta-band__meta a:hover {
  color: var(--pink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  color: var(--ink);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.footer__brand .brand {
  margin-bottom: 1.2rem;
}
.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34ch;
}
.footer__motto {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta-ink);
}
.footer__motto::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.footer h3 {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer__links a {
  font-size: 0.88rem;
  color: var(--ink);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.footer__links a:hover {
  color: var(--magenta-ink);
  border-bottom-color: currentColor;
}
.footer__contact li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
  color: var(--muted);
}
.footer__contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 0.25rem;
  color: var(--magenta-ink);
}
.footer__contact a:hover {
  color: var(--ink);
}
.footer__wordmark {
  border-top: 1px solid var(--line);
  padding-block: 1.8rem 1.4rem;
  overflow: hidden;
}
.footer__wordmark p {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14.6vw, 13rem);
  font-weight: 300;
  line-height: 0.74;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: rgba(23, 16, 33, 0.07);
  transition: color 0.5s ease;
}
@supports (-webkit-text-stroke: 1px #000) {
  .footer__wordmark p {
    color: transparent;
    -webkit-text-stroke: 1px rgba(23, 16, 33, 0.34);
  }
}
.footer__wordmark span {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--magenta);
  text-align: right;
}
.footer__wordmark:hover p {
  color: rgba(23, 16, 33, 0.05);
}
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}
.footer__legal-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer__author {
  font-size: 0.7rem;
  color: var(--muted);
}
.footer__author a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.footer__author a:hover {
  color: var(--magenta);
}
.footer__legal nav {
  display: flex;
  gap: 1.2rem;
}
.footer__legal a:hover {
  color: var(--ink);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem 0.75rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  box-shadow: 0 18px 40px -16px rgba(23, 16, 33, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.wa-float:hover {
  background: var(--green);
  transform: translateY(-3px);
}
.wa-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
}
.wa-float svg {
  width: 20px;
  height: 20px;
}
.wa-float__dot {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(247, 241, 230, 0.9);
  animation: ping 2.4s ease-in-out infinite;
}
@keyframes ping {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.page-hero .sunburst {
  position: absolute;
  right: -140px;
  top: -260px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(239, 77, 155, 0.5) 0deg 0.8deg,
    transparent 0.8deg 5.6deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0 30%, transparent 66%);
  mask-image: radial-gradient(circle, #000 0 30%, transparent 66%);
  opacity: 0.4;
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.5);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.breadcrumbs a:hover {
  color: var(--pink);
}
.breadcrumbs span {
  color: var(--pink);
}
.page-hero h1 {
  font-size: clamp(2.9rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.page-hero h1 em {
  color: var(--pink);
}
.page-hero__foot {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-top: 2rem;
}
.page-hero__foot .lede {
  color: rgba(247, 241, 230, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}
.page-hero__meta span {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: rgba(247, 241, 230, 0.7);
}

/* ---------- Prose ---------- */
.prose {
  max-width: 68ch;
}
.prose > * + * {
  margin-top: 1.2rem;
}
.prose h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-top: 2.6rem;
}
.prose h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
}
.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.75;
}
.prose ul {
  display: grid;
  gap: 0.55rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.3rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--magenta);
  transform: rotate(45deg);
}
.prose a {
  color: var(--magenta-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose .intro__body p + p {
  margin-top: 1.2rem;
}

/* ---------- Value cards ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.value-card {
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.value-card__icon {
  width: 34px;
  height: 34px;
  color: var(--magenta);
  margin-bottom: 1.3rem;
}
.value-grid--four {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1120px) {
  .value-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .value-grid--four {
    grid-template-columns: 1fr;
  }
}
.value-card__tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta-ink);
}
.value-card h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-top: 1.2rem;
  margin-bottom: 0.7rem;
}
.value-card p {
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--muted);
}
.value-card--accent {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.value-card--accent h3 {
  color: var(--paper);
}
.value-card--accent p {
  color: rgba(247, 241, 230, 0.7);
}
.value-card--accent .value-card__tag {
  color: var(--pink);
}

/* ---------- Mission / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
}
.panel {
  position: relative;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
}
.panel__icon {
  width: 40px;
  height: 40px;
  color: var(--magenta);
  margin-bottom: 1.6rem;
}
.panel h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: 0.9rem;
}
.panel p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.panel--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.panel--dark p {
  color: rgba(247, 241, 230, 0.7);
}
.panel--dark .panel__icon {
  color: var(--pink);
}
.panel--magenta {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--white);
}
.panel--magenta p {
  color: rgba(255, 253, 249, 0.82);
}
.panel--magenta .panel__icon {
  color: var(--white);
}

/* ---------- Crest anatomy ---------- */
.crest-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.crest-figure {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 50% 50% var(--radius) var(--radius);
}
.crest-figure::before,
.crest-figure::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}
.crest-figure::before {
  inset: 12px;
}
.crest-figure::after {
  inset: 24px;
  border-style: dashed;
  opacity: 0.6;
}
.crest-figure img {
  width: min(300px, 80%);
  height: auto;
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(23, 16, 33, 0.15));
  transition: transform 0.5s var(--ease);
}
.crest-figure:hover img {
  transform: translateY(-4px) scale(1.02);
}
.crest-legend {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.crest-legend li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.crest-legend b {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--magenta);
  font-size: 1.05rem;
}
.crest-legend h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.crest-legend p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Timeline / story ---------- */
.moments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
.moment {
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.moment__year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--magenta);
}
.moment h3 {
  font-size: 1.3rem;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}
.moment p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Level navigation & sections ---------- */
.level-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 80;
  background: rgba(247, 241, 230, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.level-nav ul {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.7rem;
}
.level-nav ul::-webkit-scrollbar {
  display: none;
}
.level-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.level-nav a span {
  color: var(--magenta);
  font-size: 0.62rem;
}
.level-nav a:hover,
.level-nav a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.level-nav a:hover span,
.level-nav a.is-active span {
  color: var(--pink);
}

.level {
  scroll-margin-top: calc(var(--header-h) + 70px);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.level:last-of-type {
  border-bottom: 0;
}
.level__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.level__head {
  position: sticky;
  top: calc(var(--header-h) + 90px);
}
.level__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta-ink);
  margin-bottom: 1rem;
}
.level__tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.level h2 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 300;
}
.level h2 em {
  color: var(--magenta);
}
.level__ages {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.level__head p {
  margin-top: 1.4rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 42ch;
}
.level__body h3 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.subject-grid li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.subject-grid li:nth-child(odd) {
  padding-right: 1rem;
}
.subject-grid li:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.subject-grid li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  flex: none;
}
.level__body .track-grid {
  margin-top: 2rem;
}
.track {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.track:first-child {
  border-top: 1px solid var(--line);
}
.track h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.track p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}
.level-note {
  margin-top: 1.8rem;
  padding: 1.2rem 1.4rem;
  background: var(--cream);
  border-left: 3px solid var(--magenta);
  font-size: 0.88rem;
  line-height: 1.65;
}
.level-note strong {
  font-weight: 800;
}

/* ---------- Admissions page ---------- */
.apply-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.requirements {
  border-top: 1px solid var(--line);
}
.requirements li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.requirements li span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--magenta);
}
.requirements h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.requirements p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}
.fee-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}
.fee-note h3 {
  color: var(--paper);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.fee-note p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(247, 241, 230, 0.7);
}
.fee-note a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Form ---------- */
.form-card {
  padding: clamp(1.6rem, 3.2vw, 2.6rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-card h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.5rem;
}
.form-card > p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  background: var(--white);
}
.form-card .btn {
  margin-top: 1.3rem;
  width: 100%;
}
.form-note {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}
.form-status.is-visible {
  display: block;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--magenta);
  flex: none;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 2.5rem 1.4rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 68ch;
}
.faq details p a {
  color: var(--magenta-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.contact-card:hover {
  border-color: var(--magenta);
  transform: translateY(-3px);
}
.contact-card__icon {
  width: 34px;
  height: 34px;
  color: var(--magenta);
  margin-bottom: 1.1rem;
}
.contact-card h3 {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.contact-card p,
.contact-card a {
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 600;
}
.contact-card a:hover {
  color: var(--magenta-ink);
}
.contact-card small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}
.map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.map__canvas {
  position: relative;
  display: block;
  overflow: hidden;
}
.map__canvas img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.875;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.map__canvas:hover img {
  transform: scale(1.03);
}
.map__open {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s, color 0.25s;
}
.map__open svg {
  width: 12px;
  height: 12px;
}
.map__canvas:hover .map__open {
  background: var(--ink);
  color: var(--paper);
}
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(1.02);
}
.map__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.map__caption a {
  color: var(--magenta-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---------- Photo feature ---------- */
.photo-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 2.15;
  box-shadow: var(--shadow-md);
}
.photo-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.photo-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(23, 16, 33, 0.7) 100%);
}
.photo-feature__caption {
  position: absolute;
  left: clamp(1.2rem, 3vw, 2.4rem);
  right: clamp(1.2rem, 3vw, 2.4rem);
  bottom: clamp(1.2rem, 3vw, 2rem);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--paper);
}
.photo-feature__caption h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 300;
  color: var(--paper);
  max-width: 18ch;
}
.photo-feature__caption p {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.7);
  text-align: right;
  max-width: 24ch;
  line-height: 1.6;
}

/* ---------- Rhythm list ---------- */
.rhythm {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.rhythm li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.rhythm span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--magenta);
}
.rhythm p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Facility grid ---------- */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.facility {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.facility__icon {
  width: 38px;
  height: 38px;
  color: var(--magenta);
  margin-bottom: 1.4rem;
}
.facility h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}
.facility p {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--muted);
}
.facility__index {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--magenta-ink);
}

/* ---------- Portal detail cards ---------- */
.portal-guide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.guide {
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.guide__icon {
  width: 40px;
  height: 40px;
  color: var(--magenta);
  margin-bottom: 1.2rem;
}
.guide h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.guide p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}
.guide__list {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}
.guide__list li {
  display: flex;
  gap: 0.5rem;
}
.guide__list li::before {
  content: "→";
  color: var(--magenta);
}
.guide .link-arrow {
  margin-top: 1.4rem;
  font-size: 0.68rem;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 5rem;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 16rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(23, 16, 33, 0.3);
}
.error-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 1rem;
}
.error-page p {
  max-width: 44ch;
  margin: 1rem auto 2rem;
  color: var(--muted);
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header__actions .btn--ghost {
    display: none;
  }
  .hero__grid {
    gap: 2.5rem;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature:nth-child(2) {
    border-right: 0;
  }
  .feature:nth-child(3),
  .feature:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .feature:nth-child(3) {
    padding-left: 0;
  }
  .step {
    padding-right: 1rem;
  }
  .step + .step {
    padding-left: 1rem;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 74px;
  }
  .topbar p {
    display: none;
  }
  .topbar__inner {
    justify-content: flex-end;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 9vw, 5rem);
  }
  .hero__visual {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .hero__arch {
    aspect-ratio: 1.05;
    border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
  }
  .hero__seal {
    width: 96px;
    height: 96px;
    padding: 11px;
    right: -6px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .intro__sticky {
    position: static;
  }
  .programmes {
    grid-template-columns: 1fr;
  }
  .programme {
    min-height: 0;
  }
  .campus {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .campus__media {
    order: 2;
    max-width: 620px;
  }
  .quote-band__inner {
    grid-template-columns: 1fr;
  }
  .quote-band__crest {
    width: 92px;
    height: 92px;
    padding: 10px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .step {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 1.6rem 1.2rem 1.6rem 0;
  }
  .step + .step {
    padding-left: 0;
  }
  .step:nth-child(even) {
    padding-left: 1.4rem;
    border-left: 1px solid var(--line);
  }
  .step:nth-child(1),
  .step:nth-child(2) {
    border-top: 0;
  }
  .steps {
    border-top: 0;
  }
  .notices {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-hero__foot {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .page-hero__meta {
    justify-content: flex-start;
  }
  .level__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .level__head {
    position: static;
  }
  .apply-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .crest-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .crest-figure {
    max-width: 380px;
    margin-inline: auto;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .moments {
    grid-template-columns: 1fr;
  }
  .portal-guide {
    grid-template-columns: 1fr;
  }
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-feature {
    aspect-ratio: 1.7;
  }
  .rhythm li {
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: none;
  }
  .brand__text strong {
    font-size: 1.15rem;
  }
  .header__actions .btn {
    display: none;
  }
  .header__inner {
    gap: 1rem;
    justify-content: space-between;
  }
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .stat {
    padding: 1.4rem 1rem;
  }
  .stat:first-child {
    padding-left: 0;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    align-items: start;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature + .feature {
    padding: 1.6rem 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .feature:first-child {
    border-top: 0;
  }
  .portals__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .portals__grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step,
  .step:nth-child(even) {
    padding: 1.4rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .step:first-child {
    border-top: 0;
  }
  .step__num {
    margin-bottom: 0.8rem;
  }
  .admissions-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .footer__wordmark p {
    font-size: 17vw;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .subject-grid li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 0.85rem;
    border-radius: 50%;
  }
  .facility-grid {
    grid-template-columns: 1fr;
  }
  .photo-feature {
    aspect-ratio: 1.15;
  }
  .photo-feature__caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .photo-feature__caption p {
    text-align: left;
  }
  .rhythm li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 1rem 0;
  }
  .hero__seal {
    width: 84px;
    height: 84px;
    padding: 9px;
    top: -14px;
  }
  .hero__caption span {
    font-size: 1.5rem;
  }
  .page-hero h1 {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }
}

@media (max-width: 480px) {
  .btn {
    min-height: 48px;
    padding: 0.75rem 1.2rem;
    font-size: 0.72rem;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__arch {
    aspect-ratio: 0.88;
  }
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
  .quote-band blockquote {
    font-size: 1.65rem;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee__track {
    animation: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .topbar,
  .site-header,
  .mobile-nav,
  .wa-float,
  .site-footer,
  .hero__sun,
  .hero__seal {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
