/* ============================================================
   St Hilda's School & Junior College, Ooty — Design System
   Heritage editorial: deep forest green · heritage gold · ivory
   Fonts: Fraunces (display serif) + Inter (sans)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --ink:        #15211A;   /* primary text, near-black green */
  --ink-soft:   #3C4B41;   /* secondary text */
  --forest:     #1E3A2B;   /* primary brand green */
  --forest-700: #25492F;
  --forest-600: #2C5739;
  --moss:       #3E7350;   /* lively accent green */
  --gold:       #B0823A;   /* heritage brass/gold */
  --gold-soft:  #C8A45A;
  --gold-tint:  #E9D9B6;

  /* Neutrals */
  --paper:      #FCFAF4;   /* lightest page bg */
  --cream:      #F6F0E3;   /* warm ivory section */
  --sand:       #EFE6D3;   /* cards / subtle panels */
  --sand-deep:  #E4D7BD;
  --white:      #ffffff;

  /* Lines / shadows */
  --line:       rgba(21, 33, 26, 0.14);
  --line-soft:  rgba(21, 33, 26, 0.08);
  --line-gold:  rgba(176, 130, 58, 0.35);
  --shadow-sm:  0 1px 2px rgba(21,33,26,.06), 0 2px 8px rgba(21,33,26,.05);
  --shadow-md:  0 10px 30px -12px rgba(21,33,26,.22), 0 4px 12px rgba(21,33,26,.06);
  --shadow-lg:  0 30px 60px -24px rgba(21,33,26,.32);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap: 1220px;
  --wrap-narrow: 880px;
  --radius: 4px;
  --radius-lg: 10px;
  --nav-h: 78px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }

img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--forest); color: var(--paper); }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

.display-italic { font-style: italic; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-paper { background: var(--paper); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .7; }
.eyebrow.no-line::before { display: none; }
.bg-forest .eyebrow { color: var(--gold-soft); }

/* Section heading block */
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; }

/* Decorative rule */
.rule { height: 1px; background: var(--line); border: 0; }
.rule-gold { height: 2px; width: 56px; background: var(--gold); border: 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest); --fg: var(--paper); --bd: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; min-height: 52px;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600; letter-spacing: .01em;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd);
  border-radius: 100px; cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden; will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--gold { --bg: var(--gold); --bd: var(--gold); --fg: #1c160a; }
.btn--gold:hover { --bg: var(--gold-soft); }
.btn--ghost { --bg: transparent; --fg: var(--forest); --bd: var(--line); }
.btn--ghost:hover { --bd: var(--forest); }
.btn--light { --bg: var(--paper); --fg: var(--forest); --bd: var(--paper); }
.btn--on-dark { --bg: transparent; --fg: var(--cream); --bd: rgba(246,240,227,.4); }
.btn--on-dark:hover { --bg: var(--cream); --fg: var(--forest); --bd: var(--cream); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--forest);
  border-bottom: 1.5px solid var(--line-gold); padding-bottom: 3px;
  transition: gap .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover { gap: 12px; border-color: var(--gold); }
.bg-forest .link-arrow { color: var(--gold-soft); border-color: rgba(200,164,90,.4); }

/* ---------- Header / Nav (injected) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header__inner { width: 100%; max-width: 1320px; margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; z-index: 2; }
.brand__crest { width: 38px; height: 44px; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand__crest { transform: rotate(-4deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; letter-spacing: .01em; color: var(--forest); }
.brand__sub { font-size: 0.6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 5px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; font-size: 0.92rem; font-weight: 500; color: var(--ink);
  border-radius: 100px; transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--forest); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Transparent over hero */
.site-header--transparent { background: transparent; }
.site-header--transparent .brand__name { color: var(--paper); }
.site-header--transparent .brand__sub { color: var(--gold-soft); }
.site-header--transparent .nav a { color: rgba(246,240,227,.92); }
.site-header--transparent .nav a[aria-current="page"] { color: #fff; }
.site-header--transparent .brand__crest .crest-fill { fill: var(--gold-soft); }
.site-header--transparent .brand__crest .crest-stroke { stroke: var(--cream); }
.site-header--transparent .menu-toggle span { background: var(--cream); }

/* Scrolled / solid */
.site-header--solid {
  background: rgba(252,250,244,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  height: 66px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; z-index: 110;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s var(--ease); }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 105; background: var(--forest); color: var(--cream);
  padding: calc(var(--nav-h) + 20px) clamp(24px, 7vw, 64px) 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .6s var(--ease-out), opacity .4s var(--ease), visibility .4s;
}
body.menu-open .mobile-nav { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav > a {
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 400;
  color: var(--cream); padding: 8px 0; border-bottom: 1px solid rgba(246,240,227,.14);
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(20px);
}
body.menu-open .mobile-nav > a { animation: navIn .6s var(--ease-out) forwards; }
.mobile-nav > a:nth-child(1){animation-delay:.08s}.mobile-nav > a:nth-child(2){animation-delay:.14s}
.mobile-nav > a:nth-child(3){animation-delay:.20s}.mobile-nav > a:nth-child(4){animation-delay:.26s}
.mobile-nav > a:nth-child(5){animation-delay:.32s}.mobile-nav > a:nth-child(6){animation-delay:.38s}
.mobile-nav > a span { font-family: var(--font-sans); font-size: .8rem; color: var(--gold-soft); }
.mobile-nav > a[aria-current="page"] { color: var(--gold-soft); }
.mobile-nav__foot { margin-top: 30px; opacity: 0; animation: navIn .6s .44s var(--ease-out) forwards; color: rgba(246,240,227,.7); font-size: .9rem; }
@keyframes navIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- Media frame with perfect placeholder ---------- */
.media {
  position: relative; overflow: hidden; background: var(--sand);
  border-radius: var(--radius); isolation: isolate;
}
.media::after { /* shimmer placeholder while loading */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--sand) 30%, var(--sand-deep) 50%, var(--sand) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite linear;
  transition: opacity .5s var(--ease);
}
.media.is-loaded::after { opacity: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2;
  opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.media.is-loaded img { opacity: 1; transform: scale(1); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce){ .media::after{ animation:none } .media img{ transition:opacity .3s } }

.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3  { aspect-ratio: 4/3; }
.ratio-3-2  { aspect-ratio: 3/2; }
.ratio-1-1  { aspect-ratio: 1/1; }
.ratio-3-4  { aspect-ratio: 3/4; }
.ratio-4-5  { aspect-ratio: 4/5; }
.media figcaption { position: absolute; left: 0; bottom: 0; z-index: 3; padding: 10px 14px;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream);
  background: linear-gradient(transparent, rgba(21,33,26,.7)); width: 100%; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--cream); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 120%; object-fit: cover; object-position: center; will-change: transform; }
/* Strong directional scrim: dark on the left/bottom (where text sits), image stays visible on the right */
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(9,17,12,.92) 0%, rgba(9,17,12,.66) 30%, rgba(9,17,12,.34) 58%, rgba(9,17,12,.14) 85%),
    linear-gradient(180deg, rgba(9,17,12,.5) 0%, rgba(9,17,12,.26) 30%, rgba(9,17,12,.32) 56%, rgba(9,17,12,.74) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: calc(var(--nav-h) + 24px) clamp(20px,5vw,56px) clamp(44px, 6vw, 80px); }
