/* Emerald International School — public site
   Colours, logo and pattern taken from the EIS brand identity manual.
   Fonts are self-hosted (SIL Open Font License). */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/figtree-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/tajawal-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/tajawal-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/tajawal-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/tajawal-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --green: #5DC697;        /* brand emerald (C63 M0 Y48 K0) */
  --green-600: #46B583;
  --green-700: #1F7F59;    /* accessible text green on white */
  --mint: #B3E4CA;
  --mint-50: #E7F6EE;
  --ink: #231F20;          /* brand black (K100) */
  --charcoal: #2E2B2C;
  --charcoal-2: #3B3839;
  --paper: #F3F5F4;
  --line: #E1E5E3;
  --text: #2B2829;
  --muted: #676465;
  --pink: #F46AAE;
  --orange: #F2542F;
  --yellow: #F4DF51;
  --blue: #4766BA;
  --olive: #4D5E43;
  --grey: #BDBCBC;
  --tan: #CBAE8E;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: 24px;
  --shadow: 0 1px 2px rgba(35,31,32,.06), 0 8px 28px rgba(35,31,32,.08);
  --font: "Figtree", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-ar: "Tajawal", "Figtree", "Segoe UI", Tahoma, sans-serif;
  --pattern: url("../img/pattern-square.svg");
  --pattern-row: url("../img/pattern-row.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text);
  background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[lang="ar"] body, html[lang="ar"] body { font-family: var(--font-ar); font-size: 18px; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.narrow.align-center { margin-inline: auto; text-align: center; }
.muted { color: var(--muted); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.draft-bar { background: var(--yellow); color: var(--ink); text-align: center; font-size: 14px; font-weight: 700; padding: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 26px; border-radius: 4px; border: 2px solid transparent; font: inherit; font-weight: 700;
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 16px; }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green-600); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--charcoal-2); color: #fff; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero .btn-ghost, .bg-dark .btn-ghost, .cta-dark .btn-ghost, .cta-pattern .btn-ghost { color: #fff; }
.hero .btn-ghost:hover, .bg-dark .btn-ghost:hover, .cta-dark .btn-ghost:hover, .cta-pattern .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.center { justify-content: center; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--ink); color: #cfcccd; font-size: 13.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #dcd9da; text-decoration: none; }
.topbar a:hover { color: var(--green); }
.topbar-contact { display: flex; gap: 22px; }
.topbar-social, .footer-social { display: flex; gap: 6px; }
.topbar-social a, .footer-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; }
.topbar-social svg { width: 16px; height: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(35,31,32,.1); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { flex: none; display: block; }
.brand img { height: 52px; width: auto; }
.nav { margin-inline-start: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav > ul > li > a {
  display: block; padding: 10px 12px; font-weight: 600; font-size: 15.5px; color: var(--ink); text-decoration: none; border-radius: 4px;
}
.nav > ul > li > a:hover, .nav > ul > li.active > a { color: var(--green-700); }
.nav > ul > li.active > a { box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav .has-sub { display: flex; align-items: center; }
.nav .has-sub > a { padding-inline-end: 2px; }
.sub-toggle { background: none; border: 0; padding: 8px 6px; cursor: pointer; color: var(--ink); }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.nav .sub {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border-top: 3px solid var(--green); box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub, .nav .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; border-radius: 4px; font-weight: 500; }
.nav .sub a:hover, .nav .sub a[aria-current] { background: var(--mint-50); color: var(--green-700); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  font-weight: 700; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 4px; font-size: 15px;
}
.lang[lang="ar"] { font-family: var(--font-ar); font-size: 17px; }
.lang:hover { background: var(--paper); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--paper); border-radius: 4px; cursor: pointer; padding: 12px 11px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.brand-bar { display: flex; height: 4px; }
.brand-bar i { flex: 1; }
.brand-bar i:nth-child(1) { background: var(--green); flex: 3; }
.brand-bar i:nth-child(2) { background: var(--orange); }
.brand-bar i:nth-child(3) { background: var(--yellow); }
.brand-bar i:nth-child(4) { background: var(--pink); }
.brand-bar i:nth-child(5) { background: var(--blue); }
.brand-bar i:nth-child(6) { background: var(--olive); }
.brand-bar i:nth-child(7) { background: var(--mint); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.04; margin-bottom: .35em; }
html[lang="ar"] .hero h1 { line-height: 1.25; }
.hero .eyebrow { color: var(--green); }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.84); max-width: 34em; }
.hero-lg { min-height: min(84vh, 760px); }
.hero-md { min-height: 480px; }
.hero-pattern { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--charcoal); }
.hero-panel { display: flex; align-items: center; padding: clamp(48px, 7vw, 96px) var(--gutter); padding-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.hero-copy { max-width: 600px; }
.hero-art { position: relative; min-height: 320px; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art::before {
  content: ""; position: absolute; z-index: 1; inset-block: 0; inset-inline-start: -1px; width: 16%;
  background: var(--charcoal); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
[dir="rtl"] .hero-art::before { clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.hero-dark { background: var(--charcoal); display: flex; align-items: center; }
.hero-dark .wrap { position: relative; z-index: 1; padding-block: 80px; }
.hero-edge { position: absolute; inset-block: 0; inset-inline-end: 0; width: 30%; background: var(--pattern) center/cover; clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .hero-edge { clip-path: polygon(0 0, 65% 0, 100% 100%, 0 100%); }
.hero-media { display: flex; align-items: flex-end; background: var(--ink); }
.hero-bg, .banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-bg { object-position: 50% 32%; } /* keeps building signage in frame */
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,31,32,.15) 0%, rgba(35,31,32,.35) 45%, rgba(35,31,32,.86) 100%); }
.hero-media .wrap { position: relative; padding-block: 72px; }

/* ---------- page banner ---------- */
.page-banner { position: relative; background: var(--charcoal); color: #fff; overflow: hidden; }
.banner-in { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 96px); }
.banner-in h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 16em; margin: 0; }
.banner-sub { margin: 14px 0 0; font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 40em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 18px; color: rgba(255,255,255,.5); }
.crumbs a { color: var(--green); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: #fff; }
.banner-art { position: absolute; inset-block: 0; inset-inline-end: 0; width: 36%; background: var(--pattern) center/cover; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .banner-art { clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%); }
.page-banner.has-img .banner-in { padding-block: clamp(110px, 14vw, 180px) 56px; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 104px); }
.bg-white { background: #fff; }
.bg-paper { background: var(--paper); }
.bg-mint { background: var(--mint-50); }
.bg-dark { background: var(--charcoal); color: rgba(255,255,255,.86); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark a:not(.btn) { color: var(--green); }
.bg-green { background: var(--green); color: var(--ink); }
.bg-green .eyebrow { color: var(--ink); }
.bg-green .eyebrow::before { background: var(--ink); }
.sec + .sec.bg-white, .blk + .blk .sec.bg-white { }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.sec-head.align-center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-700);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--green); transform: rotate(45deg); flex: none; }
.bg-dark .eyebrow { color: var(--green); }
.lead { font-size: 1.16rem; color: var(--muted); }
.bg-dark .lead { color: rgba(255,255,255,.75); }
.bg-green .lead { color: var(--ink); }

