/* ==========================================================================
   Bassem Ashraf · The E-Com Scaling Roadmap
   Palette and fonts follow brand/brand-colors.md exactly. Orange is the only
   accent, always with dark text on it. Red and green are signals only.
   ========================================================================== */

/* Fallback tuned to Poppins metrics, so the web-font swap does not shift the layout */
@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial");
  size-adjust: 112.16%;
  ascent-override: 93.62%;
  descent-override: 31.21%;
  line-gap-override: 8.92%;
}

:root {
  --near-black: #0F0F10;
  --navy: #14213D;
  --orange: #FC7A1E;
  --off-white: #F5F6F8;
  --line: #DDE2EA;
  --slate: #5C677D;
  --red: #C0392B;
  --red-bg: #FBE6E4;
  --red-text: #8E2A20;
  --green: #2E8B57;
  --white: #FFFFFF;

  /* Tints of the colors above, as used in the Owner's Edition PDF */
  --navy-2: #1B2B4F;
  --ink-2: #17181C;
  --orange-tint: #FEE7D6;
  --orange-ink: #8A3E06;
  --on-dark: rgba(255, 255, 255, .86);
  --on-dark-2: rgba(255, 255, 255, .7);
  --on-dark-line: rgba(255, 255, 255, .12);

  --font-en: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Poppins first on purpose: Latin words (the method name, brand names) stay in Poppins, Arabic falls through to Cairo */
  --font-ar: "Poppins", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font: var(--font-en);

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 64px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dir: 1;
}

[dir="rtl"] { --dir: -1; }
html[lang="ar"] { --font: var(--font-ar); }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--near-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] body { line-height: 1.8; }
.i18n-pending body { visibility: hidden; }

img, svg, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }

h2 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.section--light :focus-visible, .section--white :focus-visible, .final__panel :focus-visible { outline-color: var(--navy); }

.sprite { position: absolute; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: block; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--orange); color: var(--near-black);
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .65em 1.4em; border-radius: 999px;
  border: 2px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.25;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); color: var(--near-black); }
