/* Page layouts: home, inner page banners, about, academics, campus, achievements, admissions, notices, contact, footer. */

/* ===================== Home: hero ===================== */

.hero {
  position: relative;
  margin: var(--frame);
  min-height: min(880px, calc(100vh - var(--frame) * 2));
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
  isolation: isolate;
}
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__img { animation: hero-zoom 18s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__video { opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.hero.has-video .hero__video { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 18, 56, 0.88) 0%, rgba(14, 18, 56, 0.55) 45%, rgba(14, 18, 56, 0.1) 75%),
    linear-gradient(0deg, rgba(14, 18, 56, 0.85) 0%, rgba(14, 18, 56, 0) 45%),
    linear-gradient(180deg, rgba(14, 18, 56, 0.45) 0%, rgba(14, 18, 56, 0) 22%);
}
.hero__inner {
  display: grid;
  gap: var(--space-6);
  align-items: end;
  min-height: inherit;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 96px;
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: 1.5fr 1fr; }
  /* The title and buttons sit near the top of the photo; the results card stays at the bottom right. */
  .hero__copy { align-self: start; padding-top: clamp(0.5rem, 3vh, 2.5rem); }
}

.hero__title { max-width: 15ch; font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.6rem); font-weight: 600; color: #fff; letter-spacing: -0.035em; outline: none; }
.hero__title em { display: block; color: var(--sun); }
.hero__lead { max-width: 52ch; margin-top: var(--space-5); font-size: var(--text-lg); color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-6); }
.hero__actions .link-underline { color: #fff; }

.hero__side { display: grid; gap: var(--space-5); justify-items: end; align-self: end; }
.hero__trust { display: grid; gap: 6px; text-align: right; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.86); }
.hero__trust li { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.hero__trust [data-icon] { color: var(--sun); }
.hero__card {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3);
  width: min(400px, 100%);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.hero__card-stat { padding: var(--space-3); display: flex; flex-direction: column; color: #fff !important; text-decoration: none; border-radius: var(--radius); transition: background var(--dur-fast) var(--ease); }
.hero__card-stat:hover { background: rgba(255, 255, 255, 0.06); }
.hero__card-kicker { display: inline-flex; align-items: center; gap: 5px; margin-bottom: var(--space-2); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sun); }
.hero__card-num { margin: 0; font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.hero__card-label { margin: 6px 0 var(--space-3); font-size: var(--text-xs); line-height: 1.4; color: rgba(255, 255, 255, 0.8); }
.hero__card-names { display: grid; gap: 2px; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.75); }
.hero__card-names strong { color: #fff; font-weight: 700; }
.hero__card-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: var(--space-3); font-size: var(--text-xs); font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; }
.hero__card-media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 140px; }
.hero__card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.hero__card-media:hover img { transform: scale(1.06); }
.hero__card-play { display: grid; place-items: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--navy-950); box-shadow: 0 0 0 6px rgba(255, 212, 59, 0.3); }
@media (max-width: 999px) { .hero__side { justify-items: start; } .hero__trust { text-align: left; } .hero__trust li { justify-content: flex-start; } }

.hero__now {
  position: absolute; left: var(--gutter); bottom: var(--space-5);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  max-width: calc(100% - var(--gutter) * 2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  font-size: var(--text-xs); color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 1300px) { .hero__now { left: calc((100% - var(--container)) / 2); } }
.hero__now-icon { color: var(--sun); }
.hero__now strong { color: #fff; }
.hero__now.is-open .hero__now-status { color: var(--sun); font-weight: 700; }

/* ===================== Home: logo strip & ticker ===================== */

/* Affiliations: a white panel so the logos (transparent PNGs) sit on the colour they were drawn for. */
.affil { padding-block: var(--space-6) var(--space-3); }
.affil__panel { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.affil__title { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; }
.affil__title::before, .affil__title::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.affil__title::before { max-width: 48px; }
.logo-strip__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
@media (min-width: 900px) { .logo-strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logo-strip__item { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.logo-strip__item img { flex: none; width: 68px; height: 68px; object-fit: contain; transition: transform var(--dur) var(--ease); }
.logo-strip__item:hover img { transform: scale(1.06); }
.logo-strip__item span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.logo-strip__item strong { font-size: var(--text-md); color: var(--ink); }
.logo-strip__item small { font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 520px) {
  .logo-strip__item { flex-direction: column; text-align: center; }
  .logo-strip__item img { width: 60px; height: 60px; }
}
/* Dark theme: the logos keep a white disc so their dark rings stay visible. */
:root[data-theme='dark'] .logo-strip__item img { background: #fff; border-radius: 50%; padding: 5px; }

.ticker { margin: var(--space-4) var(--frame) 0; border-radius: var(--radius-pill); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ticker__inner { display: flex; align-items: center; gap: var(--space-4); min-height: 54px; padding-inline: var(--space-3); max-width: none; }
.ticker__label, .ticker__all { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; font-size: var(--text-sm); text-decoration: none; }
.ticker__label { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--sun); color: var(--navy-950) !important; }
.ticker__all { color: var(--muted) !important; padding-right: var(--space-3); }
@media (max-width: 640px) { .ticker__all { display: none; } }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.ticker__track { display: flex; gap: var(--space-7); width: max-content; animation: ticker var(--ticker-duration, 40s) linear infinite; }
.ticker__viewport.is-paused .ticker__track { animation-play-state: paused; }
.ticker__item a { display: inline-flex; align-items: baseline; gap: var(--space-2); color: var(--text) !important; text-decoration: none; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.ticker__item a:hover { text-decoration: underline; }
.ticker__date { font-size: var(--text-xs); font-weight: 700; color: var(--logo-teal); }
:root[data-theme='dark'] .ticker__date { color: var(--sun); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
:root[data-motion='reduced'] .ticker__track { animation: none; flex-wrap: wrap; width: auto; gap: var(--space-2) var(--space-5); }
:root[data-motion='reduced'] .ticker__item[aria-hidden='true'] { display: none; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; flex-wrap: wrap; width: auto; } .ticker__item[aria-hidden='true'] { display: none; } }

/* ===================== Home: about intro & stats ===================== */

.about-intro__grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .about-intro__grid { grid-template-columns: minmax(260px, 1fr) 2fr; align-items: start; } }
.about-intro__aside .photo-card { max-width: 340px; }
.about-intro__aside .social { margin-top: var(--space-4); }
.statement { font-size: clamp(1.35rem, 1rem + 1.4vw, 2.05rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.statement em { color: var(--logo-teal); }
:root[data-theme='dark'] .statement em { color: var(--sun); }
.about-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-6); }

.stats { display: grid; margin: var(--space-7) 0 0; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; flex-direction: column; padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.stat:first-child { background: var(--navy-900); }
.stat:first-child .stat__value, .stat:first-child .stat__label { color: #fff; }
.stat:first-child .stat__note { color: var(--band-muted); }
.stat__label { order: 2; font-weight: 700; font-size: var(--text-sm); }
.stat__value { order: 1; margin: 0 0 var(--space-2); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__note { order: 3; margin: 4px 0 0; font-size: var(--text-xs); color: var(--muted); }

/* ===================== Home: showcase carousel ===================== */

/* The first card lines up with the section heading above; the row still runs out to the window edge
 * on the right, so it reads as a strip that continues. */
.carousel { --carousel-inset: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px);
  gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--carousel-inset);
  padding: 4px var(--carousel-inset) var(--space-4);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.show-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  background: var(--navy-900);
  isolation: isolate;
}
.show-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.show-card:hover .show-card__img { transform: scale(1.06); }
.show-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 18, 56, 0.95) 0%, rgba(14, 18, 56, 0.55) 40%, rgba(14, 18, 56, 0) 70%); }
.show-card__tag { position: absolute; top: 14px; left: 14px; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; }
.show-card__icon { display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--navy-950); }
.show-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-5); }
.show-card__title { color: #fff; font-size: var(--text-xl); margin-bottom: var(--space-2); }
.show-card__body p { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.8); margin-bottom: var(--space-4); }

/* ===================== Home: admission bento ===================== */

.bento { display: grid; gap: var(--space-4); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
  .bento__card--photo { grid-row: span 2; }
  .bento__card--dark { grid-column: 2 / span 2; }
}
.bento__card { position: relative; display: flex; flex-direction: column; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.bento__card h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.bento__card p { color: var(--muted); font-size: var(--text-sm); }
.bento__step { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.bento__card--photo { padding-bottom: 0; }
.bento__card--photo img { margin: var(--space-5) calc(var(--space-5) * -1) 0; width: calc(100% + var(--space-5) * 2); max-width: none; flex: 1; min-height: 240px; object-fit: cover; }
.bento__thumb { margin-top: auto; width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); }
.bento__docs { display: grid; gap: 6px; margin: var(--space-3) 0; }
.bento__docs li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-sm); }
.bento__docs [data-icon], .bento__docs svg { color: var(--logo-teal); margin-top: 2px; }
.bento__card .link-underline { margin-top: auto; }
.bento__card--dark { display: grid; gap: var(--space-5); background: var(--navy-900); color: #fff; box-shadow: none; }
@media (min-width: 640px) { .bento__card--dark { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.bento__card--dark h3 { color: #fff; }
.bento__card--dark p { color: var(--band-muted); }
.bento__card--dark .bento__step { color: var(--band-muted); }
.bento__card--dark .btn { margin-top: var(--space-4); }
.bento__chip { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--space-3); padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(255, 212, 59, 0.16); color: var(--sun); font-size: 11px; font-weight: 700; }
.checklist-card { padding: var(--space-4); border-radius: var(--radius); background: #fff; color: var(--navy-950); box-shadow: var(--shadow-lg); transform: rotate(3deg); }
.checklist-card__title { margin-bottom: var(--space-3); font-family: var(--font-serif); font-size: 1.35rem; font-style: italic; }
.checklist-card__row { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 0; font-size: var(--text-sm); font-weight: 600; color: #6a6f8f; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.checklist-card__row.is-done { color: var(--navy-950); }
.checklist-card__row.is-done svg { color: #3f8f2a; }

/* ===================== Home: sports mosaic ===================== */

.mosaic { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; } .mosaic__item--big { grid-column: span 2; grid-row: span 2; } }
.mosaic__item { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-3); isolation: isolate; }
.mosaic__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.mosaic__item:hover img { transform: scale(1.06); }
.mosaic__item::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 18, 56, 0.85), rgba(14, 18, 56, 0) 55%); }
.mosaic__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4) var(--space-5); color: #fff; }
.mosaic__caption h3 { color: #fff; font-size: var(--text-lg); }
.mosaic__caption p { margin: 4px 0 0; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.8); max-width: 42ch; }
@media (max-width: 899px) { .mosaic__item--big { grid-column: span 2; } }

