/* Qershnawy — official website. Cinematic dark theme in the brand's emerald, gold and ivory.
   Written with logical properties so the same rules serve Arabic (RTL) and English (LTR). */

@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #04110c;
  --emerald: #0f7b5f;
  --gold: #e7b54a;
  --ink-2: color-mix(in srgb, var(--ink) 88%, #1d4a38);
  --ink-3: color-mix(in srgb, var(--ink) 76%, #2b6a52);
  --emerald-2: color-mix(in srgb, var(--emerald) 70%, #7af0c6);
  --gold-2: color-mix(in srgb, var(--gold) 55%, #fff4d6);
  --gold-3: color-mix(in srgb, var(--gold) 80%, #7a4e10);
  --ivory: #f6f0e3;
  --text: #e6eee8;
  --muted: #a2b4aa;
  --faint: #6f8479;
  --line: rgba(246, 240, 227, .10);
  --line-2: rgba(246, 240, 227, .18);
  --glass: rgba(8, 26, 19, .58);
  --glass-2: rgba(12, 36, 27, .72);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .75);
  --container: 1220px;
  --gutter: clamp(16px, 4vw, 36px);
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23e7b54a' stroke-width='1' opacity='.55'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='6'/%3E%3Cpath d='M0 36h8M64 36h8M36 0v8M36 64v8'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; background: var(--ink); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
[lang="en"] body, body:lang(en) { line-height: 1.65; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; color: var(--ivory); letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .7em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
}
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-gold {
  color: #1a1204; background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-3));
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--gold) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--gold) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-glass { color: var(--ivory); background: rgba(255, 255, 255, .07); border-color: var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, .13); border-color: color-mix(in srgb, var(--gold) 60%, transparent); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .92rem; }
.btn .play-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); margin-inline-start: -.5em; }
.btn .play-dot .ic { width: 14px; height: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; color: var(--gold-2); font-weight: 700; }
.link-arrow .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ic { transform: scaleX(-1) translateX(4px); }

