/* ==========================================================================
   SRM PUBLIC SCHOOL · SARAVANAMPATTI · COIMBATORE
   Design system: V1 Heritage Olive on white · Marcellus + Karla
   A heritage crest in a modern gallery.
   ========================================================================== */

/* ---------- Fonts (self hosted) ---------- */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/karla-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --canvas: #FFFFFF;
  --parchment: #F2EEDF;
  --mist: #DDDBC4;
  --sage-tint: #B9B78E;
  --wordmark-sage: #808048;
  --crest-olive: #4E4820;
  --deep-grove: #2E2C15;
  --slate-ink: #24241E;
  --brass: #B4924E;
  --brass-soft: #D8BC7E;
  --terracotta: #B0592F;

  --font-display: 'Marcellus', 'Georgia', 'Times New Roman', serif;
  --font-text: 'Karla', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-play: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-soft: 0 2px 18px rgba(29, 40, 24, 0.14);
  --shadow-lift: 0 8px 24px rgba(29, 40, 24, 0.14);

  --content-max: 1200px;
  --gutter: 24px;
  --side: 80px;

  --nav-h: 76px;
  --bar-h: 44px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.625;
  color: var(--slate-ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--brass-soft); color: var(--deep-grove); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--deep-grove); color: var(--parchment);
  padding: 12px 20px; font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 400; color: var(--deep-grove); }
.display-xl { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.08; letter-spacing: -0.01em; }
.display-l  { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.11; letter-spacing: -0.005em; }
.display-m  { font-size: clamp(26px, 3vw, 38px);  line-height: 1.21; }
.display-s  { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.29; }
.body-l { font-size: 18px; line-height: 1.667; }
.small { font-size: 14px; line-height: 1.57; font-weight: 500; }

.eyebrow {
  display: block;
  font-family: var(--font-text);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.eyebrow.olive { color: var(--wordmark-sage); }

/* Brass rule: the site's signature. Draws on scroll into view. */
.brass-rule {
  display: block; width: 52px; height: 2px;
  background: var(--brass);
  margin: 0 0 22px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.5s var(--ease-settle);
}
.in-view .brass-rule, .brass-rule.drawn { transform: scaleX(1); }
.centered .brass-rule { margin-left: auto; margin-right: auto; transform-origin: center; }

/* ---------- Layout ---------- */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--side); }
.section { padding: 130px 0; position: relative; }
.section.tight { padding: 90px 0; }
.section.parchment { background: var(--parchment); }
.section.grove { background: var(--deep-grove); }
.section.grove h2, .section.grove h3, .section.grove .display-m, .section.grove .display-s { color: var(--parchment); }
.section.grove p { color: rgba(242, 238, 223, 0.85); }
.centered { text-align: center; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; }
.section-head .lead { font-size: 18px; line-height: 1.667; margin-top: 18px; color: var(--slate-ink); }
.section.grove .section-head .lead { color: rgba(242, 238, 223, 0.85); }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Reveal choreography ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease-settle), transform 0.65s var(--ease-settle); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease-settle), transform 0.65s var(--ease-settle); }
.reveal-group.in-view > * { opacity: 1; transform: none; }
.reveal-group.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.in-view > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group.in-view > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group.in-view > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-group.in-view > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-group.in-view > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-group.in-view > *:nth-child(8) { transition-delay: 0.56s; }
.reveal-group.in-view > *:nth-child(9) { transition-delay: 0.64s; }
.reveal-group.in-view > *:nth-child(10) { transition-delay: 0.72s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-text);
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: background-color 0.3s var(--ease-settle), color 0.3s var(--ease-settle),
              border-color 0.3s var(--ease-settle), transform 0.3s var(--ease-settle),
              box-shadow 0.3s var(--ease-settle);
  will-change: transform;
}
.btn-primary { background: var(--crest-olive); color: var(--parchment); }
.btn-primary:hover { background: #5d5426; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(216, 188, 126, 0.35), transparent);
  transform: skewX(-20deg); transition: none; pointer-events: none;
}
.btn-primary:hover::after { left: 130%; transition: left 0.7s var(--ease-settle); }
.btn-ghost { border-color: var(--crest-olive); color: var(--crest-olive); background: transparent; }
.btn-ghost:hover { background: var(--crest-olive); color: var(--parchment); transform: translateY(-2px); }
.btn-light { border-color: var(--brass-soft); color: var(--parchment); }
.btn-light:hover { background: var(--brass); border-color: var(--brass); color: var(--deep-grove); transform: translateY(-2px); }
.btn-brass { background: var(--brass); color: var(--deep-grove); }
.btn-brass:hover { background: var(--brass-soft); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.text-link {
  font-weight: 700; color: var(--crest-olive);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.text-link:hover { color: var(--brass); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--deep-grove); color: var(--parchment);
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  position: relative; z-index: 1001;
}
.announce-inner {
  max-width: var(--content-max); margin: 0 auto; padding: 0 var(--side);
  min-height: var(--bar-h);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  text-align: center;
}
.announce a { color: var(--brass-soft); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; white-space: nowrap; }
.announce a:hover { color: var(--parchment); }
.announce-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--sage-tint); font-size: 18px; line-height: 1; padding: 6px; }
.announce-close:hover { color: var(--parchment); }
.announce.dismissed { display: none; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mist);
  transition: box-shadow 0.3s var(--ease-settle);
}
.nav.scrolled { box-shadow: var(--shadow-soft); }
.nav-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 32px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-brand img { height: 46px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-text .nb-title { font-family: var(--font-display); font-size: 17px; color: var(--crest-olive); letter-spacing: 0.02em; }
.nav-brand-text .nb-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wordmark-sage); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 13.5px; font-weight: 600; color: var(--slate-ink);
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.25s var(--ease-settle);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--crest-olive); }
.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 12px 22px; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--crest-olive); transition: transform 0.3s var(--ease-settle), opacity 0.3s; }

