/* Hilal motion module: hero.
   The app icon comes alive. hero.js rebuilds the scene into layers and splits the headline;
   this file holds every state and every timed animation. The script only adds classes
   (hx-on, is-dawn, is-go, hx-done, hx-away, is-now, is-preview) and writes transforms for
   depth and scroll.

   Layers inside #scene after hero.js has run:
     .hx-l--sea   > .scene__sea, .hx-water (> .hx-glow, .hx-sweep, .hx-glitter)
     .hx-tilt     > .hx-l--arch  > .hx-f > .hx-archbox > .hx-shade, .hx-veil, .scene__arch, .hx-glint, .hx-spec
                  > .hx-l--moon  > .hx-f > .hx-arc     > .hx-halo, .scene__moon, .hx-ring
                  > .hx-l--phone > .hx-f > .hero__phone (+ .hx-day, .hx-sheen)
   .hx-l is moved by the script (depth, scroll), .hx-f floats, the innermost piece carries the
   entrance.

   Entrances: a part (.hero__copy, .scene, .day) is hidden until it gets .is-go, plays its
   entrance while it has .is-go without .hx-done, and is at rest with .hx-done. Entrances fill
   backwards only, so the resting state is always the core's own layout, and adding .hx-done
   at any moment lands on it. Only transform and opacity are animated.
   Every rule is scoped under .m-hero; keyframes are prefixed m-hero-. */

/* ---------- 0. Take over from the core ---------- */
/* The sea is wider than a phone screen; keep it from widening the page. */
.m-hero .hero{overflow-x:clip}
.m-hero .hero .intro{opacity:1;transform:none;animation:none}
.m-hero .hero .hero__phone{opacity:1;animation:none}
/* Nothing shows until hero.js has rebuilt the hero (the core drops m-hero if it never does). */
.m-hero .hero:not(.hx-on) .hero__copy > *,
.m-hero .hero:not(.hx-on) .scene > *,
.m-hero .hero:not(.hx-on) .day{opacity:0}

@keyframes m-hero-fade{from{opacity:0}}
@keyframes m-hero-rise{from{opacity:0;transform:translate3d(0,18px,0)}}
@keyframes m-hero-in-x{from{opacity:0;transform:translate3d(-10px,0,0)}}
@keyframes m-hero-draw{from{transform:scaleX(0)}}
@keyframes m-hero-pop{from{opacity:0;transform:translate3d(0,16px,0) scale(.94)}}
@keyframes m-hero-dot{from{transform:scale(0)}}

/* ---------- 1. The copy ---------- */
.m-hero .hero__copy:not(.is-go) .eyebrow > *,
.m-hero .hero__copy:not(.is-go) .hx-w__i,
.m-hero .hero__copy:not(.is-go) .hero__lede,
.m-hero .hero__copy:not(.is-go) .hero__cta > *,
.m-hero .hero__copy:not(.is-go) .hero__facts li{opacity:0}

/* Eyebrow: the name, then its rule draws, then the line of text. */
.m-hero .hero .eyebrow i{transform-origin:0 50%}
.m-hero .hero__copy.is-go:not(.hx-done) .eyebrow b{animation:m-hero-rise .9s var(--ease) backwards}
.m-hero .hero__copy.is-go:not(.hx-done) .eyebrow i{animation:m-hero-draw .8s var(--ease-io) .12s backwards}
.m-hero .hero__copy.is-go:not(.hx-done) .eyebrow .hx-eb{animation:m-hero-in-x .9s var(--ease) .3s backwards}

/* Headline: each word rises through its own mask. clip-path keeps the baseline where it was;
   the negative insets leave room for descenders and the italic's overhang. */
