/* ==========================================================================
   ALJAYD ALMUTAQADIMAH · v2 light cinematic site
   One stylesheet. Light warm stone sampled from the hero film, black type,
   gold in rare doses (the signature line, the call to action, focus).
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* brand primitives (kit, locked) */
  --ink: #0F1110;
  --gold: #C0A483;
  --gold-text: #7A5C2E;
  --graphite: #474C48;
  --stone: #E3E2DB;
  --ivory: #FAFAF8;

  /* «لؤلؤ وذهب»: a cool, clean pearl canvas; the logo's black and champagne gold; an iridescent pearl edge, sparingly */
  --c-warm: #F5F6F8;            /* pearl (the base canvas) */
  --c-pale: #F8F9FB;            /* pearl, lifted */
  --c-cool: #EEF1F5;            /* pearl, deepened */
  --c-film: #E9E9EE;            /* the film's pearl marble (sampled), behind it until its first frame paints */
  --blush: #F3DDE0; --peri: #DDE3FA; --champ: #EFE3D1;
  --iri: linear-gradient(120deg, var(--blush), var(--peri) 52%, var(--champ));
  --shadow-soft: 0 30px 60px -36px rgba(28, 38, 70, .26);
  --shadow-lift: 0 44px 90px -50px rgba(28, 38, 70, .36);
  /* sector spectrum: only inside each sector's world and its hub (from the real logos) */
  --gf-rose: #CC8A7A; --gf-olive: #869459; --gf-ink: #1B2F23; --gf-tint: #FBF1EF;
  --la-peri: #A3B4F3; --la-slate: #5F698E; --la-ink: #2B3352; --la-tint: #F1F3FD;
  --li-sage: #4E8B80; --li-ink: #1F3D38; --li-tint: #EEF5F3;
  /* motion: three tiers, shared eases */
  --ease-micro: cubic-bezier(.2, .8, .2, 1);
  --ease-ui: cubic-bezier(.16, 1, .3, 1);
  --ease-cinematic: cubic-bezier(.76, 0, .24, 1);
  --t-micro: 220ms; --t-ui: 480ms; --t-scene: 1000ms;
  --vk: 1;                      /* scroll-velocity factor (main.js): fast scrolling shortens the entrances */
  --canvas: var(--c-pale);
  --surface: #FFFFFF;
  --surface-2: #F3F5F8;
  --hair: #DFE3EA;             /* decorative hairlines */
  --edge-line: #858B97;        /* interactive borders, 3.1:1 on the canvas */
  --muted: var(--graphite);    /* secondary text, 7.5:1 on the canvas */

  /* type */
  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --t-eyebrow: 14px;
  --t-body: 17px;
  --t-lede: clamp(18px, 0.45vw + 14px, 22px);
  --t-h3: clamp(20px, 0.6vw + 15px, 26px);
  --t-h2: clamp(32px, 2.4vw + 14px, 60px);
  --t-display: clamp(38px, 4vw + 14px, 96px);
  --t-band: clamp(27px, 1.7vw + 16px, 50px);
  --lh-display: 1.32;
  --lh-text: 1.9;

  /* layout */
  --gutter: clamp(20px, 5vw, 72px);
  --edge: calc(var(--gutter) * 0.5);
  --edgein: calc(var(--edge) - var(--gutter));
  --edgeout: calc(100% + var(--gutter) - var(--edge));
  --maxw: clamp(1320px, 78vw, 1560px);
  --head-h: 84px;
  --radius: 22px;
  --radius-s: 14px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-back: cubic-bezier(.34, 1.4, .64, 1);
  --d-fast: .28s;
  --d-mid: .7s;
  --d-slow: 1.15s;
  --dir: -1;                  /* rtl: the reading start is on the right */

  /* legibility over the light film: a light halo for dark ink */
  --halo: 0 0 1px rgba(250, 251, 252, .9), 0 1px 14px rgba(250, 251, 252, .78), 0 0 42px rgba(250, 251, 252, .65);
  color-scheme: light;
}
[dir="ltr"] { --dir: 1; --lh-display: 1.12; --lh-text: 1.65; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
body {
  margin: 0; overflow-x: hidden; overflow-x: clip;
  background: var(--c-pale); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-body); line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; }
bdi.mono { unicode-bidi: isolate; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 100; inset-inline-start: 12px; top: -80px; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top var(--d-fast) var(--ease-out); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[dir="ltr"] .arrow { display: inline-block; transform: scaleX(-1); }

.wrap { position: relative; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* the line's anchors: invisible points the signature reads (line.js) */
.ln { position: absolute; inset-inline-start: var(--x); top: var(--y); width: 0; height: 0; pointer-events: none; }
@media (max-width: 760px) { .ln { inset-inline-start: var(--xm, var(--x)); top: var(--ym, var(--y)); } }

/* ---------------------------------------------------------------- the environment (one fixed layer) */
.env { position: fixed; inset: 0; z-index: -1; background: var(--canvas); transition: background-color 1.4s var(--ease-io); pointer-events: none; overflow: hidden; }
html[data-tone="warm"] { --canvas: var(--c-warm); }
html[data-tone="pale"] { --canvas: var(--c-pale); }
html[data-tone="cool"] { --canvas: var(--c-cool); }
html[data-tone="film"], html[data-tone="dark"] { --canvas: var(--c-warm); }
.env-light { position: absolute; inset: -18%; will-change: transform; background: radial-gradient(48% 42% at 22% 18%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%), radial-gradient(40% 36% at 84% 14%, rgba(243, 221, 224, .26), rgba(243, 221, 224, 0) 70%), radial-gradient(52% 46% at 82% 86%, rgba(221, 227, 250, .38), rgba(221, 227, 250, 0) 70%); animation: drift1 84s ease-in-out -20s infinite alternate; }
.env-grain { position: absolute; inset: 0; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate3d(9%, 7%, 0); } }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-family: var(--f-body); font-weight: 500; font-size: 17px; transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: var(--gold-text); }
.btn-gold { position: relative; background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(122, 92, 46, .55); }
.btn-gold:hover { background: #CDB394; box-shadow: 0 14px 34px -12px rgba(122, 92, 46, .7); }
.btn-gold::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid var(--gold); opacity: 0; }
.on .btn-gold::after { animation: ctaGlow 4.8s ease-in-out -1.2s infinite; }
@keyframes ctaGlow { 0%, 100% { opacity: 0; transform: scale(.98); } 50% { opacity: .55; transform: scale(1.03); } }
.btn-quiet { background: none; border: 0; padding: 10px 6px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--hair); font-size: 15px; }
.btn-quiet:hover { color: var(--ink); text-decoration-color: var(--gold); }
.link { display: inline-flex; gap: 8px; align-items: baseline; color: var(--gold-text); font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--d-mid) var(--ease-out); }
[dir="rtl"] .link { background-position: 100% 100%; }
.link:hover { background-size: 100% 1px; }
@media (pointer: coarse) { .btn, .head-btn, .copy, .pill { min-height: 44px; } }

