/* ==========================================================================
   CHSA06 — Public site stylesheet
   Hand-authored port of the Figma "Upgrade Alumni Website UI/UX" design.
   Deliberately separate from site.css (which now serves the admin portal
   only) so the two can evolve without breaking each other.
   ========================================================================== */

:root {
  /* Core palette */
  --background: #faf8f3;
  --foreground: #1a1a18;
  --card: #ffffff;
  --primary: #1e4d2b;
  --primary-foreground: #faf8f3;
  --secondary: #2d6a3f;
  --muted: #f0ece3;
  --muted-foreground: #6b6557;
  --accent: #c8962a;
  --accent-light: #e8b94a;
  --accent-pale: #e8c97a;
  --border: rgba(30, 77, 43, .12);
  --footer-bg: #111a14;

  /* House colors */
  --house-green-bg: #e8f5ec;
  --house-green-text: #1e4d2b;
  --house-green-dot: #2d6a3f;
  --house-crimson-bg: #fdecea;
  --house-crimson-text: #7b1d1d;
  --house-crimson-dot: #c0392b;
  --house-blue-bg: #e8f0fd;
  --house-blue-text: #1a3a6b;
  --house-blue-dot: #2a5298;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  /* Shape + depth */
  --radius: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(30, 77, 43, .06);
  --shadow-md: 0 8px 24px rgba(30, 77, 43, .10);
  --shadow-lg: 0 16px 40px rgba(30, 77, 43, .12);
  --shadow-xl: 0 24px 60px rgba(30, 77, 43, .18);

  --max-width: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .4em;
  letter-spacing: -.01em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}
/* The hidden attribute must win over any display rule a component sets,
   otherwise elements toggled off in JS (e.g. an empty house tag) still show. */
[hidden] { display: none !important; }

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

/* Inline SVG icons from the icon() helper: stroked outlines that inherit the
   surrounding text colour. (Individual paths may override with their own
   fill/stroke attributes — e.g. the solid quote mark.) */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-muted {
  background: var(--muted);
}

.section-dark {
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: #fff;
}

/* Dotted texture used on the dark green bands */
.dot-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  pointer-events: none;
  background-image: radial-gradient(circle at center, #fff 1px, transparent 1px);
  background-size: 30px 30px;
}

.dot-texture>* {
  position: relative;
}

