/* Legacy International School — gold & olive, Arabic (RTL) and English (LTR) */

:root {
  --olive-950: #1F2715;
  --olive-900: #2A3520;
  --olive-800: #364428;
  --olive-700: #465831;
  --olive-600: #5A6E3A;
  --olive-400: #8C9A5E;
  --olive-200: #CBD3AE;
  --olive-100: #ECEFDF;

  --gold-700: #876418;
  --gold-600: #A9842E;
  --gold-500: #C49B3C;
  --gold-400: #D7B562;
  --gold-300: #E6CD8C;
  --gold-100: #F6EDD3;

  --cream: #FBF8F0;
  --paper: #FFFDF8;
  --ink: #232A19;
  --muted: #5B6250;
  --line: #E8E1CD;

  --gold-grad: linear-gradient(120deg, #C9A045 0%, #F1DC9A 42%, #C49B3C 70%, #E8CC80 100%);
  --gold-grad-dark: linear-gradient(120deg, #7E5E17 0%, #B48A2C 50%, #7E5E17 100%);

  /* Fine warm grain that gives the dark olive surfaces a soft, paper-like depth */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 .22 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --shadow: 0 24px 60px -28px rgba(42, 53, 32, .38);
  --header-h: 84px;

  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Amiri", "Times New Roman", serif;
}

html[lang="en"] {
  --font-display: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.7; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--olive-900); }
p { margin: 0 0 1em; }

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

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(76px, 10vw, 128px); }

.icon { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---------- Text helpers ---------- */

.gold-text,
.gold-text-dark {
  background: var(--gold-grad);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
.gold-text-dark { background-image: var(--gold-grad-dark); }

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--gold-700);
  font-weight: 600;
  font-size: .98rem;
}
.kicker::before,
.kicker-center::after {
  content: "";
  width: 30px;
  height: 1.5px;
  background: currentColor;
  opacity: .7;
}
html[lang="en"] .kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.3;
  margin-bottom: 20px;
}
html[lang="en"] h2 { line-height: 1.15; letter-spacing: -.01em; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gold-grad);
  color: var(--olive-950);
  box-shadow: 0 12px 30px -12px rgba(196, 155, 60, .7);
}
/* A band of light sweeps across gold buttons on hover */
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s ease;
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { box-shadow: 0 16px 36px -12px rgba(196, 155, 60, .9); }
.btn-ghost {
  border-color: rgba(230, 205, 140, .5);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(230, 205, 140, .1); border-color: var(--gold-300); }
.btn-sm { padding: .6em 1.3em; font-size: .92rem; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled,
.site-header.open {
  background: rgba(31, 39, 21, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px -22px rgba(0, 0, 0, .7);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  flex: none;
  color: var(--gold-400);
  --crest-fill: var(--olive-800);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  white-space: nowrap;
}
.brand-text small { color: var(--gold-300); font-size: .8rem; line-height: 1.3; }

.nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; }
.nav a {
  position: relative;
  color: rgba(251, 248, 240, .86);
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
  padding-block: 6px;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-400);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav a:hover { color: var(--gold-300); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.3;
  color: var(--gold-300);
  background: transparent;
  border: 1.5px solid rgba(230, 205, 140, .45);
  border-radius: 999px;
  padding: .5em 1.05em;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.lang-toggle:hover { background: rgba(230, 205, 140, .12); border-color: var(--gold-300); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(230, 205, 140, .35);
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-btn span {
  width: 20px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--gold-300);
  transition: transform .3s ease, opacity .3s ease;
}
.site-header.open .menu-btn span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.open .menu-btn span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(196, 155, 60, .18), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(90, 110, 58, .45), transparent 70%),
    var(--olive-950);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(130px, 14vw, 180px);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(60% 70% at 15% 10%, rgba(196, 155, 60, .18), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(90, 110, 58, .45), transparent 70%),
    var(--olive-950);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(36% 52% at 76% 50%, rgba(215, 181, 98, .16), transparent 70%),
    var(--grain);
  pointer-events: none;
}
[dir="rtl"] .hero::before {
  background:
    radial-gradient(36% 52% at 24% 50%, rgba(215, 181, 98, .16), transparent 70%),
    var(--grain);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-300);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 22px;
}
.eyebrow-branch { width: 64px; height: 18px; color: var(--gold-400); }
[dir="rtl"] .eyebrow-branch { transform: scaleX(-1); }

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.25;
  margin-bottom: 24px;
}
html[lang="en"] .hero h1 { line-height: 1.06; letter-spacing: -.015em; }

