/* =====================================================================
   Roya TV brand ident v2 (#boot.ix) — "رؤيا: the eye opens"
   Pure CSS, so it plays from the first painted frame with no script
   dependency. app.js only decides when it ends (adds .out / .skip).
   Only transform, opacity and filter are animated (plus one small masked
   custom-property ring for the brand's circuit power-up).

   Timeline at --k:1 (full ident, first visit per session)
     0.00  black. A red-white horizon line draws out from the centre
     0.30  the lids part along the horizon: red dawn light floods in
     0.25  camera dollies forward through dust motes; a faint Libyan
           lattice (mashrabiya light) drifts behind, slower (parallax)
     0.30  the leaf rises out of depth as a dark, backlit silhouette
     1.00  THE HIT: the leaf ignites white, core flash, anamorphic
           flare, shockwave, camera kick, circuit power-up
     1.20  wordmark رؤيا unveils right to left behind a soft light edge
     1.60  ROYA TV settles between two hairlines
     1.85  light catches the leaf's edges (one sweep); calm hold + breath
     2.45  app.js adds .out -> push through the mark into the app (0.55s)
   Quick sting (repeat visits): same story at --k:0.36, extras trimmed.
   Reduced motion: every animation off, static final frame, plain fade.
   ===================================================================== */

#boot.ix {
  --k: 1;
  --red: 225, 29, 42;
  --hot: 255, 60, 72;
  --s: clamp(128px, 23vmin, 196px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* expo-out: entrances */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --t-hit: calc(1s * var(--k));
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse 80% 62% at 50% 44%, #120608 0%, #070304 50%, #000 100%);
  contain: strict; -webkit-tap-highlight-color: transparent;
}
html.intro-quick #boot.ix { --k: 0.36; }
/* vignette */
#boot.ix::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 46%, transparent 45%, rgba(0, 0, 0, 0.78) 100%); }

/* ---------- camera: one slow dolly for the whole scene, plus a kick on the hit ---------- */
.ix-cam { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  animation: ixDolly calc(3s * var(--k)) cubic-bezier(.22, .8, .3, 1) both, ixKick calc(0.5s * var(--k)) var(--ease-out) var(--t-hit) both; }
@keyframes ixDolly { from { transform: scale(0.94); } to { transform: scale(1); } }
/* the kick is a second transform on top of the dolly, via `translate`/`scale` individual properties */
@keyframes ixKick { 0% { scale: 1; } 14% { scale: 1.028; } 100% { scale: 1; } }

/* ---------- far layer: lattice of light (Libyan/mashrabiya geometry), barely there ---------- */
.ix-lattice { position: absolute; left: 50%; top: 46%; width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><g fill='none' stroke='%23ff6a72' stroke-width='0.7' stroke-linejoin='round'><path d='M16 16h32v32H16zM32 9.4 54.6 32 32 54.6 9.4 32z'/><path d='M32 9.4V0M54.6 32H64M32 54.6V64M9.4 32H0M48 16 64 0M48 48l16 16M16 48 0 64M16 16 0 0'/></g></svg>") center / 64px 64px repeat;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, 0.45) 14%, transparent 34%); mask: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, 0.45) 14%, transparent 34%);
  opacity: 0.16; animation: ixLattice calc(3s * var(--k)) cubic-bezier(.22, .8, .3, 1) calc(0.2s * var(--k)) both; }
@keyframes ixLattice { from { opacity: 0; transform: scale(1.12) rotate(-2deg); } 45% { opacity: 0.2; } to { opacity: 0.16; transform: scale(1) rotate(0deg); } }

/* ambient red dawn behind everything (gradient only, no blur filter: cheap on phones) */
.ix-bloom { position: absolute; left: 50%; top: 46%; width: 160vmin; height: 160vmin; margin: -80vmin 0 0 -80vmin; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--red), 0.36) 0%, rgba(150, 12, 24, 0.18) 22%, rgba(90, 6, 14, 0.06) 42%, transparent 64%);
  opacity: 0.9; animation: ixBloom calc(1.3s * var(--k)) var(--ease-out) calc(0.25s * var(--k)) both, ixBloomHit calc(0.9s * var(--k)) var(--ease-out) var(--t-hit) both; }