.prose { max-width: 70ch; }
.align-center .prose { margin-inline: auto; }
.prose h2 { font-size: 1.7rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.3em; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-inline-start: 26px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 8px; height: 8px; background: var(--green); transform: rotate(45deg); }
.prose ol { padding-inline-start: 1.3em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-inline-start: 4px solid var(--green); font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.align-center .prose ul { display: inline-block; text-align: start; }

/* split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.media-start .split-media { order: -1; }
.split-media { position: relative; }
.split-media::before { content: ""; position: absolute; inset-inline-end: -16px; bottom: -16px; width: 55%; height: 55%; background: var(--green); z-index: 0; border-radius: var(--radius); }
.split.media-start .split-media::before { inset-inline-end: auto; inset-inline-start: -16px; background: var(--orange); }
.split-img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--paper); }
.split-img.is-brand { display: grid; place-items: center; background: var(--charcoal) var(--pattern-row) left bottom / auto 22% repeat-x; overflow: hidden; }
.split-img.is-brand img { width: 34%; margin-bottom: 14%; }
.split.media-start .split-img.is-brand { background-color: var(--olive); }
.split .sec-head { margin-bottom: 20px; }

/* stats */
.stats-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; text-align: center; }
.stat { padding: 8px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: -12px; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,.14); }
.bg-white .stat + .stat::before, .bg-paper .stat + .stat::before, .bg-mint .stat + .stat::before { background: var(--line); }
.stat-num { display: block; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; color: var(--green); line-height: 1.05; letter-spacing: -.02em; }
.bg-green .stat-num { color: var(--ink); }
.bg-white .stat-num, .bg-paper .stat-num, .bg-mint .stat-num { color: var(--green-700); }
.stat-label { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
html[lang="ar"] .stat-label { letter-spacing: 0; font-size: 16px; }

/* cards */
.cards { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card::before { content: ""; height: 5px; background: var(--c, var(--green)); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.c0 { --c: var(--green); } .card.c1 { --c: var(--orange); } .card.c2 { --c: var(--blue); }
.card.c3 { --c: var(--pink); } .card.c4 { --c: var(--yellow); } .card.c5 { --c: var(--olive); }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.28rem; margin-bottom: .45em; }
.card-body p { color: var(--muted); font-size: 16px; }
.card-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 4px; background: var(--c); color: #fff; }
.card.c4 .card-ico, .card.c0 .card-ico { color: var(--ink); }
.card-ico .ico { width: 28px; height: 28px; }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; color: var(--green-700); }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { color: var(--ink); }
.bg-dark .card { background: var(--charcoal-2); border-color: rgba(255,255,255,.08); }
.bg-dark .card-body p { color: rgba(255,255,255,.72); }

/* values tiles */
.values { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; max-width: 1000px; }
.values li { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 16px; text-align: center; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; color: #fff; position: relative; overflow: hidden; border-radius: 2px; }
html[lang="ar"] .values li { letter-spacing: 0; font-size: 18px; }
.values li span { position: relative; z-index: 1; }
.values li::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border: 3px solid rgba(255,255,255,.22); transform: rotate(45deg); bottom: -20%; inset-inline-end: -14%; }
.values .v0 { background: var(--mint); color: var(--ink); } .values .v1 { background: var(--olive); }
.values .v2 { background: var(--blue); } .values .v3 { background: var(--orange); }
.values .v4 { background: var(--pink); } .values .v5 { background: var(--green); color: var(--ink); }
.values .v6 { background: var(--yellow); color: var(--ink); }
.values .v0::after, .values .v5::after, .values .v6::after { border-color: rgba(35,31,32,.12); }

/* stages */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; position: relative; }
.stage { position: relative; }
.stage-mark { display: flex; align-items: center; margin-bottom: 18px; height: 34px; }
.stage-mark::after { content: ""; flex: 1; height: 2px; background: var(--line); margin-inline-start: 12px; }
.bg-paper .stage-mark::after, .bg-mint .stage-mark::after { background: #C9D2CE; }
.bg-dark .stage-mark::after { background: rgba(255,255,255,.15); }
.stage:last-child .stage-mark::after { display: none; }
.stage-mark i { width: 26px; height: 26px; background: var(--s); transform: rotate(45deg); flex: none; margin-inline-start: 4px; }
.stage.s0 { --s: var(--yellow); } .stage.s1 { --s: var(--green); } .stage.s2 { --s: var(--blue); } .stage.s3 { --s: var(--pink); }
.stage h3 { font-size: 1.35rem; margin-bottom: 4px; }
.stage-meta { font-weight: 700; font-size: 14px; color: var(--green-700); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
html[lang="ar"] .stage-meta { letter-spacing: 0; font-size: 15px; }
.bg-dark .stage-meta { color: var(--green); }
.stage p:not(.stage-meta) { color: var(--muted); font-size: 16px; }
.bg-dark .stage p:not(.stage-meta) { color: rgba(255,255,255,.72); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.g-item { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 1 / 1; background: var(--paper); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; }
.logos img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,19,.94); display: grid; place-items: center; padding: 40px 64px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; border-radius: 4px; }
.lightbox button:hover { background: var(--green); color: var(--ink); }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { inset-inline-start: 12px; top: 50%; }
.lb-next { inset-inline-end: 12px; top: 50%; }
[dir="rtl"] .lb-prev, [dir="rtl"] .lb-next { transform: scaleX(-1); }

/* video */
.video-frame { max-width: 980px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.play { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%) rotate(45deg); background: var(--green); border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.play::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%) rotate(-45deg); border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--ink); }

