/* ---------- Tajawal (brand typeface), self-hosted ---------- */
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 300; src: url(/fonts/tajawal-arabic-300-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-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-display: swap; font-weight: 400; 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+0897-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-display: swap; font-weight: 500; 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+0897-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-display: swap; font-weight: 700; 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+0897-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-display: swap; font-weight: 800; 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+0897-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-display: swap; font-weight: 900; src: url(/fonts/tajawal-arabic-900-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-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-display: swap; font-weight: 300; src: url(/fonts/tajawal-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/tajawal-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/tajawal-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/tajawal-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/tajawal-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 900; src: url(/fonts/tajawal-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- tokens (brand book palette) ---------- */
:root {
  --red: #EE1C25;
  --yellow: #FFCD00;
  --blue: #0214AE;
  --blue-glow: #3b56ff;
  --paper: #f5f0e8;
  --muted: rgba(245, 240, 232, 0.66);
  --line: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(16px, 3vw, 44px);
  --focus-y: 33%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #000; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  color: var(--paper);
  background: #000;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }

/* ---------- layers ---------- */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.fallback { display: none; position: fixed; inset: 0; z-index: 0; background: #000 url(/assets/fallback.jpg) center / cover no-repeat; }
.fallback::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, rgba(0,0,0,.6)); }
.no-webgl .fallback { display: block; }
.no-webgl #stage, .no-webgl .loader, .no-webgl .skip { display: none; }

.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.6) 24%, rgba(0,0,0,.18) 46%, rgba(0,0,0,0) 58%),
    linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 17%);
  opacity: 0; transition: opacity 2s var(--ease);
}
.is-revealed .scrim { opacity: 1; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-content: center; justify-items: center; gap: 20px;
  background: #000;
  transition: opacity 1.1s var(--ease) .15s, visibility 0s linear 1.3s;
}
.is-ready .loader { opacity: 0; visibility: hidden; }
.loader__mark { width: 58px; height: auto; animation: breathe 2.2s ease-in-out infinite; }
.loader__text { font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.loader__bar { width: 170px; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: linear-gradient(270deg, var(--red), var(--yellow), var(--blue-glow)); transform-origin: right center; transform: scaleX(.05); transition: transform .7s var(--ease); }
@keyframes breathe { 50% { transform: scale(.94); opacity: .7; } }

/* ---------- intro caption on the closed curtain ---------- */
.caption {
  position: fixed; inset-inline: 0; top: var(--focus-y); z-index: 6;
  transform: translateY(-50%);
  display: grid; justify-items: center; gap: 6px; text-align: center;
  pointer-events: none; opacity: 0; filter: blur(6px);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.show-caption .caption { opacity: 1; filter: none; }
.caption__name { font-size: clamp(36px, 5vw, 66px); font-weight: 800; color: #fff; text-shadow: 0 8px 40px rgba(0,0,0,.7); }
.caption__sub { font-size: clamp(15px, 1.5vw, 21px); font-weight: 500; color: var(--yellow); letter-spacing: .12em; }

/* ---------- page grid ---------- */
.page {
  position: relative; z-index: 4;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: var(--pad) var(--pad) 0;
}
.brand img { height: clamp(58px, 7.4vw, 92px); width: auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); }
.top__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
  padding: 9px 16px; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top__meta strong { color: #fff; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(238,28,37,.65); } 70% { box-shadow: 0 0 0 10px rgba(238,28,37,0); } 100% { box-shadow: 0 0 0 0 rgba(238,28,37,0); } }

/* ---------- hero ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 0 var(--pad) clamp(14px, 2.4vh, 28px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  direction: ltr;
  font-weight: 700; font-size: 13px; letter-spacing: .55em; color: var(--yellow);
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.eyebrow span { margin-right: -.55em; }
.eyebrow::before, .eyebrow::after { content: ''; width: 46px; height: 2px; background: linear-gradient(90deg, var(--red), var(--yellow) 50%, var(--blue-glow)); }

.title {
  position: relative; z-index: 0;
  margin-top: .06em;
  font-weight: 900;
  font-size: clamp(72px, 10.2vw, 156px);
  line-height: 1.02;
  opacity: 0;
  clip-path: inset(0 50% 0 50%);
  filter: blur(10px);
}
.is-revealed .title { animation: curtainText 1.8s var(--ease) .1s forwards; }
@keyframes curtainText { to { opacity: 1; clip-path: inset(-20% -5% -20% -5%); filter: none; } }
.title__text {
  position: relative; display: inline-block;
  padding: 0 .08em;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f7f1e6 50%, #b8aa92 100%);
  -webkit-background-clip: text; background-clip: text;
}
.title__text::before {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: -1; padding: 0 .08em;
  color: rgba(0,0,0,.75);
  transform: translateY(.06em);
  filter: blur(.12em);
}
.title__text::after {
  content: attr(data-text);
  position: absolute; inset: 0; padding: 0 .08em;
  color: transparent;
  background: linear-gradient(105deg, transparent 38%, rgba(255,226,160,.95) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 130% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: sheen 7s var(--ease) 3s infinite;
}
@keyframes sheen { 0% { background-position: 130% 0; } 40%, 100% { background-position: -30% 0; } }

.lead {
  max-width: 62ch;
  margin-top: clamp(4px, 1vh, 12px);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.75;
  color: rgba(245, 240, 232, .84);
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
  text-wrap: balance;
}

/* ---------- glass panel: countdown + notify ---------- */
.panel {
  display: flex; align-items: stretch; gap: clamp(16px, 2.2vw, 30px);
  margin-top: clamp(16px, 2.8vh, 30px);
  padding: 16px;
  border-radius: 22px;
  background: rgba(8, 8, 10, .5);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 30px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}
.countdown { display: flex; flex-direction: column; gap: 10px; }
.countdown__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.countdown__label time { color: #fff; font-weight: 700; }
.countdown__note { color: var(--yellow); }
.sep { opacity: .5; margin: 0 2px; }
.countdown__units { display: flex; gap: 8px; }
.unit {
  position: relative; overflow: hidden;
  min-width: 82px;
  padding: 12px 8px 9px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
}
.unit::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.unit__num { display: block; font-weight: 800; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.unit__lbl { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.unit.tick .unit__num { animation: tick .55s var(--ease); }
@keyframes tick { from { transform: translateY(-35%); opacity: 0; filter: blur(3px); } }

.notify { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: min(390px, 100%); text-align: start; }
.notify__label { font-size: 14px; font-weight: 500; color: rgba(245,240,232,.82); }
.notify__field {
  display: flex; align-items: center;
  padding: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.14);
  transition: border-color .3s, box-shadow .3s;
}
.notify__field:focus-within { border-color: rgba(255,205,0,.75); box-shadow: 0 0 0 4px rgba(255,205,0,.12); }
.notify input[type="email"] {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: #fff; font: inherit; font-size: 16px;
  padding: 0 16px; height: 44px;
}
.notify input[type="email"]:placeholder-shown { direction: rtl; }
.notify input::placeholder { color: rgba(255,255,255,.42); }
.notify button {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--yellow); color: #000;
  font: inherit; font-weight: 800; font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255,205,0,.25);
  transition: transform .2s var(--ease), box-shadow .3s, background .3s;
}
.notify button:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(255,205,0,.42); }
.notify button:active { transform: translateY(1px); }
.notify button:disabled { opacity: .6; cursor: progress; }
.notify button:focus-visible, .brand:focus-visible, .skip:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.notify__msg { min-height: 1.25em; font-size: 13px; color: var(--muted); }
.notify[data-state="done"] .notify__msg { color: var(--yellow); }
.notify[data-state="error"] .notify__msg { color: #ff7a80; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- footer ---------- */
.bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 0 var(--pad) calc(var(--pad) * .8);
  font-size: 13px; color: var(--muted);
}
.pillars { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.pillars li { display: flex; align-items: center; gap: 9px; }
.pillars li::before { content: ''; width: 10px; height: 10px; flex-shrink: 0; }
.p-art::before { background: var(--red); }
.p-learn::before { background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.p-memory::before { background: var(--blue-glow); border-radius: 50%; }
.slogan { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.place { display: flex; align-items: center; gap: 8px; font-style: normal; }

/* ---------- skip ---------- */
.skip {
  position: fixed; bottom: 20px; left: 20px; z-index: 8;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.16);
  font: inherit; font-size: 13px; cursor: pointer;
  opacity: 0; transition: opacity .6s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.is-ready .skip { opacity: 1; }
.is-revealed .skip { opacity: 0; pointer-events: none; }

/* ---------- reveal choreography ---------- */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(8px); }
.panel.reveal { filter: none; }
.is-revealed .reveal { animation: rise 1.25s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
.is-revealed .panel.reveal { animation-name: risePanel; }
@keyframes risePanel { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .panel { flex-direction: column; align-items: center; }
  .notify { width: 100%; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .brand img { height: 56px; }
  .top__meta { font-size: 12px; padding: 7px 12px; gap: 8px; }
  .eyebrow { font-size: 11px; letter-spacing: .45em; gap: 12px; }
  .eyebrow span { margin-right: -.45em; }
  .eyebrow::before, .eyebrow::after { width: 28px; }
  .title { font-size: clamp(64px, 21vw, 104px); }
  .lead { font-size: 15px; line-height: 1.7; max-width: 32ch; }
  .panel { width: 100%; padding: 14px; gap: 16px; border-radius: 20px; }
  .countdown { width: 100%; align-items: center; }
  .countdown__label { font-size: 12px; line-height: 1.6; }
  .hero { padding-top: 34svh; }
  .countdown__units { width: 100%; gap: 6px; }
  .unit { flex: 1; min-width: 0; padding: 10px 4px 8px; }
  .unit__num { font-size: 28px; }
  .unit__lbl { font-size: 12px; }
  .notify { min-width: 0; text-align: center; }
  .notify input[type="email"] { padding: 0 12px; }
  .notify button { padding: 0 16px; }
  .bottom { flex-direction: column; justify-content: center; gap: 10px; text-align: center; padding-top: 18px; }
  .pillars { justify-content: center; gap: 14px; font-size: 12px; }
  .skip { left: 50%; transform: translateX(-50%); bottom: 16px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .title { font-size: clamp(64px, 8.4vw, 124px); }
  .lead { line-height: 1.6; }
  .unit__num { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .title__text::after { display: none; }
}
