/* =========================================================
   UGARIT INTERNATIONAL SCHOOL — styles
   Palette taken from the school emblem (gold) and signage (navy)
   ========================================================= */
:root {
  --navy-950: #071325;
  --navy-900: #0B1B33;
  --navy-800: #12284A;
  --navy-700: #1C3A66;
  --gold-300: #E9CF8E;
  --gold-500: #C9A04A;
  --gold-600: #A9812F;
  --gold-700: #7F5F1F;
  --beige-100: #F8F4EC;
  --beige-200: #F1EADD;
  --beige-300: #E6DCC9;
  --grey-100: #F3F4F6;
  --grey-300: #D8DCE2;
  --ink: #142033;
  --muted: #5A6475;
  --white: #FFFFFF;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-label: "Manrope", system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 140px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 12px 32px -12px rgba(11, 27, 51, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
abbr[title] { text-decoration: none; color: var(--gold-600); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold-500); color: var(--navy-900); padding: 10px 16px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--font-label); font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero-label::before { display: none; }
.eyebrow .rule { width: 40px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold-300); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.25rem); color: var(--navy-900); max-width: 18ch; }
.display { font-size: clamp(2.5rem, 5.6vw, 4.5rem); color: var(--navy-900); line-height: 1.04; margin-bottom: 28px; }
.display span { color: var(--gold-600); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--ink); }
.section { padding: var(--section-y) 0; position: relative; }
.tint { background: var(--beige-100); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.section-intro { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin: 0; justify-self: end; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  font-family: var(--font-label); font-weight: 700; font-size: .9rem; letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius); transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon[class] { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-300); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border-color: var(--grey-300); color: var(--navy-900); background: transparent; }
.btn-outline:hover { border-color: var(--navy-900); }
.btn-ghost-light { color: var(--white); border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; background: none; border: 0;
  font-family: var(--font-label); font-weight: 700; font-size: .9rem; color: var(--navy-900); text-decoration: none;
  border-bottom: 1px solid var(--gold-500);
}
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform .25s var(--ease); }
.text-link-light { color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--white); transition: background .35s var(--ease), color .35s, box-shadow .35s, height .35s var(--ease); }
.site-header.is-scrolled { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); color: var(--navy-900); box-shadow: 0 1px 0 rgba(11,27,51,.08); --header-h: 72px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo-plate { display: inline-flex; flex: none; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(11,27,51,.18); }
.logo-plate img { width: 64px; height: auto; }
.is-scrolled .logo-plate { box-shadow: 0 0 0 1px rgba(11,27,51,.08); }
.logo-plate-lg { border-radius: 8px; }
.logo-plate-lg img { width: 220px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .14em; font-weight: 700; }
.brand-text span { font-family: var(--font-label); font-size: .62rem; letter-spacing: .17em; text-transform: uppercase; opacity: .8; margin-top: 4px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a { position: relative; display: block; white-space: nowrap; padding: 10px 7px; font-family: var(--font-label); font-weight: 600; font-size: .85rem; text-decoration: none; opacity: .88; transition: opacity .2s; }
.primary-nav a::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 4px; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav a:hover, .primary-nav a.is-active { opacity: 1; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid currentColor; border-color: rgba(255,255,255,.35); background: transparent; border-radius: var(--radius); align-items: center; justify-content: center; }
.is-scrolled .menu-toggle { border-color: var(--grey-300); }
.menu-toggle .icon { width: 22px; height: 22px; }

.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--navy-900); color: var(--white); padding: calc(var(--header-h) + 24px) var(--gutter) 32px; overflow-y: auto; opacity: 0; transition: opacity .3s var(--ease); }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu-inner { max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(12px); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
.mobile-menu.is-open li { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) { transition-delay: .03s } .mobile-menu.is-open li:nth-child(3) { transition-delay: .06s }
.mobile-menu.is-open li:nth-child(4) { transition-delay: .09s } .mobile-menu.is-open li:nth-child(5) { transition-delay: .12s }
.mobile-menu.is-open li:nth-child(6) { transition-delay: .15s } .mobile-menu.is-open li:nth-child(7) { transition-delay: .18s }
.mobile-menu.is-open li:nth-child(8) { transition-delay: .21s }
.mobile-menu li a { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; font-family: var(--font-display); font-size: clamp(1.4rem, 5vw, 1.9rem); text-decoration: none; }
.mobile-menu li a span { font-family: var(--font-label); font-size: .72rem; color: var(--gold-300); letter-spacing: .12em; }
.mobile-menu-foot { display: grid; gap: 16px; }
.mobile-menu-phone { display: inline-flex; gap: 10px; align-items: center; justify-content: center; text-decoration: none; opacity: .85; }
.menu-open .site-header { background: var(--navy-900); color: var(--white); box-shadow: none; }
.menu-open .site-header .menu-toggle { border-color: rgba(255,255,255,.35); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy-900); isolation: isolate; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-media img { object-fit: cover; object-position: 50% 42%; transform: scale(1.08); opacity: 0; transition: opacity 1.2s var(--ease), transform 7s var(--ease); }
.hero.is-loaded .hero-media img { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,19,37,.88) 0%, rgba(7,19,37,.62) 42%, rgba(7,19,37,.18) 75%, rgba(7,19,37,.1) 100%),
    linear-gradient(0deg, rgba(7,19,37,.85) 0%, rgba(7,19,37,0) 45%),
    linear-gradient(180deg, rgba(7,19,37,.55) 0%, rgba(7,19,37,0) 22%); }