/* ---------------------------------------------------------------- loader */
.loader { display: none; }
.js .loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; background: var(--c-pale); padding: 24px; transition: opacity .9s var(--ease-io), visibility 0s linear .9s; }
.loader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 40%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)), radial-gradient(80% 60% at 50% 110%, rgba(221, 227, 250, .55), rgba(221, 227, 250, 0)); }
.loader-inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 14px; max-width: 420px; }
.loader-mark { width: 72px; height: auto; margin-bottom: 18px; opacity: 0; animation: fadeIn 1.2s var(--ease-out) .15s forwards; }
.loader-name { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2vw + 12px, 30px); line-height: 1.3; opacity: 0; animation: fadeUp 1s var(--ease-out) .35s forwards; }
.loader-day { color: var(--muted); font-size: 15px; opacity: 0; animation: fadeUp 1s var(--ease-out) .5s forwards; }
.loader-line { position: relative; width: 180px; height: 9px; margin: 10px 0 6px; }
.loader-line::before { content: ""; position: absolute; inset-inline: 0; top: 4px; height: 1px; background: var(--hair); }
.loader-line i { position: absolute; inset-inline-start: 0; top: 3px; height: 3px; width: 100%; background: var(--gold); border-radius: 3px; transform-origin: var(--from, right); transform: scaleX(var(--lp, .08)); transition: transform .5s var(--ease-out); }
[dir="ltr"] .loader-line i { --from: left; }
.loader-actions { display: grid; justify-items: center; gap: 6px; margin-top: 12px; opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.loader.ready .loader-actions { opacity: 1; transform: none; }
.loader-go { min-width: 200px; }
.loader-note { color: var(--muted); font-size: 14px; opacity: 0; transition: opacity .8s var(--ease-out) .2s; }
.loader.ready .loader-note { opacity: 1; }
.loader.out { opacity: 0; visibility: hidden; }
html.entering body { overflow: hidden; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- header */
.site-head { position: fixed; z-index: 50; inset-inline: 0; top: 0; height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gutter); transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.site-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(246, 247, 250, .76); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid rgba(120, 128, 145, .18); opacity: 0; transition: opacity .5s var(--ease-out); }
html.scrolled .site-head::before { opacity: 1; }
html.in-hero .site-head::before { opacity: 0; }
html.head-hide:not(.menu-open) .site-head { transform: translateY(-100%); }
.head-mark { display: block; padding: 6px; margin-inline-start: -6px; transition: opacity .6s var(--ease-out); }
.head-mark img { width: 48px; height: auto; }
html.mark-off .head-mark, html.fin-mark-on .head-mark { opacity: 0; pointer-events: none; }
.head-tools { display: flex; align-items: center; gap: 6px; }
.head-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); transition: background-color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out); }
.head-btn:hover { background: rgba(15, 17, 16, .05); border-color: rgba(120, 128, 145, .35); }
.lang-btn[lang="en"] { font-family: var(--f-body); }
.head-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; margin-inline-end: 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; transition: background-color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out); }
.head-cta:hover { background: #CDB394; transform: translateY(-1px); }
.snd-ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.snd-ico .spk { fill: currentColor; stroke: none; }
.snd-ico .mute { opacity: 1; transition: opacity var(--d-fast); }
.snd-ico .wv { opacity: 0; transition: opacity var(--d-fast); }
.sound-btn[aria-pressed="true"] .snd-ico .mute { opacity: 0; }
.sound-btn[aria-pressed="true"] .snd-ico .wv { opacity: 1; }
.sound-btn[aria-pressed="true"] .w2 { animation: wave 2.4s ease-in-out -0.6s infinite; }
@keyframes wave { 50% { opacity: .35; } }
.menu-btn .bars { display: grid; gap: 5px; width: 20px; }
.menu-btn .bars i { display: block; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform var(--d-fast) var(--ease-out); }
.menu-btn[aria-expanded="true"] .bars i:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:last-child { transform: translateY(-3.3px) rotate(-45deg); }
@media (max-width: 900px) { .head-cta { display: none; } }
@media (max-width: 600px) {
  :root { --head-h: 76px; }
  .snd-label, .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .head-btn { padding: 0 11px; }
  .head-tools { gap: 2px; }
}

/* chapters menu */
.chapters { position: fixed; inset: 0; z-index: 45; background: rgba(246, 247, 250, .9); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); overflow-y: auto; opacity: 0; transition: opacity .5s var(--ease-out); }
.chapters.open { opacity: 1; }
.chapters:not(.open) { pointer-events: none; }
.chapters-inner { max-width: 760px; margin: 0 auto; padding: calc(var(--head-h) + 24px) var(--gutter) 48px; }
.chapters ol { display: grid; }
.chapters li { border-bottom: 1px solid var(--hair); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.chapters.open li { opacity: 1; transform: none; }
.chapters.open li:nth-child(2) { transition-delay: .03s; } .chapters.open li:nth-child(3) { transition-delay: .06s; } .chapters.open li:nth-child(4) { transition-delay: .09s; } .chapters.open li:nth-child(5) { transition-delay: .12s; } .chapters.open li:nth-child(6) { transition-delay: .15s; } .chapters.open li:nth-child(7) { transition-delay: .18s; } .chapters.open li:nth-child(8) { transition-delay: .21s; } .chapters.open li:nth-child(9) { transition-delay: .24s; } .chapters.open li:nth-child(10) { transition-delay: .27s; }
.chapters a:not(.btn) { display: flex; align-items: baseline; gap: 22px; padding: 14px 4px; text-decoration: none; font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2vw + 12px, 34px); line-height: 1.35; transition: color var(--d-fast), transform var(--d-fast) var(--ease-out); }
.chapters a:not(.btn):hover { color: var(--gold-text); transform: translateX(calc(var(--dir) * 6px)); }
.chapters .ch-n { font-size: 13px; color: var(--muted); }
.chapters a[aria-current="true"] { color: var(--gold-text); }
.chapters-cta { margin-top: 32px; }

/* ---------------------------------------------------------------- shared type */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-eyebrow); font-weight: 500; color: var(--gold-text); margin-bottom: 22px; }
.eyebrow .mono { font-size: 13px; color: var(--muted); }
.eyebrow .mono::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-inline-start: 12px; vertical-align: middle; background: var(--gold); }
.eyebrow.center { display: flex; justify-content: center; }
.h2 { font-family: var(--f-display); font-weight: 300; font-size: var(--t-h2); line-height: var(--lh-display); letter-spacing: 0; text-wrap: balance; }
[dir="ltr"] .h2, [dir="ltr"] .karat, [dir="ltr"] .band-line { letter-spacing: -0.015em; }
.h2.center { text-align: center; }
.lede { font-size: var(--t-lede); line-height: 1.75; color: var(--ink); }
.body { color: var(--muted); }
.tagline { font-family: var(--f-display); font-weight: 400; }
.center { text-align: center; }

/* split words (hero bands, chapter headings) */
.split .w { display: inline-block; }
.sec .split .w, .sec.split .w { opacity: 0; transform: translateY(.45em); transition: opacity calc(.8s * var(--vk)) var(--ease-out), transform calc(.9s * var(--vk)) var(--ease-out); transition-delay: calc((var(--i) * 55ms + 120ms) * var(--vk)); }
.sec .split.in .w { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- entrances (IntersectionObserver adds .in) */
.js [data-enter="rise"] > * { opacity: 0; transform: translateY(26px); transition: opacity calc(.9s * var(--vk)) var(--ease-out), transform calc(1s * var(--vk)) var(--ease-out); }
.js [data-enter="rise"].in > * { opacity: 1; transform: none; }
.js [data-enter="rise"].in > :nth-child(2) { transition-delay: .08s; }
.js [data-enter="rise"].in > :nth-child(3) { transition-delay: .16s; }
.js [data-enter="rise"].in > :nth-child(4) { transition-delay: .24s; }
.js [data-enter="rise"].in > :nth-child(5) { transition-delay: .32s; }

/* ---------------------------------------------------------------- 01 hero */
.hero { position: relative; height: 700vh; background: var(--c-film); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--c-film); isolation: isolate; transform-origin: 50% 0; }
.hero-frame { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .8s var(--ease-out); }
.hero-poster.shown { opacity: 1; }
.hero-end { transition: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; transition: opacity .9s var(--ease-out); transform: translateZ(0); will-change: transform; max-width: none; }
.hero-stage.video-ready .hero-video { opacity: 1; }
.hero-stage.video-ready .hero-end { opacity: 0 !important; }
/* layer 1: the base veil, a soft lightening of the side thirds (the action is the centre column) */
.hero-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(244, 246, 249, .42), rgba(244, 246, 249, 0) 34%, rgba(244, 246, 249, 0) 66%, rgba(244, 246, 249, .42)); }

