/* GO Studio · Atelier — mobile first.
   "Wide" = the cinema-stage layout: (min-width: 768px) and (min-aspect-ratio: 4/3).
   It needs landscape room for the side columns, so portrait tablets keep the phone layout. */

/* Fonts: self-hosted copies of Google Fonts (SIL Open Font License). Same server as the page, preloaded in
   index.html, so they arrive during the preloader. Cairo is one variable file per script for all weights. */
@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url(../fonts/cairo-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url(../fonts/cairo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url(../fonts/cairo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Latin-only subsets: just the glyphs we use (ASCII + ° · © × → ↓) */
@font-face { font-family: "Inter Tight"; font-weight: 800 900; font-display: swap; src: url(../fonts/inter-tight.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono.woff2) format("woff2"); }

:root {
  --ink: #040B1A;
  --navy: #061A3A;
  --navy-2: #0B2550;
  --gold: #D9A64A;
  --gold-glow: #F1CF85;
  --ivory: #EEEAE2;
  --muted: rgba(238, 234, 226, .62);
  --line: rgba(238, 234, 226, .14);
  --error: #F0A48F;
  --wa: #25D366;

  --f-ar: "Cairo", system-ui, sans-serif;
  --f-num: "Inter Tight", "Cairo", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(20px, 5vw, 64px);
  --hdr: 64px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; overflow-x: clip;
  font: 400 16px/1.7 var(--f-ar); color: var(--ivory); background: var(--ink);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
html.is-loading { overflow: hidden; }
/* While the preloader covers the page only the hero is laid out, so it paints much sooner on phones.
   main.js removes "lite" right before it measures the page. */
html.lite :is(#reveal, #workshop, #dot, #faq) { display: none; }
/* The drones poster is set by main.js after loading (it isn't needed on the first screen) */
.no-js #dot .stage__video, .pre-fail #dot .stage__video { background: center / cover url(../media/drones-first.webp); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* SplitText line masks: extra room so tall Arabic letters and dots are never clipped */
.ln-mask { overflow: hidden; overflow: clip; padding-block: .2em; margin-block: -.2em; }
.ln { display: block; }
/* GSAP moves words and lines; a resting transform means its resets never force a new layout (much faster load) */
.w, .ln { transform: translate(0, 0); }

.skip {
  position: fixed; top: 8px; right: 8px; z-index: 300; padding: 10px 18px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- logo ---------- */
.go {
  font-family: "Inter Tight", sans-serif; font-weight: 900; letter-spacing: -0.04em; line-height: .9;
  background: linear-gradient(180deg, #fff 0%, #cfd5df 45%, #8a93a3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr;
}
.dot {
  width: .26em; height: .26em; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 .4em rgba(217, 166, 74, .7); display: inline-block; margin-left: .05em;
}
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; color: inherit; }
.logo__mark { display: inline-flex; align-items: baseline; }
.logo__studio { margin-top: .14em; margin-right: -.6em; font: 800 .2em/1 var(--f-num); letter-spacing: .6em; color: #cfd5df; }
.dot--pulse { position: relative; }
.dot--pulse::after {
  content: ""; position: absolute; inset: -70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 207, 133, .55), transparent 65%);
  animation: dotPulse 2.8s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- 7.0 preloader ---------- */
.pre {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(60% 40% at 50% 50%, rgba(11, 37, 80, .55), transparent 70%), var(--ink);
}
.pre__logo { display: flex; align-items: baseline; font-size: clamp(84px, 24vw, 150px); }
.pre__dot { animation: prePulse 1.1s ease-in-out infinite; }
.pre.is-out .pre__dot { animation: none; }
@keyframes prePulse { 50% { transform: scale(1.25); box-shadow: 0 0 .9em rgba(217, 166, 74, .9); } }
.pre__year {
  font: 900 clamp(22px, 6vw, 30px)/1 var(--f-num); letter-spacing: .06em; color: var(--gold);
  text-shadow: 0 0 .5em rgba(217, 166, 74, .6); font-variant-numeric: tabular-nums;
}
.pre-ring { position: fixed; inset: 0; z-index: 101; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.pre-ring__line { fill: var(--gold); stroke: var(--gold-glow); stroke-width: 2; }
.pre-ring__glow { fill: none; stroke: rgba(217, 166, 74, .28); stroke-width: 22; }
.no-js .pre, .no-js .pre-ring, .pre-fail .pre, .pre-fail .pre-ring { display: none; }

/* ---------- 7.1 header ---------- */
.hdr {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--hdr) + var(--sat)); padding: var(--sat) var(--pad) 0;
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: rgba(4, 11, 26, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr.is-scrolled::before { opacity: 1; }
.hdr__logo { font-size: 30px; }
.hdr__logo .logo__studio { font-size: 7.5px; letter-spacing: .5em; margin-right: -.5em; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-glow); font-weight: 800; font-size: 15px; text-decoration: none;
  background: rgba(4, 11, 26, .35); box-shadow: 0 0 18px -4px rgba(217, 166, 74, .45);
  transition: background .3s, color .3s;
}
.pill:hover { background: var(--gold); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 34px; border: 0; border-radius: 999px;
  font: 900 17px/1 var(--f-ar); text-decoration: none; cursor: pointer;
}
.btn--gold, .submit {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 12px 32px -10px rgba(217, 166, 74, .75), inset 0 0 0 1px rgba(241, 207, 133, .55);
}
/* ivory fill slides up from the bottom on hover */
.btn--gold::before, .submit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ivory); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn--gold:hover::before, .submit:hover:not(:disabled)::before { transform: none; }
.btn--wa { width: 100%; background: var(--wa); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6); }
.btn--wa svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- stage: the video scenes ---------- */
.scene { position: relative; }
/* Pinned scenes use --vh, the screen height when the page was last measured (set by main.js), not the live height:
   browser bars, the Facebook browser growing and the phone keyboard can't push them out of step with their pins. */
.stage { position: relative; height: calc(var(--vh, 1svh) * 100); isolation: isolate; background: var(--ink); }
.stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.stage__bg.css-blur { filter: blur(26px) brightness(.35) saturate(1.2); transform: scale(1.08); }
/* On phones the frame runs to the large viewport so the video still fills the screen when the browser bar hides */
.stage__frame { position: absolute; inset: 0; inset: 0 0 calc(var(--vh, 1svh) * 100 - 100lvh); overflow: hidden; background: var(--ink); }
.stage__video { width: 100%; height: 100%; object-fit: cover; }
.stage__shade {
  position: absolute; inset: 0; inset: 0 0 calc(var(--vh, 1svh) * 100 - 100lvh); pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 11, 26, .62) 0%, rgba(4, 11, 26, 0) 26%),
    linear-gradient(180deg, transparent 40%, rgba(4, 11, 26, .92) 100%);
}
.side { position: absolute; z-index: 2; inset-inline: 0; padding-inline: var(--pad); }
.side--end { top: calc(var(--hdr) + var(--sat) + 4px); display: flex; flex-direction: column; align-items: end; }
.side--start { bottom: 0; padding-bottom: calc(54px + var(--sab)); display: grid; }
.side--start > * { grid-area: 1 / 1; align-self: end; }

.hud {
  margin: 0; font: 500 11px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(238, 234, 226, .82); white-space: nowrap;
}
.hud__caret { display: inline-block; width: .6em; height: 1.05em; margin-left: 3px; vertical-align: -.18em; background: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.year {
  margin: 2px 0 0; font: 900 clamp(60px, 17vw, 110px)/1 var(--f-num); letter-spacing: -.04em;
  color: var(--gold); font-variant-numeric: tabular-nums; transform-origin: 0 50%;
  text-shadow: 0 0 .35em rgba(217, 166, 74, .55), 0 0 .06em rgba(241, 207, 133, .7);
}
.say { margin: 0; font-weight: 900; font-size: clamp(32px, 9vw, 52px); line-height: 1.25; text-wrap: balance; text-shadow: 0 2px 24px rgba(4, 11, 26, .6); }
.say--gold { color: var(--gold); font-size: clamp(38px, 11vw, 64px); text-shadow: 0 0 .45em rgba(217, 166, 74, .5); }
.h1 { margin: 0; font-weight: 900; font-size: clamp(40px, 11.3vw, 72px); line-height: 1.25; text-wrap: balance; text-shadow: 0 2px 30px rgba(4, 11, 26, .55); }
.hero__sub { margin: .55em 0 0; max-width: 34ch; font-size: clamp(16px, 4.3vw, 20px); font-weight: 600; line-height: 1.7; color: rgba(238, 234, 226, .86); }
.hero__cta { margin-top: 22px; }
/* "To register, scroll down": gold-edged pill at the bottom of the first screen (fades on the first scroll) */
.scroll-hint {
  position: absolute; z-index: 3; inset-inline: 0; bottom: calc(16px + var(--sab)); width: max-content; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding-block: 6px; padding-inline: 16px 6px; border-radius: 999px;
  border: 1px solid rgba(217, 166, 74, .65); background: rgba(4, 11, 26, .66); box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  font-size: 15px; font-weight: 800; color: var(--ivory); text-decoration: none; white-space: nowrap;
}
.scroll-hint:hover { border-color: var(--gold); }
.scroll-hint span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-size: 19px; font-weight: 900; animation: nudge 1.6s ease-in-out infinite;
}
/* phone: lift the hero text above the pill */
.scene--hero .side--start { padding-bottom: calc(84px + var(--sab)); }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(5px); opacity: 1; } }

