/* ─────────────────────────────────────────────────────────────────────────
   Mabda AI — site styles. Apple-clean: warm off-white, ink blue, antique gold.
   Two variants (A=Quiet, B=Editorial), density + motion via [data-*] attrs.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Palette — white / blue / black, tuned for higher contrast */
  --bg:        #DFE9F6;
  --bg-2:      #F1F5FB;
  --bg-3:      #E2EAF7;
  --bg-dark:   #050816;
  --ink:       #06080F;   /* near-pure black for max heading contrast */
  --body:      #2A3344;   /* darker body for AA contrast on white */
  --muted:     #5E6A7E;   /* darker muted, still secondary */
  --hairline:  rgba(10,14,26,0.1);
  --hairline-strong: rgba(10,14,26,0.18);

  /* Blues */
  --primary:   #1E40AF;
  --primary-2: #16306E;
  --accent:    #2563EB;
  --accent-2:  #3B82F6;
  --accent-soft: #DBEAFE;
  --black:     #000000;

  --gold:    var(--accent);
  --gold-2:  var(--primary);

  /* Type stacks */
  --sans:  "Manrope", "Noto Sans Arabic", system-ui, sans-serif;
  --serif: "Manrope", "Noto Sans Arabic", system-ui, sans-serif;
  --mono:  "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --arabic: "Noto Sans Arabic", system-ui, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Easings — Apple/Linear-style cubic-bezier */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --sh-rest:  0 1px 2px rgba(10,10,10,0.04), 0 1px 0 rgba(255,255,255,0.6) inset;
  --sh-hover: 0 10px 28px rgba(10,10,10,0.08), 0 2px 6px rgba(10,10,10,0.04);
  --sh-card:  0 1px 0 rgba(10,10,10,0.04), 0 14px 40px -22px rgba(10,10,10,0.18);

  /* Layout */
  --container:   1180px;
  --nav-h:       64px;

  /* Density scale */
  --gap-s:  16px;
  --gap-m:  24px;
  --gap-l:  40px;
  --section-y: 144px;
  --content-gap: 80px;
}

/* Full-page fluid field: pale blue in daylight, cobalt on navy at night. */
.fluid-field-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 25%, #aac8e9, #dfe9f6 75%);
}
.fluid-field-bg canvas { width: 100%; height: 100%; display: block; opacity: 0; }
html[data-theme="dark"] .fluid-field-bg {
  background: radial-gradient(ellipse at 75% 25%, #132b61, #050816 75%);
}

/* Dark theme — flips backgrounds + text. Aurora keeps the same blue/indigo
   bands but uses the black-stripe variant so light blooms on dark. */
html[data-theme="dark"] {
  --bg:        #050816;
  --bg-2:      #0A1024;
  --bg-3:      #111A33;
  --ink:       #F6F8FC;
  --body:      #C2CBDB;
  --muted:     #8A95AB;
  --hairline:  rgba(255,255,255,0.10);
  --hairline-strong: rgba(255,255,255,0.20);
  --accent:    #60A5FA;
  --accent-2:  #93C5FD;
  --accent-soft: rgba(96,165,250,0.18);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--body); }

