/* ==========================================================================
   Qadat Al-Ummah Schools — مدارس قادة الأمة
   Design tokens, base, layout, components
   ========================================================================== */

:root {
  /* Brand palette (client-supplied) */
  --green: #0C3534;
  --green-2: #0F2E2E;
  --green-3: #0C221D;
  --gold: #D8BF81;
  --gold-2: #C1A478;
  --bg: #F6F6F2;
  --surface: #F4F5EF;
  --gray: #96948A;

  /* Derived */
  --white: #FFFFFF;
  --ink: #0C221D;
  --ink-2: #4A514D;            /* muted body text, 7:1 on --bg */
  --line: rgba(12, 53, 52, 0.14);
  --line-gold: rgba(216, 191, 129, 0.35);
  --green-tint: rgba(12, 53, 52, 0.06);
  --gold-tint: rgba(216, 191, 129, 0.18);

  /* Type */
  /* One family for everything: Almarai (Arabic, humanist sans, round terminals)
     with Inter for Latin glyphs. In LTR the order flips so Latin metrics lead. */
  --font-body: "Almarai", "Inter", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Almarai", "Inter", "Segoe UI", Tahoma, sans-serif;

  --fs-0: 0.875rem;
  --fs-1: 1rem;
  --fs-2: 1.125rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-5: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-6: clamp(2.6rem, 1.8rem + 3.6vw, 5rem);

  /* Space (4pt rhythm) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
  --dur-slow: 480ms;

  /* Slant direction: 1 for RTL, -1 for LTR */
  --slant: 1;
}

[dir="ltr"] {
  --slant: -1;
  --font-body: "Inter", "Almarai", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Inter", "Almarai", "Segoe UI", Tahoma, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-1);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  touch-action: manipulation;
}

[dir="ltr"] body { line-height: 1.6; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--s-4);
  color: var(--green);
  text-wrap: balance;
}

[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-6); line-height: 1.2; }
h2 { font-size: var(--fs-5); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }

p { margin: 0 0 var(--s-4); max-width: 68ch; }
p.lead { font-size: var(--fs-2); color: var(--ink-2); }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green-3); }

img { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; }

button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--s-4);
  top: -100px;
  z-index: 1000;
  background: var(--gold);
  color: var(--green-3);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--dark { background: var(--green); color: var(--surface); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(246, 246, 242, 0.8); }
.section--surface { background: var(--surface); }

.section-head { margin-bottom: var(--s-7); max-width: 60ch; }
.section-head p { color: var(--ink-2); }
.section--dark .section-head p { color: rgba(246, 246, 242, 0.75); }

/* Where a heading wants a small gold mark under it */
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: var(--s-4);
  background: var(--gold);
  transform: skewX(calc(-28deg * var(--slant)));
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; }

.btn--gold { background: var(--gold); color: var(--green-3); }
.btn--gold:hover { background: var(--gold-2); color: var(--green-3); }

.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-3); color: var(--white); }

.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: var(--white); }

.btn--outline-light { border-color: rgba(255,255,255,0.45); color: var(--white); background: transparent; }
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold); }

.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: var(--fs-0); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  text-decoration: none;
  color: var(--green);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(calc(-4px * var(--slant))); }
.section--dark .link-arrow { color: var(--gold); }

/* Directional arrow: points "forward" in reading direction */
[dir="rtl"] .icon--arrow { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .icon--arrow { transform: scaleX(-1) translateX(4px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--green);
}
.brand__logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  display: block;
  white-space: nowrap;
}
.brand { min-width: 0; }
.brand > span { min-width: 0; }
@media (max-width: 480px) {
  .brand { gap: var(--s-2); }
  .brand__name { font-size: 0.9rem; line-height: 1.15; white-space: normal; text-wrap: balance; }
  .header .brand__tag { display: none; }
  .brand__logo { width: 40px; height: 40px; flex: 0 0 auto; }
  .header__inner { gap: var(--s-3); }
  .header__actions { flex: 0 0 auto; gap: var(--s-2); }
  .lang-toggle__btn { min-width: 36px; padding: 0 var(--s-2); }
  .menu-btn { width: 44px; height: 44px; }
}
[dir="ltr"] .brand__name { font-family: var(--font-body); font-size: 1.05rem; }
.brand__tag {
  display: block;
  font-size: 0.72rem;
  color: var(--gold-2);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav__list {
  display: flex;
  gap: var(--s-1);
  list-style: none;
  margin: 0; padding: 0;
}
.nav > .btn { display: none; }
.nav__link {
  display: inline-block;
  white-space: nowrap;
  padding: var(--s-2) var(--s-3);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-radius: var(--radius);
  position: relative;
  transition: color var(--dur);
}
.nav__link:hover { color: var(--green); background: var(--green-tint); }
.nav__link[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: var(--s-3);
  bottom: 2px;
  height: 2px;
  background: var(--gold);
}

.header__actions { display: flex; align-items: center; gap: var(--s-3); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.lang-toggle__btn {
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 34px;
  padding: 0 var(--s-3);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-0);
  color: var(--ink-2);
  transition: background var(--dur), color var(--dur);
}
.lang-toggle__btn[aria-pressed="true"] { background: var(--green); color: var(--white); }

.menu-btn {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon--close { display: none; }
.menu-btn[aria-expanded="true"] .icon--menu { display: none; }
.menu-btn[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .nav {
    /* absolute (not fixed): the header's backdrop-filter would otherwise
       become the containing block and collapse a fixed drawer */
    position: absolute;
    top: 100%;
    inset-inline: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-5) var(--gutter);
    gap: var(--s-4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
    overflow-y: auto;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: var(--s-3) var(--s-3); font-size: var(--fs-2); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav > .btn { display: inline-flex; justify-content: center; }
  .header__actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  min-height: min(calc(100vh - var(--header-h)), 820px);
  min-height: min(calc(100dvh - var(--header-h)), 820px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.hero__text {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__place {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-2);
  font-size: var(--fs-0);
  margin-bottom: var(--s-5);
}
.hero__place::before {
  content: "";
  width: 40px; height: 2px;
  background: var(--gold);
  transform: skewX(calc(-28deg * var(--slant)));
}

.hero__title {
  font-size: var(--fs-6);
  margin-bottom: var(--s-4);
  color: var(--green);
}
.hero__title-main { display: block; }
.hero__title-sub {
  display: block;
  color: var(--gold-2);
  font-size: 0.5em;
  font-family: var(--font-body);
  font-weight: 500;
  margin-top: var(--s-3);
  line-height: 1.35;
}

.hero__lead {
  font-size: var(--fs-2);
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: var(--s-6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* The tagline as a giant Kufi watermark — the one bold move on the page */
.hero__mark {
  position: absolute;
  inset-inline-start: -0.08em;
  bottom: -0.22em;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 22vw, 20rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
[dir="ltr"] .hero__mark { font-family: var(--font-display); }

.hero__media {
  position: relative;
  min-height: 420px;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}
[dir="ltr"] .hero__media { clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%); }

.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.55), rgba(12, 34, 29, 0) 55%);
}

/* A gold sliver following the slanted edge */
.hero__media::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset-block: 0;
  inset-inline-start: 0;
  width: 14%;
  background: linear-gradient(to right, transparent calc(100% - 8px), var(--gold) calc(100% - 8px));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0;
}

.hero__badge {
  position: absolute;
  z-index: 3;
  bottom: var(--s-6);
  inset-inline-end: var(--s-6);
  background: rgba(12, 53, 52, 0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: var(--s-4) var(--s-5);
  border-inline-start: 3px solid var(--gold);
  max-width: 300px;
}
.hero__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-3);
  color: var(--gold);
  line-height: 1.2;
}
[dir="ltr"] .hero__badge strong { font-family: var(--font-body); }
.hero__badge span { font-size: var(--fs-0); opacity: 0.85; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding-inline: var(--gutter); order: 2; padding-block: var(--s-7) var(--s-8); }
  .hero__media { order: 1; min-height: 52vw; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  [dir="ltr"] .hero__media { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%); }
  .hero__badge { display: none; }
  .hero__mark { font-size: clamp(7rem, 30vw, 12rem); }
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  background: var(--green);
  color: var(--white);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--s-6) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  border-inline-start: 1px solid rgba(216, 191, 129, 0.3);
}
.stat:first-child { border-inline-start: 0; }
.stat__icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  color: var(--gold);
}
.stat__icon .icon { width: 100%; height: 100%; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-4);
  color: var(--gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
[dir="ltr"] .stat__num { font-family: var(--font-body); }
.stat__label { display: block; font-size: var(--fs-0); opacity: 0.85; }

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-inline-start: 0; border-top: 1px solid rgba(216, 191, 129, 0.3); padding: var(--s-5) var(--s-4); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-inline-start: 1px solid rgba(216, 191, 129, 0.3); }
}

/* Home strip (.stats--glow): near-black green, large centred numbers with the
   icon beside them and the label centred underneath, hairline dividers, and a
   gold spotlight that follows the pointer (--mx/--my are set by js/main.js). */
.stats--glow { background: #00160f; }
.stats--glow .stats__grid { width: calc(100% - 2 * clamp(var(--gutter), 5.3vw, 100px)); }
.stats--glow .stat {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3rem, 4.6vw, 5.5rem) var(--s-5);
  justify-content: center;
  gap: clamp(1.25rem, 2vw, 2.4rem);
  text-align: center;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.085);
}
.stats--glow .stat:first-child { border-inline-start: 0; }
.stats--glow .stat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle clamp(200px, 17vw, 320px) at var(--mx, 50%) var(--my, 50%),
    rgba(216, 191, 129, 0.26) 0%, rgba(216, 191, 129, 0.12) 40%, rgba(216, 191, 129, 0) 76%);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}
.stats--glow .stat:hover::before { opacity: 1; }
.stats--glow .stat__icon {
  width: clamp(32px, 2.45vw, 46px);
  height: clamp(32px, 2.45vw, 46px);
}
.stats--glow .stat__num { font-size: clamp(2.75rem, 4.6vw, 5.4rem); line-height: 1.05; }
.stats--glow .stat__label { margin-top: 0.35rem; font-size: 0.95rem; opacity: 1; color: rgba(246, 246, 242, 0.78); }