/* the gold dot that lands on the video's dot (positioned by JS) */
.your-dot {
  position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; border-radius: 50%;
  background: linear-gradient(180deg, #CFAE6A, #B9A061); opacity: 0; visibility: hidden; pointer-events: none;
}
.your-dot i {
  position: absolute; inset: -90%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(241, 207, 133, .7), rgba(217, 166, 74, .25) 40%, transparent 68%);
}

/* ---------- cinema stage (landscape, 768px+) ---------- */
@media (min-width: 768px) and (min-aspect-ratio: 4/3) {
  .stage__bg { display: block; }
  .stage__frame {
    inset: 0 auto; left: 50%; height: 100%; aspect-ratio: 9 / 16; transform: translateX(-50%);
    border-inline: 1px solid var(--line);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 40px 140px rgba(0, 0, 0, .7);
  }
  .stage__shade { display: none; }
  .side {
    inset-inline: auto; top: 0; bottom: 0; width: calc(50% - 100svh * 9 / 32);
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--hdr) + 16px) clamp(28px, 2.8vw, 56px) 48px;
  }
  .side--start { inset-inline-start: 0; display: grid; align-content: center; }
  .side--start > * { align-self: center; }
  .side--end { inset-inline-end: 0; align-items: start; padding-left: max(60px, 4vw); }
  /* "2050" is ~2.6em wide: size it from the side column's real width so it never hits the rail */
  .year { font-size: clamp(48px, min(17vh, calc((50vw - 100svh * 9 / 32 - 120px) / 2.7)), 200px); transform-origin: 100% 50%; }
  .hud { font-size: 12px; letter-spacing: .1em; }
  .say { font-size: clamp(32px, min(3.4vw, 6.4vh), 68px); }
  .say--gold { font-size: clamp(40px, min(4.4vw, 8.4vh), 88px); }
  /* "ما يستناش." is ~5.3em wide: size the H1 from the column so it always breaks in two lines */
  .h1 { font-size: clamp(40px, min(10vh, calc((50vw - 100svh * 9 / 32 - 80px) / 6)), 112px); }
  .hero__sub { font-size: clamp(16px, 1.35vw, 22px); }
  .scroll-hint { bottom: 22px; }
  .scene--hero .side--start { padding-bottom: calc(54px + var(--sab)); }
}