.green-gradient {
  background: linear-gradient(135deg, #1e4d2b 0%, #2d6a3f 60%, #1a3d23 100%);
}

.gold-text {
  color: var(--accent);
}

.muted-text {
  color: var(--muted-foreground);
}

/* Small uppercase mono label used above headings */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow-light {
  color: rgba(200, 150, 42, .85);
}

/* Ornamental rules flanking a centered eyebrow */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 150, 42, .45), transparent);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-head p {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.section-head-split p {
  color: var(--muted-foreground);
  margin: 10px 0 0;
}

.section-head-split h2 {
  margin-bottom: 0;
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: scale(1.04);
}

.btn:active {
  transform: scale(.97);
}

.btn-sm {
  padding: 9px 20px;
  font-size: .84rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #1e4d2b, #2d6a3f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 77, 43, .32);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 22px rgba(30, 77, 43, .42);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #1a1a18;
  box-shadow: 0 8px 24px rgba(200, 150, 42, .38);
}

.btn-gold:hover {
  color: #1a1a18;
  box-shadow: 0 12px 30px rgba(200, 150, 42, .5);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  background: transparent;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.btn-dark {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 8px 28px rgba(30, 77, 43, .35);
}

.btn-dark:hover {
  color: var(--primary-foreground);
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
}

/* ─── Header / nav ────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(250, 248, 243, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: rgba(30, 77, 43, .08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand .crest {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  background: linear-gradient(135deg, #1e4d2b, #2d6a3f);
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--foreground);
  letter-spacing: .01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted-foreground);
}

/* Pages without a dark hero always render the solid header treatment */
.site-header.solid {
  background: rgba(250, 248, 243, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: rgba(30, 77, 43, .08);
}

/* Light-on-dark treatment applies ONLY while the header is genuinely floating
   over a dark hero (home page, not yet scrolled) — never on solid headers,
   where white text would be invisible against the cream background. */
.site-header[data-dark-hero="1"]:not(.scrolled) .brand-name {
  color: #fff;
}

.site-header[data-dark-hero="1"]:not(.scrolled) .brand-sub {
  color: rgba(255, 255, 255, .6);
}

.site-header[data-dark-hero="1"]:not(.scrolled) .nav-links>li>a:not(.btn) {
  color: rgba(255, 255, 255, .82);
}

.site-header[data-dark-hero="1"]:not(.scrolled) .nav-links>li>a:not(.btn):hover,
.site-header[data-dark-hero="1"]:not(.scrolled) .nav-links>li>a:not(.btn).active {
  color: #fff;
}

.site-header[data-dark-hero="1"]:not(.scrolled) .nav-toggle {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links>li>a:not(.btn) {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 4px 0;
  text-decoration: none;
  transition: color .2s ease;
}

.nav-links>li>a:not(.btn):hover {
  color: var(--primary);
  text-decoration: none;
}

.site-header:not(.scrolled) .nav-links>li>a:hover {
  color: #fff;
}

.nav-links>li>a:not(.btn).active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links>li>a:not(.btn).active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  color: var(--foreground);
  border-radius: 8px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 22px;
    background: rgba(250, 248, 243, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  /* Open drawer is always light, even over a dark hero */
  .site-header[data-dark-hero="1"]:not(.scrolled) .nav-links.open>li>a:not(.btn) {
    color: var(--foreground);
  }

  .site-header[data-dark-hero="1"]:not(.scrolled) .nav-links.open>li>a:not(.btn).active {
    color: var(--primary);
  }

  .nav-links>li>a:not(.btn) {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: .95rem;
  }

  .nav-links>li>a:not(.btn).active {
    background: rgba(30, 77, 43, .08);
  }

  .nav-links>li>a:not(.btn).active::after {
    display: none;
  }

  .nav-cta {
    margin: 8px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-size: cover;
  background-position: center top;
  mix-blend-mode: luminosity;
}

/* Only the imagery rotates — the hero layout and copy stay fixed. Each
   uploaded photo is its own layer; exactly one is visible at a time and they
   cross-fade between slides. */
.hero-photo.hero-layer { opacity: 0; transition: opacity .9s ease; }
.hero-photo.hero-layer.active { opacity: .2; }

.hero-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.hero-card-img.active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-photo.hero-layer, .hero-card-img { transition: none; }
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200, 150, 42, .15) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 110px 0 90px;
}

.hero-copy {
  animation: fadeInUp .7s ease both;
}

/* Slide dots */
/* Sits above the bottom wave, which overlays the last ~80px of the hero. */
.hero-dots {
  position: absolute;
  bottom: 104px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: all .25s ease;
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, .7);
}

.hero-dots button.active {
  background: #fff;
  width: 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  margin-bottom: 26px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(200, 150, 42, .35);
  background: rgba(200, 150, 42, .15);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent-pale);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: 24px;
}

.hero h1 .line-accent {
  color: var(--accent);
  font-style: normal;
}

.hero h1 .line-soft {
  color: rgba(255, 255, 255, .8);
  font-size: .72em;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .75);
  max-width: 480px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-copy {
  align-self: center;
  justify-self: center;
  max-width: 560px;
  width: 100%;
}

.hero-figure {
  position: relative;
}

.hero-figure-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 520px;
  background: rgba(255, 255, 255, .06);
}

.hero-figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shown until a card image is uploaded for at least one slide — a deliberate
   panel rather than a transparent hole in the hero. */
