/* Ednex landing v2 */

@font-face {
  font-family: 'Cairo';
  src: url(../fonts/cairo-arabic.woff2) format('woff2');
  font-weight: 400 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: 'Cairo';
  src: url(../fonts/cairo-latin.woff2) format('woff2');
  font-weight: 400 900;
  font-display: swap;
  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;
}

:root {
  --navy-950: #050a18;
  --navy-900: #070d1f;
  --navy-850: #0a1328;
  --navy-800: #0d1733;
  --navy-700: #16244a;
  --navy-600: #22346a;
  --green-700: #007a34;
  --green-600: #009640;
  --green-500: #12b05a;
  --green-400: #2fd27a;
  --green-200: #b9f2d2;
  --mint-50: #ecf9f1;
  --gold: #d4a84b;
  --ink: #0b1430;
  --ink-2: #33405f;
  --muted: #5f6b88;
  --line: #e2e8f1;
  --bg-light: #f4f6fb;
  --wa: #25d366;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(11, 20, 48, .05), 0 10px 30px -12px rgba(11, 20, 48, .16);
  --shadow-2: 0 2px 6px rgba(11, 20, 48, .06), 0 30px 60px -20px rgba(11, 20, 48, .28);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --wrap: 1220px;
  --gutter: 20px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lang-pending body { opacity: 0; }

body {
  margin: 0;
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(en) body { line-height: 1.6; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 10px; }

/* mirror directional icons in RTL */
[dir="rtl"] svg:has(> use[href="#i-arrow"]),
[dir="rtl"] svg:has(> use[href="#i-chev"]) { transform: scaleX(-1); }

.skip {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 800;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

/* ---------- buttons ---------- */
.btn {
  --b-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 11px 22px;
  border: 0; border-radius: 999px;
  background: var(--b-bg);
  font-weight: 800; font-size: .98rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--green-600) 60%, var(--green-700));
  box-shadow: 0 12px 30px -10px rgba(18, 176, 90, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-white { color: var(--navy-800); background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); }
.btn-wa { color: #052e16; background: var(--wa); box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .55); }
@media (hover: hover) {
  .btn-primary:hover, .btn-wa:hover, .btn-white:hover { transform: translateY(-2px); }
  .btn-glass:hover { background: rgba(255, 255, 255, .13); }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding-top: env(safe-area-inset-top);
  transition: background-color .35s, box-shadow .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s;
}
.site-header.scrolled {
  background: rgba(7, 13, 31, .74);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); transition: height .35s var(--ease); }
.scrolled .header-inner { height: 64px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 700; font-size: .96rem;
  padding: 8px 14px; border-radius: 999px; transition: background-color .25s, color .25s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; font-weight: 700; font-size: .9rem;
  border: 1px solid rgba(255, 255, 255, .25);
}
.lang-btn:hover { background: rgba(255, 255, 255, .08); }
.link-login { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 6px; }
.link-login:hover { color: #fff; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .nav, .link-login { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; --gutter: 16px; }
  .brand img { height: 34px; }
}
@media (max-width: 420px) { .hide-sm { display: none; } }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(5, 10, 24, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(86vw, 380px);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  padding: calc(18px + env(safe-area-inset-top)) 22px 28px;
  display: flex; flex-direction: column; gap: 24px;
  box-shadow: -30px 0 60px rgba(0, 0, 0, .4);
  animation: drawerIn .4s var(--ease);
}
@keyframes drawerIn { from { transform: translateX(var(--drawer-from, 100%)); } }
[dir="rtl"] .drawer-panel { --drawer-from: -100%; }
.drawer-close { align-self: flex-end; }
.drawer-nav { display: grid; gap: 4px; }
.drawer-nav a { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer-actions { display: grid; gap: 10px; margin-top: auto; }

/* ---------- hero ---------- */
/* ---------- the 3D world layer: seen through the prologue and the epilogue ---------- */
.scene { position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.scene[data-mode="off"] { visibility: hidden; }
.scene-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 680px at 72% 38%, rgba(18, 176, 90, .2), transparent 62%),
    radial-gradient(900px 620px at 18% 92%, rgba(34, 52, 106, .7), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(13, 23, 51, .9), transparent 70%),
    linear-gradient(180deg, #091230 0%, #070d1f 58%, #060b1a 100%);
}
[dir="rtl"] .scene-bg, [dir="rtl"] .scene-poster { transform: scaleX(-1); }
.scene-poster { position: absolute; inset: 0; transition: opacity .9s var(--ease); }
.scene-poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-finale { display: none; }
.scene[data-mode="finale"] .poster-hero { display: none; }
.scene:not(.live)[data-mode="finale"] .poster-finale { display: block; }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease); }
.scene.live .scene-canvas { opacity: 1; }
.scene.live .scene-poster { opacity: 0; }
main, .site-footer { position: relative; z-index: 1; }

.hero { position: relative; height: 300vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
[dir="ltr"] .hero-shade { background: linear-gradient(90deg, rgba(7, 13, 31, .82) 0%, rgba(7, 13, 31, .45) 38%, transparent 62%); }
[dir="rtl"] .hero-shade { background: linear-gradient(270deg, rgba(7, 13, 31, .82) 0%, rgba(7, 13, 31, .45) 38%, transparent 62%); }

.hero-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-label {
  position: absolute; top: 0; left: 0;
  display: none; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: .86rem; white-space: nowrap;
  background: rgba(7, 13, 31, .58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -50%);
  opacity: 0; transition: opacity .5s var(--ease);
  will-change: transform;
}
.float-label.placed { display: inline-flex; }
.float-label b { color: var(--green-400); font-size: .78rem; }
.hero.is-live .float-label.on { opacity: 1; }
.float-label.active { box-shadow: inset 0 0 0 1px rgba(47, 210, 122, .7), 0 0 24px rgba(47, 210, 122, .35); }

.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-copy { max-width: 580px; padding-top: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  color: var(--green-400); font-weight: 800; font-size: .9rem;
  background: rgba(47, 210, 122, .08); box-shadow: inset 0 0 0 1px rgba(47, 210, 122, .28);
}
.hero h1 {
  margin: 18px 0 16px;
  color: #fff; font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.12; letter-spacing: -.015em;
  text-wrap: balance;
}
:lang(ar) .hero h1 { line-height: 1.32; letter-spacing: 0; }
.hl {
  background: linear-gradient(90deg, var(--green-400), #a6f0c6 55%, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[dir="rtl"] .hl { background-image: linear-gradient(270deg, var(--green-400), #a6f0c6 55%, #fff); }
.hero-panels { position: relative; min-height: 8.6em; }
.hero-panel {
  position: absolute; inset: 0 0 auto;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.hero-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero .lead { color: rgba(226, 232, 245, .84); font-size: clamp(1.02rem, 1.35vw, 1.2rem); }
.panel-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; color: #fff; font-weight: 800; font-size: 1.32rem; line-height: 1.4; }
.panel-num { font-size: .8rem; color: var(--green-400); padding: 1px 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(47, 210, 122, .45); }
.panel-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--green-400); font-weight: 800; text-decoration: none; }
.panel-link:hover { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-row.center { justify-content: center; }

.hero-steps {
  position: absolute; inset-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  bottom: max(36px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0;
  color: rgba(255, 255, 255, .55); font-weight: 700; font-size: .88rem;
}
.hero-steps li { display: flex; align-items: center; gap: 8px; transition: color .4s; }
.hero-steps li + li::before {
  content: ''; width: 46px; height: 2px; margin-inline: 12px;
  background: linear-gradient(var(--fill-dir, 90deg), var(--green-400) var(--seg, 0%), rgba(255, 255, 255, .18) var(--seg, 0%));
}
[dir="rtl"] .hero-steps { --fill-dir: 270deg; }
.hero-steps .dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); transition: all .4s; }
.hero-steps li.done { color: #fff; }
.hero-steps li.done .dot { background: var(--green-400); box-shadow: 0 0 0 4px rgba(47, 210, 122, .2), 0 0 18px rgba(47, 210, 122, .7); }

.scroll-hint {
  position: absolute; bottom: max(32px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6); font-size: .85rem; font-weight: 700;
  transition: opacity .4s;
}
.scroll-hint .mouse { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); position: relative; }
.scroll-hint .mouse::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.hero.scrolled-in .scroll-hint { opacity: 0; }

@media (max-width: 767px) {
  .hero { height: 250vh; }
  .hero-content { justify-content: flex-end; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: clamp(2.2rem, 10.4vw, 3rem); margin: 12px 0 10px; }
  .eyebrow { font-size: .8rem; padding: 4px 12px; }
  .hero-panels { min-height: 6.4em; }
  .hero .lead { font-size: 1rem; line-height: 1.65; }
  .panel-title { font-size: 1.1rem; }
  .cta-row { margin-top: 14px; gap: 10px; }
  .hero .cta-row .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; font-size: .95rem; min-height: 52px; }
  [dir] .hero-shade { background: linear-gradient(0deg, rgba(7, 13, 31, .97) 0%, rgba(7, 13, 31, .9) 42%, rgba(7, 13, 31, .2) 64%, transparent 76%); }
  .hero-steps { inset-inline-start: var(--gutter); bottom: calc(26px + env(safe-area-inset-bottom)); font-size: .78rem; }
  .hero-steps li + li::before { width: 22px; margin-inline: 8px; }
  .scroll-hint { display: none; }
  .float-label { font-size: .75rem; padding: 4px 10px 4px 8px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hero h1 { font-size: 2rem; }
  .hero-panels { min-height: 5.6em; }
  .eyebrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100svh; }
  .hero-content { padding-block: 120px 60px; }
  .hero-panels { min-height: 0; display: grid; gap: 14px; }
  .hero-panel { position: relative; opacity: 1; transform: none; pointer-events: auto; }
  .hero-steps, .scroll-hint, .hero-labels { display: none; }
  [dir] .hero-shade { background: linear-gradient(180deg, rgba(7, 13, 31, .55), rgba(7, 13, 31, .9) 45%); }
}

/* ---------- trust + stats ---------- */
.trust { background: var(--navy-900); padding: 52px 0 84px; position: relative; border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-top: -32px; box-shadow: 0 -30px 60px rgba(0, 0, 0, .35); }
.trust-label { text-align: center; color: rgba(255, 255, 255, .55); font-weight: 700; font-size: .9rem; margin-bottom: 22px; }
.trust-logos .marquee { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.trust-logos li {
  display: grid; place-items: center; height: 68px; padding: 10px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, .94);
}
.trust-logos img { height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.stat { display: flex; flex-direction: column-reverse; padding: 26px 16px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; inset-inline-start: 0; top: 24%; height: 52%; width: 1px; background: rgba(255, 255, 255, .1); }
.stat dd { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.stat dd span { color: var(--green-400); }
.stat dt { margin-top: 6px; color: rgba(255, 255, 255, .62); font-weight: 700; font-size: .95rem; }
@media (max-width: 767px) {
  .trust { padding: 40px 0 56px; }
  .trust-logos { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .trust-logos .marquee { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 10px; animation: marquee 22s linear infinite; }
  [dir="rtl"] .trust-logos .marquee { animation-name: marquee-rtl; }
  .trust-logos li { height: 56px; padding: 8px 16px; flex: none; }
  .trust-logos img { height: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (min-width: 768px) { .trust-logos .dup { display: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .trust-logos .marquee { animation: none; } .trust-logos { overflow-x: auto; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.light { background: var(--bg-light); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto clamp(32px, 5vw, 52px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green-600); font-weight: 800; font-size: .92rem; }
:lang(en) .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.section h2, .chapter h2 {
  margin: 10px 0 12px; color: var(--ink); font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance;
}
:lang(ar) .section h2, :lang(ar) .chapter h2 { line-height: 1.35; letter-spacing: 0; }
.section-lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); text-wrap: pretty; }

/* decorative chevrons, drift with scroll where supported */
.deco-chevrons { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.deco-chevrons span {
  position: absolute; width: 340px; height: 260px; opacity: .07;
  background: linear-gradient(135deg, var(--green-400), transparent 75%);
  clip-path: polygon(0 0, 38% 0, 78% 50%, 38% 100%, 0 100%, 40% 50%);
}
.deco-chevrons span:nth-child(1) { top: 6%; inset-inline-end: -60px; }
.deco-chevrons span:nth-child(2) { top: 38%; inset-inline-end: 120px; width: 220px; height: 170px; opacity: .05; }
.deco-chevrons span:nth-child(3) { bottom: 4%; inset-inline-start: -80px; width: 420px; height: 320px; opacity: .04; }
[dir="rtl"] .deco-chevrons span { transform: scaleX(-1); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .deco-chevrons span { animation: drift linear both; animation-timeline: view(); }
    .deco-chevrons span:nth-child(2) { animation-name: drift2; }
  }
}
@keyframes drift { from { translate: 0 80px; } to { translate: 0 -80px; } }
@keyframes drift2 { from { translate: 0 160px; } to { translate: 0 -160px; } }

/* reveal on scroll (JS adds .js to <html>) */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="tilt"] { transform: perspective(1000px) translateY(46px) rotateX(16deg); transform-origin: 50% 100%; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* horizontal scrollers on mobile */
@media (max-width: 767px) {
  .scroller {
    display: grid !important; grid-auto-flow: column; grid-auto-columns: 80%; grid-template-columns: none !important; justify-content: start !important;
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 22px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { scroll-snap-align: start; }
}

/* ---------- segmented control ---------- */
.segmented {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 22px; padding: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.segmented button {
  position: relative; z-index: 1; min-height: 44px; padding: 8px 22px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(255, 255, 255, .7); font-weight: 800; cursor: pointer; transition: color .3s; white-space: nowrap;
}
@media (max-width: 767px) { .segmented button { padding: 8px 16px; font-size: .92rem; } }
.segmented button[aria-checked="true"] { color: #fff; }
.seg-thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; inset-inline-start: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: linear-gradient(135deg, var(--green-500), var(--green-700));
  box-shadow: 0 8px 20px -6px rgba(18, 176, 90, .6);
  transition: transform .45s var(--ease), background .45s;
}
.segmented[data-active="women"] .seg-thumb { transform: translateX(100%); background: linear-gradient(135deg, #d6457c, #a5285a); box-shadow: 0 8px 20px -6px rgba(214, 69, 124, .55); }
[dir="rtl"] .segmented[data-active="women"] .seg-thumb { transform: translateX(-100%); }
.segmented-sm { margin: 26px auto 0; }

/* ---------- diplomas (dark, flip cards) ---------- */
.diplomas { background: radial-gradient(900px 500px at 50% 0%, rgba(18, 176, 90, .12), transparent 70%), var(--navy-850); overflow: hidden; }
.chapter.dark h2 { color: #fff; }
.chapter.dark .section-lead { color: rgba(226, 232, 245, .7); }
.chapter.dark .kicker { color: var(--green-400); background: rgba(47, 210, 122, .1); }
.dip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.dip-card { position: relative; width: calc(25% - 17px); height: 440px; perspective: 1400px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.2, .8, .2, 1); }
.dip-card.flipped .dip-inner { transform: rotateY(180deg); }
[dir="rtl"] .dip-card.flipped .dip-inner { transform: rotateY(-180deg); }
@media (hover: hover) and (pointer: fine) {
  .dip-card:hover .dip-inner, .dip-card:focus-within .dip-inner { transform: rotateY(180deg); }
  [dir="rtl"] .dip-card:hover .dip-inner, [dir="rtl"] .dip-card:focus-within .dip-inner { transform: rotateY(-180deg); }
}
.face {
  position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.front {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #111d40, #0c1530);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.front .img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.front .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.front .badge {
  position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; color: #fff; background: rgba(7, 13, 31, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.front .body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 18px; }
.front h3 { color: #fff; font-size: 1.12rem; font-weight: 800; line-height: 1.45; }
.meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: rgba(226, 232, 245, .66); font-size: .9rem; font-weight: 600; }
.meta svg { flex: none; color: var(--green-400); }
.flip-hint {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  color: var(--green-400); background: rgba(47, 210, 122, .1); font-weight: 800; font-size: .86rem;
}
.back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; padding: 24px 22px;
  color: #fff;
  background:
    radial-gradient(420px 260px at 50% -10%, rgba(47, 210, 122, .32), transparent 70%),
    linear-gradient(165deg, #0f2d24 0%, #0d1733 62%, #0a1328 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 210, 122, .35), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
[dir="rtl"] .back { transform: rotateY(-180deg); }
.back .seal {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f2d48a, var(--gold) 60%, #a77d2a);
  color: var(--navy-800); box-shadow: 0 8px 24px -6px rgba(212, 168, 75, .6);
}
.back h3 { margin-top: 14px; font-size: 1.12rem; font-weight: 800; line-height: 1.45; }
.back .fee { margin-top: 18px; color: rgba(226, 232, 245, .65); font-size: .85rem; font-weight: 700; }
.back .price { display: flex; align-items: baseline; gap: 8px; font-size: 2.6rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.back .price small { font-size: 1rem; color: var(--green-400); font-weight: 800; }
.back .actions { margin-top: auto; display: grid; gap: 10px; }
.back .actions .btn { width: 100%; min-height: 46px; font-size: .92rem; }
.back .unavail { margin-top: 16px; color: #ffc2d6; font-weight: 700; font-size: .95rem; }
.dip-card.unavailable .front .img img { filter: grayscale(.9) brightness(.6); }
.dip-card.unavailable .front .badge { background: #a5285a; }
.dip-card.unavailable .price, .dip-card.unavailable .fee { display: none; }
.dip-card.swap .price span { animation: priceSwap .5s var(--ease); }
@keyframes priceSwap { from { opacity: 0; transform: translateY(10px); } }
@media (hover: hover) { .dip-card:hover .front .img img { transform: scale(1.06); } }
@media (max-width: 1100px) { .dip-card { width: calc(33.333% - 15px); } }
@media (max-width: 767px) {
  .dip-grid { gap: 14px; }
  .dip-card { width: auto; height: 430px; }
}

/* ---------- light card grids ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.chip {
  min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: var(--ink-2); font-weight: 700; font-size: .92rem;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, color .25s, box-shadow .25s;
}
.chip[aria-selected="true"] { background: var(--navy-800); color: #fff; box-shadow: 0 8px 20px -10px rgba(13, 23, 51, .6); }
@media (max-width: 767px) {
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.c-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.c-card.tilting { transition: transform .1s linear, box-shadow .5s var(--ease); }
.c-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .5), transparent 45%);
  mix-blend-mode: soft-light;
}
@media (hover: hover) {
  .c-card:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(18, 176, 90, .35); }
  .c-card:hover::after { opacity: 1; }
  .c-card:hover .c-img img { transform: scale(1.05); }
}
.c-card[hidden] { display: none; }
.c-card.pop { animation: pop .55s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pop { from { opacity: 0; transform: perspective(900px) translateY(24px) rotateX(10deg); } }
.c-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e9eef6; }
.c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.c-tag {
  position: absolute; top: 12px; inset-inline-start: 12px; padding: 3px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--navy-800); font-size: .76rem; font-weight: 800;
}
.c-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.c-body h3 {
  font-size: 1.04rem; font-weight: 800; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em;
}
.c-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.c-meta span { display: inline-flex; align-items: center; gap: 6px; }
.c-meta svg { color: var(--green-600); }
.c-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.c-price { font-weight: 900; font-size: 1.2rem; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.c-go {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--mint-50); color: var(--green-700); font-weight: 800; font-size: .86rem;
  transition: background-color .3s, color .3s;
}
.c-card:hover .c-go { background: var(--green-600); color: #fff; }
.c-card { scroll-margin: 100px; }
.c-card.highlight { box-shadow: 0 0 0 3px var(--green-500), var(--shadow-2); }

/* ---------- english: 3D level staircase ---------- */
.english { background: linear-gradient(180deg, var(--bg-light), #eaf1ff 30%, #eef3fb); }
.ladder-wrap { display: grid; justify-items: center; gap: 8px; margin: -6px auto 40px; max-width: 100%; overflow: hidden; }
.ladder-label { color: var(--muted); font-weight: 700; font-size: .9rem; }
.ladder {
  --w: 58px; --d: 46px;
  display: flex; align-items: flex-end; gap: 10px; height: 240px; padding: 30px 30px 10px;
  perspective: 1100px; perspective-origin: 50% 0%;
}
.ladder-inner { display: flex; align-items: flex-end; gap: 10px; transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(-16deg); }
[dir="rtl"] .ladder-inner { transform: rotateX(-10deg) rotateY(16deg); }
.step {
  --h: calc(var(--base, 40px) + var(--i, 0) * var(--rise, 18px));
  position: relative; width: var(--w); height: var(--h); padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d; transition: transform .45s var(--ease);
}
.step > span { position: absolute; display: grid; place-items: center; }
.step .f {
  inset: 0; transform: translateZ(calc(var(--d) / 2));
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
  color: #fff; font-weight: 900; font-size: 1rem; border-radius: 4px;
}
.step .t {
  left: 0; width: var(--w); height: var(--d); top: calc(var(--d) / -2);
  transform: rotateX(90deg);
  background: linear-gradient(135deg, #3c5aa8, #22346a); border-radius: 4px;
}
.step .s {
  top: 0; width: var(--d); height: var(--h); left: calc(var(--w) - var(--d) / 2);
  transform: rotateY(90deg);
  background: linear-gradient(180deg, #0d1733, #070d1f); border-radius: 4px;
}
[dir="rtl"] .step .s { left: calc(var(--d) / -2); transform: rotateY(-90deg); }
.step:hover, .step.active { transform: translateY(-10px); }
.step.active .f { background: linear-gradient(180deg, var(--green-400), var(--green-700)); }
.step.active .t { background: linear-gradient(135deg, #7ff0b0, var(--green-500)); }
.step.active .s { background: linear-gradient(180deg, var(--green-700), #014d22); }
.step.ielts .f { background: linear-gradient(180deg, #9b2433, #64121c); }
.step.ielts .t { background: linear-gradient(135deg, #c84a58, #9b2433); }
.step.ielts .s { background: linear-gradient(180deg, #64121c, #3d0a11); }
.step.ielts.active .f { background: linear-gradient(180deg, #e0505f, #9b2433); }
@media (max-width: 767px) {
  .ladder { --w: 26px; --d: 20px; --base: 24px; --rise: 11px; gap: 4px; height: 170px; padding: 20px 14px 8px; }
  .ladder-inner { gap: 4px; }
  .step .f { font-size: .6rem; }
}

#englishGrid .c-tag { background: var(--navy-800); color: #fff; }

.ielts {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  margin-top: clamp(48px, 7vw, 80px); padding: clamp(32px, 5vw, 60px); border-radius: var(--radius-xl); overflow: hidden;
  color: #fff;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(197, 48, 63, .35), transparent 65%),
    radial-gradient(500px 400px at 0% 100%, rgba(18, 176, 90, .2), transparent 60%),
    linear-gradient(140deg, #0e1838, #0a1328);
  box-shadow: var(--shadow-2);
}
.ielts h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; line-height: 1.3; }
.ielts-copy p { margin: 14px 0 24px; color: rgba(226, 232, 245, .75); font-size: 1.05rem; max-width: 46ch; }
.cert-scene { perspective: 1200px; display: grid; place-items: center; min-height: 300px; }
.cert {
  --crx: 6deg; --cry: -18deg;
  position: relative; width: min(100%, 380px); aspect-ratio: 1.414;
  transform-style: preserve-3d; transform: rotateX(var(--crx)) rotateY(var(--cry));
  transition: transform .2s linear;
}
.cert-face {
  position: absolute; inset: 0; border-radius: 14px; padding: 22px 26px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: var(--navy-800);
  background: linear-gradient(160deg, #fffdf7, #f4efe2);
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 168, 75, .35);
}
.cert-border { position: absolute; inset: 10px; border-radius: 10px; border: 2px solid rgba(212, 168, 75, .55); pointer-events: none; }
.cert-logo { height: 30px; width: auto; transform: translateZ(10px); }
.cert-title { margin-top: 10px; font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; color: var(--green-700); }
.cert-name { margin-top: 4px; font-weight: 900; font-size: 1.5rem; color: var(--navy-800); }
.cert-body { font-size: .8rem; color: var(--muted); font-weight: 600; }
.cert-lines { margin-top: auto; width: 100%; display: flex; justify-content: space-between; }
.cert-lines span { width: 34%; height: 2px; background: rgba(13, 23, 51, .25); }
.cert-seal {
  position: absolute; bottom: -16px; inset-inline-end: 34px; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy-800);
  background: radial-gradient(circle at 32% 30%, #f6dc98, var(--gold) 55%, #9d7424);
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(255, 255, 255, .25);
  transform: translateZ(60px);
}
.cert-ribbon {
  position: absolute; top: -10px; inset-inline-start: 30px; width: 34px; height: 70px;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  transform: translateZ(30px); box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
}
@media (max-width: 900px) {
  .ielts { grid-template-columns: 1fr; text-align: center; }
  .ielts-copy p { margin-inline: auto; }
  .cert-scene { min-height: 240px; padding-bottom: 20px; }
}

/* ---------- instructors ---------- */
.instructors { background: #fff; }
.inst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.inst {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; text-decoration: none;
  background: var(--bg-light); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s, background-color .4s;
}
.inst:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(18, 176, 90, .3); }
.avatar {
  flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--a1, var(--navy-600)), var(--a2, var(--green-600)));
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.inst-name { font-weight: 800; color: var(--ink); line-height: 1.4; }
.inst-sub { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.inst-sub b { color: var(--green-700); }
@media (max-width: 1100px) { .inst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .inst-grid { grid-auto-columns: 72%; } }

/* ---------- blog + instagram ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 22px; }
.post { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.post .c-img { aspect-ratio: 16 / 9; }
.post h3 { padding: 18px 20px 6px; font-size: 1.12rem; font-weight: 800; line-height: 1.5; }
.post .read { margin: auto 20px 20px; display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: 800; font-size: .9rem; }
.insta-card {
  order: 3; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px;
  padding: 26px; border-radius: 22px; text-decoration: none; color: #fff; min-height: 280px;
  background:
    radial-gradient(circle at 20% 110%, #fdd36d 0%, #fd7a45 25%, transparent 55%),
    radial-gradient(circle at 100% 0%, #6a4bff 0%, transparent 55%),
    linear-gradient(135deg, #c13584, #833ab4);
  box-shadow: var(--shadow-1); transition: transform .5s var(--ease);
}
.insta-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.insta-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); margin-bottom: auto; }
.insta-title { font-size: 1.3rem; font-weight: 900; }
.insta-handle { opacity: .85; font-weight: 700; }
.insta-card .btn { margin-top: 10px; color: #833ab4; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } .insta-card { grid-column: 1 / -1; min-height: 180px; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- accreditations ---------- */
.accreditations { background: #fff; }
.acc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; perspective: 1000px; }
.acc {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 22px 14px; border-radius: 20px; background: var(--bg-light); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s, background-color .5s;
}
.acc:hover { transform: translateY(-6px) rotateX(8deg); background: #fff; box-shadow: var(--shadow-2); }
.acc img { height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.acc p { text-align: center; color: var(--muted); font-size: .8rem; font-weight: 700; line-height: 1.5; }
@media (max-width: 900px) { .acc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .acc-grid { grid-template-columns: repeat(2, 1fr); } .acc:last-child { grid-column: 1 / -1; } }

/* ---------- final CTA ---------- */
.final-cta {
  position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh;
  padding: 120px 0 90px; color: #fff;
}
.final-shade { position: absolute; inset: 0; pointer-events: none; }
[dir="ltr"] .final-shade { background: linear-gradient(90deg, rgba(7, 13, 31, .88) 0%, rgba(7, 13, 31, .5) 40%, transparent 66%); }
[dir="rtl"] .final-shade { background: linear-gradient(270deg, rgba(7, 13, 31, .88) 0%, rgba(7, 13, 31, .5) 40%, transparent 66%); }
.cta-inner { position: relative; }
.cta-copy { max-width: 580px; }
.final-cta h2 { margin: 16px 0 14px; color: #fff; font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.12; letter-spacing: -.015em; }
:lang(ar) .final-cta h2 { line-height: 1.3; letter-spacing: 0; }
.final-cta .section-lead { color: rgba(226, 232, 245, .78); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.final-cta .segmented-sm { margin: 24px 0 0; }
.final-cta .cta-row { margin-top: 18px; }
@media (max-width: 767px) {
  .final-cta { align-items: flex-end; padding: 0 0 calc(36px + env(safe-area-inset-bottom)); }
  [dir] .final-shade { background: linear-gradient(0deg, rgba(7, 13, 31, .97) 0%, rgba(7, 13, 31, .9) 55%, rgba(7, 13, 31, .2) 74%, transparent 84%); }
  .cta-copy { padding-top: 40svh; }
  .final-cta h2 { font-size: clamp(2.3rem, 10.5vw, 3rem); margin: 10px 0 8px; }
}
.cta-call { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: rgba(255, 255, 255, .75); font-weight: 700; text-decoration: none; }
.cta-call:hover { color: #fff; }
.pay { margin-top: 30px; display: grid; justify-items: start; gap: 10px; }
.pay-title { color: rgba(255, 255, 255, .55); font-weight: 700; font-size: .88rem; }
.pay img { width: min(100%, 400px); height: auto; padding: 10px 16px; border-radius: 14px; background: #fff; }
.pay-note { color: rgba(255, 255, 255, .6); font-size: .88rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(226, 232, 245, .72); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand img { height: 40px; width: auto; }
.foot-brand p { margin-top: 12px; color: var(--green-400); font-weight: 700; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; }
.foot-social a:hover { background: var(--green-600); }
.foot-col h3 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.foot-col.women h3 { color: #ff9fc3; }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a, .foot-col li { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-col svg { flex: none; margin-top: 4px; color: var(--green-400); }
.foot-col.women svg { color: #ff9fc3; }
.foot-col small { display: block; color: rgba(226, 232, 245, .66); font-size: .78rem; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: rgba(226, 232, 245, .66); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ---------- mobile sticky bar ---------- */
.mobile-bar {
  position: fixed; z-index: 55; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(7, 13, 31, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.mobile-bar .btn { min-height: 48px; }
.mobile-bar.show { transform: none; }
@media (max-width: 767px) { .mobile-bar { display: grid; } }

/* ---------- pitch tools ---------- */
.pitch { position: fixed; z-index: 58; inset-inline-end: 18px; bottom: 18px; display: flex; gap: 8px; transition: bottom .5s var(--ease); }
.pitch-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: #fff; color: var(--navy-800); font-weight: 800; font-size: .85rem;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45), 0 0 0 1px rgba(13, 23, 51, .08);
}
.pitch-btn svg { color: var(--green-600); }
.pitch-btn:hover { transform: translateY(-2px); }
@media (max-width: 767px) {
  /* icon-only on phones, parked mid-edge so it never covers CTAs or the sticky bar */
  .pitch { top: 50%; bottom: auto; translate: 0 -50%; flex-direction: column; inset-inline-end: 8px; }
  .pitch-btn { width: 40px; height: 40px; min-height: 0; padding: 0; justify-content: center; }
  .pitch-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.clean .pitch { display: none; }

.before { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: #e9edf4; }
.before[hidden] { display: none; }
.before-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px; background: var(--navy-900); color: #fff;
}
.before-title { font-weight: 900; }
.before-cap { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.before-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-inline-start: auto; }
.before-tabs button { min-height: 36px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .7); font-weight: 700; cursor: pointer; }
.before-tabs button[aria-selected="true"] { background: #fff; color: var(--navy-800); }
.before-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 24px 12px 40px; }
.before-scroll img { margin-inline: auto; width: 100%; max-width: 1200px; height: auto; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); }
.before-scroll.mobile img { max-width: 390px; border-radius: 28px; border: 10px solid #111; }
@media (max-width: 767px) {
  .before-bar { gap: 10px; }
  .before-tabs { margin-inline-start: 0; }
  .before-scroll.mobile img { border-width: 0; border-radius: 0; }
}

/* capture modes (?poster=1|finale, ?emblem=0|1|2): only the 3D layer */
.poster-mode .site-header, .poster-mode .scene-poster, .poster-mode .mobile-bar, .poster-mode .site-footer { display: none !important; }
.poster-mode main { visibility: hidden; }
.poster-mode .scene-canvas { transition: none; }
.emblem-mode, .emblem-mode body { background: transparent !important; }
.emblem-mode .scene-bg { display: none; }
.hero-stage { touch-action: pan-y; }

/* ---------- the story: chapters along one path ---------- */
.story { position: relative; --rail-x: max(18px, calc((100vw - var(--wrap)) / 2 - 34px)); --pad-top: clamp(72px, 10vw, 124px); }
.chapter {
  position: relative; padding: var(--pad-top) 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-top: -32px;
  box-shadow: 0 -24px 50px -20px rgba(7, 13, 31, .25);
}
.chapter.dark { color: #fff; }
.story .chapter:last-child { border-radius: var(--radius-xl); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .55); }

.rail {
  position: absolute; z-index: 3; top: 0; bottom: 0; inset-inline-start: var(--rail-x); width: 2px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(18, 176, 90, .42) 0 8px, transparent 8px 16px);
}
.rail-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: var(--fill, 0px); border-radius: 2px;
  background: linear-gradient(180deg, var(--green-400), var(--green-500));
  box-shadow: 0 0 12px rgba(47, 210, 122, .7);
}
.rail-dot {
  position: absolute; top: var(--fill, 0px); left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle, #effff6 0 32%, var(--green-400) 62%);
  box-shadow: 0 0 0 5px rgba(47, 210, 122, .2), 0 0 24px 4px rgba(47, 210, 122, .75);
  opacity: 0; transition: opacity .3s;
}
.rail-dot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(47, 210, 122, .55); animation: ping 2s infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.story.rail-on .rail-dot { opacity: 1; }

.stop {
  position: absolute; z-index: 4; top: calc(var(--pad-top) + 4px); inset-inline-start: var(--rail-x); margin-inline-start: -17px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: .78rem; font-weight: 900; color: var(--green-700); background: #fff;
  box-shadow: 0 0 0 2px rgba(18, 176, 90, .5), 0 6px 16px rgba(11, 20, 48, .15);
  transition: background-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease);
}
.chapter.dark .stop { background: var(--navy-800); color: var(--green-400); }
.stop.reached { color: #fff; background: var(--green-500); transform: scale(1.1); box-shadow: 0 0 0 4px rgba(47, 210, 122, .25), 0 0 26px rgba(47, 210, 122, .7); }

.chapter-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: clamp(30px, 4vw, 48px); }
.chapter-text { position: relative; z-index: 1; max-width: 660px; }
.chapter .kicker { padding: 5px 14px; border-radius: 999px; background: var(--mint-50); }
.chapter h2 { margin-top: 14px; }
.chapter-num {
  position: absolute; z-index: 0; inset-inline-end: 0; top: 50%; translate: 0 -58%; pointer-events: none;
  font-size: clamp(7rem, 17vw, 14rem); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(13, 23, 51, .07);
}
.chapter.dark .chapter-num { -webkit-text-stroke-color: rgba(255, 255, 255, .08); }
.emblem {
  position: relative; z-index: 1; width: clamp(150px, 17vw, 230px); height: auto;
  filter: drop-shadow(0 26px 30px rgba(11, 20, 48, .3));
}
.chapter.dark .emblem { filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(47, 210, 122, .25)); }
@media (prefers-reduced-motion: no-preference) { .emblem { animation: emblemFloat 6s ease-in-out infinite; } }
@keyframes emblemFloat { 50% { translate: 0 -12px; } }
.sub-title { margin: clamp(48px, 6vw, 72px) 0 20px; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 900; color: var(--ink); }

.chapter .stats { margin-top: 44px; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); box-shadow: var(--shadow-2); }

@media (max-width: 1340px) { .story .wrap { padding-inline-start: 68px; } }
@media (max-width: 767px) {
  .story { --rail-x: 12px; }
  .story .wrap { padding-inline-start: var(--gutter); }
  .stop { width: 24px; height: 24px; margin-inline-start: -11px; font-size: .62rem; }
  .chapter-head { grid-template-columns: minmax(0, 1fr); padding-inline-start: 22px; }
  .emblem { position: absolute; inset-inline-end: 0; top: -58px; width: 92px; }
  .chapter-num { font-size: 6rem; top: 0; translate: 0 -38%; inset-inline-end: 70px; }
  .chapter h2 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
  .chips { padding-inline-start: calc(var(--gutter) + 6px); }
}