.hero-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: rgba(251, 248, 240, .8);
  max-width: 34em;
  margin-bottom: 26px;
}
.hero-quote {
  margin: 0 0 36px;
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.5;
  color: var(--gold-300);
}
html[lang="en"] .hero-quote { font-style: italic; font-weight: 500; }

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  color: rgba(251, 248, 240, .72);
  font-size: .96rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  transform: rotate(45deg);
}

/* Arch with the crest */
.hero-art { position: relative; justify-self: center; width: min(430px, 100%); }
.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18% 10% 12%;
  background: radial-gradient(120% 80% at 50% 18%, #627842 0%, #3B4A2A 52%, #222C17 100%);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(230, 205, 140, .3);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.arch::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px 999px 18px 18px;
  border: 1.5px solid rgba(215, 181, 98, .55);
  pointer-events: none;
}
.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(241, 220, 154, .22), transparent 70%),
    var(--grain);
  pointer-events: none;
}
.arch-crest {
  position: relative;
  z-index: 1;
  width: 78%;
  aspect-ratio: 1;
  color: var(--gold-400);
  --crest-fill: rgba(31, 39, 21, .7);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .35));
}
.arch-name {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: var(--gold-300);
}
.arch-name-en { font-family: "Playfair Display", Georgia, serif; font-size: .74rem; letter-spacing: .3em; }
.arch-name-ar { font-family: "Amiri", serif; font-size: 1.15rem; line-height: 1.5; }

.float-chip,
.float-card {
  position: absolute;
  z-index: 2;
  background: var(--paper);
  color: var(--olive-900);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .6);
}
.float-chip {
  top: 13%;
  inset-inline-start: -26px;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em 1.15em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  animation: pop-in .7s cubic-bezier(.3, 1.4, .5, 1) 1.3s backwards, float 6s ease-in-out 2s infinite;
}
.float-chip .icon { width: 16px; height: 16px; color: var(--gold-600); }
.float-card {
  bottom: -6%;
  inset-inline-end: -30px;
  display: flex;
  flex-direction: column;
  padding: 14px 22px 16px;
  border-radius: 18px;
  border-inline-start: 4px solid var(--gold-500);
  animation: pop-in .7s cubic-bezier(.3, 1.4, .5, 1) 1.6s backwards, float 6s ease-in-out 2.5s infinite;
}
.float-card strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.2; }
.float-card span { color: var(--muted); font-size: .9rem; line-height: 1.4; }