@keyframes ixBloom { from { opacity: 0; transform: scale(0.5); } to { opacity: 0.9; transform: scale(1); } }
@keyframes ixBloomHit { 0% { scale: 1; } 12% { scale: 1.14; } 100% { scale: 1; } }

/* dust motes: one tiny element each, many box-shadows; scaling the element flies them past the camera */
.ix-motes { position: absolute; left: 50%; top: 46%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; pointer-events: none; }
.ix-motes-far { z-index: 0; opacity: 0.7; color: rgba(255, 120, 120, 0.55);
  box-shadow: -38vmin -22vmin 1px currentColor, 31vmin -29vmin 1px currentColor, 44vmin 6vmin 1px currentColor, -46vmin 14vmin 1px currentColor,
    -18vmin 33vmin 1px currentColor, 22vmin 30vmin 1px currentColor, -9vmin -38vmin 1px currentColor, 12vmin -16vmin 0 rgba(255, 200, 190, 0.6),
    -27vmin 4vmin 0 rgba(255, 200, 190, 0.5), 36vmin -8vmin 1px currentColor, -52vmin -36vmin 2px currentColor, 55vmin 33vmin 2px currentColor;
  animation: ixMotesFar calc(3s * var(--k)) linear calc(0.15s * var(--k)) both; }
@keyframes ixMotesFar { from { opacity: 0; transform: scale(0.82); } 25% { opacity: 0.7; } to { opacity: 0.55; transform: scale(1.12); } }
.ix-motes-near { z-index: 4; width: 6px; height: 6px; margin: -3px; opacity: 0; color: rgba(255, 90, 96, 0.5);
  box-shadow: -30vmin -18vmin 4px 1px currentColor, 34vmin 20vmin 5px 1px currentColor, 26vmin -24vmin 3px currentColor,
    -24vmin 26vmin 4px currentColor, 8vmin -32vmin 5px 1px rgba(255, 170, 160, 0.45), -40vmin 2vmin 6px 2px currentColor;
  animation: ixMotesNear calc(1.6s * var(--k)) cubic-bezier(.5, 0, .9, .6) calc(0.25s * var(--k)) both; }
@keyframes ixMotesNear { 0% { opacity: 0; transform: scale(0.45); } 30% { opacity: 0.9; } 100% { opacity: 0; transform: scale(2.1); } }

/* ---------- opening: horizon line + lids ("the eye opens") ---------- */
.ix-horizon { position: absolute; left: 0; right: 0; top: 46%; height: 2px; margin-top: -1px; z-index: 6; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent 4%, rgba(var(--red), 0.55) 26%, rgba(255, 140, 140, 0.95) 45%, #fff 50%, rgba(255, 140, 140, 0.95) 55%, rgba(var(--red), 0.55) 74%, transparent 96%);
  box-shadow: 0 0 14px 2px rgba(var(--hot), 0.55), 0 0 46px 8px rgba(var(--red), 0.22);
  animation: ixHorizon calc(1s * var(--k)) var(--ease-out) calc(0.02s * var(--k)) both; }