/* Dark-theme overrides for surfaces that hard-code white in light mode */
html[data-theme="dark"] .video-frame.tone-light {
  background: linear-gradient(180deg, #0F1730 0%, #0A1024 100%);
  border-color: var(--hairline);
}
html[data-theme="dark"] .stage-card,
html[data-theme="dark"] .gains-feat,
html[data-theme="dark"] .proj-face-front,
html[data-theme="dark"] .gain-card,
html[data-theme="dark"] .proj-real-tool,
html[data-theme="dark"] .proj-real-method,
html[data-theme="dark"] .proj-real-cell,
html[data-theme="dark"] .pagenav-card,
html[data-theme="dark"] .td-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .sched-day,
html[data-theme="dark"] .about-pillar {
  background: rgba(255,255,255,0.03);
  border-color: var(--hairline);
}
html[data-theme="dark"] .td-tool {
  background: rgba(255,255,255,0.04);
  border-color: var(--hairline);
}
html[data-theme="dark"] .td-tool-logo {
  background: rgba(255,255,255,0.05);
  border-color: var(--hairline);
}
html[data-theme="dark"] .nav.is-condensed {
  background: rgba(5,8,22,0.75);
  border-bottom-color: var(--hairline);
}
html[data-theme="dark"] .ribbon-fade-l { background: linear-gradient(90deg,  var(--bg) 0%, transparent 100%); }
html[data-theme="dark"] .ribbon-fade-r { background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }
html[data-theme="dark"] .btn-primary { background: var(--accent); color: #06080F; }
html[data-theme="dark"] .btn-primary:hover { background: #fff; color: #06080F; }
html[data-theme="dark"] .btn-ghost { color: var(--ink); border-color: var(--hairline-strong); }
html[data-theme="dark"] .btn-ghost:hover { border-color: var(--ink); }
html[data-theme="dark"] .eyebrow {
  background: rgba(255,255,255,0.04);
  border-color: var(--hairline-strong);
  color: var(--ink);
}
html[data-theme="dark"] .lang-toggle { border-color: var(--hairline-strong); color: var(--ink); }

/* Aurora — dark theme uses the .is-dark variant automatically */
html[data-theme="dark"] .aurora-bg:not(.is-dark) {
  background-image: var(--dark-gradient), var(--aurora);
  filter: blur(10px);
}
html[data-theme="dark"] .aurora-bg:not(.is-dark)::after {
  background-image: var(--dark-gradient), var(--aurora);
}

html[data-density="compact"] {
  --section-y: 96px;
  --content-gap: 56px;
  --gap-l: 32px;
}
html[data-density="airy"] {
  --section-y: 192px;
  --content-gap: 112px;
  --gap-l: 56px;
}

html[dir="rtl"] body { font-family: var(--arabic); }
html[dir="rtl"] { --sans: var(--arabic); --serif: var(--arabic); --mono: var(--arabic); }
html[dir="rtl"] :is(h1,h2,h3,.page-h1,.gains-panel-title,.spot-title,.pagenav-title) { letter-spacing: 0; line-height: 1.5; }
html[dir="rtl"] :is(p,.spot-body,.gpc-body) { line-height: 1.85; }
html[dir="rtl"] :is(.kicker,.spot-eyebrow,.spot-stat-l,.spot-art-cap,.pagenav-eyebrow) { letter-spacing: 0; }
html[dir="rtl"] .pagenav-card.prev:hover .pn-arrow { transform: translateX(2px); }
html[dir="rtl"] .pagenav-card.next:hover .pn-arrow { transform: translateX(-2px); }
html[dir="rtl"] { font-feature-settings: "ss01" on; }

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(30,58,138,0.18); color: var(--ink); }

/* Container */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* Section base */
.section { padding: var(--section-y) 0; position: relative; }
.section-head { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; margin-bottom: var(--content-gap); max-width: 880px; }
.section-head .h2 { margin: 0; }

/* Kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.kicker-light { color: var(--muted); }
.kicker-line { display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

/* Typography */
.h1 {
  font-family: var(--sans);
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 24px 0 0;
  text-wrap: balance;
  max-width: 14ch;
  text-align: center;
}
html[data-variant="B"] .h1 { max-width: none; }
.h2 {
  font-family: var(--sans);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h2-light { color: var(--ink); }

html[dir="rtl"] .h1, html[dir="rtl"] .h2 { font-family: var(--arabic); letter-spacing: -0.01em; line-height: 1.18; }

/* Variant B — editorial serif italic accent word */
html[dir="rtl"] .hero .h1 {
  font-family: var(--arabic);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}
html[dir="rtl"] .accent-word {
  font-family: var(--arabic);
  font-style: normal;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0;
}
.accent-word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.005em;
  padding: 0 0.04em;
  font-size: 0.92em;  /* serif renders larger at the same px; rein it in */
  line-height: 1;
  vertical-align: baseline;
  white-space: nowrap;  /* keep "AI-fluent" together */
}
html[data-variant="B"] .h2 { font-weight: 500; }
html[data-variant="B"] .section-head .kicker { color: var(--gold); }

/* ─── Scroll reveals ─────────────────────────────────────────────────── 
   Triggered by IntersectionObserver (useReveal) toggling .is-in.
   Uses CSS transitions (not @keyframes) to avoid frozen-animation bugs
   in suspended-document / background-tab contexts. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Page hero — larger, slower entry */
.page-hero-inner.reveal {
  transform: translateY(48px);
  transition-duration: 1s;
}

/* Hero inner elements — staggered cascade */
.hero-inner .eyebrow.reveal      { transition-delay: 50ms; }
.hero-inner h1.reveal             { transition-delay: 150ms; }
.hero-inner .hero-sub.reveal      { transition-delay: 280ms; }
.hero-inner .hero-actions.reveal  { transition-delay: 400ms; }
.hero-inner .stats.reveal         { transition-delay: 550ms; }

/* Schedule strip — parent triggers, children stagger individually */
.sched-strip.reveal { opacity: 1; transform: none; }
.sched-strip.reveal .sched-day {
  opacity: 0; transform: translateY(18px);
}
.sched-strip.reveal.is-in .sched-day {
  opacity: 1; transform: translateY(0);
}
.sched-strip.reveal.is-in .sched-day:nth-child(1) { transition-delay: 0ms; }
.sched-strip.reveal.is-in .sched-day:nth-child(2) { transition-delay: 60ms; }
.sched-strip.reveal.is-in .sched-day:nth-child(3) { transition-delay: 120ms; }
.sched-strip.reveal.is-in .sched-day:nth-child(4) { transition-delay: 180ms; }
.sched-strip.reveal.is-in .sched-day:nth-child(5) { transition-delay: 240ms; }
.sched-strip.reveal.is-in .sched-day:nth-child(6) { transition-delay: 300ms; }
.sched-strip.reveal.is-in .sched-day:nth-child(7) { transition-delay: 360ms; }

/* Safety — always visible when motion is off */
html.no-anim .reveal {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
html.no-anim .sched-strip.reveal .sched-day {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .sched-strip.reveal .sched-day {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn-sm  { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-lg  { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary {
  background: var(--ink); color: #fff;
}
.btn-primary:hover { background: #1f1f1f; transform: translateY(-1px); box-shadow: var(--sh-hover); }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 24px -10px rgba(37,99,235,0.6);
}
.btn-gold:hover { background: var(--gold-2); color: #fff; transform: translateY(-1px); }
.btn-arrow { font-weight: 500; transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .btn-arrow { transform: translateX(-3px); }

/* ─────────────────────────────────────────────────────────────────────────
   Nav
   ───────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250,250,247,0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.nav.is-condensed {
  background: rgba(250,250,247,0.75);
  border-bottom-color: var(--hairline);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.nav-inner {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-size: 18px; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand .brand-logo { width: 30px; height: 30px; }
.brand-logo-dark { display: none; }
html[data-theme="dark"] .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo-dark  { display: block; }
.nav-links { display: inline-flex; gap: 28px; justify-content: center; }
.nav-links a { font-size: 14px; color: var(--ink); opacity: 0.7; transition: opacity .2s ease; }
.nav-links a:hover { opacity: 1; }
.nav-end { display: inline-flex; gap: 12px; justify-content: flex-end; align-items: center; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12px; letter-spacing: 0.03em;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.lang-pip { opacity: 0.42; transition: opacity .2s; }
.lang-pip.is-on { opacity: 1; font-weight: 600; }
.lang-sep { opacity: 0.3; }

/* Theme toggle — sun/moon pill */
.theme-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 32px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.theme-toggle:hover {
  background: rgba(37,99,235,0.06);
  border-color: var(--accent);
  transform: translateY(-1px);
}
html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(96,165,250,0.12);
}
.theme-toggle-icon {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  transition: transform .45s var(--ease-out), opacity .35s var(--ease-out);
}
.theme-toggle .theme-icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .theme-icon-moon { opacity: 0; transform: rotate(-40deg) scale(0.5); }
.theme-toggle.is-dark .theme-icon-sun  { opacity: 0; transform: rotate(40deg) scale(0.5); }
.theme-toggle.is-dark .theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(37,99,235,0.12), transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(30,58,138,0.06), transparent 60%);
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  margin-bottom: 32px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(37,99,235,0.16); } 50% { box-shadow: 0 0 0 8px rgba(37,99,235,0.04); } }

.hero-sub {
  max-width: 580px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--body);
  margin: 28px auto 0;
  line-height: 1.55;
  text-wrap: balance;
}

.hero-actions {
  display: inline-flex; gap: 12px; margin-top: 36px;
  flex-wrap: wrap; justify-content: center;
}

.hero-video-wrap {
  position: relative;
  width: 100%; max-width: 880px;
  margin: 80px auto 0;
}
.hero-video-glow {
  position: absolute; inset: -8% -4% -8% -4%; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(30,58,138,0.18), transparent 60%);
  filter: blur(40px);
}

/* Stats strip */
.stats {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 36px;
  margin-top: 56px;
  padding: 22px 36px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat { text-align: center; min-width: 110px; }
.stat-num {
  font-family: var(--sans);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1;
  font-feature-settings: "tnum" on, "lnum" on;
}
.stat-label {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.stat-sep { width: 1px; height: 36px; background: var(--hairline); }

@media (max-width: 560px) {
  .stats { gap: 16px; padding: 18px 8px; }
  .stat-sep { height: 28px; }
}

/* Hero — floating module preview cards */
.hero-modules {
  position: relative; z-index: 1;
  width: 100%;
  margin-top: 88px;
  padding: 0 24px;
  pointer-events: none;
}
.hero-modules-row {
  max-width: 1080px;
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  transform-style: preserve-3d;
  transition: transform .15s linear;
}
.hero-mod-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--sh-card);
  text-align: left;
  transform-origin: bottom center;
}
.hero-mod-card.pos-0 { transform: translateY(8px) rotate(-1.2deg); }
.hero-mod-card.pos-1 { transform: translateY(0)   rotate(0.4deg); }
.hero-mod-card.pos-2 { transform: translateY(8px) rotate(1deg); }
.hero-mod-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hero-mod-num {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  color: var(--gold); letter-spacing: 0.02em;
}
.hero-mod-dur { font-size: 11.5px; color: var(--muted); }
.hero-mod-title {
  margin-top: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  line-height: 1.25; letter-spacing: -0.01em;
}
.hero-mod-foot {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.4;
}
.hero-mod-arrow { color: var(--gold); }
html[dir="rtl"] .hero-mod-card { text-align: right; }

@media (max-width: 820px) {
  .hero-modules-row { grid-template-columns: 1fr; max-width: 380px; }
  .hero-mod-card { transform: none !important; }
}

/* Variant B — slight asymmetric hero (text-left on large screens) */
html[data-variant="B"] .hero-inner { align-items: flex-start; text-align: left; }
html[data-variant="B"] .hero-sub { margin-left: 0; }
html[data-variant="B"] .hero-actions { justify-content: flex-start; }
html[data-variant="B"] .stats { justify-content: flex-start; }
html[data-variant="B"] .hero-video-wrap { margin-left: 0; margin-right: 0; }
html[data-variant="B"][dir="rtl"] .hero-inner { align-items: flex-end; text-align: right; }
@media (max-width: 720px) {
  html[data-variant="B"] .hero-inner { align-items: center; text-align: center; }
  html[data-variant="B"] .hero-actions, html[data-variant="B"] .stats { justify-content: center; }
}

/* Video frame */
.video-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  box-shadow: 0 30px 80px -30px rgba(10,10,10,0.35), 0 8px 24px -16px rgba(10,10,10,0.2);
  border: 1px solid rgba(255,255,255,0.05);
}
.video-frame.tone-light {
  background: linear-gradient(180deg, #F4F7FB 0%, #E8EFFA 100%);
  box-shadow: var(--sh-card);
  border: 1px solid var(--hairline);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #050505; }
.video-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-empty-inner,
.video-play-overlay {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 13.5px; letter-spacing: -0.005em;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}
.video-play-overlay {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
  font: inherit;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease;
}
.video-play-overlay:hover { transform: translate(-50%, -50%) scale(1.02); background: rgba(255,255,255,0.12); }
.stage-card.sc-video .video-play-overlay { background: rgba(5,12,26,.78); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.stage-card.sc-video .video-play-overlay:hover { background: rgba(5,12,26,.9); }
.video-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: rgba(14,14,14,0.54);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform .18s ease, background .18s ease;
}
.video-expand:hover { transform: scale(1.05); background: rgba(14,14,14,0.72); }
html[dir="rtl"] .video-expand {
  right: auto;
  left: 14px;
}
.tone-light .video-empty-inner {
  background: rgba(10,10,10,0.05);
  color: var(--body);
  border-color: rgba(10,10,10,0.08);
}
.play-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
}
.tone-light .play-icon { background: var(--ink); color: var(--bg); }

/* ─────────────────────────────────────────────────────────────────────────
   Icon Ribbon v3 — chip-less, draggable, individually floating logos
   ───────────────────────────────────────────────────────────────────────── */
.ribbon {
  position: relative;
  margin-top: 96px;
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
  background: transparent;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.ribbon.is-dragging { cursor: grabbing; }
.ribbon.is-dragging .ribbon-track { animation-play-state: paused; }

.ribbon-fade { position: absolute; top: 0; bottom: 0; width: 160px; z-index: 2; pointer-events: none; }
.ribbon-fade-l { left: 0;  background: linear-gradient(90deg,  var(--bg) 0%, transparent 100%); }
.ribbon-fade-r { right: 0; background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }

.ribbon-track {
  display: inline-flex; align-items: center; gap: 64px;
  padding: 8px 0;
  white-space: nowrap;
  animation: ribbonScroll 90s linear infinite;
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }
html[data-motion="subtle"] .ribbon-track { animation-duration: 120s; }
html[data-motion="showy"]  .ribbon-track { animation-duration: 60s; }
html[dir="rtl"] .ribbon-track { animation-direction: reverse; }
@keyframes ribbonScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ribbon-item {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out);
  cursor: default;
}
.ribbon:not(.is-dragging) .ribbon-item:hover {
  opacity: 1;
  color: var(--brand);
  transform: translateY(-2px);
}
.ribbon-item .ribbon-logo {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
}
.ribbon-item svg {
  width: 26px; height: 26px;
  min-width: 26px;
  flex-shrink: 0;
  display: block;
}
.ribbon-name {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none !important; } }
html.no-anim .ribbon-track { animation: none !important; }

@media (max-width: 720px) {
  .ribbon { padding: 36px 0; margin-top: 64px; }
  .ribbon-track { gap: 40px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Modules section
   ───────────────────────────────────────────────────────────────────────── */
.section-modules { background: var(--bg); }
.mod-list { display: flex; flex-direction: column; gap: 56px; }
.mod-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 0;
}
.mod-card.is-flipped { direction: rtl; }
.mod-card.is-flipped > * { direction: ltr; }
html[dir="rtl"] .mod-card { direction: rtl; }
html[dir="rtl"] .mod-card.is-flipped { direction: ltr; }
html[dir="rtl"] .mod-card.is-flipped > * { direction: rtl; }

.mod-media { border-radius: var(--r-xl); }  /* overflow handled by .video-frame child; needed for tilt preserve-3d */
.mod-body { display: flex; flex-direction: column; gap: 18px; }
.mod-meta { display: flex; align-items: baseline; gap: 16px; }
.mod-num {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.mod-dur {
  font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--muted); text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
}
.mod-title {
  font-size: clamp(26px, 3vw, 36px); font-weight: 600;
  color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.025em;
  text-wrap: balance;
}
.mod-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mod-bullets li { display: flex; gap: 12px; font-size: 16px; color: var(--body); line-height: 1.5; }
.mod-bullet-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-top: 10px; flex-shrink: 0; }
.mod-outcome {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px;
  background: rgba(30,58,138,0.04);
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15px; color: var(--ink);
  margin-top: 8px;
}
.mod-outcome-arrow { color: var(--primary); font-weight: 500; }
.mod-outcome strong { font-weight: 600; }
html[dir="rtl"] .mod-outcome { border-left: 0; border-right: 2px solid var(--primary); border-radius: var(--r-md) 0 0 var(--r-md); }

.mod-note {
  text-align: center;
  margin: 80px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}
html[dir="rtl"] .mod-note { font-family: var(--arabic); font-style: normal; }

/* Variant B — alternating sides + serif touches */
html[data-variant="B"] .mod-card.is-flipped { grid-template-columns: 1fr 1.05fr; }
html[data-variant="B"] .mod-title { font-weight: 500; }
html[data-variant="B"] .mod-num { font-family: var(--serif); font-style: italic; font-size: 32px; }

@media (max-width: 880px) {
  .mod-card, html[data-variant="B"] .mod-card.is-flipped { grid-template-columns: 1fr; gap: 28px; }
  .mod-card.is-flipped { direction: ltr; }
}

/* ── Module cards v2 — clean vertical cards (program section) ──────────── */
.modx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.modx-card {
  display: flex; flex-direction: column;
  background: var(--fog-strong);
  -webkit-backdrop-filter: blur(var(--fog-blur)) saturate(140%);
          backdrop-filter: blur(var(--fog-blur)) saturate(140%);
  border: 1px solid var(--fog-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--fog-shadow);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .55s var(--ease-out);
}
.modx-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px -34px rgba(8,14,40,0.5), 0 10px 28px -18px rgba(30,64,175,0.4);
}

/* Header visual block (stands in for the reference's top image) */
.modx-head {
  position: relative;
  height: 168px;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 20px 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(37,99,235,0.18), transparent 55%),
    linear-gradient(135deg, var(--primary), var(--primary-2));
  overflow: hidden;
}
.modx-head.has-video {
  align-items: flex-start;
  padding: 16px 18px;
  background: #050505;
}
.modx-head-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 120% at 80% 0%, #000, transparent 75%);
          mask-image: radial-gradient(120% 120% at 80% 0%, #000, transparent 75%);
  opacity: 0.7;
}
.modx-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
}
.modx-video-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,8,28,0.70) 0%, rgba(2,8,28,0.12) 46%, rgba(2,8,28,0.42) 100%);
}
.modx-video-expand {
  position: absolute;
  top: 56px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background: rgba(5,10,24,0.48);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: transform .18s ease, background .18s ease;
}
.modx-video-expand:hover { transform: scale(1.05); background: rgba(5,10,24,0.68); }
html[dir="rtl"] .modx-video-expand {
  right: auto;
  left: 18px;
}
.modx-num {
  position: relative;
  z-index: 2;
  font-family: var(--sans);
  font-size: 76px; font-weight: 600; line-height: 0.8;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.modx-head.has-video .modx-num {
  font-size: 58px;
  line-height: 0.9;
}
.modx-dur {
  position: relative;
  z-index: 2;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.modx-body { display: flex; flex-direction: column; gap: 20px; padding: 26px 24px 28px; flex: 1; }
.modx-title {
  font-size: 21px; font-weight: 600; color: var(--ink);
  margin: 0; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance;
}
.modx-label {
  display: block;
  font-size: 14.5px; font-weight: 600; color: var(--primary);
  margin-bottom: 12px;
}
html[data-theme="dark"] .modx-label { color: var(--accent); }
.modx-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.modx-bullets li { display: flex; gap: 11px; font-size: 14.5px; color: var(--body); line-height: 1.45; }
.modx-check {
  flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--accent);
  box-shadow: 0 3px 9px -3px rgba(37,99,235,0.6);
}
.modx-outcome {
  margin-top: auto;
  padding: 16px 18px;
  background: rgba(30,58,138,0.05);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
html[data-theme="dark"] .modx-outcome { background: rgba(96,165,250,0.08); }
.modx-outcome-text { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.45; }

@media (max-width: 980px) {
  .modx-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
/* Spacious course rows: metadata and video beside the curriculum. */
.modx-grid { grid-template-columns: 1fr; max-width: none; gap: 28px; }
.modx-course-row {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start; gap: clamp(24px, 4vw, 48px); padding: clamp(22px, 3vw, 36px);
  background: rgba(235,244,255,.88); border: 1px solid rgba(30,64,175,.15);
  box-shadow: 0 12px 36px -28px rgba(16,37,75,.4);
}
.modx-course-row:hover { transform: none; box-shadow: 0 16px 48px -30px rgba(16,37,75,.4); }
html[data-theme="dark"] .modx-course-row { background: rgba(12,26,48,.88); border-color: rgba(147,197,253,.18); }
.modx-media-column { min-width: 0; }
.modx-course-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.modx-course-index { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 22px; font-weight: 700; }
html[data-theme="dark"] .modx-course-index { color: #07152d; }
.modx-course-step { font-size: 14px; font-weight: 700; color: var(--ink); }
.modx-course-duration { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.modx-course-row .modx-head { height: auto; aspect-ratio: 16 / 9; padding: 0; border-radius: 16px; border: 1px solid var(--hairline); }
.modx-course-row .modx-video { object-fit: contain; }
.modx-course-row .modx-video-shade { display: none; }
.modx-course-row .modx-video-expand { top: 12px; }
.modx-course-row .modx-body { padding: 0; gap: 22px; }
.modx-course-row .modx-title { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.3; text-wrap: pretty; }
.modx-course-row .modx-bullets { gap: 13px; }
.modx-course-row .modx-bullets li { font-size: 15px; line-height: 1.6; }
.modx-course-row .modx-outcome { border: 0; border-inline-start: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.modx-course-row .modx-outcome .modx-label { margin-bottom: 7px; }
html[dir="rtl"] .modx-course-row .modx-title { line-height: 1.6; }
@media (max-width: 720px) {
  .modx-course-row { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .modx-course-meta { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .modx-card:hover { transform: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Gains v3 — dark inset panel with illuminated glass cards
   ───────────────────────────────────────────────────────────────────────── */
.section-gains { background: transparent; }

/* Dark panel container */
.gains-panel {
  position: relative;
  background: linear-gradient(168deg, #EDF1F8 0%, #F4F7FC 45%, #E8EDF6 100%);
  border-radius: 28px;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(30,64,175,0.08);
}

/* Background decoration */
html[data-theme="dark"] .gains-panel { background: linear-gradient(150deg, #102140, #0a1428 65%, #101e39); border-color: rgba(147,197,253,.18); }
html[data-theme="dark"] .gains-panel-card { background: #121f36; border-color: rgba(147,197,253,.16); }
html[data-theme="dark"] .gains-panel-card:hover,
html[data-theme="dark"] .gains-panel-card.is-active { background: #192d4c; border-color: rgba(147,197,253,.4); }
html[data-theme="dark"] .gains-panel .gpc-num { color: rgba(147,197,253,.12); }
html[data-theme="dark"] .gains-panel .gpc-step,
html[data-theme="dark"] .gains-panel .kicker-on-dark { color: #afc2de; }
html[data-theme="dark"] .float-apply { background: #93c5fd; color: #07152d; }
html[data-theme="dark"] .float-apply:hover { background: #bfdbfe; color: #07152d; }
html[data-theme="dark"] .float-apply .float-dot { background: #1e40af; }
html[data-theme="dark"] .float-apply .float-arrow { color: #1e40af; }
#mabda-page-veil { position: fixed; inset: 0; z-index: 10000; pointer-events: none; opacity: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #bdd6f3, #dfe9f6 70%); }
html[data-theme="dark"] #mabda-page-veil { background: radial-gradient(ellipse at 50% 45%, #16366c, #071020 70%); }
.page-transition-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page-transition-logo { width: clamp(80px, 12vw, 116px); height: clamp(80px, 12vw, 116px); object-fit: contain; filter: drop-shadow(0 8px 28px rgba(37,99,235,.22)); }
.page-transition-name { color: var(--ink); font-family: var(--sans); font-size: 24px; font-weight: 700; }
.page-transition-line { width: 48px; height: 3px; background: var(--accent); border-radius: 3px; }
#mabda-page-veil.is-covering { opacity: 1; pointer-events: auto; }

.gains-panel-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.gains-panel-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(30,64,175,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 10%, transparent 75%);
}
.gains-panel-glow {
  position: absolute;
  top: -30%; left: 50%; transform: translateX(-50%);
  width: 90%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.06) 0%, transparent 65%);
}

/* Header */
.gains-panel-head {
  position: relative; z-index: 1;
  text-align: center;
  margin-bottom: 36px;
}
.kicker-on-dark { color: var(--muted); }
.kicker-on-dark .kicker-line { background: var(--hairline-strong); }

.gains-panel-title {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 14px 0 0;
}

/* Divider */
.gains-panel-divider {
  position: relative; z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(30,64,175,0.1) 50%, transparent 95%);
  margin-bottom: 44px;
}

/* Card grid */
.gains-panel-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Individual card */
.gains-panel-card {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(10,14,26,0.08);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .4s ease, background .4s ease;
  cursor: default;
}
.gains-panel-card:hover,
.gains-panel-card.is-active {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,0.2);
  background: #FFFFFF;
  box-shadow: 0 20px 50px -20px rgba(30,64,175,0.1);
}

/* Hover glow effect */
.gpc-glow {
  position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.04) 0%, transparent 70%);
  opacity: 0; transition: opacity .5s ease;
  pointer-events: none;
}
.gains-panel-card:hover .gpc-glow,
.gains-panel-card.is-active .gpc-glow { opacity: 1; }

/* Giant watermark number */
.gpc-num {
  position: absolute; top: -6px; right: 14px;
  font-family: var(--sans); font-size: 88px; font-weight: 800;
  color: rgba(30,64,175,0.06);
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none; user-select: none;
  transition: color .4s ease;
}
.gains-panel-card:hover .gpc-num { color: rgba(37,99,235,0.1); }

/* Top row: badge + step label */
.gpc-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.gpc-badge {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background .4s ease, border-color .4s ease;
}
.gains-panel-card:hover .gpc-badge {
  background: rgba(37,99,235,0.14);
  border-color: rgba(37,99,235,0.3);
}
.gpc-badge span {
  font-family: var(--sans); font-size: 20px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.gpc-step {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Title + description */
.gpc-name {
  font-size: 18px; font-weight: 600; color: var(--ink);
  margin: 0 0 8px; letter-spacing: -0.02em;
  position: relative; z-index: 1;
}
.gpc-body {
  font-size: 14px; color: var(--body); line-height: 1.6; margin: 0;
  position: relative; z-index: 1;
}

/* Reveal animations */
.gains-panel-head.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.gains-panel-head.reveal.is-in { opacity: 1; transform: translateY(0); }

.gains-panel-grid.reveal .gains-panel-card {
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.gains-panel-grid.reveal.is-in .gains-panel-card { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .gains-panel-grid { grid-template-columns: 1fr 1fr; }
  .gains-panel { border-radius: 20px; }
}
@media (max-width: 560px) {
  .gains-panel-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .gains-panel { padding: 32px 18px; border-radius: 16px; }
  .gains-panel-title { font-size: clamp(30px, 8vw, 42px); }
}
@media (prefers-reduced-motion: reduce) {
  .gains-panel-head.reveal { opacity: 1; transform: none; }
  .gains-panel-grid.reveal .gains-panel-card { opacity: 1; transform: none; }
}

/* legacy .gain-* — hide if any remain */
.gain-grid { display: none; }

/* ─────────────────────────────────────────────────────────────────────────
   Projects v2 — featured spotlight + 3D flip tiles
   ───────────────────────────────────────────────────────────────────────── */
.proj-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
  padding: 48px;
  background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--hairline);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.proj-spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 0% 0%, rgba(37,99,235,0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(30,64,175,0.06), transparent 60%);
}
.proj-spotlight > * { position: relative; z-index: 1; }
.spot-meta { display: flex; flex-direction: column; gap: 18px; }
.spot-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.spot-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,0.18); }
.spot-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600; color: var(--ink); margin: 0;
  letter-spacing: -0.025em; line-height: 1.15;
  text-wrap: balance;
}
.spot-body { font-size: 16px; color: var(--body); line-height: 1.55; margin: 0; max-width: 480px; }
.spot-stats {
  display: flex; gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.spot-stats > div { display: flex; flex-direction: column; gap: 2px; }
.spot-stat-n {
  font-size: 24px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" on;
}
.spot-stat-l { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spot-meta .btn { align-self: flex-start; margin-top: 8px; }

html[data-theme="dark"] .proj-spotlight { background: linear-gradient(145deg, #10213d, #0a1428); border-color: rgba(147,197,253,.18); }
html[data-theme="dark"] .spot-art { background: #142640; border-color: rgba(147,197,253,.18); box-shadow: 0 20px 50px -30px #000; }
html[data-theme="dark"] .spot-art .proj-art > rect:first-of-type { fill: #112440; }
html[data-theme="dark"] .spot-art .proj-art > rect:not(:first-of-type) { fill: #1b3557; stroke: #82b7f4; }
html[data-theme="dark"] .spot-art .proj-art > path { stroke: #82b7f4; }
html[data-theme="dark"] .spot-stat-l,
html[data-theme="dark"] .spot-art-cap { color: #adc2df; }
.spot-stat-l, .spot-art-cap, .spot-eyebrow { font-size: 13px; }
.spot-art-wrap { perspective: 1600px; max-width: 460px; width: 100%; justify-self: center; }
.spot-art {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 30px 80px -40px rgba(30,64,175,0.4),
    0 10px 30px -20px rgba(10,14,26,0.12);
}
.spot-art-content { display: flex; flex-direction: column; gap: 14px; }
.spot-art-window {
  position: relative;
  aspect-ratio: 200 / 130;
  border-radius: 12px;
  overflow: hidden;
}
.spot-layer {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 12px 32px -12px rgba(10,14,26,0.2);
  transition: transform .6s var(--ease-out);
}
.spot-layer-1 { transform: translateZ(40px) translate(0, 0); z-index: 3; }
.spot-layer-2 { transform: translateZ(20px) translate(6%, 4%) scale(0.95); z-index: 2; opacity: 0.9; }
.spot-layer-3 { transform: translateZ(0) translate(12%, 8%) scale(0.9); z-index: 1; opacity: 0.7; }
.tilt.is-hot .spot-layer-1 { transform: translateZ(60px) translate(-2%, -2%); }
.tilt.is-hot .spot-layer-2 { transform: translateZ(30px) translate(8%, 6%) scale(0.94); }
.tilt.is-hot .spot-layer-3 { transform: translateZ(10px) translate(16%, 12%) scale(0.88); }
.spot-art-cap {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .proj-spotlight { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Real featured project — sections grid, methodology callout, benefits
   ───────────────────────────────────────────────────────────────────────── */
.proj-real {
  margin-bottom: 96px;
  display: grid;
  gap: 56px;
  padding: 56px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.proj-real::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 0% 0%, rgba(37,99,235,0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(30,64,175,0.05), transparent 60%);
}
.proj-real > * { position: relative; z-index: 1; }

@media (max-width: 720px) { .proj-real { padding: 28px; margin-bottom: 56px; } }

.proj-real-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.proj-real-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.proj-real-tag { color: var(--muted); }
.proj-real-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
.proj-real-tagline {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}
.proj-real-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 600px;
}
.proj-real-tools {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 12px;
}
.proj-real-tools-label {
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
html[dir="rtl"] .proj-real-tools-label { margin-right: 0; margin-left: 4px; }
.proj-real-tool {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500;
  color: var(--ink);
}
.proj-real-tool-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  color: var(--ink);
}
.proj-real-tool-logo svg { width: 18px; height: 18px; min-width: 18px; flex-shrink: 0; }

/* Method callout */
.proj-real-method {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 24px;
  align-items: baseline;
}
html[dir="rtl"] .proj-real-method { border-left: 0; border-right: 4px solid var(--accent); }
.proj-real-method-tag {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.proj-real-method-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1;
}
.proj-real-method-body {
  grid-column: 2 / -1;
  font-size: 15.5px;
  color: var(--body);
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}
html[dir="rtl"] .proj-real-method-body { grid-column: 1 / 2; }
@media (max-width: 720px) {
  .proj-real-method { grid-template-columns: 1fr; gap: 4px; }
  .proj-real-method-body { grid-column: 1 / -1; margin-top: 8px; }
}

/* Sections grid */
.proj-real-h {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.proj-real-h::before {
  content: ""; display: inline-block; width: 24px; height: 1px;
  background: currentColor; opacity: 0.6;
}
.proj-real-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 880px) { .proj-real-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-real-grid { grid-template-columns: 1fr; } }
.proj-real-cell {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  position: relative;
}
.proj-real-cell::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; border-radius: 14px 14px 0 0;
  transition: opacity .35s var(--ease-out);
}
.proj-real-cell:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  box-shadow: 0 16px 36px -22px rgba(10,14,26,0.18);
}
.proj-real-cell:hover::before { opacity: 1; }
.proj-real-cell-n {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-feature-settings: "tnum" on;
}
.proj-real-cell-name {
  font-size: 16px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
}
.proj-real-cell-body { font-size: 13.5px; line-height: 1.5; color: var(--body); margin: 0; }

/* Benefits */
.proj-real-bens { }
.proj-real-ben-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px;
}
@media (max-width: 720px) { .proj-real-ben-list { grid-template-columns: 1fr; } }
.proj-real-ben-list li {
  display: grid; grid-template-columns: 18px 1fr; gap: 12px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.proj-real-ben-mark {
  color: var(--accent);
  font-weight: 500;
}

/* Old spotlight stays for fallback. Hide stat strip when used for real proj. */

/* ─────────────────────────────────────────────────────────────────────────
   Project tile — flip card
   ───────────────────────────────────────────────────────────────────────── */
.proj-tile {
  position: relative;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.proj-tile:hover { box-shadow: 0 20px 50px -22px rgba(10,14,26,0.18); }

.proj-flip {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
  border-radius: var(--r-lg);
}
.proj-tile.is-flipped .proj-flip { transform: rotateY(180deg); }
html[dir="rtl"] .proj-tile.is-flipped .proj-flip { transform: rotateY(-180deg); }

.proj-face {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.proj-face-front { box-shadow: 0 1px 0 rgba(10,14,26,0.04), 0 14px 40px -22px rgba(10,14,26,0.14); }
.proj-face-back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1024 100%);
  color: rgba(243,246,251,0.85);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px; justify-content: space-between;
  border-color: rgba(255,255,255,0.08);
}
.proj-back-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 70% 20%, rgba(37,99,235,0.35), transparent 60%);
}
.proj-back-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 1; position: relative;
}
.proj-back-num {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.12em;
  color: var(--accent-2);
}
.proj-back-title {
  font-size: 18px; font-weight: 600; color: #fff;
  letter-spacing: -0.015em; line-height: 1.25;
  z-index: 1; position: relative;
}
.proj-back-body {
  font-size: 13px; line-height: 1.55; color: rgba(243,246,251,0.7);
  z-index: 1; position: relative;
  flex: 1;
}
.proj-back-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 1; position: relative;
}
.proj-back-cta { font-size: 12.5px; font-weight: 500; color: rgba(243,246,251,0.85); letter-spacing: 0.02em; }
.proj-back-arrow { color: var(--accent-2); }
.proj-back-tag {
  align-self: flex-start;
  padding: 5px 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-2);
}

.proj-media {
  position: relative;
  aspect-ratio: 200 / 130;
  overflow: hidden;
  background: var(--bg-2);
}
.proj-media .proj-art { width: 100%; height: 100%; display: block; }
.proj-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
html[dir="rtl"] .proj-badge { left: auto; right: 12px; }
.proj-meta { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.proj-name { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.proj-desc { font-size: 14px; color: var(--body); }
.proj-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.proj-cta { font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }

/* 2-second hold-to-flip progress indicator */
.proj-hold {
  position: relative;
  width: 36px; height: 4px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  overflow: hidden;
}
.proj-hold-fill {
  position: absolute; inset: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
  border-radius: var(--r-pill);
}
html[dir="rtl"] .proj-hold-fill { transform-origin: right center; }
.proj-tile:hover .proj-hold-fill {
  animation: hold-fill 2s linear forwards;
}
.proj-tile.is-flipped .proj-hold-fill { animation: none; transform: scaleX(1); }
@keyframes hold-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
html.no-anim .proj-tile:hover .proj-hold-fill { animation: none; }

.proj-arrow {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); color: var(--ink);
  transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
  font-size: 11px;
}
.proj-tile:hover .proj-arrow { background: var(--ink); color: #fff; transform: translateX(3px); }
html[dir="rtl"] .proj-tile:hover .proj-arrow { transform: translateX(-3px); }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 880px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }

.proj-wrap { perspective: 1200px; }
.proj-wrap.is-featured { grid-column: 1 / -1; }

/* ─────────────────────────────────────────────────────────────────────────
   Achievements (counter strip)
   ───────────────────────────────────────────────────────────────────────── */
.section-ach {
  background: var(--bg);
  padding: calc(var(--section-y) * 0.55) 0;
}
.ach-row {
  display: flex; flex-direction: column; gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.ach-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.ach-grid {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.ach-sep { width: 1px; height: 56px; background: var(--hairline); }
.ach { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ach-num {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.025em;
  line-height: 1;
  display: inline-flex; align-items: baseline; gap: 2px;
  font-feature-settings: "tnum" on, "lnum" on;
}
.ach-num-plus { font-size: 0.6em; color: var(--gold-2); margin-left: 2px; }
.ach-label { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
html[data-variant="B"] .ach-num { font-family: var(--serif); font-style: italic; font-weight: 400; }

@media (max-width: 880px) {
  .ach-grid { grid-template-columns: 1fr 1fr; }
  .ach-sep { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Projects grid — (styles moved into Projects v2 block above)
   ───────────────────────────────────────────────────────────────────────── */
.section-projects { background: var(--bg); }

/* ─────────────────────────────────────────────────────────────────────────
   Why Us — alternating split
   ───────────────────────────────────────────────────────────────────────── */
.section-why { background: var(--bg-2); }
.why-list { display: flex; flex-direction: column; gap: 100px; }
html[data-density="compact"] .why-list { gap: 64px; }
html[data-density="airy"]    .why-list { gap: 140px; }

.why-row {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center;
}
.why-row.is-flipped { direction: rtl; }
.why-row.is-flipped > * { direction: ltr; }
html[dir="rtl"] .why-row { direction: rtl; }
html[dir="rtl"] .why-row.is-flipped { direction: ltr; }
html[dir="rtl"] .why-row.is-flipped > * { direction: rtl; }

.why-text { display: flex; flex-direction: column; gap: 16px; }
.why-n {
  font-family: var(--sans);
  font-size: 14px; letter-spacing: 0.06em; color: var(--gold); font-weight: 500;
}
html[data-variant="B"] .why-n { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: 0; }
.why-title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
html[data-variant="B"] .why-title { font-weight: 500; }
.why-body { font-size: 17px; color: var(--body); line-height: 1.55; max-width: 480px; }

.why-photo { position: relative; }
.photo-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, #E5ECF7 0%, #C7D2E8 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.photo-corner { position: absolute; width: 14px; height: 14px; border: 1px solid rgba(10,10,10,0.18); }
.photo-corner.top-l { top: 16px; left: 16px;  border-right: 0; border-bottom: 0; }
.photo-corner.top-r { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.photo-corner.bot-l { bottom: 16px; left: 16px;  border-right: 0; border-top: 0; }
.photo-corner.bot-r { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.photo-caption {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(10,10,10,0.45);
}

@media (max-width: 880px) {
  .why-row, .why-row.is-flipped { grid-template-columns: 1fr; gap: 28px; direction: ltr; }
}

/* ── Is this for you? — fit-check comparison ─────────────────────────── */
.fit-head {
  position: relative;
  text-align: center;
  margin-bottom: 48px;
  padding-top: 20px;
}
.fit-note {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-260px) rotate(-4deg);
  display: flex; align-items: flex-start; gap: 4px;
  color: var(--accent);
  pointer-events: none;
}
.fit-note-text {
  font-family: "Caveat", cursive;
  font-size: 30px; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
.fit-note-arrow { width: 56px; height: 38px; margin-top: 6px; flex: none; }
.fit-title {
  font-size: clamp(64px, 12vw, 148px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  margin: 0;
}

.fit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: 28px;
  background: var(--fog);
  border: 1px solid var(--fog-border);
  -webkit-backdrop-filter: blur(var(--fog-blur)) saturate(140%);
          backdrop-filter: blur(var(--fog-blur)) saturate(140%);
  box-shadow: var(--fog-shadow);
}
.fit-card { padding: 30px 30px 32px; border-radius: 20px; }
.fit-card-no {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--hairline);
}
html[data-theme="dark"] .fit-card-no { background: rgba(255,255,255,0.04); }
.fit-card-yes {
  background: linear-gradient(145deg, #0c1a3d 0%, #122350 40%, #0e1e45 100%);
  border: 1px solid rgba(37,99,235,0.2);
}
.fit-card-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 22px; line-height: 1.2;
}
.fit-card-no .fit-card-title { color: var(--ink); }
.fit-card-yes .fit-card-title { color: #fff; }

.fit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fit-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: 13px;
  font-size: 15.5px; font-weight: 500; line-height: 1.4;
}
.fit-row-no {
  background: rgba(10,14,26,0.04);
  color: var(--body);
}
html[data-theme="dark"] .fit-row-no { background: rgba(255,255,255,0.05); }
.fit-row-yes {
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.1);
  color: #EAEFF8;
}
.fit-mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.fit-row-no .fit-mark {
  color: #E11D48;
  background: rgba(225,29,72,0.12);
}
.fit-row-yes .fit-mark {
  color: #60A5FA;
  background: rgba(59,130,246,0.2);
}
.fit-row-text { text-wrap: pretty; }

/* RTL — flip the annotation to the right */
html[dir="rtl"] .fit-note { transform: translateX(200px) rotate(4deg); }
html[dir="rtl"] .fit-note-arrow { transform: scaleX(-1); }

@media (max-width: 820px) {
  .fit-cols { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .fit-note { transform: translateX(-50%) rotate(-4deg); top: -2px; }
  .fit-head { padding-top: 44px; }
}

/* Why page now opens directly on the fit-check — clear the fixed nav */
.is-page-section-top { padding-top: 132px; }
.is-page-section-top .section-why { padding-top: 0; }
@media (max-width: 820px) { .is-page-section-top { padding-top: 104px; } }

/* Four reasons — supporting grid below the fit-check */
.why-reasons { margin-top: 110px; }
.why-reasons-head { margin-bottom: 48px; }
.why-reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.why-reason-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 32px 30px;
  border-radius: 20px;
  background: var(--fog-strong);
  -webkit-backdrop-filter: blur(var(--fog-blur)) saturate(140%);
          backdrop-filter: blur(var(--fog-blur)) saturate(140%);
  border: 1px solid var(--fog-border);
  box-shadow: var(--fog-shadow);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .55s var(--ease-out);
}
.why-reason-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 66px -34px rgba(8,14,40,0.45);
}
.why-reason-n {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--accent);
}
html[data-variant="B"] .why-reason-n { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: 0; }
.why-reason-title {
  font-size: 22px; font-weight: 600; color: var(--ink);
  margin: 0; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance;
}
.why-reason-body { font-size: 16px; color: var(--body); line-height: 1.55; margin: 0; }
@media (max-width: 760px) {
  .why-reasons { margin-top: 72px; }
  .why-reasons-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Apply
   ───────────────────────────────────────────────────────────────────────── */
.section-apply {
  background: transparent;
  color: var(--body);
}
.apply-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: 64px; max-width: 720px; }
.apply-sub { font-size: 18px; color: var(--muted); margin: 0; }

.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.apply-col {
  display: flex; flex-direction: column; gap: 24px;
  padding: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: var(--bg-2);
}
.apply-col-head {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--ink);
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.apply-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 24px; padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px; letter-spacing: 0.04em; font-weight: 500;
}

.apply-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.apply-steps li {
  display: flex; align-items: center; gap: 16px;
  font-size: 15.5px; color: var(--body);
}
.apply-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--hairline);
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  color: var(--accent);
}

.btn.btn-gold.btn-lg { margin-top: 8px; align-self: flex-start; }

.contact-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.contact-btn:hover { background: var(--bg-3); border-color: var(--hairline-strong); transform: translateY(-1px); }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-wa .contact-icon { background: rgba(37,211,102,0.16); color: #1FA855; }
html[data-theme="dark"] .contact-wa .contact-icon { background: rgba(37,211,102,0.2); color: #25D366; }
.contact-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.contact-label { font-size: 15px; font-weight: 500; color: var(--ink); }
.contact-sub { font-size: 12.5px; color: var(--muted); font-feature-settings: "tnum" on; }
.contact-arrow { color: var(--muted); }

.apply-info {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px; padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.venue-map { display: block; margin-top: 26px; border: 1px solid var(--hairline-strong); border-radius: 18px; overflow: hidden; background: var(--bg-2); color: var(--ink); text-decoration: none; }
.venue-map-preview { height: 240px; background: #dce6ef; overflow: hidden; }
.venue-map-preview iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.venue-map-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; }
.venue-map-caption strong { display: block; font-size: 15px; margin-bottom: 5px; }
.venue-map-caption > span > span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.venue-map-action { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.venue-map:hover { border-color: var(--accent); }
.venue-map:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 480px) { .venue-map-caption { align-items: flex-start; flex-direction: column; } .venue-map-preview { height: 210px; } }
.info-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--body);
}
.info-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--bg-3);
  color: var(--accent);
}

@media (max-width: 820px) { .apply-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ─────────────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────────────── */
.footer { background: var(--bg); padding-bottom: 56px; }
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.5;
  margin-bottom: 56px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px;
  font-size: 13.5px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--body); transition: color .2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.footer-line { color: var(--muted); font-size: 13px; }
.footer-head { color: var(--muted); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.footer-note { color: var(--gold) !important; }
.footer-rights { margin-top: 16px; color: var(--muted); font-size: 12px; }

@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ─────────────────────────────────────────────────────────────────────────
   Floating Apply pill
   ───────────────────────────────────────────────────────────────────────── */
.float-apply {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 120%);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 16px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-pill);
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.45);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .55s cubic-bezier(.2,.7,0,1), opacity .35s ease, padding .35s ease, background .25s ease;
  opacity: 0;
}
.float-apply.is-shown { transform: translate(-50%, 0); opacity: 1; }
.float-apply:hover { background: var(--primary); }
.float-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.float-arrow { color: var(--gold); transition: transform .25s ease; }
.float-apply:hover .float-arrow { transform: translateX(3px); color: #fff; }
.float-label {
  max-width: 240px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
  transition: max-width .45s ease;
}
.float-apply:not(.is-expanded) .float-label { max-width: 240px; }
html[dir="rtl"] .float-apply:hover .float-arrow { transform: translateX(-3px); }

@media (max-width: 560px) {
  .float-apply { bottom: 16px; padding: 10px 14px; font-size: 13px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Motion variants
   ───────────────────────────────────────────────────────────────────────── */
html[data-motion="standard"] .proj-tile:hover { transform: translateY(-8px); }
html[data-motion="showy"] .proj-tile:hover { transform: translateY(-10px) scale(1.01); box-shadow: 0 18px 40px -16px rgba(10,10,10,0.18); }
html[data-motion="subtle"] .proj-tile:hover { transform: translateY(-3px); }

html[data-motion="subtle"] .eyebrow-dot { animation: none; }

/* ─────────────────────────────────────────────────────────────────────────
   Application questionnaire
   ───────────────────────────────────────────────────────────────────────── */
.application-page-section {
  background: var(--bg-2);
  padding-top: 72px;
  padding-bottom: 120px;
}
.application-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 48px 52px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: 0 24px 60px -34px rgba(15, 31, 67, .28);
}
.application-intro { margin-bottom: 34px; }
.application-intro .h2 { margin: 16px 0 12px; max-width: 600px; }
.application-intro p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 620px; }
.application-error {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(210, 65, 50, .35);
  border-radius: 12px;
  background: rgba(210, 65, 50, .08);
  color: #a12d22;
  font-size: 14px;
}
html[data-theme="dark"] .application-error { color: #ffb0a6; }
.application-form { display: flex; flex-direction: column; gap: 0; }
.application-section {
  min-width: 0;
  margin: 0;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
}
.application-section + .application-section { padding-top: 28px; }
.application-section legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.application-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.application-section-body { padding-top: 28px; display: flex; flex-direction: column; gap: 24px; }
.application-grid { display: grid; gap: 22px 16px; }
.application-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.application-span-two { grid-column: 1 / -1; }
.application-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.application-field > span { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.35; }
.application-field > span b { color: #cf4a3f; font-weight: 600; }
.application-field input,
.application-field select,
.application-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #c9d5e8;
  border-radius: 11px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.application-field input::placeholder,
.application-field textarea::placeholder { color: #8a96a9; }
.application-field input:focus,
.application-field select:focus,
.application-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.application-field input:invalid:not(:placeholder-shown),
.application-field select:invalid { border-color: #cf4a3f; }
.application-field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.application-field select { appearance: auto; cursor: pointer; }
.application-choice-field { gap: 12px; }
.application-choice-row { display: flex; gap: 12px; }
.application-choice {
  min-width: 150px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #c9d5e8;
  border-radius: 11px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.application-choice:hover { border-color: var(--accent); transform: translateY(-1px); }
.application-choice.is-selected { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 8px 20px -12px rgba(22, 48, 110, .7); }
.application-choice-value { display: none !important; }
.application-submit { align-self: stretch; justify-content: center; margin-top: 30px; }
.application-submit:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.application-success { text-align: center; padding-top: 64px; padding-bottom: 68px; }
.application-success .kicker { justify-content: center; }
.application-success .h2 { margin: 20px 0 12px; }
.application-success p { margin: 0 auto 28px; max-width: 480px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.application-success-mark { width: 58px; height: 58px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 30px; box-shadow: 0 14px 28px -16px rgba(37,99,235,.7); }
html[dir="rtl"] .application-field { text-align: right; }
html[dir="rtl"] .application-choice-row { flex-direction: row-reverse; justify-content: flex-end; }

@media (max-width: 680px) {
  .application-page-section { padding-top: 48px; padding-bottom: 76px; }
  .application-shell { width: min(100% - 24px, 560px); padding: 30px 20px 34px; border-radius: 18px; }
  .application-grid-two { grid-template-columns: 1fr; }
  .application-span-two { grid-column: auto; }
  .application-choice-row { flex-direction: column; }
  .application-choice { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Small screens — global tweaks
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero-modules { margin-top: 56px; }
  .hero-video-wrap { margin-top: 56px; }
  .ribbon { margin-top: 56px; }
  .section { padding: calc(var(--section-y) * 0.7) 0; }
  .section-head { margin-bottom: 48px; }
  .mod-list { gap: 48px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   v3 — Multi-page architecture
   ═════════════════════════════════════════════════════════════════════════ */

html, body { scroll-behavior: smooth; }

/* ── Curtain page transition ─────────────────────────────────────────────
   Water-flow effect — a soft-edged circle expands from the click point
   with ripple rings, then drains away on the new page.
   Driven by src/transitions.js (Web Animations API). */
#vt-curtain {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  pointer-events: none;
  overflow: hidden;
}
#vt-curtain.is-active { pointer-events: auto; }

/* The expanding soft-edged circle — the "water" */
.vt-flow {
  position: absolute;
  width: 250vmax;
  height: 250vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform;
  background:
    radial-gradient(circle,
      #0e1530 0%,
      #0c1428 65%,
      rgba(12,20,40,0.92) 82%,
      rgba(12,20,40,0.5) 90%,
      rgba(12,20,40,0.15) 95%,
      transparent 100%
    );
}
/* Light theme — white water */
#vt-curtain[data-theme="light"] .vt-flow {
  background:
    radial-gradient(circle,
      #FFFFFF 0%,
      #F6F9FD 65%,
      rgba(244,247,252,0.92) 82%,
      rgba(244,247,252,0.5) 90%,
      rgba(244,247,252,0.15) 95%,
      transparent 100%
    );
}

/* Ripple rings — expanding concentric borders */
.vt-ripple {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(59,130,246,0.35);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  will-change: transform, opacity;
}
#vt-curtain[data-theme="light"] .vt-ripple {
  border-color: rgba(37,99,235,0.25);
}

/* Light theme inner overrides */
#vt-curtain[data-theme="light"] .vt-curtain-word { color: rgba(42,51,68,0.66); }
#vt-curtain[data-theme="light"] .vt-curtain-mark {
  filter: drop-shadow(0 14px 30px rgba(37,99,235,0.22));
}
#vt-curtain[data-theme="light"] .vt-curtain-bar { background: rgba(37,99,235,0.16); }

/* Grid texture overlay on the flow */
.vt-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(96,165,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, #000 50%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 80%);
  pointer-events: none;
}
#vt-curtain[data-theme="light"] .vt-flow::after {
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
}

.vt-curtain-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  opacity: 0;
  will-change: transform, opacity;
}
.vt-curtain-mark {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 14px 36px rgba(37,99,235,0.45));
}
.vt-curtain-word {
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(219,234,254,0.72);
  padding-left: 0.42em;
}
.vt-curtain-bar {
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: rgba(96,165,250,0.28);
  overflow: hidden;
}
.vt-curtain-bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent-2, #3B82F6);
  transform: translateX(-120%);
}

@media (max-width: 560px) { .vt-curtain-mark { width: 76px; } }

/* Page mount fade-in — removed (caused stuck animation in some load contexts) */
.page { opacity: 1; }

/* Page hero block (shared across non-home pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 88px) 0 88px;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(37,99,235,0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(30,64,175,0.05), transparent 60%);
}
.page-hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(10,14,26,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,14,26,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 30%, #000 30%, transparent 80%);
}
.page-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr; gap: 80px;
  align-items: end;
}
.page-num {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--accent);
  font-feature-settings: "tnum" on;
  padding: 6px 12px;
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--r-pill);
  align-self: flex-start;
  display: inline-block;
}
.page-h1 {
  font-family: var(--sans);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 16px 0 0;
}
html[data-variant="B"] .page-h1 { font-weight: 500; }
.page-h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.page-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.page-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.page-intro {
  max-width: 540px;
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  margin: 28px 0 0;
}

@media (max-width: 820px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: calc(var(--nav-h) + 56px) 0 56px; }
}

/* Page nav — prev/next at bottom of every page */
.pagenav {
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
.tool-brand-image { display: block; object-fit: contain; flex-shrink: 0; }
html[data-theme="dark"] .tool-brand-image.is-mono { filter: brightness(0) invert(1); }
/* Keep physical navigation positions consistent in both languages. */
.pagenav-grid { direction: ltr; }
html[dir="rtl"] .pagenav-card { direction: rtl; }
html[dir="rtl"] .pagenav-card.prev { grid-column: 1; }
html[dir="rtl"] .pagenav-card.next { grid-column: 2; }
html[dir="rtl"] .pagenav-card.prev:hover .pn-arrow { transform: translateX(-2px); }
html[dir="rtl"] .pagenav-card.next:hover .pn-arrow { transform: translateX(2px); }
@media (max-width: 720px) {
  html[dir="rtl"] .pagenav-card.next { grid-column: 1; }
}
.pagenav-grid {
  padding: 56px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.pagenav-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: var(--bg);
  transition: border-color .3s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.pagenav-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -22px rgba(10,14,26,0.18);
}
.pagenav-card.is-disabled { opacity: 0.4; pointer-events: none; }
.pagenav-card.next  { text-align: right; align-items: flex-end; }
html[dir="rtl"] .pagenav-card.next { text-align: left; align-items: flex-start; }
.pagenav-eyebrow {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.pagenav-card.next .pagenav-eyebrow { flex-direction: row-reverse; }
.pagenav-title {
  font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 14px;
}
.pagenav-card.next .pagenav-title { flex-direction: row-reverse; }
.pagenav-card .pn-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); color: var(--ink);
  transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
  font-size: 13px;
}
.pagenav-card:hover .pn-arrow { background: var(--ink); color: #fff; transform: translateX(2px); }
.pagenav-card.prev:hover .pn-arrow { transform: translateX(-2px); }
.pagenav-card.next:hover .pn-arrow { transform: translateX(2px); }
.pagenav-num { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }

@media (max-width: 720px) { .pagenav-grid { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; } }

/* ─── 3D tilt utility ─────────────────────────────────────────────────── */
.tilt {
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: transform;
}
.tilt > * { transform-style: preserve-3d; }
.tilt-content { transform: translateZ(40px); }
.tilt-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 35%);
  opacity: 0; transition: opacity .35s var(--ease-out);
  mix-blend-mode: overlay;
}
.tilt.is-hot .tilt-shine { opacity: 1; }
html[data-motion="subtle"] .tilt:not(.is-hot) { transform: none !important; }

/* ─── Home hero rebuilt with 3D card stack ───────────────────────────── */
.hero-stage {
  position: relative;
  margin-top: 72px;
  height: clamp(460px, 60vh, 680px);
  perspective: 1400px;
  perspective-origin: 50% 50%;
  pointer-events: none;
}
.hero-stage-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s var(--ease-out);
}
.stage-card {
  position: absolute;
  width: clamp(310px, 34vw, 420px);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px -30px rgba(10,14,26,0.35), 0 6px 24px -16px rgba(10,14,26,0.15);
  padding: 22px 22px 20px;
  pointer-events: auto;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out), box-shadow .35s var(--ease-out);
}
.stage-card.sc-video {
  width: clamp(440px, 52vw, 660px);
  padding: 0;
  overflow: hidden;
}
.stage-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stage-card-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 500;
}
.stage-card-dur {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  padding: 3px 8px; border: 1px solid var(--hairline); border-radius: var(--r-pill);
}
.stage-card-title {
  margin-top: 12px; font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.015em; line-height: 1.2;
}
.stage-card-foot {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.4;
}
.stage-card-arrow { color: var(--accent); }

.stage-card.sc-l {  /* left module card */
  transform: translateX(-66%) translateZ(-120px) rotateY(18deg) rotateZ(-3deg);
}
.stage-card.sc-r {
  transform: translateX(66%)  translateZ(-120px) rotateY(-18deg) rotateZ(3deg);
}
.stage-card.sc-video {
  transform: translateZ(0) rotateY(0deg);
  z-index: 3;
}
.stage-card.sc-l, .stage-card.sc-r { z-index: 1; }
.stage-glow {
  position: absolute; left: 50%; bottom: -10%;
  width: 70%; height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(37,99,235,0.22), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 820px) {
  .hero-stage { height: auto; perspective: none; }
  .hero-stage-inner { position: relative; flex-direction: column; gap: 16px; }
  .stage-card { position: relative; transform: none !important; width: min(480px, 92%); }
  .stage-card.sc-video { width: min(660px, 100%); aspect-ratio: 16/9; }
}

/* Home hero adjustments — drop the old floating modules + ribbon spacing */
.section-modules .mod-card .mod-media { perspective: 1200px; }
.section-modules .mod-card .video-frame {
  transform: rotateY(-2deg);
  transition: transform .6s var(--ease-out);
}
.section-modules .mod-card:hover .video-frame { transform: rotateY(0deg); }
.mod-card.is-flipped .video-frame { transform: rotateY(2deg); }
.mod-card.is-flipped:hover .video-frame { transform: rotateY(0); }

/* Project tilt — let the tilt apply on the tile itself */
.proj-tile { perspective: 1000px; }
.proj-tile-inner {
  display: contents; /* fall through — actual tilt class on .proj-tile if wrapped */
}

/* ─── Why-page 3D wordmark cube ──────────────────────────────────────── */
.brand-cube-wrap {
  position: relative;
  perspective: 1400px;
  display: flex; align-items: center; justify-content: center;
  height: clamp(300px, 44vh, 460px);
  transform-style: preserve-3d;
  cursor: grab;
}
.brand-cube {
  position: relative;
  width: clamp(180px, 24vw, 270px);
  height: clamp(180px, 24vw, 270px);
  --cs: clamp(90px, 12vw, 135px);
  transform-style: preserve-3d;
  transition: transform .06s linear;
}
.cube-face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1.5px solid var(--hairline);
  border-radius: 22px;
  font-family: var(--sans);
  font-size: clamp(72px, 9vw, 120px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  backface-visibility: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.5),
    0 0 80px -10px rgba(37,99,235,0.18);
}
.cube-face em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.cube-face.front  { transform: translateZ(calc(var(--cs, 100px))); }
.cube-face.back   { transform: rotateY(180deg) translateZ(calc(var(--cs, 100px))); }
.cube-face.right  { transform: rotateY(90deg)  translateZ(calc(var(--cs, 100px))); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(calc(var(--cs, 100px))); }
.cube-face.top    { transform: rotateX(90deg)  translateZ(calc(var(--cs, 100px))); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(calc(var(--cs, 100px))); }
@keyframes cube-spin {
  0%   { transform: rotateX(-18deg) rotateY(0deg);   }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}
html[data-motion="subtle"] .brand-cube { animation-duration: 36s; }
html[data-motion="showy"]  .brand-cube { animation-duration: 14s; }
html.no-anim .brand-cube { animation: none; }
@media (prefers-reduced-motion: reduce) { .brand-cube { animation: none; } }

.brand-cube-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(37,99,235,0.18), transparent 60%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

/* ─── Active nav link state ─────────────────────────────────────────── */
.nav-links a.is-active { opacity: 1; color: var(--ink); font-weight: 500; }
.nav-links a.is-active::after {
  content: ""; display: block;
  width: 16px; height: 1px;
  background: var(--accent);
  margin: 5px auto 0;
}

/* ─── Tilt-active styles ────────────────────────────────────────────── */
.mod-card { perspective: 1200px; }
.mod-card .mod-media { transform-style: preserve-3d; }

/* ─── Refined details — buttons & links ─────────────────────────────── */
.btn { transition: transform .35s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.btn-primary { background: var(--ink); }
.btn-primary:hover { background: var(--primary); }
.contact-btn { transition: background .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out); }

/* ─── Apply section ─────────────────────────────────────────────────── */
.section-apply { background: transparent; color: var(--body); position: relative; overflow: visible; }
.section-apply::before { display: none; }
.section-apply > .container { position: relative; z-index: 1; }

/* ─── Hero — small adjustments for new hero stage ───────────────────── */
.hero { padding-bottom: 56px; }
.hero-inner .hero-video-wrap { display: none; }  /* video moves into the 3D stage */
.hero-inner .hero-modules { display: none; }

/* ─── Smoother global feel ──────────────────────────────────────────── */
.proj-tile, .mod-card, .gain-card, .pagenav-card, .stage-card, .btn, .contact-btn, .nav, .nav-links a, .ribbon-item {
  transition-timing-function: var(--ease-out);
}

/* ─── Modules-page — denser hero, bigger module cards ───────────────── */
.section-modules.is-page-section { padding-top: 56px; }
.section.is-page-section { padding-top: 56px; }

/* ─── Projects-page — bring achievements & projects together ────────── */
.section-ach.is-page-section { padding-top: 56px; padding-bottom: 0; }
.section-projects.is-page-section { padding-top: 56px; }

/* ─── Apply-page — bigger ────────────────────────────────────────────── */
.section-apply.is-page-section { padding-top: 96px; }

/* ═════════════════════════════════════════════════════════════════════════
   v4 — Home upgrades: progress bar, cursor blob, hero atmosphere,
   new sections (How / Tools deep / Voices / Schedule / FAQ / Final CTA)
   ═════════════════════════════════════════════════════════════════════════ */

/* ─── Scroll progress bar ─────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 101;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .08s linear;
}

/* ─── Custom cursor blob (desktop only) ───────────────────────────────── */
.cursor-blob {
  position: fixed; left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, rgba(37,99,235,0) 70%);
  pointer-events: none;
  z-index: 99;
  mix-blend-mode: multiply;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), opacity .25s var(--ease-out);
}
.cursor-blob.is-hot { width: 72px; height: 72px; opacity: 0.85; }
@media (hover: none) { .cursor-blob { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-blob { display: none; } }

/* ─── Hero — atmospheric background ───────────────────────────────────── */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(to right,  rgba(10,14,26,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,14,26,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 80%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.hero-orb-1 {
  top: -10%; left: -8%;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(37,99,235,0.32) 0%, transparent 60%);
  animation: orb-drift-1 22s var(--ease-in-out) infinite;
}
.hero-orb-2 {
  top: 18%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,64,175,0.22) 0%, transparent 60%);
  animation: orb-drift-2 28s var(--ease-in-out) infinite;
}
@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-80px, 60px) scale(0.95); }
}
.hero-noise {
  position: absolute; inset: 0;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html.no-anim .hero-orb { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }

/* ─── Headline letter stagger — opacity reveal only (transform skipped for stability) ─ */
.h1-staggered { display: inline-block; }
.h1-staggered .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  will-change: opacity, transform;
}
.h1-staggered .ltr-space { width: 0.32em; }
.h1-staggered.is-in .ltr { opacity: 1; transform: none; }
/* Static fallback: if reveal never fires (hidden doc, no IO) letters still show */
@media (prefers-reduced-motion: reduce) {
  .h1-staggered .ltr { opacity: 1 !important; transform: none !important; transition: none !important; }
}
html.no-anim .h1-staggered .ltr { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ─── Rotating phrase ─────────────────────────────────────────────────── */
.rotating-phrase {
  display: inline-flex;
  align-items: baseline;
  position: relative;
  padding-bottom: 2px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.rotating-phrase-stack {
  display: inline-block;
  animation: phrase-cycle .55s var(--ease-out) both;
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: italic;
  font-family: var(--serif);
  padding-right: 2px;
}
.rotating-phrase-line {
  position: absolute; left: 0; right: 4px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.6;
}
@keyframes phrase-cycle {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
html.no-anim .rotating-phrase-stack { animation: none; }

.hero-sub {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; align-items: baseline;
}
html[data-variant="B"] .hero-inner .hero-sub { justify-content: flex-start; }

/* ─── Hero scroll hint ─────────────────────────────────────────────────── */
.hero-scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 64px;
  opacity: 0.5;
}
.hero-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, transparent 0%, var(--ink) 100%);
  animation: scroll-pulse 2.2s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}
.hero-scroll-label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
html.no-anim .hero-scroll-line { animation: none; }

/* ─── Section intro paragraph (under section titles) ───────────────────── */
.section-intro {
  font-size: 18px; color: var(--body); line-height: 1.55;
  max-width: 560px; margin: 16px 0 0;
}

/* ─── How it works — scroll-driven timeline ────────────────────────────── */
.section-how { background: var(--bg); position: relative; }
.section-how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(37,99,235,0.04), transparent 60%);
}
.how-stage {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  max-width: 880px; margin: 0 auto;
}
.how-rail {
  position: absolute;
  left: 24px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: var(--hairline);
  overflow: hidden;
  border-radius: 2px;
}
.how-rail-fill {
  position: absolute; left: 0; top: 0; right: 0;
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
  transition: height .2s linear;
}
html[dir="rtl"] .how-rail { left: auto; right: 24px; }
.how-beats {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 64px;
  padding-left: 0;
}
.how-beat {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  align-items: start;
  padding-left: 0;
}
html[dir="rtl"] .how-beat { grid-template-columns: 1fr 56px; }
.how-beat-node {
  position: relative;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.how-beat-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--hairline-strong);
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
  z-index: 2;
}
.how-beat-ring {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  opacity: 0;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), border-color .4s var(--ease-out);
  z-index: 1;
}
.how-beat.is-active .how-beat-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(37,99,235,0.18);
}
.how-beat.is-active .how-beat-ring {
  opacity: 1;
  border-color: var(--accent);
  transform: scale(1.05);
}
.how-beat-body { padding: 4px 0 8px; }
.how-beat-num {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--accent);
  font-feature-settings: "tnum" on;
}
.how-beat-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.how-beat-body-text {
  font-size: 16px; line-height: 1.55; color: var(--body); margin: 0;
  max-width: 480px;
}