.hero-figure-frame .hero-figure-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(150deg, rgba(12, 30, 18, .82), rgba(20, 48, 28, .72));
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .28);
}
.hero-figure-frame .hero-figure-fallback span {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .42);
}

.hero-figure-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 77, 43, .82) 0%, transparent 52%);
}

.hero-figure-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
}

.hero-figure-caption .cap-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 8px;
}

.hero-figure-caption .cap-motto {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.hero-figure-caption .cap-sub {
  font-size: .88rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
}

.hero-float-badge {
  position: absolute;
  bottom: -26px;
  left: -26px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-xl);
}

.hero-float-badge .fb-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.hero-float-badge .fb-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted-foreground);
  margin-top: 6px;
  line-height: 1.35;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 118px 0 96px;
  }

  .hero-figure {
    display: none;
  }

  .hero-lead {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    padding: 104px 0 84px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-dots {
    bottom: 76px;
  }
}

/* ─── Ticker ──────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  padding: 14px 0;
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 34s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: rgba(255, 255, 255, .85);
  flex-shrink: 0;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* ─── Stats band ──────────────────────────────────────────────────────── */
.stats-band {
  padding: 76px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-cell {
  text-align: center;
  padding: 8px 24px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.stat-cell:first-child {
  border-left: none;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .6);
  margin-top: 12px;
}

@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 0;
  }

  .stat-cell:nth-child(odd) {
    border-left: none;
  }
}

/* ─── President's message ─────────────────────────────────────────────── */
.president-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: stretch;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--card);
}

.president-media {
  position: relative;
  min-height: 420px;
  background: var(--muted);
}

.president-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.president-media .initials-fill {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
}

.president-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 62%, rgba(30, 77, 43, .28));
  pointer-events: none;
}

.president-body {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-mark {
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: .45;
  margin-bottom: 22px;
}

/* The speech body is admin-authored HTML. Rather than requiring a specific
   structure, style the opening paragraph as the pull-quote and let the rest
   fall back to regular body copy — matching the design either way. */
.president-speech-text {
  color: var(--muted-foreground);
}

.president-speech-text>p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.18rem;
  line-height: 1.62;
  color: var(--foreground);
}

.president-speech-text>p:last-child {
  margin-bottom: 0;
}

.president-sign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.president-sign-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex-shrink: 0;
  background: var(--muted);
}

.president-sign-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.president-sign-avatar .initials-fill {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: .95rem;
}

.president-sign-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
}

.president-sign-role {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--accent);
}

@media (max-width: 880px) {
  .president-card {
    grid-template-columns: 1fr;
  }

  .president-media {
    min-height: 0;
    aspect-ratio: 3/4;
  }

  .president-body {
    padding: 34px 26px;
  }
}

/* ─── Split feature (About block) ─────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-figure {
  position: relative;
}

.split-figure-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 480px;
  background: var(--card);
}

.split-figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-figure-frame .figure-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .35);
}

.split-float-card {
  position: absolute;
  right: -24px;
  bottom: -24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-xl);
}

.split-float-card .sf-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.split-float-card .sf-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted-foreground);
  margin-top: 6px;
}

.split-float-dots {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.split-float-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.feature-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 32px;
}

.feature-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.feature-tile .ft-icon {
  width: 26px;
  height: 26px;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-tile .ft-label {
  font-weight: 600;
  font-size: .92rem;
  color: var(--foreground);
}

.feature-tile .ft-desc {
  font-size: .8rem;
  color: var(--muted-foreground);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split-figure-frame {
    height: 380px;
  }

  .split-float-card {
    right: 16px;
    bottom: -18px;
  }
}

/* ─── Cards / grids ───────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Directory grid — up to 6 across on wide screens, stepping down gracefully. */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.card-lift {
  transition: transform .25s ease, box-shadow .25s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.person-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Every photo sits in the same fixed portrait box so cards line up in a tidy
   grid, and uses object-fit:contain so the *whole* uploaded image is visible
   (never cropped). A blurred, scaled copy of the same photo fills the leftover
   space, so a portrait/landscape mismatch reads as an intentional frame rather
   than empty letterbox bars. */
.person-media {
  position: relative;
  overflow: hidden;
  background: var(--muted);
  aspect-ratio: 3/4;
}

.person-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  transform: scale(1.2);
  filter: blur(20px) brightness(.92);
  opacity: .9;
}