.band { position: absolute; z-index: 2; top: 40%; transform: translateY(-50%); width: min(27vw, 400px); opacity: 0; color: var(--ink); text-shadow: var(--halo); pointer-events: none; }
.band[data-side="start"] { inset-inline-start: var(--gutter); }
.band[data-side="end"] { inset-inline-end: var(--gutter); }
.band > * { position: relative; }
/* layer 2: each band's own light scrim, riding its opacity and deepening with its --k */
.band::before { content: ""; position: absolute; inset: -46% -30%; pointer-events: none; opacity: calc(.3 + .7 * var(--k, 1)); background: radial-gradient(ellipse 62% 56% at 50% 50%, rgba(246, 247, 250, .72) 0%, rgba(246, 247, 250, .5) 46%, rgba(246, 247, 250, 0) 76%); }
.band-line { font-family: var(--f-display); font-weight: 300; font-size: var(--t-band); line-height: var(--lh-display); }
.band-line .w { display: inline-block; will-change: transform, opacity; }
.band-eyebrow, .band-cue { font-size: 14px; font-weight: 500; text-shadow: none; }
/* layer 4: the chip for small text */
.band-eyebrow { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(250, 251, 252, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(120, 128, 145, .22); color: var(--gold-text); white-space: nowrap; }
.band-cue { display: inline-flex; margin-top: 22px; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(250, 251, 252, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(120, 128, 145, .22); }
[dir="rtl"] .band-cue { padding: 4px 4px 4px 14px; }
.ring { width: 34px; height: 34px; flex: none; }
.ring circle { fill: none; stroke-width: 2.5; }
.ring-bg { stroke: rgba(120, 128, 145, .28); }
.ring-fg { stroke: var(--gold-text); stroke-dasharray: 126; stroke-dashoffset: var(--ld, 126); transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .25s linear; stroke-linecap: round; }
.ring-chev { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s; }
.hero-stage.loaded .ring-chev, .hero-stage.video-failed .ring-chev { opacity: 1; animation: nudge 2.6s var(--ease-io) -0.4s infinite; }
.hero-stage.loaded .ring-fg, .hero-stage.video-failed .ring-fg { opacity: 0; transition: opacity .6s .3s; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* the live globe (globe.js): a pre-rendered still holds the place, the canvas fades in over it */
.globe-layer { position: absolute; inset: 0; z-index: 1; background: var(--c-warm); }
.globe-layer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46% 52% at 50% 50%, rgba(221, 227, 250, .55), rgba(243, 221, 224, .18) 55%, rgba(245, 246, 248, 0) 75%); }
.globe-still, .globe-still i { position: absolute; inset: 0; }
.globe-still { transition: opacity 1.2s var(--ease-ui); }
.globe-still i { background: center / cover no-repeat; }
.globe-still i + i { opacity: 0; }
.globe-ready .globe-still { opacity: 0; }
html.rm .globe-still i { opacity: 0 !important; }
html.rm .globe-canvas, html.rm .globe-ov { display: none; }
html.rm [data-rm-step="1"] .globe-still i[data-k="1"], html.rm [data-rm-step="2"] .globe-still i[data-k="2"], html.rm [data-rm-step="3"] .globe-still i[data-k="3"] { opacity: 1 !important; }
html.rm [data-rm-step="4"] .globe-layer { visibility: hidden; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; transition: opacity 1.2s var(--ease-ui); }
.globe-ready .globe-canvas { opacity: 1; }
.globe-ov { position: absolute; inset: 0; pointer-events: none; }
.gl-riyadh, .gl-pin { position: absolute; left: 0; top: 0; transform: translate(var(--x, -99px), var(--y, -99px)); opacity: var(--o, 0); }
.gl-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: var(--gold); border: 1.5px solid #fff; transform: rotate(45deg); box-shadow: 0 4px 12px -4px rgba(28, 38, 70, .5); }
.gl-riyadh .gl-dot { left: -6px; top: -6px; width: 12px; height: 12px; background: var(--ink); }
.gl-riyadh .gl-pulse { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 1.5px solid var(--gold); opacity: calc((1 - var(--pk, 0)) * .9); transform: scale(calc(.1 + var(--pk, 0) * 1.6)); }
.gl-pin .gl-pulse { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.hero .gl-pin .gl-pulse { animation: pinPulse 4.2s ease-out infinite; animation-delay: var(--pd, 0s); }
.gl-label { position: absolute; top: 14px; left: 0; transform: translateX(-50%); padding: 5px 12px; border-radius: 12px; background: rgba(255, 255, 255, .92); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); white-space: nowrap; font-size: 13.5px; line-height: 1.4; text-align: center; color: var(--ink); }
.gl-label b { display: block; font-weight: 500; font-size: 14px; }
.gl-label small { display: block; font-size: 12.5px; color: var(--graphite); }
.gl-riyadh .gl-label { top: auto; bottom: 16px; font-family: var(--f-display); font-size: 17px; font-weight: 500; padding: 4px 14px; }

/* per-band entrances, scrubbed off --k (transform and opacity only, reversible) */
.g0 .w { transform: translateY(calc((1 - var(--kc)) * 22px)); }
.g1 .w { transform: translateY(calc((1 - var(--kc)) * -24px)); }
.band .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 3, 1); opacity: var(--kc); }
.b1 .w { transform: translateX(calc((1 - var(--kc)) * var(--dir) * -34px)); }
.b2 .w { transform: translateY(calc((1 - var(--kc)) * var(--jy, 24px))) rotate(calc((1 - var(--kc)) * var(--jr, 3deg))); }
.b3 .w { transform: scale(calc(.84 + .16 * var(--kc))); }
.band-eyebrow { opacity: clamp(0, var(--k, 0) * 2.4, 1); }
.band-cue { opacity: clamp(0, (var(--k, 0) - .5) * 2.4, 1); }