@keyframes ixHorizon { 0% { opacity: 0; transform: scaleX(0.02); } 12% { opacity: 1; } 42% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.06) scaleY(0.5); } }
.ix-lid { position: absolute; left: 0; right: 0; height: 60%; z-index: 6; pointer-events: none; background: #000; opacity: 0; }
.ix-lid-t { top: -14%; background: linear-gradient(180deg, #000 72%, transparent); animation: ixLidT calc(1.1s * var(--k)) var(--ease-out) calc(0.3s * var(--k)) both; }
.ix-lid-b { bottom: -22%; background: linear-gradient(0deg, #000 72%, transparent); animation: ixLidB calc(1.1s * var(--k)) var(--ease-out) calc(0.3s * var(--k)) both; }
@keyframes ixLidT { from { opacity: 1; transform: translateY(0); } 70% { opacity: 1; } to { opacity: 0; transform: translateY(-100%); } }
@keyframes ixLidB { from { opacity: 1; transform: translateY(0); } 70% { opacity: 1; } to { opacity: 0; transform: translateY(100%); } }

/* ---------- stage ---------- */
.ix-stage { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(18px, 3vmin, 30px); transform: translateY(-2vh); }

/* ---------- the mark ---------- */
.ix-mark { position: relative; display: grid; place-items: center; }
.ix-logo { width: var(--s); height: var(--s); z-index: 2;
  animation: ixRise calc(1.25s * var(--k)) var(--ease-out) calc(0.3s * var(--k)) both, ixLeafHit calc(0.7s * var(--k)) var(--ease-out) var(--t-hit) both; }
@keyframes ixRise { from { opacity: 0; transform: translateY(3vh) scale(0.7); } 35% { opacity: 1; } to { opacity: 1; transform: translateY(0) scale(0.97); } }
@keyframes ixLeafHit { 0% { scale: 1; } 16% { scale: 1.075; } 100% { scale: 1.03; } }
/* backlit silhouette -> ignited white leaf with its original red glow */
#boot .ix-logo > img { width: 100%; height: 100%;
  filter: brightness(1) drop-shadow(0 0 calc(var(--s) * 0.08) rgba(255, 50, 64, 0.55));
  animation: ixIgniteLeaf calc(0.6s * var(--k)) var(--ease-out) var(--t-hit) backwards, ixSil calc(0.7s * var(--k)) var(--ease-out) calc(0.3s * var(--k)) backwards; }
/* (order matters: the later animation wins while both apply, so each beat hands off exactly at the hit) */
@keyframes ixSil {
  from { opacity: 0; filter: blur(10px) brightness(0.08) drop-shadow(0 0 2px rgba(255, 70, 80, 0)); }
  to { opacity: 1; filter: blur(0) brightness(0.1) drop-shadow(0 0 3px rgba(255, 70, 80, 0.95)); }
}
@keyframes ixIgniteLeaf {
  0% { filter: blur(0) brightness(0.1) drop-shadow(0 0 3px rgba(255, 70, 80, 0.95)); }
  10% { filter: blur(0) brightness(2) drop-shadow(0 0 calc(var(--s) * 0.16) rgba(255, 110, 118, 1)); }
  100% { filter: blur(0) brightness(1) drop-shadow(0 0 calc(var(--s) * 0.08) rgba(255, 50, 64, 0.55)); }
}
/* brand core glow: a low ember while the leaf is a silhouette, then ignites on the hit and breathes */
#boot .ix-logo .rl-glow { opacity: 0.85;
  animation: ixIgnite calc(1s * var(--k)) var(--ease-out) var(--t-hit) backwards, ixEmber calc(0.65s * var(--k)) var(--ease-out) calc(0.35s * var(--k)) backwards, ixBreath 3.6s ease-in-out calc(2.4s * var(--k)) infinite; }
@keyframes ixEmber { from { opacity: 0; transform: scale(0.4); } to { opacity: 0.55; transform: scale(0.8); } }
@keyframes ixIgnite { 0% { opacity: 0.55; transform: scale(0.8); } 14% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0.85; transform: scale(1); } }
@keyframes ixBreath { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
#boot .ix-logo .rl-glow::after { animation: none; opacity: 0; }
#boot .ix-logo .rl-circuit { animation: ixCircuit calc(1s * var(--k)) cubic-bezier(.4, 0, .2, 1) calc(1.02s * var(--k)) both; }

/* shape-following glow (pre-blurred brand asset) */
.ix-leafglow { position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 1.8); height: calc(var(--s) * 1.8); translate: -50% -50%; z-index: 1; pointer-events: none;
  background: url(/media/brand/intro/roya-leaf-glow.png) center / contain no-repeat; mix-blend-mode: screen; opacity: 0.85;
  animation: ixGlowIn calc(0.9s * var(--k)) var(--ease-out) var(--t-hit) backwards, ixBreath 3.6s ease-in-out calc(2.4s * var(--k)) infinite; }
@keyframes ixGlowIn { 0% { opacity: 0; transform: scale(0.85); } 15% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0.85; transform: scale(1); } }

/* the hit: white-hot core flash */
.ix-core { position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 3.2); height: calc(var(--s) * 3.2); translate: -50% -50%; z-index: 3; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 245, 240, 0.95) 0%, rgba(255, 120, 120, 0.55) 14%, rgba(var(--red), 0.18) 32%, transparent 60%);
  mix-blend-mode: screen; opacity: 0; animation: ixCore calc(0.7s * var(--k)) var(--ease-out) var(--t-hit) both; }