.hero-content { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(120px, 16vh, 180px); }
.hero-content > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero.is-loaded .hero-content > * { opacity: 1; transform: none; }
.hero.is-loaded .hero-content > :nth-child(2) { transition-delay: .12s; }
.hero.is-loaded .hero-content > :nth-child(3) { transition-delay: .24s; }
.hero.is-loaded .hero-content > :nth-child(4) { transition-delay: .36s; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; max-width: 14ch; margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero-lead { max-width: 54ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255,255,255,.86); margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255,255,255,.14); }
.hero-bar-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); height: 72px; font-family: var(--font-label); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hero-bar-inner span { display: inline-flex; align-items: center; gap: 8px; }
.hero-bar-inner strong { color: var(--gold-300); font-weight: 700; }
.scroll-cue { position: absolute; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-cue span { width: 2px; height: 8px; background: var(--gold-300); border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(12px); opacity: 0 } 100% { opacity: 0 } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.about-media { position: relative; padding: 0 12% 18% 0; }
.about-img-main { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.about-img-inset { position: absolute; right: 0; bottom: 0; width: 58%; aspect-ratio: 4 / 3; overflow: hidden; border: 8px solid var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-img-inset img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; left: -20px; top: 32px; background: var(--navy-900); color: var(--white); padding: 18px 22px; display: flex; flex-direction: column; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge span { font-family: var(--font-label); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-300); }
.about-badge strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; margin-top: 6px; }
.about-copy .section-title { margin-bottom: 28px; }
.about-copy > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 36px 0 40px; border-top: 1px solid var(--beige-300); }
.pillars li { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--beige-300); font-weight: 500; color: var(--navy-900); font-size: .96rem; }
.pillars span { font-family: var(--font-label); font-size: .72rem; font-weight: 700; color: var(--gold-600); letter-spacing: .08em; }

/* ---------- Stages ---------- */
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stage-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--beige-300); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; }
.stage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.stage-img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--beige-200); }
.stage-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.stage-card:hover .stage-img img { transform: scale(1.06); }
.stage-body { padding: 28px 28px 26px; display: flex; flex-direction: column; flex: 1; position: relative; }
.stage-num { font-family: var(--font-label); font-weight: 700; font-size: .75rem; letter-spacing: .14em; color: var(--gold-600); margin-bottom: 14px; }
.stage-body h3 { font-size: 1.45rem; color: var(--navy-900); margin-bottom: 10px; }
.stage-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.stage-more { min-height: 40px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 0; background: none; border: 0; border-bottom: 1px solid var(--gold-500); font-family: var(--font-label); font-weight: 700; font-size: .85rem; color: var(--navy-900); }
.stage-more::before { content: ""; position: absolute; inset: 0; } /* whole card body clickable */
.stage-more .icon { transition: transform .3s var(--ease); }
.stage-card:hover .stage-more .icon { transform: translateX(4px); }