.person-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.person-media .initials-fill {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
}

.person-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, transparent 50%);
}

.person-role-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .92);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
}

.person-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.person-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.person-position {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-top: 5px;
}

.person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted-foreground);
}

.person-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.person-meta .icon {
  width: .95em;
  height: .95em;
}

.person-desc {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 14px 0 0;
}

.person-link {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
}

.person-link .icon {
  width: 1em;
  height: 1em;
}

/* House tag */
.house-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  border: 1px solid;
}

.house-tag .house-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.house-tag.house-green {
  background: var(--house-green-bg);
  color: var(--house-green-text);
  border-color: var(--house-green-dot);
}

.house-tag.house-crimson {
  background: var(--house-crimson-bg);
  color: var(--house-crimson-text);
  border-color: var(--house-crimson-dot);
}

.house-tag.house-blue {
  background: var(--house-blue-bg);
  color: var(--house-blue-text);
  border-color: var(--house-blue-dot);
}

.house-tag.house-green .house-dot {
  background: var(--house-green-dot);
}

.house-tag.house-crimson .house-dot {
  background: var(--house-crimson-dot);
}

.house-tag.house-blue .house-dot {
  background: var(--house-blue-dot);
}

.media-house-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}

/* Alumni card */
.alumni-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.alumni-body {
  flex: 1;
}

.alumni-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.alumni-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  transform: scale(1.2);
  filter: blur(20px) brightness(.92);
  opacity: .9;
}

.alumni-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.alumni-media .initials-fill {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
}

.alumni-media.house-green {
  background: var(--house-green-bg);
}

.alumni-media.house-green .initials-fill {
  color: var(--house-green-text);
}

.alumni-media.house-crimson {
  background: var(--house-crimson-bg);
}

.alumni-media.house-crimson .initials-fill {
  color: var(--house-crimson-text);
}

.alumni-media.house-blue {
  background: var(--house-blue-bg);
}

.alumni-media.house-blue .initials-fill {
  color: var(--house-blue-text);
}

.alumni-media:not([class*="house-"]) {
  background: var(--muted);
}

.alumni-body {
  padding: 18px 20px;
  overflow-wrap: anywhere;
}

.alumni-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.alumni-occupation {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted-foreground);
  margin: 4px 0 0;
}

.alumni-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--muted-foreground);
  font-size: .78rem;
}

.alumni-row .icon {
  width: .95em;
  height: .95em;
  flex-shrink: 0;
}

.alumni-bio {
  font-size: .84rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 12px 0 0;
}

/* ─── Events / info cards on dark ─────────────────────────────────────── */
.glass-card {
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s ease;
}

.glass-card:hover {
  border-color: rgba(200, 150, 42, .4);
}

.glass-card h3 {
  color: #fff;
  margin-bottom: 8px;
}

.glass-card p {
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
  line-height: 1.62;
}

.glass-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(200, 150, 42, .2);
  color: var(--accent-pale);
  font-family: var(--font-mono);
  font-size: .7rem;
}

.glass-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: rgba(255, 255, 255, .5);
}

.glass-meta .icon {
  width: .95em;
  height: .95em;
}

/* ─── CTA band ────────────────────────────────────────────────────────── */
.cta-band {
  padding: 92px 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  text-align: center;
}

.cta-band .eyebrow {
  color: rgba(26, 26, 24, .6);
}

.cta-band h2 {
  color: #1a1a18;
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(26, 26, 24, .72);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto 34px;
}