.btn--primary:hover { box-shadow: 0 14px 30px -12px rgba(252, 122, 30, .75); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--white); border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { box-shadow: 0 14px 30px -14px rgba(20, 33, 61, .8); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--lg { min-height: 56px; font-size: 1.0625rem; padding-inline: 1.7em; }
.btn--sm { min-height: 40px; font-size: .9rem; padding: .45em 1.15em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--light { background: var(--off-white); color: var(--navy); }
.section--white { background: var(--white); color: var(--navy); }
.section--navy { background: var(--navy); color: var(--white); }
.section--black { background: var(--near-black); color: var(--white); }

.section__head { max-width: 780px; margin-block-end: clamp(28px, 4vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__intro { margin-block-start: 14px; font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); color: var(--slate); }
.section--navy .section__intro, .section--black .section__intro { color: var(--on-dark-2); }
.section__note { margin-block-start: 8px; font-size: .9rem; color: var(--slate); }
.section__note:empty { display: none; }

.kicker {
  font-family: var(--font-en); font-size: .8rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange); margin-block-end: 14px;
}

/* ---------- 1. Header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(15, 15, 16, .88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
/* The open phone menu is solid, so the page never shows through the links */
.site-header.is-open { background: var(--near-black); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header__inner {
  width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto;
  height: var(--header-h); display: flex; align-items: center; gap: 16px;
}
.logo {
  font-family: var(--font-en); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em;
  color: var(--white); text-decoration: none; line-height: 1;
  direction: ltr; unicode-bidi: isolate;   /* the wordmark reads the same on the Arabic page */
}
.logo span { color: var(--orange); }

.nav { display: none; gap: 30px; margin-inline-start: auto; }
.nav a {
  position: relative; padding-block: 8px; color: var(--on-dark-2); font-weight: 500; font-size: .95rem;
  text-decoration: none; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 2px; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--white); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .6); }
.lang button {
  min-width: 38px; min-height: 40px; padding: 0 6px; border: 0; border-radius: 8px; background: none;
  color: rgba(255, 255, 255, .72); font-weight: 600; font-size: .9rem; cursor: pointer; transition: color .2s;
}
.lang button:hover, .lang button[aria-pressed="true"] { color: var(--white); }
.lang button[data-lang="ar"] { font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-size: 1.1rem; line-height: 1; }
.header__cta { display: none; }

.burger {
  width: 44px; height: 44px; display: inline-grid; place-content: center; gap: 6px;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: grid; gap: 12px; padding: 8px var(--gutter) 28px;
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a {
  padding: 14px 4px; font-size: 1.25rem; font-weight: 600; color: var(--white); text-decoration: none;
  border-block-end: 1px solid var(--on-dark-line);
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .header__actions { margin-inline-start: 22px; }
  .header__cta { display: inline-flex; }
  .burger, .mobile-menu { display: none; }
}

/* ---------- 2. Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white); background: var(--near-black);
  padding-block: calc(var(--header-h) + clamp(28px, 6vw, 64px)) clamp(28px, 5vw, 56px);
  overflow: hidden;
}
@supports (overflow: clip) { .hero { overflow: clip; } }
/* Deep space: near black behind the text, opening into navy toward the far corner, with two soft
   nebula glows set off-centre so nothing rings the portrait. Mirrored for Arabic. */
.hero__bg {
  position: absolute; inset: 0; z-index: -1; --hx: 88%; --hx2: 30%;
  background:
    radial-gradient(70% 85% at var(--hx) 0%, rgba(40, 66, 128, .62) 0%, rgba(40, 66, 128, 0) 62%),
    radial-gradient(55% 60% at var(--hx2) 108%, rgba(26, 44, 96, .5) 0%, rgba(26, 44, 96, 0) 70%),
    linear-gradient(calc(180deg - var(--dir) * 24deg), #05080f 0%, #0a1229 42%, #111f45 100%);
}
[dir="rtl"] .hero__bg { --hx: 12%; --hx2: 70%; }

.hero__grid { display: grid; gap: clamp(20px, 4vw, 48px); align-items: center; }
.hero h1 {
  font-size: clamp(2.25rem, 1.05rem + 5.6vw, 4.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em;
  animation: rise .9s var(--ease) both;
}
html[lang="ar"] .hero h1 { font-size: clamp(2.25rem, 1.1rem + 4.8vw, 4.2rem); line-height: 1.32; letter-spacing: 0; }
.hero__sub {
  margin-block-start: 1.1em; max-width: 34em; font-size: clamp(1.05rem, .96rem + .5vw, 1.3rem);
  color: var(--on-dark); animation: fade-up .9s var(--ease) .12s both;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 1.8em; animation: fade-up .9s var(--ease) .22s both; }
.hero__fit { margin-block-start: 1.3em; max-width: 34em; font-size: .92rem; color: var(--on-dark-2); animation: fade-up .9s var(--ease) .3s both; }

.hero__visual {
  --px: 0; --py: 0;
  position: relative; width: min(100%, 360px); aspect-ratio: 1 / 1.1; margin-inline: auto;
  display: grid; justify-items: center; align-items: end;
}
.orbit {
  position: absolute; inset-block-start: -8%; inset-inline-start: -14%; width: 128%; height: 116%; max-width: none;
  pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
}
.orbit.is-ready { opacity: 1; }
/* Night sky across the whole hero, drawn by motion.js (initSpace): .space-band is the still Milky Way glow,
   .space the moving stars (they fade out toward the bottom edge in the script, no CSS mask, to keep it light). */
.space, .space-band {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
}
.space-band.is-ready { opacity: 1; }
.space.is-ready { opacity: 1; }
.orbit--back { z-index: 0; }
.orbit--front { z-index: 2; }
.hero__photo {
  position: relative; z-index: 1; display: block; height: 100%;
  transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -6px), 0);
  /* The arm runs off the edge of the source photo: soften that straight cut. */
  --fade-y: linear-gradient(#000 72%, transparent 98%);
  --fade-x: linear-gradient(90deg, #000 86%, transparent 100%);
  -webkit-mask-image: var(--fade-y), var(--fade-x);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-y), var(--fade-x);
  mask-composite: intersect;
}
.hero__photo img { display: block; height: 100%; width: auto; max-width: none; }
.hero__chip {
  position: absolute; z-index: 3; inset-block-end: 3%; inset-inline-start: 0;
  display: grid; gap: 1px; padding: 10px 16px; border-radius: 14px;
  background: rgba(15, 15, 16, .86); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  transform: translate3d(calc(var(--px) * 16px), calc(var(--py) * 12px), 0);
  line-height: 1.35;
}
.hero__chip strong { font-size: .95rem; font-weight: 700; }
.hero__chip span { font-size: .76rem; color: var(--on-dark-2); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: min(76vh, 700px); }
  .hero__visual { width: min(100%, 540px); aspect-ratio: 1 / 1.12; }
  .hero__chip { inset-block-end: 5%; }
}

@keyframes rise { from { transform: translate3d(0, 22px, 0); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* ---------- 3. Proof strip ---------- */
.proof { background: var(--near-black); color: var(--white); padding-block: clamp(26px, 4vw, 44px); border-block-start: 1px solid rgba(255, 255, 255, .08); }
.proof__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
.stat { display: grid; align-content: start; gap: 2px; }
.stat__pre { min-height: 1.5em; font-size: .8rem; color: var(--on-dark-2); }
.stat__value {
  font-size: clamp(2rem, 1.15rem + 3.6vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
  color: var(--orange); font-variant-numeric: tabular-nums;
}
html[lang="ar"] .stat__value { letter-spacing: 0; line-height: 1.3; }
.stat__label { font-size: .92rem; color: var(--on-dark-2); max-width: 24ch; line-height: 1.45; }

@media (min-width: 900px) {
  .proof__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .stat { padding-inline: 28px; border-inline-start: 1px solid var(--on-dark-line); }
  .stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
}

/* Number + unit split used by the count-up (motion.js) */
[data-count].is-split { display: inline-grid; justify-items: start; }
[data-count] .count__final, [data-count] .count__live { grid-area: 1 / 1; white-space: nowrap; }
[data-count].is-counting .count__final { opacity: 0; }
[data-count] .unit { font-size: .45em; font-weight: 600; letter-spacing: 0; }

/* ---------- 4. The problem ---------- */
.problem { padding-block-end: clamp(40px, 6vw, 72px); }
.problem__grid { display: grid; gap: clamp(22px, 4vw, 64px); }
.problem h2 { font-size: clamp(1.9rem, 1.15rem + 3.2vw, 3.3rem); }
.problem__body { display: grid; gap: 18px; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); }
.gaps { display: grid; gap: 10px; perspective: 900px; }
.gaps li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; line-height: 1.35;
}
.flag { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--red-bg); color: var(--red); }
.flag .icon { width: 18px; height: 18px; }
.problem__body > p:not(.lead):not(.punch) { color: var(--slate); font-size: 1.05rem; }
.punch { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 700; line-height: 1.2; }

@media (min-width: 560px) { .gaps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .problem__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .problem h2 { position: sticky; inset-block-start: calc(var(--header-h) + 40px); }
}

/* ---------- 5. Core belief ---------- */
.belief { background: var(--off-white); color: var(--navy); padding-block: clamp(24px, 4vw, 48px) clamp(72px, 10vw, 140px); }
.belief__fig { max-width: 1040px; }
/* The big orange quote mark is decoration, so it is drawn by CSS rather than written as text */
.belief__fig::before {
  content: "\201C"; content: "\201C" / "";
  display: block; height: .46em; font-family: var(--font-en); font-weight: 800; font-size: clamp(5.5rem, 13vw, 10rem);
  line-height: 1; color: var(--orange);
}
.belief__quote {
  font-size: clamp(1.7rem, .95rem + 3.8vw, 3.75rem); font-weight: 700; line-height: 1.16; letter-spacing: -.025em;
  text-wrap: balance;
}
html[lang="ar"] .belief__quote { letter-spacing: 0; line-height: 1.5; }
.belief__quote .w { opacity: var(--o, 1); transition: opacity .2s linear; }

/* ---------- 6. The E-Com Scaling Roadmap ---------- */
.roadmap__grid { display: grid; gap: 28px; }
.roadmap__list { min-width: 0; }

.group-label {
  display: inline-block; margin-block-end: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--orange-tint); color: var(--orange-ink); font-size: .82rem; font-weight: 700; line-height: 1.4;
}
.phases { display: grid; gap: 12px; margin-block-end: 30px; perspective: 1200px; }
.phase {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 18px; border-radius: var(--radius); background: var(--white); color: var(--navy);
  box-shadow: 0 0 0 0 var(--orange);
}
.phase__num {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; line-height: 1;
}
.phase--loop .phase__num { background: var(--orange); color: var(--near-black); }
.phase__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.phase__name { font-size: 1.18rem; line-height: 1.25; }
.badge {
  padding: 4px 12px; border-radius: 999px; background: var(--orange-tint); color: var(--orange-ink);
  font-size: .78rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.phase__text { margin-block-start: 8px; color: var(--slate); font-size: .98rem; }
.days { display: flex; gap: 4px; margin-block-start: 14px; }
.days i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.days i.on { background: var(--navy); }

.motion .phase.is-in { transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s; }
.phase.is-active { box-shadow: 0 0 0 3px var(--orange), 0 26px 50px -26px rgba(0, 0, 0, .7); }
.motion .phase.is-in.is-active { transform: scale(1.012); }

.loop-note {
  display: flex; align-items: center; gap: 12px; margin-block-end: 28px; padding: 16px 18px;
  border-radius: 14px; background: var(--near-black); color: var(--white); font-weight: 500; line-height: 1.5;
}
.loop-note .icon { color: var(--orange); width: 24px; height: 24px; }

/* 3D week board */
.board { perspective: 1100px; padding-block: 4px 34px; }
.board__plane {
  position: relative; display: grid; gap: 9px; padding: 18px 16px 20px; border-radius: 20px;
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .12);
  transform: rotateX(50deg) rotateZ(calc(var(--dir) * -22deg)) scale(.72);   /* small enough to stay inside the column once turned */
  transform-origin: 50% 46%; transform-style: preserve-3d;
  box-shadow: calc(var(--dir) * 40px) 70px 80px -40px rgba(0, 0, 0, .75);
}
.board__head, .board__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.board__head { position: relative; padding-block-start: 20px; }
.board__cap {
  position: absolute; inset-block-start: 0; inset-inline-start: 2px;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2);
}
html[lang="ar"] .board__cap { letter-spacing: 0; font-size: .78rem; }
.board__head b { text-align: center; font-size: .82rem; font-weight: 600; color: var(--on-dark-2); }
.board__row { position: relative; height: 30px; transform-style: preserve-3d; }
.board__row::before {
  content: ""; position: absolute; inset: 0; border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 calc(100% / 7 - 6px), transparent calc(100% / 7 - 6px) calc(100% / 7));
}
.board__bar {
  --z: 8px;
  position: relative; grid-column: var(--from) / calc(var(--to) + 1);
  display: flex; align-items: center; gap: 6px; padding-inline: 4px; border-radius: 9px;
  background: rgba(255, 255, 255, .26); color: var(--navy);
  transform: translateZ(var(--z)); transform-style: preserve-3d;
  transition: transform .6s var(--ease), background-color .4s;
}
.board__bar::after {
  content: ""; position: absolute; inset: 2px; border-radius: inherit; background: rgba(0, 0, 0, .45);
  filter: blur(5px); transform: translateZ(calc(var(--z) * -1)); transition: transform .6s var(--ease);
}
.board__bar b {
  position: relative; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--navy); font-size: .74rem; font-weight: 700; line-height: 1;
}
.board__bar .icon { position: relative; z-index: 1; width: 14px; height: 14px; color: var(--white); opacity: .8; }
.board__row--loop .board__bar {
  background-image: repeating-linear-gradient(calc(var(--dir) * -55deg), rgba(255, 255, 255, .14) 0 8px, transparent 8px 16px);
}
.board__sep { height: 1px; margin-block: 3px; background: rgba(255, 255, 255, .16); }
.board__row.is-done .board__bar { background-color: rgba(255, 255, 255, .6); }
.board__row.is-active .board__bar { --z: 34px; background-color: var(--orange); }
.board__row.is-active .board__bar b { background: var(--near-black); color: var(--white); }
.board__row.is-active .board__bar .icon { color: var(--near-black); opacity: 1; }