/* ---------- 7.3 reveal ---------- */
.reveal {
  position: relative; height: calc(var(--vh, 1svh) * 100); overflow: hidden;
  background: radial-gradient(120% 70% at 50% 45%, var(--navy-2) 0, var(--navy) 35%, var(--ink) 75%);
}
.reveal__bg { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; opacity: .15; pointer-events: none; }
.reveal__body {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 2vh, 22px);
  padding: calc(var(--hdr) + var(--sat)) var(--pad) calc(24px + var(--sab)); text-align: center;
}
.rv-q { margin: 0; font-weight: 900; font-size: clamp(28px, 7.6vw, 64px); line-height: 1.25; text-wrap: balance; }
.rv-no-wrap { position: relative; display: grid; place-items: center; }
.rv-no { margin: 0; font-weight: 900; font-size: clamp(104px, 32vw, 280px); line-height: 1; color: var(--gold); text-shadow: 0 0 .2em rgba(217, 166, 74, .45); }
.rv-flash {
  position: absolute; left: 50%; top: 50%; width: min(92vw, 640px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(241, 207, 133, .6), rgba(217, 166, 74, .18) 40%, transparent 68%);
}
.stamp {
  --s: clamp(96px, 26vw, 168px);
  position: absolute; top: 50%; right: calc(100% + 6px); width: var(--s); height: var(--s); margin-top: calc(var(--s) / -2);
  display: grid; place-content: center; justify-items: center; gap: 2px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold); transform: rotate(-12deg);
  box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 6.5px rgba(217, 166, 74, .7), 0 0 26px rgba(217, 166, 74, .35);
  background: rgba(4, 11, 26, .55);
}
.stamp b { font: 900 calc(var(--s) * .28)/1 var(--f-num); letter-spacing: -.03em; text-shadow: 0 0 .4em rgba(217, 166, 74, .5); }
.stamp span { font-weight: 800; font-size: calc(var(--s) * .1); line-height: 1.2; }
.rv-made { margin: 0; font-weight: 800; font-size: clamp(22px, 5.8vw, 44px); line-height: 1.35; text-wrap: balance; }
.rv-show { margin: 0; max-width: 30ch; font-weight: 600; font-size: clamp(17px, 4.4vw, 28px); line-height: 1.6; color: var(--muted); text-wrap: balance; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(88px, 14vh, 160px) 0; }
.wrap { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--pad)); }
.h2 { margin: 0 0 .9em; font-weight: 900; font-size: clamp(34px, 8.6vw, 76px); line-height: 1.25; text-wrap: balance; }