/* ---------- Why ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--grey-300); border-left: 1px solid var(--grey-300); }
.feature { padding: clamp(30px, 3.4vw, 48px); border-right: 1px solid var(--grey-300); border-bottom: 1px solid var(--grey-300); position: relative; transition: background .35s var(--ease); }
.feature::before { content: ""; position: absolute; left: -1px; top: -1px; height: 2px; width: 0; background: var(--gold-500); transition: width .5s var(--ease); }
.feature:hover { background: var(--beige-100); }
.feature:hover::before { width: calc(100% + 1px); }
.feature-icon { width: 34px; height: 34px; color: var(--gold-600); stroke-width: 1.3; margin-bottom: 28px; }
.feature h3 { font-size: 1.22rem; color: var(--navy-900); margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Facilities ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(140px, 15vw, 210px); gap: 18px; }
.facility { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); text-align: left; color: var(--white); }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .4s; }
.facility::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,19,37,.78) 0%, rgba(7,19,37,0) 55%); transition: opacity .4s; }
.facility:hover img { transform: scale(1.05); }
.facility-label { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.facility-label small { font-family: var(--font-label); font-size: .68rem; letter-spacing: .14em; color: var(--gold-300); }
.facility-label .icon { margin-left: auto; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease); }
.facility:hover .facility-label .icon, .facility:focus-visible .facility-label .icon { opacity: 1; transform: none; }
.f-a { grid-column: span 5; grid-row: span 3; }
.f-a img { object-position: 50% 40%; }
.f-b { grid-column: span 4; grid-row: span 2; }
.f-b img { object-position: 50% 50%; }
.f-c { grid-column: span 3; grid-row: span 2; }
.f-d { grid-column: span 4; grid-row: span 2; }
.f-d img { object-position: 50% 55%; }
.f-e { grid-column: span 3; grid-row: span 2; }
.f-e img { object-position: 50% 62%; }
.f-f { grid-column: span 5; grid-row: span 1; }
.f-f img { object-position: 50% 42%; }

/* ---------- Innovation ---------- */
.innovation { background: var(--navy-900); color: var(--white); overflow: hidden; }
.innovation-grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(233,207,142,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(233,207,142,.06) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.innovation-layout { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.innovation .section-title { color: var(--white); margin-bottom: 26px; }
.innovation .lead { color: rgba(255,255,255,.78); }
.innovation-figure { margin-top: 40px; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(233,207,142,.25); }
.innovation-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(.85); }
.innovation-figure figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: rgba(7,19,37,.8); backdrop-filter: blur(6px); font-family: var(--font-label); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5BE49B; box-shadow: 0 0 0 0 rgba(91,228,155,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91,228,155,.55) } 70% { box-shadow: 0 0 0 8px rgba(91,228,155,0) } 100% { box-shadow: 0 0 0 0 rgba(91,228,155,0) } }
.tech-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(233,207,142,.16); border: 1px solid rgba(233,207,142,.16); border-radius: var(--radius); overflow: hidden; }
.tech-list li { background: var(--navy-900); padding: 32px 28px 30px; position: relative; transition: background .35s var(--ease); }
.tech-list li:hover { background: var(--navy-800); }
.tech-list .icon { width: 28px; height: 28px; color: var(--gold-300); stroke-width: 1.3; margin-bottom: 22px; }
.tech-index { position: absolute; top: 28px; right: 26px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .75rem; color: rgba(233,207,142,.55); }
.tech-list h3 { font-size: 1.1rem; margin-bottom: 10px; }
.tech-list p { color: rgba(255,255,255,.66); font-size: .92rem; margin: 0; }

