/* Fakher Mergasori School — site styles */
:root {
  --ink: #151B36;
  --navy: #1F2A6B;
  --navy-deep: #131A47;
  --orange: #D9701E;
  --orange-ink: #A4500C;
  --honey: #F2B27A;
  --olive: #2F5A3E;
  --olive-soft: #E4EADF;
  --stone: #F4EFE6;
  --paper: #FFFCF7;
  --line: #E1D8C7;
  --muted: #565B75;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-scale: 1;
  --display-weight: 600;
  --display-leading: 0.98;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[dir="rtl"] {
  --serif: 'Noto Naskh Arabic', 'Geeza Pro', serif;
  --sans: 'Noto Sans Arabic', 'Geeza Pro', system-ui, sans-serif;
  --display-scale: 0.78;
  --display-weight: 700;
  --display-leading: 1.12;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[dir="rtl"] body { line-height: 1.85; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.bg-stone :focus-visible { outline-color: var(--orange-ink); } /* --orange is under 3:1 on stone */
h1, h2, h3 { font-family: var(--serif); font-weight: var(--display-weight); line-height: 1.08; margin: 0; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* Type helpers */
.label { font: 600 0.875rem/1.3 var(--sans); color: var(--orange-ink); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }
.on-dark .label { color: var(--honey); }
.h-xl { font-size: calc(clamp(2.4rem, 4.6vw, 4rem) * var(--display-scale)); }
.h-lg { font-size: calc(clamp(2rem, 3.6vw, 3.1rem) * var(--display-scale)); }
.h-md { font-size: calc(clamp(1.5rem, 2.2vw, 1.9rem) * var(--display-scale)); }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.section { padding-block: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > div { max-width: 640px; }
.section-head p { margin: 16px 0 0; color: var(--muted); }
.bg-stone { background: var(--stone); }
.bg-navy { background: var(--navy); color: #E8EAF6; }
.bg-ink { background: var(--ink); color: #DADDEB; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .muted, .on-dark .lede { color: #B9BEDA; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius); font: 600 0.9375rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn-solid { background: #B85E14; color: #fff; } /* darker than --orange so white label text meets 4.5:1 */
.btn-solid:hover { background: var(--orange-ink); color: #fff; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn-line, .hero .btn-line { color: #fff; }
.on-dark .btn-line:hover, .hero .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: #E6C9AE; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--orange); padding-bottom: 4px; }
.on-dark .link { color: #fff; }
.ico-arrow { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
[dir="rtl"] .ico-arrow { transform: scaleX(-1); }
.link:hover .ico-arrow, .btn:hover .ico-arrow { transform: translateX(3px); }
[dir="rtl"] .link:hover .ico-arrow, [dir="rtl"] .btn:hover .ico-arrow { transform: scaleX(-1) translateX(3px); }

/* Crest arc */
.arc-g { stroke: #3E8E4E; }
.arc-o { stroke: var(--orange); }

/* Announcement + header */
.announce { background: var(--navy-deep); color: #D7DBF0; font-size: 0.875rem; position: relative; z-index: 60; }
.announce .wrap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 40px; text-align: center; padding-block: 6px; padding-inline: 48px; }
.announce p { margin: 0; display: flex; justify-content: center; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.announce-close { position: absolute; inset-inline-end: calc(var(--gutter) - 8px); top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: #AEB3D4; font-size: 1.35rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.announce-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.no-announce .announce { display: none; }
.announce a { color: var(--honey); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.announce a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 247, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s, box-shadow .3s; }
/* Scrolled: tighter row, smaller crest, soft shadow. Scrolling down far hides it; scrolling up brings it back. */
.site-header.is-compact { box-shadow: 0 10px 30px -22px rgba(21, 27, 54, .45); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-over:not(.is-solid)::before { content: ''; position: absolute; inset: 0 0 -70px; background: linear-gradient(to bottom, rgba(14, 18, 48, .55), rgba(14, 18, 48, 0)); pointer-events: none; z-index: -1; }
.header-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; pointer-events: none; transition: opacity .3s; }
.header-progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .header-progress span { transform-origin: right; }
.site-header.is-over:not(.is-solid) .header-progress { opacity: 0; }
.site-header.is-over:not(.is-solid) { position: absolute; inset-inline: 0; top: 0; background: transparent; border-color: rgba(255, 255, 255, .18); backdrop-filter: none; color: #fff; }
.site-header.is-over.is-solid .announce { display: none; }
.site-header.is-over.is-solid { position: fixed; inset-inline: 0; top: 0; animation: drop .35s var(--ease); }
@keyframes drop { from { transform: translateY(-100%); } }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; transition: min-height .35s var(--ease); }
.is-compact .header-row { min-height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; transition: width .35s var(--ease), height .35s var(--ease), box-shadow .3s; }
.is-compact .brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: var(--display-weight) calc(1.45rem * var(--display-scale)) / 1.05 var(--serif); }
.brand-kind { font-size: 0.75rem; letter-spacing: 0.02em; opacity: .75; margin-top: 3px; max-height: 1.4em; overflow: hidden; transition: max-height .35s var(--ease), opacity .25s, margin .35s var(--ease); }
.is-compact .brand-kind { max-height: 0; opacity: 0; margin-top: 0; }

/* Language picker */
.lang-pick { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 40px; background: none; color: inherit; cursor: pointer; font-weight: 600; font-size: 0.875rem; transition: border-color .2s, background .2s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: color-mix(in srgb, currentColor 30%, transparent); }
.lang-btn svg { width: 16px; height: 16px; flex: none; }
.lang-btn svg:last-child { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.lang-btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
[dir="rtl"] .lang-btn span { font-family: 'Noto Sans Arabic', var(--sans); }
.lang-list { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 190px; padding: 6px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 22px 44px -24px rgba(21, 27, 54, .5); z-index: 5; }
.lang-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.lang-list a[lang="ar"], .lang-list a[lang="ckb"] { font-family: 'Noto Sans Arabic', var(--sans); }
.lang-list a:hover { background: var(--stone); color: var(--ink); }
.lang-list a[aria-current] { font-weight: 700; color: var(--navy); }
.lang-list svg { width: 16px; height: 16px; color: var(--orange-ink); }
@media (prefers-reduced-motion: no-preference) { .lang-list:not([hidden]) { animation: fade .25s var(--ease); } }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; white-space: nowrap; padding: 10px 12px; color: inherit; text-decoration: none; font-weight: 500; font-size: 0.9375rem; position: relative; }
.main-nav a::after { content: ''; position: absolute; inset-inline: 12px; bottom: 4px; height: 1.5px; background: var(--orange); transform: scaleX(0); transition: transform .25s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav a:hover { color: inherit; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 2px; font-size: 0.875rem; }
.langs a { padding: 6px 8px; color: inherit; text-decoration: none; opacity: .7; border-bottom: 1.5px solid transparent; }
.langs a[lang="ar"], .langs a[lang="ckb"] { font-family: 'Noto Sans Arabic', var(--sans); }
.langs a:hover { opacity: 1; color: inherit; }
.langs a[aria-current] { opacity: 1; border-color: var(--orange); font-weight: 600; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 1px solid currentColor; color: inherit; border-radius: var(--radius); min-height: 42px; padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 0.875rem; }
.menu-lines { width: 18px; height: 10px; border-block: 1.5px solid currentColor; position: relative; transition: .25s; }
.menu-open .menu-lines { border-color: transparent; }
.menu-open .menu-lines::before, .menu-open .menu-lines::after { content: ''; position: absolute; inset-inline: 0; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.menu-open .menu-lines::after { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--navy-deep); color: #fff; padding-top: 96px; overflow-y: auto; }
.menu-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px 64px; padding-bottom: 40px; align-items: start; }
.menu-side { display: flex; flex-direction: column; gap: 26px; padding-top: 10px; }
.menu-open-card { border: 1px solid rgba(255, 255, 255, .14); padding: 14px 14px 20px; }
.menu-open-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 14px; }
.menu-open-card p { color: var(--honey); font-weight: 600; margin: 0 0 14px; }
.menu-contact li + li { margin-top: 4px; }
.menu-contact a { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; color: #E4E7F4; text-decoration: none; }
.menu-contact a:hover { color: var(--honey); }
.menu-contact svg { width: 20px; height: 20px; flex: none; color: var(--honey); }
.menu-contact li:first-child svg { color: #3ACB6C; }
@media (max-width: 760px) { .menu-inner { grid-template-columns: 1fr; } .menu-open-card img { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: fade .35s var(--ease); }
  .menu:not([hidden]) .menu-list li { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
  .menu:not([hidden]) .menu-side { animation: rise .7s var(--ease) both .25s; }
}
.menu-list a { display: block; padding: 10px 0; font: var(--display-weight) calc(2.2rem * var(--display-scale)) / 1.15 var(--serif); color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.menu-list a[aria-current] { color: var(--honey); }
.menu-open .site-header .announce, body.menu-open > .announce { display: none; }
.menu-open .site-header { position: fixed; inset-inline: 0; top: 0; background: var(--navy-deep); color: #fff; border-color: rgba(255,255,255,.1); }
body.menu-open { overflow: hidden; }
.menu-open .site-header { transform: none; }
.menu-open .header-progress { opacity: 0; }

@media (max-width: 1180px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .header-tools { margin-inline-start: auto; }
}
[dir="rtl"] .main-nav a { padding: 10px 8px; font-size: 0.875rem; }
[dir="rtl"] .main-nav a::after { inset-inline: 8px; }
[dir="rtl"] .header-row { gap: 20px; }
@media (max-width: 1500px) { [dir="rtl"] .brand-kind { display: none; } }
@media (max-width: 1340px) {
  [dir="rtl"] .main-nav, [dir="rtl"] .header-cta { display: none; }
  [dir="rtl"] .menu-btn { display: inline-flex; }
  [dir="rtl"] .header-tools { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .announce { font-size: 0.8125rem; }
  body:not(.page-home) > .announce { display: none; }
  .brand-kind { display: none; }
  .header-tools .lang-pick { display: none; }
  .header-row { min-height: 66px; }
  .brand img { width: 42px; height: 42px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* visually hidden, still names the button */
}

/* Home hero */
.hero { position: relative; min-height: max(640px, 100svh); color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-deep); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The frame plays the entrance zoom; the photo inside only drifts on scroll (site.js), at a fixed
   1.08 scale so the two never fight over one transform. */
.hero-media { overflow: hidden; }
.hero-media img { transform: scale(1.08); will-change: transform; }
.hero-media.is-flipped img { transform: scaleX(-1) scale(1.08); }
.hero::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(14, 18, 48, .92) 0%, rgba(14, 18, 48, .55) 38%, rgba(14, 18, 48, .05) 70%),
  linear-gradient(to right, rgba(14, 18, 48, .55), rgba(14, 18, 48, 0) 60%); }
[dir="rtl"] .hero::after { background:
  linear-gradient(to top, rgba(14, 18, 48, .92) 0%, rgba(14, 18, 48, .55) 38%, rgba(14, 18, 48, .05) 70%),
  linear-gradient(to left, rgba(14, 18, 48, .55), rgba(14, 18, 48, 0) 60%); }
.hero-inner { position: relative; z-index: 2; padding-top: 200px; padding-bottom: 36px; width: 100%; }
.hero-kicker { font-weight: 600; font-size: 0.9375rem; color: var(--honey); margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: calc(clamp(3.4rem, 9.2vw, 8.6rem) * var(--display-scale)); line-height: var(--display-leading); letter-spacing: -0.02em; font-weight: 500; }
[dir="rtl"] .hero h1 { font-weight: 700; letter-spacing: 0; font-size: clamp(3.1rem, 7.4vw, 6.8rem); }
/* Arabic script sits taller in its line box: pull the kicker, headline lines and arc closer together. */
[dir="rtl"] .hero-kicker { margin-bottom: 6px; }
[dir="rtl"] .hero h1 span + span { margin-top: -0.08em; }
[dir="rtl"] .hero .arc-wide { margin: 10px 0 22px; }
.hero h1 span { display: block; }
.hero-title { width: fit-content; max-width: 100%; }
.arc-wide { display: block; position: relative; height: clamp(34px, 4.6vw, 66px); margin: 14px 0 26px; }
.arc-wide svg { display: block; width: 100%; height: 100%; overflow: visible; }
.arc-wide path { fill: none; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.arc-wide::after { content: ''; position: absolute; left: 50%; top: 50%; width: clamp(12px, 1.2vw, 16px); aspect-ratio: 1; border-radius: 50%; background: #F4B331; transform: translate(-50%, -50%); }
.hero-text { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 34em; color: #E6E8F4; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-facts > div { padding: 18px 24px 0 0; }
[dir="rtl"] .hero-facts > div { padding: 18px 0 0 24px; }
.hero-facts dt { font-weight: 600; color: #fff; }
.hero-facts dd { margin: 2px 0 0; color: #B9BEDA; font-size: 0.9375rem; }
@media (max-width: 720px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  [dir="rtl"] .hero-facts > div { padding: 12px 0; }
  .hero-facts dd { margin: 0; text-align: end; }
}

/* One orchestrated entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media { animation: settle 2.4s var(--ease) both; }
  .js .hero-rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  /* Opens outward from the centre like a book. A clip reveal, not a dash: dash lengths break with non-scaling strokes. */
  .js .hero .arc-wide svg { animation: open-wide 1.4s var(--ease) both .6s; }
  .js .hero .arc-wide::after { animation: sun-wide .8s var(--ease) both 1.4s; }
}
@keyframes settle { from { transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes sun { from { transform: scale(0); opacity: 0; } }
@keyframes open-wide { from { clip-path: inset(-20% 50% -20% 50%); } to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes sun-wide { from { transform: translate(-50%, -50%) scale(0); opacity: 0; } }

/* Welcome */
.welcome { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.welcome-text { font: 500 calc(clamp(1.75rem, 3vw, 2.6rem) * var(--display-scale)) / 1.28 var(--serif); color: var(--ink); margin: 0 0 32px; }
[dir="rtl"] .welcome-text { font-weight: 500; line-height: 1.7; }
.glance { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.glance > div { padding: 26px 0 26px; border-bottom: 1px solid var(--line); }
.glance > div:nth-child(odd) { padding-inline-end: 24px; border-inline-end: 1px solid var(--line); }
.glance > div:nth-child(even) { padding-inline-start: 28px; }
.glance dt { font: 500 calc(clamp(2.8rem, 4vw, 3.6rem) * var(--display-scale)) / 1 var(--serif); color: var(--navy); }
.glance dd { margin: 10px 0 0; }
.glance dd strong { display: block; font-weight: 600; font-size: 0.9375rem; }
.glance dd span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 900px) { .welcome { grid-template-columns: 1fr; } }

/* Principal */
.principal { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.principal-media { position: relative; min-height: 360px; }
.principal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.principal-body { padding: clamp(48px, 7vw, 110px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.principal blockquote { margin: 0 0 28px; font: 500 calc(clamp(1.9rem, 3.2vw, 2.9rem) * var(--display-scale)) / 1.15 var(--serif); color: var(--ink); position: relative; }
[dir="rtl"] .principal blockquote { line-height: 1.6; }
.principal blockquote::before { content: '“'; display: block; font-size: 5rem; line-height: .6; color: var(--orange); height: 36px; font-family: 'Cormorant Garamond', serif; }
[dir="rtl"] .principal blockquote::before { content: '”'; }
.principal-sign { margin-top: 12px; display: flex; flex-direction: column; }
.principal-sign strong { font: var(--display-weight) 1.35rem/1.2 var(--serif); }
.principal-sign span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 900px) { .principal { grid-template-columns: 1fr; } }

/* Tabs (day, stages, grades) */
.tablist { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 16px 20px 14px; cursor: pointer; text-align: start; color: var(--muted); transition: color .2s, border-color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--orange); }
.on-dark .tablist { border-color: rgba(255, 255, 255, .16); }
.on-dark .tab { color: #9EA4C8; }
.on-dark .tab:hover, .on-dark .tab[aria-selected="true"] { color: #fff; }
.tab-time { display: block; font: 500 calc(1.9rem * var(--display-scale)) / 1 var(--serif); }
.tab-sub { display: block; font-size: 0.875rem; margin-top: 6px; }
.tab-sub-only { font-weight: 600; font-size: 0.9375rem; }
[role="tabpanel"][hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .js [role="tabpanel"]:not([hidden]) { animation: fade .45s var(--ease); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.day-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 4vw, 56px); }
.day-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.day-time { font: 500 calc(clamp(4rem, 8vw, 7rem) * var(--display-scale)) / .9 var(--serif); color: var(--honey); margin-bottom: 18px; direction: ltr; }
[dir="rtl"] .day-time { text-align: right; }
@media (max-width: 900px) { .day-panel { grid-template-columns: 1fr; } }

/* A day at Fakher: on large screens the section pins and the day advances as you scroll. */
.day-scroll { padding-block: var(--section); }
.day-progress { display: none; height: 2px; background: rgba(255, 255, 255, .12); margin-top: -1px; }
.day-progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .day-progress span { transform-origin: right; }
@media (min-height: 700px) {
  .js .day-scroll { height: calc(var(--steps) * 55vh + 100vh); padding: 0; }
  .js .day-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 77px; overflow: hidden; }
  .js .day-scroll .section-head { margin-bottom: 20px; }
  .js .day-scroll .tab { border-bottom-color: transparent; }
  .js .day-scroll .day-progress { display: block; }
  .js .day-scroll .day-panel { padding-top: 28px; }
  .js .day-scroll .day-panel img { aspect-ratio: auto; height: min(44vh, 460px); }
}
/* Phones: the same pinned timeline, compacted to fit one screen. */
@media (max-width: 900px) and (min-height: 700px) {
  .js .day-sticky { padding-top: 66px; align-items: flex-start; }
  .js .day-sticky > .wrap { padding-top: 22px; }
  .js .day-scroll .section-head { margin-bottom: 8px; }
  .js .day-scroll .section-head .label { margin-bottom: 8px; }
  .js .day-scroll .h-lg { font-size: calc(1.9rem * var(--display-scale)); }
  .js .day-scroll .tab { padding: 10px 14px 10px; }
  .js .day-scroll .tab-time { font-size: calc(1.5rem * var(--display-scale)); }
  .js .day-scroll .day-panel { padding-top: 16px; gap: 14px; }
  .js .day-scroll .day-panel img { height: 27vh; }
  .js .day-scroll .day-time { font-size: calc(3rem * var(--display-scale)); margin-bottom: 6px; }
  .js .day-scroll .day-panel .muted { margin-top: 8px !important; font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .day-panel:not([hidden]) img { animation: day-img 1.1s var(--ease) both; }
  .js .day-panel:not([hidden]) .day-time { animation: rise .7s var(--ease) both .05s; }
  .js .day-panel:not([hidden]) h3 { animation: rise .7s var(--ease) both .12s; }
  .js .day-panel:not([hidden]) .muted { animation: rise .7s var(--ease) both .19s; }
}
@keyframes day-img { from { opacity: 0; transform: scale(1.06); } }

/* Photo tour band */
.tour { position: relative; min-height: 520px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.tour > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(14, 18, 48, .78), rgba(14, 18, 48, .1) 70%); }
[dir="rtl"] .tour::after { background: linear-gradient(to left, rgba(14, 18, 48, .78), rgba(14, 18, 48, .1) 70%); }
.tour .wrap { position: relative; z-index: 2; }
.tour h2 { color: #fff; max-width: 12em; }
.tour p { color: #DDE0EF; max-width: 30em; margin: 16px 0 28px; }
.play { display: inline-flex; align-items: center; gap: 16px; background: none; border: 0; color: #fff; cursor: pointer; font-weight: 600; padding: 0; }
.play-ring { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.play-ring svg { width: 20px; height: 20px; }
[dir="rtl"] .play-ring svg { transform: scaleX(-1); }
.play:hover .play-ring { background: var(--orange); border-color: var(--orange); }

/* Stage cards */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.stage { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.stage-media { overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 22px; background: var(--stone); }
.stage-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.stage:hover .stage-media img { transform: scale(1.04); }
.stage-meta { font-size: 0.875rem; font-weight: 600; color: var(--orange-ink); margin-bottom: 8px; }
.stage h3 { font-size: calc(1.9rem * var(--display-scale)); margin-bottom: 8px; }
.stage p { color: var(--muted); margin-bottom: 18px; }
.stage .link { margin-top: auto; align-self: flex-start; }
.stage:hover { color: inherit; }
@media (max-width: 900px) { .stages { grid-template-columns: 1fr; } .stage-media { aspect-ratio: 16 / 10; } }

/* Commitments */
.commit { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.4fr; gap: clamp(32px, 6vw, 96px); }
.commit-list li { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.commit-list li:last-child { border-bottom: 1px solid var(--line); }
.commit-list h3 { font-size: calc(1.75rem * var(--display-scale)); }
.commit-list p { margin: 0; color: var(--muted); }
.commit-aside { position: sticky; top: 120px; align-self: start; }
.commit-aside img { margin-top: 36px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .commit { grid-template-columns: 1fr; } .commit-aside { position: static; } .commit-aside img { aspect-ratio: 16 / 10; } .commit-list li { grid-template-columns: 1fr; } }

/* Life mosaic */
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 12px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; background: var(--stone); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; inset-inline-start: 0; bottom: 0; padding: 40px 18px 14px; width: 100%; color: #fff; font-weight: 600; font-size: 0.9375rem; background: linear-gradient(to top, rgba(14, 18, 48, .7), transparent); }
.mosaic-note { background: var(--navy); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.mosaic-note p { font: 500 calc(1.6rem * var(--display-scale)) / 1.25 var(--serif); margin: 0; }
@media (max-width: 900px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; } .mosaic figure:first-child { grid-column: span 2; grid-row: auto; } }

/* News + events */
.news-home { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 72px); }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; position: relative; }
.nc-open { all: unset; cursor: pointer; }
.nc-open::after { content: ''; position: absolute; inset: 0; }
.nc-open:focus-visible { outline: none; }
.news-card:has(.nc-open:focus-visible) { outline: 2px solid var(--orange); outline-offset: 6px; }
.nc-meta { margin: 0; }
.news-card .nc-media { overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 16px; background: var(--stone); width: 100%; }
.news-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover img { transform: scale(1.04); }
.news-card:hover h3 { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.nc-meta { font-size: 0.8125rem; font-weight: 600; color: var(--orange-ink); margin-bottom: 6px; }
.news-card h3 { font-size: calc(1.35rem * var(--display-scale)); line-height: 1.2; }
.events li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: center; }
.events li:last-child { border-bottom: 1px solid var(--line); }
.ev-date { text-align: center; border: 1px solid var(--line); padding: 8px 0 6px; background: var(--paper); }
.ev-date strong { display: block; font: 600 calc(1.8rem * var(--display-scale)) / 1 var(--serif); color: var(--navy); }
.ev-date span { font-size: 0.75rem; font-weight: 600; color: var(--orange-ink); }
.events h3 { font: 600 1rem/1.35 var(--sans); }
.events p { margin: 2px 0 0; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 1000px) { .news-home { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .news-cards { grid-template-columns: 1fr; } .news-card .nc-media { aspect-ratio: 16 / 9; } }

/* Admissions call to action */
.cta { position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cta p { color: #C9CDE6; max-width: 36em; margin: 18px 0 30px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown { border: 1px solid rgba(255, 255, 255, .18); padding: clamp(24px, 3vw, 40px); }
.countdown-when { font-weight: 600; color: var(--honey); margin-bottom: 20px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown-grid div { text-align: center; }
.countdown-grid strong { display: block; font: 500 clamp(2.6rem, 5vw, 4.2rem)/1 'Cormorant Garamond', serif; color: #fff; font-variant-numeric: tabular-nums; }
.countdown-grid span { font-size: 0.8125rem; color: #9EA4C8; }
[dir="rtl"] .countdown-grid span { font-family: var(--sans); }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* Inner page head */
.page-head { position: relative; min-height: 480px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-deep); }
.page-head-media, .page-head-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 18, 48, .9), rgba(14, 18, 48, .35) 70%, rgba(14, 18, 48, .25)); }
[dir="rtl"] .page-head::after { background: linear-gradient(to top, rgba(14, 18, 48, .9), rgba(14, 18, 48, .35) 70%, rgba(14, 18, 48, .25)), linear-gradient(to left, rgba(14, 18, 48, .6), rgba(14, 18, 48, 0) 55%); }
.page-head-inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(40px, 5vw, 64px); }
.page-head h1 { color: #fff; font-size: calc(clamp(3rem, 7vw, 5.8rem) * var(--display-scale)); line-height: var(--display-leading); font-weight: 500; }
[dir="rtl"] .page-head h1 { font-weight: 700; }
.page-head p { font-size: 1.1875rem; color: #E1E4F2; max-width: 34em; margin: 18px 0 0; }
.crumbs { display: flex; gap: 10px; font-size: 0.875rem; margin-bottom: 20px; color: #C9CDE6; }
.crumbs li + li::before { content: '/'; margin-inline-end: 10px; opacity: .5; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--honey); }

/* Generic grids */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .split, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.rule-item { border-top: 1px solid var(--line); padding-top: 22px; }
.on-dark .rule-item { border-color: rgba(255, 255, 255, .16); }
.rule-item h3 { font-size: calc(1.6rem * var(--display-scale)); margin-bottom: 10px; }
.rule-item p { color: var(--muted); margin: 0; }
.on-dark .rule-item p { color: #B9BEDA; }
.rule-item .kicker { font-size: 0.875rem; font-weight: 600; color: var(--orange-ink); margin-bottom: 10px; }
.on-dark .rule-item .kicker { color: var(--honey); }

.mission { font: 500 calc(clamp(1.7rem, 3vw, 2.5rem) * var(--display-scale)) / 1.3 var(--serif); color: #fff; max-width: 30em; margin: 0; }
[dir="rtl"] .mission { line-height: 1.75; }

/* Leaders */
.leader { border-top: 1px solid var(--line); padding-top: 24px; }
.leader-mono { width: 72px; height: 72px; border-radius: 50%; background: var(--stone); display: grid; place-items: center; font: 600 calc(1.9rem * var(--display-scale)) / 1 var(--serif); color: var(--navy); margin-bottom: 20px; border: 1px solid var(--line); }
.leader h3 { font-size: calc(1.45rem * var(--display-scale)); }
.leader .role { font-size: 0.875rem; font-weight: 600; color: var(--orange-ink); margin: 4px 0 10px; }
.leader p { color: var(--muted); margin: 0; font-size: 0.9375rem; }

/* Facility / photo cards */
.photo-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 16px; }
.photo-card h3 { font-size: calc(1.45rem * var(--display-scale)); margin-bottom: 4px; }
.photo-card p { color: var(--muted); margin: 0; font-size: 0.9375rem; }

/* Stage detail */
.stage-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding-top: clamp(32px, 4vw, 56px); align-items: center; }
.stage-detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ticks li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticks svg { width: 20px; height: 20px; color: var(--olive); flex: none; margin-top: 3px; }
@media (max-width: 900px) { .stage-detail { grid-template-columns: 1fr; } }

/* Grade explorer */
.grade-pick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; border: 0; margin-bottom: 32px; }
.grade-pick .tab { flex: none; border: 1px solid var(--line); background: var(--paper); text-align: center; padding: 14px 0; font: 600 calc(1.5rem * var(--display-scale)) / 1 var(--serif); color: var(--ink); margin: 0; border-radius: var(--radius); }
.grade-pick .tab:hover { border-color: var(--ink); }
.grade-pick .tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.grade-card { background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: 300px 1fr; }
.grade-side { background: var(--navy); color: #fff; padding: 36px; }
.grade-side .num { font: 500 calc(6rem * var(--display-scale)) / .9 var(--serif); color: var(--honey); }
.grade-side h3 { color: #fff; font-size: calc(1.7rem * var(--display-scale)); margin: 16px 0 8px; }
.grade-side p { color: #B9BEDA; margin: 0; }
.grade-rows { padding: 12px 36px; }
.grade-rows div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.grade-rows div:last-child { border: 0; }
.grade-rows dt { font-weight: 600; color: var(--navy); }
.grade-rows dd { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .grade-card { grid-template-columns: 1fr; } .grade-rows { padding: 8px 24px; } .grade-rows div { grid-template-columns: 1fr; gap: 4px; } .grade-pick { grid-template-columns: repeat(5, 1fr); } }

/* Subjects */
.subjects { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.subjects li { padding: 24px 20px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: var(--paper); }
.subjects h3 { font-size: calc(1.35rem * var(--display-scale)); margin-bottom: 6px; }
.subjects p { margin: 0; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 1000px) { .subjects { grid-template-columns: repeat(2, 1fr); } }

/* Steps (true sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 0 24px 0 0; position: relative; }
[dir="rtl"] .steps li { padding: 0 0 0 24px; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); border: 1px solid var(--orange); color: var(--orange-ink); font: 600 1.4rem/1 'Cormorant Garamond', serif; margin-bottom: 22px; position: relative; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 26px; inset-inline-start: 52px; inset-inline-end: 0; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: calc(1.6rem * var(--display-scale)); margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.ages { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.ages div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); margin-inline-end: 24px; }
.ages dt { font-weight: 600; }
.ages dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .ages { grid-template-columns: 1fr 1fr; } }

.docs li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.docs svg { width: 20px; height: 20px; color: var(--orange); flex: none; }

/* Forms */
.form-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
.bg-paper .form-card { background: var(--stone); }
.form-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 24px 0 12px; }
.form-progress span { height: 3px; background: var(--line); transition: background .3s; }
.form-progress span.on { background: var(--orange); }
.form-step-label { font-size: 0.875rem; color: var(--muted); margin-bottom: 20px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: var(--display-weight) calc(1.6rem * var(--display-scale)) / 1.25 var(--serif); margin-bottom: 18px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.choices.wide { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; text-align: center; border-radius: var(--radius); transition: .2s; }
.choice input:hover + span { border-color: var(--ink); }
.choice input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field textarea { width: 100%; border: 1px solid #928876; background: #fff; padding: 14px 16px; border-radius: var(--radius); min-height: 52px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), 0 0 0 4px rgba(31, 42, 107, .14); }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.btn-back { background: none; border: 0; padding: 10px 0; cursor: pointer; font-weight: 600; color: var(--navy); }
.btn-back[disabled] { opacity: .35; cursor: default; }
.form-done { text-align: start; }
.form-done .done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; margin-bottom: 20px; }
.form-done .done-ico svg { width: 26px; height: 26px; }
.form-done h3 { font-size: calc(1.9rem * var(--display-scale)); margin-bottom: 10px; }
.form-done p { color: var(--muted); }
.form-hint { font-size: 0.875rem; color: var(--muted); margin-top: 14px; }
.form-hint a { font-weight: 600; }

/* Accordions */
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font: var(--display-weight) calc(1.4rem * var(--display-scale)) / 1.3 var(--serif); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--navy); }
.ico-plus { width: 22px; height: 22px; flex: none; color: var(--orange); transition: transform .3s var(--ease); }
.accordion details[open] .ico-plus { transform: rotate(45deg); }
.accordion details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 62ch; }

/* Filters */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 36px; }
.filter { border: 1px solid var(--line); background: var(--paper); padding: 10px 18px; border-radius: 40px; cursor: pointer; font-weight: 600; font-size: 0.875rem; color: var(--muted); transition: .2s; }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-item][hidden] { display: none !important; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 10px; grid-auto-flow: dense; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; position: relative; overflow: hidden; background: var(--stone); }
.gallery button.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery span { position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; padding: 36px 14px 12px; color: #fff; font-weight: 600; font-size: 0.875rem; text-align: start; background: linear-gradient(to top, rgba(14, 18, 48, .7), transparent); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } }

/* Year timeline */
.year { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.year::before { content: ''; position: absolute; top: 7px; inset-inline: 0; height: 1px; background: rgba(255, 255, 255, .25); }
.year li { padding-inline-end: 20px; position: relative; }
.year li::before { content: ''; display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--orange); border: 3px solid var(--navy); margin-bottom: 22px; position: relative; }
.year .m { font-size: 0.875rem; font-weight: 600; color: var(--honey); }
.year h3 { font-size: calc(1.5rem * var(--display-scale)); margin: 4px 0 6px; }
.year p { color: #B9BEDA; margin: 0; font-size: 0.9375rem; }
@media (max-width: 900px) { .year { grid-template-columns: 1fr; gap: 24px; } .year::before { top: 0; bottom: 0; inset-inline-start: 7px; inset-inline-end: auto; width: 1px; height: auto; } .year li { padding-inline-start: 36px; } .year li::before { position: absolute; inset-inline-start: 0; top: 4px; } }

/* Activity list */
.activities li { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.activities li:last-child { border-bottom: 1px solid var(--line); }
.activities h3 { font-size: calc(1.6rem * var(--display-scale)); }
.activities p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .activities li { grid-template-columns: 1fr; } }

/* Parents */
.quick a { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: inherit; height: 100%; transition: border-color .2s, background .2s; }
.quick a:hover { border-color: var(--navy); color: inherit; }
.quick h3 { font-size: calc(1.45rem * var(--display-scale)); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.quick h3 .ico-arrow { color: var(--orange); }
.quick p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.timetable div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timetable dt { font: 600 calc(1.35rem * var(--display-scale)) / 1.2 var(--serif); color: var(--navy); direction: ltr; text-align: start; }
.timetable dd { margin: 0; }
.downloads li { border-bottom: 1px solid var(--line); }
.downloads li:first-child { border-top: 1px solid var(--line); }
.downloads button { display: flex; width: 100%; align-items: center; gap: 14px; padding: 16px 0; background: none; border: 0; cursor: pointer; text-align: start; font-weight: 500; }
.downloads button svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.downloads button small { margin-inline-start: auto; color: var(--muted); font-size: 0.8125rem; }
.downloads button:hover { color: var(--navy); }
.portal { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .portal { grid-template-columns: 1fr; } }

/* Jobs */
.jobs li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.jobs li:last-child { border-bottom: 1px solid var(--line); }
.jobs h3 { font-size: calc(1.5rem * var(--display-scale)); }
.jobs p { margin: 2px 0 0; color: var(--muted); font-size: 0.9375rem; }
.jobs .btn[aria-pressed="true"] { background: #B85E14; border-color: #B85E14; color: #fff; }

/* Contact */
.dept { border-top: 2px solid var(--navy); padding-top: 22px; }
.dept .kicker { font-size: 0.875rem; font-weight: 600; color: var(--orange-ink); }
.dept h3 { font-size: calc(1.6rem * var(--display-scale)); margin: 4px 0 8px; }
.dept p { color: var(--muted); margin-bottom: 14px; }
.dept a { font-weight: 600; word-break: break-all; }
.find { background: var(--navy); color: #fff; display: grid; grid-template-columns: 1fr 1.2fr; }
.find-body { padding: clamp(32px, 5vw, 64px); }
.find dl div { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.find dt { font-size: 0.875rem; color: var(--honey); font-weight: 600; }
.find dd { margin: 4px 0 0; color: #fff; }
.find dd a { color: #fff; }
.find-map { position: relative; min-height: 360px; }
.find-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .find { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #B9BEDA; font-size: 0.9375rem; }
.site-footer a { color: #E4E7F4; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--honey); }
/* Top band: the motto with the three fastest ways to get in touch. */
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; flex-wrap: wrap; padding: clamp(48px, 6vw, 72px) 0 clamp(36px, 4vw, 48px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-motto { margin: 0; font: 500 calc(clamp(2.2rem, 4.4vw, 3.6rem) * var(--display-scale)) / 1.05 var(--serif); color: #fff; max-width: 14em; }
[dir="rtl"] .foot-motto { font-weight: 700; line-height: 1.35; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .foot-actions .btn-solid { color: #fff; }
.foot-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 40px; font-weight: 600; }
.foot-pill:hover { border-color: var(--honey); }
.foot-pill svg { width: 20px; height: 20px; flex: none; color: var(--honey); }
.foot-pill:first-of-type svg { color: #3ACB6C; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr 1.45fr; gap: 40px 44px; padding: clamp(44px, 5vw, 64px) 0 56px; }
.foot-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.foot-logo img { border-radius: 50%; background: #fff; flex: none; }
.foot-logo span { display: flex; flex-direction: column; line-height: 1.15; }
.foot-logo strong { font: var(--display-weight) calc(1.6rem * var(--display-scale)) / 1.1 var(--serif); color: #fff; }
.foot-logo small { font-size: 0.8125rem; color: #8F95B8; margin-top: 4px; }
.foot-brand > p { max-width: 34ch; margin-bottom: 28px; }
.foot-h { font: 600 0.8125rem/1.3 var(--sans); color: var(--honey); margin-bottom: 18px; letter-spacing: .02em; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { position: relative; }
.foot-col a::after { content: ''; position: absolute; inset-inline: 0; bottom: -3px; height: 1px; background: var(--honey); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
[dir="rtl"] .foot-col a::after { transform-origin: right; }
.foot-col a:hover::after { transform: scaleX(1); }
.foot-contact a { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.foot-contact a::after { display: none; }
.foot-contact svg { width: 18px; height: 18px; flex: none; color: var(--honey); }
.foot-small { font-size: 0.875rem; color: #8F95B8; }
.site-footer .foot-map { color: #fff; margin-top: 4px; }
.foot-social { display: flex; gap: 16px; margin-top: 18px; }
.foot-news-row { display: flex; gap: 6px; max-width: 420px; }
.foot-news input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: #fff; padding: 0 14px; min-height: 42px; border-radius: var(--radius); }
.foot-news input::placeholder { color: #8F95B8; }
.foot-news input:focus { outline: none; border-color: var(--honey); }
.foot-done { color: var(--honey); margin-top: 10px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; padding: 22px 0 96px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 0.8125rem; color: #8F95B8; }
.foot-langs { display: flex; gap: 16px; }
.foot-langs a { color: #B9BEDA; }
.foot-langs a[lang="ar"], .foot-langs a[lang="ckb"] { font-family: 'Noto Sans Arabic', var(--sans); }
.foot-langs a[aria-current] { color: #fff; font-weight: 600; }
.foot-credit { display: inline-flex; align-items: center; gap: 10px; }
.foot-credit img { opacity: .8; height: 18px; width: auto; }
.foot-top-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.foot-top-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.foot-top-link:hover svg { transform: translateY(-3px); }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: repeat(4, 1fr); } .foot-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; } .foot-brand .foot-news { grid-row: span 2; } }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > .foot-col:last-child { grid-column: 1 / -1; } .foot-brand { display: block; } .foot-actions { width: 100%; } .foot-actions > * { flex: 1 1 auto; justify-content: center; } }

/* WhatsApp button */
.wa-fab { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; background: #158544; color: #fff; text-decoration: none; padding: 12px 18px 12px 14px; border-radius: 40px; font-weight: 600; font-size: 0.9375rem; box-shadow: 0 10px 30px -10px rgba(10, 60, 30, .6); transition: transform .25s var(--ease), background .2s; }
.wa-fab svg { width: 22px; height: 22px; }
.wa-fab:hover { color: #fff; background: #11703A; transform: translateY(-2px); }
@media (max-width: 640px) { .wa-fab span { display: none; } .wa-fab { padding: 14px; } }

/* Modal */
.modal { border: 0; padding: 0; max-width: min(1040px, calc(100vw - 32px)); width: 100%; background: var(--paper); color: var(--ink); }
.modal::backdrop { background: rgba(10, 13, 34, .82); }
.modal-box { display: grid; grid-template-columns: 1.4fr 1fr; position: relative; }
.modal-media { position: relative; min-height: 320px; background: var(--ink); }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(24px, 4vw, 44px); }
.modal-body h2 { font-size: calc(clamp(1.7rem, 2.6vw, 2.3rem) * var(--display-scale)); margin-bottom: 16px; }
.modal-body p { color: var(--muted); }
.modal-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--orange); color: #fff; }
.tour-nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.tour-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.tour-nav button:hover { border-color: var(--ink); }
.tour-nav svg { width: 18px; height: 18px; }
.tour-nav .prev svg { transform: scaleX(-1); }
[dir="rtl"] .tour-nav .prev svg { transform: none; }
[dir="rtl"] .tour-nav .next svg { transform: scaleX(-1); }
.tour-nav span { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .modal[open] { animation: fade .35s var(--ease); } }
@media (max-width: 800px) { .modal-box { grid-template-columns: 1fr; } .modal-media { min-height: 0; aspect-ratio: 16 / 10; } }

/* Page transitions. Browsers with cross-document View Transitions animate between pages natively;
   the rest (.no-vt) get a matching fade driven by site.js. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  /* The header, announcement bar and WhatsApp button hold still while the page content moves. */
  .site-header { view-transition-name: site-header; }
  body > .announce { view-transition-name: announce; }
  .wa-fab { view-transition-name: wa-fab; }
  ::view-transition-group(site-header), ::view-transition-group(announce), ::view-transition-group(wa-fab) { animation-duration: .4s; }
  ::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.2, .7, .2, 1) both; }
  .no-vt body { animation: vt-in .6s cubic-bezier(.2, .7, .2, 1) backwards; }
  .no-vt body.is-leaving { opacity: 0; transform: translateY(-10px); transition: opacity .25s ease-in, transform .25s ease-in; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* Scroll reveals. site.js tags elements with .rv (and a stagger index) and adds .in when they enter view. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--rv-i, 0) * 90ms); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv-zoom { overflow: hidden; }
  .js .rv-zoom img { transform: scale(1.14); transition: transform 1.8s var(--ease); }
  .js .rv-zoom.in img { transform: none; }
  /* The wipe clips the tile's contents, not the tile, so the observer can still see the tile enter. */
  .js .rv-wipe > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--rv-i, 0) * 90ms); }
  .js .rv-wipe.in > * { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print { .site-header, .announce, .wa-fab, .site-footer form { display: none; } }