/* Mobile panel */
.mobile-panel {
  position: fixed; inset: 0; z-index: 1002;
  background: var(--crest-olive);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-settle);
  display: flex; flex-direction: column;
  padding: 28px 28px 40px;
  overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel::before {
  content: ''; position: absolute; right: -60px; bottom: -40px; width: 420px; height: 420px;
  background: url('../img/crest-light.png') no-repeat center / contain;
  opacity: 0.07; pointer-events: none;
}
.mp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.mp-top img { height: 48px; }
.mp-close { color: var(--parchment); font-size: 30px; line-height: 1; padding: 8px; }
.mobile-panel nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-panel nav a {
  font-family: var(--font-display); font-size: 28px; color: var(--parchment);
  padding: 10px 0; border-bottom: 1px solid rgba(242, 238, 223, 0.12);
  opacity: 0; transform: translateX(24px);
  transition: opacity 0.4s var(--ease-settle), transform 0.4s var(--ease-settle), color 0.25s;
}
.mobile-panel.open nav a { opacity: 1; transform: none; }
.mobile-panel nav a:hover, .mobile-panel nav a[aria-current="page"] { color: var(--brass-soft); }
.mobile-panel .btn { margin-top: 32px; align-self: flex-start; }

/* ---------- Page transition veil ---------- */
.veil {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--crest-olive);
  transform: translateY(101%);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.veil img { width: 74px; opacity: 0.9; }
.veil.wipe-in { animation: veilIn 0.4s var(--ease-settle) forwards; }
.veil.wipe-out { animation: veilOut 0.5s var(--ease-settle) forwards; }
@keyframes veilIn { from { transform: translateY(101%); } to { transform: translateY(0); } }
@keyframes veilOut { from { transform: translateY(0); } to { transform: translateY(-101%); } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--canvas);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  transition: transform 0.7s var(--ease-settle);
}
.loader-rule { width: 0; height: 2px; background: var(--brass); transition: width 0.6s var(--ease-settle); }
.loader.rule-on .loader-rule { width: 120px; }
.loader-word { font-family: var(--font-display); font-size: clamp(34px, 5vw, 54px); color: var(--crest-olive); letter-spacing: 0.06em; display: flex; }
.loader-word span { opacity: 0; transform: translateY(14px); transition: opacity 0.35s var(--ease-settle), transform 0.35s var(--ease-settle); }
.loader-word.on span { opacity: 1; transform: none; }
.loader-sub { font-size: 13px; font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase; color: var(--brass); opacity: 0; transition: opacity 0.5s 0.1s; }
.loader-tag { font-size: 14px; color: var(--wordmark-sage); font-style: normal; opacity: 0; transition: opacity 0.5s 0.2s; }
.loader.text-on .loader-sub, .loader.text-on .loader-tag { opacity: 1; }
.loader.done { transform: translateY(-100%); }
.loader[hidden] { display: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--canvas);
  border: 1px solid var(--mist);
  padding: 34px 30px;
  position: relative;
  transition: transform 0.35s var(--ease-settle), box-shadow 0.35s var(--ease-settle), border-color 0.35s var(--ease-settle);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--sage-tint); }
.card .card-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-display); font-size: 44px; color: var(--crest-olive); opacity: 0.14;
  pointer-events: none;
}
.card h3 { margin-bottom: 12px; }
.card .card-rule { display: block; width: 34px; height: 2px; background: var(--brass); margin-bottom: 16px; transition: width 0.35s var(--ease-settle); }
.card:hover .card-rule { width: 46px; }
.card p { font-size: 15.5px; color: var(--slate-ink); }

/* ---------- Stat tiles ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.stat-tile {
  background: var(--parchment);
  padding: 34px 28px;
  text-align: left;
}
.stat-tile .stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 56px);
  color: var(--crest-olive);
  line-height: 1.05;
  display: flex; align-items: baseline; gap: 4px;
}
.stat-tile .stat-num .unit { font-size: 0.55em; color: var(--brass); }
.stat-tile .stat-label { margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-ink); }
.stat-tile.on-grove { background: rgba(242, 238, 223, 0.07); }
.stat-tile.on-grove .stat-num { color: var(--brass-soft); }
.stat-tile.on-grove .stat-label { color: rgba(242, 238, 223, 0.8); }

/* ---------- Tags / chips ---------- */
.chip {
  display: inline-block;
  border-radius: 5px;
  background: rgba(185, 183, 142, 0.2);
  color: var(--wordmark-sage);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Image frames ---------- */
.frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--mist);
  background: var(--parchment);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-settle); }