@media (max-width: 900px) {
  .stats--glow .stat { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, 0.085); padding: var(--s-6) var(--s-4); gap: var(--s-4); }
  .stats--glow .stat:nth-child(-n+2) { border-top: 0; }
  .stats--glow .stat:nth-child(even) { border-inline-start: 1px solid rgba(255, 255, 255, 0.085); }
  .stats--glow .stat__num { font-size: 2.5rem; }
  .stats--glow .stat__label { font-size: var(--fs-0); }
}

/* --------------------------------------------------------------------------
   About (home)
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-3);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.55), transparent 50%);
  pointer-events: none;
}
.media-frame__caption {
  position: absolute;
  z-index: 2;
  bottom: var(--s-4);
  inset-inline-start: var(--s-5);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--fs-2);
}
[dir="ltr"] .media-frame__caption { font-family: var(--font-body); font-style: italic; }

.play-btn {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--green-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(216, 191, 129, 0.28);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 16px rgba(216, 191, 129, 0.22); }
.play-btn .icon { width: 28px; height: 28px; margin-inline-start: 3px; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--line);
}
.pillar:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.pillar__icon {
  width: 40px; height: 40px;
  color: var(--gold-2);
  margin-bottom: var(--s-3);
}
.pillar__icon .icon { width: 100%; height: 100%; }
.pillar h3 { font-size: var(--fs-2); margin-bottom: var(--s-2); }
.pillar p { font-size: var(--fs-0); color: var(--ink-2); margin: 0; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(odd) { border-inline-end: 0; }
}

/* --------------------------------------------------------------------------
   Stages
   -------------------------------------------------------------------------- */
.stages-bg {
  position: relative;
  background: var(--green-2);
  overflow: hidden;
}
.stages-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/school/kg-firefighters.jpg") center / cover no-repeat;
  opacity: 0.10;
}
.stages-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, var(--green-3) 0%, rgba(12, 46, 46, 0.6) 100%);
}
.stages-bg > .container { position: relative; z-index: 1; }

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.stage {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  background: var(--green-3);
  isolation: isolate;
}
.stage img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.stage:hover img { transform: scale(1.04); }
.stage::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.92) 0%, rgba(12, 34, 29, 0.35) 45%, rgba(12, 34, 29, 0) 70%);
}
.stage__body {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  bottom: 0;
  padding: var(--s-5);
}
.stage__grade {
  display: inline-block;
  font-size: var(--fs-0);
  color: var(--gold);
  margin-bottom: var(--s-1);
}
.stage h3 {
  color: var(--white);
  margin-bottom: var(--s-2);
  font-size: var(--fs-3);
}
.stage p { font-size: var(--fs-0); color: rgba(246, 246, 242, 0.8); margin: 0; }
.stage__go {
  position: absolute;
  z-index: 2;
  top: var(--s-4);
  inset-inline-end: var(--s-4);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur), transform var(--dur) var(--ease-out);
}
.stage__go .icon { width: 18px; height: 18px; }
.stage:hover .stage__go, .stage:focus-visible .stage__go { opacity: 1; transform: none; }

.stages-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}

@media (max-width: 1023px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stages-intro { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 480px) {
  .stages { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--gold);
  color: var(--green-3);
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-6);
  padding-block: var(--s-7);
}
.cta-band h2 { color: var(--green-3); margin-bottom: var(--s-2); }
.cta-band p { color: rgba(12, 34, 29, 0.8); margin: 0; }
.cta-band__mark {
  position: absolute;
  inset-inline-end: -0.1em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14rem;
  line-height: 1;
  color: var(--green-3);
  opacity: 0.06;
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .cta-band__inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.news-head .section-head { margin-bottom: 0; }

.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.news-card:hover { border-color: var(--gold-2); }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: var(--s-5); }
.news-card time {
  display: block;
  font-size: var(--fs-0);
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: var(--s-2);
  font-variant-numeric: tabular-nums;
}
.news-card h3 { font-size: var(--fs-2); margin-bottom: var(--s-2); }
.news-card p { font-size: var(--fs-0); color: var(--ink-2); margin: 0; }

@media (max-width: 900px) {
  .news { grid-template-columns: 1fr; }
  .news-head { flex-direction: column; align-items: start; }
}

/* --------------------------------------------------------------------------
   Page banner (inner pages)
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: end;
  color: var(--white);
  background: var(--green-3);
  overflow: hidden;
  isolation: isolate;
}
.banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.banner::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.92) 0%, rgba(12, 53, 52, 0.55) 55%, rgba(12, 53, 52, 0.25) 100%);
}
.banner__inner { padding-block: var(--s-8) var(--s-7); }
.banner h1 { color: var(--white); font-size: var(--fs-5); margin-bottom: var(--s-3); }
.banner h1 span { display: block; color: var(--gold); font-size: 0.7em; margin-top: var(--s-2); }
.banner p { color: rgba(246, 246, 242, 0.85); max-width: 56ch; margin: 0; }

.crumbs {
  display: flex;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  font-size: var(--fs-0);
  color: rgba(246, 246, 242, 0.75);
}
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs li + li::before { content: "/"; margin-inline-end: var(--s-2); opacity: 0.5; }

/* Sub navigation pills (About page) */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.subnav__list {
  display: flex;
  gap: var(--s-2);
  list-style: none;
  margin: 0; padding: var(--s-3) 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__link {
  display: inline-block;
  white-space: nowrap;
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  border: 1px solid transparent;
}
.subnav__link:hover { color: var(--green); background: var(--green-tint); }
.subnav__link.is-active { background: var(--green); color: var(--white); }

/* --------------------------------------------------------------------------
   Generic two-column prose block
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--narrow-media { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
@media (max-width: 900px) { .split, .split--narrow-media { grid-template-columns: 1fr; } }

/* Aside card for vision/mission/values on About */
.aside-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  border: 1px solid var(--line);
}
.aside-card + .aside-card { margin-top: var(--s-4); }
.aside-card__row { display: flex; gap: var(--s-4); }
.aside-card__row + .aside-card__row { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.aside-card__icon {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
}
.aside-card__icon .icon { width: 24px; height: 24px; }
.aside-card h3 { font-size: var(--fs-2); margin-bottom: var(--s-1); }
.aside-card p { font-size: var(--fs-0); color: var(--ink-2); margin: 0; }

/* Values grid */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.value {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  border-top: 3px solid var(--gold);
}
.value h3 { font-size: var(--fs-2); margin-bottom: var(--s-2); }
.value p { font-size: var(--fs-0); color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* Leadership */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  text-align: center;
}
.person__mono {
  width: 88px; height: 88px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  display: flex; align-items: center; justify-content: center;
}
[dir="ltr"] .person__mono { font-family: var(--font-body); }
.person h3 { font-size: var(--fs-2); margin-bottom: var(--s-1); }
.person p { font-size: var(--fs-0); color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }

.quote {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
}
.quote__mark {
  position: absolute;
  top: -0.1em;
  inset-inline-start: var(--s-4);
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
  pointer-events: none;
}
.quote blockquote { margin: 0; position: relative; }
.quote blockquote p { font-size: var(--fs-3); font-family: var(--font-display); color: var(--white); line-height: 1.6; }
[dir="ltr"] .quote blockquote p { font-family: var(--font-body); font-weight: 500; }
.quote cite { display: block; font-style: normal; color: var(--gold); margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   Admissions
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  position: relative;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--s-4);
}
[dir="ltr"] .step::before { font-family: var(--font-body); }
.step h3 { font-size: var(--fs-2); margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-0); color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.checklist {
  list-style: none;
  margin: 0; padding: 0;
}
.checklist li {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.checklist .icon {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  color: var(--gold-2);
  margin-top: 3px;
}

.info-note {
  background: var(--gold-tint);
  border-inline-start: 3px solid var(--gold);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  font-size: var(--fs-0);
  color: var(--ink);
}
.info-note p { margin: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-5);
}
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-weight: 600; font-size: var(--fs-0); }
.field label .req { color: #B23A3A; margin-inline-start: 2px; }
.field input, .field select, .field textarea {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--dur), background var(--dur);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--gold-2);
  outline-offset: 0;
  border-color: var(--gold-2);
  background: var(--white);
}
.field .hint { font-size: 0.8rem; color: var(--ink-2); }
.field .error {
  display: none;
  font-size: 0.8rem;
  color: #B23A3A;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #B23A3A; }
.field.is-invalid .error { display: block; }

fieldset.field {
  border: 0; padding: 0; margin: 0;
}
fieldset.field legend { font-weight: 600; font-size: var(--fs-0); padding: 0; margin-bottom: var(--s-2); }
.radio-row { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 400; min-height: 44px; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--green); }

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}
.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  margin-top: var(--s-5);
  font-size: var(--fs-0);
}
.form-status.is-visible { display: flex; }
.form-status--ok { background: var(--green-tint); color: var(--green); border: 1px solid rgba(12, 53, 52, 0.25); }
.form-status--err { background: rgba(178, 58, 58, 0.08); color: #8E2E2E; border: 1px solid rgba(178, 58, 58, 0.3); }
.form-status .icon { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .icon-wrap {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; margin-bottom: 2px; }
.contact-list span, .contact-list a { color: var(--ink-2); direction: ltr; unicode-bidi: isolate; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--green); text-decoration: underline; }
.contact-list .rtl { direction: inherit; }

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 9;
  /* no min-height: with aspect-ratio it transfers into a min-width and
     forces the page wider than a phone screen */
  background: var(--surface);
}
@media (max-width: 900px) { .map { aspect-ratio: 4 / 3; } }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.socials { display: flex; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--green);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.socials a:hover { background: var(--green); color: var(--gold); border-color: var(--green); }
.socials .icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--green-3);
  color: rgba(246, 246, 242, 0.8);
  padding-block: var(--s-8) var(--s-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(216, 191, 129, 0.2);
}
.footer .brand { color: var(--white); margin-bottom: var(--s-4); }
.footer .brand__tag { color: var(--gold); }
.footer p { font-size: var(--fs-0); max-width: 40ch; }
.footer h4 { color: var(--gold); font-size: var(--fs-1); margin-bottom: var(--s-4); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: var(--s-2); }
.footer a { color: rgba(246, 246, 242, 0.8); text-decoration: none; font-size: var(--fs-0); }
.footer a:hover { color: var(--gold); }
.footer .socials { margin-top: var(--s-4); }
.footer .socials a { border-color: rgba(246, 246, 242, 0.2); color: var(--white); }
.footer .socials a:hover { background: var(--gold); color: var(--green-3); border-color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-top: var(--s-5);
  font-size: var(--fs-0);
}
.footer__contact li { display: flex; gap: var(--s-2); align-items: flex-start; }
.footer__contact .icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--gold); margin-top: 4px; }
.footer__contact span { direction: ltr; unicode-bidi: isolate; }
.footer__contact .rtl { direction: inherit; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Video dialog
   -------------------------------------------------------------------------- */
.video-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 960px);
  width: 100%;
}
.video-dialog::backdrop { background: rgba(12, 34, 29, 0.85); backdrop-filter: blur(4px); }
.video-dialog__box {
  background: var(--green-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.video-dialog__frame { aspect-ratio: 16 / 9; background: var(--green-3); }
.video-dialog__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-dialog__empty {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-align: center;
  padding: var(--s-6);
}
.video-dialog__close {
  position: absolute;
  top: var(--s-3);
  inset-inline-end: var(--s-3);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--green-3);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
}
.video-dialog__close .icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Cinematic opening (home): video hero + sticky scroll-story panels
   --enter: 0→1 as a panel rises into view (1 once it is pinned)
   --cover: 0→1 as the NEXT panel slides over it
   Both are set on each .cine-panel by js/main.js.
   -------------------------------------------------------------------------- */
.cine { position: relative; }

.cine-panel {
  --enter: 0;
  --cover: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.cine-panel__inner {
  position: absolute;
  inset: 0;
  transform: scale(calc(1 - var(--cover) * 0.06));
  transform-origin: 50% 40%;
  will-change: transform;
}
/* Darken a panel as the next one covers it */
.cine-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--green-3);
  opacity: calc(var(--cover) * 0.55);
  pointer-events: none;
}

