/* =====================================================================
   EGGEvent 2026 — "The Gate" theme
   Navy + gold from the Edu.Gate identity, arch ("gate") motif, rising bars.
   RTL-first via logical properties. Light / dark / high-contrast themes.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #070f24;
  --navy-900: #0b1633;
  --navy-800: #12224a;
  --navy-700: #1b326b;
  --navy-600: #29468a;
  --navy-500: #3d63b8;
  --navy-100: #e6ecf8;
  --gold-700: #8a6410;
  --gold-600: #b8892a;
  --gold-500: #d4af50;
  --gold-400: #e5c46b;
  --gold-300: #f3d27a;
  --gold-100: #f8efd7;

  --bg: #f7f5ef;
  --bg-alt: #eeeadf;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #0f1a33;
  --muted: #4a5570;
  --line: #ded8c8;
  --gold-ink: #8a6410;
  --link: #24438a;
  --ring: #1d4ed8;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --ok: #146c43;
  --ok-bg: #e7f6ee;

  --radius: 18px;
  --radius-sm: 12px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow: 0 18px 40px -22px rgba(11, 22, 51, .35);
  --shadow-sm: 0 6px 18px -10px rgba(11, 22, 51, .3);
  --header-h: 72px;

  --font-body: 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-display: 'Montserrat', 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[lang="ar"] { --font-display: 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1226; --bg-alt: #0e1a35; --surface: #111d3b; --surface-2: #14224a;
    --ink: #eef1f8; --muted: #b4bdd4; --line: #283862; --gold-ink: #e5c46b; --link: #9fb8f0; --ring: #f3d27a;
    --danger: #ff8a7f; --danger-bg: #3a1513; --ok: #6fdba5; --ok-bg: #0f3324;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1226; --bg-alt: #0e1a35; --surface: #111d3b; --surface-2: #14224a;
  --ink: #eef1f8; --muted: #b4bdd4; --line: #283862; --gold-ink: #e5c46b; --link: #9fb8f0; --ring: #f3d27a;
  --danger: #ff8a7f; --danger-bg: #3a1513; --ok: #6fdba5; --ok-bg: #0f3324;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* High contrast (black / white / yellow) */