.frame:hover img { transform: scale(1.04); }
.frame::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: var(--crest-olive);
  transform: translateX(0);
  transition: transform 0.7s var(--ease-settle);
}
.frame.in-view::before, .frame.wiped::before { transform: translateX(101%); }
.frame::after {
  content: ''; position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; z-index: 3;
  border-top: 2px solid var(--brass); border-left: 2px solid var(--brass);
  opacity: 0; transition: opacity 0.3s var(--ease-settle);
  pointer-events: none;
}
.frame:hover::after { opacity: 1; }
.frame figcaption, .figcap {
  font-size: 13.5px; font-weight: 500; color: var(--wordmark-sage);
  padding: 10px 2px 0;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding: 34px 0;
  border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist);
  position: relative;
}
.marquee-track { display: inline-flex; align-items: center; gap: 40px; animation: marquee 90s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(26px, 3vw, 42px); color: var(--slate-ink); opacity: 0.12; }
.marquee-track i { width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); flex-shrink: 0; opacity: 0.7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Quote block ---------- */
.quote {
  border-left: 2px solid var(--brass);
  padding: 8px 0 8px 28px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: var(--crest-olive);
}

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--mist); }
.acc-item { border-bottom: 1px solid var(--mist); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left; padding: 22px 4px;
  font-family: var(--font-display); font-size: 19px; color: var(--deep-grove);
  transition: color 0.25s;
}
.acc-btn:hover { color: var(--brass); }
.acc-btn .chev { flex-shrink: 0; transition: transform 0.35s var(--ease-settle); color: var(--brass); }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease-settle); }
.acc-panel-inner { padding: 0 4px 24px; max-width: 720px; color: var(--slate-ink); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--crest-olive); }
.field label .req { color: var(--brass); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--slate-ink);
  background: var(--canvas);
  border: 1px solid var(--mist);
  padding: 15px 16px;
  border-radius: 0;
  transition: border-color 0.25s var(--ease-settle), box-shadow 0.25s var(--ease-settle);
  width: 100%;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B4924E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(180, 146, 78, 0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .error-msg { display: none; font-size: 13px; color: var(--terracotta); font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--terracotta); }
.field.invalid .error-msg { display: block; }
.form-consent { font-size: 13.5px; color: var(--wordmark-sage); display: flex; gap: 10px; align-items: flex-start; }
.form-consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--crest-olive); flex-shrink: 0; }
.form-note { font-size: 13px; color: var(--wordmark-sage); }
.form-success {
  border: 1px solid var(--sage-tint);
  background: var(--parchment);
  padding: 34px;
  text-align: center;
}
.form-success .tick { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--crest-olive); }
.form-success .tick path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: tickDraw 0.7s var(--ease-settle) 0.15s forwards; }
@keyframes tickDraw { to { stroke-dashoffset: 0; } }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- Page hero (inner tabs) ---------- */
.page-hero {
  padding: 110px 0 80px;
  position: relative;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(242, 238, 223, 0.9), transparent 65%),
    var(--canvas);
  overflow: hidden;
}
.page-hero .crest-wm {
  position: absolute; right: -70px; top: 40px; width: 380px; opacity: 0.05; pointer-events: none;
  user-select: none;
}
.page-hero h1 { max-width: 820px; }
.page-hero .sub { margin-top: 20px; font-size: 18px; max-width: 640px; color: var(--slate-ink); }

/* ---------- Footer ---------- */
.footer {
  background: var(--deep-grove); color: var(--parchment);
  padding: 96px 0 0;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; right: -80px; bottom: -60px; width: 520px; height: 520px;
  background: url('../img/crest-light.png') no-repeat center / contain;
  opacity: 0.04; pointer-events: none;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  position: relative;
}
.footer h4 { color: var(--brass-soft); font-family: var(--font-text); font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px; }
.footer-about img { height: 60px; margin-bottom: 20px; }
.footer-about p { font-size: 14.5px; line-height: 1.7; color: rgba(242, 238, 223, 0.75); max-width: 340px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14.5px; color: rgba(242, 238, 223, 0.82); transition: color 0.25s; }
.footer ul a:hover { color: var(--brass-soft); }
.footer ul .muted { color: rgba(242, 238, 223, 0.45); font-size: 14.5px; }
.footer-contact { margin-top: 56px; padding: 28px 0; border-top: 1px solid rgba(242, 238, 223, 0.14); display: flex; flex-wrap: wrap; gap: 12px 48px; font-size: 14px; color: rgba(242, 238, 223, 0.75); position: relative; }
.footer-contact a { color: var(--brass-soft); }
.footer-base {
  border-top: 1px solid rgba(242, 238, 223, 0.14);
  padding: 22px 0 26px; margin-top: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: rgba(242, 238, 223, 0.55);
  position: relative;
}
.footer-base .tagline { font-family: var(--font-display); color: var(--brass-soft); font-size: 14px; letter-spacing: 0.06em; }