/* the settle: the official lockup registered over the film's symbol */
.settle { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.settle.live { pointer-events: auto; }
.settle::before { content: ""; position: absolute; left: var(--wx, 50%); top: var(--wy, 70%); width: var(--ww, 60%); height: var(--wh, 30%); transform: translate(-50%, -50%); opacity: var(--km, 0); background: radial-gradient(closest-side, rgba(244, 246, 249, .92), rgba(244, 246, 249, .7) 55%, rgba(244, 246, 249, 0)); pointer-events: none; }
.settle-mark { position: absolute; margin: 0; left: var(--mx, 50%); top: var(--my, 12%); width: var(--mw, 300px); opacity: var(--km, 0); }
.settle-mark .sm { display: none; width: 100%; height: auto; }
.settle[data-mark="ar"] .sm-ar, .settle[data-mark="en"] .sm-en, .settle[data-mark="sym"] .sm-sym { display: block; }
.settle-words { position: absolute; color: var(--ink); text-shadow: var(--halo); }
.settle-words::before { content: ""; position: absolute; inset: -40% -25%; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(246, 247, 250, .78), rgba(246, 247, 250, 0) 76%); }
.settle-name { display: none; font-family: var(--f-display); font-weight: 500; font-size: 20px; margin-bottom: 4px; opacity: var(--km, 0); }
.settle[data-mark="sym"] .settle-name { display: block; }
.settle-tag { font-size: clamp(26px, 1.5vw + 16px, 44px); line-height: var(--lh-display); }
.settle-tag .w { --kc: clamp(0, (var(--kt, 0) - var(--th, 0)) * 3, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * 20px)); }
.settle-meta { margin-top: 14px; font-size: 15px; color: var(--graphite); opacity: var(--kb, 0); }
.settle-cue { position: absolute; inset-inline-end: var(--gutter); bottom: max(28px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(250, 251, 252, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(120, 128, 145, .3); text-decoration: none; font-weight: 500; font-size: 15px; opacity: var(--kb, 0); }
.settle-cue svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.6s var(--ease-io) -1s infinite; }

/* the words: beside the lockup in the start third (side), or under the mark (below); hero.js decides */
.settle-words { inset-inline-start: var(--gutter); top: 50%; transform: translateY(-50%); width: var(--sw, min(30vw, 420px)); }
.settle[data-layout="below"] .settle-words { inset-inline: var(--gutter); width: auto; transform: none; text-align: center; }
.settle[data-layout="below"] .settle-tag { font-size: clamp(25px, 5.4vw, 38px); }
.settle[data-layout="below"] .settle-cue { inset-inline: 0; margin-inline: auto; width: max-content; }

/* no JavaScript: one composed still */
.no-js .hero { height: auto; }
.no-js .globe-layer { display: none; }
.no-js .hero-stage { position: relative; height: 100vh; }
.no-js .hero-end { opacity: 1; background-image: url("../hero/hero-desk-end.jpg"); }
.no-js .band { position: relative; display: none; }
.no-js .settle { opacity: 1; }
.no-js .settle-mark { display: none; }
.no-js .settle-words { top: auto; bottom: 18vh; transform: none; }
.no-js .settle-tag .w, .no-js .settle-meta { opacity: 1; }

/* phones and portrait: the captions sit in the band under the action, the words under the mark */
@media (max-aspect-ratio: 4/5), (max-width: 760px) {
  .hero { height: 600vh; }
  .band { width: auto; inset-inline: var(--gutter) !important; top: auto; transform: none; bottom: calc(30px + env(safe-area-inset-bottom) + (100lvh - 100svh)); text-align: center; }
  .band-line { font-size: clamp(26px, 6.6vw, 40px); }
  .band::before { inset: -70% -20% -40%; background: radial-gradient(ellipse 70% 62% at 50% 55%, rgba(246, 247, 250, .86) 0%, rgba(246, 247, 250, .6) 50%, rgba(246, 247, 250, 0) 78%); }
  .band-eyebrow { margin-bottom: 14px; }
  .band-cue { margin-top: 16px; }
}

/* ---------------------------------------------------------------- the signature line */
.signature { position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 0; pointer-events: none; }
.sig-svg { position: absolute; left: 0; top: 0; overflow: visible; max-width: none; }
.sig-path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sig-head { position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--gold); transform: translate(var(--hx, -99px), var(--hy, -99px)) rotate(45deg); opacity: var(--ho, 0); transition: opacity .4s; }
.sig-head::after { content: ""; position: absolute; inset: -7px; border: 1px solid var(--gold); opacity: .5; animation: headPulse 3.2s ease-out -0.8s infinite; }
@keyframes headPulse { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
main { position: relative; }

/* sections */
.sec { position: relative; padding-block: clamp(88px, 9vw, 140px); }
.sec > .wrap, .sec > div { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- 02 story */
.story { padding-top: clamp(120px, 13vw, 190px); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14vw; align-items: end; }
.story-head .eyebrow { margin-bottom: 8px; }
.story-h2 { margin: 0; font-weight: 300; }
.count-fig { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(110px, 14vw, 230px); line-height: 1; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.count-words { display: block; font-family: var(--f-display); font-weight: 300; font-size: var(--t-h2); line-height: var(--lh-display); }
.count-since { font-size: 15px; color: var(--gold-text); margin-top: 14px; }
.story-copy { max-width: 560px; padding-bottom: 8px; }
.story-copy .lede { margin-bottom: 18px; }
.js .story-head .count-fig { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .story-head .count-words, .js .story-head .count-since, .js .story-head .eyebrow { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out) .25s, transform 1s var(--ease-out) .25s; }
.js .story-head.in .count-fig, .js .story-head.in .count-words, .js .story-head.in .count-since, .js .story-head.in .eyebrow { opacity: 1; transform: none; }

.ruler { --rb: 64px; position: relative; margin-top: clamp(56px, 7vw, 96px); padding-top: 0; height: 150px; }
.ruler-ticks { position: absolute; inset-inline: 0; top: 0; width: 100%; height: var(--rb); overflow: visible; }
.ruler-ticks line { stroke: var(--graphite); stroke-width: 1; opacity: .5; }
.ruler-ticks line.maj { stroke: var(--ink); opacity: .75; }
.ruler-ticks line.yr { stroke: var(--gold-text); opacity: 1; stroke-width: 1.5; }
.js .ruler .ruler-ticks line { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .6s var(--ease-out); transition-delay: calc(var(--t, 0) * 1ms); }
.js .ruler.in .ruler-ticks line { stroke-dashoffset: 0; }
.ruler-today { position: absolute; top: calc(var(--rb) - 52px); inset-inline-start: var(--tx, 100%); width: 0; height: 52px; }
.ruler-today i { position: absolute; bottom: -5px; left: -5px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.ruler-today i::after { content: ""; position: absolute; inset: -6px; border: 1px solid var(--gold); animation: headPulse 3.6s ease-out -1s infinite; }
.ruler-range { position: absolute; inset-inline: 0; top: calc(var(--rb) - 34px); width: 100%; height: 48px; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ruler-read { position: absolute; top: calc(var(--rb) - 96px); inset-inline-start: var(--rx, 100%); transform: translateX(calc(var(--dir) * -50%)); display: grid; justify-items: center; padding: 8px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 10px 30px -14px rgba(28, 38, 70, .297); border: 1px solid var(--hair); white-space: nowrap; font-size: 14px; line-height: 1.35; transition: opacity .4s; }
.ruler-read::after { content: ""; position: absolute; bottom: -6px; left: calc(50% + var(--px, 0px) * var(--dir)); width: 10px; height: 10px; margin-left: -5px; background: var(--surface); border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); transform: rotate(45deg); }
.rr-day { font-weight: 500; }
.rr-date { font-size: 13px; color: var(--muted); }
.ruler-sel { position: absolute; top: calc(var(--rb) - 40px); inset-inline-start: var(--sx, 100%); width: 1.5px; height: 40px; background: var(--ink); }
.ruler-ends { position: absolute; inset-inline: 0; top: calc(var(--rb) + 18px); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.ruler-ends > :nth-child(2) { color: var(--gold-text); }
.ruler-range:focus-visible ~ .ruler-read { outline: 2px solid var(--gold-text); outline-offset: 2px; }

/* ---------------------------------------------------------------- 03 vision */
.vision-lead { max-width: 20ch; margin: 0 auto clamp(64px, 8vw, 112px); }
.vm-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(64px, 9vw, 140px); }
.vm { perspective: 1100px; }
.vm .tilt-in { height: 100%; padding: clamp(28px, 3.4vw, 52px); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(250, 251, 252, .78)); border: 1px solid rgba(214, 219, 228, .9); box-shadow: 0 40px 80px -48px rgba(28, 38, 70, .383), 0 2px 0 rgba(255, 255, 255, .8) inset; }
.vm-when { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gold-text); font-weight: 500; margin-bottom: 14px; }
.vm-dot { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.vm-vision .vm-dot { background: none; border: 1.5px solid var(--gold); }
.vm-label { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 2vw + 16px, 46px); line-height: 1.2; margin-bottom: 16px; }
.vm p:not(.vm-when) { font-size: var(--t-lede); line-height: 1.8; color: var(--graphite); }
.js [data-enter="part"] .vm { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-enter="part"] .vm-mission { transform: translateX(calc(var(--dir) * 60px)) rotateY(calc(var(--dir) * -10deg)); }
.js [data-enter="part"] .vm-vision { transform: translateX(calc(var(--dir) * -60px)) rotateY(calc(var(--dir) * 10deg)); transition-delay: .12s; }
.js [data-enter="part"].in .vm { opacity: 1; transform: none; }

/* tilt (3D, pointer on desktop, scroll on every device) */
.tilt { perspective: 1000px; }
.tilt-in { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out); transform-style: preserve-3d; }
.tilt-in::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%); opacity: var(--go, 0); transition: opacity .5s; }

/* ---------------------------------------------------------------- 04 values */
.values-head { max-width: 640px; margin-bottom: clamp(56px, 6vw, 88px); }
.values-rail { position: relative; padding-top: 34px; }
.values-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.5vw, 24px); }
.value { position: relative; perspective: 900px; }
.value .tilt-in { height: 100%; padding: 30px 24px 28px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .78); border: 1px solid rgba(214, 219, 228, .95); box-shadow: 0 30px 60px -40px rgba(28, 38, 70, .383); }
.v-hook { position: absolute; top: -34px; inset-inline-start: 50%; width: 1px; height: 34px; background: var(--gold); }
.v-hook::before { content: ""; position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.v-n { display: block; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.v-ico { width: 40px; height: 40px; fill: none; stroke: var(--gold-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.value h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-h3); line-height: 1.35; margin-bottom: 10px; }
.value p { font-size: 15.5px; line-height: 1.75; color: var(--graphite); }
.js [data-enter="hang"] .value { transform-origin: 50% -34px; opacity: 0; transform: rotateX(-78deg); transition: transform calc(1.3s * var(--vk)) var(--ease-back), opacity calc(.7s * var(--vk)) var(--ease-out); }
.js [data-enter="hang"].in .value { opacity: 1; transform: none; }
.js [data-enter="hang"].in .value:nth-child(2) { transition-delay: .11s; }
.js [data-enter="hang"].in .value:nth-child(3) { transition-delay: .22s; }
.js [data-enter="hang"].in .value:nth-child(4) { transition-delay: .33s; }
.js [data-enter="hang"].in .value:nth-child(5) { transition-delay: .44s; }
.js [data-enter="hang"].done .value:nth-child(n) { transition-delay: 0s; }
.on .v-ico { animation: glint 6s ease-in-out infinite; }
.value:nth-child(2) .v-ico { animation-delay: -1.2s; } .value:nth-child(3) .v-ico { animation-delay: -2.4s; } .value:nth-child(4) .v-ico { animation-delay: -3.6s; } .value:nth-child(5) .v-ico { animation-delay: -4.8s; }
@keyframes glint { 0%, 80%, 100% { opacity: 1; } 90% { opacity: .55; } }

/* ---------------------------------------------------------------- 05 leadership */
.lead-head { margin-bottom: clamp(40px, 5vw, 64px); }
.leaders { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.lead-col.b { padding-top: clamp(0px, 9vw, 150px); }
.leader { position: relative; padding: clamp(32px, 4vw, 60px); padding-top: clamp(64px, 6vw, 88px); }
.leader .frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leader .frame rect { x: .75px; y: .75px; width: calc(100% - 1.5px); height: calc(100% - 1.5px); rx: 22px; fill: rgba(255, 255, 255, .45); stroke: var(--gold); stroke-width: 1.2; }
.js [data-enter="frame"] .frame rect { stroke-dasharray: 100; stroke-dashoffset: 100; fill-opacity: 0; transition: stroke-dashoffset 2s var(--ease-io), fill-opacity 1.2s var(--ease-out) .6s; }
.js [data-enter="frame"].in .frame rect { stroke-dashoffset: 0; fill-opacity: 1; }
.qmark { position: absolute; top: clamp(4px, 1vw, 12px); inset-inline-start: clamp(28px, 3.6vw, 56px); font-family: var(--f-display); font-size: clamp(90px, 9vw, 140px); line-height: 1; color: var(--gold); }
[dir="rtl"] .qmark { transform: scaleX(-1); }
.pull p { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 1.8vw + 14px, 42px); line-height: var(--lh-display); margin-bottom: 26px; text-wrap: balance; }
.leader-body { color: var(--graphite); font-size: 16.5px; line-height: 1.95; margin-bottom: 28px; }
[dir="ltr"] .leader-body { line-height: 1.7; }
.sign { display: grid; gap: 2px; padding-top: 20px; border-top: 1px solid var(--hair); }
.sign strong { font-family: var(--f-display); font-weight: 500; font-size: 20px; }
.sign span { color: var(--gold-text); font-size: 15px; font-weight: 500; }
.js [data-enter="frame"] > :not(.frame) { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out) .5s, transform 1s var(--ease-out) .5s; }
.js [data-enter="frame"].in > :not(.frame) { opacity: 1; transform: none; }
.js [data-enter="frame"] .qmark { transform: translateY(18px) scale(.6); }
[dir="rtl"].js [data-enter="frame"] .qmark, .js[dir="rtl"] [data-enter="frame"] .qmark { transform: scaleX(-1) translateY(18px) scale(.6); }
.js [data-enter="frame"].in .qmark { transform: none; }
.js[dir="rtl"] [data-enter="frame"].in .qmark { transform: scaleX(-1); }
.on .qmark { animation: breathe 6s ease-in-out -2s infinite; }
@keyframes breathe { 50% { opacity: .62; } }

/* ---------------------------------------------------------------- 06 group: the constellation */
.group { padding-bottom: 0; }
.group-head { text-align: center; }
.karat { font-family: var(--f-display); font-weight: 300; font-size: var(--t-display); line-height: 1.2; max-width: 16ch; margin: 0 auto 22px; text-wrap: balance; }
.group-sub { font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 1vw + 14px, 28px); color: var(--gold-text); margin-bottom: 18px; }
.group-body { max-width: 60ch; margin: 0 auto; color: var(--graphite); font-size: var(--t-lede); line-height: 1.8; }
.sector-tag { font-family: var(--f-display); font-weight: 300; font-size: 19px; color: var(--w-ink, var(--gold-text)); }
.sector-meta { font-size: 15px; color: var(--graphite); }
.services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.services li { padding: 4px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); font-size: 14px; }