/* ---- Hero ---- */
.cine-hero {
  background: var(--green-3);
  color: var(--white);
  display: grid;
  place-items: center;
}
.cine-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(calc(1 + var(--cover) * 0.08));
  transform-origin: center;
}
.cine-hero__video,
.cine-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cine-hero__poster {
  opacity: 1;
  transition: opacity 900ms ease;
}
/* YouTube background: a 16:9 iframe scaled to cover the viewport, non-interactive */
.cine-hero__yt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%) scale(1.02);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}
.cine-hero.video-playing .cine-hero__yt { opacity: 1; }
.cine-hero.video-playing .cine-hero__poster { opacity: 0; }
.cine-hero.video-failed .cine-hero__video { display: none; }
.cine-hero.video-failed .cine-hero__poster {
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, 1%); }
}
.cine-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 34, 29, 0.78) 0%, rgba(12, 34, 29, 0.35) 45%, rgba(12, 53, 52, 0.28) 100%);
}
.cine-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + var(--s-6)) var(--gutter) var(--s-9);
  max-width: 820px;
  opacity: calc(1 - var(--cover) * 1.6);
  transform: translateY(calc(var(--cover) * -40px));
}
.cine-hero__logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto var(--s-4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
  background: var(--white);
}
.cine-hero__name {
  font-family: var(--font-display);
  font-size: var(--fs-3);
  color: var(--gold);
  margin-bottom: var(--s-2);
  letter-spacing: 0.01em;
}
[dir="ltr"] .cine-hero__name { font-family: var(--font-body); font-weight: 600; }
.cine-hero__title {
  color: var(--white);
  font-size: var(--fs-6);
  margin-bottom: var(--s-4);
  line-height: 1.1;
}
.cine-hero__lead {
  color: rgba(246, 246, 242, 0.88);
  font-size: var(--fs-2);
  max-width: 52ch;
  margin: 0 auto var(--s-6);
}
.cine-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.cine-hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: var(--s-6);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  color: rgba(246, 246, 242, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  opacity: calc(1 - var(--cover) * 3);
}
.cine-hero__scroll:hover { color: var(--gold); }
.cine-hero__scroll .icon {
  width: 22px;
  height: 22px;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Hero content: one orchestrated entrance on load */
@media (prefers-reduced-motion: no-preference) {
  .cine-hero__content > * { animation: rise 900ms var(--ease-out) both; }
  .cine-hero__content > :nth-child(2) { animation-delay: 120ms; }
  .cine-hero__content > :nth-child(3) { animation-delay: 240ms; }
  .cine-hero__content > :nth-child(4) { animation-delay: 380ms; }
  .cine-hero__content > :nth-child(5) { animation-delay: 520ms; }
  .cine-hero__scroll { animation: fade 1200ms var(--ease-out) 1200ms both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } }

/* ---- Story panels ---- */
.story { background: var(--green-3); color: var(--white); }
.story__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.story__content {
  position: relative;
  z-index: 3;
  max-width: 560px;
}
.story__index {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: var(--s-4);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  width: max-content;
}
.story__content h2 {
  color: var(--white);
  font-size: var(--fs-5);
  margin-bottom: var(--s-3);
}
.story__content p {
  color: rgba(246, 246, 242, 0.85);
  font-size: var(--fs-2);
  margin: 0;
}
/* Text reveal, triggered by .in-view */
.story__content > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.story.in-view .story__content > * { opacity: 1; transform: none; }
.story.in-view .story__content > :nth-child(2) { transition-delay: 100ms; }
.story.in-view .story__content > :nth-child(3) { transition-delay: 200ms; }
.story.in-view .story__content > :nth-child(4) { transition-delay: 300ms; }

/* 01 — framed image, zoom-out + drift, caption bottom-start */
.story--frame .cine-panel__inner { padding: clamp(12px, 2vw, 28px); }
.story--frame .story__media {
  position: relative;
  height: 100%;
  border-radius: clamp(16px, 2.5vw, 32px);
  background: var(--green-2);
}
.story--frame .story__media img {
  transform: scale(calc(1.18 - var(--enter) * 0.18)) translateY(calc((1 - var(--enter)) * 30px));
}
.story--frame .story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.85) 0%, rgba(12, 34, 29, 0.2) 45%, rgba(12, 34, 29, 0) 70%);
}
.story--frame .story__content {
  position: absolute;
  bottom: clamp(2rem, 7vh, 5rem);
  inset-inline-start: clamp(2rem, 6vw, 5rem);
}

/* 02 — full-bleed, image scales in, text slides from the side */
.story--bleed .story__media img {
  transform: scale(calc(1.1 - var(--enter) * 0.1));
}
.story--bleed .story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 34, 29, 0.85) 0%, rgba(12, 34, 29, 0.25) 50%, rgba(12, 34, 29, 0.3) 100%);
}
.story--bleed .cine-panel__inner {
  display: grid;
  place-items: center;
}
.story--bleed .story__content {
  text-align: center;
  padding: var(--s-7) clamp(1.5rem, 5vw, 4rem);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(12, 34, 29, 0.55), rgba(12, 34, 29, 0) 100%);
}
.story--bleed .story__content h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--s-4) auto 0;
  background: var(--gold);
  transform: skewX(-28deg);
}
.story--bleed .story__content > * {
  transform: translateX(calc(48px * var(--slant)));
}
.story--bleed.in-view .story__content > * { transform: none; }

/* 03 — split: light panel, image revealed by a growing clip window */
.story--split {
  background: var(--surface);
  color: var(--ink);
}
.story--split .cine-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: calc(var(--header-h) + var(--s-4)) var(--gutter) var(--s-6);
  padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.story--split .story__content h2 { color: var(--green); }
.story--split .story__content p { color: var(--ink-2); }
.story--split .story__index { color: var(--gold-2); }
.story--split .story__media {
  position: relative;
  height: min(78vh, 720px);
  border-radius: clamp(16px, 2vw, 28px);
  clip-path: inset(calc((1 - var(--enter)) * 22%) round clamp(16px, 2vw, 28px));
  background: var(--green-2);
}
.story--split .story__media img {
  transform: scale(calc(1.12 - var(--enter) * 0.12));
}
.story--split .link-arrow { margin-top: var(--s-5); display: inline-flex; }
.story--split.in-view .story__content > :nth-child(4) { transition-delay: 320ms; }

@media (max-width: 900px) {
  .story--split .cine-panel__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    padding-inline-start: var(--gutter);
    gap: var(--s-5);
    align-content: start;
  }
  .story--split .story__media { height: auto; min-height: 0; }
  .story--split .story__content { max-width: none; }
  .story--split .story__content h2 { font-size: var(--fs-4); }
  .story--frame .story__content { inset-inline-end: clamp(2rem, 6vw, 5rem); }
  .cine-hero__logo { width: 72px; height: 72px; }
}
@media (max-width: 600px) {
  .cine-hero__lead { font-size: var(--fs-1); }
  .cine-hero__actions .btn { width: 100%; justify-content: center; }
  .cine-hero__scroll { bottom: var(--s-5); }
}