.art-branch {
  position: absolute;
  z-index: 2;
  width: 58%;
  height: auto;
  aspect-ratio: 220 / 60;
  bottom: -5%;
  inset-inline-start: -16%;
  color: var(--gold-400);
  transform: rotate(-10deg);
  transform-origin: 15% 75%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4));
  animation: sway 7s ease-in-out infinite;
}
[dir="rtl"] .art-branch { transform: scaleX(-1) rotate(-10deg); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Highlights ---------- */

.stats-wrap { position: relative; z-index: 3; margin-top: -78px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.stat { padding: 30px 22px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat strong {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  line-height: 1.2;
}
.stat span { display: block; color: var(--muted); font-size: .97rem; line-height: 1.5; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}
.about-copy > p { color: var(--muted); font-size: 1.1rem; }
.about-branch { width: 170px; height: auto; aspect-ratio: 220 / 60; margin-top: 18px; color: var(--olive-400); }
[dir="rtl"] .about-branch { transform: scaleX(-1); }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 28px; }
.value {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.value:hover { box-shadow: var(--shadow); }
.value:nth-child(even) { transform: translateY(28px); }
.value h3 { font-size: 1.4rem; line-height: 1.35; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: .97rem; margin: 0; line-height: 1.7; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--olive-800);
  color: var(--gold-400);
}
.icon-badge .icon { width: 26px; height: 26px; }

/* ---------- Promise band ---------- */

.quote-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--cream);
  background: radial-gradient(70% 90% at 50% 0%, #3E4E2B 0%, var(--olive-950) 70%);
  padding-block: clamp(84px, 11vw, 136px);
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 60% at 50% 58%, rgba(196, 155, 60, .16), transparent 70%),
    var(--grain);
  pointer-events: none;
}
.quote-band .container { position: relative; }
.quote-band .kicker { color: var(--gold-300); }
.qmark {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 7rem;
  line-height: .6;
  height: .45em;
  color: var(--gold-500);
  opacity: .9;
}
.quote-band blockquote {
  margin: 0 auto 22px;
  max-width: 16em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1.35;
}
html[lang="en"] .quote-band blockquote { line-height: 1.15; font-style: italic; font-weight: 600; }
.quote-caption { color: rgba(251, 248, 240, .72); font-size: 1.1rem; margin: 0; }

.band-branch {
  position: absolute;
  width: clamp(200px, 26vw, 340px);
  height: auto;
  aspect-ratio: 220 / 60;
  color: var(--gold-500);
  opacity: .32;
}
.band-branch-a { top: 18%; left: -40px; transform: rotate(14deg); }
.band-branch-b { bottom: 16%; right: -40px; transform: scaleX(-1) rotate(14deg); }

/* ---------- Tracks ---------- */

.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.track {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 32px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.track:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.track h3 { font-size: 1.65rem; line-height: 1.3; margin-bottom: 10px; }
.track > p { color: var(--muted); }
.track ul { list-style: none; padding: 0; margin: 6px 0 30px; display: grid; gap: 12px; }
.track li, .check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.track li .icon, .check-list li .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--gold-600); }

.arch-badge { width: 60px; height: 70px; border-radius: 999px 999px 14px 14px; }

.track-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--olive-700);
  text-decoration: none;
}
.track-link .icon { width: 18px; height: 18px; transition: transform .25s ease; }
.track-link:hover .icon { transform: translateX(4px); }
[dir="rtl"] .track-link:hover .icon { transform: scaleX(-1) translateX(4px); }

.track.featured {
  color: var(--cream);
  border-color: transparent;
  background:
    var(--grain),
    radial-gradient(90% 60% at 50% 0%, rgba(215, 181, 98, .2), transparent 65%),
    linear-gradient(160deg, var(--olive-700) 0%, var(--olive-950) 100%);
}
.track.featured h3 { color: var(--gold-300); }
.track.featured > p { color: rgba(251, 248, 240, .78); }
.track.featured li .icon { color: var(--gold-400); }
.track.featured .icon-badge { background: var(--gold-grad); color: var(--olive-950); }
.track.featured .track-link { color: var(--gold-300); }
.badge {
  position: absolute;
  top: 26px;
  inset-inline-end: 26px;
  padding: .3em .95em;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--olive-950);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- Weekend school ---------- */

.weekend {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(196, 155, 60, .12), transparent 60%),
    var(--olive-100);
}
.weekend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}
.weekend-grid > div:first-child > p { color: var(--muted); font-size: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; font-weight: 500; }