.cst-track { position: relative; height: 240vh; margin-top: clamp(40px, 5vw, 72px); }
.cst-anchors { position: absolute; inset-inline: 0; top: 0; height: 0; }
.cst-anchors.end { top: auto; bottom: 0; }
.cst-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; padding-top: var(--head-h); overflow: hidden; }
.cst-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; width: 100%; }
.cst-sky { position: relative; height: min(72vh, 700px); touch-action: pan-y; cursor: grab; user-select: none; }
.cst-sky:active { cursor: grabbing; }
/* the two ribbons of the logo as the orbit: one gold, one black, crossing */
.cst-orbits { position: absolute; left: 2%; right: 2%; top: 28%; height: 62%; width: 96%; overflow: visible; pointer-events: none; }
.cst-orbits ellipse { fill: none; vector-effect: non-scaling-stroke; }
.orb-gold { stroke: var(--gold); stroke-width: 1.6; transform: rotate(-5deg); transform-origin: 0 0; }
.orb-black { stroke: var(--ink); stroke-width: 1; opacity: .55; transform: rotate(6deg) scale(.94); transform-origin: 0 0; }
.on .orb-gold { animation: orbBreath 9s ease-in-out -3s infinite; }
@keyframes orbBreath { 50% { transform: rotate(-3deg) scale(1.015); } }
.cst-parent { position: absolute; left: 50%; top: 36%; width: clamp(96px, 9vw, 140px); height: auto; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; }
.cst-sky::before { content: ""; position: absolute; left: 50%; top: 36%; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(221, 227, 250, .8), rgba(243, 221, 224, .35) 55%, rgba(245, 246, 248, 0)); pointer-events: none; }
.cst-hubs { position: absolute; left: 50%; top: 36%; width: 0; height: 0; }
.hub { --ring: var(--gold); position: absolute; left: 0; top: 0; width: 180px; margin: -90px 0 0 -90px; display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); opacity: var(--ho, 1); will-change: transform; }
.hub[data-sector="gflower"] { --ring: var(--gf-rose); --ink2: var(--gf-ink); }
.hub[data-sector="laundry"] { --ring: var(--la-peri); --ink2: var(--la-ink); }
.hub[data-sector="libraries"] { --ring: var(--li-sage); --ink2: var(--li-ink); }
.hub-disc { position: relative; display: grid; place-items: center; width: 148px; height: 148px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lift); transition: box-shadow var(--t-ui) var(--ease-ui); }
/* the pearl edge, and the sector's own colour as a ring (its spectrum lives only here and in its world) */
.hub-disc::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; padding: 1.5px; background: var(--iri); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hub-disc::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 2px solid var(--ring); opacity: 0; transform: scale(.92); transition: opacity var(--t-ui) var(--ease-ui), transform var(--t-ui) var(--ease-ui); }
.hub.front .hub-disc::after { opacity: 1; transform: none; }
.hub-disc img { width: 108px; height: 108px; object-fit: contain; }
.hub-disc.wide img { width: 124px; height: auto; }
.hub-disc.soon { display: grid; align-content: center; gap: 2px; background: var(--li-tint); }
.hub-soon { font-family: var(--f-display); font-weight: 400; font-size: 18px; color: var(--li-ink); }
.hub-disc.soon small { font-size: 13px; color: var(--li-ink); }
.hub-name { font-weight: 500; font-size: 15px; line-height: 1.35; max-width: 16ch; text-align: center; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .86); }
.hub.front .hub-name { color: var(--ink2); }
.hub:focus-visible { outline: none; }
.hub:focus-visible .hub-disc { box-shadow: 0 0 0 3px var(--pearl, #fff), 0 0 0 5px var(--gold-text), var(--shadow-lift); }
.cst-panels { position: relative; text-align: start; }
.panel { --w-ink: var(--gold-text); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); border: 1px solid rgba(214, 219, 228, .9); display: grid; gap: 10px; justify-items: start; position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--w-accent, var(--gold)); }
.panel[data-sector="gflower"] { --w-ink: var(--gf-ink); --w-accent: linear-gradient(90deg, var(--gf-rose), var(--gf-olive)); }
.panel[data-sector="laundry"] { --w-ink: var(--la-ink); --w-accent: linear-gradient(90deg, var(--la-peri), var(--la-slate)); }
.panel[data-sector="libraries"] { --w-ink: var(--li-ink); --w-accent: var(--li-sage); }
.panel-kicker { font-size: 14px; font-weight: 500; color: var(--w-ink); }
.panel h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 1.6vw + 16px, 42px); line-height: 1.2; }
.panel .btn-world { margin-top: 14px; }
.js .panel:not([hidden]) > * { animation: panelIn var(--t-ui) var(--ease-ui) both; }
.js .panel:not([hidden]) > :nth-child(2) { animation-delay: 40ms; } .js .panel:not([hidden]) > :nth-child(3) { animation-delay: 80ms; } .js .panel:not([hidden]) > :nth-child(4) { animation-delay: 120ms; } .js .panel:not([hidden]) > :nth-child(n+5) { animation-delay: 160ms; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.btn-world { background: var(--ink); color: var(--ivory); }
.btn-world:hover { background: var(--gold-text); }
.cst-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.cst-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge-line); background: #fff; cursor: pointer; font-size: 18px; transform: translate(var(--mx, 0), var(--my, 0)); transition: border-color var(--t-micro) var(--ease-micro), background-color var(--t-micro) var(--ease-micro); }
.cst-arrow:hover { border-color: var(--gold-text); }
[dir="ltr"] .cst-arrow span { display: inline-block; transform: scaleX(-1); }
.cst-dots { display: flex; gap: 8px; }
.cst-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hair); transition: background-color var(--t-micro), transform var(--t-micro); }
.cst-dots i.on { background: var(--gold-text); transform: scale(1.3); }
.cst-hint { font-size: 13.5px; color: var(--graphite); }
.no-js .cst-track { height: auto; }
.no-js .cst-stage { position: relative; height: auto; }
.no-js .panel[hidden] { display: grid; }

