/* Paths of Ash — the website. Colours follow the game's theme (src/theme.css): the night, umber, ember and sand. */

@font-face { font-family: Gloock; src: url(../fonts/gloock.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Literata; src: url(../fonts/literata-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Literata; src: url(../fonts/literata-400i.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Literata; src: url(../fonts/literata-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Plex; src: url(../fonts/plex-lat-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: Plex; src: url(../fonts/plex-lat-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: Plex; src: url(../fonts/plex-lat-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: Plex; src: url(../fonts/plex-ar-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Plex; src: url(../fonts/plex-ar-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Plex; src: url(../fonts/plex-ar-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Ruqaa; src: url(../fonts/aref-ruqaa-ar-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Ruqaa; src: url(../fonts/aref-ruqaa-lat-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: Naskh; src: url(../fonts/naskh-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Naskh; src: url(../fonts/naskh-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: #0f0c0b;
  --deep: #0c0a10;
  --sky-top: #13112a;
  --sky: #262150;
  --violet: #4a3c78;
  --umber: #1a1411;
  --panel: rgba(28, 22, 19, .78);
  --ink: #f3ece0;
  --cream: #f6e6cc;
  --mut: #b3a896;
  --dim: #938676;
  --line: rgba(236, 210, 170, .14);
  --line-strong: rgba(236, 210, 170, .28);
  --paper: rgba(236, 210, 170, .06);
  --amber: #f4a259;
  --ember: #e2692e;
  --red: #ef5b5b;
  --teal: #62c0aa;
  --sky-blue: #8fc9ea;
  --sand: #d8c28a;
  --oxblood: #8a3b2a;
  --display: Gloock, Georgia, 'Times New Roman', serif;
  --text: Literata, Georgia, serif;
  --ui: Plex, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
html[lang=ar] {
  --display: Ruqaa, Naskh, 'Geeza Pro', serif;
  --text: Naskh, 'Geeza Pro', Tahoma, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 17px/1.7 var(--text); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang=ar] body { font-size: 18px; line-height: 1.72; }
img, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
html[lang=ar] :is(h1, h2, h3, h4) { font-weight: 700; line-height: 1.45; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: rgba(244, 162, 89, .35); }
/* the page's scrollbar: the night for the track, an ember for the thumb */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0d0b0e; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f7b878, var(--amber) 45%, var(--ember)); border-radius: 10px; border: 3px solid #0d0b0e; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffd2a0, #f7b878 45%, var(--amber)); }
::-webkit-scrollbar-corner { background: #0d0b0e; }
@supports (-moz-appearance: none) { html, .tree, textarea { scrollbar-color: var(--amber) #0d0b0e; scrollbar-width: thin; } }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--amber); color: #1b0f06; border-radius: 10px; font: 600 14px var(--ui); }
.skip:focus { top: 12px; }

.kicker { font: 600 12.5px/1.4 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
html[lang=ar] .kicker { letter-spacing: 0; font-size: 15px; }
.lead { color: var(--mut); font-size: clamp(17px, 1.6vw, 19.5px); max-width: 60ch; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(36px, 5.6vw, 68px); margin-bottom: 18px; color: var(--cream); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
section { position: relative; }

/* buttons */
.btn {
  --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-small { --h: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-ember {
  color: #24130a; background: linear-gradient(180deg, #f7b878, var(--amber) 45%, #e0843e);
  box-shadow: 0 10px 30px -10px rgba(244, 162, 89, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-ember svg { fill: none; }
.btn-ember::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-ember:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(244, 162, 89, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ember:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--ink); background: rgba(20, 16, 24, .45); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--amber); color: var(--cream); transform: translateY(-2px); }

.btn[aria-disabled=true] { pointer-events: none; filter: grayscale(1); opacity: .5; }

/* reveal on scroll (only when the script runs) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ======================================================================= NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 68px;
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter);
  transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(13, 11, 16, .78); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--cream); margin-inline-end: auto; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line-strong), 0 6px 18px -6px rgba(226, 105, 46, .6); }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b, .brand-name small { unicode-bidi: isolate; }
.brand-name b { font: 400 19px var(--display); letter-spacing: .01em; }
.brand-name small { font: 700 13px Ruqaa, serif; color: var(--sand); }
html[lang=ar] .brand-name b { font: 700 20px Ruqaa, serif; }
html[lang=ar] .brand-name small { font: 400 13px Gloock, serif; }
.links { display: flex; gap: 4px; }
.links a { color: var(--mut); text-decoration: none; font: 500 15px var(--ui); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.links a:hover, .links a.on { color: var(--cream); background: var(--paper); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 72px; height: 40px; padding: 0 16px; background: none; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font: 600 14px/1 var(--ui); color: var(--sand); text-decoration: none; transition: border-color .2s, color .2s; }
.lang[lang=ar] { font-size: 15px; padding-bottom: 2px; }
.footer-links .lang { color: var(--sand); }
.lang:hover { border-color: var(--amber); color: var(--amber); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: none; cursor: pointer; position: relative; }
.burger i { position: absolute; inset-inline: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 15px; } .burger i:last-child { top: 24px; }
.nav.open .burger i:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .burger i:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; padding: 12px var(--gutter) 22px; gap: 2px;
    background: rgba(13, 11, 16, .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .links a { font-size: 18px; padding: 12px 8px; border-radius: 10px; }
  .nav.open { background: rgba(13, 11, 16, .96); }
  .nav.open .links { transform: none; opacity: 1; visibility: visible; }
  .burger { display: block; }
}
@media (max-width: 560px) {
  .nav { gap: 8px; }
  .nav-end { gap: 6px; }
  .brand-name { display: none; }
  .lang { padding: 0 11px; }
}

/* ======================================================================= HERO */
.hero {
  position: relative; min-height: max(640px, 100svh); display: grid; align-items: end; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-top) 0%, #2a2356 30%, #43386f 50%, #2a2240 66%, #15111d 82%, var(--deep) 100%);
}
.sky, .ash { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky { z-index: 0; }
.ash { z-index: 6; }
.beams { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.beams i {
  position: absolute; bottom: 30%; width: 7vmax; height: 120vmax; transform-origin: 50% 100%;
  background: linear-gradient(0deg, rgba(210, 205, 255, .26), rgba(210, 205, 255, .06) 55%, transparent 80%);
  filter: blur(6px); mix-blend-mode: screen; clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0);
}
.beams i:first-child { inset-inline-start: 22%; animation: sweepA 17s ease-in-out infinite alternate; }
.beams i:last-child { inset-inline-end: 10%; animation: sweepB 21s ease-in-out infinite alternate; }
@keyframes sweepA { from { transform: rotate(-28deg); } to { transform: rotate(22deg); } }
@keyframes sweepB { from { transform: rotate(26deg); } to { transform: rotate(-30deg); } }
.skyline { position: absolute; inset-inline: 0; bottom: 0; width: 100%; pointer-events: none; }
.skyline.far { height: 58%; z-index: 2; }
.skyline.near { height: 30%; z-index: 4; }
.skyline .win { animation: flick var(--t, 7s) steps(1) infinite; animation-delay: var(--dl, 0s); }
@keyframes flick { 0%, 100% { opacity: 1; } 47% { opacity: .35; } 49% { opacity: 1; } 83% { opacity: 0; } 86% { opacity: 1; } }
.smoke { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.smoke i {
  position: absolute; bottom: 38%; width: 90px; height: 46%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(40, 36, 52, .9), rgba(40, 36, 52, 0) 70%);
  filter: blur(14px); transform-origin: 50% 100%; animation: smoke 12s ease-in-out infinite;
}
.smoke i:nth-child(1) { inset-inline-start: 9%; }
.smoke i:nth-child(2) { inset-inline-start: 84%; animation-delay: -4s; height: 38%; }
.smoke i:nth-child(3) { inset-inline-start: 62%; animation-delay: -8s; height: 30%; bottom: 44%; }
@keyframes smoke { 0%, 100% { transform: skewX(-6deg) scaleY(.92); opacity: .75; } 50% { transform: skewX(9deg) scaleY(1.06); opacity: 1; } }

/* phones and portrait screens: the key art fills the screen */
.hero-art { position: absolute; inset: 0 0 -4%; z-index: 3; pointer-events: none; will-change: transform; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; animation: artIn 2.4s var(--ease) both; }
@keyframes artIn { from { opacity: 0; transform: scale(1.06); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.triptych { display: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(0deg, var(--deep) 0%, rgba(12, 10, 16, .92) 22%, rgba(12, 10, 16, .55) 42%, transparent 62%),
    radial-gradient(120% 60% at 50% 100%, rgba(226, 105, 46, .16), transparent 60%);
}
.hero-copy { position: relative; z-index: 7; text-align: center; padding: 96px var(--gutter) clamp(64px, 10vh, 110px); width: min(980px, 100%); justify-self: center; }
.eyebrow { font: 600 13px var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 10px; text-shadow: 0 1px 12px #000; }
html[lang=ar] .eyebrow { letter-spacing: 0; font-size: 16px; }
.title { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 14px; }
.title-en {
  font: 400 clamp(54px, 11.5vw, 150px)/.95 Gloock, Georgia, serif; color: var(--cream); letter-spacing: -.01em; direction: ltr; unicode-bidi: isolate;
  text-shadow: 0 0 40px rgba(244, 162, 89, .35), 0 4px 30px rgba(0, 0, 0, .6);
}
.title-en .ch { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.25em); animation: chIn 1.4s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .07s); }
.title-en .sp { display: inline-block; width: .25em; }
@keyframes chIn { to { opacity: 1; filter: blur(0); transform: none; } }
.title-ar { font: 700 clamp(28px, 4.4vw, 52px)/1.3 Ruqaa, serif; color: var(--amber); text-shadow: 0 0 22px rgba(226, 105, 46, .55); opacity: 0; animation: chIn 1.6s 1.2s var(--ease) forwards; }
html[lang=ar] .title { flex-direction: column-reverse; }
html[lang=ar] .title-ar { font-size: clamp(54px, 11vw, 136px); line-height: 1.15; color: var(--cream); text-shadow: 0 0 40px rgba(244, 162, 89, .35), 0 4px 30px rgba(0, 0, 0, .6); }
html[lang=ar] .title-en { font-size: clamp(24px, 3.4vw, 40px); color: var(--amber); }
.tagline { font: italic 400 clamp(19px, 2.3vw, 26px)/1.5 var(--text); color: var(--ink); text-shadow: 0 2px 14px #000; margin-bottom: 12px; }
html[lang=ar] .tagline { font-style: normal; }
.hook { color: var(--ink); opacity: .86; font-size: clamp(15.5px, 1.5vw, 18px); max-width: 46ch; margin: 0 auto 26px; text-shadow: 0 2px 12px #000; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 24px; }
.platforms { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 0; margin: 0; font: 500 14px var(--ui); color: var(--mut); }
.platforms li { position: relative; }
.platforms li + li::before { content: ''; position: absolute; inset-inline-start: -12px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--amber); }
.scroll-cue { position: absolute; z-index: 7; bottom: 20px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--amber); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-height: 720px), (max-width: 959px), (max-aspect-ratio: 5/4) { .scroll-cue { display: none; } }
@media (max-width: 520px) {
  .hero-copy { padding-bottom: 54px; }
  .cta .btn { flex: 1 1 100%; }
  .platforms { font-size: 13px; gap: 4px 18px; }
}

/* wide screens: three arched windows onto Sami's life, and Sami standing in front of them */
@media (min-width: 960px) and (min-aspect-ratio: 5/4) {
  .hero { align-items: center; }
  .hero-art { display: none; }
  .triptych {
    display: block; position: absolute; z-index: 3; inset-block: 0; inset-inline-end: 0; width: 52%; pointer-events: none;
    --h: min(68vh, 680px, 44vw); --mx: 0; --my: 0; --sp: 0;
  }
  /* three places a scene can stand in; a click on a side scene brings it to the middle */
  .arch {
    position: absolute; margin: 0; left: 50%; overflow: hidden; background: #111; pointer-events: auto; cursor: pointer;
    border-radius: 999px 999px 18px 18px; border: 1px solid rgba(216, 194, 138, .35);
    box-shadow: 0 40px 80px -30px #000, 0 0 0 6px rgba(15, 12, 11, .55), 0 0 70px -14px rgba(244, 162, 89, .3);
    animation: archIn 1.6s var(--ease) both;
    transition: width 1s var(--ease), height 1s var(--ease), bottom 1s var(--ease), translate 1s var(--ease), rotate 1s var(--ease),
      filter .7s ease, box-shadow .7s ease, border-color .7s ease;
    transform: translate(calc(var(--mx) * var(--k) * -1px + var(--sp) * var(--sx) * 1px), calc(var(--my) * -12px + var(--sp) * var(--sy) * 1px));
  }
  .arch[data-scene=summer] { animation-delay: .5s; }
  .arch[data-scene=night] { animation-delay: .2s; }
  .arch[data-scene=sea] { animation-delay: .7s; }
  .arch.pos-c {
    z-index: 2; height: var(--h); width: calc(var(--h) * .711); bottom: 11%; translate: -50% 0; rotate: 0deg; cursor: default;
    --k: 16; --sx: 0; --sy: -50;
  }
  .arch.pos-l, .arch.pos-r { z-index: 1; height: calc(var(--h) * .78); width: calc(var(--h) * .435); bottom: 15%; filter: brightness(.68) saturate(.85); --k: 28; --sy: 30; }
  .arch.pos-l { translate: calc(-50% - var(--h) * .44) 0; rotate: -5deg; --sx: -140; }
  .arch.pos-r { translate: calc(-50% + var(--h) * .44) 0; rotate: 5deg; --sx: 140; }
  .arch.pos-l:hover, .arch.pos-r:hover, .arch.pos-l:focus-visible, .arch.pos-r:focus-visible {
    filter: brightness(.95) saturate(1); border-color: rgba(244, 162, 89, .7);
    box-shadow: 0 40px 80px -30px #000, 0 0 0 6px rgba(15, 12, 11, .55), 0 0 80px -6px rgba(244, 162, 89, .55);
  }
  .arch:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
  .arch.flash { animation: archGlow 1.2s var(--ease); }
  @keyframes archGlow {
    0% { box-shadow: 0 40px 80px -30px #000, 0 0 0 6px rgba(15, 12, 11, .55), 0 0 0 0 rgba(244, 162, 89, .0); }
    35% { box-shadow: 0 40px 80px -30px #000, 0 0 0 6px rgba(15, 12, 11, .55), 0 0 120px 10px rgba(244, 162, 89, .55); }
  }
  .arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform 1.2s var(--ease); }
  .arch.flash img { animation: archZoom 1.4s var(--ease); }
  @keyframes archZoom { from { transform: scale(1.08); } }
  /* the caption sits under the curve of the arch, where nothing covers it */
  .arch figcaption {
    position: absolute; inset-inline: 0; top: 0; padding: 22% 12px 50px; text-align: center; pointer-events: none;
    font: 600 12px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--cream);
    background: linear-gradient(rgba(0, 0, 0, .62), transparent); text-shadow: 0 1px 8px #000;
  }
  .arch.pos-c figcaption { padding-top: 13%; color: var(--amber); }
  html[lang=ar] .arch figcaption { letter-spacing: 0; font-size: 15px; }
  .tri-sami {
    position: absolute; z-index: 3; left: 50%; bottom: 4%; height: calc(var(--h) * .6); width: auto; max-width: none;
    translate: -50% 0; transform: translate(calc(var(--mx) * -6px), calc(var(--sp) * 40px));
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(244, 162, 89, .18));
    animation: samiIn 1.8s .9s var(--ease) both;
  }
  @keyframes archIn { from { opacity: 0; transform: translateY(40px); } }
  @keyframes samiIn { from { opacity: 0; translate: -50% 30px; } }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(12, 10, 16, .92) 0%, rgba(12, 10, 16, .6) 34%, transparent 56%),
      linear-gradient(0deg, var(--deep) 0%, rgba(12, 10, 16, .7) 12%, transparent 34%);
  }
  html[dir=rtl] .hero-shade {
    background:
      linear-gradient(270deg, rgba(12, 10, 16, .92) 0%, rgba(12, 10, 16, .6) 34%, transparent 56%),
      linear-gradient(0deg, var(--deep) 0%, rgba(12, 10, 16, .7) 12%, transparent 34%);
  }
  .hero-copy {
    justify-self: start; text-align: start; width: min(540px, 42%); padding: 90px 0 40px;
    margin-inline-start: max(var(--gutter), calc((100vw - 1200px) / 2));
  }
  .title { align-items: flex-start; }
  .title-en { font-size: clamp(56px, 6.6vw, 118px); }
  html[lang=ar] .title-ar { font-size: clamp(56px, 6.4vw, 112px); }
  .skyline.near { z-index: 2; }
  .hook { margin-inline: 0; }
  .cta, .platforms { justify-content: flex-start; }
  .beams i:first-child { inset-inline-start: 46%; }
}

/* ======================================================================= THE STORY, TOLD AS YOU SCROLL */
.tale {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  padding-inline: max(var(--gutter), calc((100% - 1200px) / 2)); background: linear-gradient(180deg, var(--deep), var(--night) 12%);
}
.tale-stage { position: sticky; top: 84px; height: calc(100svh - 110px); align-self: start; margin-block: 60px; }
.tale-frame {
  position: relative; height: 100%; border-radius: var(--radius); overflow: hidden; background: #0b090d;
  box-shadow: 0 40px 80px -30px #000, 0 0 0 1px var(--line); --x: 50%; --y: 45%;
}
.tale-frame.knocking { animation: knock 2.6s 2; }
.tale-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease; }
.tale-frame img.on { opacity: 1; animation: kb 14s ease-out forwards; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes knock {
  0%, 55%, 100% { transform: translate(0, 0); }
  58% { transform: translate(-4px, 1px); } 60% { transform: translate(3px, 0); }
  64% { transform: translate(-4px, 1px); } 66% { transform: translate(3px, 0); }
  70% { transform: translate(-5px, 1px); } 72% { transform: translate(0, 0); }
}
.tale-frame .dark {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s;
  background: radial-gradient(circle at var(--x) var(--y), rgba(255, 220, 160, .08) 0, transparent 110px, rgba(6, 5, 9, .55) 190px, rgba(6, 5, 9, .9) 330px);
}
.tale-frame .bulb {
  position: absolute; left: 50%; top: 13%; width: 260px; height: 260px; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 196, 120, .5), rgba(255, 170, 90, .12) 40%, transparent 70%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 1s;
}
.tale-frame[data-at="1"] .dark { opacity: 1; }
.tale-frame[data-at="1"] .bulb { opacity: 1; animation: bulb 5s infinite; }
@keyframes bulb { 0%, 100% { opacity: .9; } 41% { opacity: .95; } 42% { opacity: .3; } 43% { opacity: .9; } 77% { opacity: .75; } 78% { opacity: .2; } 79.5% { opacity: .85; } }
.tale-year { position: absolute; inset-inline: 0; top: 0; padding: 18px 22px 50px; background: linear-gradient(rgba(0, 0, 0, .72), transparent); display: flex; flex-direction: column; }
.tale-year b { font: 400 28px Gloock, serif; color: var(--cream); }
html[lang=ar] .tale-year b { font: 700 28px Ruqaa, serif; }
.tale-year span { font: 500 14px var(--ui); color: var(--sand); }
.tale-steps { padding-block: 22vh 10vh; }
.tale-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .7s var(--ease); }
.js .tale-step:not(.active) { opacity: .28; }
.tale-step .big { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; color: var(--cream); margin-bottom: 18px; }
html[lang=ar] .tale-step .big { line-height: 1.7; }
.tale-step > p:not(.big):not(.kicker):not(.clock):not(.quote) { color: var(--mut); font-size: 18px; }
.tale-step .clock { font: 400 clamp(44px, 5vw, 72px)/1 Gloock, serif; color: var(--amber); margin-bottom: 18px; text-shadow: 0 0 30px rgba(226, 105, 46, .4); }
html[lang=ar] .tale-step .clock { font-family: Ruqaa, serif; font-weight: 700; }
.tale-step .quote { font-style: italic; color: var(--sand); font-size: clamp(22px, 2.2vw, 28px); }
html[lang=ar] .tale-step .quote { font-style: normal; }
.tale-decide { min-height: 100vh; }
.storyteller { margin: 40px 0 0; padding-inline-start: 22px; border-inline-start: 2px solid rgba(216, 194, 138, .4); }
.storyteller p { font: italic 400 clamp(20px, 2vw, 26px)/1.5 var(--text); color: var(--sand); margin-bottom: 8px; }
html[lang=ar] .storyteller p { font-style: normal; font-family: Ruqaa, Naskh, serif; font-weight: 700; }
.storyteller cite { font: 600 12.5px var(--ui); letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--dim); }
html[lang=ar] .storyteller cite { letter-spacing: 0; font-size: 15px; }

.decision {
  padding: clamp(20px, 3vw, 30px); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(42, 31, 25, .95), rgba(24, 18, 15, .97)); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px #000, inset 0 1px 0 rgba(255, 235, 200, .06);
}
.decision-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font: 600 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; }
html[lang=ar] .chip { letter-spacing: 0; font-size: 14px; }
.chip svg { width: 14px; height: 14px; fill: currentColor; }
.chip-red { color: #ff8b80; background: rgba(239, 91, 91, .12); border: 1px solid rgba(239, 91, 91, .45); }
.decision-time { font: 400 30px/1 Gloock, serif; color: var(--red); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: end; }
.decision h3 { font-size: clamp(26px, 2.6vw, 34px); color: var(--cream); margin-bottom: 10px; }
.decision > p { color: var(--ink); opacity: .92; }
.timer { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 16px 0 18px; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), var(--amber)); transform-origin: left; border-radius: inherit; }
html[dir=rtl] .timer i { transform-origin: right; }
.untimed .timer, .untimed .decision-time { visibility: hidden; }
.options { display: grid; gap: 10px; }
.options button {
  display: flex; align-items: center; gap: 14px; text-align: start; width: 100%; min-height: 56px; padding: 12px 18px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 240, 220, .045); cursor: pointer;
  font: 600 16.5px var(--ui); color: var(--ink); transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.options button:hover { background: rgba(244, 162, 89, .12); border-color: rgba(244, 162, 89, .55); transform: translateX(4px); }
html[dir=rtl] .options button:hover { transform: translateX(-4px); }
.options button.picked { border-color: var(--amber); background: rgba(244, 162, 89, .18); }
.options button[disabled] { cursor: default; }
.options button[disabled]:not(.picked) { opacity: .4; transform: none; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-strong); font: 600 13px var(--ui); color: var(--mut); }
.outcome { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line-strong); animation: fadeUp .8s var(--ease); }
.outcome h4 { font-size: 26px; color: var(--amber); margin-bottom: 8px; }
.remember { display: flex; align-items: center; gap: 8px; font: 500 14px var(--ui); color: var(--sand); }
.remember svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.outcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.decision-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 16px; }
.decision .hint { margin: 0; font: 13.5px var(--ui); color: var(--dim); flex: 1 1 260px; }
.decision.done .hint { visibility: hidden; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--amber); font: 500 14px var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .tale { grid-template-columns: minmax(0, 1fr); padding-inline: 0; gap: 0; }
  .tale-stage { grid-area: 1 / 1; top: 0; height: 100svh; margin: 0; }
  .tale-frame { border-radius: 0; box-shadow: none; }
  .tale-year { padding-top: 82px; }
  .tale-steps { grid-area: 1 / 1; position: relative; z-index: 2; padding: 60svh var(--gutter) 20svh; }
  .tale-step, .js .tale-step:not(.active) { opacity: 1; min-height: 0; margin-bottom: 70svh; }
  .tale-step:not(.tale-decide) { padding: 22px; border-radius: 20px; background: rgba(12, 10, 14, .84); backdrop-filter: blur(8px); border: 1px solid var(--line); }
  .tale-decide { min-height: 0; margin-bottom: 40svh; }
  .tale-step .big { font-size: 21px; }
}

/* ======================================================================= A SURVIVAL CARD */
.cards-demo { padding-block: clamp(80px, 11vw, 140px); background: radial-gradient(60% 60% at 70% 50%, rgba(74, 60, 120, .2), transparent 70%), var(--night); overflow: hidden; }
.cards-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.meters { display: flex; justify-content: center; gap: clamp(10px, 3vw, 26px); margin-bottom: 18px; }
.meter { position: relative; display: grid; justify-items: center; gap: 4px; }
.meter svg { width: 54px; height: 54px; }
.m-bg { fill: none; stroke: rgba(236, 210, 170, .14); stroke-width: 3; }
.m-fg { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dasharray .7s var(--ease), stroke .3s; }
.meter.up .m-fg { stroke: var(--teal); }
.meter.down .m-fg { stroke: var(--red); }
.meter.up, .meter.down { animation: meterBump .6s var(--ease); }
@keyframes meterBump { 40% { transform: scale(1.14); } }
.m-val { position: absolute; top: 17px; inset-inline: 0; text-align: center; font: 600 13px var(--ui); color: var(--ink); }
.m-name { font: 600 11px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
html[lang=ar] .m-name { letter-spacing: 0; font-size: 13px; }
.card-zone { position: relative; height: 360px; display: grid; place-items: center; }
.scard {
  width: min(300px, 82%); height: 340px; border-radius: 24px; padding: 18px 20px 20px; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #2c211b, #17110e); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -24px #000, 0 0 50px -20px rgba(244, 162, 89, .35);
  cursor: grab; touch-action: pan-y; user-select: none; transition: transform .4s var(--ease), opacity .4s; direction: inherit;
}
.scard:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.scard.dragging { transition: none; cursor: grabbing; }
.scard.gone-l { transform: translateX(-150%) rotate(-20deg) !important; opacity: 0; }
.scard.gone-r { transform: translateX(150%) rotate(20deg) !important; opacity: 0; }
.scard.enter { animation: cardIn .4s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.scard.scene img { width: 180px; height: 130px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-strong); }
.scard img { height: 160px; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .6)); margin-bottom: 10px; }
.scard-body { text-align: center; }
html[lang=ar] .scard-body { direction: rtl; }
.scard-body b { display: block; font: 600 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
html[lang=ar] .scard-body b { letter-spacing: 0; font-size: 14px; }
.scard-body p { font-size: 15.5px; line-height: 1.55; color: var(--ink); margin: 0; }
.side { position: absolute; top: 6px; z-index: 2; max-width: 46%; padding: 6px 12px; border-radius: 999px; background: var(--amber); color: #24130a; font: 600 13px var(--ui); opacity: 0; pointer-events: none; transition: opacity .15s; }
.side-l { left: 0; } .side-r { right: 0; }
.card-choices { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; direction: ltr; }
.card-choices .btn { white-space: normal; text-align: center; line-height: 1.3; flex: 1 1 0; }
.card-fx { text-align: center; min-height: 1.6em; margin: 16px 0 0; font: 600 15px var(--ui); color: var(--sand); }
@media (max-width: 860px) { .cards-grid { grid-template-columns: minmax(0, 1fr); } }

/* ======================================================================= THE ROAD DOWN THE PAGE */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; pointer-events: none; }
@media (min-width: 1300px) { .progress { display: none; } }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--amber)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px var(--amber); }
html[dir=rtl] .progress i { transform-origin: right; }
.rail { position: fixed; z-index: 40; top: 96px; bottom: 36px; inset-inline-start: 10px; width: 40px; opacity: 0; transition: opacity .6s; pointer-events: none; }
.rail.show { opacity: 1; pointer-events: auto; }
.rail svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail-base { fill: none; stroke: rgba(236, 210, 170, .16); stroke-width: 2; stroke-dasharray: 2 5; }
.rail-lit { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(244, 162, 89, .8)); }
.rail-head { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff3dd; box-shadow: 0 0 10px 4px rgba(244, 162, 89, .8), 0 0 26px 8px rgba(226, 105, 46, .4); animation: emberGlow 1.6s ease-in-out infinite alternate; }
@keyframes emberGlow { to { box-shadow: 0 0 14px 6px rgba(244, 162, 89, .9), 0 0 34px 12px rgba(226, 105, 46, .45); } }
.rail ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rail li { position: absolute; width: 0; height: 0; }
.rail a { position: absolute; left: -11px; top: -11px; display: grid; place-items: center; width: 22px; height: 22px; text-decoration: none; }
.rail a i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(236, 210, 170, .4); background: var(--night); transition: background .3s, transform .3s, border-color .3s; flex: 0 0 auto; }
.rail li.on a i { background: var(--amber); border-color: var(--amber); }
.rail li.here a i { transform: scale(1.4); box-shadow: 0 0 10px var(--amber); }
.rail a span { position: absolute; left: 28px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgba(16, 13, 18, .92); border: 1px solid var(--line); font: 500 12.5px var(--ui); color: var(--ink); opacity: 0; translate: -6px 0; transition: opacity .25s, translate .25s; pointer-events: none; }
html[dir=rtl] .rail a span { left: auto; right: 28px; translate: 6px 0; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; translate: 0 0; }
@media (max-width: 1299px) { .rail { display: none; } }

/* ======================================================================= SKILLS */
.skills { padding-block: clamp(80px, 11vw, 140px); background: linear-gradient(180deg, var(--night), #120d0d 50%, var(--night)); }
.skill-demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: clamp(40px, 6vw, 70px); }
.demo { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.demo-head h3 { font-size: 30px; color: var(--cream); margin-bottom: 8px; }
.demo-head p { font-style: italic; color: var(--mut); margin: 0; font-size: 16px; }
html[lang=ar] .demo-head p { font-style: normal; }
.demo-play { position: relative; }
.demo-play canvas { display: block; width: 100%; height: auto; aspect-ratio: 560 / 200; border-radius: 16px; background: radial-gradient(80% 120% at 50% 50%, #1b1218, #0b090d); border: 1px solid var(--line); touch-action: none; }
.hb-read { position: absolute; top: 10px; left: 14px; display: flex; flex-direction: column; pointer-events: none; }
.hb-read b { font: 400 40px/1 Gloock, serif; color: var(--red); transition: color .3s; font-variant-numeric: tabular-nums; }
.demo.calm .hb-read b { color: var(--teal); }
.hb-read span { font: 600 11px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
html[lang=ar] .hb-read span { letter-spacing: 0; font-size: 13px; }
.demo-time { position: absolute; top: 10px; right: 14px; font: 400 22px Gloock, serif; color: var(--cream); font-variant-numeric: tabular-nums; }
.demo-how { margin: 0; font: 14.5px/1.5 var(--ui); color: var(--mut); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-actions .btn[disabled] { opacity: .45; pointer-events: none; }
.demo-result { margin: 0; min-height: 1.6em; font: 600 15px/1.5 var(--ui); color: var(--sand); }
.demo[data-result=win] .demo-result { color: var(--teal); }
.demo[data-result=fail] .demo-result { color: var(--red); }
.skill-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.skill-list li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); transition: border-color .25s, background .25s; }
.skill-list li:hover { border-color: rgba(244, 162, 89, .4); background: rgba(244, 162, 89, .06); }
.skill-list b { display: block; font: 600 15px var(--ui); color: var(--cream); margin-bottom: 4px; }
.skill-list span { font: 14px/1.45 var(--ui); color: var(--mut); }
@media (max-width: 860px) { .skill-demos { grid-template-columns: minmax(0, 1fr); } }

/* ======================================================================= FAQ AND CONSENT */
.faq { padding-block: clamp(70px, 10vw, 120px); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 70px); }
.faq h2 { font-size: clamp(32px, 4vw, 52px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; font: 400 clamp(19px, 1.8vw, 23px)/1.35 var(--display); color: var(--cream); }
html[lang=ar] .faq-list summary { font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font: 400 26px/1 var(--ui); color: var(--amber); transition: transform .3s var(--ease); flex: 0 0 auto; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--mut); margin: 0 0 20px; max-width: 62ch; }
@media (max-width: 760px) { .faq-inner { grid-template-columns: minmax(0, 1fr); } }
.consent {
  position: fixed; z-index: 80; bottom: 16px; inset-inline-start: 16px; width: min(560px, calc(100% - 32px));
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 16px 18px; border-radius: 18px;
  background: rgba(22, 17, 20, .97); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px -20px #000; animation: fadeUp .5s var(--ease);
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 280px; margin: 0; font: 14px/1.55 var(--ui); color: var(--ink); }
.consent b { color: var(--cream); }
.consent-actions { display: flex; gap: 8px; }
.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; }

/* ======================================================================= SKILLS SLIDER, TRY-IT BAND */
.btn svg .fill { fill: currentColor; stroke: none; }
html[dir=rtl] .btn svg:has(.fill) { transform: scaleX(-1); }
.store svg.line { fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 1100px) { .nav-demo { display: none !important; } }

.slider { margin-top: clamp(80px, 10vw, 130px); }
.slider-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.slider-head h3 { font-size: clamp(22px, 2.4vw, 30px); color: var(--sand); }
.slider-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.snav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 240, 220, .03); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s, background .2s; }
.snav:hover { border-color: var(--amber); color: var(--amber); background: rgba(244, 162, 89, .08); }
.snav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir=rtl] .snav svg { transform: scaleX(-1); }
.slides {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 20px; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; cursor: grab; align-items: stretch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.slides::-webkit-scrollbar { display: none; }
.slides { user-select: none; -webkit-user-select: none; }
.slides.grabbing { cursor: grabbing; scroll-snap-type: none; }
.slides.grabbing .slide figure { transform: none !important; }
.slides:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 20px; }
.slide { flex: 0 0 clamp(214px, 23vw, 264px); scroll-snap-align: start; }
.slide figure {
  margin: 0; height: 100%; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); transition: transform .45s var(--ease), border-color .3s, box-shadow .3s;
}
.slide:hover figure { transform: translateY(-6px); border-color: rgba(244, 162, 89, .45); box-shadow: 0 24px 50px -24px #000, 0 0 40px -20px rgba(244, 162, 89, .5); }
.thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0b090d; }
.thumb::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(24, 19, 16, .95)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .9s var(--ease); pointer-events: none; -webkit-user-drag: none; }
.slide:hover .thumb img { transform: scale(1.06); }
.slide figcaption { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 16px 18px; margin-top: -14px; position: relative; }
.slide .tag { font: 600 11px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
html[lang=ar] .slide .tag { letter-spacing: 0; font-size: 13px; }
.slide figcaption b { font: 600 17px var(--ui); color: var(--cream); }
.slide figcaption .d { font: 14px/1.45 var(--ui); color: var(--mut); }
.slide-more figure { border-color: rgba(244, 162, 89, .4); background: radial-gradient(90% 50% at 50% 100%, rgba(244, 162, 89, .12), transparent 70%), var(--panel); }
.more-thumb img { filter: brightness(.32) saturate(.7); }
.more-count { position: absolute; z-index: 1; inset: 0 0 auto; padding-top: 18%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.more-count b { direction: ltr; unicode-bidi: isolate; font: 400 76px/1 Gloock, serif; color: var(--amber); text-shadow: 0 0 34px rgba(226, 105, 46, .55); }
.more-count span { font: 600 11.5px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
html[lang=ar] .more-count span { letter-spacing: 0; font-size: 14px; }
.more-chips { position: absolute; z-index: 1; inset-inline: 12px; bottom: 30px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.more-chips li { padding: 2px 9px; border-radius: 999px; background: rgba(15, 12, 11, .72); border: 1px solid rgba(236, 210, 170, .22); font: 500 11.5px/1.6 var(--ui); color: var(--ink); }
.more-cta { margin-top: auto; padding-top: 10px; }
.more-cta .btn { width: 100%; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.dots button { position: relative; width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; }
.dots button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; translate: -50% -50%; border-radius: 99px; background: rgba(236, 210, 170, .25); transition: width .3s var(--ease), background .3s; }
.dots button.on::before { width: 22px; background: var(--amber); }

.band { padding-block: clamp(30px, 5vw, 60px); }
.band-inner {
  position: relative; display: flex; align-items: center; gap: clamp(18px, 4vw, 40px); padding: clamp(22px, 4vw, 40px);
  border-radius: 28px; border: 1px solid rgba(244, 162, 89, .3); overflow: hidden;
  background: radial-gradient(70% 120% at 0% 100%, rgba(226, 105, 46, .28), transparent 70%), linear-gradient(110deg, rgba(42, 31, 25, .9), rgba(46, 37, 80, .55));
}
html[dir=rtl] .band-inner { background: radial-gradient(70% 120% at 100% 100%, rgba(226, 105, 46, .28), transparent 70%), linear-gradient(250deg, rgba(42, 31, 25, .9), rgba(46, 37, 80, .55)); }
.band-inner > img { flex: 0 0 auto; align-self: flex-end; height: 168px; width: auto; max-width: none; margin-block: -12px calc(-1 * clamp(22px, 4vw, 40px) + 10px); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); }
.band-inner.wrap { width: min(1120px, calc(100% - 2 * var(--gutter))); }
.band-copy { flex: 1 1 auto; }
.band-copy h2 { font-size: clamp(26px, 3vw, 38px); color: var(--cream); margin-bottom: 8px; }
.band-copy p { margin: 0; color: var(--mut); max-width: 56ch; }
.band-cta { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
@media (max-width: 860px) {
  .band-inner { flex-direction: column; text-align: center; }
  .band-inner > img { display: none; }
  .band-copy p { margin-inline: auto; }
  .band-cta { justify-content: center; }
}

/* ======================================================================= ROADS */
.roads { padding-block: clamp(80px, 11vw, 140px); background: radial-gradient(80% 60% at 30% 40%, rgba(74, 60, 120, .22), transparent 70%), var(--night); overflow: hidden; }
.roads-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tree { position: relative; }
.tree > svg, .tree-labels { width: 100%; }
@media (max-width: 700px) {
  .tree { padding-bottom: 34px; }
  .tree .t-label { font-size: 10.5px; padding: 3px 7px; }
  .tree .t-label.small { display: none; }
  .tree .t-label.alt { translate: -50% calc(-100% - 22px); }
  .tree .t-label.fork { left: var(--x) !important; translate: -50% calc(-100% - 8px) !important; }
}
.tree > svg { height: auto; overflow: visible; }
.tree-labels { position: absolute; inset: 0; pointer-events: none; }
.t-base { fill: none; stroke: rgba(236, 210, 170, .16); stroke-width: 2; }
.t-glow { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(244, 162, 89, .8)); opacity: 0; transition: opacity .5s; }
.t-glow.on { opacity: 1; }
.t-fall { stroke: rgba(239, 91, 91, .45); stroke-dasharray: 5 7; }
.t-cross { stroke: rgba(236, 210, 170, .1); stroke-dasharray: 2 6; }
.js .tree:not(.drawn) .t-base { stroke-dashoffset: var(--len); stroke-dasharray: var(--len); }
.tree.drawn .t-base:not(.t-fall):not(.t-cross) { transition: stroke-dashoffset 2.2s var(--ease); transition-delay: var(--dl, 0s); stroke-dasharray: var(--len); stroke-dashoffset: 0; }
.t-node { fill: var(--night); stroke: var(--line-strong); stroke-width: 2; transition: fill .3s, stroke .3s, r .3s; }
.t-node.road { stroke: var(--sand); }
.t-node.on { fill: var(--amber); stroke: var(--cream); }
.t-spark { fill: #fff3dd; filter: drop-shadow(0 0 8px var(--amber)); }
.t-label {
  position: absolute; translate: -50% 0; pointer-events: auto; white-space: nowrap; cursor: pointer;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(16, 13, 18, .82);
  font: 600 13px var(--ui); color: var(--mut); transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.t-label.fixed { cursor: default; color: var(--dim); background: rgba(16, 13, 18, .6); font-weight: 500; }
.t-label.road { color: var(--ink); border-color: var(--line-strong); }
.t-label.road:hover, .t-label.on { color: #24130a; background: var(--amber); border-color: var(--amber); transform: translateY(-2px); }
.t-label.fall { color: #ff9a8f; border-color: rgba(239, 91, 91, .4); }
.t-label.fall.on, .t-label.fall:hover { background: var(--red); color: #200; border-color: var(--red); }
.road-card {
  position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 26px; align-items: end;
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  box-shadow: 0 30px 70px -40px #000; min-height: 360px; overflow: hidden;
}
.road-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 20% 100%, rgba(244, 162, 89, .18), transparent 70%); pointer-events: none; }
.road-figure { position: relative; height: 300px; align-self: end; isolation: isolate; }
.road-figure img { position: absolute; bottom: 0; height: 100%; width: auto; max-width: none; inset-inline-start: 50%; translate: -50% 0; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); transition: opacity .5s, transform .6s var(--ease); }
html[dir=rtl] .road-figure img { translate: 50% 0; }
.road-figure .road-mate { height: 80%; inset-inline-start: 18%; z-index: -1; opacity: .55; filter: brightness(.6) drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); }
.road-figure img.swap { opacity: 0; transform: translateY(14px); }
.road-body { position: relative; }
.road-body h3 { font-size: clamp(30px, 3vw, 40px); color: var(--cream); margin-bottom: 12px; }
.road-ar { font: 700 .72em Ruqaa, serif; color: var(--amber); margin-inline-start: 8px; }
html[lang=ar] .road-ar { display: none; }
.road-body > p { color: var(--ink); opacity: .9; font-size: 16.5px; }
.ends { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ends li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 13px var(--ui); border: 1px solid; }
.ends li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ends .liberty { color: var(--teal); border-color: rgba(98, 192, 170, .35); }
.ends .survival { color: var(--sky-blue); border-color: rgba(143, 201, 234, .35); }
.ends .death { color: var(--red); border-color: rgba(239, 91, 91, .35); }
.ends .dark { color: #d58a73; border-color: rgba(213, 138, 115, .35); }
.ends .count { color: var(--mut); border-color: var(--line); }
.ends .count::before { display: none; }
@media (max-width: 980px) {
  .roads-grid { grid-template-columns: minmax(0, 1fr); }
  .road-card { max-width: 640px; }
}
@media (max-width: 520px) {
  .road-card { grid-template-columns: 96px minmax(0, 1fr); padding: 20px; gap: 14px; min-height: 0; }
  .road-figure { height: 220px; }
  .road-figure .road-mate { display: none; }
}

/* ======================================================================= PEOPLE */
.people { padding-block: clamp(80px, 11vw, 140px); background: linear-gradient(180deg, var(--night), #15100e 50%, var(--night)); overflow: hidden; }
.family, .others { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 26px); position: relative; }
.family { padding-bottom: 18px; }
.family::after, .others::after {
  content: ''; position: absolute; inset-inline: 5%; bottom: 8px; height: 30px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(244, 162, 89, .14), transparent 70%);
}
.person { position: relative; background: none; border: 0; padding: 0 0 34px; cursor: pointer; display: flex; flex-direction: column; align-items: center; flex: 0 1 auto; }
.person img { height: clamp(210px, 34vw, 400px); width: auto; max-width: none; transition: transform .5s var(--ease), filter .5s; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .55)) brightness(.78) saturate(.85); transform-origin: 50% 100%; }
.person.small img { height: clamp(135px, 22vw, 260px); }
.person::before { content: ''; position: absolute; bottom: 30px; left: 50%; width: 70%; height: 14px; translate: -50% 50%; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .7), transparent 70%); }
.person-name { position: absolute; bottom: 0; font: 600 14px var(--ui); color: var(--mut); white-space: nowrap; transition: color .3s; }
.person:hover img, .person:focus-visible img, .person.is-on img { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .6)) drop-shadow(0 0 24px rgba(244, 162, 89, .3)) brightness(1.04); transform: translateY(-8px) scale(1.02); }
.person.is-on .person-name, .person:hover .person-name { color: var(--amber); }
.person.hero-person img { height: clamp(240px, 38vw, 450px); }
.person.hero-person .person-name { font-size: 15.5px; color: var(--amber); }
.bio { text-align: center; max-width: 620px; margin: 30px auto 0; min-height: 170px; }
.family .person { animation: none; }
@supports (animation-timeline: view()) {
  .family .person { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  .family .person:nth-child(2) { animation-range: entry 6% cover 38%; } .family .person:nth-child(3) { animation-range: entry 12% cover 41%; }
  .family .person:nth-child(4) { animation-range: entry 18% cover 44%; } .family .person:nth-child(5) { animation-range: entry 24% cover 47%; }
  @keyframes rise { from { opacity: 0; transform: translateY(60px); } }
  .strip { animation: stripIn linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes stripIn { from { opacity: 0; transform: scale(.94); } }
}
.bio h3 { font-size: clamp(30px, 3.4vw, 42px); color: var(--cream); margin-bottom: 8px; }
.bio p:last-child { color: var(--ink); opacity: .9; }
.bio.swap > * { animation: fadeUp .5s var(--ease); }
.sub-head { text-align: center; font-size: clamp(24px, 2.6vw, 32px); color: var(--sand); margin: clamp(50px, 7vw, 80px) 0 28px; }
.others .person img { height: clamp(170px, 22vw, 290px); }
.others .person.small img { height: clamp(105px, 13vw, 170px); }
@media (max-width: 760px) {
  .others { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: 4px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .others::-webkit-scrollbar { display: none; }
  .others .person { scroll-snap-align: center; flex: 0 0 auto; }
  .others::after { display: none; }
}

/* ======================================================================= YEARS */
.people .years-grid { margin-top: clamp(90px, 12vw, 150px); }
.years-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.years-stage { position: relative; aspect-ratio: 768 / 1100; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px #000, 0 0 0 1px var(--line); background: #111; }
.years-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 1.1s ease; transform: scale(1.06); }
.years-pics img.on { opacity: 1; animation: kb 9s ease-out forwards; }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1); } }
.years-sami { position: absolute; bottom: 3%; left: 50%; translate: -50% 0; height: 46%; width: auto; max-width: none; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .55)); transition: opacity .5s, transform .5s var(--ease); }
.years-sami.swap { opacity: 0; transform: translateY(10px); }
.years-label { position: absolute; inset-inline: 0; top: 0; padding: 16px 20px 40px; background: linear-gradient(rgba(0, 0, 0, .7), transparent); display: flex; flex-direction: column; }
.years-label b { font: 400 26px Gloock, serif; color: var(--cream); }
html[lang=ar] .years-label b { font: 700 26px Ruqaa, serif; }
.years-label span { font: 500 14px var(--ui); color: var(--sand); }
.years-range { margin: 4px 0 30px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--amber) var(--p, 0%), rgba(236, 210, 170, .18) var(--p, 0%)); }
html[dir=rtl] input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(-90deg, var(--amber) var(--p, 0%), rgba(236, 210, 170, .18) var(--p, 0%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(236, 210, 170, .18); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--amber); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--cream); border: 4px solid var(--amber); box-shadow: 0 0 16px rgba(244, 162, 89, .8); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 4px solid var(--amber); box-shadow: 0 0 16px rgba(244, 162, 89, .8); }
.years-ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.years-ticks li { font: 500 12.5px/1.3 var(--ui); color: var(--dim); text-align: center; cursor: pointer; transition: color .3s; }
.years-ticks li:first-child { text-align: start; } .years-ticks li:last-child { text-align: end; }
.years-ticks li.on { color: var(--amber); }
.looks { display: flex; gap: 6px; align-items: flex-end; padding-top: 18px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.looks::-webkit-scrollbar { display: none; }
.look { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 68px; }
.look img { height: 120px; width: auto; max-width: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)) brightness(.85); transition: transform .3s var(--ease), filter .3s; }
.look:hover img { transform: translateY(-5px); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)) brightness(1.05); }
.look span { font: 500 11px/1.25 var(--ui); color: var(--dim); text-align: center; }
@media (max-width: 860px) {
  .years-grid { grid-template-columns: minmax(0, 1fr); }
  .years-stage { max-width: 460px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 4.6; order: 2; }
  .years-copy { order: 1; }
  .years-ticks li { font-size: 11px; }
}