/* ---------- Vision ---------- */
.vision { background: var(--white); }
.vision-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.vision-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); position: relative; }
.vision-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--gold-500); }
.vision-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.vision-copy .lead { color: var(--muted); }
.qualities { margin-top: 36px; border-top: 1px solid var(--grey-300); }
.qualities li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--grey-300); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--navy-900); transition: padding .35s var(--ease), color .35s; }
.qualities li:hover { padding-left: 10px; color: var(--gold-700); }
.qualities .icon { color: var(--gold-600); width: 20px; height: 20px; stroke-width: 2; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-self: end; }
.filter { padding: 10px 18px; border: 1px solid var(--beige-300); background: var(--white); border-radius: 999px; font-family: var(--font-label); font-weight: 600; font-size: .82rem; color: var(--muted); transition: all .25s var(--ease); }
.filter:hover { border-color: var(--navy-900); color: var(--navy-900); }
.filter.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.masonry { columns: 3; column-gap: 18px; }
.m-item { display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; background: var(--beige-200); border-radius: var(--radius); overflow: hidden; break-inside: avoid; position: relative; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.m-item img { width: 100%; transition: transform 1s var(--ease), filter .4s; }
.m-item::after { content: ""; position: absolute; inset: 0; background: rgba(7,19,37,.0); transition: background .35s; }
.m-item:hover img { transform: scale(1.04); }
.m-item:hover::after { background: rgba(7,19,37,.12); }
.m-item.is-hidden { display: none; }

/* ---------- Admissions ---------- */
.admissions { background: var(--navy-900); color: var(--white); overflow: hidden; }
.admissions::before { content: ""; position: absolute; right: -15%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201,160,74,.16), transparent 62%); pointer-events: none; }
.admissions-layout { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.admissions .section-title { color: var(--white); margin-bottom: 24px; }
.admissions .lead { color: rgba(255,255,255,.8); }
.steps { margin-top: 44px; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.steps li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.steps li > span { flex: none; width: 38px; height: 38px; border: 1px solid var(--gold-500); color: var(--gold-300); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-label); font-weight: 700; font-size: .85rem; }
.steps strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.steps p { margin: 4px 0 0; color: rgba(255,255,255,.65); font-size: .93rem; }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); position: relative; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-500); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.form-card h3 { font-size: 1.6rem; color: var(--navy-900); margin-bottom: 6px; }
.form-note { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label { display: block; font-family: var(--font-label); font-weight: 700; font-size: .8rem; color: var(--navy-900); margin-bottom: 8px; letter-spacing: .01em; }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--grey-100); border: 1px solid transparent; border-radius: var(--radius); transition: border-color .2s, background .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230B1B33' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey-300); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(201,160,74,.25); }
.field.has-error input, .field.has-error select { border-color: #B42318; background: #FFF7F6; }
.field-error { margin: 6px 0 0; font-size: .82rem; color: #B42318; min-height: 0; }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-actions .btn { flex: 1 1 200px; }
.form-privacy { margin: 18px 0 0; font-size: .8rem; color: var(--muted); }
.form-success { text-align: center; padding: 30px 6px; }
.form-success:focus { outline: none; }
.success-icon { width: 54px; height: 54px; color: #1FA855; stroke-width: 1.4; margin: 0 auto 20px; display: block; }
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--muted); max-width: 40ch; margin: 0 auto 26px; }
.form-success .text-link { margin: 18px auto 0; display: flex; width: fit-content; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 24px; border: 1px solid var(--grey-300); border-radius: var(--radius); transition: border-color .3s; }
.contact-card:hover { border-color: var(--gold-500); }
.contact-card > .icon { width: 44px; height: 44px; padding: 11px; color: var(--gold-600); background: var(--beige-100); border-radius: 50%; stroke-width: 1.5; }
.contact-card h3 { font-family: var(--font-label); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.contact-card p { margin: 0; font-weight: 600; color: var(--navy-900); line-height: 1.45; }
.contact-card p a { text-decoration: none; }
.contact-card p a:hover { color: var(--gold-700); }
.map-frame { position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--beige-200); border: 1px solid var(--beige-300); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.map-pattern { position: absolute; inset: 0; opacity: .7;
  background:
    radial-gradient(circle at 50% 46%, rgba(201,160,74,.22) 0 70px, transparent 71px),
    linear-gradient(32deg, transparent 48%, rgba(255,255,255,.9) 48% 52%, transparent 52%) 0 0 / 220px 220px,
    linear-gradient(-58deg, transparent 47%, rgba(255,255,255,.75) 47% 51%, transparent 51%) 0 0 / 300px 300px,
    linear-gradient(rgba(11,27,51,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(11,27,51,.05) 1px, transparent 1px) 0 0 / 40px 40px; }
.map-facade-card { position: relative; background: var(--white); padding: 30px 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; max-width: 380px; }
.map-facade-card > .icon { width: 30px; height: 30px; color: var(--gold-600); margin: 0 auto 14px; display: block; }
.map-name { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); letter-spacing: .04em; margin-bottom: 6px; }
.map-facade-card p:not(.map-name) { color: var(--muted); font-size: .93rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding: clamp(64px, 8vw, 100px) 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 64px; }
.brand-light { color: var(--white); margin-bottom: 22px; }
.footer-brand p { max-width: 38ch; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--white); transition: background .25s, border-color .25s, color .25s; }
.social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.footer-col h3 { font-family: var(--font-label); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 20px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold-300); margin-top: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .text-link { border-color: rgba(233,207,142,.6); font-size: .82rem; }

/* ---------- Floating buttons ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 16px; border-radius: 999px; background: #1FA855; color: var(--white); text-decoration: none; font-family: var(--font-label); font-weight: 700; font-size: .85rem; box-shadow: 0 10px 30px -8px rgba(31,168,85,.6); transition: transform .3s var(--ease), box-shadow .3s; }
.wa-float .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -8px rgba(31,168,85,.7); }
.to-top { position: fixed; right: 22px; bottom: 92px; z-index: 90; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--grey-300); background: var(--white); color: var(--navy-900); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .25s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,19,37,.72); backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
.modal-panel { position: relative; width: min(940px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--white); border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr 1.1fr; animation: rise .4s var(--ease); }
.modal-media { min-height: 100%; background: var(--beige-200); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(28px, 4vw, 48px); }
.modal-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy-900); margin-bottom: 16px; }
.modal-body .lead { color: var(--muted); font-size: 1.02rem; }
.modal-body h4 { font-family: var(--font-label); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); margin: 24px 0 12px; }
.modal-list { margin-bottom: 30px; }
.modal-list li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--grey-100); font-size: .96rem; }
.modal-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 1px; background: var(--gold-500); }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(5,12,24,.96); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: fade .3s var(--ease); touch-action: pan-y; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; height: 100dvh; padding: 70px 0 20px; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 2px; animation: fade .35s var(--ease); }
.lb-figure figcaption { display: flex; gap: 20px; justify-content: space-between; width: 100%; max-width: 900px; color: rgba(255,255,255,.8); padding-top: 16px; font-size: .9rem; }
#lb-count { font-family: var(--font-label); color: var(--gold-300); letter-spacing: .1em; flex: none; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: var(--white); display: grid; place-items: center; justify-self: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { position: absolute; top: 16px; right: 16px; }

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-intro, .filters { justify-self: start; }
  .about-grid, .vision-layout, .innovation-layout, .admissions-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-media { max-width: 620px; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vision-media { aspect-ratio: 16 / 11; }
  .innovation-figure { aspect-ratio: 16 / 9; }
  .facility-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; }
  .f-a { grid-column: span 3; grid-row: span 3; }
  .f-b { grid-column: span 3; grid-row: span 2; }
  .f-c { grid-column: span 3; grid-row: span 1; }
  .f-d { grid-column: span 3; grid-row: span 2; }
  .f-e { grid-column: span 3; grid-row: span 2; }
  .f-f { grid-column: span 6; grid-row: span 1; }
}
@media (max-width: 767px) {
  :root { --header-h: 72px; }
  .hero-media img { object-position: 50% 38%; }
  .hero-overlay { background: linear-gradient(0deg, rgba(7,19,37,.94) 0%, rgba(7,19,37,.6) 50%, rgba(7,19,37,.35) 100%); }
  .hero-actions .btn { width: 100%; }
  .hide-sm { display: none !important; }
  .stage-grid, .feature-grid, .tech-list { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .masonry { columns: 2; column-gap: 12px; }
  .m-item { margin-bottom: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
  .f-a { grid-column: span 2; grid-row: span 2; }
  .f-b, .f-c, .f-d, .f-e { grid-column: span 1; grid-row: span 2; }
  .f-f { grid-column: span 2; grid-row: span 1; }
  .facility-label { left: 14px; right: 14px; bottom: 12px; font-size: .95rem; gap: 8px; }
  .facility-label .icon { display: none; }
  .contact-card { grid-template-columns: auto 1fr; }
  .contact-card .btn { grid-column: 1 / -1; width: 100%; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { grid-template-columns: 1fr; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-media { aspect-ratio: 16 / 9; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; z-index: 2; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
  .lb-figure { padding: 70px 12px 90px; }
  .lb-figure img { max-height: calc(100dvh - 200px); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .wa-float { padding: 0; width: 56px; justify-content: center; right: 16px; bottom: 16px; }
  .wa-float-label { display: none; }
  .to-top { right: 20px; bottom: 84px; }
  .about-badge { left: 12px; top: 12px; padding: 14px 16px; }
}
@media (max-width: 380px) {
  .brand-text span { letter-spacing: .18em; }
  .hero h1 { font-size: 2.25rem; }
  .masonry { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Stage 2 additions
   ========================================================= */
/* Hero bar link */
.hero-bar-link { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(233,207,142,.5); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.hero-bar-link:hover { color: var(--gold-300); border-color: var(--gold-300); }
.hero-bar-link .icon { color: var(--gold-300); }
.about-copy a:not(.text-link) { color: var(--navy-900); text-decoration-color: var(--gold-500); text-underline-offset: 3px; font-weight: 500; }

/* Mobile menu contact */
.mobile-menu-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-menu-contact a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); text-decoration: none; font-family: var(--font-label); font-weight: 600; font-size: .88rem; }