/* ─── Page header (inner pages) ───────────────────────────────────────── */
.page-head {
  padding: 148px 0 20px;
  text-align: center;
}

/* School crest above the About page heading */
.school-crest {
  width: 120px;
  height: auto;
  margin: 0 auto 22px;
  display: block;
}

@media (max-width: 640px) {
  .school-crest {
    width: 92px;
    margin-bottom: 16px;
  }
}

.page-head p {
  color: var(--muted-foreground);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

.page-head-left {
  text-align: left;
}

.page-head-left p {
  margin-left: 0;
}

/* ─── Forms ───────────────────────────────────────────────────────────── */
.form-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--card);
}

.form-card-head {
  padding: 26px 34px;
}

.form-card-head h2 {
  color: #fff;
  font-size: 1.32rem;
  margin: 0;
}

.form-card-head p {
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
  margin: 6px 0 0;
}

.form-card-body {
  padding: 34px;
  background: var(--card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  margin-bottom: 22px;
}

.field.full {
  grid-column: 1 / -1;
}

.form-grid .field {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 7px;
}

.field label .req {
  color: #c0392b;
}

.field label .opt {
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=date],
.field input[type=password],
.field input[type=number],
.field input[type=file],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--foreground);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 150, 42, .18);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b3ad9f;
}

.field-error {
  color: #c0392b;
  font-size: .8rem;
  margin-top: 6px;
  font-weight: 500;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c0392b;
}

.hint {
  color: var(--muted-foreground);
  font-size: .8rem;
  margin-top: 6px;
  line-height: 1.5;
}

.form-foot-note {
  text-align: center;
  font-size: .8rem;
  color: var(--muted-foreground);
  margin: 14px 0 0;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card-body {
    padding: 24px 20px;
  }

  .form-card-head {
    padding: 22px 20px;
  }
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  margin-bottom: 40px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.filter-search {
  position: relative;
  flex: 1 1 240px;
}

.filter-search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05em;
  height: 1.05em;
  color: var(--muted-foreground);
  pointer-events: none;
}

.filter-search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
}

.filter-bar select {
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--foreground);
}

.filter-search input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 150, 42, .18);
}

/* ─── Alerts ──────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.alert .icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

.alert-success {
  background: var(--house-green-bg);
  color: var(--house-green-text);
  border: 1px solid rgba(45, 106, 63, .3);
}

.alert-error {
  background: var(--house-crimson-bg);
  color: var(--house-crimson-text);
  border: 1px solid rgba(192, 57, 43, .3);
}

/* ─── Info / content panels ───────────────────────────────────────────── */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.panel h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* Two-class selector so a dark panel wins over .panel's white background
   regardless of source order. */
.panel.green-gradient {
  background: linear-gradient(135deg, #1e4d2b 0%, #2d6a3f 60%, #1a3d23 100%);
  border-color: transparent;
}

.panel.green-gradient h3 {
  color: #fff;
}

.prose {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

.prose h2,
.prose h3 {
  color: var(--foreground);
  margin-top: 1.6em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: .45em;
}

.article-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.article-chip {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(30, 77, 43, .08);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
}

.article-row .art-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.article-row .art-desc {
  font-size: .9rem;
  line-height: 1.62;
  color: var(--muted-foreground);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* House explainer tiles */
.house-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.house-tile {
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  border: 1px solid;
}

.house-tile .ht-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}

.house-tile .ht-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.house-tile .ht-sub {
  font-family: var(--font-mono);
  font-size: .74rem;
  margin-top: 4px;
  opacity: .75;
}

.house-tile.house-green {
  background: var(--house-green-bg);
  border-color: rgba(45, 106, 63, .25);
  color: var(--house-green-text);
}

.house-tile.house-crimson {
  background: var(--house-crimson-bg);
  border-color: rgba(192, 57, 43, .25);
  color: var(--house-crimson-text);
}

.house-tile.house-blue {
  background: var(--house-blue-bg);
  border-color: rgba(42, 82, 152, .25);
  color: var(--house-blue-text);
}

.house-tile.house-green .ht-badge {
  background: var(--house-green-dot);
}

.house-tile.house-crimson .ht-badge {
  background: var(--house-crimson-dot);
}

.house-tile.house-blue .ht-badge {
  background: var(--house-blue-dot);
}

/* Value cards */
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.value-card .v-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 18px;
}

.value-card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0;
}