.week-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 18px 34px 28px;
  box-shadow: var(--shadow);
}
.wk-row { display: grid; gap: 14px; padding-block: 24px; }
.wk-row + .wk-row { border-top: 1px dashed var(--line); }
.wk-row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.wk-row-head h3 { font-size: 1.45rem; line-height: 1.3; }
.wk-row-head span { color: var(--muted); font-size: .95rem; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.days i { position: relative; overflow: hidden; height: 16px; border-radius: 999px; background: var(--olive-100); }
/* Each day fills in turn when the card scrolls into view */
.days i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--k, 0) * 90ms + var(--base, 250ms));
}
[dir="rtl"] .days i::after { transform-origin: right; }
.days i:nth-child(1) { --k: 1; } .days i:nth-child(2) { --k: 2; } .days i:nth-child(3) { --k: 3; }
.days i:nth-child(4) { --k: 4; } .days i:nth-child(5) { --k: 5; } .days i:nth-child(6) { --k: 6; }
.days i:nth-child(7) { --k: 7; }
.days-weekend { --base: 700ms; }
.days-weekdays i:nth-child(-n + 5)::after { background: var(--olive-600); }
.days-weekend i:nth-child(n + 6)::after { background: var(--gold-grad); }
.js .week-card:not(.in) .days i::after { transform: scaleX(0); }
.wk-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--gold-100);
  color: var(--gold-700);
  font-weight: 600;
}
.wk-foot .icon { width: 20px; height: 20px; }

/* ---------- Team ---------- */

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.member { text-align: center; }
.portrait {
  position: relative;
  width: min(230px, 100%);
  aspect-ratio: 1 / 1.12;
  margin: 0 auto 22px;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  display: grid;
  place-items: end center;
  background:
    var(--grain),
    radial-gradient(70% 55% at 50% 38%, rgba(230, 205, 140, .22), transparent 70%),
    linear-gradient(170deg, var(--olive-600) 0%, var(--olive-900) 100%);
  transition: transform .35s ease, box-shadow .35s ease;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px 999px 18px 18px;
  border: 1.5px solid rgba(215, 181, 98, .5);
  pointer-events: none;
}
.portrait svg { width: 56%; height: auto; aspect-ratio: 100 / 110; color: var(--gold-300); opacity: .5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.member:hover .portrait { transform: translateY(-4px); box-shadow: var(--shadow); }
.member h3 { font-size: 1.4rem; line-height: 1.35; margin-bottom: 6px; }
.member p { color: var(--muted); font-size: .98rem; max-width: 24em; margin-inline: auto; line-height: 1.7; }

/* ---------- Admissions ---------- */

.admissions { background: var(--paper); border-block: 1px solid var(--line); }
.steps {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  inset-inline: 12%;
  border-top: 1.5px dashed var(--gold-400);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1) .2s;
}
[dir="rtl"] .steps::before { transform-origin: right; }
.js .steps:not(.in)::before { transform: scaleX(0); }
.step { position: relative; text-align: center; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--olive-900);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--gold-500);
  color: var(--gold-300);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}