@media (min-width: 1000px) {
  .roadmap__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .roadmap__aside { position: sticky; inset-block-start: calc(var(--header-h) + 28px); }
  .board { padding-block: 20px 60px; }
  .board__plane { transform: rotateX(50deg) rotateZ(calc(var(--dir) * -22deg)) scale(.86); }
  .board__row { height: 36px; }
}
@media (max-width: 999px) {
  /* The turned plane looks smaller than its box: pull the neighbours in, and clip at the screen edge, not the column edge */
  .board { margin-block: -58px -64px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow: hidden; }
  .board__plane { max-width: 420px; margin-inline: auto; }
}
/* The turned board must never widen the page (overflow: clip keeps the sticky column working) */
@supports (overflow: clip) { .roadmap { overflow-x: clip; } }

/* Three.js road (motion.js adds .is-three once the scene is running; the CSS board above is the fallback) */
.road {
  display: none;
  /* Fade the edges, so the scene melts into the section instead of sitting in a box */
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 60%, transparent 100%);
}
.road canvas { display: block; width: 100%; height: 100%; }
.roadmap__aside.is-three .road { display: block; height: clamp(190px, 30vh, 250px); }
.roadmap__aside.is-three .board { display: none; }
@media (min-width: 1000px) {
  .roadmap__aside.is-three .road { height: min(64vh, 540px); }
}
@media (max-width: 999px) {
  .roadmap__aside.is-three { margin-inline: calc(var(--gutter) * -1); }
}
/* On phones the road stays pinned under the header while the phase cards scroll beneath it */
@media (max-width: 999px) and (min-height: 620px) {
  .roadmap__aside.is-three { position: sticky; inset-block-start: var(--header-h); z-index: 3; background: var(--navy); }
  .roadmap__aside.is-three::after {
    content: ""; position: absolute; inset-inline: 0; inset-block-start: 100%; height: 26px; pointer-events: none;
    background: linear-gradient(var(--navy), rgba(20, 33, 61, 0));
  }
}