/* ===================== Home: results band ===================== */

.results-band { display: grid; gap: var(--space-6); align-items: center; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); border-radius: var(--radius-xl); background: var(--navy-900); color: #fff; }
@media (min-width: 900px) { .results-band { grid-template-columns: 1fr 1.1fr; } }
.results-band h2 { color: #fff; }
.results-band p { color: var(--band-muted); }
.results-band__big { margin: 0 0 var(--space-3); font-size: clamp(4.5rem, 2.5rem + 7vw, 8.5rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; color: var(--sun) !important; }
.results-band .btn { margin-top: var(--space-5); }
.results-band__years { padding: var(--space-5); background: var(--surface); color: var(--text); border-radius: var(--radius-lg); }
.result-line { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'label score' 'name score'; gap: 2px var(--space-4); padding: var(--space-4) 0; }
.result-line + .result-line { box-shadow: 0 -1px 0 var(--line); }
.result-line__label { grid-area: label; display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--muted); }
.result-line__name { grid-area: name; font-size: var(--text-xl); font-weight: 700; color: var(--ink); }
.result-line__score { grid-area: score; align-self: center; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--sun); color: var(--navy-950); font-size: var(--text-lg); font-weight: 800; }

/* ===================== Home: highlights, voices, CTA ===================== */