/* ---------- Number list (steps, values) ---------- */
.seal {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; color: var(--crest-olive);
  background: var(--canvas);
  flex-shrink: 0;
  transition: background-color 0.4s var(--ease-settle), color 0.4s var(--ease-settle), border-color 0.4s;
}
.seal.filled { background: var(--crest-olive); color: var(--parchment); border-color: var(--crest-olive); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 46px; height: 46px;
  background: var(--crest-olive); color: var(--parchment);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background-color 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--brass); color: var(--deep-grove); }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 1500;
  max-width: 380px;
  background: var(--canvas); border: 1px solid var(--mist);
  box-shadow: var(--shadow-lift);
  padding: 22px 24px;
  font-size: 13.5px; line-height: 1.6;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-settle), transform 0.4s var(--ease-settle);
}
.cookie.show { opacity: 1; transform: none; pointer-events: auto; }
.cookie .btn { padding: 10px 18px; margin-top: 14px; }

/* ==========================================================================
   HOME · Walkthrough hero (scroll scrubbed campus journey)
   ========================================================================== */
.walkthrough { position: relative; height: 520vh; background: var(--deep-grove); }
.wt-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.wt-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wt-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(20, 20, 10, 0.42) 100%); }

/* Opening overlay: crisp crest + name over the fuzzy filmed crest */
.wt-open {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background: radial-gradient(60% 50% at 50% 46%, rgba(46, 44, 21, 0.38), rgba(46, 44, 21, 0.66) 100%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.wt-open img { width: clamp(150px, 22vw, 250px); filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.35)); }
.wt-open .wt-school { margin-top: 26px; font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 58px); color: #FDFBF3; letter-spacing: 0.05em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.wt-open .wt-place { margin-top: 10px; font-size: clamp(11px, 1.3vw, 14px); font-weight: 700; letter-spacing: 0.5em; text-transform: uppercase; color: var(--brass-soft); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.wt-open .wt-tag { margin-top: 18px; font-size: 15px; color: rgba(253, 251, 243, 0.85); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }

/* Scroll cue */
.wt-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(253, 251, 243, 0.85);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.wt-cue .cue-line { width: 1.5px; height: 44px; background: linear-gradient(var(--brass-soft), transparent); position: relative; overflow: hidden; }
.wt-cue .cue-line::after { content: ''; position: absolute; top: -40%; left: 0; width: 100%; height: 40%; background: #FDFBF3; animation: cueDrop 1.8s var(--ease-settle) infinite; }
@keyframes cueDrop { 0% { top: -40%; } 70%, 100% { top: 110%; } }

/* Waypoint captions during the journey */
.wt-caption {
  position: absolute; left: 6vw; bottom: 12vh; z-index: 5;
  max-width: 420px;
  opacity: 0; transform: translateY(18px);
  pointer-events: none;
}
.wt-caption .wt-cap-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-soft); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.wt-caption .wt-cap-rule { width: 44px; height: 2px; background: var(--brass); margin: 10px 0 12px; }
.wt-caption .wt-cap-text { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 30px); line-height: 1.3; color: #FDFBF3; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }

/* Arrival: headline over the entrance */
.wt-arrive {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: flex-end;
  padding: 0 6vw 11vh;
  opacity: 0;
  background: linear-gradient(to top, rgba(24, 24, 12, 0.62) 0%, rgba(24, 24, 12, 0.18) 45%, transparent 70%);
  pointer-events: none;
}
.wt-arrive .wt-arrive-inner { max-width: 780px; pointer-events: auto; }
.wt-arrive .eyebrow { color: var(--brass-soft); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.wt-arrive h1 { color: #FDFBF3; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55); }
.wt-arrive .wt-sub { margin-top: 18px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; color: rgba(253, 251, 243, 0.9); max-width: 620px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.wt-arrive .wt-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Journey progress rail */
.wt-rail { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 0; }
.wt-rail .rail-track { width: 1.5px; height: 180px; background: rgba(253, 251, 243, 0.25); position: relative; }
.wt-rail .rail-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--brass); }
.wt-rail .rail-label { margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(253, 251, 243, 0.6); writing-mode: vertical-rl; }

/* Reduced motion fallback for hero */
.wt-static { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.wt-static img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home: learning arc connector ---------- */
.arc-wrap { position: relative; }
.arc-line { position: absolute; top: 44px; left: 4%; width: 92%; height: 2px; background: var(--mist); z-index: 0; }
.arc-line .arc-fill { display: block; height: 100%; width: 0; background: var(--brass); transition: width 1.4s var(--ease-settle); }
.arc-wrap.in-view .arc-fill { width: 100%; }

/* ---------- Home: habitat preview icons ---------- */
.habitat-icons { display: flex; flex-wrap: wrap; gap: 14px; }
.habitat-icons .h-icon {
  width: 64px; height: 64px; border: 1px solid var(--mist); background: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  color: var(--wordmark-sage);
  animation: breathe 6s ease-in-out infinite;
}
.habitat-icons .h-icon:nth-child(2) { animation-delay: 0.8s; }
.habitat-icons .h-icon:nth-child(3) { animation-delay: 1.6s; }
.habitat-icons .h-icon:nth-child(4) { animation-delay: 2.4s; }
.habitat-icons .h-icon:nth-child(5) { animation-delay: 3.2s; }
.habitat-icons .h-icon:nth-child(6) { animation-delay: 4s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ==========================================================================
   ABOUT · timeline, values flip, campuses
   ========================================================================== */
.timeline { position: relative; padding-left: 42px; max-width: 760px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--mist); }
.timeline .tl-fill { position: absolute; left: 8px; top: 6px; width: 2px; height: 0; background: var(--brass); }
.tl-item { position: relative; padding-bottom: 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -40px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--canvas); border: 2px solid var(--brass);
}
.tl-item .tl-year { font-family: var(--font-display); font-size: 26px; color: var(--brass); margin-bottom: 6px; }
.tl-item h3 { margin-bottom: 8px; }

.flip-card { perspective: 900px; }
.flip-card .card { transform-style: preserve-3d; }
.reveal-group .flip-card { opacity: 0; transform: rotateY(60deg) translateY(10px); transition: opacity 0.6s var(--ease-settle), transform 0.6s var(--ease-settle); }
.reveal-group.in-view .flip-card { opacity: 1; transform: none; }

.campus-pin-card { border: 1px solid var(--mist); padding: 30px; background: var(--canvas); transition: transform 0.35s var(--ease-settle), box-shadow 0.35s var(--ease-settle); }
.campus-pin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.campus-pin-card .pin { color: var(--brass); margin-bottom: 14px; }
.campus-pin-card.future { border-style: dashed; }

.letter {
  background: var(--parchment);
  border: 1px solid var(--mist);
  padding: 44px 42px;
  position: relative;
}
.letter .letter-initial { float: left; font-family: var(--font-display); font-size: 64px; line-height: 0.9; color: var(--brass); padding: 6px 12px 0 0; }
.letter .letter-sign { margin-top: 22px; font-family: var(--font-display); color: var(--crest-olive); font-size: 17px; }
.letter .letter-role { font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wordmark-sage); margin-top: 4px; }

/* ==========================================================================
   ACADEMICS · pinned stages + plane
   ========================================================================== */
.stages-pin { position: relative; }
.stages-track { display: flex; gap: var(--gutter); will-change: transform; }
.stage-panel {
  flex: 0 0 min(460px, 78vw);
  background: var(--canvas); border: 1px solid var(--mist);
  padding: 40px 36px;
  position: relative;
}
.stage-panel .stage-num { font-family: var(--font-display); font-size: 60px; color: var(--crest-olive); opacity: 0.12; position: absolute; top: 16px; right: 24px; }
.stage-panel .stage-ages { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.stage-panel h3 { margin-bottom: 14px; }
.stage-panel p { font-size: 15.5px; }
.stage-panel .chip-row { margin-top: 20px; }
.plane-path { position: absolute; top: -30px; left: 0; width: 100%; height: 60px; pointer-events: none; overflow: visible; }

.stream-card { position: relative; transition: transform 0.35s var(--ease-settle), box-shadow 0.35s var(--ease-settle), opacity 0.35s; }
.streams:hover .stream-card { opacity: 0.55; }
.streams .stream-card:hover { opacity: 1; transform: translateY(-6px); box-shadow: var(--shadow-lift); }

/* ==========================================================================
   THE SRM WAY · KASH cube, STREAM tilt, wheel
   ========================================================================== */
.kash-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.cube-stage { perspective: 1100px; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.kash-cube { position: relative; width: 250px; height: 250px; transform-style: preserve-3d; transition: transform 0.9s var(--ease-settle); }
.kash-cube.idle { animation: cubeIdle 14s linear infinite; }
@keyframes cubeIdle { from { transform: rotateX(-18deg) rotateY(0deg); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.cube-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--brass);
  background: rgba(255, 255, 255, 0.94);
  backface-visibility: hidden;
}
.cube-face .cf-letter { font-family: var(--font-display); font-size: 92px; line-height: 1; }
.cube-face .cf-word { font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate-ink); }
.cube-face.f-k { transform: translateZ(125px); }
.cube-face.f-a { transform: rotateY(90deg) translateZ(125px); }
.cube-face.f-s { transform: rotateY(180deg) translateZ(125px); }
.cube-face.f-h { transform: rotateY(-90deg) translateZ(125px); }
.cube-face.f-top { transform: rotateX(90deg) translateZ(125px); background: var(--parchment); }
.cube-face.f-bottom { transform: rotateX(-90deg) translateZ(125px); background: var(--parchment); }
.cube-face.f-top img, .cube-face.f-bottom img { width: 90px; opacity: 0.5; }
.f-k .cf-letter { color: var(--crest-olive); }
.f-a .cf-letter { color: var(--brass); }
.f-s .cf-letter { color: var(--wordmark-sage); }
.f-h .cf-letter { color: var(--deep-grove); }

.kash-tabs { display: flex; gap: 10px; margin-bottom: 26px; }
.kash-tab {
  flex: 1; padding: 14px 10px;
  border: 1px solid var(--mist);
  font-family: var(--font-display); font-size: 24px;
  color: var(--wordmark-sage);
  transition: all 0.3s var(--ease-settle);
}
.kash-tab:hover { border-color: var(--brass); color: var(--crest-olive); }
.kash-tab.active { background: var(--crest-olive); color: var(--parchment); border-color: var(--crest-olive); }
.kash-detail h3 { margin-bottom: 6px; }
.kash-detail .kash-sub { color: var(--wordmark-sage); font-size: 15px; margin-bottom: 18px; }
.kash-detail ul { display: flex; flex-direction: column; gap: 10px; }
.kash-detail ul li { display: flex; align-items: center; gap: 12px; font-size: 16px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease-settle), transform 0.4s var(--ease-settle); }
.kash-detail ul li.on { opacity: 1; transform: none; }
.kash-detail ul li::before { content: ''; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); flex-shrink: 0; }