/* ---------- 7. Why it's different ---------- */
.why__grid { display: grid; gap: 24px; }
.why__list { perspective: 1000px; }
.why__list li {
  display: flex; align-items: flex-start; gap: 16px; padding-block: 18px;
  border-block-end: 1px solid var(--line); font-size: clamp(1.05rem, 1rem + .45vw, 1.32rem); font-weight: 500; line-height: 1.45;
}
.why__list li:first-child { padding-block-start: 0; }
.tick { flex: none; width: 30px; height: 30px; margin-block-start: .1em; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--white); }
.tick .icon { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .why__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .why h2 { position: sticky; inset-block-start: calc(var(--header-h) + 40px); }
}

/* ---------- 8. Ways to work together ---------- */
.offers__grid { display: grid; gap: 18px; perspective: 1400px; }
.offer {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 26px 24px 24px; border-radius: 24px; background: var(--off-white); border: 1px solid var(--line);
  transform-style: preserve-3d;
}
.offer--featured { background: var(--near-black); border-color: var(--near-black); color: var(--white); box-shadow: 0 40px 70px -40px rgba(15, 15, 16, .8); }
.offer__step {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: .95rem; line-height: 1;
}
.offer--featured .offer__step { background: var(--orange); color: var(--near-black); }
.offer__name { font-size: 1.35rem; line-height: 1.22; }
.offer__price { font-weight: 700; font-size: 1.05rem; }
/* No prices yet: "Contact me" opens WhatsApp. Text keeps the card's colour, orange only as the underline. */
.offer__contact {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: inherit; text-decoration: none;
  border-block-end: 2px solid var(--orange); padding-block: 2px;
}
.offer__contact .icon { width: 18px; height: 18px; flex: none; }
.offer__contact:hover { border-block-end-width: 3px; }
.offer__price.is-placeholder {
  padding: 2px 12px; border: 1.5px dashed currentColor; border-radius: 8px; font-size: .92rem; font-weight: 600; opacity: .8;
}
.offer__text { flex: 1; color: var(--slate); }
.offer--featured .offer__text { color: var(--on-dark-2); }
.offer .btn { margin-block-start: 8px; }