/* ======================================================================= THE GAME */
.game { padding-block: clamp(80px, 11vw, 140px) 0; background: radial-gradient(70% 50% at 50% 20%, rgba(74, 60, 120, .25), transparent 70%), var(--night); }
.phones { position: relative; display: flex; justify-content: center; align-items: center; height: clamp(420px, 52vw, 640px); margin-bottom: clamp(60px, 8vw, 100px); perspective: 1400px; }
.phone {
  position: absolute; margin: 0; width: clamp(180px, 21vw, 280px); aspect-ratio: 520 / 1040; border-radius: 34px; overflow: hidden;
  border: 7px solid #0a090c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 70px -25px #000, 0 0 60px -20px rgba(244, 162, 89, .35);
  background: #000; transition: transform .7s var(--ease), z-index 0s; will-change: transform;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.p1 { transform: translateX(-112%) translateY(var(--py, 0)) rotate(-9deg) scale(.88); z-index: 1; }
.phone.p2 { transform: translateX(-38%) translateY(calc(var(--py, 0) * -1)) rotate(-3deg) scale(.98); z-index: 3; }
.phone.p3 { transform: translateX(38%) translateY(var(--py, 0)) rotate(3deg) scale(.98); z-index: 2; }
.phone.p4 { transform: translateX(112%) translateY(calc(var(--py, 0) * -1)) rotate(9deg) scale(.88); z-index: 1; }
.phone:hover { z-index: 5; }
.phones:hover .phone:hover { transform: translateY(-20px) rotate(0) scale(1.04); }
.phones:hover .phone.p1:hover { transform: translateX(-112%) translateY(-20px) scale(1); }
.phones:hover .phone.p4:hover { transform: translateX(112%) translateY(-20px) scale(1); }
.phones:hover .phone.p2:hover { transform: translateX(-38%) translateY(-20px) scale(1.04); }
.phones:hover .phone.p3:hover { transform: translateX(38%) translateY(-20px) scale(1.04); }
@media (max-width: 760px) {
  .phones { height: auto; justify-content: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; perspective: none; padding: 10px var(--gutter) 30px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone, .phone.p1, .phone.p2, .phone.p3, .phone.p4 { position: relative; transform: none !important; flex: 0 0 62%; width: auto; scroll-snap-align: center; }
}
.features-head { text-align: center; font-size: clamp(24px, 2.6vw, 32px); color: var(--sand); margin: 0 0 26px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.f-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b090d; }
.f-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(26, 20, 17, .96) 100%); }
.f-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .9s var(--ease); }
.feature:hover .f-art img { transform: scale(1.06); }
.f-body { position: relative; padding: 0 22px 24px; margin-top: -30px; }
.f-body .f-icon { background: #2a1f19; box-shadow: 0 0 0 1px rgba(244, 162, 89, .3), 0 10px 20px -8px #000; }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 240, 220, .045), rgba(255, 240, 220, .015)); transition: border-color .3s, transform .4s var(--ease), background .3s; }
.feature:hover { border-color: rgba(244, 162, 89, .4); transform: translateY(-4px); background: linear-gradient(180deg, rgba(244, 162, 89, .08), rgba(255, 240, 220, .015)); }
.f-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(244, 162, 89, .12); margin-bottom: 18px; }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 24px; color: var(--cream); margin-bottom: 10px; }
.feature p { color: var(--mut); font-size: 16px; margin: 0; }
@media (max-width: 1100px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

.strip { margin-block: clamp(70px, 9vw, 110px) 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip-track { display: flex; gap: 16px; width: max-content; animation: strip 90s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track figure { margin: 0; position: relative; width: clamp(150px, 15vw, 210px); aspect-ratio: 768 / 1250; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.strip-track img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.strip-track figure:hover img { transform: scale(1.06); }
.strip-track figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 12px 10px; font: 600 12.5px var(--ui); color: var(--cream); background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
@keyframes strip { to { transform: translateX(-50%); } }
html[dir=rtl] .strip-track { animation-name: stripR; }
@keyframes stripR { to { transform: translateX(50%); } }

.numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: clamp(60px, 8vw, 100px) 0 0; padding-block: clamp(40px, 6vw, 70px); border-block: 1px solid var(--line); }
.numbers div { text-align: center; display: flex; flex-direction: column-reverse; }
.numbers dd { direction: ltr; unicode-bidi: isolate; margin: 0; font: 400 clamp(38px, 5vw, 64px)/1 Gloock, serif; color: var(--amber); text-shadow: 0 0 30px rgba(226, 105, 46, .4); font-variant-numeric: tabular-nums; }
.numbers dt { font: 500 13px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-top: 10px; }
html[lang=ar] .numbers dt { letter-spacing: 0; font-size: 15px; }
@media (max-width: 760px) { .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }

/* ======================================================================= CARE */
.care { padding-block: clamp(70px, 9vw, 110px); }
.care-inner { display: flex; gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); border: 1px solid rgba(216, 194, 138, .25); background: linear-gradient(120deg, rgba(216, 194, 138, .07), rgba(216, 194, 138, .02)); max-width: 980px; }
.care-inner img { border-radius: 26px; flex: 0 0 auto; box-shadow: 0 20px 40px -18px rgba(226, 105, 46, .6); width: clamp(84px, 12vw, 120px); height: auto; }
.care h2 { font-size: clamp(28px, 3vw, 38px); color: var(--sand); margin-bottom: 14px; }
.care p { color: var(--ink); opacity: .88; font-size: 16.5px; }
.care p:last-child { margin: 0; }
@media (max-width: 600px) { .care-inner { flex-direction: column; align-items: flex-start; } }

/* ======================================================================= DOWNLOAD */
.download { padding-block: clamp(80px, 11vw, 140px); background: radial-gradient(60% 70% at 25% 60%, rgba(226, 105, 46, .18), transparent 70%), linear-gradient(180deg, var(--night), #140f12); overflow: hidden; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.dl-phone { display: grid; place-items: center; }
.phone.big {
  position: relative; width: min(300px, 78%); margin: 0 auto; transform: rotate(-4deg);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { translate: 0 -12px; } }
.ver { color: var(--dim); }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px; border-radius: 14px;
  background: #050506; border: 1px solid rgba(255, 255, 255, .28); color: #fff; text-decoration: none; transition: transform .25s var(--ease), border-color .25s;
}
.store:hover { transform: translateY(-2px); border-color: var(--amber); }
.store svg { width: 26px; height: 26px; fill: var(--amber); }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font: 500 11.5px var(--ui); color: #d9d4cf; }
.store b { font: 600 19px var(--ui); letter-spacing: .01em; }
.store[aria-disabled=true] { opacity: .6; pointer-events: none; }
.soon-stores {
  position: relative; display: inline-flex; align-items: center; gap: 16px; min-height: 56px; padding: 10px 22px;
  border-radius: 14px; border: 1px dashed rgba(236, 210, 170, .32); background: rgba(10, 8, 12, .55); color: var(--ink);
}
.soon-tag {
  position: absolute; top: -10px; inset-inline-start: 16px; padding: 2px 10px; border-radius: 999px;
  background: var(--amber); color: #24130a; font: 600 11px/1.5 var(--ui); letter-spacing: .08em; text-transform: uppercase;
}
html[lang=ar] .soon-tag { letter-spacing: 0; font-size: 12.5px; }
.soon-item { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--ui); color: var(--ink); opacity: .85; white-space: nowrap; }
.soon-item svg { width: 20px; height: 20px; fill: var(--amber); }
.soon-item svg.line { fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; }
.soon-sep { width: 1px; align-self: stretch; margin-block: 4px; background: var(--line-strong); }
.captcha-box { min-height: 78px; }
.captcha-box.loading { display: flex; align-items: center; padding: 0 18px; width: 304px; max-width: 100%; border-radius: 6px; border: 1px dashed var(--line-strong); font: 14px var(--ui); color: var(--dim); }
.captcha-note { margin: 0; font: 12.5px/1.5 var(--ui); color: var(--dim); }
.captcha-note a { color: var(--mut); }
.grecaptcha-badge { visibility: hidden !important; }
.dl-meta { font: 500 14px var(--ui); color: var(--mut); margin: 0 0 6px; min-height: 1.4em; }
.dl-note { font: 13.5px/1.55 var(--ui); color: var(--dim); max-width: 52ch; }
.qr { display: flex; gap: 16px; align-items: center; margin: 18px 0 22px; }
.qr img { width: 112px; height: 112px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-strong); }
.qr p { margin: 0; font: 14px/1.5 var(--ui); color: var(--mut); max-width: 30ch; }
@media (hover: none) and (pointer: coarse) { .qr { display: none; } }
.demo-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--line-strong); }
.demo-card.ready { border-style: solid; border-color: rgba(244, 162, 89, .45); background: rgba(244, 162, 89, .05); }
.demo-card svg { width: 30px; height: 30px; fill: none; stroke: var(--sand); stroke-width: 1.6; flex: 0 0 auto; }
.demo-card div { flex: 1 1 220px; display: flex; flex-direction: column; }
.demo-card b { font: 600 15.5px var(--ui); color: var(--cream); }
.demo-card div span { font: 14px/1.5 var(--ui); color: var(--mut); }
.also-win { margin: 16px 0 0; font: 14px var(--ui); }
@media (max-width: 860px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-phone { order: 2; }
  .phone.big { width: min(240px, 62%); }
}

/* ======================================================================= CONTACT */
.contact { padding-block: clamp(80px, 11vw, 140px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.contact-copy .lead { margin-bottom: 0; }
.contact h2 { font-size: clamp(32px, 4vw, 50px); color: var(--cream); margin-bottom: 18px; }
.mail { display: flex; align-items: center; gap: 10px; font: 500 17px var(--ui); }
.mail svg { width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 1.8; }
.form { display: grid; gap: 16px; padding: clamp(22px, 3.4vw, 34px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font: 500 14px var(--ui); color: var(--mut); }
.form input:not([type=checkbox]), .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line-strong); background: rgba(8, 7, 10, .55);
  color: var(--ink); font: 400 16px var(--ui); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(-45deg, transparent 50%, var(--mut) 50%); background-size: 6px 6px; background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-repeat: no-repeat; }
html[dir=rtl] .form select { background-position: 16px 52%, 22px 52%; }
.form :is(input, select, textarea):focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(244, 162, 89, .16); }
.form .bad { border-color: var(--red) !important; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.form .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--amber); flex: 0 0 auto; }
.form .check.bad span { color: var(--red); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form button[type=submit] { justify-self: start; min-width: 200px; }
.form button[disabled] { opacity: .6; pointer-events: none; }
.form-status { margin: 0; font: 500 15px var(--ui); min-height: 1.5em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--red); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr); } .form button[type=submit] { width: 100%; } }

/* ======================================================================= FOOTER */
.footer { border-top: 1px solid var(--line); padding-block: 40px; background: #0b090b; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 22px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 12px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand b { font: 400 20px var(--display); color: var(--cream); }
.footer-brand span { font: 14px var(--ui); color: var(--mut); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; align-items: center; }
.footer-links a { font: 500 15px var(--ui); color: var(--mut); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }
.fine { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font: 13px/1.6 var(--ui); color: var(--dim); text-align: center; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } .footer-links { justify-content: flex-start; } }

/* ======================================================================= LEGAL PAGES */
.legal-top { position: relative; padding: 120px 0 50px; background: linear-gradient(180deg, var(--sky-top), var(--deep)); overflow: hidden; border-bottom: 1px solid var(--line); }
.legal-top::after { content: ''; position: absolute; inset: auto 0 0; height: 60%; background: url(../img/key.webp) center 70% / 900px auto no-repeat; opacity: .16; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); pointer-events: none; }
.legal-top h1 { position: relative; z-index: 1; font-size: clamp(40px, 6vw, 72px); color: var(--cream); }
.legal-top p { position: relative; z-index: 1; color: var(--mut); margin: 12px 0 0; font: 15px var(--ui); }
.legal { padding-block: 50px 90px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: clamp(24px, 2.6vw, 30px); color: var(--sand); margin: 46px 0 12px; scroll-margin-top: 90px; }
.legal-body h3 { font-size: 21px; color: var(--cream); margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink); opacity: .9; font-size: 16.5px; }
.legal-body ul { padding-inline-start: 22px; margin: 0 0 1em; }
.legal-body li { margin: 6px 0; }
.legal-body li::marker { color: var(--amber); }
.legal-body table { width: 100%; border-collapse: collapse; font: 14.5px/1.55 var(--ui); margin: 10px 0 20px; }
.legal-body th, .legal-body td { text-align: start; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.legal-body th { color: var(--sand); font-weight: 600; }
.legal-body .callout { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(216, 194, 138, .28); background: rgba(216, 194, 138, .06); }
.legal-tabs { display: flex; gap: 8px; margin: 26px 0 0; position: relative; z-index: 1; flex-wrap: wrap; }
.legal-tabs a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font: 600 15px var(--ui); background: rgba(10, 8, 12, .5); transition: background .2s, color .2s, border-color .2s; }
.legal-tabs a[aria-selected=true] { background: var(--amber); border-color: var(--amber); color: #24130a; }
.legal-tabs a:hover { border-color: var(--amber); color: var(--amber); }
.legal-body .meta { color: var(--dim); font: 14px var(--ui); }
.legal-body[lang=ar] { font-family: Naskh, 'Geeza Pro', Tahoma, serif; }
.legal-body[lang=ar] :is(h2, h3) { font-family: Ruqaa, Naskh, serif; font-weight: 700; line-height: 1.5; }
.legal-body[lang=ar] :is(p, li) { font-size: 18px; line-height: 1.75; }
.legal-top [lang=ar] { font-family: Ruqaa, serif; font-weight: 700; }
.toc { list-style: none; padding: 18px 22px; margin: 0 0 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); columns: 2; column-gap: 30px; font: 14.5px/1.5 var(--ui); }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--mut); text-decoration: none; }
.toc a:hover { color: var(--amber); }
@media (max-width: 600px) { .toc { columns: 1; } }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px var(--gutter) 60px; background: radial-gradient(60% 50% at 50% 30%, rgba(74, 60, 120, .35), transparent 70%), var(--night); }
.lost h1 { font-size: clamp(44px, 7vw, 84px); color: var(--cream); margin-bottom: 14px; }
.lost p { color: var(--mut); max-width: 46ch; margin: 0 auto 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .title-en .ch, .title-ar { opacity: 1; filter: none; transform: none; }
  .strip-track { animation: none; }
}