:root.a11y-contrast {
  --bg: #000; --bg-alt: #000; --surface: #000; --surface-2: #000; --ink: #fff; --muted: #fff; --line: #fff;
  --gold-ink: #ffe14d; --link: #ffe14d; --ring: #ffe14d; --navy-900: #000; --navy-800: #000; --navy-700: #000;
  --navy-950: #000; --navy-600: #000; --gold-500: #ffe14d; --gold-400: #ffe14d; --gold-300: #ffe14d;
  --danger: #ff9b9b; --danger-bg: #000; --ok: #7dffb5; --ok-bg: #000; --shadow: none; --shadow-sm: none;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html.splash-on body { overflow: hidden; }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .5em; color: inherit; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { font: 600 .72em/1 var(--font-body); padding: .25em .45em; border: 1px solid currentColor; border-radius: 6px; opacity: .8; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.section-navy, .hero, .section-smart, .site-footer, .splash { --ring: #f3d27a; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.container.narrow { max-width: 880px; }
.center { text-align: center; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 12px; top: -80px; z-index: 2000;
  background: var(--gold-500); color: var(--navy-950); padding: .7em 1.2em; border-radius: 10px; font-weight: 700;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; }
.ic-sm { width: 1em; height: 1em; }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }
.ic-back { transform: scaleX(-1); }
[dir="rtl"] .ic-back { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .6em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-lg { min-height: 54px; padding: .75em 1.7em; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-950); box-shadow: 0 10px 24px -12px rgba(212, 175, 80, .9); }
.btn-gold:hover { box-shadow: 0 14px 30px -12px rgba(212, 175, 80, 1); }
.btn-navy { background: var(--navy-600); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline-gold { background: transparent; border-color: var(--gold-500); color: var(--gold-300); }
.btn-outline-gold:hover { background: var(--gold-500); color: var(--navy-950); }
.btn-link-light { color: #fff; padding-inline: .4em; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.a11y-contrast .btn { border-color: #fff !important; }
.a11y-contrast .btn-gold, .a11y-contrast .btn-navy { background: #ffe14d; color: #000; }

.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .4em .9em; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-size: .9rem; border: 1px solid rgba(255, 255, 255, .25);
}
.chip:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Splash ---------- */
.splash { position: fixed; inset: 0; z-index: 1500; display: none; place-items: center; color: #fff; text-align: center; overflow: hidden; }
html.splash-on .splash { display: grid; }
.splash-door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(ellipse 80% 60% at var(--gx) 70%, rgba(61, 99, 184, .55), transparent 70%),
    linear-gradient(160deg, #0e1d45 0%, #070f24 100%);
  transition: transform 1s cubic-bezier(.75, 0, .2, 1);
}
.splash-door--start { left: 0; --gx: 100%; border-right: 1px solid rgba(243, 210, 122, .35); }
.splash-door--end { right: 0; --gx: 0%; border-left: 1px solid rgba(243, 210, 122, .35); }
.splash.is-opening .splash-door--start { transform: translateX(-101%); }
.splash.is-opening .splash-door--end { transform: translateX(101%); }
.splash-inner { position: relative; z-index: 2; padding: 24px; max-width: 760px; transition: opacity .45s, transform .6s; }
.splash.is-opening .splash-inner { opacity: 0; transform: scale(.94); }
.splash-gate { width: min(260px, 60vw); height: auto; display: block; margin: 0 auto 8px; overflow: visible; }
.sg-arch { fill: none; stroke: rgba(243, 210, 122, .85); stroke-width: 3; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.6s .1s cubic-bezier(.6, 0, .2, 1) forwards; filter: drop-shadow(0 0 10px rgba(243, 210, 122, .6)); }
.sg-arch--inner { stroke: rgba(255, 255, 255, .25); stroke-width: 1.5; animation-delay: .35s; }
.sg-bars rect { fill: #3d63b8; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: grow .7s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.sg-bars rect:nth-child(1) { animation-delay: .9s; }
.sg-bars rect:nth-child(2) { animation-delay: 1.05s; }
.sg-bars rect:nth-child(3) { animation-delay: 1.2s; }
.sg-bars rect:nth-child(4) { animation-delay: 1.35s; }
.sg-arrow, .sg-head { fill: none; stroke: #f3d27a; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s 1.6s cubic-bezier(.6, 0, .2, 1) forwards; }
.sg-head { stroke-dasharray: 60; stroke-dashoffset: 60; animation-delay: 2.45s; animation-duration: .4s; }
.splash-logo { display: block; width: 150px; margin: 6px auto 14px; background: #fff; padding: 10px 14px; border-radius: 14px; opacity: 0; animation: fadeUp .8s 2.2s forwards; }
.splash-kicker { letter-spacing: .35em; font: 700 .78rem/1 'Montserrat', sans-serif; color: var(--gold-300); margin-bottom: 14px; opacity: 0; animation: fadeUp .7s .6s forwards; }
.splash-title { font-size: clamp(1.35rem, 3.6vw, 2.3rem); margin: 0 auto 10px; max-width: 26ch; opacity: 0; animation: fadeUp .8s 1s forwards; }
.splash-slogan { color: #cdd6ee; font-size: clamp(1rem, 2vw, 1.15rem); opacity: 0; animation: fadeUp .8s 1.4s forwards; }
.splash-progress { width: min(320px, 70vw); height: 4px; margin: 26px auto 18px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.splash-progress span { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); animation: progress 5s linear forwards; }
[dir="rtl"] .splash-progress span { transform-origin: right; }
.splash-skip { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: .5em 1.2em; display: inline-flex; gap: .6em; align-items: center; }
.splash-skip:hover { background: rgba(255, 255, 255, .1); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Announcement & header ---------- */
.announce { background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); color: var(--navy-950); font-size: .92rem; }
.announce-in { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-block: 6px; }
.announce p { margin: 0; flex: 1; font-weight: 500; }
.announce-link { color: var(--navy-950); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: .3em; }
.a11y-contrast .announce { background: #ffe14d; }

.site-header {
  position: sticky; top: 0; z-index: 800;
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile drawer inside it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 800 1.15rem/1.1 'Montserrat', sans-serif; color: var(--navy-600); }
.brand-text small { font-size: .78rem; color: var(--muted); }
:root[data-theme="dark"] .brand-text strong, .a11y-contrast .brand-text strong { color: var(--gold-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-text strong { color: var(--gold-300); } }

.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; }
.main-nav li a {
  display: block; padding: .5em .7em; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.main-nav li a:hover { background: var(--bg-alt); }
.main-nav li a.is-active { color: var(--gold-ink); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.main-nav .nav-cta-mobile { display: none; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-width: 44px; height: 44px; padding: 0 .55em;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.tool-btn:hover { background: var(--bg-alt); }
.tool-btn[aria-expanded="true"] { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }
.ic-sun { display: none; }
[data-theme-toggle][aria-pressed="true"] .ic-sun { display: block; }
[data-theme-toggle][aria-pressed="true"] .ic-moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.header-cta { white-space: nowrap; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 790; width: min(360px, 88vw);
    padding: calc(var(--header-h) + 16px) 20px 24px; background: var(--surface); box-shadow: var(--shadow);
    display: none; overflow-y: auto;
  }
  /* Closed drawer is out of layout: an off-screen transform would add horizontal scroll in RTL. */
  .main-nav.is-open { display: block; animation: drawerIn .3s cubic-bezier(.2, .7, .2, 1); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav li a { padding: .8em 1em; font-size: 1.05rem; }
  .main-nav li a.is-active { box-shadow: inset 3px 0 0 var(--gold-500); }
  .main-nav .nav-cta-mobile { display: flex; margin-top: 18px; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(7, 15, 36, .5); z-index: 780; }
  .header-tools { margin-inline-start: auto; position: relative; z-index: 795; }
}
@media (max-width: 640px) {
  .header-cta, .lang-btn span, .brand-text small { display: none; }
  .header-in { gap: 8px; }
  .tool-btn { min-width: 42px; height: 42px; }
}

/* ---------- Accessibility panel ---------- */
.a11y-panel {
  position: fixed; z-index: 850; top: calc(var(--header-h) + 8px); inset-inline-end: 16px; width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-head h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: .4em; }
.a11y-group p { font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; }
.a11y-group output { color: var(--gold-ink); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.seg button, .a11y-toggles button {
  min-height: 44px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 10px; font-weight: 600;
}
.a11y-toggles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.a11y-toggles button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; font-size: .86rem; line-height: 1.3; }
.a11y-toggles button[aria-checked="true"] { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }
.a11y-contrast .a11y-toggles button[aria-checked="true"] { background: #ffe14d; color: #000; }

/* ---------- Toasts & flashes ---------- */
.toast-region { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1200; display: grid; gap: 8px; width: min(480px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 14px 18px; border-radius: 14px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow); border-inline-start: 5px solid var(--gold-500); animation: fadeUp .35s; transition: opacity .6s; }
.toast.is-out { opacity: 0; }
.toast--error { border-inline-start-color: #ff8a7f; }
.flash { padding: 14px 0; font-weight: 600; }
.flash--success { background: var(--ok-bg); color: var(--ok); }
.flash--error { background: var(--danger-bg); color: var(--danger); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 70% at 85% 110%, rgba(61, 99, 184, .55), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 0%, rgba(212, 175, 80, .18), transparent 70%),
    linear-gradient(170deg, #0f1f4a 0%, #0b1633 55%, #070f24 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: float 14s ease-in-out infinite alternate; }
.orb-1 { width: 380px; height: 380px; background: #3d63b8; top: -120px; inset-inline-start: -80px; }
.orb-2 { width: 300px; height: 300px; background: #b8892a; bottom: -60px; inset-inline-end: 20%; opacity: .3; animation-delay: -6s; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.1); } }
.hero-gate { position: absolute; bottom: 0; inset-inline-end: -40px; width: min(720px, 62vw); height: auto; opacity: .55; }
[dir="rtl"] .hero-gate { transform: scaleX(-1); }
.hg-arch { fill: none; stroke: rgba(243, 210, 122, .5); stroke-width: 2.5; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s .3s ease forwards; }
.hg-arch--2 { stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; animation-delay: .6s; }
.hg-bars rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: grow 1s cubic-bezier(.3, 1.3, .5, 1) forwards; animation-delay: calc(.9s + var(--d) * .15s); }
.hg-arrow, .hg-head { fill: none; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s 1.6s ease forwards; }
.hg-head { stroke-dasharray: 120; stroke-dashoffset: 120; animation-delay: 2.8s; animation-duration: .5s; }

.hero-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 90px); }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; padding: .4em 1em; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; color: #dfe6f7; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(229, 196, 107, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(229, 196, 107, 0); } }
.hero-title { margin: 22px 0 16px; }
.ht-small { display: block; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--gold-300); font-weight: 700; letter-spacing: .02em; margin-bottom: 10px; }
.ht-big { display: block; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.15; background: linear-gradient(100deg, #fff 30%, #f3d27a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a11y-contrast .ht-big { background: none; color: #fff; }
.hero-slogan { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #d9e1f4; font-style: normal; margin-bottom: 26px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 30px; color: #e7ecf8; }
.hero-meta li { display: flex; align-items: center; gap: .5em; }
.hero-meta .ic { color: var(--gold-400); }
.hero-meta--dark { color: var(--ink); margin-top: 18px; }
.hero-meta--dark .ic { color: var(--gold-ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.countdown-card {
  position: relative; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px);
  border-radius: 200px 200px 24px 24px; padding: 56px 26px 26px; text-align: center; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.countdown-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(243, 210, 122, .35); border-radius: 190px 190px 18px 18px; pointer-events: none; }
.cd-title { font-size: 1rem; color: var(--gold-300); font-weight: 600; margin-bottom: 18px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; direction: ltr; }
.countdown div { background: rgba(7, 15, 36, .55); border-radius: 14px; padding: 14px 4px 10px; border: 1px solid rgba(255, 255, 255, .1); }
.countdown b { display: block; font: 800 clamp(1.6rem, 3vw, 2.3rem)/1 'Montserrat', sans-serif; font-variant-numeric: tabular-nums; color: #fff; }
.countdown span { display: block; font-size: .78rem; color: #c2cce6; margin-top: 6px; font-family: var(--font-body); }
.cd-done { font-size: 1.3rem; font-weight: 700; color: var(--gold-300); }
.cd-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.ticker { position: relative; display: flex; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(7, 15, 36, .5); direction: ltr; }
.ticker-track { list-style: none; display: flex; flex-shrink: 0; gap: 40px; padding: 14px 20px; animation: ticker 40s linear infinite; white-space: nowrap; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker li { display: flex; align-items: center; gap: 10px; color: #dbe3f6; font-weight: 500; }
.ticker .ic { color: var(--gold-400); width: 1em; }
@keyframes drawerIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
[dir="rtl"] .main-nav.is-open { animation-name: drawerInRtl; }
@keyframes drawerInRtl { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes ticker { to { transform: translateX(-100%); } }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-gate { width: 110vw; inset-inline-end: -30vw; opacity: .25; }
  .countdown-card { max-width: 460px; width: 100%; margin-inline: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: linear-gradient(175deg, var(--navy-900), var(--navy-950)); color: #fff; }
.section-navy .lead, .section-navy p { color: #d3dbef; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: .5em; font: 700 .82rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-head .kicker::after { content: ""; width: 26px; height: 2px; background: currentColor; }
:root[lang="ar"] .kicker { letter-spacing: 0; font-size: .95rem; }
.kicker-gold { color: var(--gold-300); }
.h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.center-h { text-align: center; margin: clamp(56px, 7vw, 80px) 0 32px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.prose p { color: var(--muted); font-size: 1.07rem; }
.section-navy .prose p { color: #d3dbef; }
.note { color: var(--muted); margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: .5em; }
.notice { padding: 18px 22px; border-radius: var(--radius); background: var(--gold-100); color: #5b420a; border: 1px solid var(--gold-400); text-align: center; font-weight: 600; }

.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { display: flex; gap: .6em; align-items: flex-start; }
.ticks .ic { color: var(--gold-ink); width: 1.1em; height: 1.1em; margin-top: .3em; }
.ticks-light li { color: #dbe2f3; }
.ticks-light .ic { color: var(--gold-400); }
.ticks-2col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 28px; margin: 22px 0 28px; }

/* Reveal */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Stats ---------- */
.stats-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { padding: 30px 16px; text-align: center; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat-num { font: 800 clamp(2.2rem, 4vw, 3rem)/1 'Montserrat', sans-serif; color: var(--navy-600); margin-bottom: 8px; direction: ltr; }
:root[data-theme="dark"] .stat-num, .a11y-contrast .stat-num { color: var(--gold-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat-num { color: var(--gold-300); } }
.stat-label { margin: 0; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .stat { border-inline-end: 0; border-bottom: 1px solid var(--line); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.arch-card { border-radius: 220px 220px var(--radius) var(--radius); }
.vision-card { position: relative; overflow: hidden; background: linear-gradient(170deg, var(--navy-700), var(--navy-900)); color: #fff; padding: 90px 34px 36px; text-align: center; box-shadow: var(--shadow); }
.vision-card h3 { color: var(--gold-300); display: flex; align-items: center; justify-content: center; gap: .4em; font-size: 1.3rem; }
.vision-card p { color: #dbe2f3; position: relative; }
.vision-mark { position: absolute; inset-inline-end: -40px; bottom: -40px; width: 260px; opacity: .1; pointer-events: none; }
.vision-slogan { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: 1.15rem; color: var(--gold-300) !important; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Pillars ---------- */
.pillars { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.pillar {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 160px 160px var(--radius) var(--radius);
  padding: 34px 22px 26px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-400); }
.pillar-num { position: absolute; top: 18px; inset-inline-end: 50%; transform: translateX(50%); font: 800 .8rem/1 'Montserrat', sans-serif; color: var(--gold-ink); letter-spacing: .1em; }
[dir="rtl"] .pillar-num { transform: translateX(-50%); }
.pillar-icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 18px auto 18px; border-radius: 50%; background: linear-gradient(145deg, var(--navy-500), var(--navy-700)); color: #fff; box-shadow: 0 0 0 6px var(--gold-100); }
.a11y-contrast .pillar-icon { background: #000; border: 2px solid #ffe14d; box-shadow: none; }
.pillar-icon .ic { width: 34px; height: 34px; }
.pillar h3 { font-size: 1.12rem; }
.pillar p { color: var(--muted); font-size: .96rem; }
.pillar .ticks { text-align: start; font-size: .92rem; border-top: 1px dashed var(--line); padding-top: 14px; }

/* ---------- Why partner / pathways ---------- */
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.why-list { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; color: #e8edf8; font-size: 1.04rem; }
.why-ic { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); }
.why-ic .ic { width: 16px; height: 16px; }
.edugate-card { background: var(--surface); color: var(--ink); padding: 84px 32px 32px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); text-align: center; }
.section-navy .edugate-card p { color: var(--muted); }
.edugate-logo { width: 90px; margin: 0 auto 12px; display: block; }
.edugate-card h3 { color: var(--navy-600); font-size: 1.3rem; }
:root[data-theme="dark"] .edugate-card h3, .a11y-contrast .edugate-card h3 { color: var(--gold-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .edugate-card h3 { color: var(--gold-300); } }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.pill-list li { display: inline-flex; align-items: center; gap: .4em; padding: .4em .85em; border-radius: 999px; background: var(--bg-alt); font-size: .88rem; font-weight: 600; }
.pill-list .ic { color: var(--gold-ink); width: 1.05em; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

.pathways { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.pathway {
  display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .14);
  transition: border-color .3s, transform .3s;
}
.pathway:hover { border-color: var(--gold-400); transform: translateY(-4px); }
.pathway-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(212, 175, 80, .15); color: var(--gold-300); margin-bottom: 10px; }
.pathway-icon .ic { width: 28px; height: 28px; }
.pathway h4 { font-size: 1.2rem; color: #fff; margin-bottom: 2px; }
.pathway-aud { display: flex; gap: .4em; align-items: flex-start; font-size: .88rem; color: var(--gold-300) !important; font-weight: 600; }
.pathway-aud .ic { margin-top: .3em; }
.pathway .ticks { margin-bottom: 20px; font-size: .94rem; }
.pathway .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Tiers (rising bars) ---------- */
.tiers { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
.tier { display: flex; flex-direction: column; }
.tier-rise {
  height: calc(var(--lvl) * 26px); margin-inline: 18%; border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, var(--gold-400), var(--navy-500)); opacity: .85;
}
.tier-body {
  flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 28px 22px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tier h3 { font-size: 1.25rem; margin: 0; }
.tier-price { font: 700 1.05rem/1.3 var(--font-display); color: var(--gold-ink); margin: 0; }
.tier-slots { display: inline-flex; align-self: flex-start; font-size: .82rem; font-weight: 700; padding: .25em .75em; border-radius: 999px; background: var(--ok-bg); color: var(--ok); margin: 0; }
.tier-slots.is-full { background: var(--danger-bg); color: var(--danger); }
.tier .ticks { font-size: .93rem; margin: 6px 0 18px; flex: 1; }
.tier--featured .tier-body { background: linear-gradient(170deg, var(--navy-700), var(--navy-900)); color: #fff; border-color: var(--gold-500); box-shadow: 0 30px 60px -30px rgba(11, 22, 51, .8); }
.tier--featured .tier-price { color: var(--gold-300); }
.tier--featured .ticks .ic { color: var(--gold-400); }
.tier--featured .tier-rise { background: linear-gradient(180deg, var(--gold-300), var(--gold-600)); opacity: 1; }
.tier-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: .35em; font-size: .8rem; font-weight: 700; background: var(--gold-500); color: var(--navy-950); border-radius: 999px; padding: .25em .8em; margin: 0; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .tiers { display: flex; flex-direction: column-reverse; }
  .tier-rise { display: none; }
}

/* ---------- Matchmaker & choice cards ---------- */
.mm { max-width: 960px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 52px); box-shadow: var(--shadow); }
.mm-head { text-align: center; margin-bottom: 26px; }
.mm fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.mm legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: .6em; }
.mm-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-600); color: #fff; font-size: .9rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice-grid--wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: .6em; min-height: 56px; height: 100%; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--surface-2); font-weight: 600; transition: border-color .2s, background .2s;
}
.choice span .ic { color: var(--gold-ink); }
.choice:hover span { border-color: var(--gold-400); }
.choice input:checked + span { border-color: var(--navy-600); background: var(--navy-100); color: var(--navy-900); box-shadow: inset 0 0 0 1px var(--navy-600); }
:root[data-theme="dark"] .choice input:checked + span { background: var(--navy-700); color: #fff; border-color: var(--gold-400); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .choice input:checked + span { background: var(--navy-700); color: #fff; border-color: var(--gold-400); } }
.a11y-contrast .choice input:checked + span { background: #ffe14d; color: #000; }
.choice input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
.mm-result { margin-top: 26px; padding: 24px; border-radius: 20px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; animation: fadeUp .4s; }
.mm-result h3 { color: var(--gold-300); font-size: 1.2rem; }
.mm-result dl { margin: 0 0 18px; display: grid; gap: 12px; }
.mm-result dt { font-size: .85rem; color: #b9c4e0; }
.mm-result dd { margin: 0; }
.mm-result dd strong { display: block; font-size: 1.15rem; }
.mm-result dd span { color: #d3dbef; font-size: .95rem; }
.mm-warn { margin: 0; color: var(--gold-300); font-weight: 600; }

/* ---------- Exposure phases ---------- */
.phases { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.phases::before { content: ""; position: absolute; top: 34px; inset-inline: 12%; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--navy-500), var(--gold-500)); border-radius: 3px; }
.phase { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px 24px; text-align: center; margin-top: 34px; box-shadow: var(--shadow-sm); }
.phase-dot { display: grid; place-items: center; width: 68px; height: 68px; margin: -34px auto 14px; border-radius: 50%; background: var(--navy-600); color: #fff; border: 5px solid var(--bg); position: relative; }
.phase-dot .ic { width: 28px; height: 28px; }
.phase-period { color: var(--gold-ink); font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.phase .ticks { text-align: start; font-size: .95rem; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } .phases::before { display: none; } }

/* ---------- Government ---------- */
.section-gov { background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(212, 175, 80, .14), transparent 60%), var(--bg); border-block: 1px solid var(--line); }
.gov-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.gov-emblem { aspect-ratio: 3 / 4; border-radius: 200px 200px 24px 24px; background: linear-gradient(170deg, var(--navy-600), var(--navy-900)); display: grid; place-items: center; color: var(--gold-300); position: relative; box-shadow: var(--shadow); }
.gov-emblem::after { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(243, 210, 122, .45); border-radius: 186px 186px 14px 14px; }
.gov-emblem .ic { width: 45%; height: auto; }
.logo-row { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.logo-row li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; display: grid; place-items: center; min-height: 72px; }
.logo-row img { max-height: 54px; width: auto; }
.logo-row span { color: #0f1a33; font-weight: 700; }
@media (max-width: 760px) { .gov-grid { grid-template-columns: 1fr; } .gov-emblem { width: 180px; margin-inline: auto; } }

/* ---------- Agenda ---------- */
.agenda { list-style: none; max-width: 880px; margin-inline: auto; position: relative; }
.agenda::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 163px; width: 2px; background: linear-gradient(var(--gold-500), var(--navy-500)); }
.agenda-item { display: grid; grid-template-columns: 128px 48px 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.agenda-time { margin: 0; font: 700 .98rem/1.3 'Montserrat', sans-serif; text-align: end; color: var(--navy-600); display: flex; justify-content: flex-end; gap: .25em; direction: ltr; }
[dir="rtl"] .agenda-time { justify-content: flex-start; }
:root[data-theme="dark"] .agenda-time, .a11y-contrast .agenda-time { color: var(--gold-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .agenda-time { color: var(--gold-300); } }
.agenda-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--navy-500); color: var(--navy-600); }
.agenda-dot .ic { width: 22px; height: 22px; }
.agenda-body { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.agenda-body h3 { font-size: 1.05rem; margin: 0 0 2px; font-family: var(--font-body); font-weight: 700; }
.agenda-dur { margin: 0; color: var(--muted); font-size: .88rem; }
.agenda-dur .hl { color: var(--gold-ink); }
.agenda-item.is-highlight .agenda-dot { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.agenda-item.is-highlight .agenda-body { border-color: var(--gold-400); background: linear-gradient(90deg, var(--gold-100), var(--surface)); }
:root[data-theme="dark"] .agenda-item.is-highlight .agenda-body { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .agenda-item.is-highlight .agenda-body { background: var(--surface-2); } }
.agenda-item.is-live .agenda-body { border: 2px solid var(--danger); }
.live-badge { display: inline-block; background: var(--danger); color: #fff; border-radius: 6px; padding: 0 .5em; font-size: .78rem; font-weight: 700; margin-inline-end: .5em; animation: pulse 1.6s infinite; }
@media (max-width: 620px) {
  .agenda::before { inset-inline-start: 23px; }
  .agenda-item { grid-template-columns: 48px 1fr; }
  .agenda-time { grid-column: 2; grid-row: 1; justify-content: flex-start !important; font-size: .9rem; }
  .agenda-dot { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .agenda-body { grid-column: 2; }
}

/* ---------- Prizes & smart academy ---------- */
.prizes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 32px; }
.prize { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; overflow: hidden; }
.prize::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(var(--gold-100), transparent 70%); }
.prize-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--gold-500); color: var(--navy-950); margin-bottom: 14px; }
.prize-icon .ic { width: 26px; height: 26px; }
.prize h3 { font-size: 1.1rem; }
.prize p { color: var(--muted); font-size: .95rem; }
.prize-sponsor { display: inline-flex !important; align-items: center; gap: .4em; font-size: .84rem; font-weight: 700; color: var(--ok) !important; background: var(--ok-bg); padding: .25em .75em; border-radius: 999px; margin: 0; }

.section-smart { background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(61, 99, 184, .5), transparent 60%), linear-gradient(170deg, var(--navy-800), var(--navy-950)); color: #fff; overflow: hidden; }
.section-smart .lead { color: #d3dbef; }
.smart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.smart-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smart-features li { display: flex; align-items: center; gap: .7em; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-weight: 500; }
.smart-features .ic { color: var(--gold-300); width: 1.5em; height: 1.5em; }
@media (max-width: 860px) { .smart-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .smart-features { grid-template-columns: 1fr; } }

/* ---------- Partners wall ---------- */
.wall-h { font-size: 1.05rem; color: var(--muted); text-align: center; margin: 28px 0 14px; font-family: var(--font-body); }
.wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.wall-item { min-height: 110px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; }
.wall-item > a, .wall-item > img, .wall-item > .wall-name { display: grid; place-items: center; padding: 16px; text-decoration: none; }
.wall-item img { max-height: 70px; width: auto; margin: auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.wall-item:hover img, .wall-item a:focus-visible img { filter: none; opacity: 1; }
.wall-name { color: #0f1a33; font-weight: 700; text-align: center; }
.wall--open { margin-top: 14px; }
.wall-item--open { background: transparent; border: 2px dashed var(--gold-400); }
.wall-item--open a { color: var(--gold-ink); font-weight: 700; gap: 6px; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; border-radius: 14px; }
.wall-item--open a:hover { background: var(--gold-100); color: #5b420a; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 980px; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.card-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 8px; padding: 22px 0 6px; }
.card-form fieldset:first-of-type { border-top: 0; padding-top: 4px; }
.card-form legend { display: flex; align-items: center; gap: .5em; font-weight: 700; font-size: 1.08rem; padding: 0; margin-bottom: 14px; color: var(--navy-600); }
:root[data-theme="dark"] .card-form legend, .a11y-contrast .card-form legend { color: var(--gold-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-form legend { color: var(--gold-300); } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field-full { grid-column: 1 / -1; }
.field { margin-bottom: 4px; }
.field > label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--danger); }
.req-note { color: var(--muted); font-size: .9rem; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 50px; padding: .7em .95em; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface-2); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring) 30%, transparent); }
[aria-invalid="true"], [role="radiogroup"][aria-invalid="true"] { border-color: var(--danger) !important; }
[role="radiogroup"][aria-invalid="true"] { border: 2px solid var(--danger); border-radius: 16px; padding: 6px; }
.field-error { margin: 6px 0 0; color: var(--danger); font-weight: 600; font-size: .9rem; display: flex; gap: .4em; align-items: center; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .75rem; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 22px; flex-wrap: wrap; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--navy-600); flex-shrink: 0; }
.check label { flex: 1; font-weight: 500; }
.check .field-error { flex-basis: 100%; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-alt { margin: 0; color: var(--muted); }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 16px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); }
.form-status.is-error { padding: 14px 16px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); }
/* Honeypot: clipped in place (an off-screen offset would create horizontal scroll in RTL). */
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.rsvp-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .rsvp-grid { grid-template-columns: 1fr; } }
.share { margin-top: 26px; }
.share-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.share-list a, .share-list button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--navy-600); }
.share-list a:hover, .share-list button:hover { background: var(--navy-600); color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { color: var(--gold-ink); transition: transform .3s; }
.faq details[open] .faq-ic { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 16px 22px 6px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-cards { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.contact-cards a, .contact-cards div { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.contact-cards a:hover { border-color: var(--gold-400); }
.contact-cards .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--navy-600); color: #fff; }
.contact-cards small { display: block; color: var(--muted); font-size: .82rem; }
.contact-cards b { display: block; word-break: break-word; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: #cfd7ea; padding-top: 90px; margin-top: 0; }
.footer-arch { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: min(520px, 80vw); height: 120px; border-radius: 300px 300px 0 0; border: 2px solid rgba(243, 210, 122, .35); border-bottom: 0; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-logo { width: 170px; background: #fff; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; }
.footer-h { font-size: 1.02rem; color: #fff; margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #e3e9f7; }
.site-footer a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: .6em; align-items: flex-start; }
.footer-contact .ic { color: var(--gold-400); margin-top: .25em; }
.muted-light { color: #b2bdd8; font-size: .94rem; }
.social { list-style: none; display: flex; gap: 8px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--gold-500); color: var(--navy-950); }
.newsletter { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input { flex: 1 1 180px; background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .25) !important; color: #fff !important; }
.newsletter input::placeholder { color: #9aa6c4; }
.newsletter .form-status { flex-basis: 100%; margin-top: 4px; }
.newsletter .form-status.is-ok { background: rgba(111, 219, 165, .12); color: #8ff0bf; }
.newsletter .form-status.is-error, .newsletter .field-error { color: #ffb4ab; background: transparent; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.fab { position: fixed; z-index: 700; inset-inline-end: 18px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; box-shadow: var(--shadow); text-decoration: none; }
.fab-wa { bottom: 18px; background: #1f9d55; color: #fff; }
.fab-wa .ic { width: 28px; height: 28px; }
.fab-top { bottom: 84px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); width: 46px; height: 46px; inset-inline-end: 22px; }

/* ---------- Accessibility modes ---------- */
.a11y-readable body { font-family: 'Atkinson Hyperlegible', 'IBM Plex Sans Arabic', Verdana, Tahoma, sans-serif; }
.a11y-readable h1, .a11y-readable h2, .a11y-readable h3, .a11y-readable h4 { font-family: 'Atkinson Hyperlegible', 'IBM Plex Sans Arabic', Verdana, sans-serif; }
:root.a11y-readable[lang="en"] body { letter-spacing: .03em; word-spacing: .1em; }
.a11y-spacing body { line-height: 2; }
.a11y-spacing p, .a11y-spacing li { margin-bottom: 1em; }
:root.a11y-spacing[lang="en"] body { letter-spacing: .12em; word-spacing: .16em; }
:root.a11y-spacing[lang="ar"] body { word-spacing: .2em; }
.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .22em; }
.a11y-links a:not(.btn) { background: rgba(255, 225, 77, .25); }
.a11y-contrast .section-navy, .a11y-contrast .hero, .a11y-contrast .section-smart, .a11y-contrast .vision-card, .a11y-contrast .tier--featured .tier-body,
.a11y-contrast .site-footer, .a11y-contrast .mm-result, .a11y-contrast .gov-emblem, .a11y-contrast .edugate-card { background: #000 !important; border: 2px solid #fff; }
.a11y-contrast .hero-gate, .a11y-contrast .orb, .a11y-contrast .hero::before { display: none; }
.a11y-contrast .wall-item, .a11y-contrast .logo-row li { background: #fff; }
.a11y-contrast * { text-shadow: none !important; }

.a11y-motion *, .a11y-motion *::before, .a11y-motion *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-motion .ticker-track { animation: none !important; }
.a11y-motion .ticker { overflow-x: auto; }
html.a11y-motion { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none !important; }
  .ticker { overflow-x: auto; }
  .splash-progress span { animation-duration: 5s !important; }
}
.a11y-motion .splash-progress span { animation-duration: 5s !important; }

@media (forced-colors: active) {
  .btn, .tool-btn, .choice span, .card-form, .pillar, .tier-body { border: 1px solid CanvasText; }
  .ht-big { color: CanvasText; background: none; }
}

/* ---------- Prospectus (print deck) ---------- */
.prospectus-body { background: #e6e2d6; }
.px-toolbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px; background: rgba(247, 245, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.px { padding: 24px 12px 60px; }
.px-page { max-width: 210mm; margin: 0 auto 24px; background: #fff; color: #0f1a33; padding: clamp(24px, 6vw, 18mm); border-radius: 6px; box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .35); }
.px-page h2 { color: #29468a; font-size: 1.6rem; border-bottom: 3px solid #d4af50; padding-bottom: 8px; margin: 0 0 16px; }
.px-page h2:not(:first-child) { margin-top: 28px; }
.px-page h3 { color: #12224a; font-size: 1.1rem; margin-top: 18px; display: flex; gap: .4em; align-items: center; }
.px-page h3 .ic { color: #b8892a; }
.px-page p { color: #333d55; }
.px-cover { background: linear-gradient(170deg, #12224a, #070f24); color: #fff; text-align: center; min-height: 260mm; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.px-cover::before { content: ""; position: absolute; width: 70%; aspect-ratio: 3 / 4; border: 2px solid rgba(243, 210, 122, .5); border-bottom: 0; border-radius: 999px 999px 0 0; bottom: -10%; }
.px-cover > * { position: relative; }
.px-logo { width: 220px; background: #fff; padding: 14px 18px; border-radius: 16px; margin-bottom: 30px; }
.px-kicker { letter-spacing: .3em; color: #f3d27a !important; font-weight: 700; text-transform: uppercase; }
.px-cover h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: #fff; }
.px-tag { font-size: 1.25rem; color: #f3d27a !important; font-weight: 700; max-width: 30ch; }
.px-slogan { color: #d3dbef !important; }
.px-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; margin-top: 18px; }
.px-meta li { display: flex; gap: .5em; align-items: center; }
.px-cover .px-meta .ic { color: #f3d27a; }
.px-meta--contact { justify-content: flex-start; flex-direction: column; gap: 12px; font-size: 1.1rem; }
.px-meta--contact .ic { color: #b8892a; }
.px-list { padding-inline-start: 1.3em; display: grid; gap: 8px; color: #333d55; }
.px-ticks { list-style: none; display: grid; gap: 6px; }
.px-ticks li { display: flex; gap: .5em; align-items: flex-start; color: #333d55; }
.px-ticks .ic { color: #b8892a; margin-top: .3em; width: 1em; height: 1em; }
.px-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.px-chips li { padding: .3em .8em; border-radius: 999px; background: #f8efd7; color: #5b420a; font-weight: 600; font-size: .9rem; }
.px-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.px-grid--3 { grid-template-columns: repeat(3, 1fr); }
.px-card { border: 1px solid #ded8c8; border-radius: 12px; padding: 16px; break-inside: avoid; }
.px-card h3 { margin-top: 0; }
.px-card--featured { border: 2px solid #d4af50; background: #fffbf0; }
.px-aud { color: #8a6410 !important; font-weight: 700; font-size: .9rem; }
.px-note { font-size: .9rem; font-style: italic; margin-top: 14px; }
.px-contact { border-top: 8px solid #d4af50; }
@media (max-width: 700px) { .px-grid, .px-grid--3 { grid-template-columns: 1fr; } .px-cover { min-height: 70vh; } }

/* ---------- Print ---------- */
@media print {
  @page { size: A4; margin: 0; }
  .site-header, .announce, .splash, .fab, .a11y-panel, .toast-region, .px-toolbar, .skip-link, .ticker { display: none !important; }
  body, .prospectus-body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .px { padding: 0; }
  .px-page { box-shadow: none; border-radius: 0; margin: 0; max-width: none; min-height: 297mm; padding: 16mm; page-break-after: always; break-after: page; }
  .px-page:last-child { page-break-after: auto; }
  .px-cover { min-height: 297mm; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}