.hero__eyebrow { color: var(--gold-soft); }
.hero h1 { color: var(--paper); max-width: 16ch; margin-top: 22px; font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  text-shadow: 0 2px 30px rgba(7,13,9,.45); }
.hero h1 .line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__eyebrow, .hero__sub { text-shadow: 0 1px 18px rgba(7,13,9,.5); }
.hero__sub { max-width: 52ch; margin-top: 26px; color: rgba(246,240,227,.9); font-size: clamp(1.05rem,1.5vw,1.3rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(246,240,227,.75);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(246,240,227,.55); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; background: var(--gold-soft);
  border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,10px)} 100%{opacity:0} }

/* Hero stat ticks */
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(20px,4vw,52px); margin-top: 42px;
  padding-top: 28px; border-top: 1px solid rgba(246,240,227,.22); }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats b { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 400; color: var(--paper); }
.hero__stats span { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,240,227,.72); margin-top: 4px; }

/* Sub-page hero (interior pages) */
.page-hero { position: relative; padding: calc(var(--nav-h) + 70px) 0 64px; overflow: hidden;
  background: var(--forest); color: var(--cream); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; opacity: .26; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(21,33,26,.5), rgba(21,33,26,.85)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--paper); margin-top: 18px; }
.page-hero p { color: rgba(246,240,227,.85); max-width: 56ch; margin-top: 20px; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--gold-soft); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: rgba(246,240,227,.6);
  position: relative; z-index: 2; margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ---------- Marquee ---------- */
.marquee { background: var(--forest); color: var(--cream); overflow: hidden; padding: 16px 0;
  border-block: 1px solid rgba(200,164,90,.22); }