/* Soft light that follows the pointer on tilting cards */
[data-tilt]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 60%);
}
.offer--featured[data-tilt]::before { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .12), transparent 60%); }
[data-tilt].is-tilting::before { opacity: 1; }
[data-tilt] > * { position: relative; }

@media (min-width: 900px) {
  .offers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-block-start: 30px; }
  /* A small staircase: each offer sits a step higher than the one before */
  .offer:nth-child(2) { translate: 0 -15px; }
  .offer:nth-child(3) { translate: 0 -30px; }
}

/* ---------- 9. Results (case studies) ---------- */
.results { padding-block: clamp(64px, 9vw, 120px) clamp(24px, 4vw, 48px); }
.results .section__head { margin-block-end: clamp(20px, 3vw, 36px); }

.cases__stage { position: relative; }
.cases__list { display: grid; gap: 18px; width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }
.case__card {
  position: relative; overflow: hidden; padding: clamp(16px, 3vw, 36px); border-radius: 24px;
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .9);
}
.case__card::after {
  content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none;
}
.case__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: clamp(10px, 2vw, 18px); }
.case__label {
  padding: 4px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .26);
  font-size: clamp(.66rem, .58rem + .4vw, .78rem); font-weight: 600; line-height: 1.5; color: var(--on-dark);
}
.case__label--client { border-color: var(--orange); color: var(--orange); }
.case__index { font-family: var(--font-en); font-weight: 800; font-size: .95rem; letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
html[lang="ar"] .case__index { font-family: var(--font-ar); letter-spacing: 0; }

.case__grid { display: grid; gap: clamp(14px, 3vw, 40px); }
.case__name { font-size: clamp(1.45rem, 1.05rem + 1.9vw, 2.5rem); line-height: 1.12; }
html[lang="ar"] .case__name { line-height: 1.35; }
.case__market { margin-block-start: 4px; color: var(--on-dark-2); font-size: .95rem; line-height: 1.45; }
.case__meta { display: grid; gap: 8px; margin-block-start: clamp(10px, 2vw, 18px); }
.case__meta dt { font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .56); }
html[lang="ar"] .case__meta dt { letter-spacing: 0; font-size: .78rem; }
.case__meta dd { font-size: .9rem; line-height: 1.45; color: var(--on-dark); }