@keyframes ixCore { 0% { opacity: 0; transform: scale(0.35); } 9% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.25); } }
/* shockwave ring */
.ix-wave { position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 1.3); height: calc(var(--s) * 1.3); translate: -50% -50%; z-index: 1; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(255, 150, 150, 0.9); box-shadow: 0 0 18px rgba(var(--hot), 0.5), inset 0 0 18px rgba(var(--hot), 0.35);
  opacity: 0; animation: ixWave calc(1s * var(--k)) cubic-bezier(.1, .7, .2, 1) calc(1.02s * var(--k)) both; }
@keyframes ixWave { 0% { opacity: 0; transform: scale(0.75); } 8% { opacity: 0.9; } 100% { opacity: 0; transform: scale(3.6); } }

/* anamorphic flare: a hot core line in a wide soft haze */
.ix-flare { position: absolute; left: 50%; top: 50%; width: 130vw; height: calc(var(--s) * 0.5); margin: calc(var(--s) * -0.25) 0 0 -65vw; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--hot), 0.28), rgba(var(--red), 0.08) 45%, transparent 70%);
  mix-blend-mode: screen; animation: ixFlare calc(0.95s * var(--k)) var(--ease-out) var(--t-hit) both; }
.ix-flare > i { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, rgba(var(--hot), 0) 14%, rgba(255, 100, 108, 0.8) 42%, #fff 50%, rgba(255, 100, 108, 0.8) 58%, rgba(var(--hot), 0) 86%, transparent);
  box-shadow: 0 0 10px 2px rgba(255, 60, 72, 0.6); }
@keyframes ixFlare { 0% { opacity: 0; transform: scaleX(0.1); } 12% { opacity: 1; transform: scaleX(0.9); } 100% { opacity: 0; transform: scaleX(1.3) scaleY(0.6); } }

/* light catching the leaf's edges: one sweep, clipped to the leaf silhouette, right to left */
.ix-sweep { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
  -webkit-mask: url(/media/brand/roya-logo.png) center / contain no-repeat; mask: url(/media/brand/roya-logo.png) center / contain no-repeat; }
.ix-sweep > i { position: absolute; top: -25%; bottom: -25%; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 120, 125, 0.4) 30%, rgba(255, 250, 248, 1) 50%, rgba(255, 120, 125, 0.4) 70%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg); animation: ixSweep calc(0.9s * var(--k)) var(--ease-io) calc(1.85s * var(--k)) both; }
@keyframes ixSweep { from { transform: translateX(260%) skewX(-18deg); } to { transform: translateX(-160%) skewX(-18deg); } }

/* ---------- wordmark رؤيا: unveiled right to left behind a feathered light edge ----------
   .ix-word-win is the moving window (feathered on its leading, left edge by a mask that moves with
   it); .ix-word-in counter-moves so the letters stay still. Both carry the same side padding, so
   their widths match and the feather only ever lands on empty padding at rest. */
.ix-word { --f: 0.9em; position: relative; line-height: 1; font-family: "Readex Pro", system-ui, sans-serif;
  font-size: clamp(3.1rem, 9.6vmin, 5.4rem); margin: -0.32em 0 -0.36em; filter: drop-shadow(0 0 0.32em rgba(var(--red), 0.42)); }