/* Header over the cinematic hero: transparent first, solid once scrolled */
.header--cine {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur);
}
.header--cine:not(.is-scrolled) .brand,
.header--cine:not(.is-scrolled) .nav__link { color: var(--white); }
.header--cine:not(.is-scrolled) .brand__tag { color: var(--gold); }
.header--cine:not(.is-scrolled) .nav__link:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.header--cine:not(.is-scrolled) .nav__link[aria-current="page"]::after { background: var(--gold); }
.header--cine:not(.is-scrolled) .menu-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.header--cine.is-scrolled,
.header--cine.menu-open {
  background: rgba(246, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header--cine.menu-open .brand,
.header--cine.menu-open .nav__link { color: var(--ink); }
.header--cine.menu-open .brand__tag { color: var(--gold-2); }
.header--cine.menu-open .menu-btn { background: var(--white); border-color: var(--line); color: var(--ink); }
@media (max-width: 1023px) {
  .header--cine .nav .nav__link { color: var(--ink); }
}

/* ---- Final CTA ---- */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--green-3);
  color: var(--white);
  text-align: center;
}
.final-cta__inner { padding-block: var(--s-9); position: relative; z-index: 1; }
.final-cta h2 { color: var(--white); font-size: var(--fs-5); margin-bottom: var(--s-3); }
.final-cta p { color: rgba(246, 246, 242, 0.8); max-width: 56ch; margin: 0 auto var(--s-6); }
.final-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-3); }
.final-cta__mark {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(calc(-50% * var(--slant) * -1), -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(8rem, 22vw, 20rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.06;
  white-space: nowrap;
  pointer-events: none;
}
[dir="ltr"] .final-cta__mark { transform: translate(-50%, -50%); }
[dir="rtl"] .final-cta__mark { transform: translate(50%, -50%); }

/* Debug/static mode (?static=1): panels in normal flow at their final state */
.cine--static .cine-panel { position: relative; height: 900px; --enter: 1; --cover: 0; }

/* Reduced motion: pinned panels stay, movement goes */
@media (prefers-reduced-motion: reduce) {
  .cine-panel { --enter: 1 !important; --cover: 0 !important; }
  .story__content > * { opacity: 1 !important; transform: none !important; }
  .cine-hero.video-failed .cine-hero__poster { animation: none; }
  .cine-hero__scroll .icon { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Logo reveal intro (home page, once per session)
   Timeline (5s): 0–2.2s outline draws → 1.9–3.1s gradient fill → 2.9s subtitle
   → 4.2–5.0s crossfade to the page. Skippable; skipped under reduced motion.
   Theme: data-theme="brand" (default, green→gold) or data-theme="navy".
   -------------------------------------------------------------------------- */
.intro {
  /* Preloader curtain in the brand green; the wordmark draws in gold and the
     counter reports real asset loading (motion upgrade, iteration 2) */
  --intro-bg: var(--green-3);
  --intro-stroke: var(--gold);
  --intro-grad-a: var(--gold);
  --intro-grad-b: #F6F6F2;
  --intro-sub: rgba(246, 246, 242, 0.75);
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--intro-bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}
.intro__count {
  position: absolute;
  bottom: var(--s-5);
  inset-inline-start: var(--s-5);
  font: 500 clamp(1.5rem, 3vw, 2.4rem)/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  direction: ltr;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.intro.is-playing .intro__count { opacity: 1; }
.intro__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform-origin: right;
  transform: scaleX(var(--load, 0));
  transition: transform 300ms var(--ease-out);
}
[dir="ltr"] .intro__bar { transform-origin: left; }
.intro[data-theme="navy"] {
  --intro-stroke: #1B2A5B;
  --intro-grad-a: #1B2A5B;
  --intro-grad-b: #7C8CE8;
  --intro-sub: #4A5580;
}
.intro__inner {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  padding: var(--gutter);
  width: min(100%, 860px);
}
.intro__svg {
  width: min(84vw, 720px);
  height: auto;
  overflow: visible;
}
.intro__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 190px;
  fill: url(#introGrad);
  fill-opacity: 0;
  stroke: var(--intro-stroke);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  paint-order: stroke fill;
}
.intro__sub {
  margin: 0;
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.2rem);
  color: var(--intro-sub);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  opacity: 0;
  transform: translateY(8px);
  white-space: nowrap;
}
.intro__sub span[lang="en"] { font-weight: 500; letter-spacing: 0.02em; direction: ltr; }
.intro__sub .intro__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--intro-grad-b);
}
.intro__skip {
  position: absolute;
  top: var(--s-5);
  inset-inline-end: var(--s-5);
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(216, 191, 129, 0.4);
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 246, 242, 0.75);
  font-size: var(--fs-0);
  opacity: 0;
  transition: opacity var(--dur), color var(--dur), border-color var(--dur);
}
.intro__skip:hover { color: var(--gold); border-color: var(--gold); }
.intro.is-playing .intro__skip { opacity: 1; transition-delay: 600ms; }