.case__numbers { display: grid; gap: 10px; min-width: 0; }
.stats3 { display: grid; gap: 8px; }
.stats3 li, .flow li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 14px;
  border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09);
}
.stats3__value, .flow__value {
  font-size: clamp(1.4rem, 1rem + 1.9vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  color: var(--orange); font-variant-numeric: tabular-nums;
}
html[lang="ar"] .stats3__value, html[lang="ar"] .flow__value { letter-spacing: 0; line-height: 1.3; }
.stats3__label, .flow__label { font-size: .84rem; color: var(--on-dark-2); line-height: 1.35; text-align: end; }

.flow { display: grid; gap: 14px; }
.flow li { position: relative; }
/* Small down-chevron between the three steps of the Yalla UGC flow */
.flow li:not(:last-child)::after {
  content: ""; position: absolute; inset-block-end: -11px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-right: 2px solid var(--on-dark-2); border-bottom: 2px solid var(--on-dark-2); transform: rotate(45deg);
}
.case__return { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pill {
  display: inline-flex; align-items: baseline; gap: .35em; padding: 6px 16px; border-radius: 999px;
  background: var(--orange); color: var(--near-black); font-weight: 700; font-size: 1.1rem; line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.pill span:empty { display: none; }
.pill [data-count] .unit { font-size: 1em; }
.case__tail { color: var(--on-dark-2); font-size: .92rem; }

.case__proof { display: none; }
.cases__nav { display: none; }

@media (min-width: 860px) {
  .case__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .stats3 { gap: 10px; }
  .stats3 li, .flow li { padding: 14px 20px; align-items: center; }
  .stats3__label, .flow__label { font-size: .95rem; }
  .case__proof:not([hidden]) {
    display: block; position: relative; margin-block-start: 6px; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14); aspect-ratio: 16 / 7; background: var(--white);
  }
  .case__proof img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  .case__proof figcaption {
    position: absolute; inset-block-end: 8px; inset-inline-start: 8px; padding: 2px 10px; border-radius: 999px;
    background: rgba(15, 15, 16, .82); color: var(--white); font-size: .72rem; font-weight: 600;
  }
}

/* Pinned 3D stack (class added by motion.js when the cards fit the screen) */
.cases.is-stack .cases__stage { position: sticky; inset-block-start: var(--stage-top); height: var(--stage-h); }
.cases.is-stack .cases__list {
  position: relative; z-index: 1;   /* cards pass over the counter row while they travel */
  height: 100%; gap: 0; align-items: start; justify-items: center; padding-block: 12px 44px;
  perspective: 1500px; perspective-origin: 50% 0%;
}
.cases.is-stack .case { grid-area: 1 / 1; width: 100%; transform-origin: 50% 0; will-change: transform; }
.cases.is-stack .cases__nav {
  position: absolute; inset-inline: 0; inset-block-end: 12px; display: flex; align-items: center; justify-content: center; gap: 14px;
}
/* Three.js particles between the cards (motion.js adds .is-three once the scene is running) */
.cases__fx { display: none; }
.cases__fx canvas { display: block; width: 100%; height: 100%; }
.cases.is-three .cases__fx { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cases__count { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-en); font-size: .85rem; font-weight: 600; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
html[lang="ar"] .cases__count { font-family: var(--font-ar); }
.cases__count b { color: var(--white); font-weight: 700; }
.cases__count i { font-style: normal; opacity: .5; }
.cases__dots { display: inline-flex; gap: 6px; }
.cases__dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); transition: background-color .3s, width .3s var(--ease); }
.cases__dots i.is-on { width: 38px; background: var(--orange); }

/* ---------- Brands ---------- */
.brands { padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 120px); overflow: hidden; }
@supports (overflow: clip) { .brands { overflow: clip; } }
.brands .section__head { margin-block-end: clamp(20px, 3vw, 36px); }
.ring { position: relative; }
.ring__track {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  width: min(100% - 2 * var(--gutter), 980px); margin-inline: auto;
}
.brand {
  flex: 1 1 150px; max-width: 186px;
  display: grid; align-content: center; justify-items: center; gap: 4px; min-height: 132px; padding: 16px 12px;
  border-radius: 18px; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .12); text-align: center;
}
.brand__name { font-family: var(--font-en); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--white); text-wrap: balance; }
.brand__industry { font-size: .78rem; color: var(--on-dark-2); line-height: 1.4; }
.brand__tag {
  margin-block-start: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2);
  font-size: .68rem; font-weight: 600; line-height: 1.5; color: var(--on-dark);
}
.brand--direct .brand__tag { border-color: var(--orange); color: var(--orange); }
.brands__note { margin-block-start: clamp(20px, 3vw, 32px); max-width: 46em; margin-inline: auto; text-align: center; color: var(--on-dark-2); font-size: .98rem; }