.tilt-card { transform-style: preserve-3d; will-change: transform; }
.tilt-card .stream-letter { font-family: var(--font-display); font-size: 46px; color: var(--brass); line-height: 1; margin-bottom: 10px; }

.wheel-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.skill-wheel { position: relative; width: min(380px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.skill-wheel .wheel-ring { position: absolute; inset: 0; border: 1.5px dashed var(--sage-tint); border-radius: 50%; animation: wheelSpin 46s linear infinite; }
.skill-wheel:hover .wheel-ring { animation-play-state: paused; }
.skill-wheel .wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--crest-olive); color: var(--parchment);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-size: 15px; line-height: 1.25; padding: 12px;
}
@keyframes wheelSpin { to { transform: rotate(360deg); } }
.wheel-spoke {
  position: absolute; top: 50%; left: 50%;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--canvas); border: 1px solid var(--mist);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-ink);
  transition: transform 0.3s var(--ease-play), border-color 0.3s, box-shadow 0.3s;
}
.wheel-spoke svg { color: var(--wordmark-sage); }
.wheel-spoke:hover { transform: scale(1.14) !important; border-color: var(--brass); box-shadow: var(--shadow-soft); z-index: 3; }

/* ==========================================================================
   WELLNESS · portals + leaves
   ========================================================================== */
.wellness-hero { background: linear-gradient(180deg, var(--parchment), var(--canvas) 70%); }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.portal {
  position: relative; overflow: hidden;
  border: 1px solid var(--mist);
  aspect-ratio: 4 / 4.6;
  cursor: pointer;
}
.portal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-settle); }
.portal:hover img { transform: scale(1.05); }
.portal .portal-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 28, 14, 0.78) 0%, rgba(28, 28, 14, 0.12) 55%, transparent 75%); transition: background 0.4s; }
.portal .portal-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: #FDFBF3; z-index: 2; }
.portal .portal-num { font-family: var(--font-display); font-size: 15px; color: var(--brass-soft); }
.portal h3 { color: #FDFBF3; font-size: 23px; margin: 6px 0 8px; }
.portal .portal-desc { font-size: 14px; line-height: 1.6; color: rgba(253, 251, 243, 0.88); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease-settle), opacity 0.5s var(--ease-settle); }
.portal:hover .portal-desc, .portal:focus-within .portal-desc { max-height: 130px; opacity: 1; }
.portal .chip { position: absolute; top: 18px; left: 18px; z-index: 2; background: rgba(242, 238, 223, 0.92); }

.leaf { position: fixed; top: -40px; z-index: 500; pointer-events: none; color: var(--sage-tint); opacity: 0.5; }

/* ==========================================================================
   CAMPUS · facilities + gallery
   ========================================================================== */
.facility-card { display: flex; flex-direction: column; gap: 0; }
.facility-card .frame { aspect-ratio: 16 / 10; }
.facility-card .fc-body { border: 1px solid var(--mist); border-top: none; padding: 24px 26px; flex: 1; background: var(--canvas); }
.facility-card h3 { font-size: 21px; margin-bottom: 8px; }
.facility-card p { font-size: 14.5px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--mist);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-ink);
  transition: all 0.3s var(--ease-settle);
}
.filter-btn:hover { border-color: var(--brass); color: var(--crest-olive); }
.filter-btn.active { background: var(--crest-olive); color: var(--parchment); border-color: var(--crest-olive); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.gallery-item { transition: opacity 0.4s var(--ease-settle), transform 0.4s var(--ease-settle); }
.gallery-item.hide { display: none; }
.gallery-item .frame { aspect-ratio: 4 / 3; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2500;
  background: rgba(24, 24, 12, 0.92);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease-settle);
  padding: 40px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; object-fit: contain; border: 1px solid rgba(216, 188, 126, 0.4); }