/* ─── Tools deep — categorized 2x2 grid ────────────────────────────────── */
.section-tools-deep { background: var(--bg-2); }
.td-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (max-width: 720px) { .td-grid { grid-template-columns: 1fr; } }
.td-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 28px;
  overflow: hidden;
  perspective: 1200px;
  box-shadow: var(--sh-card);
  transition: transform .6s var(--ease-out), box-shadow .35s var(--ease-out), opacity .55s var(--ease-out);
}
.td-card-content { display: flex; flex-direction: column; gap: 20px; }
.td-card-head {
  display: inline-flex; align-items: baseline; gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.td-card-n {
  font-family: var(--mono);
  font-size: 12px; color: var(--accent); letter-spacing: 0.1em;
  font-feature-settings: "tnum" on;
}
.td-card-name {
  font-size: 22px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em;
}
.td-card-tools {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.td-tool {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  cursor: default;
}
.td-tool:hover {
  transform: translateY(-2px);
  border-color: var(--brand, var(--hairline-strong));
  box-shadow: 0 8px 20px -12px rgba(10,14,26,0.18);
}
.td-tool-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  flex-shrink: 0;
}
.td-tool-logo svg { width: 22px; height: 22px; min-width: 22px; flex-shrink: 0; }
.td-tool-name { font-size: 14px; font-weight: 500; color: var(--ink); }

/* ─── Voices carousel ──────────────────────────────────────────────────── */
.section-voices { background: var(--bg-dark); color: rgba(243,246,251,0.85); position: relative; overflow: hidden; }
.section-voices::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 20% 20%, rgba(37,99,235,0.18), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(30,64,175,0.12), transparent 60%);
}
.section-voices .container { position: relative; z-index: 1; }
.section-voices .kicker { color: rgba(243,246,251,0.55); }
.section-voices .kicker-line { background: rgba(243,246,251,0.3); }