/* 3D ring (class added by motion.js) */
.ring.is-ring {
  height: var(--ring-h, 250px); perspective: 1100px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.ring.is-ring.is-dragging { cursor: grabbing; }
.ring.is-ring .ring__track {
  display: block; position: absolute; inset-block-start: 50%; left: 50%; width: var(--tile-w); height: var(--tile-h);
  margin: calc(var(--tile-h) / -2) 0 0 calc(var(--tile-w) / -2);
  transform: translateZ(calc(var(--r) * -1)) rotateX(-7deg) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
}
.ring.is-ring .brand {
  position: absolute; inset: 0; min-height: 0; max-width: none;
  transform: rotateY(calc(var(--i) * var(--step))) translateZ(var(--r));
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}

/* ---------- (Hidden) Projects & audits ---------- */
[data-enabled="false"] { display: none; }
.projects__grid { display: grid; gap: 18px; }
.project { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: 20px; background: var(--off-white); border: 1px solid var(--line); }
.project__label { justify-self: start; padding: 3px 12px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: .74rem; font-weight: 600; }
.project__title { font-size: 1.25rem; }
.project__text { color: var(--slate); }
.project__link { font-weight: 600; }
.project__link:not([href]) { display: none; }
@media (min-width: 760px) { .projects__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

/* ---------- 10. What people say ---------- */
.quotes { display: grid; gap: 18px; perspective: 1400px; }
.quote {
  position: relative; display: grid; align-content: start; gap: 18px; padding: clamp(22px, 3vw, 38px);
  border-radius: 24px; background: var(--white); border: 1px solid var(--line); transform-style: preserve-3d;
}
.quote blockquote { font-size: clamp(1.05rem, 1rem + .5vw, 1.32rem); font-weight: 500; line-height: 1.5; }
.quote blockquote::before {
  content: "\201C"; content: "\201C" / "";
  display: block; height: 48px; font-family: var(--font-en); font-weight: 800; font-size: 4.6rem; line-height: 1; color: var(--orange);
}
html[lang="ar"] .quote blockquote { line-height: 1.8; }
.quote figcaption { display: grid; gap: 2px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.quote figcaption strong { font-weight: 700; }
.quote figcaption span { font-size: .92rem; color: var(--slate); }
@media (min-width: 860px) { .quotes { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 22px; } }

/* ---------- 11. About ---------- */
.about { overflow: hidden; }   /* the swapping photos swing sideways; never widen the page */
@supports (overflow: clip) { .about { overflow: clip; } }
.about__grid { display: grid; gap: 40px; align-items: center; }
.about__photos {
  position: relative; width: min(100%, 400px); aspect-ratio: 4 / 5; margin-inline: auto;
  perspective: 1100px; perspective-origin: 50% 40%;
}
/* Soft shadow on the "floor" under the floating cards */
.about__photos::before {
  content: ""; position: absolute; inset-inline: 4% 14%; inset-block-end: -6%; height: 12%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  filter: blur(6px); pointer-events: none;
}
.about__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
/* Both photos share one frame. The static layout below (front + back) is what visitors get with
   reduced motion or without JS; motion.js floats them and moves them around a 3D orbit on scroll. */
.about__photo {
  --dim: 0; --sheen: 50%;
  position: absolute; inset-block: 0 9%; inset-inline: 0 18%; display: block;
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14); border-block-start-color: rgba(255, 255, 255, .32);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .05) inset,
    0 60px 90px -40px rgba(0, 0, 0, .9),
    0 24px 40px -18px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(0, 0, 0, .25);
}
/* A light sheen that slides across the glass as the card turns */
.about__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 65%);
  background-size: 260% 100%; background-position: var(--sheen) 0;
}
.about__photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--navy); opacity: var(--dim); pointer-events: none; }
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.about__photo--front { z-index: 2; transform: rotateY(calc(var(--dir) * 9deg)) rotateX(2deg); }
.about__photo--back {
  --dim: .3; z-index: 1;
  transform: translate3d(calc(var(--dir) * 32%), 8%, -150px) rotateY(calc(var(--dir) * -14deg)) scale(.86);
}
.about__copy { display: grid; gap: 18px; }
.about__copy p { color: var(--on-dark); font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 6px; }
.facts li { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); font-size: .88rem; font-weight: 500; line-height: 1.45; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }

/* ---------- 12. FAQ ---------- */
.faq__grid { display: grid; gap: 24px; }
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px;
  font-size: 1.08rem; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; border-radius: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--off-white); transition: transform .3s var(--ease), background-color .3s; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset-block-start: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--navy); transform: translate(-50%, -50%); transition: background-color .3s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--navy); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--white); }
.faq__answer { padding: 0 20px 20px; color: var(--slate); font-size: 1.02rem; }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .faq h2 { position: sticky; inset-block-start: calc(var(--header-h) + 40px); }
}

/* ---------- Final call to action + form ---------- */
.final { position: relative; isolation: isolate; padding-block: clamp(64px, 9vw, 120px); overflow: hidden; }
@supports (overflow: clip) { .final { overflow: clip; } }
.final::before, .final::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; aspect-ratio: 1; }
/* The navy circle and the thin orange ring from the PDF cover */
.final::before { width: max(70vw, 520px); inset-block-start: max(-34vw, -360px); inset-inline-start: max(-22vw, -260px); background: var(--navy); }
.final::after { width: 300px; inset-block-end: -130px; inset-inline-end: -120px; border: 2px solid var(--orange); }
.final__grid { display: grid; gap: 36px; align-items: center; }
.final h2 { font-size: clamp(1.9rem, 1.15rem + 3.2vw, 3.3rem); }
.final__text { margin-block-start: 16px; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--on-dark); max-width: 30em; }

.pdfmock {
  --fan: 1; --mx: 0; --my: 0;
  position: relative; width: min(52%, 250px); aspect-ratio: 4 / 5; margin-block: 34px 10px; margin-inline-start: 4%;
  perspective: 1300px;
}
.pdfmock__page {
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 10px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 50% 100%; transition: transform .2s linear;
}
.pdfmock__page img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pdfmock__page--1 {
  z-index: 3;
  transform: rotateY(calc(var(--dir) * -16deg + var(--mx) * 8deg)) rotateX(calc(5deg + var(--my) * -6deg)) rotateZ(calc(var(--dir) * -3deg));
}
.pdfmock__page--2 {
  z-index: 2;
  transform: translateX(calc(var(--dir) * var(--fan) * 30%)) translateZ(-70px) rotateY(calc(var(--dir) * -16deg + var(--mx) * 8deg)) rotateX(calc(5deg + var(--my) * -6deg)) rotateZ(calc(var(--dir) * var(--fan) * 5deg));
}
.pdfmock__page--3 {
  z-index: 1;
  transform: translateX(calc(var(--dir) * var(--fan) * 58%)) translateZ(-140px) rotateY(calc(var(--dir) * -16deg + var(--mx) * 8deg)) rotateX(calc(5deg + var(--my) * -6deg)) rotateZ(calc(var(--dir) * var(--fan) * 11deg));
}