/* Download / document card */
.doc-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.doc-card-inner {
  padding: 52px 34px;
  text-align: center;
}

.doc-icon {
  width: 78px;
  height: 78px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.doc-icon .icon {
  width: 38px;
  height: 38px;
  color: #fff;
  stroke-width: 1.5;
}

.doc-card .doc-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 10px;
}

.doc-card h2 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.doc-card .doc-sub {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 28px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 90px 20px;
}

.empty-state .icon {
  width: 46px;
  height: 46px;
  color: var(--border);
  margin: 0 auto 18px;
}

.empty-state .es-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--foreground);
}

.empty-state p {
  font-size: .92rem;
  color: var(--muted-foreground);
  margin-top: 6px;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.pagination a {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: #fff;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.pagination a.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Success confirmation panel */
.confirm-panel {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 24px;
}

.confirm-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(30, 77, 43, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}

.confirm-icon .icon {
  width: 44px;
  height: 44px;
  color: var(--primary);
  stroke-width: 2.2;
}

/* Contact info tiles */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: rgba(30, 77, 43, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--primary);
}

.info-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted-foreground);
}

.info-value {
  font-size: .92rem;
  font-weight: 500;
  color: var(--foreground);
}

a.info-value {
  color: var(--primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 52px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-crest {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(200, 150, 42, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--accent);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
}

.footer-brand-sub {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: rgba(255, 255, 255, .4);
}

.site-footer p {
  font-size: .9rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, .55);
  max-width: 340px;
}

.footer-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  color: rgba(200, 150, 42, .85);
  margin-top: 18px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .55);
  transition: color .18s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-links a.gold {
  color: rgba(200, 150, 42, .85);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 26px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: rgba(255, 255, 255, .3);
  margin: 0;
  max-width: none;
}

.footer-houses {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-houses .dots {
  display: flex;
  gap: 4px;
}

.footer-houses .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: .7;
}

.footer-houses .fh-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255, 255, 255, .25);
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* ─── Motion ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp .7s ease both;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─── Responsive grid collapse ────────────────────────────────────────── */
@media (max-width: 1500px) {
  .grid-6 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1250px) {
  .grid-6 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .house-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 68px 0;
  }

  .page-head {
    padding: 122px 0 12px;
  }

  .president-body {
    padding: 30px 22px;
  }

  .feature-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {

  .grid-3,
  .grid-4,
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  /* Text-heavy cards stay full width on phones — the 3-up rule above is for
     photo cards (alumni / excos), where thumbnails still read at that size. */
  .grid-3.grid-text {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .person-body,
  .alumni-body {
    padding: 12px 13px;
  }

  .person-name,
  .alumni-name {
    font-size: .9rem;
  }

  .alumni-occupation,
  .alumni-row,
  .person-meta {
    font-size: .72rem;
  }

  .alumni-bio,
  .person-desc {
    font-size: .78rem;
  }

  .person-meta {
    gap: 8px;
  }

  .house-tag {
    font-size: .62rem;
    padding: 3px 8px;
  }

  .value-card {
    padding: 24px;
  }

  .article-row {
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }
}

@media (max-width: 400px) {

  .grid-3,
  .grid-4,
  .grid-6 {
    gap: 7px;
  }
}

/* About page — narrative column with a reference sidebar (principals list) */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.about-layout h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 16px;
}

.about-aside {
  position: sticky;
  top: 100px;
}

.principals-panel {
  background: var(--muted);
}