.voices-stage {
  display: grid; grid-template-columns: 48px 1fr 48px; gap: 24px;
  align-items: center;
  max-width: 880px; margin: 0 auto;
}
@media (max-width: 720px) {
  .voices-stage { grid-template-columns: 1fr; gap: 16px; }
}
.voices-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.voices-arrow:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.08);
}
@media (max-width: 720px) { .voices-arrow { display: none; } }

.voices-quote-wrap {
  position: relative;
  padding: 12px 8px;
  text-align: center;
}
.voices-quote-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 100px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  position: absolute;
  top: -40px; left: -12px;
  pointer-events: none;
}
html[dir="rtl"] .voices-quote-mark { left: auto; right: -12px; transform: scaleX(-1); }
.voices-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-style: italic;
  font-weight: 400;
  color: #F3F6FB;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
  animation: voice-in .6s var(--ease-out) both;
}
@keyframes voice-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
html[dir="rtl"] .voices-quote { font-family: var(--arabic); font-style: normal; }
.voices-meta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px;
}
.voices-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em;
}
.voices-name { font-size: 15px; font-weight: 600; color: #F3F6FB; }
.voices-role { font-size: 12.5px; color: rgba(243,246,251,0.55); margin-top: 2px; }
.voices-dots {
  display: inline-flex; gap: 8px;
  margin-top: 24px; justify-content: center;
}
.voices-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 0; padding: 0;
  cursor: pointer;
  transition: background .25s var(--ease-out), width .25s var(--ease-out);
}
.voices-dot.is-active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ─── Schedule strip ──────────────────────────────────────────────────── */
.section-schedule { background: var(--bg); }
.sched-strip {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .sched-strip { grid-template-columns: repeat(4, 1fr); }
}
.sched-day {
  padding: 24px 18px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out), opacity .4s var(--ease-out);
}
.sched-day:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); }
.sched-day-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sched-day-full {
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em;
}
.sched-day-label {
  margin-top: 8px;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.sched-day.kind-workshop {
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
  border-color: var(--accent);
}
.sched-day.kind-workshop .sched-day-letter { color: var(--accent); }
.sched-day.kind-workshop .sched-day-label  { color: var(--primary); }
.sched-day.kind-build {
  background: var(--ink);
  border-color: var(--ink);
}
.sched-day.kind-build .sched-day-letter,
.sched-day.kind-build .sched-day-full,
.sched-day.kind-build .sched-day-label { color: #fff; }
.sched-day.kind-build .sched-day-full { color: rgba(255,255,255,0.5); }
.sched-day.kind-ship {
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
  border-color: var(--accent);
}
.sched-day.kind-ship .sched-day-letter { color: var(--accent); }
.sched-day.kind-ship .sched-day-label  { color: var(--primary); }
.sched-day.kind-off { background: var(--bg-2); }
.sched-day.kind-off .sched-day-letter { color: var(--muted); opacity: 0.6; }
.sched-day.kind-off .sched-day-label  { color: var(--muted); }

.sched-foot {
  display: inline-flex; align-items: center; gap: 24px;
  margin-top: 36px;
  padding: 16px 24px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink);
}
.sched-foot-label {
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-right: 8px;
}
html[dir="rtl"] .sched-foot-label { margin-right: 0; margin-left: 8px; }
.sched-foot-sep { width: 1px; height: 18px; background: var(--hairline); }

/* ─── FAQ ──────────────────────────────────────────────────────────────── */
.section-faq { background: var(--bg-2); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.faq-item.is-open { border-color: var(--accent); box-shadow: 0 14px 32px -22px rgba(37,99,235,0.3); }
.faq-q {
  display: grid; grid-template-columns: 48px 1fr 32px;
  align-items: center; gap: 16px;
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
  background: transparent; border: 0;
  transition: background .25s var(--ease-out);
}
html[dir="rtl"] .faq-q { text-align: right; }
.faq-q:hover { background: var(--bg-2); }
.faq-n {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent);
  font-feature-settings: "tnum" on;
}
.faq-q-text {
  font-size: 17px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq-chev {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-size: 20px; font-weight: 300;
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.faq-item.is-open .faq-chev { background: var(--accent); color: #fff; }
.faq-a-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease-out);
}
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-wrap > * { overflow: hidden; }
.faq-a {
  margin: 0; padding: 0 24px 22px 88px;
  font-size: 15.5px; line-height: 1.6; color: var(--body);
}
html[dir="rtl"] .faq-a { padding: 0 88px 22px 24px; }

/* ─── Final CTA ───────────────────────────────────────────────────────── */
.section-final-cta { background: var(--bg); padding-bottom: 120px; }
.final-cta {
  position: relative;
  padding: 80px 56px;
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  overflow: hidden;
  text-align: center;
}
.final-cta-glow {
  position: absolute; inset: -40%; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 30% 30%, rgba(37,99,235,0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(30,64,175,0.25), transparent 60%);
  filter: blur(20px);
  animation: cta-glow 14s var(--ease-in-out) infinite;
}
@keyframes cta-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(8%, -4%) scale(1.05); }
}
.final-cta-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
}
.final-cta > *:not(.final-cta-glow):not(.final-cta-grid) { position: relative; z-index: 1; }
.final-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(37,99,235,0.18);
  border: 1px solid rgba(37,99,235,0.4);
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #B6CDFB;
}
.final-cta-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6FA0FF;
  box-shadow: 0 0 0 4px rgba(111,160,255,0.25);
  animation: pulse 2s ease-in-out infinite;
}
.final-cta-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 24px 0 16px;
  text-wrap: balance;
}
.final-cta-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: #B6CDFB;
}
.final-cta-sub {
  font-size: 17px;
  color: rgba(243,246,251,0.65);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto 32px;
}
.final-cta-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.final-cta .btn-primary { background: var(--accent); color: #fff; }
.final-cta .btn-primary:hover { background: #fff; color: var(--ink); }
.final-cta .btn-primary:hover .btn-arrow { color: var(--accent); }
.final-cta .btn-ghost { border-color: rgba(255,255,255,0.2); color: #fff; }
.final-cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

@media (max-width: 720px) { .final-cta { padding: 56px 24px; } }

/* ─── Section head accent — small adjustments for the home flow ────────── */
.section .section-head { gap: 12px; }
  position: fixed; left: 20px; bottom: 16px; z-index: 80;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
html[dir="rtl"] .page-stamp { left: auto; right: 20px; }
@media (max-width: 720px) { .page-stamp { display: none; } }

/* ─────────────────────────────────────────────────────────────────────────
   Aurora background — faithful port of the Tabler / Aceternity aurora.
   Single fixed-position element. The trick: the parent has the static
   aurora as background-image with `filter: blur invert`, and its ::after
   pseudo holds the ANIMATED layer with mix-blend-difference. Because
   blending happens INSIDE the parent's stacking context, the difference
   blends ::after against ::before (NOT against the page), so the colours
   don't contaminate the rest of the site.
   ───────────────────────────────────────────────────────────────────────── */
.aurora-bg {
  --white-gradient: repeating-linear-gradient(
    100deg,
    #ffffff 0%, #ffffff 7%,
    transparent 10%, transparent 12%,
    #ffffff 16%
  );
  --dark-gradient: repeating-linear-gradient(
    100deg,
    #000000 0%, #000000 7%,
    transparent 10%, transparent 12%,
    #000000 16%
  );
  --aurora: repeating-linear-gradient(
    100deg,
    #2563EB 10%,
    #3B82F6 15%,
    #60A5FA 20%,
    #3B82F6 25%,
    #2563EB 30%
  );

  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;

  background-image: var(--white-gradient), var(--aurora);
  background-size: 300% auto, 200% auto;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px) invert(1);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
  will-change: transform;
}
.aurora-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--white-gradient), var(--aurora);
  background-size: 200% auto, 100% auto;
  background-position: 50% 50%, 50% 50%;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite;
  pointer-events: none;
}