/* Pearson */
.pearson { background: var(--white); overflow: hidden; }
.pearson-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; margin-bottom: clamp(56px, 7vw, 88px); }
.pearson-copy .section-title { margin-bottom: 26px; max-width: 16ch; }
.pearson-copy .lead { color: var(--muted); }
.pearson-points { margin-top: 34px; border-top: 1px solid var(--grey-300); }
.pearson-points li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--grey-300); }
.pearson-points li > span { font-family: var(--font-label); font-weight: 700; font-size: .75rem; letter-spacing: .1em; color: var(--gold-600); padding-top: 4px; }
.pearson-points h3 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 6px; }
.pearson-points p { margin: 0; color: var(--muted); font-size: .95rem; }
.pearson-visual { position: relative; isolation: isolate; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.pearson-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; border-radius: var(--radius); }
.pearson-visual::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--gold-500); border-radius: var(--radius); z-index: -1; }
.pearson-card { position: absolute; left: -28px; bottom: 36px; display: flex; gap: 14px; align-items: center; background: var(--navy-900); color: var(--white); padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 340px; }
.pearson-card .icon { width: 30px; height: 30px; color: var(--gold-300); stroke-width: 1.3; }
.pearson-card strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.pearson-card span { display: block; font-family: var(--font-label); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-top: 4px; }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.subject { position: relative; padding: 30px 28px 28px; background: var(--beige-100); border: 1px solid var(--beige-300); border-radius: var(--radius); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s, border-color .45s; overflow: hidden; }
.subject::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.subject:hover { transform: translateY(-5px); background: var(--white); box-shadow: var(--shadow); border-color: transparent; }
.subject:hover::after { transform: scaleX(1); }
.subject-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.subject-top .icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--navy-900); color: var(--gold-300); stroke-width: 1.4; transition: background .35s; }
.subject:hover .subject-top .icon { background: var(--gold-500); color: var(--navy-950); }
.subject-top span { font-family: var(--font-label); font-weight: 700; font-size: .75rem; color: var(--gold-600); letter-spacing: .1em; }
.subject h3 { font-size: 1.3rem; color: var(--navy-900); margin-bottom: 10px; }
.subject p { color: var(--muted); font-size: .95rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags li { font-family: var(--font-label); font-size: .72rem; font-weight: 600; color: var(--navy-800); background: var(--white); border: 1px solid var(--beige-300); padding: 5px 10px; border-radius: 999px; }
.subject:hover .tags li { background: var(--beige-100); }
.pearson-foot { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border: 1px solid var(--grey-300); border-radius: var(--radius); }
.pearson-foot p { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--navy-900); font-size: 1.1rem; max-width: 46ch; }
.pearson-foot-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; color: var(--white); padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; background: var(--navy-900); }
.cta-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,19,37,.92) 0%, rgba(7,19,37,.78) 55%, rgba(7,19,37,.6) 100%); }
.cta-band-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: center; }
.cta-band h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: 16px; max-width: 18ch; }
.cta-band p:not(.eyebrow) { color: rgba(255,255,255,.8); max-width: 48ch; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Form: hints and stage chips */
.field-hint { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.stage-picker { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.stage-picker legend { padding: 0; font-family: var(--font-label); font-weight: 700; font-size: .8rem; color: var(--navy-900); margin-bottom: 10px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; background: var(--grey-100); border: 1px solid transparent; border-radius: var(--radius); font-family: var(--font-label); font-weight: 600; font-size: .86rem; color: var(--navy-900); text-align: center; transition: all .2s var(--ease); }
.chip:hover span { border-color: var(--grey-300); }
.chip input:checked + span { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.stage-picker.has-error .chip span { border-color: #E6A39C; background: #FFF7F6; }

@media (max-width: 1320px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1024px) {
  .pearson-intro, .cta-band-inner { grid-template-columns: 1fr; }
  .pearson-visual { aspect-ratio: 16 / 10; max-width: 720px; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-actions { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .subject-grid { grid-template-columns: 1fr; }
  .pearson-visual::before { inset: 14px -10px -14px 14px; }
  .pearson-card { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 14px 16px; }
  .pearson-foot { padding: 22px; }
  .pearson-foot-actions, .pearson-foot-actions .btn, .cta-band-actions .btn { width: 100%; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .hero-bar-inner { font-size: .7rem; gap: 16px; }
  .hero-bar-link { display: none; }
}
@media (max-width: 767px) {
  .form-in-view .wa-float, .form-in-view .to-top { opacity: 0; pointer-events: none; transform: translateY(12px); }
  .wa-float { transition: transform .3s var(--ease), opacity .3s, box-shadow .3s; }
}

/* =========================================================
   Bilingual support — language switch, Arabic typography, RTL
   ========================================================= */
.i18n-pending body { visibility: hidden; }
.num { unicode-bidi: isolate; direction: ltr; display: inline-block; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; flex: none; }
.lang-switch span { opacity: .4; font-size: .75rem; }
.lang-switch button { min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-family: "Manrope", system-ui, sans-serif; font-weight: 700; font-size: .76rem; letter-spacing: .06em; transition: background .25s, color .25s; }
.lang-switch button:hover { background: rgba(255,255,255,.12); }
.lang-switch button[aria-pressed="true"] { background: var(--gold-500); color: var(--navy-950); }
.is-scrolled .lang-switch { border-color: var(--grey-300); }
.is-scrolled .lang-switch button:hover { background: var(--grey-100); }
.menu-open .lang-switch { border-color: rgba(255,255,255,.35); }
@media (max-width: 1320px) {
  .lang-switch { margin-inline-start: auto; }
  .menu-toggle { margin-left: 0; margin-inline-start: 0; }
}

/* Arabic typography (English fonts untouched) */
html[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-label: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
html[lang="ar"] .hero h1 { line-height: 1.25; font-size: clamp(2.3rem, 5.6vw, 4.6rem); max-width: 15ch; }
html[lang="ar"] .display { line-height: 1.25; }
html[lang="ar"] .eyebrow, html[lang="ar"] .hero-bar-inner, html[lang="ar"] .brand-text span, html[lang="ar"] .footer-col h3,
html[lang="ar"] .contact-card h3, html[lang="ar"] .modal-body h4, html[lang="ar"] .about-badge span, html[lang="ar"] .pearson-card span,
html[lang="ar"] .innovation-figure figcaption, html[lang="ar"] .stage-num, html[lang="ar"] .mobile-menu li a span {
  letter-spacing: 0; text-transform: none;
}
html[lang="ar"] .eyebrow { font-size: .88rem; }
html[lang="ar"] .hero-bar-inner { font-size: .86rem; }
html[lang="ar"] .brand-text strong { letter-spacing: 0; font-size: 1.25rem; }
html[lang="ar"] .brand-text span { font-size: .78rem; margin-top: 2px; }
html[lang="ar"] .btn, html[lang="ar"] .text-link, html[lang="ar"] .stage-more, html[lang="ar"] .filter, html[lang="ar"] .chip span, html[lang="ar"] .primary-nav a { letter-spacing: 0; }
html[lang="ar"] .primary-nav a { font-size: .9rem; }
html[lang="ar"] .section-title { max-width: 20ch; }
html[lang="ar"] .lead { line-height: 1.9; }

/* RTL mirroring */
[dir="rtl"] svg:has(> use[href="#i-arrow"]), [dir="rtl"] svg:has(> use[href="#i-left"]),
[dir="rtl"] svg:has(> use[href="#i-right"]), [dir="rtl"] svg:has(> use[href="#i-send"]) { scale: -1 1; }
[dir="rtl"] .btn:hover .icon[class], [dir="rtl"] .text-link:hover .icon { transform: translateX(-3px); }
[dir="rtl"] .stage-card:hover .stage-more .icon { transform: translateX(-4px); }
[dir="rtl"] .primary-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .primary-nav a::after { transform-origin: right; }
[dir="rtl"] .hero-overlay { background:
    linear-gradient(270deg, rgba(7,19,37,.88) 0%, rgba(7,19,37,.62) 42%, rgba(7,19,37,.18) 75%, rgba(7,19,37,.1) 100%),
    linear-gradient(0deg, rgba(7,19,37,.85) 0%, rgba(7,19,37,0) 45%),
    linear-gradient(180deg, rgba(7,19,37,.55) 0%, rgba(7,19,37,0) 22%); }
[dir="rtl"] .about-media { padding: 0 0 18% 12%; }
[dir="rtl"] .about-img-inset { right: auto; left: 0; }
[dir="rtl"] .about-badge { left: auto; right: -20px; }
[dir="rtl"] .feature::before { left: auto; right: -1px; }
[dir="rtl"] .feature-grid { border-left: 0; border-right: 1px solid var(--grey-300); }
[dir="rtl"] .feature { border-right: 0; border-left: 1px solid var(--grey-300); }
[dir="rtl"] .facility { text-align: right; }
[dir="rtl"] .facility-label .icon { margin-left: 0; margin-right: auto; }
[dir="rtl"] .tech-index { right: auto; left: 26px; }
[dir="rtl"] .qualities li:hover { padding-left: 0; padding-right: 10px; }
[dir="rtl"] .pearson-visual::before { inset: 24px 24px -24px -24px; }
[dir="rtl"] .pearson-card { left: auto; right: -28px; }
[dir="rtl"] .subject::after { transform-origin: right; }
[dir="rtl"] .cta-band::before { background: linear-gradient(270deg, rgba(7,19,37,.92) 0%, rgba(7,19,37,.78) 55%, rgba(7,19,37,.6) 100%); }
[dir="rtl"] .admissions::before { right: auto; left: -15%; }
[dir="rtl"] .modal-close { right: auto; left: 14px; }
[dir="rtl"] .modal-list li { padding: 10px 26px 10px 0; }
[dir="rtl"] .modal-list li::before { left: auto; right: 2px; }
[dir="rtl"] .lb-close { right: auto; left: 16px; }
[dir="rtl"] .wa-float { padding: 0 16px 0 18px; }
[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
[dir="rtl"] .footer-bottom .text-link .icon { transform: none; }
@media (max-width: 767px) {
  [dir="rtl"] .about-badge { right: 12px; }
  [dir="rtl"] .pearson-visual::before { inset: 14px 14px -14px -10px; }
  [dir="rtl"] .pearson-card { right: 12px; left: 12px; }
  [dir="rtl"] .lb-prev { left: auto; right: 20px; }
  [dir="rtl"] .lb-next { right: auto; left: 20px; }
  [dir="rtl"] .wa-float { padding: 0; }
}