/* CTA */
.cta { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 80px); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-copy { max-width: 640px; }
.cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta .btn-row { margin-top: 0; }
.cta-green { background: var(--green); color: var(--ink); }
.cta-dark { background: var(--charcoal); color: rgba(255,255,255,.82); }
.cta-dark h2, .cta-pattern h2 { color: #fff; }
.cta-pattern { background: var(--ink); color: rgba(255,255,255,.82); }
.cta-pattern::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 34%; background: var(--pattern) center/cover; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .cta-pattern::before { clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); }
.cta-pattern .cta-inner { padding-inline-end: 30%; }

/* staff */
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 24px; margin-bottom: 48px; }
.staff:last-child { margin-bottom: 0; }
.staff-lead { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.staff-group { font-size: 1.3rem; padding-bottom: 12px; margin-bottom: 24px; border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: 12px; }
.staff-group::before { content: ""; width: 12px; height: 12px; background: var(--green); transform: rotate(45deg); }
.person { display: flex; flex-direction: column; }
.person-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper); margin-bottom: 14px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo.ph { display: grid; place-items: center; position: relative; }
.person-photo.ph img { position: relative; z-index: 1; width: 34%; height: auto; opacity: .95; }
.person-photo.ph::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; transform: rotate(45deg); border: 4px solid rgba(255,255,255,.22); }
.ph.c0 { background: var(--green); } .ph.c1 { background: var(--olive); } .ph.c2 { background: var(--blue); }
.ph.c3 { background: var(--orange); } .ph.c4 { background: var(--pink); } .ph.c5 { background: var(--charcoal-2); }
.person h4 { font-size: 1.15rem; margin: 0 0 2px; }
.person-role { color: var(--green-700); font-weight: 600; font-size: 15px; margin: 0; }
.bg-dark .person-role { color: var(--green); }
.person details { margin-top: 8px; font-size: 15px; }
.person summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 14px; }
.bg-dark .person summary { color: #fff; }
.person-bio { padding-top: 8px; color: var(--muted); }

/* jobs */
.jobs-title { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; background: var(--green); color: var(--ink); border-radius: 15px; font-size: 14px; }
.jobs { display: grid; gap: 12px; margin-bottom: 56px; }
.job { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid var(--green); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: .2s; }
.job:hover { box-shadow: var(--shadow); color: var(--text); transform: translateY(-2px); }
.job h4 { font-size: 1.2rem; margin: 0 0 6px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0; font-size: 14.5px; color: var(--muted); }
.job-go { flex: none; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--green-700); }
html[lang="ar"] .tag { letter-spacing: 0; font-size: 13.5px; }
.tag-national { background: var(--orange); } .tag-american { background: var(--blue); } .tag-school { background: var(--olive); }
.notice { padding: 20px 24px; background: var(--mint-50); border-inline-start: 4px solid var(--green); border-radius: 4px; margin-bottom: 40px; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.job-detail .job-meta { margin-bottom: 28px; }
.job-layout .form-card { position: sticky; top: 110px; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); color: var(--text); }
.form-card h2, .form-card h3 { font-size: 1.4rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1.5px solid #CCD2CF; border-radius: 4px; transition: border-color .15s, box-shadow .15s;
}
.field input[type="file"] { padding: 10px; background: var(--paper); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(93,198,151,.3); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D2402A; background: #FFF6F4; }
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-weight: 600; }
.alert.ok { background: var(--mint-50); color: #155C40; border-inline-start: 4px solid var(--green); }
.alert.err { background: #FFF0EC; color: #9E2A16; border-inline-start: 4px solid var(--orange); }
.form-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-aside h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.bg-dark .form-aside .prose { color: rgba(255,255,255,.82); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info dl { margin: 0 0 28px; display: grid; gap: 4px; }
.contact-info dt { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--green-700); margin-top: 14px; }
html[lang="ar"] .contact-info dt { letter-spacing: 0; font-size: 15px; }
.contact-info dd { margin: 0; font-size: 1.08rem; }
.contact-info dd a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-info dd a:hover { color: var(--green-700); }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-actions { margin: 14px 0 0; }

/* google form */
.gform { max-width: 780px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gform iframe { display: block; width: 100%; border: 0; }
.gform-open { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); text-align: center; font-size: 14.5px; background: var(--paper); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; padding-inline-end: 40px; font-weight: 700; font-size: 1.12rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--green-700); }
.faq details[open] summary::after { content: "−"; }
.faq-a { padding-bottom: 20px; color: var(--muted); }
.bg-dark .faq details { border-color: rgba(255,255,255,.12); }
.bg-dark .faq summary { color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #BEBBBC; font-size: 15.5px; }
.footer-pattern { height: 56px; background: var(--pattern-row) left center / auto 100% repeat-x; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.footer-tagline { color: var(--green); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
html[lang="ar"] .footer-tagline { letter-spacing: 0; font-size: 16px; }
.footer-about { max-width: 30em; }
.footer-h { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
html[lang="ar"] .footer-h { letter-spacing: 0; font-size: 16px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #DAD7D8; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-social a { background: rgba(255,255,255,.07); width: 40px; height: 40px; }
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--green); color: var(--ink); }
.footer-hours { margin-top: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.footer-bottom-in { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .nav > ul > li > a { padding: 10px 8px; font-size: 15px; }
  .header-cta { display: none; }
}
@media (max-width: 1024px) {
  .burger { display: block; }
  .nav {
    position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 88vw); margin: 0;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.18); padding: 90px 24px 32px; overflow-y: auto;
    transform: translateX(105%); transition: transform .28s ease; visibility: hidden;
  }
  [dir="rtl"] .nav { transform: translateX(-105%); }
  .nav.open { transform: none; visibility: visible; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(35,31,32,.45); }
  body.nav-open .site-header { z-index: 60; }
  .header-actions { margin-inline-start: auto; position: relative; z-index: 61; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { padding: 14px 4px; font-size: 17px; flex: 1; }
  .nav > ul > li.active > a { box-shadow: none; }
  .nav .has-sub { flex-wrap: wrap; }
  .sub-toggle { padding: 14px; }
  .nav .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .nav .sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; display: none; }
  .nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: none; }
  .nav .has-sub.open > .sub { display: block; }
  .nav-mobile-extra { display: grid; gap: 18px; margin-top: 24px; }
  .nav-mobile-extra .topbar-social a { color: var(--ink); background: var(--paper); width: 40px; height: 40px; }
  .hero-pattern { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 240px; }
  .hero-art::before, [dir="rtl"] .hero-art::before { inset-inline-start: 0; width: 100%; height: 22%; inset-block: auto 0; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
  .hero-pattern.hero-lg { min-height: 0; }
  .hero-panel { padding: 40px var(--gutter) 64px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .form-split, .contact-grid, .job-layout { grid-template-columns: 1fr; }
  .split.media-start .split-media, .split .split-media { order: -1; }
  .job-layout .form-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner-art { width: 28%; opacity: .9; }
  .hero-edge { width: 22%; }
  .cta-pattern::before { width: 22%; }
  .cta-pattern .cta-inner { padding-inline-end: 18%; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar-contact a + a, .topbar .topbar-social { display: none; }
  .header-in { min-height: 70px; gap: 12px; }
  .brand img { height: 42px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .banner-art { display: none; }
  .page-banner::after { content: ""; display: block; height: 14px; background: var(--pattern-row) left center / auto 100% repeat-x; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat + .stat::before { display: none; }
  .job { flex-direction: column; align-items: flex-start; }
  .cta-pattern::before { display: none; }
  .cta-pattern .cta-inner { padding-inline-end: 0; }
  .cta-pattern { border-top: 12px solid var(--green); }
  .hero-edge { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .split-media::before { inset-inline-end: -8px; bottom: -8px; }
  .lightbox { padding: 56px 12px; }
}
@media print {
  .topbar, .site-header, .site-footer, .hero-art, .banner-art { display: none !important; }
}

/* =====================================================================
   Virtual tour ("Take a Tour" page)
   Without JS / with reduced motion: a list of captioned clips.
   With .is-live (set by tour.js): a sticky full-screen walk-through.
   ===================================================================== */
.tour { position: relative; background: #121011; color: #fff; isolation: isolate; }
.tour-intro { padding-block: clamp(56px, 8vw, 104px) 32px; background: var(--charcoal); position: relative; }
.tour-intro h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1.02; margin: 0 0 .3em; max-width: 12em; }
html[lang="ar"] .tour-intro h1 { line-height: 1.25; }
.tour-intro .eyebrow { color: var(--green); }
.tour-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.78); max-width: 34em; margin: 0; }
.tour-cue { display: none; }
.tour-scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding: 24px max(16px, calc((100vw - var(--wrap)) / 2)) 64px; }
.tour-scene { margin: 0; position: relative; background: #000; border-radius: var(--radius); overflow: hidden; }
.tour-scene video, .tour-scene img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.tour-scene figcaption { padding: 14px 16px 18px; display: grid; gap: 4px; background: var(--charcoal); }
.tour-scene figcaption strong { font-size: 1.1rem; }
.tour-scene figcaption span:not(.tour-num) { color: rgba(255,255,255,.72); font-size: 15px; }
.tour-num { font-weight: 800; color: var(--green); font-size: 13px; letter-spacing: .12em; }
.tour-fx, .tour-doors, .tour-hud { display: none; }
.tour:not(.is-live) .tour-stage { display: flex; flex-direction: column; }
.tour:not(.is-live) .tour-intro { order: -1; }

/* ---------- live mode ---------- */
.tour.is-live { height: var(--tour-h, 1200vh); }
.tour.is-live .tour-stage { position: sticky; top: var(--hh, 0px); height: calc(100vh - var(--hh, 0px)); height: calc(100svh - var(--hh, 0px)); overflow: hidden; background: #000; }
.tour.is-live .tour-scenes { display: block; padding: 0; position: absolute; inset: 0; }
.tour.is-live .tour-scene { position: absolute; inset: 0; border-radius: 0; visibility: hidden; will-change: transform, filter, clip-path; }
.tour.is-live .tour-scene.on { visibility: visible; }
.tour.is-live .tour-scene video, .tour.is-live .tour-scene img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.tour.is-live .tour-scene figcaption { display: none; }

/* cinematic overlays */
.tour.is-live .tour-fx { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.tour-vignette { position: absolute; inset: 0; background:
  radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%),
  linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.78) 100%); }
.tour-fx::after { content: ""; position: absolute; inset: 0; opacity: .07;
  background: repeating-linear-gradient(180deg, #fff 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.tour-corner { position: absolute; width: 34px; height: 34px; border: 2px solid var(--green); opacity: .9; filter: drop-shadow(0 0 6px rgba(93,198,151,.7)); }
.tour-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.tour-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.tour-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.tour-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.tour-scan { position: absolute; left: 0; right: 0; top: 0; height: 18%; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(93,198,151,.0) 40%, rgba(160,255,210,.55) 50%, transparent 52%); }
.tour.flash .tour-scan { animation: tour-scan .9s cubic-bezier(.4,0,.2,1) 1; }
@keyframes tour-scan { 0% { opacity: 1; transform: translateY(-100%); } 100% { opacity: 0; transform: translateY(600%); } }

/* the emerald portal that each new room opens through */
.tour-portal { display: none; }
.tour.is-live .tour-portal { display: block; position: absolute; left: 50%; top: 50%; width: 10vmax; height: 10vmax; z-index: 2; pointer-events: none;
  border: 2px solid #8CF0C2; transform: translate(-50%, -50%) rotate(45deg) scale(var(--ps, 0)); opacity: var(--po, 0);
  box-shadow: 0 0 24px rgba(93,198,151,.9), inset 0 0 24px rgba(93,198,151,.6); }

/* doors + intro */
.tour.is-live .tour-doors { display: block; position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tour-doors i { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #1A1718;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; will-change: transform; }
.tour-doors .door-l { left: 0; transform: translateX(calc(var(--open, 0) * (-101% - 140px))); box-shadow: inset -2px 0 0 rgba(93,198,151,.8), 12px 0 40px rgba(93,198,151,.25); }
.tour-doors .door-r { right: 0; transform: translateX(calc(var(--open, 0) * (101% + 140px))); box-shadow: inset 2px 0 0 rgba(93,198,151,.8), -12px 0 40px rgba(93,198,151,.25); }
.tour-doors i::after { content: ""; position: absolute; top: 50%; width: 120px; height: 120px; margin-top: -60px; border: 2px solid rgba(93,198,151,.75); transform: rotate(45deg); }
.tour-doors .door-l::after { right: -60px; }
.tour-doors .door-r::after { left: -60px; }
.tour.is-live .tour-intro { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; background: none; padding: 0;
  opacity: var(--intro, 1); transform: translateY(calc((1 - var(--intro, 1)) * -40px)); pointer-events: none; }
.tour.is-live .tour-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--green); }
html[lang="ar"] .tour.is-live .tour-cue { letter-spacing: 0; font-size: 15px; }
.cue-diamond { width: 12px; height: 12px; border: 2px solid var(--green); transform: rotate(45deg); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px) rotate(45deg); opacity: .5; } 50% { transform: translateY(5px) rotate(45deg); opacity: 1; } }
.tour.is-live .tour-intro .w > span { animation: word-up .9s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(.2s + var(--i) * 80ms); }
.tour.is-live .tour-intro .tour-lead, .tour.is-live .tour-intro .tour-cue { animation: fade-up .9s cubic-bezier(.16,1,.3,1) .6s both; }

/* HUD */
.tour.is-live .tour-hud { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: var(--hud, 0); }
.tour-hud > * { pointer-events: auto; }
.hud-top { position: absolute; top: 30px; inset-inline: 64px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none !important;
  font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); }
html[lang="ar"] .hud-top { letter-spacing: 0; font-size: 14px; }
.hud-brand { display: inline-flex; align-items: center; gap: 10px; }
.hud-brand img { width: 22px; }
.hud-coord { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.6); letter-spacing: .12em; }
.hud-scene { position: absolute; inset-inline-start: 64px; bottom: 78px; max-width: min(640px, calc(100% - 128px)); }
.hud-count { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .2em; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.hud-count b { color: var(--green); font-size: 1.6em; letter-spacing: .05em; }
.hud-title { color: #fff; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.02; margin: 0 0 .25em; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
html[lang="ar"] .hud-title { line-height: 1.25; }
.hud-text { margin: 0; font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 32em; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hud-scene.swap .hud-title { animation: hud-glitch .5s steps(3, end) 1, hud-in .7s cubic-bezier(.16,1,.3,1) 1; }
.hud-scene.swap .hud-text { animation: hud-in .7s cubic-bezier(.16,1,.3,1) .08s both; }
.hud-scene.swap .hud-count b { animation: hud-in .5s cubic-bezier(.16,1,.3,1) 1; }
@keyframes hud-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
@keyframes hud-glitch {
  0% { text-shadow: -3px 0 rgba(255,60,90,.8), 3px 0 rgba(60,220,255,.8); transform: translateX(-2px); }
  50% { text-shadow: 3px 0 rgba(255,60,90,.8), -3px 0 rgba(60,220,255,.8); transform: translateX(2px); }
  100% { text-shadow: 0 4px 30px rgba(0,0,0,.4); transform: none; } }
.hud-cta { margin-top: 22px; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events: none; }
.tour.at-end .hud-cta { opacity: 1; transform: none; pointer-events: auto; }
.hud-rail { position: absolute; inset-inline-end: 34px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hud-rail button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: none; border: 0; padding: 5px 0; cursor: pointer; color: rgba(255,255,255,.55); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .hud-rail button { letter-spacing: 0; font-size: 14px; }
.hud-rail button span { opacity: 0; transform: translateX(8px); transition: .25s; white-space: nowrap; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
[dir="rtl"] .hud-rail button span { transform: translateX(-8px); }
.hud-rail button i { order: 2; width: 9px; height: 9px; border: 1.5px solid currentColor; transform: rotate(45deg); transition: .25s; flex: none; }
.hud-rail button:hover span, .hud-rail button:focus-visible span, .hud-rail li.on button span { opacity: 1; transform: none; }
.hud-rail li.done button i { background: rgba(93,198,151,.5); border-color: var(--green); }
.hud-rail li.on button { color: #fff; }
.hud-rail li.on button i { background: var(--green); border-color: var(--green); transform: rotate(45deg) scale(1.35); box-shadow: 0 0 12px rgba(93,198,151,.9); }
.hud-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.hud-progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--prog, 0)); background: linear-gradient(90deg, #5DC697, #B3E4CA); box-shadow: 0 0 12px rgba(93,198,151,.8); }
[dir="rtl"] .hud-progress i { transform-origin: right; }
.hud-skip { position: absolute; inset-inline-end: 64px; bottom: 30px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.3); color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 4px; cursor: pointer; backdrop-filter: blur(6px); }
.hud-skip:hover { background: var(--green); color: var(--ink); border-color: var(--green); }

.form-hint { color: #9E2A16; background: #FFF0EC; padding: 10px 14px; border-radius: 4px; font-weight: 600; margin: -6px 0 16px; }

@media (max-width: 760px) {
  .hud-top { top: 22px; inset-inline: 40px; font-size: 11px; }
  .hud-coord { display: none; }
  .hud-scene { inset-inline: 24px; bottom: 92px; max-width: none; }
  .hud-rail { top: auto; bottom: 46px; transform: none; inset-inline: 24px; display: flex; gap: 0; justify-content: space-between; }
  .hud-rail button { padding: 8px 4px; }
  .hud-rail button span { display: none; }
  .hud-skip { bottom: auto; top: 54px; inset-inline-end: 24px; padding: 6px 10px; font-size: 12px; }
  .tour-corner { width: 22px; height: 22px; }
  .tour-corner.tl, .tour-corner.tr { top: 12px; } .tour-corner.bl, .tour-corner.br { bottom: 12px; }
  .tour-corner.tl, .tour-corner.bl { left: 12px; } .tour-corner.tr, .tour-corner.br { right: 12px; }
  .tour-doors i::after { width: 70px; height: 70px; margin-top: -35px; }
  .tour-doors .door-l::after { right: -35px; } .tour-doors .door-r::after { left: -35px; }
}