.step h3 { font-size: 1.35rem; line-height: 1.35; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Contact ---------- */

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 36px;
  color: var(--cream);
  background:
    var(--grain),
    radial-gradient(80% 100% at 0% 0%, rgba(196, 155, 60, .22), transparent 55%),
    radial-gradient(60% 80% at 100% 100%, rgba(140, 154, 94, .25), transparent 60%),
    linear-gradient(150deg, var(--olive-800) 0%, var(--olive-950) 100%);
  box-shadow: var(--shadow);
}
.contact-card .kicker { color: var(--gold-300); }
.contact-card h2 { color: var(--cream); }
.contact-text { color: rgba(251, 248, 240, .78); font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(230, 205, 140, .2);
}
.contact-list li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact-list small { color: var(--gold-300); font-size: .85rem; line-height: 1.4; }
.contact-list strong { font-weight: 600; font-size: 1.05rem; line-height: 1.5; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-300); }
[dir="rtl"] .contact-list [dir="ltr"] { text-align: right; }
.icon-badge.gold { margin: 0; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-grad); color: var(--olive-950); }
.icon-badge.gold .icon { width: 22px; height: 22px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--olive-950); color: rgba(251, 248, 240, .7); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { margin: 18px 0 0; max-width: 24em; }
.site-footer h4 { color: var(--gold-300); font-size: 1.15rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--gold-300); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(230, 205, 140, .16);
  font-size: .92rem;
}
.footer-bottom p { margin: 0; }
.footer-quote { color: var(--gold-300); font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- Video ---------- */

.video-section { background: var(--paper); border-block: 1px solid var(--line); }
.video-frame {
  position: relative;
  max-width: 1000px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  overflow: hidden;
  background: var(--olive-950);
  box-shadow: 0 40px 80px -40px rgba(31, 39, 21, .6);
}
.video-frame iframe,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--cream);
  background:
    var(--grain),
    radial-gradient(40% 55% at 50% 48%, rgba(215, 181, 98, .18), transparent 70%),
    radial-gradient(70% 90% at 50% 40%, #566C39 0%, #2A3520 60%, #1A2112 100%);
}
.video-poster::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1.5px solid rgba(215, 181, 98, .4);
  pointer-events: none;
}
.video-crest {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(46%, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--gold-400);
  opacity: .14;
  --crest-fill: transparent;
  pointer-events: none;
}
.play-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--olive-950);
  cursor: pointer;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .7);
  transition: transform .3s ease;
}
.play-btn svg { width: 36px; height: 36px; margin-left: 5px; }
.play-btn::before,
.play-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  animation: pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.play-btn::after { animation-delay: 1.3s; }
.video-poster:hover .play-btn { transform: scale(1.07); }
.video-label {
  position: absolute;
  bottom: 38px;
  inset-inline-start: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--gold-300);
}
.video-label::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.video-soon {
  position: absolute;
  top: 36px;
  inset-inline-end: 40px;
  padding: .4em 1.05em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(230, 205, 140, .35);
  color: var(--gold-300);
  font-size: .86rem;
  font-weight: 600;
}
.video-soon.nudge { animation: nudge .6s ease; }

/* ---------- Motion ---------- */

/* Gold line under the header that fills as you scroll */
.scroll-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
[dir="rtl"] .scroll-progress { transform-origin: right; }

/* Olive leaves drifting down behind the hero */
.hero-leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.drift-leaf {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: calc(30px * var(--s, 1));
  height: calc(12px * var(--s, 1));
  color: var(--gold-400);
  opacity: var(--o, .3);
  animation: drift var(--dur, 20s) linear var(--delay, 0s) infinite;
}

/* Hero text rises in line by line */
.js .intro-item { animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
.js .hero-art { animation: rise-art 1.1s cubic-bezier(.2, .7, .2, 1) .25s backwards; }

/* The crest draws itself: disc, ring, stems, then leaves from the bottom up */
.arch-crest .crest-disc,
.arch-crest .leaf,
.arch-crest .crest-olives circle,
.arch-crest .crest-tie,
.arch-crest .crest-star { transform-box: fill-box; transform-origin: center; }
.arch-crest .crest-stems path,
.arch-crest .crest-ring { stroke-dasharray: 1; }
.js .arch-crest .crest-disc { animation: grow .8s cubic-bezier(.2, .7, .2, 1) .4s backwards; }
.js .arch-crest .crest-ring { animation: draw 1.2s ease .7s backwards; }
.js .arch-crest .crest-letter { animation: rise .8s cubic-bezier(.2, .7, .2, 1) 1s backwards; }
.js .arch-crest .crest-stems path { animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) .8s backwards; }
.js .arch-crest .leaf { animation: leaf-in .6s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(1s + var(--i) * 120ms); }
.js .arch-crest .crest-olives circle { animation: grow .5s cubic-bezier(.3, 1.5, .5, 1) 1.9s backwards; }
.js .arch-crest .crest-tie { animation: grow .5s cubic-bezier(.3, 1.5, .5, 1) .9s backwards; }
.js .arch-crest .crest-star { animation: grow .6s cubic-bezier(.3, 1.5, .5, 1) 2s backwards, spin 30s linear 2.6s infinite; }

