@font-face{font-family:'TomAR';src:url('assets/fonts/cairo-var.woff2') format('woff2');font-weight:400 900;font-style:normal;font-display:swap}
/* hero-v2 styles, scoped under .stage for the combined page */
:root{
  --ink:#080b14;
  --ink-2:#0b101d;
  --paper:#eef1f7;
  --amber:#f2a01f;
  --amber-soft:#ffbe5c;
  --muted:#b9c2d4;
  --line:rgba(160,178,206,.13);
  --fx:33%;
  --shade-w:132px;
  --feet:7.5vh;
}*{box-sizing:border-box}html, body{height:100%}html{-webkit-text-size-adjust:100%}body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:'TomAR','Noto Sans Arabic','Segoe UI',system-ui,sans-serif;
  overflow:hidden;
}.stage{
  position:relative;
  width:100%;
  height:100vh;
  height:100dvh;
  overflow:hidden;
  background:
    radial-gradient(120% 90% at var(--fx) 78%, #131a2a 0%, #0b101d 42%, #080b14 78%);
}/* ---------- backdrop ---------- */
.stage .grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size:158px 158px;
  opacity:.8;
  -webkit-mask-image:radial-gradient(110% 100% at 40% 45%, #000 30%, rgba(0,0,0,.35) 75%, transparent 100%);
  mask-image:radial-gradient(110% 100% at 40% 45%, #000 30%, rgba(0,0,0,.35) 75%, transparent 100%);
}.stage .ambient{
  position:absolute; left:var(--fx); top:60%;
  width:74vw; height:74vw; max-width:1000px; max-height:1000px;
  transform:translate(-50%,-50%);
  background:radial-gradient(closest-side, rgba(255,172,72,.16), rgba(255,150,50,.06) 46%, transparent 74%);
  pointer-events:none;
  opacity:.5;
  transition:opacity 2.4s ease;
}.stage.lit .ambient{opacity:1}/* ---------- header ---------- */
.stage .topbar{
  position:absolute; top:0; left:0; right:0; height:76px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 54px; direction:ltr;
  z-index:6;
}.stage .topbar::after{
  content:''; position:absolute; left:54px; right:54px; bottom:0; height:1px;
  background:linear-gradient(to left, rgba(190,205,228,.16), rgba(190,205,228,.06) 45%, transparent 92%);
}.stage .mark{
  text-decoration:none; font-family:'TomAR',sans-serif;
  font-weight:900; font-size:21px; letter-spacing:.06em; direction:ltr;
  color:var(--paper);
}.stage .mark-b{color:var(--amber)}.stage .talk{
  display:inline-flex; align-items:center; gap:9px; direction:rtl;
  text-decoration:none; color:var(--paper);
  font-size:15px; font-weight:500; letter-spacing:.01em;
  opacity:.92;
}.stage .talk-dot{
  width:6px; height:6px; border-radius:50%; background:var(--amber);
  box-shadow:0 0 10px rgba(242,160,31,.8);
}/* ---------- vertical index ---------- */
.stage .index{
  position:absolute; left:40px; top:50%; transform:translateY(-58%);
  display:flex; flex-direction:column; align-items:center; gap:16px;
  z-index:5;
}.stage .index-num{
  writing-mode:vertical-rl; transform:rotate(180deg);
  font-size:13px; letter-spacing:.3em; color:rgba(206,216,234,.8);
  font-weight:500;
}.stage .index-line{display:block; width:1px; height:74px; background:rgba(190,205,228,.16); position:relative}.stage .index-line i{position:absolute; left:0; bottom:0; width:1px; height:22px; background:var(--amber); opacity:.85}/* ---------- lamp ---------- */
.stage .lamp{position:absolute; left:var(--fx); top:-14px; transform:translateX(-50%); width:1px; z-index:1}.stage .lamp-cord{position:absolute; left:-.5px; top:0; width:1px; height:40px; background:rgba(150,165,190,.26)}.stage .lamp-shade{
  position:absolute; left:calc(var(--shade-w) / -2); top:24px;
  width:var(--shade-w); height:42px;
  border-radius:var(--shade-w) var(--shade-w) 10px 10px / 54px 54px 8px 8px;
  background:linear-gradient(180deg,#232b3d 0%,#121827 55%,#0b1019 100%);
  box-shadow:inset 0 1px 0 rgba(200,214,238,.14), 0 16px 30px rgba(0,0,0,.6);
}.stage .lamp-glow{
  position:absolute; left:50%; top:60px; transform:translateX(-50%);
  width:calc(var(--shade-w) - 26px); height:16px; border-radius:50%;
  background:radial-gradient(closest-side, #fff8e2 0%, #ffe0a6 38%, #ffc268 66%, rgba(255,170,80,.35) 86%, rgba(255,170,80,0) 100%);
  box-shadow:0 0 40px 10px rgba(255,186,96,.32), 0 0 84px 26px rgba(255,170,70,.14);
  filter:brightness(.28) blur(.4px);
  transition:filter 2.2s cubic-bezier(.33,.05,.2,1);
}.stage.lit .lamp-glow{filter:brightness(1)}.stage .lamp-cone{
  position:absolute; left:calc(min(880px,52vw) / -2); top:62px;
  width:min(880px,52vw); height:calc(95vh - 50px);
  clip-path:polygon(43% 0%, 57% 0%, 100% 100%, 0% 100%);
  background:linear-gradient(180deg,
    rgba(255,222,168,.46) 0%,
    rgba(255,199,118,.30) 14%,
    rgba(255,183,96,.15) 40%,
    rgba(255,176,88,.05) 62%,
    rgba(255,170,80,0) 86%);
  -webkit-mask-image:linear-gradient(to right, transparent 0%, #000 26%, #000 74%, transparent 100%);
  mask-image:linear-gradient(to right, transparent 0%, #000 26%, #000 74%, transparent 100%);
  filter:blur(26px);
  transform-origin:50% 0;
  transform:scaleY(.05);
  opacity:0;
  transition:opacity 2.0s cubic-bezier(.33,.05,.2,1), transform 2.8s cubic-bezier(.33,.05,.2,1);
  pointer-events:none;
}.stage.lit .lamp-cone{opacity:1; transform:scaleY(1)}.stage .lamp-pool{
  position:absolute; left:var(--fx); bottom:calc(var(--feet) - 46px); transform:translateX(-50%) scale(.6);
  width:min(560px,42vw); height:92px; border-radius:50%;
  background:radial-gradient(closest-side, rgba(255,214,150,.92) 0%, rgba(255,190,104,.60) 26%, rgba(255,168,72,.28) 52%, rgba(255,150,50,.08) 72%, rgba(255,150,50,0) 100%);
  filter:blur(11px);
  opacity:0;
  transition:opacity 2.4s cubic-bezier(.33,.05,.2,1) .3s, transform 2.8s cubic-bezier(.33,.05,.2,1) .3s;
  pointer-events:none;
}.stage.lit .lamp-pool{opacity:1; transform:translateX(-50%) scale(1)}/* ---------- contact shadow ---------- */
.stage .foot-shadow{
  position:absolute; left:var(--fx); bottom:calc(var(--feet) - 15px);
  width:min(250px,19vw); height:26px; border-radius:50%;
  transform:translateX(-50%);
  background:radial-gradient(closest-side, rgba(4,6,12,.62), rgba(4,6,12,.28) 55%, rgba(4,6,12,0) 78%);
  filter:blur(7px); z-index:2; pointer-events:none;
}/* ---------- figure ---------- */
.stage .figure{
  position:absolute; left:var(--fx); bottom:calc(5vh - 8px);
  height:85vh; aspect-ratio:507 / 1398;
  transform:translateX(-50%);
  z-index:2;
  filter:brightness(.50) saturate(.9);
  transition:filter 2.4s cubic-bezier(.33,.05,.2,1);
  will-change:filter;
}.stage.lit .figure{filter:brightness(1.04) saturate(1.04)}
.stage .figure-breathe{position:absolute; inset:0; transform-origin:50% 100%; animation:breathe 5.6s ease-in-out infinite}.stage .figure-sway{position:absolute; inset:0; transform-origin:50% 100%; animation:sway 9.5s ease-in-out infinite}.stage .frame{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; -webkit-user-drag:none; user-select:none}.stage .frame.fa{opacity:1}.stage .rig{position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none}.stage .blink{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transition:opacity .07s linear; pointer-events:none}

@keyframes breathe{
  0%,100%{transform:scaleY(1) translateY(0)}
  50%{transform:scaleY(1.008) translateY(-2px)}
}
@keyframes sway{
  0%,100%{transform:rotate(-.13deg)}
  50%{transform:rotate(.13deg)}
}/* ---------- copy ---------- */
.stage .copy{
  position:absolute; right:5.2%; top:50%; transform:translateY(-52%);
  width:60%; max-width:900px;
  text-align:right; z-index:5;
}.stage .headline{
  margin:0; font-weight:900; font-size:clamp(40px,6.2vw,112px);
  line-height:1.24; letter-spacing:-.005em;
}.stage .headline span{display:block}.stage .l1{color:var(--paper)}.stage .l2{color:var(--amber); margin-top:.06em}.stage .sub{
  margin:32px 0 0; font-size:clamp(15px,1.8vw,27px); font-weight:700;
  color:#eef1f7; opacity:.95; letter-spacing:.01em;
}.stage .cta{
  display:inline-flex; align-items:center; gap:10px;
  margin-top:56px; padding-bottom:9px;
  text-decoration:none; color:var(--paper);
  font-size:clamp(16px,1.7vw,26px); font-weight:700;
  border-bottom:1px solid rgba(238,241,247,.72);
  transition:border-color .3s ease, color .3s ease;
}.stage .cta-chev{color:var(--amber); font-size:1.15em; line-height:1; transform:translateY(-.06em); unicode-bidi:isolate; direction:ltr}.stage .cta:hover{border-color:var(--amber); color:#fff}/* ---------- scroll cue (mobile only) ---------- */
.stage .scrollcue{display:none}/* ---------- skyline ---------- */
.stage .skyline{
  position:absolute; right:2.4%; bottom:1.6%;
  width:42%; max-width:600px; height:26vh;
  color:rgba(158,176,204,.72);
  opacity:.44; z-index:1; pointer-events:none;
}/* ---------- mobile ---------- */


/* ---------- mobile ---------- */
@media (max-width:820px){:root{--fx:50%; --shade-w:84px; --feet:60.4vh}.stage .topbar{height:60px; padding:0 20px}.stage .topbar::after{left:20px; right:20px}.stage .mark{font-size:17px}.stage .talk{font-size:13px}.stage .index{left:10px; top:38%; gap:9px}.stage .index-num{font-size:11px; letter-spacing:.24em}.stage .index-line{height:38px}.stage .lamp{top:calc(10vh - 14px)}.stage .lamp-shade{top:16px; height:30px}.stage .lamp-cord{height:18px}.stage .lamp-glow{top:44px; height:12px}.stage .lamp-cone{left:-50vw; top:46px; width:100vw; height:calc(60.4vh - 44px); filter:blur(16px)}.stage .lamp-pool{bottom:calc(var(--feet) - 34px); width:min(350px,86vw); height:56px; filter:blur(10px)}.stage .figure{bottom:auto; top:16vh; height:46vh}.stage .copy{right:auto; left:0; width:100%; top:62.5vh; bottom:auto; transform:none; text-align:center; padding:0 22px}.stage .headline{font-size:clamp(30px,9.6vw,48px); line-height:1.2}.stage .l2{margin-top:.08em}.stage .sub{margin-top:16px; font-size:13.5px; font-weight:500}.stage .cta{margin-top:18px; font-size:15px; padding-bottom:7px}.stage .skyline{display:none}.stage .foot-shadow{bottom:calc(var(--feet) - 8px); width:min(150px,40vw); height:16px}.stage .scrollcue{
    position:absolute; left:50%; bottom:5.5vh; transform:translateX(-50%);
    width:26px; height:26px; display:block;
  }.stage .scrollcue::before, .stage .scrollcue::after{
    content:''; position:absolute; left:50%; width:9px; height:9px;
    border-right:1.5px solid rgba(214,223,238,.55); border-bottom:1.5px solid rgba(214,223,238,.55);
    transform:translateX(-50%) rotate(45deg);
  }.stage .scrollcue::before{top:2px; opacity:.9}.stage .scrollcue::after{top:9px; opacity:.35}
}

@media (max-height:560px) and (min-width:821px){.stage .figure{height:72vh}.stage .headline{font-size:clamp(38px,5.6vw,72px)}.stage .copy{top:48%}
}
}

@media (prefers-reduced-motion:reduce){.stage .figure-breathe, .stage .figure-sway{animation:none}.stage .blink{display:none}.stage .lamp-cone, .stage .lamp-pool, .stage .lamp-mouth, .stage .figure, .stage .ambient{transition:none}
}/* ---------- drawn-frame loop (hero-v2) ---------- */
.stage .loop{position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; -webkit-user-drag:none; user-select:none}

/* ---------- hero motion v2: hand-written, no library ---------- */
.stage .motes{position:absolute; left:0; top:0; width:100%; height:100%; z-index:1; pointer-events:none}
.stage .headline .l1, .stage .headline .l2{display:block; overflow:hidden; padding-top:.14em; margin-top:-.14em; padding-bottom:.10em; margin-bottom:-.10em}
.stage .headline i{display:block; font-style:normal; transform:translateY(108%); opacity:0; transition:transform 1.1s cubic-bezier(.16,.84,.24,1), opacity .7s ease}
.stage.lit .headline i{transform:none; opacity:1}
.stage.lit .headline .l1 i{transition-delay:.22s}
.stage.lit .headline .l2 i{transition-delay:.40s}
.stage .lamp-glow{animation:lamp-flicker 9.5s ease-in-out infinite}
@keyframes lamp-flicker{0%,100%{opacity:.92}38%{opacity:1}52%{opacity:.86}64%{opacity:.97}}
@media (prefers-reduced-motion: reduce){
  .stage .headline i{transform:none !important; opacity:1 !important; transition:none !important}
  .stage .lamp-glow{animation:none}
}

/* intro merge: snap-light the rig with no transitions at the handoff */
.stage.snap .lamp-cone, .stage.snap .lamp-pool, .stage.snap .lamp-glow,
.stage.snap .figure, .stage.snap .ambient { transition:none !important; }

/* AR desktop: keep the subtitle clear of the character (wrap before --fx) */
@media (min-width:821px){
  html[dir="rtl"] .stage .sub{ max-width:48vw; margin-left:auto; margin-right:0 }
}