.ix-word-win { display: block; -webkit-mask: linear-gradient(90deg, transparent 0, #000 var(--f)); mask: linear-gradient(90deg, transparent 0, #000 var(--f));
  animation: ixWin calc(0.85s * var(--k)) var(--ease-out) calc(1.2s * var(--k)) both; }
.ix-word-in { display: block; padding: 0 var(--f);
  animation: ixWinIn calc(0.85s * var(--k)) var(--ease-out) calc(1.2s * var(--k)) both; }
.ix-word-txt { display: block; font-weight: 600; color: #fff; letter-spacing: 0; white-space: nowrap; line-height: 1.6; padding-bottom: 0.05em; /* tall box: background-clip:text must cover the dots of ي */
  background: linear-gradient(180deg, #fff 0%, #fff 55%, #ffd9d9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: ixWordSettle calc(1.1s * var(--k)) var(--ease-out) calc(1.2s * var(--k)) both; }
.ix-word-txt > img { display: block; height: 1.25em; width: auto; }
@keyframes ixWin { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes ixWinIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes ixWordSettle { from { opacity: 0.4; transform: scale(1.04); filter: blur(5px); } 60% { opacity: 1; filter: blur(0); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
/* the light edge: a soft vertical red-white glow riding the reveal front */
.ix-pen { position: absolute; inset: 0 calc(var(--f) * 0.4) 0 calc(var(--f) * 0.4); pointer-events: none; transform: translateX(0);
  animation: ixPenMove calc(0.85s * var(--k)) var(--ease-out) calc(1.2s * var(--k)) both; }
.ix-pen::after { content: ""; position: absolute; top: 10%; bottom: 12%; right: 0; width: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(180deg, transparent, #fff 35%, rgba(var(--hot), 1) 70%, transparent);
  box-shadow: 0 0 12px 3px rgba(var(--hot), 0.7), 0 0 36px 10px rgba(var(--red), 0.3);
  animation: ixPenFade calc(0.85s * var(--k)) linear calc(1.2s * var(--k)) both; }
@keyframes ixPenMove { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes ixPenFade { 0% { opacity: 0; } 8% { opacity: 1; } 35% { opacity: 0.85; } 60%, 100% { opacity: 0; } }

/* ---------- ROYA TV between two hairlines ---------- */
#boot .ix-sub { display: flex; align-items: center; gap: 1.1em; direction: ltr; padding: 0; margin-top: 0.35em; letter-spacing: 0; animation: none; opacity: 1;
  font-family: "Readex Pro", system-ui, sans-serif; font-size: clamp(11px, 1.55vmin, 14px); font-weight: 400; color: rgba(255, 255, 255, 0.78); }
.ix-sub-t { display: block; letter-spacing: 0.62em; margin-right: -0.62em; white-space: nowrap;
  animation: ixSubIn calc(0.9s * var(--k)) var(--ease-out) calc(1.6s * var(--k)) both; }
.ix-rule { display: block; width: clamp(28px, 6vmin, 56px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 120, 125, 0.85)); animation: ixRule calc(0.9s * var(--k)) var(--ease-out) calc(1.55s * var(--k)) both; }
.ix-rule:last-child { background: linear-gradient(270deg, transparent, rgba(255, 120, 125, 0.85)); }
.ix-rule:first-child { transform-origin: right; }
.ix-rule:last-child { transform-origin: left; }
@keyframes ixRule { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes ixSubIn { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* film grain, very low */
.ix-grain { position: absolute; inset: -50%; z-index: 7; pointer-events: none; opacity: 0.045; animation: ixGrain 0.6s steps(4) infinite;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }

/* ---------- quick sting: same story, fewer layers ---------- */
html.intro-quick .ix-lattice,
html.intro-quick .ix-motes,
html.intro-quick .ix-lid,
html.intro-quick .ix-horizon,
html.intro-quick .ix-wave,
html.intro-quick .ix-grain,
html.intro-quick .ix-pen,
html.intro-quick #boot .ix-logo .rl-circuit { display: none; }
html.intro-quick .ix-sweep > i { animation-delay: calc(1.5s * var(--k)); }

/* ---------- hand-off: push through the mark and dissolve into the app ---------- */
#boot.ix.out { pointer-events: none; opacity: 0; transition: opacity calc(0.42s * var(--k-out, 1)) ease-out calc(0.13s * var(--k-out, 1)); }
html.intro-quick #boot.ix { --k-out: 0.78; }
#boot.ix.out .ix-stage { opacity: 0; transform: translateY(-2vh) scale(1.18); filter: blur(6px);
  transition: opacity calc(0.45s * var(--k-out, 1)) var(--ease-in), transform calc(0.55s * var(--k-out, 1)) var(--ease-in), filter calc(0.45s * var(--k-out, 1)) var(--ease-in); }
#boot.ix.out .ix-bloom { opacity: 0; transform: scale(1.7); animation: none;
  transition: opacity calc(0.5s * var(--k-out, 1)) ease-out, transform calc(0.55s * var(--k-out, 1)) var(--ease-out); }
#boot.ix.out .ix-lattice { opacity: 0; transform: scale(1.25); animation: none;
  transition: opacity calc(0.4s * var(--k-out, 1)) ease-out, transform calc(0.55s * var(--k-out, 1)) var(--ease-in); }

/* skip (click / key): jump every beat to its final frame */
#boot.ix.skip *, #boot.ix.skip *::before, #boot.ix.skip *::after { animation-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }

/* ---------- reduced motion: static final frame, plain fade out ---------- */
html.intro-still #boot.ix *, html.intro-still #boot.ix *::before, html.intro-still #boot.ix *::after { animation: none !important; }
html.intro-still #boot.ix { animation: none !important; }
html.intro-still .ix-lid, html.intro-still .ix-horizon, html.intro-still .ix-flare, html.intro-still .ix-core, html.intro-still .ix-wave,
html.intro-still .ix-motes-near, html.intro-still .ix-grain, html.intro-still .ix-pen { display: none; }
html.intro-still #boot.ix.out .ix-stage { transform: translateY(-2vh); filter: none; }
html.intro-still #boot.ix.out .ix-bloom, html.intro-still #boot.ix.out .ix-lattice { transform: none; }
@media (prefers-reduced-motion: reduce) {
  #boot.ix *, #boot.ix *::before, #boot.ix *::after { animation: none !important; }
  .ix-lid, .ix-horizon, .ix-flare, .ix-core, .ix-wave, .ix-motes-near, .ix-grain, .ix-pen { display: none; }
}

/* own copies of shared keyframes so the ident does not depend on app.css internals */
@property --ring { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes ixCircuit { 0% { opacity: 0; --ring: 0%; } 6% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; --ring: 150%; } }
@keyframes ixGrain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }

/* ---------- v3 WebGL ident (js/intro.js) ----------
   intro-gl: the GL ident is loading (max 0.9 s): hold this CSS ident on black, paused at frame 0,
   so the fallback can still play from its first frame. intro-gl-on: GL won; these layers never show. */
html.intro-gl #boot.ix { background: #000; }
html.intro-gl #boot.ix *, html.intro-gl #boot.ix *::before, html.intro-gl #boot.ix *::after { animation-play-state: paused !important; }
html.intro-gl #boot.ix > * { visibility: hidden; }
html.intro-gl-on #boot.ix > * { display: none; }
#roya-gl { position: fixed; inset: 0; z-index: 301; display: block; width: 100%; height: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: none; }

/* Wordmark follows the app language: «رؤيا · تي في» in Arabic, "ROYA · TV" in English */
.ix-word-txt.ix-word-en { letter-spacing: 0.14em; margin-right: -0.14em; font-weight: 700; }
.ix-sub-t.ix-sub-ar { letter-spacing: 0; margin-right: 0; font-size: 1.25em; }