.intro.is-playing .intro__word {
  animation:
    introDraw 1.6s cubic-bezier(0.45, 0.05, 0.25, 1) forwards,
    introFill 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1.3s forwards;
}
.intro.is-playing .intro__sub {
  animation: introSub 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1.9s forwards;
}
/* Exit is triggered by js/main.js once assets are loaded: the curtain wipes upward */
.intro.is-leaving {
  animation: introWipe 0.9s cubic-bezier(0.69, 0, 0, 1) forwards;
}
.intro.is-leaving .intro__inner {
  animation: introLift 0.9s cubic-bezier(0.69, 0, 0, 1) forwards;
}
.intro.is-leaving .intro__count, .intro.is-leaving .intro__skip { opacity: 0; transition-delay: 0ms; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes introSub { to { opacity: 1; transform: none; } }
@keyframes introWipe { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes introLift { to { transform: translateY(-60px) scale(0.96); opacity: 0.6; } }

/* Hold the page's own hero reveal until the intro has finished */
body.intro-lock { overflow: hidden; }
body.intro-lock .cine-hero__content > *,
body.intro-lock .cine-hero__scroll { animation-play-state: paused; }

@media (max-width: 600px) {
  .intro__word { font-size: 220px; }
  .intro__sub { white-space: normal; text-align: center; flex-wrap: wrap; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Admissions wizard (3 steps) + fee estimate
   -------------------------------------------------------------------------- */
.banner--short { min-height: 340px; }

.wizard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(12, 53, 52, 0.04);
}
.wizard__steps {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: var(--s-4) clamp(1rem, 3vw, 2.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.wizard__step {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-2);
  font-size: var(--fs-0);
  white-space: nowrap;
  flex: 0 0 auto;
}
.wizard__step + .wizard__step { flex: 1 1 0; }
.wizard__step + .wizard__step::before {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-inline: var(--s-4);
}
.wizard__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex: 0 0 auto;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.wizard__step.is-active { color: var(--ink); font-weight: 600; }
.wizard__step.is-active .wizard__dot,
.wizard__step.is-done .wizard__dot { background: var(--gold-2); border-color: var(--gold-2); color: var(--white); }
.wizard__step.is-done { color: var(--ink); }

.wizard__panel { padding: clamp(1.5rem, 4vw, 3rem); }
.wizard__panel[hidden] { display: none; }
.wizard__eyebrow { color: var(--gold-2); font-weight: 600; font-size: var(--fs-0); margin: 0 0 var(--s-2); }
.wizard__panel h2 { font-size: var(--fs-5); margin-bottom: var(--s-3); }
.wizard__panel h2:focus { outline: none; }
.wizard__help { color: var(--ink-2); margin-bottom: var(--s-6); max-width: 70ch; }

.qbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}
.qbox__q { font-weight: 700; margin: 0 0 var(--s-1); font-size: var(--fs-2); }
.qbox__hint { color: var(--ink-2); font-size: var(--fs-0); margin: 0; }

.pills { display: flex; gap: var(--s-2); }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.pill span:hover { border-color: var(--gold-2); }
.pill input:checked + span { background: var(--gold-2); border-color: var(--gold-2); color: var(--white); }
.pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.students { display: grid; gap: var(--s-3); }
.student {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--s-5);
}
.student__label { align-self: center; min-width: 72px; }
.student__label > span { display: block; font-size: 0.8rem; color: var(--ink-2); }
.student__label strong { font-size: var(--fs-2); white-space: nowrap; }
.student__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
.student__remove {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  align-self: center;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.student__remove .icon { width: 18px; height: 18px; }
.student__remove:hover { color: #8E2E2E; border-color: #8E2E2E; background: rgba(178, 58, 58, 0.06); }
.student__remove[hidden] { display: none; }

.students__add {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin: var(--s-4) 0 var(--s-6);
}
.btn--dashed {
  border: 1.5px dashed var(--gold-2);
  background: var(--gold-tint);
  color: var(--green);
}
.btn--dashed:hover { background: var(--gold); border-style: solid; color: var(--green-3); }
.btn--dashed:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--dashed .icon { width: 18px; height: 18px; }

.wizard__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding-top: var(--s-5);
  margin-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.wizard__actions > :only-child { margin-inline-start: auto; }
.wizard__actions-end { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: inherit;
}

/* Estimate */
.estimate__total {
  text-align: center;
  padding: var(--s-6);
  background: var(--green);
  color: rgba(246, 246, 242, 0.85);
  border-radius: 12px;
  margin-bottom: var(--s-5);
}
.estimate__total strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-6);
  color: var(--gold);
  line-height: 1.1;
  margin: var(--s-2) 0;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
[dir="ltr"] .estimate__total strong { font-family: var(--font-body); font-weight: 700; }
.estimate__total strong small { font-size: 0.35em; font-family: var(--font-body); font-weight: 500; }
.estimate__note { font-size: var(--fs-0); }

.estimate__lines { display: grid; gap: var(--s-3); }
.estimate__line {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: var(--s-5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--s-4) var(--s-5);
}
.estimate__who { display: flex; gap: var(--s-3); align-items: center; }
.estimate__who strong { display: block; }
.estimate__who span { display: block; font-size: var(--fs-0); color: var(--ink-2); }
.estimate__who .estimate__num {
  width: 36px; height: 36px;
  font-size: var(--fs-1);
  border-radius: 50%;
  background: var(--gold-2);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
}
.estimate dl { margin: 0; }
.estimate dl > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-0);
}
.estimate dl > div:last-child { border-bottom: 0; }
.estimate dt { color: var(--ink-2); }
.estimate dd { margin: 0; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.estimate .is-discount dd { color: #2F7D4F; }
.estimate .is-total { font-weight: 700; }
.estimate .is-total dt { color: var(--ink); }
.estimate__summary {
  margin-top: var(--s-5);
  background: var(--surface);
  border-radius: 12px;
  padding: var(--s-4) var(--s-5);
}
.estimate__summary .is-total dd { font-size: var(--fs-3); color: var(--green); }
.estimate__summary .is-total { padding-top: var(--s-3); }
.estimate__notes { font-size: var(--fs-0); color: var(--ink-2); margin: var(--s-5) 0 0; max-width: none; }

.checklist--numbered { counter-reset: n; }
.checklist--numbered li { counter-increment: n; }
.checklist--numbered li::before {
  content: counter(n);
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  display: inline-grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
}

@media (max-width: 1023px) {
  .student { grid-template-columns: minmax(0, 1fr) auto; }
  .student__label { grid-column: 1 / -1; }
  .student__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student__remove { grid-row: 1; grid-column: 2; }
}
@media (max-width: 640px) {
  .wizard__step:not(.is-active) .wizard__name { display: none; }
  .student__fields { grid-template-columns: 1fr; }
  .estimate__line { grid-template-columns: 1fr; }
  .wizard__actions > .btn, .wizard__actions-end { width: 100%; }
  .wizard__actions-end .btn { flex: 1; justify-content: center; }
  .wizard__actions > .btn { justify-content: center; }
}

@media print {
  .header, .footer, .banner, .wizard__steps, .wizard__actions, .form-status, [data-restart], #requirements, .skip-link { display: none !important; }
  .wizard { border: 0; box-shadow: none; }
  .estimate__total { background: none; color: var(--ink); border: 1px solid #999; }
  .estimate__total strong { color: var(--ink); }
}

/* --------------------------------------------------------------------------
   Student Work Gallery
   -------------------------------------------------------------------------- */
.gal-section { background: var(--bg); }
.gal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
.gal-head h1 { font-size: var(--fs-5); }
.gal-head__logo {
  width: 88px; height: 88px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--white);
}

.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-6); }
.chip {
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font-weight: 500;
  font-size: var(--fs-0);
  white-space: nowrap;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.chip:hover { border-color: var(--gold-2); color: var(--green); }
.chip.is-on { background: var(--green); border-color: var(--green); color: var(--white); }

.gal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: var(--s-4);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.gal.is-switching { opacity: 0; transform: translateY(8px); }
.gal__item { position: relative; border-radius: 14px; overflow: hidden; background: var(--green-3); }
.gal__item--featured { grid-column: span 2; grid-row: span 2; }
.gal__item--tall { grid-row: span 2; }
.gal__open {
  display: block;
  width: 100%; height: 100%;
  padding: 0; border: 0; background: none;
  text-align: start;
  color: var(--white);
  cursor: pointer;
  position: relative;
}
.gal__open img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.gal__open::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.85) 0%, rgba(12, 34, 29, 0.15) 50%, rgba(12, 34, 29, 0) 75%);
  transition: opacity var(--dur);
}
.gal__open:hover img, .gal__open:focus-visible img { transform: scale(1.06); }
.gal__open:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.gal__cat {
  position: absolute; z-index: 2;
  top: var(--s-3); inset-inline-start: var(--s-3);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(246, 246, 242, 0.9);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.gal__caption {
  position: absolute; z-index: 2;
  inset-inline: var(--s-4); bottom: var(--s-4);
  display: grid; gap: 2px;
  transform: translateY(6px);
  transition: transform var(--dur-slow) var(--ease-out);
}
.gal__open:hover .gal__caption { transform: none; }
.gal__caption strong { font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.3; }
[dir="ltr"] .gal__caption strong { font-family: var(--font-body); font-weight: 600; }
.gal__item--featured .gal__caption strong { font-size: var(--fs-4); }
.gal__caption span { font-size: 0.8rem; color: rgba(246, 246, 242, 0.8); }
.gal__empty { grid-column: 1 / -1; text-align: center; color: var(--ink-2); padding: var(--s-8) 0; }

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

.demo-note { font-size: 0.8rem; color: var(--gray); margin: var(--s-5) 0 0; max-width: none; }

/* Lightbox */
.lb { border: 0; padding: 0; background: transparent; width: min(96vw, 1100px); max-width: none; }
.lb::backdrop { background: rgba(12, 34, 29, 0.88); backdrop-filter: blur(6px); }
.lb__box {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.lb__media { margin: 0; background: var(--green-3); min-height: 320px; max-height: 80vh; transition: opacity 160ms; }
.lb__media.is-swapping { opacity: 0; }
.lb__media img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 80vh; }
.lb__info { padding: clamp(1.25rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: var(--s-3); }
.lb__cat { color: var(--gold-2); font-weight: 600; font-size: var(--fs-0); }
.lb__info h3 { font-size: var(--fs-4); margin: 0; }
.lb__info p { color: var(--ink-2); margin: 0; }
.lb__meta { margin: var(--s-2) 0 0; display: grid; gap: var(--s-2); }
.lb__meta > div { display: flex; justify-content: space-between; gap: var(--s-3); border-bottom: 1px dashed var(--line); padding-bottom: var(--s-2); font-size: var(--fs-0); }
.lb__meta dt { color: var(--ink-2); }
.lb__meta dd { margin: 0; font-weight: 600; }
.lb__nav { margin-top: auto; padding-top: var(--s-4); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.lb__count { color: var(--ink-2); font-size: var(--fs-0); font-variant-numeric: tabular-nums; direction: ltr; }
.lb__close {
  position: absolute; z-index: 3;
  top: var(--s-3); inset-inline-end: var(--s-3);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--green-3);
  display: grid; place-items: center;
}
.lb__close .icon { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .lb[open] .lb__box { animation: lbIn 320ms var(--ease-out); }
  @keyframes lbIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
}

@media (max-width: 1023px) {
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; }
}
@media (max-width: 700px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .gal__item--featured { grid-column: span 2; }
  .gal__item--tall { grid-row: span 1; }
  .gal-head__logo { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .lb__box { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .lb__media { max-height: 46vh; min-height: 0; }
  .lb__media img { max-height: 46vh; }
}

/* --------------------------------------------------------------------------
   Leaders Wall
   -------------------------------------------------------------------------- */
.lw { background: var(--surface); }
.lw__hero {
  position: relative;
  overflow: hidden;
  background: var(--green-3);
  color: var(--white);
  text-align: center;
  padding-block: var(--s-9) var(--s-8);
}
.lw__hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(216, 191, 129, 0.16), transparent 70%);
}
.lw__mark {
  position: absolute;
  left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(10rem, 26vw, 24rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.07;
  white-space: nowrap;
  pointer-events: none;
}
.lw__hero-inner { position: relative; z-index: 1; }
.lw__kicker { color: var(--gold); font-size: var(--fs-0); letter-spacing: 0.04em; margin-bottom: var(--s-3); }
.lw__hero h2 { color: var(--white); font-size: var(--fs-6); margin-bottom: var(--s-3); }
.lw__sub { color: rgba(246, 246, 242, 0.85); font-size: var(--fs-2); max-width: 46ch; margin: 0 auto var(--s-2); }
.lw__tag {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: var(--fs-3);
  margin: 0 auto var(--s-7);
  max-width: 40ch;
}
[dir="ltr"] .lw__tag { font-family: var(--font-body); font-style: italic; font-weight: 500; }
.lw__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  max-width: 900px;
  margin: 0 auto;
}
.lw__stat {
  padding: var(--s-5) var(--s-3);
  border: 1px solid rgba(216, 191, 129, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.lw__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-5);
  color: var(--gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
[dir="ltr"] .lw__stat strong { font-family: var(--font-body); font-weight: 700; }
.lw__stat span { font-size: var(--fs-0); color: rgba(246, 246, 242, 0.8); }
.lw__stats-note { font-size: 0.75rem; color: rgba(246, 246, 242, 0.5); margin: var(--s-4) 0 0; }

.lw__body-wrap { padding-block: var(--s-7) var(--s-8); }
.lw__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.search {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: 1 1 320px;
  max-width: 520px;
  min-height: 52px;
  padding: 0 var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.search:focus-within { border-color: var(--gold-2); outline: 3px solid var(--gold-tint); }
.search .icon { width: 20px; height: 20px; color: var(--ink-2); flex: 0 0 auto; }
.search input { flex: 1; border: 0; background: none; min-height: 48px; font: inherit; color: var(--ink); }
.search input:focus { outline: none; }
.lw__toolbar-end { display: flex; align-items: center; gap: var(--s-4); }
.lw__count { color: var(--ink-2); font-size: var(--fs-0); }

.lw__filters {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: var(--s-6);
}
.fgroup { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: var(--s-3); }
.fgroup__title { font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); }
.fgroup__chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.fgroup .chip { min-height: 36px; padding: 0.3rem 0.85rem; }

.lw__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.lw__grid.is-switching { opacity: 0; transform: translateY(8px); }
.lw__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur);
}
.lw__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(12, 34, 29, 0.35); border-color: var(--gold-2); }
.lw__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-3); }
.lw__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 900ms var(--ease-out); }
.lw__card:hover .lw__media img { transform: scale(1.05); }
.lw__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.55), transparent 55%);
}
.lw__award {
  position: absolute; z-index: 2;
  top: var(--s-3); inset-inline-start: 0;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border-start-end-radius: 999px; border-end-end-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--green-3);
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.lw__award--second { background: #D9D9D2; }
.lw__award--third { background: #D5A77C; }
.lw__award--bronze { background: #D5A77C; }
.lw__award--honor { background: var(--surface); color: var(--green); }
.lw__year {
  position: absolute; z-index: 2;
  bottom: var(--s-3); inset-inline-end: var(--s-3);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2);
  direction: ltr;
}
[dir="ltr"] .lw__year { font-family: var(--font-body); }
.lw__body { padding: var(--s-5); display: grid; gap: var(--s-2); }
.lw__body h3 { font-size: var(--fs-3); margin: 0; }
.lw__ach { margin: 0; font-weight: 600; color: var(--ink); }
.lw__event { margin: 0; color: var(--ink-2); font-size: var(--fs-0); }
.lw__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.lw__meta span {
  font-size: 0.75rem; font-weight: 600;
  color: var(--green);
  background: var(--green-tint);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.lw__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s-8) var(--s-4);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.lw__empty strong { display: block; font-family: var(--font-display); font-size: var(--fs-3); color: var(--green); margin-bottom: var(--s-2); }
.lw__empty span { color: var(--ink-2); }

@media (max-width: 1023px) {
  .lw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lw__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .fgroup { grid-template-columns: 1fr; gap: var(--s-2); }
  .fgroup__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .fgroup__chips::-webkit-scrollbar { display: none; }
  .lw__grid { grid-template-columns: 1fr; }
  .lw__hero h2 { font-size: var(--fs-5); }
}

/* Home teaser for the Leaders Wall */
.lw-teaser {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.lw-teaser__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-6);
  padding-block: var(--s-7);
}
.lw-teaser h2 { margin-bottom: var(--s-2); }
.lw-teaser p { margin: 0; color: var(--ink-2); }
.lw-teaser__faces { display: flex; }
.lw-teaser__faces img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface);
  margin-inline-start: -14px;
}
.lw-teaser__faces img:first-child { margin-inline-start: 0; }
@media (max-width: 800px) { .lw-teaser__inner { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   About story (home): reveals, parallax, bridge, sticky step presentation
   -------------------------------------------------------------------------- */
/* Reveal variants (base [data-reveal] rules are defined with the gallery) */
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="blur"] { transform: translateY(12px); filter: blur(8px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out); }
[data-reveal="blur"].is-in { filter: blur(0); }
[data-reveal="scale"].is-in { transform: none; }

/* The gold rule under the heading draws itself once in view */
.section-head--draw h2::after {
  transform: skewX(calc(-28deg * var(--slant))) scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 900ms var(--ease-out) 250ms;
}
[dir="ltr"] .section-head--draw h2::after { transform-origin: 0 50%; }
.section-head--draw h2.is-in::after { transform: skewX(calc(-28deg * var(--slant))) scaleX(1); }

/* Intro image: depth, and parallax on the image itself */
.media-frame--story {
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(12, 34, 29, 0.45), 0 0 0 1px var(--line);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.media-frame--story img {
  transform: scale(1.12) translateY(calc(var(--py, 0) * 1px));
  will-change: transform;
}
.media-frame--story .play-btn { transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), background var(--dur); }
.media-frame--story .play-btn:hover { background: var(--gold-2); box-shadow: 0 0 0 18px rgba(216, 191, 129, 0.18); }

/* Bridge: a line that draws with scroll, behind a large drifting word */
.story-bridge {
  position: relative;
  height: clamp(180px, 34vh, 320px);
  margin-top: var(--s-7);
  overflow: hidden;
  pointer-events: none;
}
.story-bridge__mark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + var(--py, 0) * 1px));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 15rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.10;
  white-space: nowrap;
  will-change: transform;
}
[dir="ltr"] .story-bridge__mark { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.02em; }
.story-bridge__line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--line);
}
.story-bridge__line span {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--gold-2), var(--gold));
  transform-origin: top;
  transform: scaleY(var(--draw, 0));
}