/* Dark variant — drop the invert AND the difference blend.
   mix-blend-difference + dark stripes creates rainbow fringe artifacts
   at the edges. Plain overlay is cleaner and matches the reference. */
.aurora-bg.is-dark {
  background-image: var(--dark-gradient), var(--aurora);
  filter: blur(10px);
}
.aurora-bg.is-dark::after {
  background-image: var(--dark-gradient), var(--aurora);
  mix-blend-mode: normal;
  opacity: 0.6;
}

/* Local (non-fixed) instance for use INSIDE a dark section */
.aurora-local {
  position: absolute;
  inset: 0;
  z-index: 0;
}

@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

/* Stacking — keep interactive content above the aurora.
   IMPORTANT: do NOT change position on elements that are already fixed
   (.nav, .float-apply, .cursor-blob, .scroll-progress). Forcing them to
   position: relative breaks their layout and causes hover-jitter. */
.app, main, .footer, .pagenav, .tweaks-panel {
  position: relative; z-index: 1;
}
.nav { z-index: 100; }
.scroll-progress { z-index: 101; }
.cursor-blob { z-index: 99; }
.float-apply { z-index: 90; }

@media (prefers-reduced-motion: reduce) {
  .aurora-bg::after { animation: none; }
}
html.no-anim .aurora-bg::after { animation: none; }