.principals-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.principals-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.principals-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .86rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.principals-list li:last-child {
  border-bottom: none;
}

.principals-list p {
  font-size: .86rem;
  color: var(--muted-foreground);
  margin: 0 0 .5em;
}

@media (max-width: 980px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-aside {
    position: static;
  }
}

/* About page — full-bleed static hero, crest badge, and school photo gallery */
.about-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(380px, 46vh, 460px);
  padding: 132px 0 64px;
  background: var(--primary);
}

/* The uploaded photo simply fills the whole hero band. */
.about-hero-photo {
  position: absolute;
  inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
}

.about-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 24, 14, .78) 0%, rgba(10, 24, 14, .6) 42%, rgba(10, 24, 14, .82) 100%);
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.about-hero h1 {
  color: #fff;
  margin-bottom: .3em;
}

.about-hero p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.05rem;
  line-height: 1.66;
  margin: 0;
}

.about-hero .eyebrow {
  color: var(--accent-pale);
}

.about-hero .ornament::before,
.about-hero .ornament::after {
  background: linear-gradient(90deg, transparent, rgba(232, 201, 122, .55), transparent);
}

/* White chip keeps the green crest legible against the darkened photo */
.crest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}

.crest-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .about-hero {
    min-height: 0;
    padding: 112px 0 52px;
  }

  .about-hero-photo {
    background-size: auto 105%;
  }

  .crest-badge {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
  }

  .about-hero p {
    font-size: .96rem;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid.gallery-cols-1 {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 auto;
}

.gallery-grid.gallery-cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 940px;
  margin: 0 auto;
}

.gallery-grid.gallery-cols-1 .gallery-item img {
  aspect-ratio: 16/10;
}

.gallery-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--muted);
}

.gallery-item figcaption {
  padding: 12px 16px;
  font-size: .84rem;
  color: var(--muted-foreground);
}

@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item figcaption {
    padding: 9px 11px;
    font-size: .74rem;
  }
}

/* ─── Events ──────────────────────────────────────────────────────────── */
.event-card,
.event-slide {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
}

.event-card:hover,
.event-slide:hover {
  text-decoration: none;
}

.event-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--muted);
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.event-card:hover .event-media img,
.event-slide:hover .event-media img {
  transform: scale(1.05);
}

.event-media.green-gradient {
  background: linear-gradient(135deg, #1e4d2b 0%, #2d6a3f 60%, #1a3d23 100%);
}

.event-media .initials-fill {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
}

.event-media .initials-fill .icon {
  width: 2.4rem;
  height: 2.4rem;
}

.event-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .93);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
}

.event-chip-hero {
  position: static;
  display: inline-block;
  margin-bottom: 18px;
}

.event-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted-foreground);
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-meta .icon {
  width: .95em;
  height: .95em;
}

.event-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.event-badge.is-upcoming {
  background: var(--house-green-bg);
  color: var(--house-green-text);
}

.event-badge.is-past {
  background: var(--muted);
  color: var(--muted-foreground);
}

/* On the dark event hero the badges need their own contrast. */
.event-hero-meta .event-badge.is-upcoming {
  background: rgba(232, 201, 122, .22);
  color: var(--accent-pale);
}

.event-hero-meta .event-badge.is-past {
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .8);
}

.event-body h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
  color: var(--foreground);
}

.event-excerpt {
  font-size: .89rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0 0 12px;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted-foreground);
  margin-bottom: 14px;
}

.event-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--primary);
}

/* Horizontal scroller with snap points — the section scrolls, not the page. */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 340px;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.carousel>* {
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .5);
}

.carousel-btn:active {
  transform: scale(.94);
}

.carousel-btn[disabled] {
  opacity: .35;
  cursor: default;
  transform: none;
}

/* Event detail page */
.event-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 46vh, 460px);
  display: flex;
  align-items: flex-end;
}