.lightbox .lb-cap { color: var(--parchment); font-size: 14.5px; }
.lightbox .lb-close { position: absolute; top: 26px; right: 30px; color: var(--parchment); font-size: 34px; line-height: 1; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--parchment); font-size: 40px; padding: 20px; opacity: 0.75; }
.lightbox .lb-nav:hover { opacity: 1; color: var(--brass-soft); }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }

/* Transport hover bus */
.route-line { stroke-dasharray: 6 7; animation: routeDash 1.2s linear infinite paused; }
.facility-card:hover .route-line { animation-play-state: running; }
@keyframes routeDash { to { stroke-dashoffset: -13; } }

/* ==========================================================================
   ADMISSIONS · rocket path
   ========================================================================== */
.admission-path { position: relative; max-width: 860px; margin: 0 auto; }
.path-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.path-svg .path-base { stroke: var(--mist); stroke-width: 2; fill: none; }
.path-svg .path-draw { stroke: var(--brass); stroke-width: 2.5; fill: none; }
.rocket-marker { position: absolute; top: 0; left: 0; width: 46px; height: 46px; z-index: 5; will-change: transform; filter: drop-shadow(0 4px 10px rgba(46, 44, 21, 0.3)); }
.step-row {
  display: flex; gap: 26px; align-items: flex-start;
  padding: 42px 0;
  position: relative; z-index: 2;
  max-width: 560px;
}
.step-row:nth-child(even) { margin-left: auto; text-align: right; flex-direction: row-reverse; }
.step-row h3 { font-size: 22px; margin-bottom: 6px; }
.step-row p { font-size: 15px; color: var(--slate-ink); }

/* ==========================================================================
   SCHOOL LIFE
   ========================================================================== */