/* Story intro heading */
.steps-intro { padding-block: var(--s-6) var(--s-7); }
.steps-intro h2 { font-size: var(--fs-5); }
.steps-intro .section-head--draw h2::after { margin-inline: auto; transform-origin: 50% 50%; }
.steps-intro p { margin: var(--s-4) auto 0; }

/* Steps layout: visual (start side) | rail + content */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.steps__aside { position: relative; align-self: stretch; }   /* full row height, so the sticky panel can travel */
.steps__sticky {
  position: sticky;
  top: calc(var(--header-h) + 4vh);
  padding-block: var(--s-2);
}
.steps__visual {
  position: relative;
  height: min(76vh, 760px);
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--green-3);
  box-shadow: 0 30px 60px -30px rgba(12, 34, 29, 0.5), 0 0 0 1px var(--line);
  transform: translateY(calc(var(--py, 0) * 1px));
  will-change: transform;
}
.steps__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(6px);
  transition: opacity 900ms var(--ease-out), transform 6s cubic-bezier(0.2, 0.6, 0.2, 1), filter 900ms var(--ease-out);
}
.steps__img.is-active { opacity: 1; transform: scale(1.03); filter: blur(0); }
.steps__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.7) 0%, rgba(12, 34, 29, 0.05) 45%, rgba(12, 34, 29, 0) 100%);
  pointer-events: none;
}
.steps__visual-num {
  position: absolute; z-index: 2;
  bottom: var(--s-5);
  right: var(--s-5);                     /* physical: this element is direction:ltr */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--gold);
  direction: ltr;
  transition: transform 700ms var(--ease-out);
}
[dir="ltr"] .steps__visual-num { font-family: var(--font-body); right: auto; left: var(--s-5); }
.steps__visual-label {
  position: absolute; z-index: 2;
  bottom: var(--s-6);
  left: var(--s-5);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-3);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--gold);
}
[dir="ltr"] .steps__visual-label { font-family: var(--font-body); font-weight: 600; left: auto; right: var(--s-5); }

.steps__content {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.steps__nav {
  position: sticky;
  top: calc(var(--header-h) + 22vh);
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: var(--s-5);
  display: grid;
  gap: var(--s-4);
  width: 150px;
  align-self: start;
}
.steps__track {
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 0;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin: 0; padding: 0;
}
.steps__fill {
  position: absolute; inset: 0;
  background: var(--gold-2);
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
}
.steps__nav a {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  padding: var(--s-1) 0;
  transition: color var(--dur), transform var(--dur-slow) var(--ease-out);
}
.steps__nav-num { font-size: 0.75rem; color: var(--gray); font-variant-numeric: tabular-nums; direction: ltr; letter-spacing: 0.06em; transition: color var(--dur); }
.steps__nav li.is-active a { color: var(--green); font-weight: 600; transform: translateX(calc(-6px * var(--slant))); }
.steps__nav li.is-active .steps__nav-num { color: var(--gold-2); font-weight: 700; }
.steps__nav li.is-done a { color: var(--ink); }
.steps__nav li.is-done .steps__nav-num { color: var(--gold-2); }
.steps__nav a:hover { color: var(--green); }

.steps__list { display: grid; }
.step-item {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-3);
  padding-block: var(--s-6);
  scroll-margin-top: 22vh;
  opacity: 0.3;
  transform: translateY(26px);
  filter: blur(1.5px);
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out), filter 800ms var(--ease-out);
}
.step-item.is-active { opacity: 1; transform: none; filter: none; }
.step-item.is-done { opacity: 0.45; transform: none; filter: none; }
.step-item__media { display: none; }
.step-item__line {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  transform: skewX(calc(-28deg * var(--slant))) scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 800ms var(--ease-out) 150ms;
}
[dir="ltr"] .step-item__line { transform-origin: 0 50%; }
.step-item.is-active .step-item__line { transform: skewX(calc(-28deg * var(--slant))) scaleX(1); }
.step-item p { transition-delay: 120ms; }
.step-item__num {
  font-size: 0.8rem;
  color: var(--gold-2);
  letter-spacing: 0.08em;
  direction: ltr;
  width: max-content;
}
.step-item__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-2);
  color: var(--green);
  display: grid; place-items: center;
  background: var(--white);
  transform: scale(0.8);
  transition: transform 800ms var(--ease-out), background var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.step-item__icon .icon { width: 28px; height: 28px; }
.step-item.is-active .step-item__icon { transform: scale(1); }
.step-item:hover .step-item__icon { background: var(--gold-tint); box-shadow: 0 0 0 8px rgba(216, 191, 129, 0.15); }
.step-item h3 {
  font-size: var(--fs-5);
  margin: 0;
  color: var(--green);
}
.step-item p {
  font-size: var(--fs-2);
  color: var(--ink-2);
  margin: 0;
  max-width: 52ch;
}

.step-close {
  grid-column: 1 / -1;                    /* full content column, same width as the image box */
  min-height: min(76vh, 760px);           /* same height as .steps__visual */
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: var(--s-7);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--green);
  border-radius: 18px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.step-close::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 100% 0%, rgba(216, 191, 129, 0.18), transparent 60%);
}
.step-close > * { position: relative; }
.step-close h3 { color: var(--gold); font-size: var(--fs-4); margin-bottom: var(--s-3); }
.step-close p { color: rgba(246, 246, 242, 0.85); max-width: 52ch; margin-bottom: var(--s-4); }
.step-close .link-arrow { color: var(--gold); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__aside { display: none; }                 /* each stage carries its own image instead */
  .steps__content { grid-template-columns: 1fr; gap: 0; }
  .steps__nav {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: var(--s-3) 0 var(--s-2);
    gap: var(--s-2);
    width: auto;
    min-width: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .steps__track { inset-inline: var(--gutter); inset-block: 0 auto; height: 2px; width: auto; }
  .steps__fill { transform-origin: var(--fill-origin, right); transform: scaleX(var(--progress, 0)); }
  [dir="ltr"] .steps__fill { --fill-origin: left; }
  .steps__nav a { flex-direction: column; align-items: center; gap: 2px; font-size: 0.8rem; text-align: center; }
  .steps__nav li.is-active a { transform: none; }
  .step-item { min-height: 0; padding-block: var(--s-6) var(--s-5); opacity: 1; transform: none; filter: none; scroll-margin-top: 90px; }
  .step-item.is-done { opacity: 1; }
  .step-item h3 { font-size: var(--fs-4); }
  .step-item__media {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: var(--s-4);
    box-shadow: 0 20px 40px -24px rgba(12, 34, 29, 0.45);
  }
  .step-item__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 4s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .step-item.is-active .step-item__media img { transform: scale(1); }
  .story-bridge { height: 160px; }
  .steps-intro { padding-block: var(--s-5) var(--s-4); }
  .step-close { min-height: 0; margin-top: var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
  .step-item { opacity: 1 !important; transform: none !important; filter: none !important; }
  .media-frame--story img { transform: none !important; }
  .story-bridge__mark { transform: translate(-50%, -50%) !important; }
  .steps__ring--outer { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* --------------------------------------------------------------------------
   Hover-reveal list (stages section): list at the reading start, pinned
   image at the end. Active item is white; the image crossfades per item.
   -------------------------------------------------------------------------- */
.reveal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: var(--s-4);
}
.reveal__list {
  list-style: none;
  margin: 0;
  padding: var(--s-4) 0;
  display: grid;
  gap: 0.2rem;
}
.reveal__gap { height: var(--s-5); }
.reveal__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.55rem 0;
  text-decoration: none;
  color: rgba(246, 246, 242, 0.38);
  transition: color 220ms ease;
  outline-offset: 6px;
}
.reveal__name {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
}
.reveal__meta {
  font-size: var(--fs-0);
  color: rgba(246, 246, 242, 0.28);
  white-space: nowrap;
  transition: color 220ms ease;
}
.reveal__item:hover, .reveal__item:focus-visible, .reveal__item.is-active { color: var(--white); }
.reveal__item.is-active .reveal__meta, .reveal__item:hover .reveal__meta { color: var(--gold); }
.reveal__item:focus-visible { outline: 2px solid var(--gold); border-radius: 4px; }

.reveal__media { position: sticky; top: calc(var(--header-h) + 3vh); }
.reveal__frame {
  position: relative;
  height: min(72vh, 720px);
  min-height: 380px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8);
  will-change: transform;
}
.reveal__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 380ms ease, transform 1400ms cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.reveal__img.is-active { opacity: 1; transform: scale(1); }
.reveal__badge {
  position: absolute; z-index: 2;
  top: var(--s-3);
  inset-inline-end: var(--s-3);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-3);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid; place-items: center;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .reveal { grid-template-columns: 1fr; gap: var(--s-4); }
  .reveal__media { position: sticky; top: var(--header-h); z-index: 3; order: -1; }
  .reveal__frame { height: 38vh; min-height: 220px; border-radius: 12px; }
  .reveal__list { padding-top: var(--s-2); }
  .reveal__name { font-size: 1.2rem; }
}
@media (hover: none) {
  .reveal__item { padding: 0.7rem 0; }               /* larger tap rows on touch devices */
}
@media (prefers-reduced-motion: reduce) {
  .reveal__img { transition: opacity 200ms ease; transform: none !important; }
  .reveal__frame { transform: none !important; }
}