/* ---------- 7.4 workshop ---------- */
.workshop { background: radial-gradient(80% 45% at 90% 0%, rgba(11, 37, 80, .8), transparent 70%), var(--ink); }
.facts { position: relative; padding-inline-start: 34px; margin-bottom: 44px; }
.facts__line { position: absolute; overflow: visible; }
.facts__line path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(217, 166, 74, .75)); }
.facts__line--v { inset-inline-start: 6px; top: 14px; width: 2px; height: calc(100% - 28px); }
.facts__line--h { display: none; }
.facts__list { margin: 0; display: grid; gap: 30px; }
.fact { position: relative; }
.fact::before {
  content: ""; position: absolute; inset-inline-start: -34px; top: .55em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--gold); box-shadow: 0 0 12px rgba(217, 166, 74, .65);
}
.fact dt { margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.fact dd { margin: 0; font-weight: 900; font-size: clamp(28px, 7.6vw, 44px); line-height: 1.25; }
.fact dd span { font-family: var(--f-num); letter-spacing: -.02em; color: var(--gold); }

.when {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: clamp(80px, 12vh, 128px);
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(6, 26, 58, .5);
}
.date { margin: 0; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: clamp(18px, 4.8vw, 22px); }
.date__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.cd { display: flex; gap: 8px; }
.cd__u { display: grid; justify-items: center; min-width: 58px; padding: 8px 6px 6px; border-radius: 12px; background: rgba(4, 11, 26, .65); border: 1px solid var(--line); }
.cd__n { display: flex; font: 900 26px/1.1 var(--f-num); color: var(--gold-glow); text-shadow: 0 0 .4em rgba(217, 166, 74, .4); }
.cd__n i { display: inline-block; min-width: .6em; font-style: normal; text-align: center; }
.cd__l { font-size: 12px; color: var(--muted); }

.cards {
  list-style: none; display: flex; gap: 14px; margin: 0 calc(-1 * var(--pad)); padding: 6px var(--pad) 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.cards::-webkit-scrollbar { display: none; }
.card {
  position: relative; isolation: isolate; overflow: hidden; flex: 0 0 min(82%, 340px); scroll-snap-align: start;
  min-height: 250px; padding: 26px 24px 28px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(11, 37, 80, .9), rgba(6, 26, 58, .9));
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx, 85%) var(--my, 0%), rgba(217, 166, 74, .26), transparent 65%);
}
.card:hover::before { opacity: 1; }
.card__n {
  display: block; margin-bottom: 18px; font: 900 64px/1 var(--f-num); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold); filter: drop-shadow(0 0 8px rgba(217, 166, 74, .45));
}
.card__t { margin: 0 0 6px; font-weight: 900; font-size: clamp(24px, 6.2vw, 32px); line-height: 1.25; }
.card__p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.count { margin: 40px 0 0; font-weight: 800; font-size: clamp(18px, 4.6vw, 24px); color: var(--muted); }
.count span { font-family: var(--f-num); color: var(--gold); text-shadow: 0 0 .4em rgba(217, 166, 74, .45); }
.count b { font-size: 1.5em; font-weight: 900; }