.marquee__track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; padding: 0 28px; color: var(--cream); display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; font-style: normal; color: var(--gold-soft); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee__track{ animation:none } }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.stats .stat { padding: 8px clamp(10px,2vw,28px); border-left: 1px solid var(--line); }
.stats .stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.6rem); font-weight: 400; color: var(--forest); line-height: 1; letter-spacing: -.02em; }
.bg-forest .stat__num { color: var(--gold-soft); }
.stat__num .suffix { color: var(--gold); }
.stat__label { margin-top: 12px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.bg-forest .stat__label { color: rgba(246,240,227,.78); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--forest); margin-bottom: 22px; border: 1px solid var(--line-gold); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.4rem; }
.card h3 + p { margin-top: 12px; }
.card p { font-size: .98rem; }

/* Dark-section text contrast (headings + prose on forest / feature-dark) */
.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest h4,
.feature-dark h1, .feature-dark h2, .feature-dark h3, .feature-dark h4 { color: var(--paper); }
.bg-forest .section-head p,
.feature-dark .section-head p,
.feature-dark .split__body p { color: rgba(246,240,227,.84); }

/* Prose paragraph rhythm */
.split__body p + p { margin-top: 16px; }
.section-head p + p { margin-top: 14px; }

/* Pillar card variant on forest bg */
.bg-forest .card { background: var(--forest-700); border-color: rgba(246,240,227,.1); }
.bg-forest .card h3 { color: var(--paper); }
.bg-forest .card p { color: rgba(246,240,227,.78); }
.bg-forest .card__icon { background: var(--forest-600); color: var(--gold-soft); border-color: var(--line-gold); }

/* Feature image card (facility teaser) */
.tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.tile .media { border-radius: 0; }
.tile .media img { transition: transform 1s var(--ease); }
.tile:hover .media img { transform: scale(1.06); }
.tile__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 26px 24px 22px;
  background: linear-gradient(transparent, rgba(15,28,20,.86)); color: var(--cream);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tile__label h3 { color: var(--paper); font-size: 1.5rem; }
.tile__label .ico { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(246,240,227,.5);
  display: grid; place-items: center; flex: none; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
.tile:hover .tile__label .ico { background: var(--gold); border-color: var(--gold); color: #1c160a; }
.tile__label .ico svg { width: 16px; height: 16px; }

/* ---------- Split / alternating feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__body .eyebrow { margin-bottom: 18px; }
.split__body h2 + p, .split__body h3 + p { margin-top: 18px; }
.split__body .btn, .split__body .link-arrow { margin-top: 26px; }

/* Stacked image collage */
.collage { position: relative; }
.collage .media { box-shadow: var(--shadow-md); }
.collage .collage__badge { position: absolute; z-index: 5; background: var(--gold); color: #1c160a;
  border-radius: 50%; width: clamp(112px,14vw,150px); height: clamp(112px,14vw,150px); display: grid; place-items: center; text-align: center;
  right: -18px; bottom: -22px; box-shadow: var(--shadow-md); padding: 14px; }
.collage__badge b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; display: block; }
.collage__badge span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; display: block; font-weight: 600; }

/* ---------- Quote ---------- */
.quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
.quote--lg { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.bg-forest .quote { color: var(--paper); }
.quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--gold); display: block; height: 38px; }

.message-card { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px,4vw,52px); align-items: start; }
.message-card .portrait { position: relative; }
.message-card .portrait .media { box-shadow: var(--shadow-md); }
.message-card .portrait .tag { position: absolute; left: 16px; bottom: 16px; background: var(--gold); color: #1c160a;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
.message-card__name { margin-top: 24px; font-family: var(--font-display); font-size: 1.3rem; color: var(--forest); }
.message-card__role { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.message-card__body p + p { margin-top: 16px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 40px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--gold), var(--line)); }
.tl-item { position: relative; padding: 0 0 48px 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -6px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--gold); }
.tl-year { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); line-height: 1; }
.tl-item h4 { margin-top: 6px; font-size: 1.18rem; }
.tl-item p { margin-top: 8px; font-size: .98rem; }