/* ─────────────────────────────────────────────────────────────────────────
   Home "About / Who we are" section
   ───────────────────────────────────────────────────────────────────────── */
.section-about { background: var(--bg); padding: 96px 0; position: relative; }
.section-about::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 30% at 50% 0%, rgba(37,99,235,0.04), transparent 60%);
}
.section-about .container { position: relative; z-index: 1; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-meta { display: flex; flex-direction: column; gap: 20px; }
.about-meta .h2 { margin: 4px 0 0; }
.about-intro {
  font-size: 18px;
  color: var(--body);
  line-height: 1.55;
  margin: 6px 0 0;
  max-width: 480px;
}
.about-cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.about-pillars {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}

/* Skills checklist + tools row (home about side column) */
.about-side { display: flex; flex-direction: column; gap: 32px; }
.about-side-label {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.about-side-label::before {
  content: ""; display: inline-block; width: 24px; height: 1px;
  background: currentColor; opacity: 0.6;
}
.about-skill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.about-skill {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start;
  font-size: 16.5px; color: var(--ink); line-height: 1.4;
}
.about-skill-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-top: 1px;
}
.about-tool-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.about-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), color .3s var(--ease-out), background .3s var(--ease-out);
}
.about-tool:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 10px 24px -14px rgba(37,99,235,0.4);
}
.about-tool.is-active {
  border-color: var(--brand, var(--accent));
  color: var(--brand, var(--accent));
  background: var(--bg-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, var(--accent)) 18%, transparent);
  transform: translateY(-2px);
}
.about-tools-hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  opacity: 0.8;
  margin-left: 6px;
}
html[dir="rtl"] .about-tools-hint { margin-left: 0; margin-right: 6px; }