@media (min-width: 768px) {
  .facts { padding-inline-start: 0; padding-top: 38px; }
  .facts__line--v { display: none; }
  .facts__line--h { display: block; left: 0; top: 6px; width: 100%; height: 2px; }
  .facts__list { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .fact::before { inset-inline-start: 0; top: -38px; }
  .fact dd { font-size: clamp(24px, 2.7vw, 40px); }
  .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; padding: 0; overflow: visible; }
  .card { min-height: 0; padding: 34px; }
}

/* ---------- 7.5 / 7.6 form ---------- */
.stage__form {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: safe center;
  padding: calc(var(--hdr) + var(--sat)) 16px calc(16px + var(--sab)); pointer-events: none;
}
.birth { position: relative; width: min(480px, 100%); pointer-events: auto; scroll-margin-top: calc(var(--hdr) + 16px); }
/* Once a field is touched the form stays open, even if the page scrolls back into the dot scene
   (phone keyboard, a small finger scroll): it must never close under the visitor's fingers. */
.birth.is-born { clip-path: none !important; }
.birth.is-born :is(.form__title, .form__sub, .form > .field, .form__actions) { opacity: 1 !important; visibility: visible !important; }
.card3d { display: grid; transform-style: preserve-3d; }
.face {
  grid-area: 1 / 1; min-width: 0; padding: 28px; border-radius: 24px; border: 1px solid var(--line);
  background: rgba(6, 26, 58, .7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(238, 234, 226, .06);
}
.face--back {
  transform: rotateY(180deg); visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.form { display: grid; }
.form__title { margin: 0; font-weight: 900; font-size: clamp(26px, 7vw, 34px); line-height: 1.25; }
.form__sub { margin: 2px 0 16px; font-size: 15px; color: var(--muted); }

.field { position: relative; padding-bottom: 24px; }
.field__input {
  display: block; width: 100%; height: 58px; margin: 0; padding: 22px 16px 4px 48px;
  font: 600 16px/1.2 var(--f-ar); color: var(--ivory); text-align: right;
  background: rgba(4, 11, 26, .55); border: 1px solid var(--line); border-radius: 14px; outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .25s, box-shadow .25s;
}
.field__input:focus, .field.is-open .field__input {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 166, 74, .2), 0 0 26px -6px rgba(217, 166, 74, .55);
}
.field__input::placeholder { color: transparent; transition: color .25s; }
.field__input:focus::placeholder { color: rgba(238, 234, 226, .4); }
.field__label {
  position: absolute; top: 0; inset-inline-start: 17px; height: 58px; display: flex; align-items: center;
  font-size: 16px; font-weight: 600; color: var(--muted); pointer-events: none;
  transform-origin: 100% 50%; transition: transform .3s var(--ease), color .25s;
}
input.field__input:focus ~ .field__label,
input.field__input:not(:placeholder-shown) ~ .field__label,
.field.has-value .field__label,
.field.is-open .field__label { transform: translateY(-13px) scale(.8); color: var(--gold-glow); }
.field.is-invalid .field__input { border-color: var(--error); }
.field.is-invalid .field__label { color: var(--error); }
.field__err { position: absolute; bottom: 2px; inset-inline: 4px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--error); }
.field__ok {
  position: absolute; top: 17px; left: 14px; width: 24px; height: 24px; pointer-events: none;
  fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px rgba(217, 166, 74, .65));
}
.combo { cursor: pointer; padding-left: 76px; }
.combo__val { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.field--combo.is-open:not(.has-value) .combo__val::before { content: attr(data-ph); color: rgba(238, 234, 226, .4); }
.combo__chev { position: absolute; top: 19px; left: 14px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .3s var(--ease); }
.field--combo.is-open .combo__chev { transform: rotate(180deg); }
.field--combo .field__ok { left: 42px; }
.combo-panel__list b, .combo__val b { display: inline-block; min-width: 2ch; font: 500 14px var(--f-mono); color: var(--gold); }
.no-js .field--combo { display: none; }
.field--ns { padding-bottom: 14px; }
.ns__label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--muted); }
.field--ns .field__input { padding: 0 16px; }

/* off-screen vertically: in RTL, anything pushed far LEFT becomes scrollable and widens the page */
.hp { position: absolute !important; top: -10000px; right: 0; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; justify-content: center; margin-top: 6px; }
.submit {
  position: relative; isolation: isolate; overflow: hidden; width: 100%; height: 56px; padding: 0 24px;
  border: 0; border-radius: 999px; font: 900 17px/1 var(--f-ar); cursor: pointer;
}
.submit::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: var(--navy); box-shadow: inset 0 0 0 1.5px var(--gold);
}
.submit.is-busy::after { opacity: 1; }
.submit:disabled { cursor: progress; }
.submit__txt { position: relative; white-space: nowrap; }
.submit__spin {
  position: absolute; inset: 13px; border-radius: 50%; opacity: 0; transition: opacity .2s;
  border: 3px solid rgba(217, 166, 74, .25); border-top-color: var(--gold);
}
.submit.is-busy .submit__spin { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.form__net { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--error); }
.form__net:empty { display: none; }

/* ---------- 7.7 success ---------- */
.ok__badge { width: 64px; height: 64px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(217, 166, 74, .6)); }
.ok__badge circle { stroke-width: 2; }
.ok__badge circle, .ok__badge path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ok__title { margin: 2px 0 0; font-weight: 900; font-size: clamp(28px, 7.6vw, 38px); line-height: 1.25; outline: none; text-wrap: balance; }
.ok__title bdi { color: var(--gold-glow); }
.ok__line { margin: 0; line-height: 1.7; }
.ok__placed { font-weight: 800; font-size: 18px; color: var(--gold-glow); }
.ok__num { color: var(--muted); }
.ok__num b { font: 900 22px var(--f-num); color: var(--gold); }
.ok__wa { display: grid; justify-items: center; gap: 12px; width: 100%; margin-top: 6px; }
.ok__step { font-size: 16px; }
.ok__redir { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-size: 15px; color: var(--muted); }
.ring { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.ring .ring__p { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ring b { font: 900 16px/1 var(--f-num); color: var(--gold-glow); }
.ok__stay {
  min-height: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  font: 700 14px var(--f-ar); color: var(--ivory); text-decoration: underline; text-underline-offset: 4px;
}

@media (max-width: 767px) {
  .face { padding: 20px; }
}
@media (max-height: 680px) and (max-width: 767px) {
  .form__sub { margin-bottom: 10px; }
  .field { padding-bottom: 20px; }
  .field__input { height: 54px; }
  .field__label { height: 54px; }
  .field__ok, .combo__chev { top: 15px; }
  .face--back { gap: 6px; }
  .ok__badge { width: 48px; height: 48px; }
}

/* ---------- 7.8 FAQ ---------- */
.faq { background: linear-gradient(180deg, var(--ink), #050f22); }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__h { margin: 0; }
.acc__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 70px;
  padding: 16px 0; border: 0; background: none; cursor: pointer; text-align: right;
  font: 800 clamp(18px, 4.6vw, 22px)/1.45 var(--f-ar); color: var(--ivory);
}
.acc__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(217, 166, 74, .5); }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--gold); box-shadow: 0 0 6px rgba(217, 166, 74, .7);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__a { overflow: hidden; }
.acc__a p { margin: 0; padding-bottom: 22px; max-width: 60ch; font-size: 17px; line-height: 1.7; color: var(--muted); }

/* ---------- 7.9 footer ---------- */
.foot {
  position: relative; overflow: hidden; display: grid; justify-items: center; gap: 22px; text-align: center;
  padding: clamp(96px, 16vh, 160px) var(--pad) calc(112px + var(--sab));
  background: radial-gradient(60% 50% at 50% 30%, rgba(11, 37, 80, .7), transparent 70%), var(--ink);
  border-top: 1px solid var(--line);
}
.logo--xl { font-size: clamp(96px, 26vw, 240px); }
.foot__tag { margin: 0; font-size: clamp(16px, 4vw, 22px); font-weight: 600; font-style: italic; line-height: 1.5; color: var(--muted); }
.foot__meta { margin: 0; font: 500 12px/1.6 var(--f-mono); letter-spacing: .08em; color: var(--muted); }

/* ---------- 7.10 persistent ---------- */
.sticky {
  position: fixed; z-index: 45; inset-inline: 14px; bottom: calc(12px + var(--sab));
  display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font: 900 17px/1 var(--f-ar); text-decoration: none;
  box-shadow: 0 14px 40px -8px rgba(217, 166, 74, .65), inset 0 0 0 1px rgba(241, 207, 133, .55);
}
@media (min-width: 768px) { .sticky { display: none; } }
.no-js .sticky { display: none; }

.rail { display: none; }
@media (min-width: 1024px) and (hover: hover) {
  .rail { position: fixed; z-index: 40; left: 8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; }
  .rail::before { content: ""; position: absolute; left: 50%; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
  .rail button { position: relative; display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
  .rail button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(238, 234, 226, .4); transition: transform .3s, background .3s, box-shadow .3s; }
  .rail button.is-on::before { background: var(--gold); transform: scale(1.6); box-shadow: 0 0 10px var(--gold); }
  .rail span {
    position: absolute; left: 46px; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s;
    padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 11, 26, .85); font-size: 13px; font-weight: 700;
  }
  .rail button:hover span, .rail button:focus-visible span { opacity: 1; }
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 200; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  display: none; place-items: center; border-radius: 50%; pointer-events: none;
  background: var(--gold); box-shadow: 0 0 18px rgba(217, 166, 74, .55);
}
.cursor span { font: 900 13px/1 var(--f-ar); color: var(--ink); opacity: 0; }
.has-cursor .cursor { display: grid; }
.has-cursor body, .has-cursor a, .has-cursor button, .has-cursor [role="option"] { cursor: none; }
.has-cursor input, .has-cursor .combo { cursor: text; }
.has-cursor .combo { cursor: pointer; }

.burst { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; pointer-events: none; display: none; }

/* wilaya picker */
.combo-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(4, 11, 26, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.combo-panel {
  position: fixed; z-index: 81; display: flex; flex-direction: column; max-height: 340px; overflow: hidden;
  background: #081d40; border: 1px solid rgba(217, 166, 74, .35); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.combo-panel.is-sheet {
  inset: auto 0 0 0 !important; width: auto !important; height: 75svh; max-height: none;
  border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: var(--sab);
}
.combo-panel__head { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.combo-panel__grab { display: none; }
.is-sheet .combo-panel__head { padding-top: 22px; }
.is-sheet .combo-panel__grab { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(238, 234, 226, .28); }
.combo-panel__search {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; outline: none;
  font: 600 16px var(--f-ar); color: var(--ivory); background: rgba(4, 11, 26, .6); border: 1px solid var(--line);
}
.combo-panel__search:focus { border-color: var(--gold); }
.combo-panel__search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; } /* our own × closes the panel */
.combo-panel__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 22px; line-height: 1; cursor: pointer; }
.combo-panel__list { flex: 1; margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.combo-panel__list [role="option"] { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.combo-panel__list [role="option"]:hover, .combo-panel__list .is-active { background: rgba(217, 166, 74, .15); }
.combo-panel__list .is-active { box-shadow: inset 0 0 0 1px rgba(217, 166, 74, .5); }
.combo-panel__list [aria-selected="true"] { color: var(--gold-glow); }
.combo-panel__empty { margin: 0; padding: 24px; text-align: center; color: var(--muted); }

/* ---------- static mode: no JavaScript, or reduced motion ---------- */
:is(.no-js, .rm) :is(.hero__today, .hero__tomorrow, .dot__a, .dot__b, .scroll-hint, .your-dot, .hud__caret) { display: none; }
:is(.no-js, .rm) .reveal { height: auto; min-height: 100svh; }
:is(.no-js, .rm) .reveal__body { padding-block: 120px; }
:is(.no-js, .rm) .scene--dot .stage { height: auto; min-height: 100svh; }
:is(.no-js, .rm) .scene--dot :is(.stage__frame, .stage__shade, .side) { bottom: auto; height: 100svh; }
:is(.no-js, .rm) .scene--dot .side--start { top: 0; align-content: end; }
:is(.no-js, .rm) .stage__form { position: relative; inset: auto; padding: calc(100svh + 32px) 16px 72px; }
.rm .face--back { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