/* ---------------------------------------------------------------- the portal: a sector's world */
.portal { position: fixed; inset: 0; z-index: 80; background: var(--w-tint, var(--c-pale)); clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .76s var(--ease-cinematic); }
.portal.open { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.portal[data-world="gflower"] { --w-tint: var(--gf-tint); --w-ink: var(--gf-ink); --w-a: var(--gf-rose); --w-b: var(--gf-olive); }
.portal[data-world="laundry"] { --w-tint: var(--la-tint); --w-ink: var(--la-ink); --w-a: var(--la-peri); --w-b: var(--la-slate); }
.portal[data-world="libraries"] { --w-tint: var(--li-tint); --w-ink: var(--li-ink); --w-a: var(--li-sage); --w-b: var(--li-sage); }
html.portal-open, html.portal-open body { overflow: hidden; }
.pt-top { position: absolute; z-index: 5; inset-inline: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); pointer-events: none; }
.pt-top > * { pointer-events: auto; }
.pt-logo { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 6px 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.pt-logo img { height: 52px; width: auto; }
.pt-soon { font-family: var(--f-display); color: var(--li-ink); font-size: 16px; }
.pt-close { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-soft); cursor: pointer; font-weight: 500; font-size: 15px; color: var(--ink); }
.pt-close svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pt-close:hover { color: var(--w-ink); }
.pt-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.pt-film { position: relative; height: 260vh; }
.pt-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--w-tint); }
.pt-frame, .pt-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: center / cover no-repeat; max-width: none; }
.pt-video { opacity: 0; transition: opacity .6s var(--ease-ui); }
.clip-ready .pt-video { opacity: 1; }
.clip-ready .pt-end { opacity: 0 !important; }
.pt-title { position: absolute; z-index: 2; inset-inline-start: var(--gutter); top: 50%; transform: translateY(-50%); max-width: min(30vw, 420px); color: var(--w-ink); }
.pt-kicker { font-size: 14px; font-weight: 500; margin-bottom: 10px; opacity: .85; }
.pt-h { font-family: var(--f-display); font-weight: 300; font-size: clamp(38px, 3.6vw + 12px, 84px); line-height: 1.1; color: var(--ink); margin-bottom: 12px; }
.pt-tag { font-family: var(--f-display); font-weight: 300; font-size: clamp(20px, 1vw + 14px, 28px); }
.pt-cue { position: absolute; z-index: 2; inset-inline-end: var(--gutter); bottom: 32px; display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 500; opacity: calc(1 - var(--pp, 0) * 8); }
[dir="rtl"] .pt-cue { padding: 4px 4px 4px 14px; }
.clip-loaded .ring-chev, .clip-failed .ring-chev { opacity: 1; animation: nudge 2.6s var(--ease-io) -0.4s infinite; }
.clip-loaded .ring-fg, .clip-failed .ring-fg { opacity: 0; }
.pt-body { position: relative; padding-block: clamp(64px, 8vw, 120px); background: var(--w-tint); }
.pt-body::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--w-a), var(--w-b)); }
.pt-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.pt-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 5; background: #fff; }
.pt-photo img { width: 100%; height: 100%; object-fit: cover; }
.world { display: grid; gap: 10px; justify-items: start; }
.world-kicker { font-size: 14px; font-weight: 500; color: var(--w-ink); }
.world h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 2vw + 18px, 52px); line-height: 1.15; }
.world-tag { font-family: var(--f-display); font-weight: 300; font-size: 22px; color: var(--w-ink); }
.world-meta, .world-note { color: var(--graphite); }
.world h4 { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--w-ink); }
.world-branches { display: flex; flex-wrap: wrap; gap: 8px; }
.world-branches a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); text-decoration: none; font-size: 14.5px; color: var(--ink); transition: border-color var(--t-micro), color var(--t-micro); }
.world-branches a::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--w-a); }
.world-branches a:hover { border-color: var(--w-ink); color: var(--w-ink); }
.world-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }

/* ---------------------------------------------------------------- the finale */
.finale { position: relative; height: 220vh; }
.fin-anchor { position: absolute; inset-inline: 0; top: 0; height: 0; }
.fin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; align-content: center; gap: 22px; overflow: hidden; }
.fin-stage::before { content: ""; position: absolute; left: 50%; top: 46%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(221, 227, 250, .7), rgba(243, 221, 224, .3) 50%, rgba(239, 227, 209, .2) 70%, rgba(245, 246, 248, 0)); opacity: calc(.25 + var(--fg, 0) * .75); pointer-events: none; }
.tok { position: absolute; left: 50%; top: 46%; width: 76px; height: 76px; margin: -38px 0 0 -38px; opacity: 0; will-change: transform; filter: drop-shadow(0 10px 18px rgba(28, 38, 70, .18)); }
.tok path { stroke-linejoin: round; }
.tok-petal path { fill: var(--gf-rose); }
.tok-petal .vein { fill: none; stroke: var(--gf-olive); stroke-width: 1.6; }
.tok-fabric path { fill: var(--la-peri); }
.tok-fabric .vein { fill: none; stroke: var(--la-slate); stroke-width: 1.4; }
.tok-page path { fill: #fff; stroke: var(--li-sage); stroke-width: 2; }
.tok-page .vein { fill: none; }
.fin-mark { position: relative; opacity: var(--fm, 0); }
.fin-lockup { width: 360px; height: auto; }
.fin-lockup.lk-en, [lang="en"] .fin-lockup.lk-ar { display: none; }
[lang="en"] .fin-lockup.lk-en { display: block; }
.fin-symbol { display: none; width: 112px; height: auto; }
.fin-line { position: relative; font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 2vw + 14px, 52px); line-height: 1.25; text-align: center; padding-inline: var(--gutter); }
.fin-line .w { display: inline-block; --kc: clamp(0, (var(--fl, 0) - var(--th, 0)) * 3, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * 22px)); }
@media (max-width: 439px) { .fin-lockup { display: none !important; } .fin-symbol { display: block; } }
@media (max-height: 700px) and (min-width: 440px) { .fin-lockup { width: 360px; } .fin-stage { gap: 10px; } }