/* ---------- Pills / tags ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border: 1px solid var(--line);
  border-radius: 100px; background: var(--white); font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease); }
.pill:hover { border-color: var(--gold); transform: translateY(-2px); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.bg-cream .pill { background: var(--paper); }

/* ---------- Steps (admissions) ---------- */
.steps { counter-reset: step; display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { counter-increment: step; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold);
  width: 52px; height: 52px; border: 1px solid var(--line-gold); border-radius: 50%; display: grid; place-items: center; flex: none; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h4 { font-size: 1.25rem; }
.step h4 + p { margin-top: 8px; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.checklist li svg { width: 22px; height: 22px; color: var(--moss); flex: none; margin-top: 2px; }
.checklist li strong { display: block; }
.checklist li span { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Gallery grid ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; grid-auto-flow: dense; }
.gallery .g-item { grid-column: span 4; }
.gallery .g-item.wide { grid-column: span 6; }
.gallery .g-item.tall .media { aspect-ratio: 3/4; }

/* ---------- Notable alumni feature ---------- */
.feature-dark { background: var(--forest); color: var(--cream); position: relative; overflow: hidden; }
.feature-dark .accolade { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-soft);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.feature-dark .accolade svg { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-height: 52px; width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(62,115,80,.16);
}
.field .err { font-size: .8rem; color: #b23b2e; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c2493b; box-shadow: 0 0 0 3px rgba(194,73,59,.12); }
.field.invalid .err { display: block; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.form-success { display: none; align-items: center; gap: 12px; padding: 16px 20px; background: rgba(62,115,80,.1);
  border: 1px solid rgba(62,115,80,.35); border-radius: var(--radius); color: var(--forest); font-weight: 500; }
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; }

/* Contact info list */
.contact-list { display: grid; gap: 26px; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.contact-list .ci { width: 50px; height: 50px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line-gold);
  display: grid; place-items: center; color: var(--forest); flex: none; }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-list a, .contact-list p { font-size: 1.12rem; color: var(--ink); margin-top: 4px; font-family: var(--font-display); }
.contact-list a:hover { color: var(--forest); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.9); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--forest); color: var(--cream); text-align: center; }
.cta-band__bg { position: absolute; inset: 0; opacity: .2; z-index: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(120% 120% at 50% 0%, rgba(46,87,57,.55), rgba(21,33,26,.9)); z-index: 1; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(246,240,227,.85); margin-top: 18px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #11201A; color: rgba(246,240,227,.7); padding-top: clamp(56px, 7vw, 90px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px,4vw,56px); padding-bottom: 56px; border-bottom: 1px solid rgba(246,240,227,.12); }
.footer-brand .brand__name { color: var(--paper); font-size: 1.5rem; }
.footer-brand .brand__sub { color: var(--gold-soft); }
.footer-brand p { margin-top: 18px; font-size: .95rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 20px; font-weight: 600; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .96rem; color: rgba(246,240,227,.72); transition: color .25s var(--ease), padding .25s var(--ease); }
.footer-col a:hover { color: var(--paper); padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; font-size: .96rem; margin-bottom: 14px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-soft); flex: none; margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 26px 0 34px; font-size: .85rem; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; border: 1px solid rgba(246,240,227,.2); border-radius: 50%; display: grid; place-items: center; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s; }
.footer-bottom .socials a:hover { background: var(--gold); border-color: var(--gold); color: #1c160a; }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- Reveal animations (GSAP-driven, CSS fallback) ---------- */
[data-reveal], [data-reveal-stagger] > * { will-change: transform, opacity; }
.no-js [data-reveal], .no-js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }

/* Motion failsafe — applied only when requestAnimationFrame is frozen
   (background/hidden tab or headless render) so content is never stuck hidden. */
.motion-failsafe [data-reveal],
.motion-failsafe [data-reveal-stagger] > *,
.motion-failsafe .hero h1 .line,
.motion-failsafe .hero__eyebrow,
.motion-failsafe .hero__sub,
.motion-failsafe .hero__cta > *,
.motion-failsafe .hero__stats > div,
.motion-failsafe .hero__scroll { opacity: 1 !important; transform: none !important; }

/* Decorative crest watermark */
.crest-watermark { position: absolute; opacity: .05; z-index: 0; pointer-events: none; color: var(--forest); }

/* ---------- Utility ---------- */
.stack-sm > * + * { margin-top: 14px; }
.stack > * + * { margin-top: 22px; }
.mt-0{margin-top:0}.mt-1{margin-top:14px}.mt-2{margin-top:26px}.mt-3{margin-top:40px}.mt-4{margin-top:56px}
.maxw-60 { max-width: 60ch; }
.relative { position: relative; }
.gold-text { color: var(--gold); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .nav, .nav-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stats .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .stats .stat:first-child, .stats .stat:nth-child(2) { border-top: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .message-card { grid-template-columns: 1fr; }
  .message-card .portrait { max-width: 240px; }
  .gallery .g-item, .gallery .g-item.wide { grid-column: span 6; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  /* Mobile: text is full-width, so darken evenly top-to-bottom */
  .hero__bg::after { background:
    linear-gradient(180deg, rgba(9,17,12,.66) 0%, rgba(9,17,12,.46) 30%, rgba(9,17,12,.5) 55%, rgba(9,17,12,.82) 100%); }
  .collage .collage__badge { width: 96px; height: 96px; right: 8px; bottom: -16px; }
  .gallery .g-item, .gallery .g-item.wide { grid-column: span 12; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion: neutralize transforms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; }
  .hero__bg img { height: 100%; }
}