.feature-list { display: grid; gap: var(--space-3); }
.feature { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.feature__num { display: none; }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sun-soft); color: var(--navy-900); }
:root[data-theme='dark'] .feature__icon { background: var(--accent-soft); color: var(--sun); }
.feature__title { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.feature p { color: var(--muted); font-size: var(--text-sm); }
@media (min-width: 1100px) { .feature-list { grid-template-columns: 1fr 1fr; } }

/* Parent feedback slider: no visible scrollbar; the arrow buttons in the section head, swipe, or the
 * arrow keys move it. Soft fades on the edges show there is more to the side. */
.voices-wrap { position: relative; }
.voices-wrap::before, .voices-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 1; width: 48px; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.voices-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.voices-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.voices-wrap.is-at-start::before, .voices-wrap.is-at-end::after { opacity: 0; }
.voices { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 340px); gap: var(--space-4); overflow-x: auto; padding: 6px 2px 24px; margin-bottom: -18px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.voices::-webkit-scrollbar { display: none; }
.voices:focus-visible { outline-offset: 6px; }
.voice { scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.voice:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.voice__icon { color: var(--logo-teal); }
:root[data-theme='dark'] .voice__icon { color: var(--sun); }
.voice blockquote { margin: 0; flex: 1; font-size: var(--text-md); font-weight: 500; color: var(--ink); }
.voice figcaption { display: grid; gap: 1px; padding-top: var(--space-4); font-size: var(--text-sm); box-shadow: 0 -1px 0 var(--line); }
.voice figcaption strong { font-weight: 700; color: var(--ink); }
.voice figcaption span { font-size: var(--text-xs); color: var(--muted); }

.cta-band { position: relative; display: grid; min-height: 420px; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); border-radius: var(--radius-xl); overflow: hidden; color: #fff; isolation: isolate; align-items: end; }
.cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 18, 56, 0.92) 0%, rgba(14, 18, 56, 0.65) 55%, rgba(14, 18, 56, 0.25) 100%); }
.cta-band__copy { max-width: 620px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* ===================== Inner page banners ===================== */

.page-banner {
  position: relative;
  margin: var(--frame);
  padding-block: calc(var(--nav-h) + 90px) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  isolation: isolate;
}
.page-banner__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 14s var(--ease) both; }
.page-banner.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--banner) center / cover no-repeat; animation: hero-zoom 14s var(--ease) both; }
.page-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 18, 56, 0.92) 0%, rgba(14, 18, 56, 0.7) 50%, rgba(14, 18, 56, 0.3) 100%), linear-gradient(180deg, rgba(14, 18, 56, 0.5) 0%, rgba(14, 18, 56, 0) 30%); }
.page-banner .page-title { color: #fff; font-size: var(--text-hero); letter-spacing: -0.035em; }
.page-banner .page-lead { color: rgba(255, 255, 255, 0.82); }
.page-banner .eyebrow { color: rgba(255, 255, 255, 0.75); }
.page-banner .eyebrow::before { background: var(--sun); }
.page-banner .btn--primary { background: var(--sun); color: var(--navy-950) !important; }
.page-banner .btn--secondary { background: rgba(255, 255, 255, 0.14); color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

/* ===================== About ===================== */

/* Hero: photo, then the word KUNDAN, then the cut-out building on top. Both photos are 1672 x 941 and
 * share one coordinate system, so the frame keeps their aspect ratio and everything inside is sized
 * in container-width units (cqw) to stay lined up at every width. */
/* Wide screens: a full-window rounded frame like the home hero, with the header floating over the sky.
 * Both photos fill it with object-fit: cover, anchored at the top. The word is placed from the frame's
 * own size (container units), so it sits just above the roofline at any window shape: the photo's
 * displayed height is max(frame height, frame width x 941/1672), and the side roofs are at about 33% of it.
 * Narrow screens: the frame keeps the photo's proportions below the header and the copy follows it. */
.about-hero { position: relative; }
.about-hero__frame {
  position: relative;
  container-type: size;
  margin: var(--frame);
  height: min(900px, calc(100vh - var(--frame) * 2));
  min-height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #9cc7ec;
  isolation: isolate;
  --word: 14.5cqw;
  --stage-h: max(100cqh, calc(100cqw * 941 / 1672));
}
.about-hero__bg, .about-hero__fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.about-hero__bg { z-index: 0; }
.about-hero__fg { z-index: 2; pointer-events: none; }
.about-hero__word {
  position: absolute; z-index: 1; left: 0; right: 0;
  top: max(calc(var(--nav-h) + 26px), calc(var(--stage-h) * 0.33 - var(--word) * 0.8));
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--word); font-weight: 800; line-height: 0.8; letter-spacing: -0.035em;
  color: #fff;
  translate: 0 var(--about-shift, 0px);
  user-select: none;
}
.about-hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); background: linear-gradient(0deg, rgba(14, 18, 56, 0.88) 0%, rgba(14, 18, 56, 0.55) 22%, rgba(14, 18, 56, 0) 46%); }
.about-hero__chip { position: absolute; z-index: 4; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(14, 18, 56, 0.5); backdrop-filter: blur(8px); color: #fff; font-size: var(--text-xs); font-weight: 600; }
.about-hero__chip [data-icon] { color: var(--sun); }
.about-hero__copy { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(var(--frame) + clamp(28px, 4vw, 56px)); display: grid; gap: var(--space-4) var(--space-7); align-items: end; color: #fff; }
@media (min-width: 900px) { .about-hero__copy { grid-template-columns: minmax(260px, 1fr) 1.4fr; } }
.about-hero__copy .page-title { margin-bottom: 0; font-size: var(--text-hero); letter-spacing: -0.035em; color: #fff; }
.about-hero__copy .page-lead { margin: 0; color: rgba(255, 255, 255, 0.86); }
.about-hero__copy .eyebrow { color: rgba(255, 255, 255, 0.78); }
.about-hero__copy .eyebrow::before { background: var(--sun); }
@media (max-width: 899px) {
  .about-hero__frame { height: auto; min-height: 0; aspect-ratio: 1672 / 941; margin-top: calc(var(--nav-h) + 26px); --word: 18.5cqw; }
  .about-hero__word { top: calc(var(--stage-h) * 0.33 - var(--word) * 0.8); }
  .about-hero__shade { background: none; }
  .about-hero__chip { display: none; }
  .about-hero__copy { position: static; padding-top: var(--space-6); color: inherit; }
  .about-hero__copy .page-title { color: var(--ink); }
  .about-hero__copy .page-lead { color: var(--muted); }
  .about-hero__copy .eyebrow { color: var(--muted); }
  .about-hero__copy .eyebrow::before { background: var(--logo-teal); }
}
@media (max-width: 640px) { .about-hero__frame { border-radius: var(--radius-lg); } }
/* Entrance: the word rises from behind the building. */
.page.is-entering .about-hero__word { animation: word-rise 1300ms var(--ease-out) both; animation-delay: var(--enter-delay, 120ms); }
.page.is-entering .about-hero__copy > * { animation: rise-in 760ms var(--ease-out) both; animation-delay: calc(var(--enter-delay, 120ms) + 260ms); }
.page.is-entering .about-hero__copy > :last-child { animation-delay: calc(var(--enter-delay, 120ms) + 340ms); }
@keyframes word-rise { from { transform: translateY(42%); opacity: 0.2; } to { transform: none; opacity: 1; } }

/* Leadership */
.principal { display: grid; gap: var(--space-5); align-items: center; padding: var(--space-4); margin-bottom: var(--space-6); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
@media (min-width: 860px) { .principal { grid-template-columns: minmax(280px, 1fr) 1.2fr; gap: var(--space-7); padding: var(--space-4) var(--space-7) var(--space-4) var(--space-4); } }
.principal__photo { width: 100%; height: 100%; max-height: 420px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius-lg); background: var(--surface-3); }
.principal__name { font-size: var(--text-2xl); font-weight: 600; margin-bottom: var(--space-2); }
.principal__message { margin: var(--space-4) 0 var(--space-2); padding-left: var(--space-4); box-shadow: inset 3px 0 0 var(--sun); font-size: var(--text-lg); line-height: 1.55; color: var(--ink); }
.leaders-grid { display: grid; gap: var(--space-5) var(--space-7); }
@media (min-width: 900px) { .leaders-grid { grid-template-columns: 1fr 1fr; } }
.leaders-grid .list-title { margin-top: 0; }
.person__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; background: var(--surface-3); }
.list-title--big { margin-top: var(--space-7); font-size: var(--text-md); color: var(--ink); }
.trustees { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .trustees { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trustees { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.trustee { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.trustee:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.trustee__photo { display: block; width: 100%; aspect-ratio: 10 / 11; height: auto; object-fit: cover; object-position: 50% 30%; background: var(--surface-3); }
.trustee__body { padding: var(--space-3) var(--space-4) var(--space-4); }
.trustee__name { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 800; letter-spacing: -0.01em; }
.trustee__role { margin: 2px 0 0; font-size: var(--text-xs); font-weight: 700; color: var(--logo-teal); }
:root[data-theme='dark'] .trustee__role { color: var(--sun); }

/* Privacy and terms */
.legal h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-lg); }
.legal h3:first-child { margin-top: 0; }
.legal p { color: var(--text); }
.author-card { display: flex; gap: var(--space-5); align-items: flex-start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.author-card h3 { margin-bottom: var(--space-2); }

/* Campus film in a framed screen: a soft bezel, an outer shadow and an inner shadow over the picture. */
.film__frame {
  padding: clamp(8px, 0.6vw + 4px, 14px);
  border-radius: calc(var(--radius-xl) + 6px);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 1px var(--line),
    0 30px 60px -28px rgba(20, 26, 77, 0.45),
    0 12px 24px -16px rgba(20, 26, 77, 0.3);
}
:root[data-theme='dark'] .film__frame { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 1px var(--line), 0 30px 60px -28px rgba(0, 0, 0, 0.8); }
.film__screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; background: var(--navy-950); isolation: isolate; }
.film__poster, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__video { opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.film.is-playing .film__video, .film.has-video .film__video { opacity: 1; }
.film__screen::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 2px 18px rgba(8, 10, 36, 0.35), inset 0 -80px 90px -60px rgba(8, 10, 36, 0.7);
}
.film__chip { position: absolute; z-index: 2; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(14, 18, 56, 0.45); backdrop-filter: blur(8px); color: #fff; font-size: var(--text-xs); font-weight: 600; }
.film__chip [data-icon] { color: var(--sun); }
.film__offline { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; border-radius: var(--radius-pill); background: rgba(14, 18, 56, 0.6); backdrop-filter: blur(8px); color: #fff; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.film__controls { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.film__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; min-width: 42px; justify-content: center; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); color: #fff; font-size: var(--text-xs); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); transition: background var(--dur-fast) var(--ease); }
.film__btn:hover { background: rgba(255, 255, 255, 0.28); }
.film__btn[aria-pressed='true'] { background: var(--sun); color: var(--navy-950); box-shadow: none; }
.film__icon-play { display: none !important; }
.film.is-paused .film__icon-play { display: inline-flex !important; }
.film.is-paused .film__icon-pause { display: none !important; }
.film.is-offline .film__controls { display: none; }
@media (max-width: 560px) { .film__btn-label { display: none; } .film__controls { right: 10px; bottom: 10px; } .film__chip { top: 10px; left: 10px; } }

.legacy { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .legacy { grid-template-columns: minmax(260px, 1fr) 2fr; } .legacy__aside { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; } }
.founder { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); max-width: 320px; }
.founder img { width: 100%; height: auto; border-radius: var(--radius); background: var(--surface-3); }
.founder figcaption { display: grid; gap: 2px; margin-top: var(--space-3); font-size: var(--text-sm); }
.founder figcaption span { color: var(--muted); font-size: var(--text-xs); }

.timeline { position: relative; display: grid; }
.timeline__item { display: grid; grid-template-columns: 88px 1fr; gap: var(--space-5); padding-bottom: var(--space-6); position: relative; }
.timeline__item::before { content: ''; position: absolute; left: 100px; top: 14px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline__item:last-child::before { display: none; }
.timeline__item::after { content: ''; position: absolute; left: 94px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--navy-900); }
.timeline__year { font-size: var(--text-xl); font-weight: 800; color: var(--ink); text-align: right; padding-right: var(--space-3); line-height: 1.2; letter-spacing: -0.02em; }
.timeline__body { padding-left: var(--space-5); }
.timeline__body h3 { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.timeline__body p { color: var(--muted); max-width: 62ch; }
.timeline--compact .timeline__item { padding-bottom: var(--space-5); }
@media (max-width: 520px) {
  .timeline__item { grid-template-columns: 56px 1fr; gap: var(--space-3); }
  .timeline__item::before { left: 66px; }
  .timeline__item::after { left: 60px; }
  .timeline__year { font-size: var(--text-md); }
}

.motto-band { text-align: center; }
.motto-band__label { color: var(--band-muted); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.motto-band__words { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); margin: var(--space-4) 0; font-family: var(--font-serif); font-size: clamp(3rem, 1.5rem + 6vw, 7rem); font-style: italic; line-height: 1; }
.motto-band__words span:nth-child(2) { color: var(--sun); }
.motto-band__note { color: var(--band-muted); }

.people { display: grid; gap: var(--space-3); }
.person { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.person__role { margin-bottom: 2px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--logo-teal); }
:root[data-theme='dark'] .person__role { color: var(--sun); }
.person__name { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.person__detail { color: var(--muted); font-size: var(--text-sm); }
.people--compact { gap: var(--space-2); }
@media (min-width: 640px) { .people--compact { grid-template-columns: 1fr 1fr; } }
.person--compact { padding: var(--space-4); }
.person--compact .person__name { font-size: var(--text-md); margin-bottom: 2px; }

.fact-table { margin: 0; display: grid; gap: 0 var(--space-7); }
@media (min-width: 760px) { .fact-table { grid-template-columns: 1fr 1fr; } }
.fact-table__row { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: var(--space-4); padding: var(--space-4) 0; box-shadow: 0 1px 0 var(--line); }
.fact-table dt { font-size: var(--text-sm); color: var(--muted); }
.fact-table dd { margin: 0; font-weight: 600; }

/* ===================== Academics ===================== */

.stage-track { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
@media (min-width: 760px) { .stage-track { grid-template-columns: repeat(5, 1fr); } }
.stage-tab { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'icon label' 'icon classes'; column-gap: var(--space-3); text-align: left; align-items: center; padding: var(--space-4); border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: background var(--dur-fast), transform var(--dur-fast); }
@media (min-width: 760px) { .stage-tab { grid-template-columns: 1fr; grid-template-areas: 'icon' 'label' 'classes'; row-gap: var(--space-2); padding: var(--space-5); } }
.stage-tab:hover { transform: translateY(-2px); }
.stage-tab__icon { grid-area: icon; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.stage-tab__label { grid-area: label; font-weight: 800; }
.stage-tab__classes { grid-area: classes; font-size: var(--text-xs); color: var(--muted); }
.stage-tab[aria-selected='true'] { background: var(--navy-900); box-shadow: none; }
.stage-tab[aria-selected='true'] .stage-tab__label { color: #fff; }
.stage-tab[aria-selected='true'] .stage-tab__classes { color: var(--band-muted); }
.stage-tab[aria-selected='true'] .stage-tab__icon { background: var(--sun); color: var(--navy-950); }
.stage-panel { max-width: 860px; }
.stage-panel__summary { font-size: var(--text-lg); margin-bottom: var(--space-4); }

.stream-panel { display: grid; gap: var(--space-5); padding: var(--space-6); background: var(--surface); border-radius: var(--radius-lg); }
@media (min-width: 640px) { .stream-panel { grid-template-columns: auto 1fr; } }
.stream-panel__icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px; background: var(--sun); color: var(--navy-950); }
.stream-panel__title { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.stream-panel .tag-list { margin-bottom: var(--space-4); }

.index-list { display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .index-list:not(.split .index-list), .index-list--two { grid-template-columns: 1fr 1fr; } }
.index-item { display: flex; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.index-item__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--sun-soft); color: var(--navy-900); }
:root[data-theme='dark'] .index-item__icon { background: var(--accent-soft); color: var(--sun); }
.index-item__title { font-family: var(--font-body); font-size: var(--text-md); font-weight: 800; margin-bottom: 4px; }
.index-item p { color: var(--muted); font-size: var(--text-sm); }

/* ===================== Campus ===================== */

.tour__stage { border-radius: var(--radius-xl); outline-offset: 4px; }
.tour__slide { position: relative; display: block; }
.tour__slide .media { aspect-ratio: 16 / 8; border-radius: var(--radius-xl); }
@media (max-width: 760px) { .tour__slide .media { aspect-ratio: 4 / 3; } }
.tour__caption { position: absolute; left: var(--space-5); bottom: var(--space-5); right: var(--space-5); z-index: 2; max-width: 460px; padding: var(--space-5); border-radius: var(--radius-lg); background: rgba(14, 18, 56, 0.62); backdrop-filter: blur(14px); color: #fff; }
@media (max-width: 760px) { .tour__caption { position: static; max-width: none; margin-top: var(--space-3); background: var(--navy-900); } }
.tour__slide.is-entering .media img { animation: tour-in 900ms var(--ease-out); }
.tour__slide.is-entering .tour__caption { animation: fade-in var(--dur-slow) var(--ease) both; }
@keyframes tour-in { from { transform: scale(1.06); opacity: 0.6; } to { transform: none; opacity: 1; } }
.tour__caption h3 { font-size: var(--text-2xl); margin: var(--space-2) 0 var(--space-3); color: #fff; }
.tour__caption p { color: rgba(255, 255, 255, 0.82); }
.tour__count { font-size: var(--text-xs); color: var(--sun); font-weight: 800; letter-spacing: 0.08em; }
.tour__controls { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.tour__controls > .icon-btn { box-shadow: inset 0 0 0 1px var(--line-strong); flex: none; }
.tour__stops { display: flex; gap: var(--space-2); overflow-x: auto; flex: 1; padding: 4px; }
.tour__stop { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 38px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.tour__stop[aria-current='step'] { background: var(--navy-900); color: #fff; box-shadow: none; }
:root[data-theme='dark'] .tour__stop[aria-current='step'] { background: var(--sun); color: var(--navy-950); }

.mini-facts { margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.mini-facts div { padding: var(--space-4); border-radius: var(--radius); background: var(--surface); }
.mini-facts dt { font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.mini-facts dd { margin: 0; font-size: var(--text-xl); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }

.club-list { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.club { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2); background: var(--surface); border-radius: var(--radius-pill); box-shadow: 0 0 0 1px var(--line); }
.club__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sun-soft); color: var(--navy-900); flex: none; }
:root[data-theme='dark'] .club__icon { background: var(--accent-soft); color: var(--sun); }
.club__name { font-family: var(--font-body); font-size: var(--text-md); font-weight: 700; }
.club--detail { flex-basis: 100%; border-radius: var(--radius-lg); align-items: flex-start; padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4); }
@media (min-width: 900px) { .club--detail { flex-basis: calc(50% - var(--space-3) / 2); } }
.club--detail p { color: var(--muted); font-size: var(--text-sm); margin-top: 4px; }

.houses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.house { --house: var(--house-beas); --on-house: #fff;
  position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 200px; padding: var(--space-5);
  border-radius: var(--radius-lg); background: var(--house); color: var(--on-house); overflow: hidden; isolation: isolate; }
.house--a { --house: var(--house-beas); }
.house--b { --house: var(--house-ganga); }
.house--c { --house: var(--house-ravi); }
.house--d { --house: var(--house-yamuna); --on-house: var(--navy-950); }
/* The logo sits on the house colour, large and partly off the card's corner. */
.house__logo { position: absolute; z-index: -1; right: -18px; top: -14px; width: clamp(104px, 9vw, 132px); height: auto; transform: rotate(-8deg); transition: transform var(--dur-slow) var(--ease); }
.house:hover .house__logo { transform: rotate(0deg) scale(1.04); }
.house__rank { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.house__name { margin: var(--space-1, 4px) 0 0; font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; color: inherit; }
.house__colour { font-size: var(--text-sm); font-weight: 600; opacity: 0.85; }
.house__points { margin-top: auto; padding-top: var(--space-4); font-size: var(--text-sm); font-weight: 600; }
.house__points strong { font-size: var(--text-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.house__bar { height: 8px; margin-top: var(--space-2); border-radius: 4px; background: color-mix(in srgb, var(--on-house) 22%, transparent); overflow: hidden; }
.house__fill { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--on-house); transition: width var(--dur-slow) var(--ease); }
@media (max-width: 420px) { .houses { grid-template-columns: 1fr; } .house { min-height: 0; } }
.house__swatch { display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 4px; background: var(--house); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-flow: dense; gap: var(--space-3); }
.gallery__item:nth-child(5n + 1) { grid-column: span 2; }
@media (max-width: 520px) { .gallery__item:nth-child(5n + 1) { grid-column: auto; } }
.gallery__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: var(--radius-lg); overflow: hidden; }
.gallery__btn .media { border-radius: var(--radius-lg); aspect-ratio: auto; height: 240px; }
.gallery__btn .media img { transition: transform 1s var(--ease-out); }
.gallery__btn:hover .media img { transform: scale(1.06); }
.gallery__caption { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 4px 12px; border-radius: var(--radius-pill); background: rgba(14, 18, 56, 0.7); backdrop-filter: blur(6px); color: #fff; font-size: var(--text-xs); font-weight: 600; max-width: calc(100% - 20px); }

/* ===================== Achievements ===================== */

.topper-rows { display: grid; gap: var(--space-5); }
.topper-row { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .topper-row { grid-template-columns: 140px 1fr; align-items: center; } }
.topper-row__year { font-size: var(--text-2xl); }
.topper-row__cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flip { position: relative; height: 210px; padding: 0; border: 0; background: none; perspective: 1000px; text-align: left; border-radius: var(--radius-lg); }
.flip__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform var(--dur-slow) var(--ease-out); }
.flip[aria-pressed='true'] .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__face--front { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.flip__face--back { background: var(--navy-900); color: #fff; transform: rotateY(180deg); justify-content: center; }
.flip__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.flip__face--back .flip__label { color: var(--band-muted); }
.flip__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--sun-600); }
.flip__name { margin-top: auto; font-size: var(--text-xl); font-weight: 800; color: var(--ink); }
.flip__hint { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--muted); }
.flip__score { font-size: 4.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--sun); }
.flip__score small { font-size: 0.45em; }
:root[data-motion='reduced'] .flip[aria-pressed='true'] .flip__face--front { visibility: hidden; }

.wins { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .wins { grid-template-columns: 1fr 1fr; } }
.win { display: flex; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--surface); }
.win__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); color: var(--navy-950); }
.win__cat { margin: 0; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.win__name { font-family: var(--font-body); font-size: var(--text-md); font-weight: 800; margin: 2px 0 4px; }
.win p { color: var(--muted); font-size: var(--text-sm); }

/* ===================== Admissions ===================== */

.stepper { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .stepper { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.step__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: var(--sun); font-weight: 800; font-size: var(--text-sm); }
.step__icon { position: absolute; top: var(--space-5); right: var(--space-5); color: var(--muted); }
.step__title { font-size: var(--text-lg); margin-top: var(--space-3); }
.step p { color: var(--muted); font-size: var(--text-sm); }
.rule-list { display: grid; gap: var(--space-2); margin-top: var(--space-6); }
.rule-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.rule-list svg { color: var(--logo-teal); margin-top: 2px; }

.age-check .btn { margin-top: var(--space-2); }
.age-check__result { margin-top: var(--space-5); }
.result { display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius); background: var(--surface-2); }
.result > svg { flex: none; }
.result--good { background: var(--sun-soft); color: var(--navy-950); }
.result--good a { color: var(--navy-950); }
.result--warn { background: var(--peach); }
.result__title { font-weight: 800; margin-bottom: 4px; }
:root[data-theme='dark'] .result--good { background: var(--accent-soft); color: var(--text); }

.checklist { display: grid; padding: var(--space-2) var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.checklist li + li { box-shadow: 0 -1px 0 var(--line); }
.checklist-progress { display: flex; align-items: center; font-size: var(--text-sm); font-weight: 700; margin: var(--space-4) 0; }

.fee-calc { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 900px) { .fee-calc { grid-template-columns: minmax(300px, 1fr) 1.3fr; } }
.fee-calc__form .switch { margin-bottom: var(--space-4); }
.fee-calc__result { padding: clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); }
.fee-total { margin: calc(clamp(1.25rem, 1rem + 1vw, 2rem) * -1) calc(clamp(1.25rem, 1rem + 1vw, 2rem) * -1) var(--space-4); padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--navy-900); color: #fff; }
.fee-total__label { font-size: var(--text-sm); color: var(--band-muted); margin-bottom: var(--space-2); }
.fee-total__value { margin: 0; font-size: clamp(2.6rem, 1.8rem + 2.5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; color: var(--sun); font-variant-numeric: tabular-nums; }
.fee-total__sub { font-size: var(--text-sm); color: var(--band-muted); margin-top: var(--space-2); }
.fee-breakdown { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: var(--text-sm); }
.fee-breakdown th, .fee-breakdown td { padding: 11px 0; text-align: left; vertical-align: top; box-shadow: 0 1px 0 var(--line); }
.fee-breakdown td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; padding-left: var(--space-4); }
.fee-breakdown th { font-weight: 500; }
.fee-row__detail { display: block; font-size: var(--text-xs); color: var(--muted); }
.fee-row--discount th, .fee-row--discount td { color: var(--good); }
.fee-breakdown tfoot th { font-weight: 800; }
.fee-breakdown tfoot tr:first-child th, .fee-breakdown tfoot tr:first-child td { font-size: var(--text-md); }
.enquiry-form .btn { margin-top: var(--space-2); }

/* ===================== Registration form (#register) ===================== */

.page--register { padding: calc(var(--nav-h) + 48px) 0 var(--section-y); }
.reg { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 1000px) { .reg { grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-6); } }

/* Navy side panel with the school, the steps and the office's contact details */
.reg-aside { display: grid; gap: var(--space-5); padding: var(--space-5); border-radius: var(--radius-xl); background: var(--band-bg); color: var(--band-text); }
@media (min-width: 1000px) { .reg-aside { position: sticky; top: calc(var(--nav-h) + 40px); } }
.reg-aside__brand { display: flex; align-items: center; gap: var(--space-3); }
.reg-aside__brand img { flex: none; border-radius: 50%; background: #fff; padding: 2px; }
.reg-aside__school { margin: 0; font-weight: 800; line-height: 1.25; color: #fff; }
.reg-aside__form { margin: 2px 0 0; font-size: var(--text-xs); color: var(--sun); font-weight: 700; }
.reg-steps { display: grid; gap: 2px; counter-reset: none; }
.reg-steps__btn { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius); background: transparent; color: inherit; text-align: left; }
button.reg-steps__btn:hover { background: rgba(255, 255, 255, 0.07); }
.reg-steps__num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); font-size: var(--text-xs); font-weight: 800; }
.reg-steps__label { display: grid; line-height: 1.25; min-width: 0; }
.reg-steps__label strong { font-size: var(--text-sm); }
.reg-steps__label small { font-size: 11px; color: var(--band-muted); }
.reg-steps__item.is-current .reg-steps__btn { background: rgba(255, 255, 255, 0.1); }
.reg-steps__item.is-current .reg-steps__num { background: var(--sun); color: var(--navy-950); box-shadow: none; }
.reg-steps__item.is-done .reg-steps__num { background: rgba(255, 212, 59, 0.18); color: var(--sun); box-shadow: none; }
.reg-steps__item.is-todo { opacity: 0.6; }
.reg-aside__contact { display: grid; gap: var(--space-2); padding-top: var(--space-4); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12); color: var(--band-muted); }
.reg-aside__contact li { display: flex; gap: var(--space-2); align-items: flex-start; }
.reg-aside__contact svg { flex: none; margin-top: 2px; color: var(--sun); }
.reg-aside__contact a { color: #fff; }
@media (max-width: 999px) {
  .reg-aside { padding: var(--space-4); gap: var(--space-3); }
  .reg-steps { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .reg-steps::-webkit-scrollbar { display: none; }
  .reg-steps__item { flex: none; }
  .reg-steps__label small { display: none; }
  .reg-aside__contact { display: none; }
}

.reg-main { min-width: 0; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.reg-head { margin-bottom: var(--space-5); }
.reg-head .eyebrow { margin-bottom: var(--space-2); }
.reg-head__title { font-size: var(--text-2xl); font-weight: 600; outline: none; }
.reg-progress { height: 6px; margin-top: var(--space-4); border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.reg-progress span { display: block; height: 100%; width: var(--p); min-width: 6px; border-radius: 3px; background: var(--sun-600); transition: width var(--dur-slow) var(--ease-out); }
.reg-saved { display: flex; align-items: center; gap: 6px; margin: var(--space-2) 0 0; color: var(--muted); }
.reg-saved svg { color: var(--good); }

.reg-intro__lead { max-width: 70ch; color: var(--muted); }
.reg-cards { display: grid; gap: var(--space-3); margin: var(--space-5) 0; }
@media (min-width: 760px) { .reg-cards { grid-template-columns: 1fr 1fr; } }
.reg-card { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-2); }
.reg-card h2 { margin: var(--space-3) 0 var(--space-3); font-size: var(--text-md); font-weight: 700; }
.reg-card .bullet-list li { font-size: var(--text-sm); color: var(--text); }
.reg-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sun-soft); color: var(--navy-900); }
:root[data-theme='dark'] .reg-card__icon { background: var(--accent-soft); color: var(--sun); }

.reg-group { padding: var(--space-5) 0; }
.reg-group + .reg-group { box-shadow: 0 -1px 0 var(--line); }
.reg-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); }
.reg-group__title { font-size: var(--text-lg); font-weight: 700; }
.form-grid--3 { margin-bottom: 0; }
@media (min-width: 1100px) { .form-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.req { color: var(--bad); }
.field--pills { margin: 0; padding: 0; border: 0; min-width: 0; }
.field--pills legend { margin-bottom: 6px; padding: 0; font-size: var(--text-sm); font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-sm); font-weight: 600; transition: background var(--dur-fast) var(--ease); }
.pill:hover span { box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill input:checked + span { background: var(--navy-900); color: #fff; box-shadow: none; }
:root[data-theme='dark'] .pill input:checked + span { background: var(--sun); color: var(--navy-950); }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.field--check { align-self: end; }
.field--check .check { padding: var(--space-2) 0; }
.reg-age { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--text-xs); font-weight: 600; }
.reg-age:empty { display: none; }
.reg-age.is-good { color: var(--good); }
.reg-age.is-warn { color: var(--warn); }

/* File boxes */
.field__label { font-size: var(--text-sm); font-weight: 700; }
.dropzone { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 64px; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); cursor: pointer; transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.dropzone:hover, .dropzone.is-over { background: var(--sun-soft); box-shadow: inset 0 0 0 1.5px var(--sun-600); }
:root[data-theme='dark'] .dropzone:hover, :root[data-theme='dark'] .dropzone.is-over { background: var(--accent-soft); }
.dropzone.has-file { box-shadow: inset 0 0 0 1.5px var(--good); }
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__input:focus-visible ~ .dropzone__text { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.dropzone__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--navy-900); }
:root[data-theme='dark'] .dropzone__icon { color: var(--sun); }
.dropzone.has-file .dropzone__icon { color: var(--good); }
.dropzone__thumb { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.dropzone__text { display: grid; gap: 1px; min-width: 0; font-size: var(--text-sm); line-height: 1.35; }
.dropzone__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone__text small { font-size: var(--text-xs); color: var(--muted); }
.dropzone__remove { justify-self: start; margin-top: 2px; }
.field--file.has-error .dropzone { box-shadow: inset 0 0 0 2px var(--bad); }

.reg-declaration { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 1.2rem); border-radius: var(--radius); background: var(--surface-2); font-size: var(--text-sm); }
.reg-declaration li { list-style: decimal; }

.reg-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-5); box-shadow: 0 -1px 0 var(--line); }
.reg-demo { display: flex; gap: 6px; align-items: flex-start; margin: var(--space-4) 0 0; }
.reg-demo svg { flex: none; margin-top: 3px; }

/* Review */
.reg-sum { padding: var(--space-4) 0; }
.reg-sum + .reg-sum { box-shadow: 0 -1px 0 var(--line); }
.reg-sum__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.reg-sum__head h2 { font-size: var(--text-md); font-weight: 700; margin-right: auto; }
.reg-sum__head .text-link { margin: 0; }
.reg-sum__thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.reg-dl { display: grid; gap: var(--space-2) var(--space-5); margin: 0; }
@media (min-width: 760px) { .reg-dl { grid-template-columns: 1fr 1fr; } }
.reg-dl div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: var(--space-3); font-size: var(--text-sm); }
.reg-dl dt { color: var(--muted); }
.reg-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.reg-files { display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.reg-files li { display: flex; gap: var(--space-2); align-items: flex-start; }
.reg-files svg { flex: none; margin-top: 2px; color: var(--good); }

/* Sent */
.reg-done__hero { display: grid; justify-items: start; gap: var(--space-2); padding-bottom: var(--space-5); }
.reg-done__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--space-2); border-radius: 50%; background: var(--good-soft); color: var(--good); }
.reg-done__no { display: inline-flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0; padding: 8px 8px 8px 18px; border-radius: var(--radius-pill); background: var(--sun); color: var(--navy-950); font-size: var(--text-xl); font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.reg-done__no .icon-btn { color: var(--navy-950); }
.reg-done__no .icon-btn:hover { background: rgba(20, 26, 77, 0.1); }
.reg-next { display: grid; gap: var(--space-2); padding-left: 1.2rem; font-size: var(--text-sm); }
.reg-next li { list-style: decimal; }
.reg-record .reg-sum:first-child { padding-top: 0; }

/* ===================== Notices ===================== */

.notices-layout { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1000px) { .notices-layout { grid-template-columns: 1.3fr 1fr; } }
.notice-list { display: grid; gap: var(--space-3); }
.notice { display: flex; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.notice__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.notice--pinned { box-shadow: inset 0 0 0 2px var(--sun-600); }
.notice--pinned .notice__icon { background: var(--sun); color: var(--navy-950); }
.notice__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.notice__title { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--space-2); }
.notice__body p { color: var(--muted); font-size: var(--text-sm); }

.calendar { padding: var(--space-5); background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); margin-bottom: var(--space-3); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.cal__head .icon-btn { box-shadow: inset 0 0 0 1px var(--line-strong); }
.cal__title { font-size: var(--text-lg); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: var(--text-xs); font-weight: 700; color: var(--muted); padding: 8px 0; background: var(--surface-2); }
.cal__dow:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.cal__dow:nth-child(7) { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.cal__cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.cal__cell:not(.cal__cell--empty):hover { background: var(--surface-2); }
.cal__cell.is-today { background: var(--sun); color: var(--navy-950); font-weight: 800; }
.cal__cell.is-selected { background: var(--navy-900); color: #fff; }
.cal__marks { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
.cal__marks i { width: 4px; height: 4px; border-radius: 50%; background: var(--logo-teal); }
.cal__cell.is-selected .cal__marks i, .cal__cell.is-today .cal__marks i { background: currentColor; }
.cal__list { margin-top: var(--space-5); }
.cal__list-title { display: flex; flex-wrap: wrap; align-items: baseline; font-weight: 800; font-size: var(--text-sm); }
.cal__list li { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: baseline; padding: var(--space-2) 0; box-shadow: 0 1px 0 var(--line); font-size: var(--text-sm); }
.cal__list time { min-width: 52px; font-weight: 800; color: var(--logo-teal); }
:root[data-theme='dark'] .cal__list time { color: var(--sun); }

/* ===================== Contact ===================== */

.contact-layout { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1fr 1.2fr; } }
.contact-details { display: grid; gap: var(--space-3); }
.contact-block { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.contact-block .list-title { margin-top: 0; }
.map-frame { position: relative; min-height: 460px; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-6); text-align: center; color: var(--muted); }
.map-frame__fallback strong { color: var(--ink); }
.map-frame.has-map .map-frame__fallback { visibility: hidden; }

/* ===================== Footer ===================== */

.site-footer { margin: var(--frame); border-radius: var(--radius-xl); background: var(--navy-950); color: #e8eaf7; padding-top: var(--space-8); }
.site-footer a { color: #e8eaf7; }
.site-footer__inner { display: grid; gap: var(--space-6); padding-bottom: var(--space-7); }
@media (min-width: 640px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } .site-footer__brand { grid-column: auto; } }
.site-footer__links--gap { margin-top: var(--space-5); }
.site-footer__base a { color: inherit; }
.site-footer__logo { width: 64px; height: 64px; margin-bottom: var(--space-4); background: #fff; border-radius: 50%; padding: 4px; }
.site-footer__name { font-size: var(--text-xl); font-weight: 800; margin-bottom: 2px; color: #fff; }
.site-footer__motto { color: var(--sun); font-style: italic; font-family: var(--font-serif); font-size: var(--text-lg); }
.site-footer__brand .small { color: #aab0d6; max-width: 40ch; }
.site-footer__heading { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 800; color: #aab0d6; margin-bottom: var(--space-3); letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer__links li { margin-bottom: var(--space-2); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); padding-block: var(--space-5) calc(var(--space-5) + 72px); color: #aab0d6; box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.1); }
.social { display: flex; gap: var(--space-2); }
.social__link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff !important; transition: background var(--dur-fast), color var(--dur-fast); }
.social__link:hover { background: var(--sun); color: var(--navy-950) !important; }
.social--light .social__link { background: var(--surface); color: var(--ink) !important; box-shadow: 0 0 0 1px var(--line); }

/* ===================== Print ===================== */

@media print {
  .site-header, .site-footer, .chat-launcher, .chat, .toasts, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
  .page[hidden] { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  :root.print-docs main > .page:not([data-route='admissions']) { display: none !important; }
  :root.print-register .reg-aside, :root.print-register .reg-actions, :root.print-register .reg-demo { display: none !important; }
  :root.print-register .reg { display: block; }
  :root.print-register .reg-main { box-shadow: none; padding: 0; }
  :root.print-docs [data-route='admissions'] > *:not(#admissions-docs) { display: none !important; }
}

/* ===================== News and stories ===================== */

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); margin: 0 0 var(--space-3); font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.post-meta time { font-variant-numeric: tabular-nums; }
.post-meta > :not(:first-child)::before { content: ''; display: inline-block; width: 4px; height: 4px; margin-right: var(--space-3); border-radius: 50%; background: currentColor; opacity: 0.5; vertical-align: middle; }
.post-tag { display: inline-flex; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--sun); color: var(--navy-950); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.68rem; }
.post-tag--celebrations { background: #ffd9c7; }
.post-tag--exchange { background: #cfe8ff; }

.post-card { position: relative; display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.post-card__media { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-3); aspect-ratio: 4 / 3; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__title { font-size: var(--text-lg); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.post-card__title a { color: inherit; text-decoration: none; }
/* The whole card is one link target; the title keeps the real link for screen readers. */
.post-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.post-card__title a:focus-visible { outline: none; }
.post-card:has(.post-card__title a:focus-visible) { outline: 3px solid var(--sun-600); outline-offset: 6px; border-radius: var(--radius-lg); }
.post-card .pill-link { justify-self: start; margin-top: var(--space-2); background: var(--surface-2); }
.section--tint .post-card .pill-link { background: var(--surface); }
.post-card__lede { color: var(--muted); max-width: 52ch; }

.post-card--featured { margin-bottom: 3.5rem; }
@media (min-width: 900px) {
  .post-card--featured { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
  .post-card--featured .post-card__media { aspect-ratio: 5 / 4; }
  .post-card--featured .post-card__title { font-size: var(--text-2xl); font-weight: 600; }
}
.post-list { display: grid; gap: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); }
@media (min-width: 700px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-index__more { margin-top: 3rem; }

.post-strip { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .post-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .post-strip:not(.post-strip--two) { grid-template-columns: 1.35fr 1fr 1fr; }
  .post-strip:not(.post-strip--two) .post-card:first-child .post-card__title { font-size: var(--text-xl); }
}
@media (min-width: 700px) and (max-width: 1099px) { .post-strip:not(.post-strip--two) .post-card:nth-child(3) { display: none; } }

/* A post page */
.post-head { padding-bottom: clamp(7rem, 5rem + 8vw, 12rem); }
.post-head .page-title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.8rem); max-width: 22ch; }
.post-head .post-meta { color: rgba(255, 255, 255, 0.8); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--space-5); padding: 0; list-style: none; font-size: var(--text-xs); font-weight: 600; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.crumbs a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }

.post-cover { position: relative; margin: calc(clamp(7rem, 5rem + 8vw, 12rem) * -1 + var(--space-5)) 0 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-3); box-shadow: 0 30px 60px -30px rgba(14, 18, 56, 0.45); aspect-ratio: 16 / 9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover--tall { aspect-ratio: 16 / 10; }
.post-cover--tall img { object-position: 50% 22%; }
@media (max-width: 640px) { .post-cover, .post-cover--tall { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); } }

.post-layout { display: grid; gap: 3rem; padding-block: 3rem var(--space-6); }
@media (min-width: 960px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2.5rem, 1rem + 4vw, 5rem); } }
.post-body { max-width: 68ch; min-width: 0; }
.post-body > p { font-size: var(--text-lg); line-height: 1.7; margin: 0 0 var(--space-5); }
.post-body > p:first-child::first-letter { float: left; margin: 0.08em 0.12em 0 0; font-family: var(--font-serif); font-size: 3.6em; line-height: 0.8; color: var(--navy-900); }
:root[data-theme='dark'] .post-body > p:first-child::first-letter { color: var(--sun); }
.post-tagline { display: grid; gap: 6px; margin: var(--space-6) 0; padding-left: var(--space-5); border-left: 4px solid var(--sun); font-family: var(--font-serif); font-style: italic; font-size: var(--text-2xl); line-height: 1.15; color: var(--ink); }
.post-tagline span { font-family: var(--font-body); font-style: normal; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-h2 { display: flex; align-items: baseline; gap: var(--space-2); margin: 3rem 0 var(--space-4); font-size: var(--text-xl); font-weight: 700; }
.post-h2 .muted { font-size: var(--text-sm); font-weight: 600; }

.post-people ul { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .post-people ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person-chip { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-lg); background: var(--surface-2); }
.person-chip img, .person-chip__initials { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.person-chip__initials { display: grid; place-items: center; background: var(--navy-900); color: var(--sun); font-weight: 800; }
.person-chip > span { display: grid; gap: 2px; min-width: 0; }
.person-chip small { color: var(--muted); font-size: var(--text-xs); }
.person-chip__honour { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--sun); color: var(--navy-950); font-size: var(--text-xs); font-weight: 700; }

/* Masonry columns, so tall and wide photos sit together without gaps. */
.post-gallery__grid { columns: 2; column-gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .post-gallery__grid { columns: 3; } }
.post-gallery__grid li { break-inside: avoid; margin-bottom: var(--space-3); border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.post-gallery__grid a { display: block; }
.post-gallery__grid img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.post-gallery__grid a:hover img { transform: scale(1.05); }

.post-aside { display: grid; gap: var(--space-4); align-content: start; }
@media (min-width: 960px) { .post-aside { position: sticky; top: calc(var(--nav-h) + 24px); } }
.post-aside__card { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-2); }
.post-aside__title { margin-bottom: var(--space-4); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-facts { display: grid; gap: var(--space-3); margin: 0; }
.post-facts div { display: grid; gap: 2px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.post-facts dt { font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.post-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.post-share { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 0; }
.post-share > span { margin-right: auto; font-size: var(--text-sm); font-weight: 700; }
.post-share .round-btn { width: 40px; height: 40px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); padding-block: var(--space-6) var(--section-y); border-top: 1px solid var(--line); }
.post-nav__link { display: grid; gap: 4px; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--ink); text-decoration: none; transition: background var(--dur-fast); }
.post-nav__link:hover { background: var(--surface-3); }
.post-nav__link small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.post-nav__link strong { font-size: var(--text-md); }
.post-nav__link--next { text-align: right; justify-items: end; grid-column: 2; }
.tour__stops { position: relative; }

/* Round 5 */
.hero__title em { color: #fff; font-family: inherit; font-style: normal; font-weight: inherit; }
.motto-band { position: relative; overflow: hidden; isolation: isolate; }
.motto-band__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; filter: grayscale(0.2); }
.show-card__img { opacity: 0.38; }
.show-card { background-color: var(--navy-950); }
.show-card:hover .show-card__img { opacity: 0.5; }
/* Clubs: an ordered two-column list, details under each name */
.club-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: club; }
.club, .club--detail { counter-increment: club; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); flex-basis: auto; }
.club--detail { grid-column: 1 / -1; align-items: start; }
@media (min-width: 900px) { .club-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .club--detail { grid-column: span 2; } }
.club::after { content: counter(club, decimal-leading-zero); font-size: var(--text-xs); font-weight: 800; color: var(--muted); align-self: start; }
.club p { margin: 4px 0 0; color: var(--muted); font-size: var(--text-sm); }
/* Skeleton while photos load: a soft shimmer behind every lazy photo until it paints over it */
img[loading='lazy']:not([src*='logos']):not([src*='buddy']):not(.show-card__img), .post-cover img {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: skeleton 1.4s linear infinite;
}
img.is-loaded { animation: none; background: none; }
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }
.nf-buddy { width: 140px; height: auto; margin: 0 0 var(--space-3); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3)); }