.final__panel {
  padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: var(--white); color: var(--navy);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.field { margin-block-end: 14px; }
.field label { display: block; margin-block-end: 6px; font-size: .92rem; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--slate); }
.field input, .field select {
  display: block; width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--off-white); color: var(--navy); font-size: 1rem; line-height: 1.4;
  transition: border-color .2s, background-color .2s;
}
.field input::placeholder { color: var(--slate); opacity: .75; }
.field input:hover, .field select:hover { border-color: var(--slate); }
.field input:focus, .field select:focus { border-color: var(--navy); background: var(--white); }
.field input[aria-invalid="true"] { border-color: var(--red); background: var(--red-bg); }
html[dir="rtl"] .field input[dir="ltr"] { text-align: end; }
.field__hint { margin-block-start: 6px; font-size: .82rem; color: var(--slate); }
.field__error { margin-block-start: 6px; font-size: .86rem; font-weight: 600; color: var(--red-text); }
.field__error[hidden], .form__error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-block-start: 6px; }
.form__error { margin-block-start: 12px; padding: 12px 14px; border-radius: 12px; background: var(--red-bg); color: var(--red-text); font-weight: 600; font-size: .95rem; }
.form__under { margin-block-start: 14px; text-align: center; font-size: .98rem; }
.form__under a { font-weight: 600; }

.thanks { display: grid; gap: 14px; }
.thanks[hidden] { display: none; }
.thanks:focus { outline: none; }
.thanks h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.thanks__text { font-size: 1.1rem; color: var(--slate); }
.thanks__kickoff { padding-block-start: 14px; border-block-start: 1px solid var(--line); color: var(--slate); }
.thanks__kickoff a { color: var(--navy); font-weight: 600; }

@media (min-width: 960px) {
  .final__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; }
  .pdfmock { width: min(46%, 270px); margin-block-start: 44px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--near-black); color: var(--on-dark-2); padding-block: 36px calc(36px + env(safe-area-inset-bottom)); border-block-start: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; }
.footer__inner { display: grid; gap: 16px; justify-items: start; }
.footer__line { grid-row: 3; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { display: inline-flex; gap: .4em; padding-block: 8px; color: var(--on-dark); text-decoration: none; }
.footer__links a[href]:hover { color: var(--white); text-decoration: underline; }
.footer__links a.is-placeholder { color: var(--on-dark-2); border-block-end: 1px dashed rgba(255, 255, 255, .4); cursor: default; }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: auto 1fr; align-items: center; gap: 14px 28px; }
  .footer__links { justify-self: end; justify-content: flex-end; }
  .footer__line { grid-row: 2; grid-column: 1 / -1; width: 100%; padding-block-start: 16px; border-block-start: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 899px) { .footer { padding-block-end: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Floating WhatsApp button ---------- */
.fab {
  position: fixed; z-index: 55; inset-block-end: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--orange); color: var(--near-black); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
  transform: scale(0); transition: transform .35s var(--ease);
}
.fab .icon { width: 28px; height: 28px; }
.fab.is-visible, .no-js .fab { transform: scale(1); }
.menu-open .fab { transform: scale(0); }
@media (min-width: 900px) { .fab { display: none; } }

/* ---------- Phone and tablet comfort: nothing smaller than 11px, every tap target at least 40px tall ---------- */
.case__label, .brand__tag { font-size: max(.6875rem, clamp(.66rem, .58rem + .4vw, .78rem)); }
.case__meta dt { font-size: .6875rem; }
.stats3__value .unit, .flow__value .unit { font-size: max(.6875rem, .45em); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.form__under a, .thanks__kickoff a { display: inline-block; padding-block: 10px; }
.form__under { margin-block-start: 4px; }

/* ---------- Scroll reveals (only when JS runs and motion is welcome) ---------- */
.motion [data-reveal] {
  opacity: 0; transform: translate3d(0, 30px, 0) rotateX(12deg); transform-origin: 50% 100%;
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .tick .icon { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .5s var(--ease) calc(var(--i, 0) * 70ms + .3s); }
.motion .is-in .tick .icon { stroke-dashoffset: 0; }

/* Calm, still page. Only used when respectReducedMotion is true in config.js and the device asks for
   less motion (motion.js then adds .reduce-motion). Bassem chose to always show motion (15 Oct 2026). */
.reduce-motion { scroll-behavior: auto; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* Mouse trail canvas (motion.js, initCursor). Mouse only. */
.cursor-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }
