/* ═══════════════════════════════════════════════════════════════════
   Vidyalaya — public website.  2026 refresh.

   The identity stays: blackboard green, brass, and the four house
   colours strung across a section like sports-day ribbon. What changed
   is the execution.

   · OKLCH colour with tints derived by color-mix(), so the greens sit
     evenly against each other instead of being picked by eye.
   · Scroll-driven reveals with animation-timeline: view(). No JS, no
     IntersectionObserver, no library.
   · Cross-document view transitions between pages.
   · A real fluid type scale. The hero headline is set as one optical
     unit with tight tracking rather than a stack of sizes.
   · Dark mode, honoured from the visitor's own system setting.
   · Borders traded for whitespace and a hairline of elevation.

   All of it degrades: on an older browser the page is the same page,
   without the movement.
   ═══════════════════════════════════════════════════════════════════ */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .2s; }
::view-transition-new(root) { animation-duration: .2s; }
.site-head { view-transition-name: site-head; }

:root {
  color-scheme: light dark;

  --h-board: 168;
  --h-brass:  75;

  --board:    oklch(33% 0.055 var(--h-board));
  --board-hi: oklch(26% 0.050 var(--h-board));
  --brass:    oklch(56% 0.115 var(--h-brass));

  --house-red:    oklch(53% 0.170  27);
  --house-blue:   oklch(48% 0.130 253);
  --house-green:  oklch(52% 0.105 155);
  --house-yellow: oklch(72% 0.135  85);

  --surface: oklch(100% 0 0);
  --chalk:   oklch(97.4% 0.005 var(--h-board));
  --sunken:  oklch(95.5% 0.007 var(--h-board));

  --ink:   oklch(23% 0.018 255);
  --ink-2: oklch(46% 0.016 255);
  --ink-3: oklch(63% 0.014 255);

  --board-wash:  color-mix(in oklab, var(--board) 8%,  var(--surface));
  --board-wash2: color-mix(in oklab, var(--board) 15%, var(--surface));
  --brass-wash:  color-mix(in oklab, var(--brass) 13%, var(--surface));

  --line:   color-mix(in oklab, var(--ink) 11%, var(--chalk));
  --line-2: color-mix(in oklab, var(--ink) 6%,  var(--chalk));

  --ring:  0 0 0 1px color-mix(in oklab, var(--ink) 8%, transparent);
  --lift:  var(--ring), 0 1px 2px -1px oklch(23% 0.02 255 / .08),
                        0 6px 18px -6px oklch(23% 0.02 255 / .10);
  --lift-2:var(--ring), 0 3px 8px -3px oklch(23% 0.02 255 / .12),
                        0 18px 40px -12px oklch(23% 0.02 255 / .16);

  --slab: 'Zilla Slab', ui-serif, Georgia, serif;
  --sans: 'IBM Plex Sans', 'IBM Plex Sans Devanagari', ui-sans-serif,
          -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  /* One fluid scale, used everywhere */
  --t-xs:  .76rem;
  --t-sm:  .875rem;
  --t-md:  1rem;
  --t-lg:  1.09rem;
  --t-xl:  clamp(1.2rem,  1.1rem  + .35vw, 1.4rem);
  --t-2xl: clamp(1.6rem,  1.35rem + 1.1vw, 2.2rem);
  --t-3xl: clamp(2.1rem,  1.6rem  + 2.4vw, 3.3rem);

  --r-sm: 7px;
  --r:    11px;
  --r-lg: 16px;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 28px);

  --ease: cubic-bezier(.32, .72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --board:    oklch(74% 0.085 var(--h-board));
    --board-hi: oklch(19% 0.016 var(--h-board));
    --brass:    oklch(78% 0.115 var(--h-brass));

    --house-red:    oklch(68% 0.160  27);
    --house-blue:   oklch(68% 0.120 253);
    --house-green:  oklch(70% 0.110 155);
    --house-yellow: oklch(80% 0.135  85);

    --surface: oklch(21% 0.016 var(--h-board));
    --chalk:   oklch(17% 0.013 var(--h-board));
    --sunken:  oklch(24% 0.018 var(--h-board));

    --ink:   oklch(94% 0.008 var(--h-board));
    --ink-2: oklch(75% 0.012 var(--h-board));
    --ink-3: oklch(60% 0.012 var(--h-board));

    --board-wash:  color-mix(in oklab, var(--board) 13%, var(--surface));
    --board-wash2: color-mix(in oklab, var(--board) 20%, var(--surface));
    --brass-wash:  color-mix(in oklab, var(--brass) 15%, var(--surface));

    --line:   color-mix(in oklab, var(--ink) 17%, var(--chalk));
    --line-2: color-mix(in oklab, var(--ink) 10%, var(--chalk));

    --ring:  0 0 0 1px color-mix(in oklab, var(--ink) 12%, transparent);
    --lift:  var(--ring), 0 2px 8px -2px oklch(0% 0 0 / .45);
    --lift-2:var(--ring), 0 12px 34px -8px oklch(0% 0 0 / .55);
  }
}

/* Same design in hex, for browsers without oklch() */
@supports not (color: oklch(50% 0.1 200)) {
  :root {
    --board: #0E4F3F; --board-hi: #08322A; --brass: #B87514;
    --house-red: #C0392B; --house-blue: #1F5FA8;
    --house-green: #1B7A4B; --house-yellow: #D6A419;
    --surface: #FFFFFF; --chalk: #F4F7F5; --sunken: #EDF1EF;
    --ink: #16202E; --ink-2: #55677A; --ink-3: #8FA0AE;
    --board-wash: #E9F1EE; --board-wash2: #DCE9E4; --brass-wash: #FAF2E2;
    --line: #DCE5E1; --line-2: #EBF0ED;
    --ring: 0 0 0 1px rgba(22,32,46,.08);
    --lift: 0 0 0 1px rgba(22,32,46,.08), 0 6px 18px rgba(22,32,46,.08);
    --lift-2: 0 0 0 1px rgba(22,32,46,.08), 0 18px 40px rgba(22,32,46,.14);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  accent-color: var(--board);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--board); }
img { max-width: 100%; display: block; }
h1, h2, h3, .hero h1, .page-hero h1 { text-wrap: balance; }
p, .lede { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Scroll-driven reveal. One short move, on first sight only. ──── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-head, .cards, .album-grid, .photo-grid, .notice-list,
    .faculty-grid, .table-wrap, .form-card, .split > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ── The house rule: the one recurring device ─────────────────────── */
.house-rule { display: flex; height: 3px; width: 100%; }
.house-rule span { flex: 1; }
.house-rule span:nth-child(1) { background: var(--house-red); }
.house-rule span:nth-child(2) { background: var(--house-blue); }
.house-rule span:nth-child(3) { background: var(--house-green); }
.house-rule span:nth-child(4) { background: var(--house-yellow); }
.house-rule.short { max-width: 128px; height: 4px; border-radius: 99px; overflow: hidden; }

/* ── Header ──────────────────────────────────────────────────────── */
.site-top {
  background: var(--board-hi);
  color: color-mix(in oklab, var(--surface) 72%, var(--board));
  font-size: var(--t-xs); padding: 8px 0;
}
@media (prefers-color-scheme: dark) { .site-top { color: var(--ink-2); } }
.site-top .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-top a { color: inherit; text-decoration: none; }
.site-top a:hover { color: var(--brass); }
.site-top .sep { opacity: .4; margin: 0 8px; }

.site-head {
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; z-index: 40;
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-head { background: var(--surface); }
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 13px; padding-bottom: 13px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-seal img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.logo-seal {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px;
  background: var(--board-wash2); color: var(--board);
  display: grid; place-items: center;
  font-family: var(--slab); font-weight: 600; font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--board) 20%, transparent);
}
.logo-name {
  font-family: var(--slab); font-weight: 600; font-size: var(--t-xl);
  line-height: 1.14; letter-spacing: -.022em;
}
.logo-sub {
  font-size: var(--t-xs); letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 1px;
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 8px 12px; font-size: var(--t-sm); color: var(--ink-2);
  text-decoration: none; border-radius: var(--r-sm); font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.site-nav a:hover { color: var(--board); background: var(--board-wash); }
.site-nav a.active { color: var(--board); font-weight: 600; background: var(--board-wash); }
.site-nav a.active::after {
  content: ''; display: block; height: 2px; margin: 5px -4px -6px;
  background: var(--brass); border-radius: 2px;
}
.nav-toggle {
  display: none; background: var(--surface); border: 0; box-shadow: var(--ring);
  border-radius: var(--r-sm); padding: 9px 13px; font-size: 1rem;
  cursor: pointer; color: var(--board);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 21px; border-radius: var(--r-sm); border: 0;
  background: var(--board); color: var(--surface); text-decoration: none;
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 600;
  cursor: pointer; line-height: 1.3;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--board) 72%, black);
  transition: background .15s var(--ease), box-shadow .15s var(--ease),
              transform .1s var(--ease);
}
@media (prefers-color-scheme: dark) { .btn { color: oklch(19% 0.02 var(--h-board)); } }
.btn:hover { background: color-mix(in oklab, var(--board) 88%, black); box-shadow: var(--lift); }
@media (prefers-color-scheme: dark) {
  .btn:hover { background: color-mix(in oklab, var(--board) 88%, white); }
}
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--board);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--board) 40%, transparent);
}
.btn-ghost:hover { background: var(--board-wash); color: var(--board); box-shadow: inset 0 0 0 1.5px var(--board); }
.btn-brass {
  background: var(--brass); color: oklch(99% 0 0);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brass) 72%, black);
}
@media (prefers-color-scheme: dark) { .btn-brass { color: oklch(20% 0.03 var(--h-brass)); } }
.btn-brass:hover { background: color-mix(in oklab, var(--brass) 88%, black); }
.btn-sm { padding: 8px 15px; font-size: var(--t-xs); }

/* ── Hero: split, not a full-bleed banner ────────────────────────── */
.hero {
  background:
    radial-gradient(120% 90% at 88% 8%, var(--board-wash) 0%, transparent 58%),
    var(--chalk);
  border-bottom: 1px solid var(--line-2); overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.04fr 1fr;
  gap: clamp(28px, 5vw, 56px); align-items: center;
  padding: clamp(42px, 6vw, 76px) 0;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brass);
  background: var(--brass-wash); padding: 6px 13px; border-radius: 99px;
  margin-bottom: 22px;
}
.hero-kicker::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass); flex: 0 0 6px;
}
.hero h1 {
  font-family: var(--slab); font-size: var(--t-3xl);
  line-height: 1.06; font-weight: 600; letter-spacing: -.032em;
  margin: 0 0 20px; color: var(--ink);
}
.hero p.lede {
  font-size: var(--t-lg); color: var(--ink-2); max-width: 46ch; margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }

.hero-collage {
  display: grid; grid-template-columns: 1.22fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 12px;
  height: clamp(260px, 34vw, 420px);
}
.hero-collage figure {
  margin: 0; overflow: hidden; border-radius: var(--r-lg);
  background: var(--board-wash2); box-shadow: var(--lift);
}
.hero-collage figure:first-child { grid-row: span 2; }
.hero-collage img {
  width: 100%; height: 100%; object-fit: cover;
  transition: scale .6s var(--ease);
}
.hero-collage figure:hover img { scale: 1.04; }

/* ── At a glance: real numbers from the office system ─────────────── */
.glance { background: var(--board-hi); color: oklch(99% 0 0); }
@media (prefers-color-scheme: dark) { .glance { color: var(--ink); } }
.glance-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: clamp(28px, 4vw, 40px) 0;
}
.glance-n {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 600;
  letter-spacing: -.045em; line-height: 1; color: inherit;
}
.glance-l {
  font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in oklab, var(--surface) 58%, var(--board-hi));
  margin-top: 10px; font-weight: 500;
}
@media (prefers-color-scheme: dark) { .glance-l { color: var(--ink-3); } }

/* ── Sections ────────────────────────────────────────────────────── */
.section { padding: clamp(46px, 6.5vw, 78px) 0; }
.section.tint { background: var(--chalk); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.eyebrow {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 12px;
}
.section h2 {
  font-family: var(--slab); font-size: var(--t-2xl);
  font-weight: 600; letter-spacing: -.026em; line-height: 1.14;
  margin: 0 0 15px; color: var(--ink);
}
.section h2 + .house-rule.short { margin-bottom: 20px; }
.section p { color: var(--ink-2); margin: 0 0 15px; }
.section p.big { font-size: var(--t-lg); }

.page-hero {
  background:
    radial-gradient(100% 80% at 90% 0%, var(--board-wash) 0%, transparent 60%),
    var(--chalk);
  padding: clamp(34px, 4.5vw, 54px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-2);
}
.page-hero h1 {
  font-family: var(--slab); font-size: var(--t-2xl);
  font-weight: 600; letter-spacing: -.028em; margin: 14px 0 13px;
  color: var(--ink); line-height: 1.12;
}
.page-hero p { font-size: var(--t-lg); color: var(--ink-2); max-width: 62ch; margin: 0; }
.crumb { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: .02em; }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--board); }

/* ── Cards ───────────────────────────────────────────────────────── */
.cards { display: grid; gap: 20px; }
.cards.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards.c3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.cards.c4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 25px; height: 100%; box-shadow: var(--lift);
  container-type: inline-size;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.cards .card:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }
.card.tinted { background: var(--chalk); box-shadow: var(--ring); }
.card h3 {
  font-family: var(--slab); font-size: var(--t-lg); font-weight: 600;
  margin: 0 0 10px; color: var(--ink); letter-spacing: -.015em;
}
.card p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--board-wash2); color: var(--board);
  display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 16px;
  font-weight: 600;
}

/* ── Gallery ─────────────────────────────────────────────────────── */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 22px; }
.album {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--lift);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.album:hover { box-shadow: var(--lift-2); transform: translateY(-3px); text-decoration: none; }
.album:hover .album-title { color: var(--board); }
.album-img {
  aspect-ratio: 4 / 3; background: var(--board-wash2);
  overflow: hidden; position: relative;
}
.album-img img {
  width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease);
}
.album:hover .album-img img { scale: 1.05; }
.album-count {
  position: absolute; bottom: 10px; right: 10px;
  background: color-mix(in oklab, var(--board-hi) 88%, transparent);
  color: oklch(99% 0 0);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: var(--t-xs);
  padding: 4px 10px; border-radius: 99px;
}
.album-body { padding: 16px 18px 19px; }
.album-cat {
  font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass); font-weight: 700;
}
.album-title {
  font-family: var(--slab); font-size: var(--t-lg); font-weight: 600;
  margin: 7px 0 4px; letter-spacing: -.015em; transition: color .15s var(--ease);
}
.album-date { font-size: var(--t-xs); color: var(--ink-3); font-family: var(--mono); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  padding: 8px 16px; border-radius: 99px; border: 0; box-shadow: var(--ring);
  font-size: var(--t-sm); color: var(--ink-2); text-decoration: none;
  background: var(--surface); transition: box-shadow .15s var(--ease), color .15s var(--ease);
}
.chip:hover { color: var(--board); box-shadow: inset 0 0 0 1px var(--board); text-decoration: none; }
.chip.active {
  background: var(--board); color: var(--surface); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--board);
}
@media (prefers-color-scheme: dark) { .chip.active { color: oklch(19% 0.02 var(--h-board)); } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
.photo {
  border-radius: var(--r); overflow: hidden; background: var(--chalk);
  cursor: zoom-in; box-shadow: var(--ring);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
  margin: 0;
}
.photo:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }
.photo-img { aspect-ratio: 4 / 3; overflow: hidden; }
.photo-img img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { padding: 10px 13px; font-size: var(--t-sm); color: var(--ink-2); }

.lightbox {
  position: fixed; inset: 0;
  background: oklch(12% 0.012 var(--h-board) / .95);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; place-items: center; z-index: 90; padding: 26px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 82vh; border-radius: var(--r); }
.lightbox figcaption {
  color: oklch(84% 0.01 var(--h-board)); text-align: center;
  margin-top: 16px; font-size: var(--t-sm); font-family: var(--sans);
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px; background: none; border: 0;
  color: oklch(99% 0 0); font-size: 2rem; cursor: pointer; line-height: 1;
  width: 44px; height: 44px;
}

/* ── Notices ─────────────────────────────────────────────────────── */
.notice-list { border-top: 1px solid var(--line-2); }
.notice {
  display: grid; grid-template-columns: 108px 1fr auto; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line-2); align-items: start;
}
.notice-date {
  font-family: var(--mono); font-size: var(--t-sm); color: var(--brass);
  font-weight: 500; padding-top: 3px;
}
.notice h3 {
  font-family: var(--slab); font-size: var(--t-lg); font-weight: 600;
  margin: 0 0 6px; letter-spacing: -.015em;
}
.notice p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.tag {
  font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; background: var(--board-wash);
  color: var(--board); white-space: nowrap;
}

/* ── Tables ──────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--lift); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-sm); background: var(--surface); }
table.tbl th {
  text-align: left; padding: 13px 17px; background: var(--chalk);
  font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 700; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td { padding: 13px 17px; border-bottom: 1px solid var(--line-2); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr { transition: background .15s var(--ease); }
table.tbl tbody tr:hover { background: var(--chalk); }
table.tbl td.num, table.tbl th.num {
  font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right;
}
table.tbl th.num { font-family: var(--sans); }

/* ── Faculty ─────────────────────────────────────────────────────── */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.teacher {
  border-radius: var(--r-lg); padding: 21px; display: flex; gap: 15px;
  align-items: flex-start; background: var(--surface); box-shadow: var(--lift);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.teacher:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }
.teacher-initial {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px;
  background: var(--board); color: var(--surface); display: grid; place-items: center;
  font-family: var(--slab); font-size: 1.2rem; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .teacher-initial { color: oklch(19% 0.02 var(--h-board)); } }
.teacher-name { font-weight: 600; font-size: var(--t-md); line-height: 1.3; letter-spacing: -.012em; }
.teacher-role { font-size: var(--t-sm); color: var(--board); margin-top: 3px; }
.teacher-qual { font-size: var(--t-xs); color: var(--ink-3); margin-top: 3px; }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--lift);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--house-red); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--sans); font-size: var(--t-md); color: var(--ink);
  background: var(--surface); transition: box-shadow .15s var(--ease);
}
input:hover, select:hover, textarea:hover {
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 20%, var(--chalk));
}
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--board),
              0 0 0 4px color-mix(in oklab, var(--board) 15%, transparent);
}
input:user-invalid, textarea:user-invalid {
  box-shadow: inset 0 0 0 1px var(--house-red),
              0 0 0 4px color-mix(in oklab, var(--house-red) 13%, transparent);
}
.field:has(:focus-visible) label { color: var(--board); }
textarea { min-height: 100px; resize: vertical; field-sizing: content; }
.hint { font-size: var(--t-xs); color: var(--ink-3); margin-top: 6px; }

.alert {
  padding: 15px 18px; border-radius: var(--r); margin-bottom: 22px;
  font-size: var(--t-sm); display: flex; gap: 11px; align-items: flex-start;
  background: var(--surface); box-shadow: var(--lift);
}
.alert::before { content: ''; width: 3px; align-self: stretch; border-radius: 3px; flex: 0 0 3px; }
.alert.ok::before  { background: var(--house-green); }
.alert.err::before { background: var(--house-red); }
.alert.ok  { color: color-mix(in oklab, var(--house-green) 80%, var(--ink)); }
.alert.err { color: color-mix(in oklab, var(--house-red) 80%, var(--ink)); }

/* ── CTA band ────────────────────────────────────────────────────── */
.cta {
  background: var(--board-hi); color: oklch(99% 0 0);
  padding: clamp(40px, 5vw, 62px) 0; position: relative; overflow: hidden;
}
@media (prefers-color-scheme: dark) { .cta { color: var(--ink); } }
/* Ruled notebook lines — the same texture as the office login screen */
.cta::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom,
    transparent 0 33px, color-mix(in oklab, var(--surface) 5%, transparent) 33px 34px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
}
.cta .wrap {
  position: relative; z-index: 1; display: flex; gap: 30px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta h2 {
  font-family: var(--slab); font-size: var(--t-2xl); font-weight: 600;
  margin: 0 0 9px; color: inherit; letter-spacing: -.026em; line-height: 1.14;
}
.cta p {
  color: color-mix(in oklab, var(--surface) 62%, var(--board-hi));
  margin: 0; max-width: 52ch;
}
@media (prefers-color-scheme: dark) { .cta p { color: var(--ink-2); } }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-foot {
  background: oklch(20% 0.014 255); color: oklch(70% 0.012 255);
  font-size: var(--t-sm); padding: clamp(36px, 4.5vw, 52px) 0 0;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px; padding-bottom: 38px;
}
.site-foot h4 {
  color: oklch(99% 0 0); font-size: var(--t-xs); letter-spacing: .13em;
  text-transform: uppercase; margin: 0 0 15px; font-weight: 700;
}
.site-foot a { color: inherit; text-decoration: none; display: block; padding: 4px 0; }
.site-foot a:hover { color: oklch(99% 0 0); }
.foot-name {
  font-family: var(--slab); font-size: var(--t-xl); color: oklch(99% 0 0);
  font-weight: 600; margin-bottom: 10px; letter-spacing: -.02em;
}
.foot-bottom {
  border-top: 1px solid oklch(32% 0.012 255); padding: 18px 0;
  font-size: var(--t-xs); display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.social { display: flex; gap: 9px; margin-top: 14px; }
.social a {
  width: 36px; height: 36px; border-radius: 11px;
  box-shadow: inset 0 0 0 1px oklch(36% 0.012 255);
  display: grid; place-items: center; padding: 0; font-size: var(--t-xs);
  transition: box-shadow .15s var(--ease), color .15s var(--ease);
}
.social a:hover { box-shadow: inset 0 0 0 1px var(--brass); color: var(--brass); }

/* How parents actually contact a school */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  background: oklch(60% 0.15 148); color: oklch(99% 0 0); border-radius: 99px;
  padding: 13px 20px; font-weight: 600; font-size: var(--t-sm);
  text-decoration: none; box-shadow: 0 6px 22px oklch(30% 0.06 148 / .35);
  display: flex; align-items: center; gap: 8px;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.wa-float:hover {
  transform: translateY(-2px); color: oklch(99% 0 0);
  box-shadow: 0 10px 28px oklch(30% 0.06 148 / .45);
}

/* ── Utility ─────────────────────────────────────────────────────── */
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: var(--t-sm); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.slab { font-family: var(--slab); }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt32 { margin-top: 32px; }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.stack-list { list-style: none; padding: 0; margin: 0; }
.stack-list li {
  padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line-2);
  position: relative; font-size: var(--t-sm); color: var(--ink-2);
}
.stack-list li::before {
  content: ''; position: absolute; left: 0; top: 21px;
  width: 13px; height: 2px; background: var(--brass); border-radius: 2px;
}
.stack-list li:last-child { border-bottom: none; }
.empty-note {
  padding: 48px 24px; text-align: center; color: var(--ink-2);
  border-radius: var(--r-lg); background: var(--chalk);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .glance-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px;
    box-shadow: var(--lift-2);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav a.active::after { display: none; }
  .nav-toggle { display: block; }
  .notice { grid-template-columns: 1fr; gap: 7px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; height: 190px; }
  .hero-collage figure:first-child { grid-row: span 1; }
  .hero-collage figure:nth-child(3) { display: none; }
}

/* ── Accessibility floor ─────────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
  @view-transition { navigation: none; }
}

@media print {
  .site-top, .site-nav, .nav-toggle, .wa-float, .cta, .hero-collage { display: none !important; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .card, .table-wrap, .form-card, .teacher { box-shadow: none; border: 1px solid #ccc; }
}