.event-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.event-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 24, 14, .55) 0%, rgba(10, 24, 14, .45) 40%, rgba(10, 24, 14, .88) 100%);
}

.event-hero-inner {
  position: relative;
  z-index: 1;
  padding: 140px 0 52px;
}

.event-hero h1 {
  color: #fff;
  max-width: 20ch;
}

.event-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .86rem;
  color: rgba(255, 255, 255, .8);
}

.event-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--foreground);
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.event-story>*+* {
  margin-top: 30px;
}

.event-figure {
  margin: 0;
}

.event-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.event-figure figcaption {
  margin-top: 10px;
  font-size: .84rem;
  color: var(--muted-foreground);
  text-align: center;
}

.event-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .carousel {
    grid-auto-columns: 268px;
    gap: 14px;
  }

  .event-hero-inner {
    padding: 118px 0 40px;
  }

  .event-lead {
    font-size: 1.05rem;
  }

  .event-foot .btn {
    flex: 1 1 auto;
  }
}

/* Uploaded site logo replacing the default "06" badge */
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 9px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  padding: 4px;
}
/* ─── Alumni detail popup ─────────────────────────────────────────────── */
/* Cards are real <button>s so they're keyboard reachable; reset the chrome. */
button.alumni-card {
  font: inherit; color: inherit; text-align: left; padding: 0;
  cursor: pointer; width: 100%;
}
button.alumni-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.alumni-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.alumni-modal[hidden] { display: none; }
.alumni-modal-backdrop {
  position: absolute; inset: 0; background: rgba(12, 26, 16, .6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: modalFadeIn .18s ease both;
}
.alumni-modal-panel {
  position: relative; display: grid; grid-template-columns: 300px 1fr;
  width: 100%; max-width: 760px; max-height: 90vh; overflow: hidden;
  background: var(--card); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); animation: modalRise .22s ease both;
}
.alumni-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: none; background: rgba(255, 255, 255, .92); color: var(--foreground);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  transition: background-color .16s ease, transform .12s ease;
}
.alumni-modal-close:hover { background: #fff; transform: scale(1.06); }
.alumni-modal-close svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.alumni-modal-media { position: relative; background: var(--muted); overflow: hidden; }
.alumni-modal-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.alumni-modal-initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; color: var(--primary); opacity: .45;
}
.alumni-modal-media img:not([hidden]) + .alumni-modal-initials { display: none; }

.alumni-modal-body { padding: 40px 38px; overflow-y: auto; }
.alumni-modal-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 10px 0 4px; }
.alumni-modal-occupation { font-family: var(--font-mono); font-size: .84rem; color: var(--accent-dark, var(--accent)); margin: 0 0 18px; }
.alumni-modal-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.alumni-modal-row { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--muted-foreground); overflow-wrap: anywhere; }
.alumni-modal-bio { font-size: .95rem; line-height: 1.7; color: var(--muted-foreground); margin: 0; padding-top: 18px; border-top: 1px solid var(--border); }

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .alumni-modal-backdrop, .alumni-modal-panel { animation: none; } }

@media (max-width: 700px) {
  .alumni-modal { padding: 14px; }
  .alumni-modal-panel { grid-template-columns: 1fr; max-height: 92vh; }
  .alumni-modal-media { aspect-ratio: 3/4; }
  .alumni-modal-body { padding: 26px 22px 30px; }
}

/* ─── Anthems (About page) ───────────────────────────────────────────── */
.anthem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.anthem-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 40px; text-align: center; box-shadow: var(--shadow-sm);
}
.anthem-card .eyebrow { justify-content: center; }
.anthem-verse {
  font-family: var(--font-display); font-style: italic; font-size: 1.08rem;
  line-height: 1.9; color: var(--foreground);
}
.anthem-verse p { margin: 0; }
@media (max-width: 780px) {
  .anthem-grid { grid-template-columns: 1fr; gap: 18px; }
  .anthem-card { padding: 28px 24px; }
}