/* --------------------------------------------------------------------------
   3D school sphere hero
   -------------------------------------------------------------------------- */
.sphere-hero {
  --cw: 200px;
  --ch: 136px;
  background: var(--green-3);
  color: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sphere-hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 55% at 50% 45%, rgba(15, 66, 62, 0.9) 0%, rgba(12, 34, 29, 0) 70%),
    radial-gradient(40% 40% at 50% 50%, rgba(216, 191, 129, 0.10), transparent 70%);
}
.sphere-hero__mark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14rem, 36vw, 34rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.045;
  pointer-events: none;
  white-space: nowrap;
}
.sphere-hero__stage {
  position: absolute; inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.sphere-hero__stage.is-dragging { cursor: grabbing; }
.sphere-hero__stage.is-dragging .sphere__inner { transition: none; }
.sphere {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--cam, 0px));
  will-change: transform;
  outline: none;
}
.sphere:focus-visible::after {
  content: "";
  position: absolute;
  left: -50vw; top: -50vh; width: 100vw; height: 100vh;
  box-shadow: inset 0 0 0 3px var(--gold);
  pointer-events: none;
}
.sphere__card {
  position: absolute;
  left: calc(var(--cw) / -2);
  top: calc(var(--ch) / -2);
  width: var(--cw);
  height: var(--ch);
  display: block;
  text-decoration: none;
  color: var(--white);
  will-change: transform, opacity;
  opacity: 0;
  backface-visibility: hidden;
}
.sphere__inner {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.8);
  filter: brightness(var(--br, 1));
  transition: transform 500ms var(--ease-out), filter 300ms, border-color 300ms, box-shadow 300ms;
}
.sphere__inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sphere__label {
  position: absolute;
  bottom: 8px;
  inset-inline: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms, transform 300ms var(--ease-out);
}
.sphere__inner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.7), transparent 55%);
  opacity: 0;
  transition: opacity 300ms;
}
.sphere__card:hover .sphere__inner,
.sphere__card:focus-visible .sphere__inner {
  transform: scale(1.09);
  filter: brightness(1.08);
  border-color: var(--gold);
  box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(216, 191, 129, 0.5);
}
.sphere__card:hover .sphere__label, .sphere__card:focus-visible .sphere__label { opacity: 1; transform: none; }
.sphere__card:hover .sphere__inner::after, .sphere__card:focus-visible .sphere__inner::after { opacity: 1; }
.sphere__card.is-back { pointer-events: none; }

.sphere-hero__center {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 760px;
  padding: 0 var(--gutter);
  pointer-events: none;
  will-change: transform, opacity;
}
.sphere-hero__center::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(12, 34, 29, 0.85), rgba(12, 34, 29, 0));
}
.sphere-hero__actions { pointer-events: auto; display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-3); }
.sphere-hero__logo {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto var(--s-4);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.sphere-hero__name { font-family: var(--font-display); font-size: var(--fs-3); color: var(--gold); margin-bottom: var(--s-2); }
[dir="ltr"] .sphere-hero__name { font-family: var(--font-body); font-weight: 600; }
.sphere-hero__title { color: var(--white); font-size: var(--fs-6); margin-bottom: var(--s-4); line-height: 1.1; }
.sphere-hero__lead { color: rgba(246, 246, 242, 0.88); font-size: var(--fs-2); max-width: 52ch; margin: 0 auto var(--s-6); }

/* Staggered entrance once the sphere starts (root gets .is-in) */
.sphere-hero__center > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.sphere-hero.is-in .sphere-hero__center > * { opacity: 1; transform: none; }
.sphere-hero.is-in .sphere-hero__center > :nth-child(1) { transition-delay: 500ms; }
.sphere-hero.is-in .sphere-hero__center > :nth-child(2) { transition-delay: 650ms; }
.sphere-hero.is-in .sphere-hero__center > :nth-child(3) { transition-delay: 800ms; }
.sphere-hero.is-in .sphere-hero__center > :nth-child(4) { transition-delay: 950ms; }
.sphere-hero.is-in .sphere-hero__center > :nth-child(5) { transition-delay: 1100ms; }

.sphere-hero__hint {
  position: absolute; z-index: 6;
  bottom: var(--s-6);
  inset-inline-start: var(--s-6);
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 191, 129, 0.4);
  background: rgba(12, 34, 29, 0.55);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 600ms var(--ease-out) 1600ms;
  pointer-events: none;
}
.sphere-hero__hint .icon { width: 18px; height: 18px; }
.sphere-hero.is-in .sphere-hero__hint { opacity: 1; }
.sphere-hero__hint.is-hidden { opacity: 0 !important; transition-delay: 0ms; }
.sphere-hero__scroll { opacity: 0; transition: opacity 800ms var(--ease-out) 1800ms; }
.sphere-hero.is-in .sphere-hero__scroll { opacity: calc(1 - var(--cover) * 3); }
body.has-mcur .sphere-hero__stage { cursor: none; }

.cine-spacer { height: 60vh; pointer-events: none; }

@media (max-width: 700px) {
  /* Phone: the sphere sits in the upper half, the message settles below it */
  .sphere-hero { --cw: 118px; --ch: 82px; align-content: end; padding-bottom: 132px; }
  .sphere { top: 34%; }
  .sphere-hero__stage { perspective-origin: 50% 34%; }
  .sphere-hero__center::before { inset: -10% -10%; }
  .sphere-hero__title { font-size: var(--fs-5); margin-bottom: var(--s-3); }
  .sphere-hero__lead { font-size: var(--fs-1); margin-bottom: var(--s-4); }
  .sphere-hero__logo { width: 56px; height: 56px; margin-bottom: var(--s-3); }
  .sphere-hero__name { font-size: var(--fs-2); }
  .sphere-hero__hint { bottom: 92px; inset-inline-start: 50%; transform: translateX(50%); }
  [dir="ltr"] .sphere-hero__hint { transform: translateX(-50%); }
  .sphere__label { font-size: 0.7rem; }
  .cine-spacer { height: 40vh; }
}

/* FLIP card expansion into the destination page */
.flip { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
.flip__img {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  transition: top 700ms cubic-bezier(0.7, 0, 0.2, 1), left 700ms cubic-bezier(0.7, 0, 0.2, 1),
              width 700ms cubic-bezier(0.7, 0, 0.2, 1), height 700ms cubic-bezier(0.7, 0, 0.2, 1),
              border-radius 700ms;
}
.flip__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip__veil { position: absolute; inset: 0; background: var(--green-3); opacity: 0; transition: opacity 600ms ease 200ms; }
.flip__title {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -40%);
  font-family: var(--font-display);
  font-size: var(--fs-6);
  color: var(--gold);
  opacity: 0;
  transition: opacity 400ms ease 350ms, transform 500ms var(--ease-out) 350ms;
  white-space: nowrap;
}
[dir="ltr"] .flip__title { font-family: var(--font-body); font-weight: 700; }
.flip.is-open .flip__img { top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0; }
.flip.is-open .flip__veil { opacity: 0.72; }
.flip.is-open .flip__title { opacity: 1; transform: translate(-50%, -50%); }

/* Page transitions: a dark veil that fades out on entry and in on exit */
.page-veil {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--green-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}
.page-veil.is-on { opacity: 1; pointer-events: auto; }
html.page-enter .page-veil { opacity: 1; transition: none; }

/* Custom cursor: now in css/motion.css + js/motion/cursor.js (motion upgrade, iteration 1). */

/* 3D tilt for [data-tilt] cards */
[data-tilt] { transform-style: preserve-3d; transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
[data-tilt].is-tilting { transition: transform 80ms linear, box-shadow 300ms; }

/* Admissions wizard: panel transitions + progress line */
.wizard__steps { position: relative; }
.wizard__steps::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  height: 2px;
  width: calc(100% * var(--wizard-progress, 0));
  background: var(--gold-2);
  transition: width 600ms var(--ease-out);
}
.wizard__panel { transition: opacity 220ms ease, transform 320ms var(--ease-out); }
.wizard__panel.is-leaving { opacity: 0; transform: translateY(-8px); }
.wizard__panel.is-entering { opacity: 0; transform: translateY(14px); transition: none; }

/* --------------------------------------------------------------------------
   School film: cinematic section below the footer
   -------------------------------------------------------------------------- */