/* Expanding tool detail */
.tool-detail {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows .45s var(--ease-out), margin-top .45s var(--ease-out), opacity .35s var(--ease-out);
  opacity: 0;
}
.tool-detail.is-open {
  grid-template-rows: 1fr;
  margin-top: 16px;
  opacity: 1;
}
.tool-detail-inner {
  overflow: hidden;
  min-height: 0;
}
.tool-detail.is-open .tool-detail-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.tool-detail-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--brand, var(--ink));
  flex-shrink: 0;
}
.tool-detail-text { display: flex; flex-direction: column; gap: 6px; }
.tool-detail-head { display: inline-flex; align-items: baseline; gap: 12px; }
.tool-detail-name { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tool-detail-cat {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--accent-soft);
}
.tool-detail-desc { font-size: 14.5px; line-height: 1.55; color: var(--body); margin: 0; }
.about-pillar {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.about-pillar:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: 0 16px 36px -22px rgba(10,14,26,0.16);
}
.about-pillar::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
html[dir="rtl"] .about-pillar::before { left: auto; right: 0; }
.about-pillar:hover::before { opacity: 1; }
.about-pillar-n {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--accent);
  font-feature-settings: "tnum" on;
  padding-top: 4px;
}
.about-pillar-title {
  font-size: 18px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.about-pillar-body {
  font-size: 14.5px; line-height: 1.55; color: var(--body); margin: 0;
}

/* ═════════════════════════════════════════════════════════════════════════
   FOG / GLASS LAYER
   Goal: the moving aurora is visible through EVERY section, and content sits
   on a frosted "foggy" panel — translucent + backdrop-blur — so you can still
   see the background drifting behind it.
   ───────────────────────────────────────────────────────────────────────── */

/* Tunable fog tokens (light defaults) */
:root {
  --fog:          rgba(255,255,255,0.55);
  --fog-strong:   rgba(255,255,255,0.72);
  --fog-border:   rgba(255,255,255,0.65);
  --fog-blur:     16px;
  --fog-shadow:   0 24px 60px -32px rgba(10,14,26,0.30);
}
html[data-theme="dark"] {
  --fog:          rgba(11,17,37,0.46);
  --fog-strong:   rgba(13,20,44,0.66);
  --fog-border:   rgba(255,255,255,0.12);
  --fog-shadow:   0 28px 70px -34px rgba(0,0,0,0.65);
}

/* 1 ── Spread the aurora wider so movement reads in every section, not just
        the top-right corner. (Fixed element → relative to the viewport, so it
        stays present at every scroll position.) */
.aurora-bg,
html[data-theme="dark"] .aurora-bg:not(.is-dark) {
  -webkit-mask-image: radial-gradient(145% 105% at 72% -8%, #000 32%, transparent 80%);
          mask-image: radial-gradient(145% 105% at 72% -8%, #000 32%, transparent 80%);
}

/* 2 ── Make all section wrappers transparent so the aurora shows through.
        (.section-apply is already transparent.) */
.section-modules,
.section-gains,
.section-ach,
.section-projects,
.section-why,
.section-how,
.section-tools-deep,
.section-schedule,
.section-faq,
.section-final-cta,
.section-about,
.pagenav,
.footer {
  background: transparent !important;
}

/* Soften the faint section veils so they don't mask the drift */
.section-how::before,
.section-about::before { opacity: 0.4 !important; }

/* 3 ── Frost the content panels — translucent fog + backdrop blur.
        backdrop-filter samples everything painted behind (incl. the fixed
        aurora), so the background stays visible but soft. */
.apply-col,
.pagenav-card,
.contact-btn,
.mod-card,
.gains-feat,
.gain-card,
.td-card,
.td-tool,
.faq-item,
.about-pillar,
.stage-card,
.sched-day,
.voice-card {
  background: var(--fog) !important;
  -webkit-backdrop-filter: blur(var(--fog-blur)) saturate(140%);
          backdrop-filter: blur(var(--fog-blur)) saturate(140%);
  border-color: var(--fog-border) !important;
  box-shadow: var(--fog-shadow);
}

/* Hover keeps the glass but lifts it a touch */
.contact-btn:hover,
.pagenav-card:hover,
.about-pillar:hover,
.td-card:hover,
.mod-card:hover {
  background: var(--fog-strong) !important;
}

/* Inner chips that previously matched the now-transparent section bg need a
   readable surface again */
.apply-step-num,
.contact-icon,
.faq-toggle { background: var(--fog-strong) !important; }

@media (prefers-reduced-motion: reduce) {
  /* nothing motion-specific here; aurora animation already gated elsewhere */
}

/* ═════════════════════════════════════════════════════════════════════════
   NEW SECTIONS — Cohort banner · Three Pillars · Eligibility ·
   Testimonials · Team · Student Showcase.
   All frosted-glass + aurora-aware + RTL-mirrored + theme-aware.
   ───────────────────────────────────────────────────────────────────────── */

/* Shared frosted card base */
.pillar-card,
.tml-card,
.team-card,
.sc-card,
.elig-checklist,
.cohort-bar {
  background: var(--fog);
  -webkit-backdrop-filter: blur(var(--fog-blur)) saturate(140%);
          backdrop-filter: blur(var(--fog-blur)) saturate(140%);
  border: 1px solid var(--fog-border);
  box-shadow: var(--fog-shadow);
}

/* ── 1. Cohort 04 urgency banner ─────────────────────────────────────── */
.cohort-banner { padding: 8px 0 4px; position: relative; }
.cohort-bar {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: nowrap;
  padding: 14px 18px;
  border-radius: var(--r-pill);
}
.cohort-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  padding-inline-end: 18px;
  border-inline-end: 1px solid var(--hairline);
  white-space: nowrap;
}
.cohort-tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.cohort-stats {
  display: flex; align-items: center; gap: 28px;
  flex: 1 1 auto; flex-wrap: wrap;
}
.cohort-stat { display: inline-flex; flex-direction: column; gap: 2px; }
.cohort-stat-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.cohort-stat-value {
  font-size: 15px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: -0.01em;
}
.cohort-stat.is-pulse .cohort-stat-value { color: var(--accent); }
.cohort-pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); position: relative; flex: none;
}
.cohort-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent);
  animation: cohort-ping 1.8s var(--ease-out) infinite;
}
@keyframes cohort-ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.cohort-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  white-space: nowrap;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.cohort-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-1px); }
.cohort-cta-arrow { transition: transform .3s var(--ease-out); }
.cohort-cta:hover .cohort-cta-arrow { transform: translateX(3px); }
html[dir="rtl"] .cohort-cta:hover .cohort-cta-arrow { transform: translateX(-3px) scaleX(-1); }
html[dir="rtl"] .cohort-cta-arrow { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .cohort-pulse::after { animation: none; } }
@media (max-width: 720px) {
  .cohort-bar { border-radius: var(--r-lg); gap: 16px; flex-wrap: wrap; }
  .cohort-tag { border-inline-end: none; padding-inline-end: 0; }
  .cohort-cta { width: 100%; justify-content: center; }
}

/* ── 2. Three Pillars ────────────────────────────────────────────────── */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pillar-card {
  position: relative; border-radius: var(--r-xl);
  padding: 34px 30px 32px; overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .5s var(--ease-out);
}
.pillar-card:hover { border-color: var(--accent-soft); }
.pillar-card.is-hot { box-shadow: 0 30px 70px -36px rgba(37,99,235,0.4); }
.pillar-content { position: relative; z-index: 1; }
.pillar-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  font-family: var(--mono); font-size: 17px; font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--fog-border);
  margin-bottom: 22px;
}
html[data-theme="dark"] .pillar-glyph { background: rgba(37,99,235,0.16); }
.pillar-title {
  font-size: 21px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.2;
}
.pillar-body {
  font-size: 15px; line-height: 1.6; color: var(--body); margin: 0;
  text-wrap: pretty;
}
.pillar-shine { border-radius: var(--r-xl); }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ── What we need from you — compact block (apply page) ──────────────── */
.section-need { padding: 8px 0 0; position: relative; }
.need-card {
  max-width: 920px; margin: 0 auto;
  padding: 38px 40px 34px;
  border-radius: var(--r-xl);
  background: var(--fog);
  -webkit-backdrop-filter: blur(var(--fog-blur)) saturate(140%);
          backdrop-filter: blur(var(--fog-blur)) saturate(140%);
  border: 1px solid var(--fog-border);
  box-shadow: var(--fog-shadow);
}
.need-head { margin-bottom: 26px; }
.need-title {
  font-size: 28px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.025em; line-height: 1.15;
  margin: 14px 0 8px;
}
.need-intro { font-size: 16px; line-height: 1.5; color: var(--body); margin: 0; }
.need-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.need-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15.5px; font-weight: 500; color: var(--ink); line-height: 1.35;
}
.need-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--accent);
  box-shadow: 0 3px 9px -3px rgba(37,99,235,0.6);
}
.need-item-text { text-wrap: pretty; }
.need-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.need-note-mark { color: var(--accent); flex: none; }
@media (max-width: 720px) {
  .need-card { padding: 30px 24px; }
  .need-list { grid-template-columns: 1fr; }
}