.band-branch-a { animation: sway 8s ease-in-out infinite; }
.band-branch-b { animation: sway 9s ease-in-out 1s infinite; }

/* Highlight numbers pop up one after another */
.js .stats .stat strong { opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .6s ease, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.js .stats.in .stat strong { opacity: 1; transform: none; }
.js .stats.in .stat:nth-child(2) strong { transition-delay: .12s; }
.js .stats.in .stat:nth-child(3) strong { transition-delay: .24s; }

/* Admissions step numbers pop in as the dashed line draws across */
.js .step .step-num { transform: scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1) .15s, opacity .4s ease .15s; }
.js .step.in .step-num { transform: none; opacity: 1; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-art { from { opacity: 0; transform: translateY(34px) scale(.97); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.6); } }
@keyframes grow { from { opacity: 0; transform: scale(0); } }
@keyframes leaf-in { from { opacity: 0; transform: scale(0) rotate(-25deg); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 4deg; } }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  25%  { transform: translate3d(34px, 32vh, 0) rotate(80deg); }
  50%  { transform: translate3d(-14px, 64vh, 0) rotate(170deg); }
  75%  { transform: translate3d(26px, 96vh, 0) rotate(260deg); }
  100% { transform: translate3d(0, 130vh, 0) rotate(350deg); }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .value.reveal.in:nth-child(even) { transform: translateY(28px); }
.js .track.reveal.in { transition: opacity .8s ease, transform .35s ease, box-shadow .35s ease; }
.js .track.reveal.in:hover { transform: translateY(-6px); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a { font-size: .92rem; }
}

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .nav {
    position: absolute;
    top: calc(var(--header-h) - 6px);
    inset-inline: 16px;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 20px;
    background: var(--olive-950);
    border: 1px solid rgba(230, 205, 140, .18);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .site-header.open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
  .nav a::after { display: none; }
  .nav a:hover { background: rgba(230, 205, 140, .08); }
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .weekend-grid,
  .contact-card { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-quote { border-inline-start: 0; padding-inline-start: 0; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-art { width: min(360px, 82%); margin-top: 12px; }

  .values { padding-bottom: 0; }
  .value:nth-child(even),
  .js .value.reveal.in:nth-child(even) { transform: none; }

  .tracks { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .team { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .band-branch { opacity: .18; }
}

@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .header-cta { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .header-inner { gap: 14px; }
  .brand { flex: 1 1 auto; }
  .brand-text strong { font-size: 1.02rem; white-space: normal; line-height: 1.2; }
  .brand-text small { display: none; }
  .lang-toggle { padding: .45em .85em; font-size: .86rem; }

  .arch-name { display: none; }
  .float-chip { inset-inline-start: -8px; }
  .float-card { inset-inline-end: -10px; padding: 10px 16px 12px; }
  .float-card strong { font-size: 1.5rem; }

  .stats { grid-template-columns: 1fr; }
  .stat { padding: 20px 16px; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); }

  .video-frame { border-radius: 22px; aspect-ratio: 4 / 3; }
  .video-poster::before { inset: 10px; border-radius: 16px; }
  .play-btn { width: 72px; height: 72px; }
  .play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
  .video-label { bottom: 22px; inset-inline-start: 24px; }
  .video-soon { top: 22px; inset-inline-end: 22px; font-size: .78rem; }
  .values { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .week-card { padding: 10px 22px 22px; }
  .contact-card { border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .hero-leaves { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .stats .stat strong, .js .step .step-num { opacity: 1; transform: none; }
  .js .week-card:not(.in) .days i::after, .js .steps:not(.in)::before { transform: none; }
  .btn, .btn-gold::after, .track, .portrait, .value, .arch { transition: none; }
}