.film {
  position: relative;
  min-height: min(84vh, 820px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--green-3);
  color: var(--white);
  isolation: isolate;
}
.film__media { position: absolute; inset: 0; z-index: 0; }
.film__poster, .film__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.film__poster { transform: scale(1.12) translateY(calc(var(--py, 0) * 1px)); transition: opacity 500ms; }
.film__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 29, 0.85), rgba(12, 34, 29, 0.35) 55%, rgba(12, 34, 29, 0.55));
  transition: opacity 500ms;
}
.film__video { opacity: 0; transition: opacity 500ms; }
.film__content { position: relative; z-index: 2; text-align: center; padding: var(--s-9) var(--gutter); transition: opacity 400ms, transform 400ms; }
.film__kicker { color: var(--gold); font-size: var(--fs-0); letter-spacing: 0.04em; margin-bottom: var(--s-3); }
.film h2 { color: var(--white); font-size: var(--fs-5); margin-bottom: var(--s-6); }
.film__play {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--green-3);
  display: inline-grid; place-items: center;
  box-shadow: 0 0 0 14px rgba(216, 191, 129, 0.22);
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out), background 300ms;
}
.film__play .icon { width: 36px; height: 36px; margin-inline-start: 4px; }
.film__play:hover { transform: scale(1.06); background: var(--gold-2); box-shadow: 0 0 0 22px rgba(216, 191, 129, 0.16); }
.film__note { color: rgba(246, 246, 242, 0.7); font-size: var(--fs-0); margin: var(--s-4) 0 0; }
.film.is-playing .film__content { opacity: 0; transform: scale(0.96); pointer-events: none; }
.film.is-playing .film__poster, .film.is-playing .film__media::after { opacity: 0; }
.film.is-playing .film__video { opacity: 1; }
.film.is-playing .film__media { z-index: 3; }
@media (max-width: 700px) {
  .film { min-height: 64vh; }
  .film__play { width: 76px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .sphere-hero__center > *, .sphere-hero__hint, .sphere-hero__scroll { transition: none; opacity: 1; transform: none; }
  .sphere__card { transition: none; }
  .page-veil, .flip__img, .flip__veil, .flip__title, .wizard__panel { transition: none !important; }
  [data-tilt] { transform: none !important; }
}

/* ==========================================================================
   Polish pass: one motion system, layered surfaces, complete interaction
   states. Overrides earlier rules on purpose; keep new work consistent with it.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* expo-out: fast start, long soft settle */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  /* Shadows are tinted with the brand green, never grey */
  --shadow-sm: 0 1px 2px rgba(12, 34, 29, 0.04), 0 2px 10px -4px rgba(12, 34, 29, 0.08);
  --shadow-md: 0 2px 4px rgba(12, 34, 29, 0.04), 0 14px 30px -14px rgba(12, 34, 29, 0.22);
  --shadow-lg: 0 4px 10px rgba(12, 34, 29, 0.05), 0 30px 54px -22px rgba(12, 34, 29, 0.32);
}
html { scroll-padding-top: calc(var(--header-h) + 1rem); }
::selection { background: var(--gold); color: var(--green-3); }
p, li, dd, figcaption { text-wrap: pretty; }
img { font-style: italic; }                               /* alt text reads as a caption if an image fails */
:focus-visible { outline-color: var(--gold-2); outline-width: 2px; outline-offset: 3px; border-radius: 4px; }

/* ---- Buttons: lift, tinted bloom, arrow nudge, press ---- */
.btn {
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: var(--dur-fast); }
.btn--gold { box-shadow: 0 1px 2px rgba(12, 34, 29, 0.08); }
.btn--gold:hover { box-shadow: 0 12px 26px -12px rgba(193, 164, 120, 0.9); }
.btn--green:hover { box-shadow: 0 12px 26px -12px rgba(12, 53, 52, 0.7); }
.btn--outline:hover, .btn--outline-light:hover { box-shadow: none; }
.btn .icon--arrow { transition: transform var(--dur-slow) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon--arrow { transform: scaleX(-1) translateX(3px); }

/* ---- Header: hairline + soft shadow once scrolled; underline that draws in ---- */
.header .btn { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav__link { padding-inline: var(--s-2); }
  .header__inner { gap: var(--s-4); }
}
.header { transition: box-shadow var(--dur-slow) var(--ease-out), background var(--dur-slow) var(--ease-out); }
.header.is-scrolled:not(.header--cine) { box-shadow: 0 10px 30px -22px rgba(12, 34, 29, 0.35); }
.header--cine.is-scrolled { box-shadow: 0 10px 30px -22px rgba(12, 34, 29, 0.35); }
.brand__logo { transition: transform var(--dur-slow) var(--ease-out); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.04); }
@media (min-width: 1024px) {
  .nav__link { transition: color var(--dur) var(--ease-out); }
  .nav__link:hover, .header--cine:not(.is-scrolled) .nav__link:hover { background: transparent; }
  .nav__link::after {
    content: "";
    position: absolute;
    inset-inline: var(--s-3);
    bottom: 3px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 380ms var(--ease-out);
  }
  [dir="ltr"] .nav__link::after { transform-origin: left; }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .nav__link[aria-current="page"]::after { background: var(--gold); }
}
/* Phone drawer: links arrive one after another */
@media (max-width: 1023px) {
  .nav__list li, .nav > .btn { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
  .nav.is-open .nav__list li, .nav.is-open > .btn { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(1) { transition-delay: 40ms; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: 80ms; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: 120ms; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: 160ms; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: 200ms; }
  .nav.is-open .nav__list li:nth-child(6) { transition-delay: 240ms; }
  .nav.is-open .nav__list li:nth-child(7) { transition-delay: 280ms; }
  .nav.is-open > .btn { transition-delay: 340ms; }
  .nav__link { transition: color var(--dur), padding-inline-start var(--dur) var(--ease-out); }
  .nav__link:hover { background: transparent; padding-inline-start: calc(var(--s-3) + 6px); }
}

/* ---- Link cards: lift with a green-tinted shadow, slow image drift ---- */
.news-card {
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur), transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(193, 164, 120, 0.6); }
.news-card__img img { transition: transform 1100ms var(--ease-out); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card h3 { transition: color var(--dur); }
.news-card:hover h3 { color: var(--green-3); }
.lw__card:hover { box-shadow: var(--shadow-lg); }
.gal__item { box-shadow: var(--shadow-sm); }

/* ---- Static cards: quiet surfaces, no hover theatre ---- */
.value, .person, .aside-card { box-shadow: var(--shadow-sm); }
.value { border-top-width: 2px; }
.person { transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.person.is-tilting { box-shadow: var(--shadow-md); }

/* ---- Sub-navigation pills ---- */
.subnav__link { transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur); }
.subnav { transition: box-shadow var(--dur-slow) var(--ease-out); }
.subnav.is-stuck { box-shadow: 0 8px 24px -20px rgba(12, 34, 29, 0.35); }

/* ---- Forms: white fields, visible hover, calm gold focus ring ---- */
.field input, .field select, .field textarea {
  background: var(--white);
  border-color: rgba(12, 53, 52, 0.18);
  box-shadow: inset 0 1px 2px rgba(12, 34, 29, 0.04);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(12, 53, 52, 0.36); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(216, 191, 129, 0.35);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C3534' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: left 0.9rem center;
}
[dir="ltr"] .field select { background-position: right 0.9rem center; }
.field.is-invalid input:focus, .field.is-invalid select:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(178, 58, 58, 0.18); border-color: #B23A3A; }
.pill span, .chip { transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.pill span:active, .chip:active { transform: scale(0.97); }

/* ---- Footer ---- */
.footer__grid { border-bottom-color: transparent; position: relative; }
.footer__grid::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(216, 191, 129, 0.35) 30%, rgba(216, 191, 129, 0.35) 70%, transparent);
}
.footer ul a { display: inline-block; transition: color var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.footer ul a:hover { transform: translateX(calc(-4px * var(--slant))); }
.socials a { transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.socials a:hover { transform: translateY(-2px); }

/* ---- Page transitions: a veil with the wordmark, then the page rises in ---- */
.page-veil::after {
  content: attr(data-mark);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateY(6px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 320ms var(--ease-out) 140ms, transform 420ms var(--ease-out) 140ms;
}
[dir="ltr"] .page-veil::after { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.02em; }
.page-veil.is-on::after { opacity: 1; transform: translate(-50%, -50%); }
main { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
html.page-enter main { opacity: 0; transform: translateY(14px); transition: none; }

/* ---- Staggered group reveal: children of [data-stagger] arrive in sequence ---- */
[data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
[data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---- Banner (inner pages): one arrival sequence ---- */
.banner__inner > * { animation: bannerIn 800ms var(--ease-out) both; }
.banner__inner > :nth-child(2) { animation-delay: 90ms; }
.banner__inner > :nth-child(3) { animation-delay: 180ms; }
.banner img { animation: bannerZoom 1600ms var(--ease-out) both; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bannerZoom { from { transform: scale(1.06); } to { transform: none; } }

/* ---- Section heads: the gold mark draws in ---- */
.section-head h2::after { transform: skewX(calc(-28deg * var(--slant))) scaleX(0); transform-origin: right; transition: transform 700ms var(--ease-out) 120ms; }
[dir="ltr"] .section-head h2::after { transform-origin: left; }
.section-head.is-in h2::after, .section-head--draw h2.is-in::after, html.no-io .section-head h2::after { transform: skewX(calc(-28deg * var(--slant))) scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .news-card:hover, .footer ul a:hover, .socials a:hover, .brand:hover .brand__logo { transform: none; }
  .banner__inner > *, .banner img { animation: none; }
  [data-stagger] > * { opacity: 1; transform: none; transition: none; }
  .section-head h2::after { transform: skewX(calc(-28deg * var(--slant))) scaleX(1); transition: none; }
  main, html.page-enter main { transition: none; opacity: 1; transform: none; }
  .nav__list li, .nav > .btn { transition: none; }
}

/* Utility */
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.text-muted { color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- News page: posts embedded from the school's X account ---- */
.news-card__img--brand { display: grid; place-items: center; background: var(--green); }
.news-card__img--brand img { width: 34%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px rgba(216, 191, 129, 0.25); }
.news-card:hover .news-card__img--brand img { transform: none; }
.tw-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.tw-head .btn .icon { width: 1rem; height: 1rem; }
.tw-grid { columns: 3 320px; column-gap: var(--s-5); }
.tw { break-inside: avoid; margin-bottom: var(--s-5); padding: var(--s-4); background: #fff; border: 1px solid rgba(12, 53, 52, 0.08); border-radius: 18px; }
.tw__head time { font-size: 0.8rem; color: var(--gold-2); font-weight: 700; }
.tw__title { font-size: 1.05rem; margin: 0.25rem 0 0; color: var(--green); }
.tw .twitter-tweet { margin: var(--s-3) 0 0 !important; }
.tw blockquote.twitter-tweet { padding: var(--s-3); border-inline-start: 3px solid var(--gold); background: var(--surface); border-radius: 10px; }
.tw blockquote.twitter-tweet a { color: var(--green); font-weight: 700; }

/* Honeypot field for form spam: off-screen, never seen by people */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