.m-hero .hero h1 .hx-w{display:inline-block;clip-path:inset(-.16em -.3em -.3em -.3em)}
.m-hero .hero h1 .hx-w__i{display:inline-block;transform-origin:0 100%}
.m-hero .hero__copy.is-go:not(.hx-done) .hx-w__i{animation:m-hero-word 1.15s var(--ease) calc(.08s + var(--i,0) * 80ms) backwards}
@keyframes m-hero-word{from{transform:translate3d(0,1.36em,0) rotate(7deg)}}
/* A slow highlight through the italic line. .hx-shine__t is a bright copy of the line lying
   exactly over it; .hx-shine__w is a soft-edged window. The window slides one way and the copy
   the same distance the other way, so the copy never moves on the page and only the band of
   light does. Two transforms: nothing is painted again while it passes. */
.m-hero .hero h1{--hx-shine:#FFFDF2}
.m-hero[data-phase="dhuhr"] .hero h1,.m-hero[data-phase="asr"] .hero h1{--hx-shine:#A9B2FF}
.m-hero .hero h1 .serif{position:relative}
.m-hero .hero h1 .hx-shine{position:absolute;left:-.4em;right:-.4em;top:-.2em;bottom:-.2em;pointer-events:none;
  -webkit-user-select:none;user-select:none}
.m-hero .hero h1 .hx-shine__w,.m-hero .hero h1 .hx-shine__t{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.m-hero .hero h1 .hx-shine__w{transform:translate3d(-72%,0,0);
  -webkit-mask-image:linear-gradient(100deg,transparent 30%,#000 45%,#000 55%,transparent 70%);
  mask-image:linear-gradient(100deg,transparent 30%,#000 45%,#000 55%,transparent 70%)}
.m-hero .hero h1 .hx-shine__t{padding:.2em .4em;color:var(--hx-shine);transform:translate3d(72%,0,0)}
.m-hero .hero__copy.is-go .hx-shine__w{animation:m-hero-shine-w-loop 13s var(--ease-io) 9s infinite}
.m-hero .hero__copy.is-go .hx-shine__t{animation:m-hero-shine-t-loop 13s var(--ease-io) 9s infinite}
.m-hero .hero__copy.is-go:not(.hx-done) .hx-shine__w{animation:m-hero-shine-w 1.9s var(--ease-io) 1s backwards,m-hero-shine-w-loop 13s var(--ease-io) 9s infinite}
.m-hero .hero__copy.is-go:not(.hx-done) .hx-shine__t{animation:m-hero-shine-t 1.9s var(--ease-io) 1s backwards,m-hero-shine-t-loop 13s var(--ease-io) 9s infinite}
@keyframes m-hero-shine-w{from{transform:translate3d(-72%,0,0)}to{transform:translate3d(72%,0,0)}}
@keyframes m-hero-shine-t{from{transform:translate3d(72%,0,0)}to{transform:translate3d(-72%,0,0)}}
@keyframes m-hero-shine-w-loop{0%{transform:translate3d(-72%,0,0)}15%,100%{transform:translate3d(72%,0,0)}}
@keyframes m-hero-shine-t-loop{0%{transform:translate3d(72%,0,0)}15%,100%{transform:translate3d(-72%,0,0)}}

.m-hero .hero__copy.is-go:not(.hx-done) .hero__lede{animation:m-hero-rise 1.1s var(--ease) .5s backwards}
.m-hero .hero__copy.is-go:not(.hx-done) .soon{animation:m-hero-pop 1s var(--ease) .68s backwards}
.m-hero .hero__copy.is-go:not(.hx-done) .btn--ghost{animation:m-hero-pop 1s var(--ease) .78s backwards}
.m-hero .hero__facts li:nth-child(2){--i:1}
.m-hero .hero__facts li:nth-child(3){--i:2}
.m-hero .hero__copy.is-go:not(.hx-done) .hero__facts li{animation:m-hero-in-x .8s var(--ease) calc(.96s + var(--i,0) * 120ms) backwards}
.m-hero .hero__copy.is-go:not(.hx-done) .hero__facts li::before{animation:m-hero-dot .8s var(--spring) calc(1s + var(--i,0) * 120ms) backwards}
.m-hero .hero__facts li::before{transition:background-color 1.1s ease}
.m-hero[data-phase="dhuhr"] .hero__facts li::before,.m-hero[data-phase="asr"] .hero__facts li::before{background:var(--accent)}

/* The gold pill: a slow shimmer. */
.m-hero .hero .soon{position:relative;overflow:hidden}
.m-hero .hero .soon::after{content:'';position:absolute;top:0;bottom:0;left:0;width:56%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.46) 50%,transparent);
  transform:translate3d(-115%,0,0);animation:m-hero-shim 6.8s var(--ease-io) 2.6s infinite}
@keyframes m-hero-shim{0%{transform:translate3d(-115%,0,0)}24%,100%{transform:translate3d(300%,0,0)}}

/* The ghost button: hero.js pulls it toward the pointer, so the core's hover lift steps aside. */
.m-hero .hero .btn--ghost{transition:background .25s}
.m-hero .hero .btn--ghost:hover{transform:none}
.m-hero .hero .btn--ghost .arrow{display:inline-block;transition:none}
.m-hero .hero .btn--ghost:hover .arrow{transform:none}
.m-hero .hero .btn--ghost .hx-ar{display:inline-block;animation:m-hero-bob 4.4s var(--ease-io) 3.6s infinite}
@keyframes m-hero-bob{0%,70%,100%{transform:none}83%{transform:translate3d(0,4px,0)}}

/* ---------- 2. The scene ---------- */
/* The layers cover the scene but take no clicks, so whatever else lives in the scene stays
   reachable; the phone itself keeps its own. */
.m-hero .scene .hx-l,.m-hero .scene .hx-f,.m-hero .scene .hx-tilt,.m-hero .scene .hx-archbox,.m-hero .scene .hx-arc{
  position:absolute;inset:0;pointer-events:none}
.m-hero .scene .hero__phone{pointer-events:auto}
.m-hero .scene .hx-l,.m-hero .scene .hx-tilt{will-change:transform}
.m-hero .scene .hx-l--sea{transition:opacity 1.1s ease}
.m-hero .scene .hx-l--arch{z-index:1}
.m-hero .scene .hx-l--moon{z-index:2;transition:opacity 1.1s ease}
.m-hero .scene .hx-l--phone{z-index:3}

.m-hero .scene:not(.is-dawn) .scene__sea,
.m-hero .scene:not(.is-dawn) .hx-water,
.m-hero .scene:not(.is-go) .hx-archbox,
.m-hero .scene:not(.is-go) .hx-arc,
.m-hero .scene:not(.is-go) .hero__phone{opacity:0}

/* The sea is the first beat: it fades up while the glow on the horizon rises (.is-dawn comes
   before .is-go, as soon as the scene is near). Then the glow breathes, a soft highlight
   wanders over the water and the reflection glitters. */
.m-hero .scene .hx-water{position:absolute;left:-28%;right:-28%;top:-12%;aspect-ratio:1;pointer-events:none}
.m-hero .scene.is-dawn:not(.hx-done) .scene__sea,
.m-hero .scene.is-dawn:not(.hx-done) .hx-water{animation:m-hero-fade 1.6s ease-out backwards}
.m-hero .scene .hx-glow{position:absolute;left:14%;right:14%;top:50%;height:40%;
  background:radial-gradient(46% 7% at 50% 50%,rgba(255,238,196,.8),transparent 72%),
    radial-gradient(50% 50% at 50% 50%,rgba(255,172,96,.44),rgba(250,120,84,.12) 48%,transparent 72%)}
.m-hero .scene.is-dawn .hx-glow{animation:m-hero-breathe 6.4s ease-in-out 1.8s infinite}
.m-hero .scene.is-dawn:not(.hx-done) .hx-glow{animation:m-hero-glow-up 1.8s var(--ease) backwards,m-hero-breathe 6.4s ease-in-out 1.8s infinite}
@keyframes m-hero-glow-up{from{opacity:0;transform:scale(.3,.4)}}
@keyframes m-hero-breathe{50%{opacity:.55;transform:scale(.92,.88)}}
.m-hero .scene .hx-sweep{position:absolute;left:14%;width:34%;top:69.6%;height:7%;
  background:radial-gradient(50% 50% at 50% 50%,rgba(255,232,180,.56),rgba(255,200,130,.18) 45%,transparent 72%);
  animation:m-hero-sweep 9s ease-in-out infinite alternate}
.m-hero .scene .hx-sweep--near{left:16%;width:40%;top:79%;height:15%;
  background:radial-gradient(50% 50% at 50% 50%,rgba(255,222,160,.26),transparent 70%);
  animation-duration:13s;animation-direction:alternate-reverse}
@keyframes m-hero-sweep{from{transform:translate3d(-10%,0,0)}to{transform:translate3d(120%,0,0)}}
.m-hero .scene .hx-glitter{position:absolute;left:0;right:0;top:71%;height:23%}
.m-hero .scene .hx-glitter i{position:absolute;border-radius:3px;opacity:0;
  background:linear-gradient(90deg,transparent,rgba(255,236,190,.6) 30%,#FFF4D6 50%,rgba(255,236,190,.6) 70%,transparent);
  box-shadow:0 0 8px 1px rgba(255,208,130,.4);
  animation:m-hero-glitter 3s ease-in-out infinite}
.m-hero .scene .hx-glitter i.is-cool{background:linear-gradient(90deg,transparent,rgba(170,205,255,.6) 30%,#E4EFFF 50%,rgba(170,205,255,.6) 70%,transparent);
  box-shadow:0 0 8px 1px rgba(110,165,255,.45)}
.m-hero .scene .hx-glitter i.is-warm{background:linear-gradient(90deg,transparent,rgba(255,204,120,.6) 30%,#FFEDC2 50%,rgba(255,204,120,.6) 70%,transparent);
  box-shadow:0 0 8px 1px rgba(255,176,84,.5)}
@keyframes m-hero-glitter{0%,100%{opacity:0;transform:translate3d(-8%,0,0) scaleX(.3)}50%{opacity:var(--o,1);transform:translate3d(8%,0,0) scaleX(1)}}

/* The glass arch materialises: it comes forward out of focus (.hx-veil is a small soft copy of
   it, scaled up) and resolves into the sharp glass; then it floats. Its shadow is a gradient
   under its feet (.hx-shade), so the core's drop-shadow filter can rest: a filter on a layer
   that turns in 3D is worked out again on every frame. */
.m-hero .scene .scene__arch{filter:none}
.m-hero .scene .hx-shade{position:absolute;left:-9%;right:-9%;top:91.5%;height:21%;
  background:radial-gradient(50% 50% at 50% 50%,rgba(0,2,30,.5),rgba(0,2,30,.3) 45%,rgba(0,2,30,.08) 78%,transparent)}
.m-hero .scene .hx-veil{position:absolute;left:-8.33%;top:-7.02%;width:116.67%;height:114.04%;opacity:0}
.m-hero .scene.is-go:not(.hx-done) .hx-archbox{animation:m-hero-arch 1.2s var(--ease) .05s backwards}
@keyframes m-hero-arch{from{transform:translate3d(0,4%,0) scale(.88)}}
.m-hero .scene.is-go:not(.hx-done) .hx-veil{animation:m-hero-veil 1s ease-out .05s backwards}
@keyframes m-hero-veil{0%{opacity:0}28%{opacity:1}100%{opacity:0}}
.m-hero .scene.is-go:not(.hx-done) .scene__arch,
.m-hero .scene.is-go:not(.hx-done) .hx-shade{animation:m-hero-sharp .95s ease-out .05s backwards}
@keyframes m-hero-sharp{0%,24%{opacity:0}}
.m-hero .scene .hx-l--arch .hx-f{transform-origin:50% 100%;animation:m-hero-float-a 8.6s ease-in-out infinite}
@keyframes m-hero-float-a{50%{transform:translate3d(0,-1.7%,0) rotate(.4deg)}}
/* Light on the glass. Both layers are masked with the arch image itself, so the light lies on
   the glass and nowhere else. .hx-glint is the light that crosses it: a broad band (i) with a
   thin streak (b) on its heels, once in the entrance and then every 6.4 s. .hx-spec follows
   the pointer. A mask is work on every frame it is on screen, so .hx-glint only exists
   (visibility) while its light is passing, and .hx-spec only while the pointer is near. */
.m-hero .scene .hx-glint,.m-hero .scene .hx-spec{position:absolute;inset:0;overflow:hidden;z-index:2;
  -webkit-mask:url(/Hilal/assets/icon-arch.webp) center/100% 100% no-repeat;mask:url(/Hilal/assets/icon-arch.webp) center/100% 100% no-repeat}
.m-hero .scene .hx-glint{visibility:hidden}
.m-hero .scene .hx-glint i,.m-hero .scene .hx-glint b{position:absolute;top:-10%;bottom:-10%;left:0;width:38%;
  background:linear-gradient(90deg,transparent,rgba(255,240,206,.22) 26%,rgba(255,250,236,.62) 44%,#fff 50%,rgba(255,250,236,.62) 56%,rgba(255,240,206,.22) 74%,transparent);
  transform:translate3d(-170%,0,0) skewX(-20deg)}
.m-hero .scene .hx-glint b{width:11%;opacity:.7;transform:translate3d(-560%,0,0) skewX(-20deg)}
.m-hero .scene.is-go .hx-glint{animation:m-hero-glint-seen 6.4s linear 5s infinite}
.m-hero .scene.is-go .hx-glint i{animation:m-hero-glint-loop 6.4s var(--ease-io) 5s infinite}
.m-hero .scene.is-go .hx-glint b{animation:m-hero-streak-loop 6.4s var(--ease-io) 5s infinite}
.m-hero .scene.is-go:not(.hx-done) .hx-glint{animation:m-hero-seen 1.6s linear .5s,m-hero-glint-seen 6.4s linear 5s infinite}
.m-hero .scene.is-go:not(.hx-done) .hx-glint i{animation:m-hero-glint 1.15s cubic-bezier(.45,0,.3,1) .6s backwards,m-hero-glint-loop 6.4s var(--ease-io) 5s infinite}
.m-hero .scene.is-go:not(.hx-done) .hx-glint b{animation:m-hero-streak 1.15s cubic-bezier(.45,0,.3,1) .86s backwards,m-hero-streak-loop 6.4s var(--ease-io) 5s infinite}
@keyframes m-hero-seen{from,to{visibility:visible}}
@keyframes m-hero-glint-seen{0%,26%{visibility:visible}26.1%,100%{visibility:hidden}}
@keyframes m-hero-glint{from{transform:translate3d(-170%,0,0) skewX(-20deg)}to{transform:translate3d(330%,0,0) skewX(-20deg)}}
@keyframes m-hero-glint-loop{0%{transform:translate3d(-170%,0,0) skewX(-20deg)}19%,100%{transform:translate3d(330%,0,0) skewX(-20deg)}}
@keyframes m-hero-streak{from{transform:translate3d(-560%,0,0) skewX(-20deg)}to{transform:translate3d(1180%,0,0) skewX(-20deg)}}
@keyframes m-hero-streak-loop{0%,4%{transform:translate3d(-560%,0,0) skewX(-20deg)}23%,100%{transform:translate3d(1180%,0,0) skewX(-20deg)}}
.m-hero .scene .hx-spec{opacity:0}
.m-hero .scene .hx-spec i{position:absolute;left:8%;top:6%;width:84%;height:70%;border-radius:50%;will-change:transform;
  background:radial-gradient(closest-side,rgba(255,255,255,.7),rgba(255,236,200,.22) 46%,transparent 72%)}

/* The crescent rises along an arc from the horizon and lands with a pulse: it swells once and
   a ring of light leaves it. Then its glow breathes. */
.m-hero .scene .hx-arc{transform-origin:112% 72%}
.m-hero .scene.is-go:not(.hx-done) .hx-arc{animation:m-hero-arc 1.2s var(--ease) .55s backwards}
@keyframes m-hero-arc{from{opacity:0;transform:rotate(-36deg)}30%{opacity:1}}
.m-hero .scene .hx-l--moon .hx-f{transform-origin:58.5% 23%;animation:m-hero-float-c 7.3s ease-in-out -2s infinite}
@keyframes m-hero-float-c{50%{transform:translate3d(.6%,-1.3%,0) rotate(-4deg)}}
.m-hero .scene .hx-halo,.m-hero .scene .hx-ring{position:absolute;left:53%;top:17.5%;width:11%;aspect-ratio:1;border-radius:50%;z-index:1}
.m-hero .scene .hx-halo{background:radial-gradient(closest-side,rgba(255,222,146,.5),rgba(255,214,130,.15) 42%,transparent 72%);
  transform:scale(3.4);animation:m-hero-halo 5.2s ease-in-out infinite}
@keyframes m-hero-halo{50%{opacity:.4;transform:scale(2.6)}}
.m-hero .scene .hx-ring{opacity:0;background:radial-gradient(closest-side,rgba(255,240,196,.62),rgba(255,224,160,.36) 55%,rgba(255,214,130,.55) 78%,transparent)}
.m-hero .scene.is-go:not(.hx-done) .hx-ring{animation:m-hero-ring 1.25s cubic-bezier(.2,.7,.3,1) 1.45s}
@keyframes m-hero-ring{from{opacity:1;transform:scale(.8)}to{opacity:0;transform:scale(5.4)}}
.m-hero .scene.is-go:not(.hx-done) .scene__moon{animation:m-hero-moon-pulse 1.1s var(--ease-io) 1.4s}
@keyframes m-hero-moon-pulse{0%,100%{transform:rotate(-38deg) scale(1)}32%{transform:rotate(-38deg) scale(1.24)}}

/* The phone comes through the doorway: from further back and leaning away, it rises, stands
   up, goes a touch too far and settles. Then it floats on its own period. */
.m-hero .scene .hero__phone{transform-origin:50% 100%}
.m-hero .scene.is-go:not(.hx-done) .hero__phone{animation:m-hero-phone 1.45s cubic-bezier(.2,.84,.26,1) .75s backwards}
@keyframes m-hero-phone{
  from{opacity:0;transform:translateX(-50%) perspective(900px) translate3d(0,24%,0) rotateX(28deg) scale(.82)}
  16%{opacity:1}
  62%{transform:translateX(-50%) perspective(900px) translate3d(0,-1.2%,0) rotateX(-2deg) scale(1.005)}
  to{opacity:1;transform:translateX(-50%) perspective(900px) translate3d(0,0,0) rotateX(0deg) scale(1)}}
.m-hero .scene .hx-l--phone .hx-f{animation:m-hero-float-b 6.4s ease-in-out -1s infinite}
@keyframes m-hero-float-b{50%{transform:translate3d(0,-2.5%,0) rotate(-.5deg)}}
/* The same light that crosses the arch touches the phone's glass a moment later. */
.m-hero .scene .hx-sheen{position:absolute;inset:8px;border-radius:13.4% / 6.2%;overflow:hidden;pointer-events:none}
.m-hero .scene .hx-sheen i{position:absolute;top:-10%;bottom:-10%;left:0;width:70%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.17) 50%,transparent);transform:translate3d(-170%,0,0) skewX(-20deg)}
.m-hero .scene.is-go .hx-sheen i{animation:m-hero-glint-loop 7.4s var(--ease-io) 5.35s infinite}
.m-hero .scene.is-go:not(.hx-done) .hx-sheen i{animation:m-hero-glint 1.4s cubic-bezier(.45,0,.3,1) 1.9s backwards,m-hero-glint-loop 7.4s var(--ease-io) 5.35s infinite}

/* The prayer row can show the hero under any sky. By day the night sea steps back, the
   crescent pales to a day moon, and the phone shows the same Today screen as it looks in the
   afternoon (.hx-day, a second real capture, fades in over the night one). After sunset the
   sky above the horizon shows through the doorway, and the crescent leaves the arch: the sky
   has its own hilal then. */
@property --m-hero-sea{syntax:'<number>';inherits:false;initial-value:1}
.m-hero .scene__sea img{transition:--m-hero-sea 1.1s ease;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,var(--m-hero-sea)) 36%,#000 64%);mask-image:linear-gradient(180deg,rgba(0,0,0,var(--m-hero-sea)) 36%,#000 64%)}
.m-hero[data-phase="maghrib"] .scene__sea img,.m-hero[data-phase="isha"] .scene__sea img{--m-hero-sea:0}
.m-hero[data-phase="dhuhr"] .scene .hx-l--sea,.m-hero[data-phase="asr"] .scene .hx-l--sea{opacity:0}
.m-hero[data-phase="isha"] .scene .hx-l--sea{opacity:.82}
.m-hero[data-phase="dhuhr"] .scene .hx-l--moon,.m-hero[data-phase="asr"] .scene .hx-l--moon{opacity:.35}
.m-hero[data-phase="maghrib"] .scene .hx-l--moon,.m-hero[data-phase="isha"] .scene .hx-l--moon{opacity:0}
.m-hero .scene .hero__phone .hx-day{position:absolute;left:8px;top:8px;width:calc(100% - 16px);height:calc(100% - 16px);
  border-radius:13.4% / 6.2%;background:center/100% 100% no-repeat;opacity:0;transition:opacity 1.1s ease;pointer-events:none}
.m-hero[data-phase="dhuhr"] .scene .hero__phone .hx-day,.m-hero[data-phase="asr"] .scene .hero__phone .hx-day{opacity:1}

/* Nothing loops while its part of the hero is off screen. */
.m-hero .scene.hx-away *,.m-hero .hero__copy.hx-away *,.m-hero .hero__copy.hx-away *::after,
.m-hero .day.hx-away *,.m-hero .day.hx-away *::before,.m-hero .day.hx-away *::after{animation-play-state:paused}

/* ---------- 3. The five prayers ---------- */
.m-hero .hero .day{position:relative;border-top-color:transparent}
.m-hero .hero .day::before{content:'';position:absolute;left:0;right:0;top:-1px;height:1px;background:var(--line);transform-origin:0 50%}
.m-hero .hero .day:not(.is-go)::before{transform:scaleX(0)}
.m-hero .hero .day:not(.is-go) a,.m-hero .hero .day:not(.is-go) .hx-now{opacity:0}
.m-hero .hero .day a:nth-of-type(2){--i:1}
.m-hero .hero .day a:nth-of-type(3){--i:2}
.m-hero .hero .day a:nth-of-type(4){--i:3}
.m-hero .hero .day a:nth-of-type(5){--i:4}
/* The line draws at a steady pace, a small sun rides its tip, and each dot lights as it passes:
   the dot pops while a glow (::after) flares over it and dies away. */
.m-hero .hero .day.is-go:not(.hx-done)::before{animation:m-hero-draw 1.15s linear var(--hx-d,0s) backwards}
.m-hero .hero .day.is-go:not(.hx-done) a > *{animation:m-hero-rise .9s var(--ease) calc(var(--hx-d,0s) + .16s + var(--i,0) * .23s) backwards}
.m-hero .hero .day.is-go:not(.hx-done) a::before{animation:m-hero-dot-on .95s var(--ease) calc(var(--hx-d,0s) + .115s + var(--i,0) * .23s) backwards}
@keyframes m-hero-dot-on{from{opacity:0;transform:scale(.2)}40%{opacity:1;transform:scale(2.1)}}
.m-hero .hero .day a::after{content:'';position:absolute;left:50%;top:-1px;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;
  pointer-events:none;opacity:0;
  background:radial-gradient(closest-side,rgba(255,244,214,.95) 0 9%,rgba(255,220,140,.6) 24%,rgba(255,196,116,.16) 56%,transparent)}
.m-hero .hero .day.is-go:not(.hx-done) a::after{animation:m-hero-dot-flare 1s ease-out calc(var(--hx-d,0s) + .115s + var(--i,0) * .23s)}
@keyframes m-hero-dot-flare{0%{opacity:0;transform:scale(.3)}32%{opacity:1;transform:scale(1.15)}100%{opacity:0;transform:scale(.8)}}
.m-hero .hero .day .hx-run,.m-hero .hero .day .hx-now{position:absolute;left:0;top:0;width:100%;height:0;pointer-events:none}
.m-hero .hero .day .hx-run{opacity:0}
.m-hero .hero .day.is-go:not(.hx-done) .hx-run{animation:m-hero-run 1.15s linear var(--hx-d,0s) backwards}
@keyframes m-hero-run{from{opacity:0;transform:translate3d(0,0,0)}8%,86%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}
.m-hero .hero .day .hx-run::before{content:'';position:absolute;left:-30px;top:-30px;width:60px;height:60px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,246,220,.95) 0 8%,rgba(255,214,130,.5) 22%,rgba(255,190,110,.12) 55%,transparent)}
/* A glow rests under the prayer the sky is showing, and glides to the one you point at. */
.m-hero .hero .day .hx-now{transform:translate3d(calc(var(--i,0) * 20%),0,0);transition:transform .9s var(--ease)}
.m-hero .hero .day.is-go:not(.hx-done) .hx-now{animation:m-hero-fade .9s ease calc(var(--hx-d,0s) + .3s) backwards}
.m-hero .hero .day .hx-now::before{content:'';position:absolute;left:10%;top:0;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,214,130,.5),rgba(255,214,130,.12) 55%,transparent);
  animation:m-hero-now 3.6s ease-in-out infinite}
@keyframes m-hero-now{50%{opacity:.5;transform:scale(1.4)}}
.m-hero .hero .day a::before{transition:transform .5s var(--ease),box-shadow .5s var(--ease),background-color 1.1s ease}
.m-hero .hero .day a.is-now::before,.m-hero .hero .day a:hover::before,.m-hero .hero .day a:focus-visible::before{
  transform:scale(1.45);box-shadow:0 0 0 5px rgba(233,192,106,.26),0 0 18px 3px rgba(255,214,130,.6)}
.m-hero .hero .day a strong,.m-hero .hero .day a span{transition:opacity .45s ease,transform .5s var(--ease)}
.m-hero .hero .day a.is-now strong{transform:translate3d(0,-2px,0)}
.m-hero .hero .day.is-preview a:not(.is-now) strong,.m-hero .hero .day.is-preview a:not(.is-now) span{opacity:.72}
/* On a light sky the dots and the glow take the page's ink accent. */
.m-hero[data-phase="dhuhr"] .hero .day a::before,.m-hero[data-phase="asr"] .hero .day a::before{background:var(--accent);box-shadow:0 0 0 4px rgba(47,53,128,.14)}
.m-hero[data-phase="dhuhr"] .hero .day a.is-now::before,.m-hero[data-phase="asr"] .hero .day a.is-now::before{box-shadow:0 0 0 5px rgba(47,53,128,.2),0 0 18px 3px rgba(47,53,128,.3)}
.m-hero[data-phase="dhuhr"] .hero .day .hx-now::before,.m-hero[data-phase="asr"] .hero .day .hx-now::before{
  background:radial-gradient(closest-side,rgba(47,53,128,.3),rgba(47,53,128,.08) 55%,transparent)}