/* ---------- announcement + header ---------- */
.announce { position: relative; z-index: 60; display: block; text-align: center; padding: 9px var(--gutter); font-size: .92rem; font-weight: 500; color: #1a1204; background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2), var(--gold), var(--gold-3)); }
.announce a { text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; transition: background .4s, box-shadow .4s, border-color .4s; border-bottom: 1px solid transparent; }
.page-home .site-header { position: fixed; inset-inline: 0; top: var(--announce-h, 0px); }
.site-header.scrolled, .page-inner .site-header { background: rgba(4, 17, 12, .78); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7); }
.brand b { font-size: 1.35rem; color: var(--ivory); letter-spacing: .01em; }
.brand small { display: block; font-size: .75rem; color: var(--gold-2); font-weight: 500; line-height: 1; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: #d6e1da; font-weight: 500; font-size: .98rem; transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); background: rgba(255, 255, 255, .07); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: .92rem; color: var(--ivory); transition: border-color .25s, background .25s; }
.lang:hover { border-color: var(--gold); background: rgba(231, 181, 74, .08); }
.burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); color: var(--ivory); place-items: center; }
.drawer { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(2, 10, 7, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.drawer.open { display: block; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 380px); background: linear-gradient(180deg, var(--ink-3), var(--ink)); border-inline-start: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 8px; animation: slideIn .35s var(--ease); overflow-y: auto; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
[dir="rtl"] .drawer-panel { animation-name: slideInRtl; }
@keyframes slideInRtl { from { transform: translateX(-30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer a.dl { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 14px; font-size: 1.1rem; font-weight: 500; color: var(--ivory); border: 1px solid transparent; }
.drawer a.dl:hover { background: rgba(255, 255, 255, .05); border-color: var(--line); }
.drawer a.dl .ic { color: var(--gold); }
.drawer .btn { margin-top: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.hero-slide.is-active img { animation: kenburns 16s ease-out forwards; }
.hero-slide:nth-child(2n).is-active img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
@keyframes kenburns2 { from { transform: scale(1.02) translate3d(-1.5%, 0, 0); } to { transform: scale(1.14) translate3d(1%, -1.5%, 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--hero-side, 90deg), rgba(4, 17, 12, .78) 0%, rgba(4, 17, 12, .35) 38%, transparent 62%),
    linear-gradient(0deg, var(--ink) 0%, rgba(4, 17, 12, .86) 22%, rgba(4, 17, 12, .3) 55%, rgba(4, 17, 12, .55) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(2, 8, 6, .75) 100%);
}
[dir="rtl"] .hero { --hero-side: 270deg; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; background-image: var(--pattern); background-size: 72px; mask-image: linear-gradient(0deg, #000 0%, transparent 45%); -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 45%); }
.hero-inner { padding-block: 150px clamp(170px, 22vh, 220px); }
.hero-copy { max-width: 780px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.kicker::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
[dir="rtl"] .kicker::before { background: linear-gradient(-90deg, var(--gold), transparent); }
.hero-title {
  margin-top: 14px; font-size: clamp(3.6rem, 11vw, 8.4rem); line-height: 1.02; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold) 20%, #fff3cf 38%, var(--gold) 55%, var(--gold-3) 80%, var(--gold) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .45)); animation: shine 9s ease-in-out infinite;
}
[lang="ar"] .hero-title { padding-bottom: .08em; }
@keyframes shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero-sub { margin-top: 8px; font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 700; color: var(--ivory); }
.hero-text { margin-top: 18px; max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #cfdcd4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: .9rem; color: #d8e3dc; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-2); box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald-2) 70%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-meta { position: absolute; inset-inline: 0; bottom: 96px; }
.hero-meta .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-caption { display: flex; align-items: center; gap: 10px; color: #cbd8d0; font-size: .92rem; min-height: 24px; }
.hero-caption .ic { color: var(--gold); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; position: relative; }
.hero-dots button span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero-dots button span { transform-origin: right; }
.hero-dots button.is-active span { animation: dot var(--slide, 7s) linear forwards; }
@keyframes dot { to { transform: scaleX(1); } }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: #b9c8bf; font-size: .8rem; }
.scroll-cue i { width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* ---------- stats band ---------- */
.stats { position: relative; z-index: 3; margin-top: -64px; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 26px 18px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-block: 24%; inset-inline-start: 0; width: 1px; background: var(--line); }
.stat .ic { margin: 0 auto 8px; color: var(--gold); width: 24px; height: 24px; opacity: .9; }
.stat b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; color: var(--ivory); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); overflow-x: clip; }
.section.tight { padding-block: clamp(60px, 8vw, 100px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-title { margin-top: 12px; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.section-lead { margin-top: 14px; max-width: 640px; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }
.section-head.center .section-lead { margin-inline: auto; }
.glow { position: absolute; pointer-events: none; z-index: -1; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; filter: blur(40px); opacity: .5; background: radial-gradient(circle, color-mix(in srgb, var(--emerald) 45%, transparent), transparent 65%); }
.bg-pattern::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05; background-image: var(--pattern); background-size: 72px; mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); }
.alt { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 18%, var(--ink-2) 82%, var(--ink) 100%); }

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

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.story-copy p.lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #cad7cf; }
.story-visual { position: relative; }
.story-visual .frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 4 / 3.2; }
.story-visual .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story-visual:hover .frame img { transform: scale(1.05); }
.story-visual .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 17, 12, .55), transparent 45%); }
.coin-badge { position: absolute; inset-inline-start: -22px; bottom: -26px; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px; border-radius: 20px; background: var(--glass-2); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.coin { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #3a2a06; background: radial-gradient(circle at 35% 30%, #fff4cf, var(--gold) 45%, var(--gold-3)); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), 0 8px 18px -6px color-mix(in srgb, var(--gold) 70%, transparent); animation: floaty 5s ease-in-out infinite; }
.coin-badge b { display: block; font-size: 1.35rem; color: var(--ivory); line-height: 1.1; }
.coin-badge span { font-size: .88rem; color: var(--muted); }
@keyframes floaty { 50% { transform: translateY(-5px) rotate(-6deg); } }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.step:hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: rgba(231, 181, 74, .05); transform: translateX(4px); }
[dir="rtl"] .step:hover { transform: translateX(-4px); }
.step .num { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, color-mix(in srgb, var(--emerald) 60%, transparent), rgba(255, 255, 255, .03)); border: 1px solid var(--line-2); color: var(--gold-2); }
.step .num .ic { width: 22px; height: 22px; }
.step h3 { font-size: 1.08rem; }
.step p { margin-top: 2px; font-size: .95rem; color: var(--muted); line-height: 1.6; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease); }
.pillar:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--gold) 50%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--gold) 35%, transparent), var(--shadow); }
.pillar-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pillar:hover .pillar-img img { transform: scale(1.07); }
.pillar-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0a1f17 2%, transparent 60%); }
.pillar-body { position: relative; padding: 0 24px 26px; margin-top: -26px; z-index: 1; }
.pillar-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #1a1204; background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--gold) 70%, transparent); }
.pillar-icon .ic { width: 26px; height: 26px; }
.pillar h3 { margin-top: 16px; font-size: 1.35rem; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: .98rem; line-height: 1.7; }

/* ---------- world rail ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 30vw, 390px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 6px 26px; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.district { position: relative; scroll-snap-align: start; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); isolation: isolate; transition: transform .5s var(--ease), border-color .4s; }
.district:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.district img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.district:hover img { transform: scale(1.08); }
.district::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 12, 9, .95) 0%, rgba(3, 12, 9, .55) 38%, transparent 70%); }
.district-body { position: absolute; inset-inline: 0; bottom: 0; padding: 24px; }
.district .idx { font-size: .8rem; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.district h3 { margin-top: 6px; font-size: 1.5rem; }
.district p { margin-top: 8px; color: #c5d3ca; font-size: .95rem; line-height: 1.6; }
.rail-ctrl { display: flex; gap: 10px; }
.rail-ctrl button { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--ivory); transition: background .25s, border-color .25s, opacity .25s; }
.rail-ctrl button:hover { background: rgba(231, 181, 74, .12); border-color: var(--gold); }
.rail-ctrl button:disabled { opacity: .35; pointer-events: none; }

/* ---------- work ---------- */
.work { position: relative; overflow: hidden; isolation: isolate; }
.work-bg { position: absolute; inset: 0; z-index: -2; }
.work-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8); }
.work::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(4, 17, 12, .82) 18%, rgba(4, 17, 12, .86) 82%, var(--ink) 100%); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.panel-head .badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(231, 181, 74, .12); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.panel-head h3 { font-size: 1.5rem; }
.panel > p { color: var(--muted); margin-bottom: 20px; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: background .25s, border-color .25s, transform .3s var(--ease); }
.chip:hover { background: rgba(231, 181, 74, .07); border-color: color-mix(in srgb, var(--gold) 40%, transparent); transform: translateY(-2px); }
.chip .ic { color: var(--gold-2); width: 22px; height: 22px; }
.chip b { display: block; font-weight: 700; color: var(--ivory); font-size: .98rem; line-height: 1.3; }
.chip small { display: block; color: var(--faint); font-size: .82rem; line-height: 1.4; margin-top: 2px; }

/* ---------- cinematic quote ---------- */
.quote { position: relative; min-height: min(82vh, 760px); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.quote img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; will-change: transform; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(4, 17, 12, .35) 30%, rgba(4, 17, 12, .35) 70%, var(--ink) 100%), radial-gradient(60% 50% at 50% 50%, rgba(4, 17, 12, .45), transparent); }
.quote blockquote { margin: 0; max-width: 900px; padding: 0 var(--gutter); font-size: clamp(2rem, 5.2vw, 4rem); font-weight: 700; line-height: 1.25; color: var(--ivory); text-shadow: 0 10px 40px rgba(0, 0, 0, .7); }
.quote blockquote::before { content: "“"; display: block; font-size: 1.6em; line-height: .6; color: var(--gold); }
[lang="ar"] .quote blockquote::before { content: "”"; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 230px); gap: 14px; grid-auto-flow: dense; }
.shot { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); padding: 0; cursor: zoom-in; }
.shot.wide { grid-column: span 2; }
.shot.big { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 16px 12px; text-align: start; font-size: .9rem; color: #e5ece7; background: linear-gradient(0deg, rgba(3, 12, 9, .85), transparent); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button, .filters a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: #d3dfd8; font-weight: 500; transition: all .25s; }
.filters button.on, .filters a.on, .filters button:hover, .filters a:hover { background: var(--gold); border-color: var(--gold); color: #1a1204; }

/* ---------- community ---------- */
.community-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 26px; align-items: start; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(21, 163, 126, .14); border: 1px solid rgba(21, 163, 126, .4); color: #8ff0cf; font-size: .82rem; font-weight: 700; }
.kpis { display: grid; gap: 12px; margin-top: 26px; }
.kpi { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.kpi .ic { width: 28px; height: 28px; color: var(--gold); }
.kpi b { font-size: 1.8rem; line-height: 1; color: var(--ivory); font-variant-numeric: tabular-nums; }
.kpi span { display: block; color: var(--muted); font-size: .92rem; }
.cards { display: grid; gap: 18px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.card { border-radius: var(--radius); padding: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; }
.card h3 { margin-top: 10px; font-size: 1.25rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font-size: .88rem; }
.card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.card .meta .ic { width: 16px; height: 16px; color: var(--gold); }
.leaders { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: r; }
.leaders li { counter-increment: r; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: .95rem; }
.leaders li:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.leaders li::before { content: counter(r); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .82rem; background: rgba(255, 255, 255, .06); color: var(--muted); }
.leaders li:nth-child(1)::before { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2b1d02; }
.leaders li:nth-child(2)::before { background: #cfd8dc; color: #1c262b; }
.leaders li:nth-child(3)::before { background: #d59a6a; color: #2a160a; }
.leaders li b { margin-inline-start: auto; color: var(--ivory); font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 14px; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--emerald), var(--emerald-2), var(--gold)); width: var(--w, 0%); transition: width 1.6s var(--ease); }
[dir="rtl"] .bar span { background: linear-gradient(-90deg, var(--emerald), var(--emerald-2), var(--gold)); }
.empty { text-align: center; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .02); }
.empty .ic { width: 42px; height: 42px; margin: 0 auto 12px; color: var(--gold); }
.empty h3 { font-size: 1.3rem; }
.empty p { margin-top: 8px; color: var(--muted); max-width: 520px; margin-inline: auto; }
.note { margin-top: 14px; font-size: .85rem; color: var(--faint); }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.post-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.post-cover { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--ink-3), var(--ink-2)); position: relative; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.06); }
.post-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); opacity: .6; }
.post-cover .ph .ic { width: 48px; height: 48px; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(231, 181, 74, .12); color: var(--gold-2); font-weight: 700; font-size: .78rem; }
.post-card h3 { font-size: 1.22rem; line-height: 1.4; }
.post-card p { color: var(--muted); font-size: .96rem; line-height: 1.7; }
.post-card .link-arrow { margin-top: auto; padding-top: 6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: rgba(231, 181, 74, .04); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 1.08rem; color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .35s var(--ease); color: var(--gold); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; color: #c3d1c9; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- download ---------- */
.download { position: relative; border-radius: 36px; padding: clamp(28px, 5vw, 64px); overflow: hidden; isolation: isolate; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--emerald) 55%, transparent), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(231, 181, 74, .18), transparent 55%), var(--ink-2); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); box-shadow: var(--shadow); }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: var(--pattern); background-size: 72px; }
.download-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.download-logo { width: clamp(120px, 16vw, 210px); border-radius: 36px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); animation: floaty 7s ease-in-out infinite; }
.download h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.download p.lead { margin-top: 12px; color: #cbd8d0; font-size: 1.1rem; max-width: 620px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store { position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 10px 20px 10px 16px; border-radius: 16px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.store .ic { width: 30px; height: 30px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store small { font-size: .74rem; opacity: .8; }
.store b { font-size: 1.22rem; font-weight: 700; letter-spacing: .01em; }
a.store:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--gold) 60%, transparent); }
.store.soon { opacity: .72; cursor: default; }
.store .soon-tag { position: absolute; top: -10px; inset-inline-end: 12px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #1a1204; font-size: .72rem; font-weight: 700; }
.promises { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.promise { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .92rem; color: #d8e4dd; }
.promise .ic { width: 18px; height: 18px; color: var(--emerald-2); }
.signup { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.signup h3 { font-size: 1.3rem; }
.signup p { color: var(--muted); margin-top: 4px; }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.signup-form input[type="email"] { flex: 1 1 260px; }
.signup-form select { flex: 0 1 190px; }
.flash { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(21, 163, 126, .12); border: 1px solid rgba(21, 163, 126, .45); color: #b5f5dd; }
.flash.err { background: rgba(220, 80, 70, .12); border-color: rgba(220, 80, 70, .45); color: #ffc9c2; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .95rem; color: #d3dfd8; }
.input, .signup-form input, .signup-form select, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(3, 12, 9, .55); color: var(--ivory); outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
textarea.input { min-height: 170px; resize: vertical; line-height: 1.7; }
.input:focus, .signup-form input:focus, .signup-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); background: rgba(3, 12, 9, .8); }
select.input, .signup-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e7b54a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px; }
[dir="rtl"] select.input, [dir="rtl"] .signup-form select { background-position: left 16px center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.error-text { color: #ffb4aa; font-size: .88rem; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding-block: clamp(70px, 10vw, 130px) clamp(40px, 6vw, 70px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 5%, rgba(4, 17, 12, .6) 60%, rgba(4, 17, 12, .85)), radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--emerald) 30%, transparent), transparent 70%); }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); margin-top: 12px; }
.page-hero p { margin-top: 14px; max-width: 700px; color: #c8d5cd; font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }

.prose { font-size: 1.08rem; color: #d2ddd6; line-height: 1.95; }
[lang="en"] .prose { line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin-inline: 0; padding: 16px 22px; border-inline-start: 3px solid var(--gold); background: rgba(231, 181, 74, .06); border-radius: 12px; color: var(--ivory); }
.prose img { border-radius: 18px; border: 1px solid var(--line); margin-inline: auto; }
.prose code { background: rgba(255, 255, 255, .08); padding: .1em .4em; border-radius: 6px; font-size: .92em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.prose strong { color: var(--ivory); }

.article-cover { margin-top: -30px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ic { width: 16px; height: 16px; color: var(--gold); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--ivory); font-size: .9rem; }
.share a:hover, .share button:hover { border-color: var(--gold); }
.share .ic { width: 16px; height: 16px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--ivory); }
.pager .on { background: var(--gold); border-color: var(--gold); color: #1a1204; font-weight: 700; }
.pager .off { opacity: .35; }

.support-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.support-grid .panel h2 { font-size: 1.6rem; margin-bottom: 18px; }
.contact-line { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); }
.contact-line a { color: var(--gold-2); font-weight: 700; }
.sent { text-align: center; padding: 30px 10px; }
.sent .ic { width: 58px; height: 58px; margin: 0 auto 14px; padding: 14px; border-radius: 50%; background: rgba(21, 163, 126, .15); color: #8ff0cf; }
.sent h2 { font-size: 1.6rem; }
.sent p { color: var(--muted); margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: clamp(60px, 8vw, 110px); padding-block: 64px 30px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink), #020906); overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .025; background-image: var(--pattern); background-size: 72px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand p { margin-top: 16px; color: var(--muted); font-size: .95rem; max-width: 340px; }
.foot-brand .fine { font-size: .84rem; color: var(--faint); margin-top: 12px; }
.site-footer h4 { font-size: 1rem; color: var(--gold-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: #c3d0c8; font-size: .96rem; transition: color .2s; }
.site-footer ul a:hover { color: var(--ivory); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ivory); transition: all .25s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #1a1204; transform: translateY(-2px); }
.socials .ic { width: 19px; height: 19px; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .88rem; }

/* ---------- lightbox + modal ---------- */
.lightbox, .modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(1, 6, 4, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox.open, .modal.open { display: flex; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(94vw, 1600px); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); object-fit: contain; }
.lightbox figcaption { color: #d6e1da; text-align: center; font-size: .98rem; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); color: #fff; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: rgba(231, 181, 74, .18); border-color: var(--gold); }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { inset-inline-start: 20px; top: 50%; margin-top: -26px; }
.lb-next { inset-inline-end: 20px; top: 50%; margin-top: -26px; }
.lb-count { position: absolute; top: 32px; inset-inline-start: 26px; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.modal-box { width: min(94vw, 1100px); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); background: #000; }
.modal-box iframe { width: 100%; height: 100%; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-tools .btn-cta { display: none; }
  .burger { display: grid; }
  .nav-tools { margin-inline-start: auto; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4)::before { display: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .community-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .story-grid, .work-grid, .support-grid { grid-template-columns: 1fr; }
  .story-visual { order: -1; margin-bottom: 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; text-align: center; }
  .download-logo { margin-inline: auto; }
  .download .stores, .download .promises { justify-content: center; }
  .download p.lead { margin-inline: auto; }
  .cards.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 66px; gap: 12px; }
  .brand img { width: 38px; height: 38px; }
  .brand b { font-size: 1.15rem; }
  .brand small { display: none; }
  .lang span { display: none; }
  .hero-inner { padding-block: 120px 150px; }
  .hero-meta { bottom: 70px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta .scroll-cue { display: none; }
  .stats { margin-top: -48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 12px; }
  .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(4)::before { display: block; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pillars, .news-grid, .chips, .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 150px; gap: 10px; }
  .shot.big { grid-row: span 1; }
  .coin-badge { inset-inline-start: 10px; bottom: -22px; padding: 10px 14px; }
  .coin { width: 42px; height: 42px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; margin: 0; }
  .signup-form select, .signup-form .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-slide img { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