/* ── 4. Testimonials ─────────────────────────────────────────────────── */
.tmls-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tml-card {
  position: relative; border-radius: var(--r-xl);
  padding: 30px 28px 26px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .5s var(--ease-out);
}
.tml-card:hover { transform: translateY(-4px); border-color: var(--accent-soft); box-shadow: 0 32px 64px -34px rgba(37,99,235,0.32); }
.tml-mark {
  font-family: var(--serif); font-size: 60px; line-height: 0.6;
  color: var(--accent); opacity: 0.36; height: 28px;
}
.tml-quote {
  font-size: 16.5px; line-height: 1.58; color: var(--ink);
  margin: 14px 0 24px; flex: 1 1 auto;
  letter-spacing: -0.01em; text-wrap: pretty;
}
html[dir="rtl"] .tml-quote { font-family: var(--arabic); }
.tml-foot {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px; border-top: 1px solid var(--hairline);
}
.tml-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 6px 16px -6px rgba(30,64,175,0.6);
}
.tml-id { display: inline-flex; flex-direction: column; gap: 3px; min-width: 0; }
.tml-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.tml-cohort { color: var(--muted); font-weight: 500; }
.tml-built {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.01em;
  color: var(--accent);
}
@media (max-width: 900px) { .tmls-grid { grid-template-columns: 1fr; } }

/* ── 5. Meet the team — stacked card deck ────────────────────────────── */
.team-deck {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 8px;
}
.team-deck-stage {
  position: relative;
  width: 600px; max-width: 100%;
  height: 440px;
  perspective: 1400px;
  outline: none;
  flex: none;
}
.team-deck-card {
  position: absolute; top: 28px; left: 50%;
  width: 320px; max-width: 84vw;
  /* transform / filter / opacity are driven imperatively by WAAPI (see
     TeamSection) — NOT by CSS transition, which won't commit on these layers.
     z-index / pointer-events come from the [data-rel] rules below. */
  transform-origin: 50% 0;
  transform: translate(-50%, 0);
  will-change: transform, filter, opacity;
  border-radius: var(--r-xl);
  padding: 22px 22px 24px;
  background: var(--fog-strong);
  -webkit-backdrop-filter: blur(var(--fog-blur)) saturate(140%);
          backdrop-filter: blur(var(--fog-blur)) saturate(140%);
  border: 1px solid var(--fog-border);
  box-shadow: var(--fog-shadow);
}
/* z-index + interactivity per stack position (front=0, rings 1–4, parked 5–6) */
.team-deck-card[data-rel="0"] { z-index: 100; pointer-events: auto; }
.team-deck-card[data-rel="1"] { z-index: 99;  pointer-events: auto; }
.team-deck-card[data-rel="2"] { z-index: 98;  pointer-events: auto; }
.team-deck-card[data-rel="3"] { z-index: 97;  pointer-events: auto; }
.team-deck-card[data-rel="4"] { z-index: 96;  pointer-events: auto; }
.team-deck-card[data-rel="5"] { z-index: 95;  pointer-events: none; }
.team-deck-card[data-rel="6"] { z-index: 94;  pointer-events: none; }
.team-deck-card.is-front { box-shadow: 0 40px 90px -40px rgba(37,99,235,0.45), var(--fog-shadow); }
.team-deck-card:not(.is-front) { cursor: pointer; }
.team-deck-card.is-lead.is-front { border-color: var(--accent-soft); }

.deck-name-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.deck-name {
  font-size: 19px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; margin: 0; line-height: 1.2;
}
.deck-initials {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff; letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 6px 16px -6px rgba(30,64,175,0.7);
}
.deck-photo-frame {
  position: relative;
  width: 100%; height: 210px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--fog);
  border: 1px solid var(--fog-border);
}
.deck-photo-frame image-slot { border-radius: 16px; }
.deck-meta { margin-top: 16px; text-align: center; }
.deck-role {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.deck-spec {
  font-size: 14px; line-height: 1.5; color: var(--body); margin: 8px 0 0;
  text-wrap: pretty;
}

/* Nav arrows */
.team-nav {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink);
  background: var(--fog-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
  z-index: 200;
}
.team-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }

/* Footer — counter + dots */
.team-deck-foot {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 14px;
}
.team-counter {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.team-counter-sep { margin: 0 4px; opacity: 0.5; }
.team-dots { display: inline-flex; gap: 9px; }
.team-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hairline-strong); border: none; cursor: pointer; padding: 0;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.team-dot:hover { background: var(--muted); }
.team-dot.is-active { background: var(--accent); transform: scale(1.3); }

.team-note {
  display: flex; align-items: center; gap: 12px;
  margin-top: 36px; padding: 18px 22px;
  border-radius: var(--r-md);
  border: 1px dashed var(--hairline-strong);
  font-size: 15px; color: var(--body); line-height: 1.5;
  background: var(--fog);
  -webkit-backdrop-filter: blur(var(--fog-blur));
          backdrop-filter: blur(var(--fog-blur));
}
.team-note-mark { color: var(--accent); font-size: 15px; flex: none; }

@media (max-width: 700px) {
  .team-deck { gap: 4px; }
  .team-nav { width: 40px; height: 40px; }
  .team-deck-stage { width: 100%; height: 470px; }
  .team-deck-card { width: 78vw; }
}
@media (prefers-reduced-motion: reduce) {
  .team-deck-card { transition: opacity .3s ease; }
}

/* ── 6. Student showcase ─────────────────────────────────────────────── */
.showcase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sc-card {
  --sc-thumb-bg: #EAF1FC; --sc-thumb-card: #FFFFFF; --sc-thumb-line: #C9D6EC;
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .5s var(--ease-out);
}
html[data-theme="dark"] .sc-card { --sc-thumb-bg: #0C1429; --sc-thumb-card: #121C36; --sc-thumb-line: #2A3a5c; }
.sc-card:hover { transform: translateY(-5px); border-color: var(--accent-soft); box-shadow: 0 34px 70px -34px rgba(37,99,235,0.34); }
.sc-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-bottom: 1px solid var(--fog-border);
}
.sc-thumb-art { width: 100%; height: 100%; display: block; }
.sc-badge {
  position: absolute; top: 12px; inset-inline-end: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
  color: var(--accent);
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--fog-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--fog-border);
}
.sc-meta { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.sc-student { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 8px; }
.sc-title { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 8px; }
.sc-desc { font-size: 14.5px; line-height: 1.55; color: var(--body); margin: 0 0 18px; flex: 1 1 auto; text-wrap: pretty; }
.sc-live {
  position: relative; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: not-allowed;
  padding: 9px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: transparent;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
  outline: none;
}
.sc-live-arrow { opacity: 0.6; transition: transform .25s var(--ease-out); }
.sc-live:hover, .sc-live:focus-visible { color: var(--body); border-color: var(--hairline-strong); }
.sc-tooltip {
  position: absolute; bottom: calc(100% + 10px); inset-inline-start: 0;
  width: max-content; max-width: 230px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.005em;
  box-shadow: 0 16px 34px -16px rgba(6,8,15,0.5);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
  z-index: 5;
}
.sc-tooltip::after {
  content: ""; position: absolute; top: 100%; inset-inline-start: 18px;
  border: 5px solid transparent; border-top-color: var(--ink);
}
.sc-live:hover .sc-tooltip, .sc-live:focus-visible .sc-tooltip { opacity: 1; transform: none; }
.showcase-note {
  display: flex; align-items: center; gap: 12px;
  margin-top: 30px; font-size: 15px; color: var(--body); line-height: 1.5;
}
.showcase-note-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; } }

/* ─── Certificate showcase (3D) ─────────────────────────────────────── */
.section-cert { position: relative; }
.cert-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}
html[dir="rtl"] .cert-layout { direction: rtl; }
.cert-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cert-sub { font-size: 17px; color: var(--body); line-height: 1.6; margin: 0; max-width: 460px; }
.cert-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 12px; }
.cert-list-item { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--body); }
.cert-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--accent);
  box-shadow: 0 4px 12px -4px rgba(37,99,235,0.6);
}
.cert-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; max-width: 420px; line-height: 1.5; }

/* 3D stage */
.cert-stage {
  position: relative;
  perspective: 1600px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.cert-card {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform:
    perspective(1600px)
    rotateX(var(--rx, 7deg))
    rotateY(var(--ry, -16deg))
    rotateZ(0.4deg);
  box-shadow:
    0 2px 4px rgba(6,8,15,0.04),
    34px 40px 80px -30px rgba(8,14,40,0.55),
    14px 18px 40px -24px rgba(30,64,175,0.4);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
  cursor: crosshair;
}
.cert-card:hover { transition: transform .12s var(--ease-out), box-shadow .5s var(--ease-out); }
.cert-img { display: block; width: 100%; height: auto; }
.cert-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(
    520px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.08) 32%,
    transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
}
.cert-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -6px; height: 36px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(8,14,40,0.4), transparent 70%);
  filter: blur(14px);
  transform: translateZ(-60px);
  z-index: -1;
}
html[data-theme="dark"] .cert-card {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    34px 40px 90px -30px rgba(0,0,0,0.7),
    14px 18px 44px -24px rgba(96,165,250,0.3);
}

@media (max-width: 900px) {
  .cert-layout { grid-template-columns: 1fr; gap: 36px; }
  .cert-card { transform: perspective(1400px) rotateX(4deg) rotateY(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cert-card { transform: none !important; transition: none; }
}

/* Requirements folded into the certificate section */
.cert-req {
  margin-top: 64px;
  padding: 38px 40px 34px;
  border-radius: var(--r-xl);
  border: 1px solid var(--fog-border);
  background: var(--fog-strong);
  -webkit-backdrop-filter: blur(var(--fog-blur)) saturate(140%);
          backdrop-filter: blur(var(--fog-blur)) saturate(140%);
  box-shadow: var(--fog-shadow);
}
.cert-req-head { margin-bottom: 26px; }
.cert-req-title {
  font-size: 28px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.025em; line-height: 1.15; margin: 14px 0 8px;
}
.cert-req-intro { font-size: 16px; line-height: 1.5; color: var(--body); margin: 0; }
.cert-req-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px;
}
.cert-req-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15.5px; font-weight: 500; color: var(--ink); line-height: 1.35;
}
.cert-req-text { text-wrap: pretty; }
.cert-req-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.cert-req-note-mark { color: var(--accent); flex: none; }
@media (max-width: 720px) {
  .cert-req { padding: 30px 24px; margin-top: 44px; }
  .cert-req-list { grid-template-columns: 1fr; }
}

/* Smooth atmospheric background without decorative grid lines. */
.interview-calendar { padding: 20px; border: 1px solid var(--line, #b9cce0); border-radius: 20px; background: var(--surface, rgba(128,160,200,.08)); max-width: 560px; width: 100%; box-sizing: border-box; }
.interview-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; color: var(--ink); }
.interview-calendar button { font: inherit; color: var(--ink); cursor: pointer; border: 1px solid transparent; border-radius: 12px; background: transparent; min-height: 44px; }
.interview-calendar-head button { width: 44px; background: rgba(96,165,250,.12); }
.interview-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.interview-weekday { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 10px; }
.interview-calendar-grid button { position: relative; aspect-ratio: 1; background: rgba(96,165,250,.12); transition: background .15s, color .15s; }
.interview-calendar button:disabled { opacity: .3; cursor: default; background: transparent; }
.interview-calendar button:not(:disabled):hover { background: rgba(96,165,250,.25); }
.interview-calendar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.interview-calendar-grid button.is-selected { background: #0866ed; color: white; box-shadow: 0 4px 14px rgba(8,102,237,.2); }
.interview-calendar-grid button.is-selected:hover { background: #075bd3; }
.interview-day-dot { position: absolute; bottom: 7px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.is-selected .interview-day-dot { background: white; }
.interview-calendar-selection { border-top: 1px solid var(--line, #b9cce0); margin-top: 18px; padding-top: 16px; color: var(--ink); font-size: 14px; }
@media (max-width: 480px) { .interview-calendar { padding: 12px; } .interview-calendar-grid { gap: 3px; } .interview-calendar-grid button { min-height: 36px; border-radius: 9px; } .interview-weekday { font-size: 10px; } .interview-day-dot { bottom: 4px; } }
.hero-grid, .final-cta-grid, .page-hero-bg::before, .vt-flow::after { display: none !important; }