/* ---------------------------------------------------------------- the contextual cursor (desktop) */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity var(--t-micro) var(--ease-micro); }
.cursor.on { opacity: 1; }
.cur-ring { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold); transition: transform var(--t-micro) var(--ease-micro), background-color var(--t-micro), border-color var(--t-micro); }
.cursor.over .cur-ring { transform: scale(1.6); background: rgba(192, 164, 131, .12); }
.cur-ico { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity var(--t-micro) var(--ease-micro), transform var(--t-micro) var(--ease-micro); }
.cursor[data-kind="petal"] .cur-ico, .cursor[data-kind="fabric"] .cur-ico, .cursor[data-kind="page"] .cur-ico, .cursor[data-kind="pin"] .cur-ico { opacity: 1; transform: none; }
.cursor[data-kind="petal"] .cur-ico { fill: var(--gf-rose); stroke: var(--gf-ink); }
.cursor[data-kind="fabric"] .cur-ico { fill: var(--la-peri); stroke: var(--la-ink); }
.cursor[data-kind="page"] .cur-ico { fill: #fff; stroke: var(--li-sage); }
.cursor[data-kind="pin"] .cur-ico { fill: var(--gold); stroke: var(--ink); }
.cursor[data-kind]:not([data-kind=""]) .cur-ring { transform: scale(1.9); background: #fff; border-color: var(--hair); }
.btn, .head-cta, .pill { translate: var(--mx, 0) var(--my, 0); }

/* ---------------------------------------------------------------- 07 numbers + map */
.numbers-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.numbers-copy .h2 { margin-bottom: clamp(36px, 4vw, 56px); max-width: 16ch; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius-s); overflow: hidden; }
.fig { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 22px 24px; background: rgba(255, 255, 255, .92); }
.fig dt { font-size: 15px; color: var(--graphite); }
.fig dd { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 3vw + 10px, 64px); line-height: 1.05; }
.fig dd .count { font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.fig dd.word { font-size: clamp(32px, 2vw + 12px, 48px); }
.fig-main { grid-column: 1 / -1; background: rgba(255, 255, 255, .96); }
.fig-main dd { font-size: clamp(64px, 6vw + 10px, 112px); color: var(--ink); }
.fig-group-label { margin: 34px 0 12px; font-size: 14px; font-weight: 500; color: var(--gold-text); }
.figures.small .fig dd { font-size: clamp(32px, 2vw + 10px, 44px); }
.map { position: relative; margin: 0; }
.map-box { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); background: #FBFCFD; border: 1px solid rgba(214, 219, 228, .95); box-shadow: 0 50px 90px -60px rgba(28, 38, 70, .468); overflow: hidden; }
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .map-canvas { clip-path: circle(0% at 50% 50%); transition: clip-path 1.8s var(--ease-out); }
.js .map-box.revealed .map-canvas { clip-path: circle(75% at 50% 50%); }
.map-pins { position: absolute; inset: 0; }
.pin { position: absolute; left: 0; top: 0; transform: translate(var(--px), var(--py)); text-decoration: none; color: var(--ink); }
.pin-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; background: var(--gold); border: 2px solid #fff; transform: rotate(45deg); box-shadow: 0 4px 10px -3px rgba(28, 38, 70, .425); transition: transform .4s var(--ease-back); }
.pin.l .pin-dot { background: var(--ink); }
.pin-ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.on .pin-ring { animation: pinPulse 4.2s ease-out infinite; animation-delay: var(--pd, 0s); }
@keyframes pinPulse { 0% { transform: scale(.3); opacity: .8; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.pin-label { position: absolute; top: 12px; left: 0; transform: translateX(-50%); padding: 5px 11px; border-radius: 10px; background: rgba(255, 255, 255, .94); border: 1px solid var(--hair); box-shadow: 0 8px 20px -12px rgba(28, 38, 70, .383); white-space: nowrap; font-size: 13.5px; line-height: 1.4; text-align: center; }
.pin-label b { display: block; font-weight: 500; font-size: 14px; }
.pin-label small { display: block; font-size: 12.5px; color: var(--graphite); }
.pin.up .pin-label { top: auto; bottom: 14px; }
.pin:hover .pin-dot, .pin.hot .pin-dot { transform: rotate(45deg) scale(1.35); }
.pin.hot .pin-label { border-color: var(--gold); }
.js [data-enter="map"] .pin { opacity: 0; transition: opacity .6s var(--ease-out); }
.js [data-enter="map"] .pin .pin-dot { transform: rotate(45deg) translate(-14px, -14px) scale(.4); }
.js [data-enter="map"].in .pin { opacity: 1; transition-delay: calc(.9s + var(--k) * .14s); }
.js [data-enter="map"].in .pin .pin-dot { transform: rotate(45deg); transition-delay: calc(.9s + var(--k) * .14s); }
.map-north { position: absolute; top: 18px; inset-inline-end: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--edge-line); font-size: 12px; color: var(--graphite); background: rgba(255, 255, 255, .7); }
.map-scale { position: absolute; bottom: 18px; inset-inline-end: 18px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--graphite); }
.map-scale i { display: block; width: var(--km5, 80px); height: 6px; border: 1px solid var(--graphite); border-top: 0; }
.map figcaption { padding-top: 22px; }
.map-title { font-family: var(--f-display); font-weight: 400; font-size: var(--t-h3); margin-bottom: 10px; }
.legend { display: grid; gap: 6px; font-size: 15px; color: var(--graphite); }
.legend li { position: relative; padding-inline-start: 20px; }
.lg-dot { position: absolute; inset-inline-start: 2px; top: .7em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); }
.lg-dot.l { background: var(--ink); }
.legend a { color: var(--gold-text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.legend a:hover { color: var(--ink); }
.map-note { margin-top: 10px; font-size: 13.5px; color: var(--graphite); }

/* ---------------------------------------------------------------- 08 poll */
.poll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(64px, 10vw, 160px); align-items: center; }
.poll-copy .lede { color: var(--graphite); }
.poll-box { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: rgba(255, 255, 255, .72); border: 1px solid rgba(214, 219, 228, .95); box-shadow: 0 40px 80px -56px rgba(28, 38, 70, .425); }
.poll-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pill { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--edge-line); background: var(--surface); cursor: pointer; font-size: 17px; font-weight: 500; transition: border-color var(--d-fast), background-color var(--d-fast), transform var(--d-fast) var(--ease-out), box-shadow var(--d-fast); }
.pill:hover:not(:disabled), .pill.is-hot { border-color: var(--gold-text); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(28, 38, 70, .425); }
.pill-pin { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.pill:disabled { cursor: default; }
.pill:disabled:not([aria-pressed="true"]) { opacity: .6; }
.js [data-enter="pop"] .pill { opacity: 0; transform: scale(.86); transition: opacity .6s var(--ease-out), transform .8s var(--ease-back), border-color var(--d-fast), background-color var(--d-fast); }
.js [data-enter="pop"].in .pill { opacity: 1; transform: none; }
.js [data-enter="pop"].in .pill:nth-child(2) { transition-delay: .08s; } .js [data-enter="pop"].in .pill:nth-child(3) { transition-delay: .16s; } .js [data-enter="pop"].in .pill:nth-child(4) { transition-delay: .24s; }
.js [data-enter="pop"].done .pill:nth-child(n) { transition-delay: 0s; }
.poll-results { margin-top: 22px; }
.poll-msg { display: flex; align-items: center; gap: 12px; font-weight: 500; margin-bottom: 14px; }
.poll-tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); position: relative; }
.poll-tick::after { content: ""; position: absolute; left: 8px; top: 6px; width: 7px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 6.5em 1fr 3em; align-items: center; gap: 12px; font-size: 15px; }
.track-bar { height: 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--hair); overflow: hidden; }
.fill { display: block; height: 100%; width: 100%; background: var(--edge-line); transform-origin: var(--from, right); transform: scaleX(var(--v, 0)); transition: transform 1.2s var(--ease-out); }
[dir="ltr"] .fill { --from: left; }
.bar.is-chosen .fill { background: var(--gold); }
.pct { font-family: var(--f-mono); font-size: 13px; text-align: end; }

/* ---------------------------------------------------------------- 09 records: the one dark band */
.records { padding-block: 0; }
.records-band { position: relative; background: var(--ink); color: var(--ivory); padding-block: clamp(100px, 11vw, 160px); }
.records-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 80% 0%, rgba(192, 164, 131, .12), rgba(192, 164, 131, 0) 60%); pointer-events: none; }
.records .eyebrow { color: var(--gold); }
.records .eyebrow .mono { color: #BFC2BB; }
.records-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.records .lede { color: #E6E8EC; margin: 22px 0 18px; }
.statement { color: #BFC2BB; max-width: 52ch; }
.recs { display: grid; gap: 14px; }
.rec { display: grid; gap: 8px; padding: 22px 26px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .035); border: 1px solid rgba(191, 194, 187, .2); position: relative; overflow: hidden; }
.rec::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(192, 164, 131, 0) 30%, rgba(192, 164, 131, .14) 50%, rgba(192, 164, 131, 0) 70%); transform: translateX(-100%); pointer-events: none; }
.on .rec::after { animation: sheen 9s ease-in-out infinite; }
.on .rec:nth-child(2)::after { animation-delay: 1.2s; } .on .rec:nth-child(3)::after { animation-delay: 2.4s; }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.rec dt { font-size: 14px; color: var(--gold); font-weight: 500; }
.rec dd { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rec-v { font-size: clamp(22px, 1.4vw + 12px, 32px); letter-spacing: .04em; color: var(--ivory); }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(191, 194, 187, .5); background: none; color: var(--ivory); cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color var(--d-fast), border-color var(--d-fast), color var(--d-fast); }
.copy svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.copy:hover { border-color: var(--gold); color: var(--gold); }
.copy.done { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.records :focus-visible { outline-color: var(--gold); }
.js [data-enter="band"] .records-band { clip-path: inset(0 0 0 100%); transition: clip-path 1.5s var(--ease-io); }
.js[dir="ltr"] [data-enter="band"] .records-band { clip-path: inset(0 100% 0 0); }
.js [data-enter="band"].in .records-band { clip-path: inset(0 0 0 0); }
.js [data-enter="band"] .recs .rec { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js [data-enter="band"].in .recs .rec { opacity: 1; transform: none; transition-delay: .9s; }
.js [data-enter="band"].in .recs .rec:nth-child(2) { transition-delay: 1.02s; }
.js [data-enter="band"].in .recs .rec:nth-child(3) { transition-delay: 1.14s; }
.js [data-enter="band"].done .recs .rec:nth-child(n) { transition-delay: 0s; }

/* ---------------------------------------------------------------- 10 contact */
.contact { padding-block: 0; }
.contact-stage { --hz: 54%; --lx: 50%; position: relative; min-height: max(100vh, 760px); display: grid; align-items: end; padding-block: clamp(120px, 14vw, 200px) clamp(72px, 8vw, 110px); }
.contact-photo { position: absolute; inset: 0; z-index: -1; background: var(--c-film) url("../hero/hero-desk-poster.jpg") center / cover no-repeat; }
.contact-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(240, 242, 246, .35), rgba(240, 242, 246, 0) 30%, rgba(240, 242, 246, 0) 72%, #F2F4F7); }
.contact-grid { width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(96px, 12vw, 200px); align-items: end; }
.contact-copy, .partner { padding: clamp(26px, 3vw, 44px); border-radius: var(--radius); background: rgba(250, 251, 252, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 40px 80px -50px rgba(28, 38, 70, .468); }
.h2.big { font-size: clamp(36px, 2.6vw + 14px, 64px); line-height: 1.2; margin-bottom: 18px; }
.contact-copy .lede { color: var(--graphite); margin-bottom: 26px; }
.contact-links { display: grid; gap: 4px; }
.clink { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--hair); text-decoration: none; transition: color var(--d-fast); }
.clink .c-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hair); transition: background-color var(--d-fast), border-color var(--d-fast); }
.clink svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.clabel { font-weight: 500; }
.cval { justify-self: end; color: var(--graphite); font-size: 15px; }
.clink:hover .c-ico { background: var(--gold); border-color: var(--gold); }
.clink:hover .clabel { color: var(--gold-text); }
.partner { align-self: end; }
.partner-kicker { font-family: var(--f-display); font-weight: 300; font-size: 17px; color: var(--gold-text); margin-bottom: 12px; }
.partner h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 2vw + 14px, 44px); line-height: 1.2; margin-bottom: 12px; }
.partner p:not(.partner-kicker) { color: var(--graphite); margin-bottom: 26px; }
.js [data-enter="reveal"] .contact-photo { clip-path: inset(0 calc(50% - 1px)); transition: clip-path 1.8s var(--ease-io); }
.js [data-enter="reveal"].in .contact-photo { clip-path: inset(0 0); }
.js [data-enter="reveal"] .contact-copy, .js [data-enter="reveal"] .partner { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out) .8s, transform 1.1s var(--ease-out) .8s; }
.js [data-enter="reveal"].in .contact-copy, .js [data-enter="reveal"].in .partner { opacity: 1; transform: none; }
.js [data-enter="reveal"].in .partner { transition-delay: 1s; }

/* ---------------------------------------------------------------- footer */
.site-foot { position: relative; background: linear-gradient(#F2F4F7, #E9ECF2); padding: clamp(110px, 10vw, 150px) 0 40px; }
.foot-in { display: grid; gap: 56px; }
.foot-brand { position: relative; display: grid; justify-items: center; text-align: center; gap: 16px; }
.foot-lockup { width: 360px; height: auto; margin-bottom: 8px; }
.foot-lockup.lk-en, [lang="en"] .foot-lockup.lk-ar { display: none; }
[lang="en"] .foot-lockup.lk-en { display: block; }
.foot-symbol { display: none; width: 96px; height: auto; }
.foot-tag { font-size: clamp(22px, 1vw + 16px, 30px); }
.live-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--graphite); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.on .live-dot { animation: breathe 3s ease-in-out infinite; }
.foot-cols { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(120, 128, 145, .3); }
.foot-records { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; }
.foot-records div { display: flex; gap: 8px; align-items: baseline; }
.foot-records dt { color: var(--graphite); }
.foot-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.foot-small { font-size: 13px; color: var(--graphite); text-align: center; }
@media (max-width: 439px) {
  .foot-lockup { display: none !important; }
  .foot-symbol { display: block; }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1100px) {
  .values-list { grid-template-columns: repeat(3, 1fr); row-gap: 64px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .map-box { aspect-ratio: 5 / 4; }
  .leaders { grid-template-columns: 1fr; row-gap: 28px; }
  .lead-col.b { padding-top: 0; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  :root { --t-body: 16.5px; }
  .sec { padding-block: 96px; }
  .story-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .count-fig { font-size: clamp(96px, 30vw, 150px); }
  .ruler { height: 168px; }
  .ruler-ends { flex-wrap: wrap; font-size: 13px; }
  .ruler-ends > :nth-child(2) { order: 3; width: 100%; text-align: center; }
  .vm-pair { grid-template-columns: 1fr; gap: 24px; }
  .values-rail { padding-top: 0; padding-inline-start: 26px; }
  .values-list { grid-template-columns: 1fr; gap: 18px; }
  .v-hook { top: 50%; inset-inline-start: -26px; width: 26px; height: 1px; }
  .v-hook::before { top: -4px; left: auto; inset-inline-start: -4px; }
  .js [data-enter="hang"] .value { transform-origin: var(--hang, right) 50%; transform: rotateY(calc(var(--dir) * -70deg)); }
  .js[dir="ltr"] [data-enter="hang"] .value { --hang: left; }
  .js [data-enter="hang"].in .value { transform: none; }
  .value .tilt-in { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 22px; }
  .value .v-n { grid-column: 1 / -1; margin-bottom: 6px; }
  .value .v-ico { grid-row: span 2; margin: 2px 0 0; }
  .leader { padding: 28px 22px; padding-top: 70px; }
  .poll-grid, .records-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .figures .fig { padding: 18px; }
  .map-box { aspect-ratio: 4 / 5; }
  .contact-stage { min-height: 0; display: block; padding: 0 0 72px; }
  .contact-photo { position: relative; z-index: 0; height: 62vh; min-height: 420px; }
  .contact-grid { margin-top: -140px; }
  .bar { grid-template-columns: 5.6em 1fr 2.8em; }
  .pill { padding: 0 10px; gap: 8px; white-space: nowrap; font-size: 16px; }
  .clink { grid-template-columns: auto 1fr; row-gap: 0; }
  .clink .c-ico { grid-row: span 2; }
  .cval { justify-self: start; }
  .foot-cols { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------- the constellation, the portal and the finale on smaller screens */
@media (max-width: 1100px) {
  .cst-grid { grid-template-columns: 1fr; gap: 12px; }
  .cst-sky { height: min(46vh, 460px); }
  .cst-stage { align-content: start; padding-top: calc(var(--head-h) + 8px); }
  .panel { padding: 20px 22px; gap: 6px; }
  .pt-grid { grid-template-columns: 1fr; }
  .pt-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .cst-track { height: 220vh; }
  .cst-sky { height: 40vh; min-height: 280px; }
  .hub { width: 120px; margin: -60px 0 0 -60px; gap: 6px; }
  .hub-disc { width: 92px; height: 92px; }
  .hub-disc img { width: 68px; height: 68px; }
  .hub-disc.wide img { width: 80px; }
  .hub-soon { font-size: 15px; }
  .hub-name { font-size: 13px; }
  .cst-parent { width: 76px; }
  .cst-sky::before { width: 200px; height: 200px; }
  .panel h3 { font-size: 26px; }
  .panel .services { display: none; }
  .panel .sector-tag { font-size: 17px; }
  .cst-nav { margin-top: 10px; }
  .cst-hint { display: none; }
  .pt-title { top: auto; bottom: 92px; transform: none; inset-inline: var(--gutter); max-width: none; text-align: center; }
  .pt-title::before { content: ""; position: absolute; inset: -30% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); }
  .pt-cue { inset-inline: 0; margin-inline: auto; width: max-content; }
  .pt-logo { height: 54px; min-width: 54px; } .pt-logo img { height: 42px; }
  .pt-close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pt-close { padding: 0 14px; }
  .tok { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}

/* ---------------------------------------------------------------- reduced motion: final states, no video */
@media (prefers-reduced-motion: reduce) {
  /* no transitions at all: final states apply at once, without waiting for a frame */
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-enter] *, .js [data-enter] { opacity: 1 !important; clip-path: none !important; stroke-dashoffset: 0 !important; }
  .js [data-enter="rise"] > *, .js [data-enter="part"] .vm, .js [data-enter="hang"] .value, .js [data-enter="pop"] .pill, .js [data-enter="band"] .recs .rec,
  .js [data-enter="reveal"] .contact-copy, .js [data-enter="reveal"] .partner, .js [data-enter="frame"] > :not(.frame),
  .js .story-head *, .js [data-enter="map"] .pin .pin-dot { transform: none; }
  .js[dir="rtl"] [data-enter="frame"] .qmark { transform: scaleX(-1); }
  .js [data-enter="map"] .pin .pin-dot { transform: rotate(45deg); }
  .sec .split .w { opacity: 1; transform: none; }
}
html.rm .hero { height: 400vh; }
html.rm .settle-cue { display: none; }
html.rm .b1, html.rm .b2, html.rm .b3, html.rm .band-cue { display: none; }

/* the language switch: the page fades, swaps, returns */
main, .site-foot, .site-head .head-tools { transition: opacity .32s var(--ease-io); }
html.lang-swap main, html.lang-swap .site-foot, html.lang-swap .site-head .head-tools { opacity: 0; }
