/* DAFQA Energy — site styles (v3, launch build)
   Layout: pinned 3D hero stage (panels assemble into an array on scroll) → orange slab →
   dark sections → horizontal 3D step carousel → giant outline marquee → sand cards → contact.
   Single committed dark look; every colour is set explicitly. */

:root {
  --ink: #15140F;
  --ink-2: #1D1C16;
  --ink-3: #2A2820;
  --sand: #F3EFE6;
  --paper: #FBF9F4;
  --muted: #57544C;
  --soft: #CFC9BB;
  --line: #B9B3A5;
  --sun: #E4572E;
  --sun-hot: #FF7A45;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --arabic: "IBM Plex Sans Arabic", "Geeza Pro", sans-serif;

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--sand);
  font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden;
}
body::before { /* paints the phone notch band above the sticky nav */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink);
}
body::after { /* film grain over everything */
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.hl { color: var(--sun); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 20px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 12px var(--sun); vertical-align: 1px; }
.eyebrow--dark { color: var(--muted); }
.h2 {
  margin: 0 0 56px; max-width: 980px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80;
  font-size: clamp(42px, 7vw, 96px); line-height: .95; letter-spacing: -.035em; text-wrap: balance;
}
.h2--dark { color: var(--ink); }
.label { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.label--muted { color: var(--muted); }
.label--ink { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; overflow: hidden;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-3px) scale(1.04); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 0 rgba(228, 87, 46, .6); }
.btn--sun:hover { background: var(--sun-hot); box-shadow: 0 10px 40px -6px rgba(255, 122, 69, .7); }
.btn--ghost { border: 1.5px solid var(--sand); color: var(--sand); }
.btn--ghost:hover { background: var(--sand); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--sand); }
.btn--ink:hover { background: #000; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 80; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: var(--sun); mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .3s;
}
.has-cursor .cursor { opacity: 1; }
.cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(21, 20, 15, .55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(243, 239, 230, .08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: -.03em; }
.logo b { font-weight: 800; }
.logo__mark { display: block; width: 30px; height: 28px; filter: drop-shadow(0 0 10px rgba(228, 87, 46, .45)); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 18px rgba(255, 122, 69, .75)); } }
.nav__links { display: flex; gap: 30px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--soft); transition: color .2s; }
.nav__links a:hover { color: var(--sun); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- hero stage ---------- */
/* ---------- full-page 3D layer ---------- */
.scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; pointer-events: none; transition: opacity .2s linear; }
body { background: radial-gradient(120% 80% at 80% 10%, #2a1810 0%, var(--ink) 50%) fixed, var(--ink); }
main, .footer { position: relative; z-index: 1; }
.stage { position: relative; margin-top: -69px; }
.has-stage .stage { height: 340vh; }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
/* Static sun with the mark's horizon cuts. Shown by default; hidden once the 3D scene is running,
   so the hero never looks empty if a browser or in-app viewer blocks WebGL or scripts. */
.stage__fallback {
  display: block; position: absolute; width: 520px; height: 520px; right: -80px; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background:
    linear-gradient(transparent 60%, var(--ink) 60% 64%, transparent 64% 71%, var(--ink) 71% 75%, transparent 75% 82%, var(--ink) 82% 86%, transparent 86%),
    radial-gradient(circle at 35% 30%, var(--sun-hot), var(--sun) 55%, #8f2a10);
  box-shadow: 0 0 120px rgba(228, 87, 46, .45);
}
.has-3d .stage__fallback { display: none; }
.no-webgl .stage__fallback { display: block; }
.stage__copy { position: absolute; inset: 0; left: 50%; transform: translateX(-50%); display: grid; align-items: center; pointer-events: none; }
.cap { grid-area: 1 / 1; max-width: 720px; opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.cap.is-on { opacity: 1; transform: none; }
.cap.is-on a { pointer-events: auto; }
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 92;
  font-size: clamp(52px, 9vw, 132px); line-height: .9; letter-spacing: -.015em; text-wrap: balance;
}
.hero__sub { margin: 28px 0 0; max-width: 500px; font-size: 19px; color: var(--soft); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cap__big { margin: 0; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 92; font-size: clamp(52px, 8.4vw, 124px); line-height: .92; letter-spacing: -.015em; }
.cap__small { margin: 22px 0 0; font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }

/* split-text intro */
.split-w { display: inline-block; white-space: nowrap; }
.split-c { display: inline-block; animation: charIn 1s var(--ease) both; animation-delay: calc(var(--i) * 22ms + 150ms); }
@keyframes charIn { from { transform: translateY(0.6em) rotate(8deg); opacity: 0; filter: blur(8px); } }

.hud { display: none; }
.has-stage .hud { position: absolute; left: var(--gutter-l); bottom: 30px; z-index: 3; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.hud__count { color: var(--sun); font-variant-numeric: tabular-nums; }
.hud__bar { position: relative; width: 140px; height: 3px; background: rgba(243, 239, 230, .2); border-radius: 3px; overflow: hidden; }
.hud__bar i { position: absolute; inset: 0; width: 0; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.stage__hint { display: none; }
.has-stage .stage__hint { display: block; position: absolute; right: var(--gutter-r); bottom: 30px; margin: 0; z-index: 3; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.badge { position: absolute; right: var(--gutter-r); top: 110px; z-index: 3; width: 150px; height: 150px; display: grid; place-items: center; }
.badge__ring { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.badge__ring text { font-family: var(--mono); font-size: 15.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--sand); }
.badge__core { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); font-family: var(--arabic); font-weight: 700; font-size: 24px; box-shadow: 0 0 40px rgba(228, 87, 46, .6); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .stage__copy { align-items: end; padding-bottom: 96px; }
  .badge { width: 104px; height: 104px; top: 104px; }
  .stage__fallback { width: 200px; height: 200px; right: -40px; top: 78px; transform: none; box-shadow: none; }
  .badge { display: none; }
  .badge__core { width: 54px; height: 54px; font-size: 17px; }
  .hero__sub { font-size: 17px; }
  .has-stage .stage__hint { display: none; }
}

/* ---------- orange slab ---------- */
.slab { position: relative; overflow: hidden; background: var(--sun); color: var(--ink); padding-block: 72px 64px; }
.slab__big { margin: 0 0 40px; padding-left: var(--gutter-l); white-space: nowrap; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(80px, 17vw, 260px); line-height: .85; letter-spacing: -.05em; will-change: transform; }
.slab__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.slab__sub { margin: 0; max-width: 540px; font-size: 20px; line-height: 1.45; font-weight: 500; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: 140px; }
@media (max-width: 760px) {
  .section { padding-block: 88px; }
  .section--tight { padding-block: 24px 88px; }
  .slab__big { white-space: normal; font-size: clamp(64px, 19vw, 104px); line-height: .9; padding-right: var(--gutter-r); transform: none !important; }
}
.section--tight { padding-block: 40px 140px; }
.section--ink { background: transparent; color: var(--sand); }
.section--sand { background: var(--sand); color: var(--ink); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; }
.card { position: relative; padding: 40px; border-radius: 28px; min-width: 0; }
.card--glass { background: linear-gradient(160deg, rgba(243, 239, 230, .09), rgba(21, 20, 15, .55)); border: 1px solid rgba(243, 239, 230, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card--sun { background: var(--sun); color: var(--ink); }
.card--paper { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.card--ink { background: var(--ink); color: var(--sand); }
.card__big { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.02; letter-spacing: -.025em; }
.card__text { margin: 0; font-size: 17px; }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; font-size: 18px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--sun); border-radius: 50%; box-shadow: 0 0 10px var(--sun); transform: translateY(-1px); }

.stats { margin-top: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 32px; border-top: 1px solid rgba(243, 239, 230, .2); padding-top: 40px; }
.stat__num { margin: 0; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(110px, 18vw, 240px); line-height: .82; letter-spacing: -.05em; color: var(--sun); text-shadow: 0 0 60px rgba(228, 87, 46, .35); font-variant-numeric: tabular-nums; }
.stat__txt { margin: 16px 0 0; max-width: 400px; font-size: 18px; color: var(--soft); }
.stat__txt sup a { color: var(--sun); text-decoration: none; font-family: var(--mono); font-size: 12px; margin-left: 3px; }

/* ---------- horizontal 3D steps ---------- */
.hscroll { position: relative; background: transparent; }
.hscroll__sticky { padding-block: 120px 80px; overflow: hidden; }
.hscroll.is-pinned .hscroll__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 80px 40px; }
.hscroll__head .h2 { margin-bottom: 40px; }
.hscroll__track {
  list-style: none; margin: 0; padding: 0 var(--gutter-r) 0 max(var(--gutter-l), calc((100vw - 1240px) / 2 + 20px));
  display: grid; gap: 20px; perspective: 1400px;
}
.hscroll.is-pinned .hscroll__track { display: flex; width: max-content; will-change: transform; }
.step {
  position: relative; width: auto; min-height: 340px; padding: 34px 32px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(170deg, var(--ink-3), var(--ink)); border: 1px solid rgba(243, 239, 230, .14);
  display: flex; flex-direction: column; justify-content: flex-end; transform-style: preserve-3d; transition: border-color .3s;
}
.hscroll.is-pinned .step { width: min(420px, 78vw); flex: none; }
.step__n { position: absolute; top: 8px; right: 18px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: 180px; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--sun); opacity: .9; }
.step__t { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: 48px; line-height: 1; letter-spacing: -.03em; }
.step__d { margin: 0; font-size: 16px; line-height: 1.5; color: var(--soft); }
.hscroll__progress { display: block; position: relative; margin-top: 36px; height: 3px; max-width: 320px; background: rgba(243, 239, 230, .15); border-radius: 3px; overflow: hidden; }
.hscroll__progress i { position: absolute; inset: 0; width: 0; background: var(--sun); }
.hscroll:not(.is-pinned) .hscroll__progress { display: none; }

/* ---------- giant outline marquee ---------- */
.mega { overflow: hidden; background: rgba(21, 20, 15, .35); padding-block: 40px; border-block: 1px solid rgba(243, 239, 230, .1); }
.mega__track { display: flex; align-items: center; width: max-content; animation: slide 36s linear infinite; }
.mega__track span { padding-inline: 60px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 92; font-size: clamp(76px, 12vw, 176px); line-height: 1; letter-spacing: .01em; white-space: nowrap; color: #FFFFFF; -webkit-text-stroke: 0; transition: color .3s; }
.mega__track .ar { font-family: var(--arabic); color: var(--sun); -webkit-text-stroke: 0; font-size: clamp(56px, 8vw, 120px); }
.mega:hover .mega__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- ideal sites ---------- */
.ideal { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.ideal li { padding: 26px; border-radius: 22px; background: rgba(29, 28, 22, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(243, 239, 230, .12); font-size: 19px; line-height: 1.35; }
.ideal__k { display: block; margin-bottom: 18px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: 54px; line-height: 1; letter-spacing: -.03em; color: var(--sun); }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 9px 18px; border: 1.5px solid rgba(243, 239, 230, .5); border-radius: 999px; font-size: 15px; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.pills .pills__more { border-style: dashed; border-color: var(--sun); color: var(--sun); font-weight: 600; }

/* ---------- business / partner cards ---------- */
.list { margin: 22px 0 0; display: grid; }
.list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.list dt { font-weight: 600; font-size: 17px; }
.list dd { margin: 2px 0 0; font-size: 15.5px; line-height: 1.5; color: #3A3832; }
.list--light > div { border-top-color: rgba(243, 239, 230, .2); }
.list--light dd { color: var(--soft); }
.tilt { transition: transform .25s ease-out; transform-style: preserve-3d; will-change: transform; }

.principles { margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; }
.principle__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--sun); font-family: var(--display); font-weight: 800; font-size: 24px; }
.principle h3 { margin: 18px 0 6px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: 30px; letter-spacing: -.02em; }
.principle p { margin: 0; color: #3A3832; }

/* reveal: content is visible without JS; JS tucks below-the-fold items away first */
.reveal { transition: transform 1s var(--ease), opacity 1s var(--ease); }
.reveal.is-pre { transform: translateY(60px) rotateX(-12deg); opacity: 0; }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact__sun { position: absolute; width: 760px; height: 760px; right: -180px; bottom: -520px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, var(--sun-hot), var(--sun) 50%, #9b2f12); box-shadow: 0 0 200px rgba(228, 87, 46, .6); animation: rise 6s ease-in-out infinite; }
@keyframes rise { 50% { transform: translateY(-30px) scale(1.03); } }
.contact__inner { position: relative; z-index: 1; }
.contact__title { max-width: 900px; }
.contact__sub { margin: -28px 0 56px; max-width: 520px; font-size: 20px; color: var(--soft); }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 28px; }
.contact__grid > div { padding-top: 16px; border-top: 1.5px solid rgba(243, 239, 230, .5); min-width: 0; }
.contact__val { margin: 0; text-shadow: 0 1px 14px rgba(21, 20, 15, .85); font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.contact__val--sm { font-size: 15.5px; font-weight: 400; color: var(--soft); }

/* ---------- footer ---------- */
.footer { background: var(--sand); z-index: 1; color: var(--ink); padding-block: 56px; }
.footer__inner { display: grid; gap: 14px; }
.footer__brand { font-family: var(--display); font-size: 32px; letter-spacing: -.03em; }
.footer__brand b { font-weight: 800; }
.footer__small { margin: 0; max-width: 820px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.footer__sources { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }

/* ---------- why dafqa ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.why__word, .why__copy { min-width: 0; }
.why__ar {
  margin: 0; font-family: var(--arabic); font-weight: 700; font-size: clamp(120px, 18vw, 240px); line-height: 1.25;
  color: var(--sun); text-align: center; animation: whyGlow 4s ease-in-out infinite;
}
@keyframes whyGlow {
  0%, 100% { text-shadow: 0 0 24px rgba(228, 87, 46, .25); }
  50% { text-shadow: 0 0 70px rgba(228, 87, 46, .7), 0 0 140px rgba(255, 122, 69, .35); }
}
.why__body { margin: 0 0 32px; max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--soft); }
.why__close {
  margin: 0; max-width: 640px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 92;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance;
}
@media (max-width: 760px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .why__ar { text-align: left; }
}

/* Reduced-motion devices keep the animation, just calmer and slower */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .mega__track { animation-duration: 90s; }
  .badge__ring { animation-duration: 40s; }
  .reveal { transition-duration: 1.4s; }
}
/* Phones and tablets: lighter effects so the 3D stays smooth */
@media (pointer: coarse) {
  .nav, .card--glass, .ideal li { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { background: rgba(21, 20, 15, .88); }
  .card--glass { background: rgba(29, 28, 22, .9); }
  .ideal li { background: rgba(29, 28, 22, .92); }
  body::after { opacity: .05; }
}


/* ================= v3 launch additions ================= */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--sun); color: var(--ink); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* contact links */
.contact__val a { text-decoration: none; border-bottom: 2px solid var(--sun); transition: color .2s; }
.contact__val a:hover { color: var(--sun); }
.contact__cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px; }
.card__cta { margin-top: 28px; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 920px; margin-top: 8px; }
.faq details { border-top: 1.5px solid rgba(243, 239, 230, .18); }
.faq details:last-child { border-bottom: 1.5px solid rgba(243, 239, 230, .18); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.01em; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 26px; color: var(--sun); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--sun-hot); }
.faq p { margin: -6px 0 28px; max-width: 720px; color: var(--soft); font-size: 17.5px; }

/* footer */
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.footer__brand img { width: 40px; height: 37px; }
.footer__ar { margin: 0; font-family: var(--arabic); font-weight: 700; font-size: 16px; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer__nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__nav a:hover { color: var(--sun); border-color: var(--sun); }
.footer__privacy h2 { margin: 6px 0 4px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.footer a { color: inherit; }

/* print: plain and readable */
@media print {
  .scene, .cursor, .nav, .hud, .badge, .stage__hint, .mega, .stage__fallback { display: none !important; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .has-stage .stage { height: auto; }
  .stage__sticky, .hscroll__sticky { position: static; height: auto; min-height: 0; }
  .cap--2, .cap--3 { display: none; }
}
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.notfound__code { margin-top: 28px; }

/* ================= Arabic / RTL (ar/index.html) ================= */
.lang { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--soft); padding: 8px 10px; border-radius: 8px; transition: color .2s; }
.lang:hover { color: var(--sun); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang--ar { font-family: var(--arabic); font-size: 15px; }

html[lang="ar"] {
  --display: "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --mono: "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
/* Arabic letters join: never letter-space or upper-case them */
html[lang="ar"] * { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] .logo, html[lang="ar"] .footer__brand, html[lang="ar"] .step__n, html[lang="ar"] .stat__num, html[lang="ar"] [lang="en"] { font-family: "Bricolage Grotesque", "Inter", sans-serif; }
html[lang="ar"] .logo, html[lang="ar"] .footer__brand { letter-spacing: -.03em !important; }
html[lang="ar"] .hero__title, html[lang="ar"] .cap__big, html[lang="ar"] .h2, html[lang="ar"] .slab__big, html[lang="ar"] .why__close,
html[lang="ar"] .card__big, html[lang="ar"] .step__t, html[lang="ar"] .ideal__k, html[lang="ar"] .principle h3, html[lang="ar"] .mega__track span { font-weight: 700; line-height: 1.3; }
html[lang="ar"] .hero__title { font-size: clamp(42px, 5.8vw, 88px); line-height: 1.25; }
html[lang="ar"] .cap__big { font-size: clamp(44px, 7vw, 104px); line-height: 1.25; }
html[lang="ar"] .slab__big { font-size: clamp(64px, 12vw, 190px); line-height: 1.2; }
html[lang="ar"] .h2 { line-height: 1.25; }
html[lang="ar"] .eyebrow, html[lang="ar"] .label { font-size: 14.5px; font-weight: 600; }
html[lang="ar"] .faq summary { font-weight: 700; line-height: 1.5; }
html[lang="ar"] .stat__txt, html[lang="ar"] .step__d, html[lang="ar"] .why__body { line-height: 1.85; }
html[lang="ar"] .badge__ring text { font-size: 16px; }

[dir="rtl"] .eyebrow::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .stage__fallback { right: auto; left: -80px; }
[dir="rtl"] .has-stage .hud { left: auto; right: var(--gutter-r); }
[dir="rtl"] .has-stage .stage__hint { right: auto; left: var(--gutter-l); }
[dir="rtl"] .badge { right: auto; left: var(--gutter-l); }
[dir="rtl"] .step__n { right: auto; left: 18px; }
[dir="rtl"] .slab__big { padding-left: 0; padding-right: var(--gutter-r); }
[dir="rtl"] .footer__sources { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .contact__sun { right: auto; left: -180px; }
[dir="rtl"] .stat__txt sup a { margin-left: 0; margin-right: 3px; }
[dir="rtl"] .skip { left: auto; right: 12px; }
[dir="rtl"] .mega { direction: ltr; }
@media (max-width: 760px) {
  [dir="rtl"] .stage__fallback { left: -40px; right: auto; }
  [dir="rtl"] .slab__big { padding-left: var(--gutter-l); }
  [dir="rtl"] .why__ar { text-align: right; }
}
.notfound__ar { margin: -16px 0 8px; font-size: 22px; color: var(--soft); }
[dir="rtl"] .stage__copy { right: auto; left: 50%; }
.logo, .btn--sm, .lang { white-space: nowrap; }
@media (max-width: 420px) {
  .nav .btn--sm { display: none; }
}
@media (max-width: 760px) {
  .stage__fallback { width: 160px !important; height: 160px !important; top: 74px !important; }
}
.hud__label.is-live { color: var(--sun-hot); text-shadow: 0 0 12px rgba(255, 122, 69, .6); }

/* badge is a link to the fee FAQ */
a.badge { text-decoration: none; color: inherit; transition: transform .3s var(--ease); }
a.badge:hover .badge__core, a.badge:focus-visible .badge__core { background: var(--sun-hot); }
a.badge:hover { transform: scale(1.06); }
.faq p a, .footer__small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.faq p a:hover { color: var(--sun); }

/* ---------- document pages (privacy & legal) ---------- */
.doc { padding-block: 72px 120px; }
.doc__inner { max-width: 820px; }
.doc .h2 { margin-bottom: 12px; font-size: clamp(40px, 6vw, 72px); }
.doc__meta { margin: 0 0 48px; font-family: var(--mono); font-size: 13px; color: var(--soft); }
.doc__sec { padding-block: 28px; border-top: 1px solid rgba(243, 239, 230, .16); }
.doc__sec h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.01em; }
.doc__sec p { margin: 0 0 14px; max-width: 68ch; color: var(--soft); }
.doc__sec a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.doc__sec a:hover { color: var(--sun); }
.doc__sec .ticks { font-size: 17px; color: var(--soft); }
.doc__back { margin: 40px 0 0; }
html[lang="ar"] .doc__sec h2 { font-weight: 700; line-height: 1.4; }

/* nav links need ~960px next to the language switch + CTA */
@media (max-width: 980px) { .nav__links { display: none; } }
@media (max-width: 400px) { .stat__num { font-size: 86px; } }

/* ---------- guides ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; font-size: 14px; color: var(--soft); }
.crumbs a { color: var(--soft); }
.crumbs a:hover { color: var(--sun); }
.guide__lede { margin: 0 0 32px; max-width: 68ch; font-size: 20px; line-height: 1.55; color: var(--sand); }
.doc__sec .list { margin-top: 4px; }
.doc__sec .list dt { color: var(--sand); }
.pills--static { margin-top: 8px; }
.steps-list { margin: 0; padding-inline-start: 22px; display: grid; gap: 12px; color: var(--soft); max-width: 68ch; }
.steps-list b { color: var(--sand); }
.faq--doc summary { font-size: 20px; }
.guide__cta { margin-block: 32px; padding: 36px; border-radius: 28px; background: var(--sun); color: var(--ink); }
.guide__cta h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; line-height: 1.1; }
.guide__cta p { margin: 0 0 4px; max-width: 60ch; font-size: 18px; }
.guide__cta .btn--sun { background: var(--ink); color: var(--sand); }
.guide__cta .btn--ghost { border-color: var(--ink); color: var(--ink); }
.guide__cta .btn--ghost:hover { background: var(--ink); color: var(--sand); }
.doc__note { margin-top: 18px !important; font-size: 13px; color: var(--soft); }
.doc__sources .footer__sources { color: var(--soft); }
.where-link { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--sun); text-decoration: none; border-bottom: 2px solid var(--sun); }
.where-link:hover { color: var(--sun-hot); border-color: var(--sun-hot); }
.where__label { margin: 40px 0 14px; }
html[lang="ar"] .guide__cta h2 { font-weight: 700; line-height: 1.4; }
html[lang="ar"] .faq--doc summary { font-size: 19px; }
.doc__sec .ticks + p, .doc__sec .list + p { margin-top: 16px; }