.news-card { border: 1px solid var(--mist); padding: 32px 30px; background: var(--canvas); display: flex; flex-direction: column; gap: 14px; transition: transform 0.35s var(--ease-settle), box-shadow 0.35s var(--ease-settle); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.news-card .chip { align-self: flex-start; }
.slide-left { transform: translateX(-40px); opacity: 0; transition: all 0.7s var(--ease-settle); }
.slide-right { transform: translateX(40px); opacity: 0; transition: all 0.7s var(--ease-settle); }
.slide-left.in-view, .slide-right.in-view { transform: none; opacity: 1; }

.rhythm-band { overflow: hidden; }
.rhythm-track { display: flex; gap: var(--gutter); will-change: transform; }
.rhythm-card { flex: 0 0 min(400px, 80vw); background: var(--canvas); border: 1px solid var(--mist); padding: 34px 30px; }
.rhythm-card .r-season { color: var(--brass); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.contact-card { border: 1px solid var(--mist); padding: 26px 28px; margin-bottom: 18px; background: var(--canvas); transition: transform 0.3s var(--ease-settle), box-shadow 0.3s var(--ease-settle); }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.contact-card h3 svg { color: var(--brass); flex-shrink: 0; }
.contact-card p, .contact-card a { font-size: 15px; line-height: 1.7; }
.contact-card a { color: var(--crest-olive); font-weight: 600; }
.contact-card a:hover { color: var(--brass); }
.map-band { position: relative; }
.map-band .frame { aspect-ratio: 21 / 9; }
.map-band .map-actions { margin-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Document pages (disclosure, privacy, terms) ---------- */
.doc-page { max-width: 780px; margin: 0 auto; padding: 90px var(--side) 120px; }
.doc-page h1 { margin-bottom: 16px; }
.doc-page h2 { font-size: 24px; margin: 44px 0 12px; }
.doc-page p, .doc-page li { font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; }
.doc-page ul { list-style: disc; padding-left: 22px; }
.doc-page table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.doc-page th, .doc-page td { border: 1px solid var(--mist); padding: 10px 14px; text-align: left; font-size: 14.5px; }
.doc-page th { background: var(--parchment); font-weight: 700; }

/* ---------- 404 ---------- */
.page-404 { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.page-404 .display-xl { color: var(--crest-olive); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12.5px; }
}
@media (max-width: 1024px) {
  :root { --side: 40px; }
  .section { padding: 96px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .kash-layout, .wheel-wrap, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  :root { --side: 20px; --nav-h: 64px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-tile { padding: 24px 20px; }
  .portal-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-brand-text .nb-title { font-size: 14px; }
  .nav-brand-text .nb-sub { font-size: 9px; }
  .nav-cta { display: none; }
  .step-row, .step-row:nth-child(even) { margin: 0; text-align: left; flex-direction: row; max-width: 100%; padding: 26px 0; }
  .wt-caption { left: 20px; right: 20px; bottom: 15vh; }
  .wt-rail { display: none; }
  .wt-arrive { padding: 0 20px 13vh; }
  .announce-inner { padding: 8px 44px; font-size: 12px; flex-direction: column; gap: 4px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .to-top { right: 16px; bottom: 16px; }
  .letter { padding: 30px 24px; }
  .timeline { padding-left: 34px; }
  .doc-page { padding: 60px 20px 80px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-group > *, .slide-left, .slide-right, .flip-card { opacity: 1 !important; transform: none !important; }
  .brass-rule { transform: scaleX(1); }
  .frame::before { transform: translateX(101%); }
  .marquee-track { animation: none; }
  .kash-cube.idle { animation: none; transform: rotateX(-18deg) rotateY(-24deg); }
}

/* ---------- Print (admissions checklists) ---------- */
@media print {
  .announce, .nav, .footer, .to-top, .cookie, .veil, .loader, .wt-cue, .mobile-panel, .btn { display: none !important; }
  body { color: #000; }
  .section { padding: 24px 0; }
  .page-hero { padding: 20px 0; }
  a[href]::after { content: ''; }
}

/* ==========================================================================
   2027/28 content refresh · new components
   ========================================================================== */

/* ---------- ASPIRE values · flip letters ---------- */
.aspire-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.aspire-card { perspective: 800px; aspect-ratio: 3 / 3.6; cursor: default; }
.aspire-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease-settle);
}
.aspire-card:hover .aspire-inner, .aspire-card:focus-visible .aspire-inner { transform: rotateY(180deg); }
.aspire-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--mist); background: var(--canvas); padding: 12px; text-align: center;
}
.aspire-face.front .letter { font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); color: var(--crest-olive); line-height: 1; }
.aspire-face.front .hint { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-tint); }
.aspire-face.back { transform: rotateY(180deg); background: var(--crest-olive); border-color: var(--crest-olive); }
.aspire-face.back .word { font-family: var(--font-display); font-size: clamp(14px, 1.4vw, 19px); color: var(--parchment); }
.aspire-face.back .line { font-size: 11.5px; line-height: 1.45; color: rgba(242, 238, 223, 0.8); }

/* ---------- Seven promises ---------- */
.promise-celebrate {
  background: var(--deep-grove); border: 1px solid var(--deep-grove);
  display: flex; flex-direction: column; justify-content: center;
}
.promise-celebrate h3 { color: var(--brass-soft); }
.promise-celebrate p { color: rgba(242, 238, 223, 0.85); }
.promise-celebrate .card-rule { background: var(--brass); }

/* ---------- Wellness Oasis orbit ---------- */
.oasis-orbit .wheel-hub { width: 128px; height: 128px; background: var(--crest-olive); font-size: 17px; }
.oasis-orbit .wheel-spoke { width: 104px; height: 104px; margin: -52px 0 0 -52px; font-size: 10px; text-align: center; padding: 8px; gap: 2px; }
.oasis-orbit .wheel-spoke .sp-tag { color: var(--brass); font-size: 9px; letter-spacing: 0.16em; }

/* ---------- Experience Station mini town ---------- */
.town-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.town-card {
  border: 1px solid var(--mist); background: var(--canvas);
  padding: 22px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-ink);
  transition: transform 0.3s var(--ease-play), border-color 0.3s, box-shadow 0.3s;
}
.town-card svg { color: var(--wordmark-sage); }
.town-card:hover { transform: translateY(-5px); border-color: var(--brass); box-shadow: var(--shadow-soft); }

/* ---------- Admissions grade ribbon ---------- */
.grade-ribbon { border: 1px solid var(--mist); background: var(--canvas); }
.grade-cells { display: grid; grid-template-columns: repeat(11, 1fr); }
.grade-cells span {
  padding: 16px 4px; text-align: center;
  font-family: var(--font-display); font-size: clamp(13px, 1.4vw, 19px); color: var(--crest-olive);
  border-right: 1px solid var(--mist);
  transition: background-color 0.25s, color 0.25s;
}
.grade-cells span:last-child { border-right: none; }
.grade-cells span:hover { background: var(--crest-olive); color: var(--parchment); }
.grade-bands { display: grid; grid-template-columns: 3fr 5fr 3fr; border-top: 1px solid var(--mist); }
.grade-bands span { padding: 10px 4px; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wordmark-sage); background: var(--parchment); }
.grade-bands span + span { border-left: 1px solid var(--mist); }

/* ---------- Lab hero cards ---------- */
.lab-card { background: var(--canvas); border: 1px solid var(--mist); padding: 36px 32px; position: relative; overflow: hidden; transition: transform 0.35s var(--ease-settle), box-shadow 0.35s var(--ease-settle), border-color 0.35s; }
.lab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--sage-tint); }
.lab-card svg { color: var(--brass); margin-bottom: 16px; }
.lab-card .lab-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wordmark-sage); margin-top: 8px; }

@media (max-width: 1024px) {
  .aspire-grid { grid-template-columns: repeat(3, 1fr); }
  .town-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .aspire-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grade-cells span { padding: 12px 2px; }
  .grade-bands span { font-size: 8.5px; letter-spacing: 0.1em; }
}
@media (prefers-reduced-motion: reduce) {
  .aspire-inner { transition: none; }
}
