/* ============================================================
   NEXA WEB STUDIO — style.css
   Order: tokens → reset → base → components → sections (DOM order) → media
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --void: #08090A;
  --ink: #101215;
  --gold: #C9A227;
  --gold-hot: #F2D57E;
  --sand: #E8E1D5;
  --sand-dim: rgba(232, 225, 213, 0.55);
  --emerald: #0F6B4F;
  --line: rgba(232, 225, 213, 0.10);

  --font-display: "Anton", "Archivo Black", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 0.2s;
  --dur-std: 0.6s;
  --dur-cine: 1.2s;

  --gutter: clamp(1.5rem, 5vw, 6rem);
  --section-pad: clamp(6rem, 14vh, 12rem);
  --maxw: 1440px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--void);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body, [dir="rtl"] { font-family: var(--font-ar); }
[dir="rtl"] .hero-headline, [dir="rtl"] .sec-head, [dir="rtl"] .cta-headline,
[dir="rtl"] .work-next-big, [dir="rtl"] .footer-giant, [dir="rtl"] .story-quote {
  font-family: var(--font-ar);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 2b. Per-section background film ----------
   Each section owns its own clip. Only the hero loads on first paint;
   the rest attach their <source> via IntersectionObserver (see initLazyVideo). */
.mission, .process, .cta, .hero { position: relative; isolation: isolate; }
.sec-film { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: var(--void); pointer-events: none; }
.sec-film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sec-film-scrim { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(8,9,10,0.30), transparent 62%),
    linear-gradient(180deg, rgba(8,9,10,0.74) 0%, rgba(8,9,10,0.82) 100%); }
/* Section content sits above its film */
.mission > .wrap, .process-grid, .cta-inner { position: relative; z-index: 1; }

/* ---------- 3. Grain + cursor + wipe ---------- */
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 999; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(8) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 12.5% { transform: translate(-2%, 1%); }
  25% { transform: translate(1%, -2%); } 37.5% { transform: translate(-1%, 2%); }
  50% { transform: translate(2%, 1%); } 62.5% { transform: translate(-2%, -1%); }
  75% { transform: translate(1%, 2%); } 87.5% { transform: translate(2%, -2%); }
  100% { transform: translate(0, 0); }
}

.cursor { position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; display: none; }
@media (pointer: fine) { .cursor { display: block; } }
.cursor-dot { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  transform: translate(-50%, -50%); }
.cursor-ring { position: fixed; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.6); transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; background: rgba(201, 162, 39, 0.12); }

.lang-wipe { position: fixed; inset: 0; z-index: 998; background: var(--gold);
  transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- 4. Top bar / nav ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem var(--gutter); }
.wordmark { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.22em; color: var(--sand); }
.wordmark span { color: var(--gold); }
.lang-toggle { font-family: var(--font-ar); font-weight: 600; font-size: 1rem;
  border: 1px solid var(--line); padding: 0.45rem 1rem; border-radius: 2px; color: var(--sand);
  transition: border-color var(--dur-micro), color var(--dur-micro); }
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-hot); }
[dir="rtl"] .lang-toggle { font-family: var(--font-mono); }

.pill-nav { position: fixed; top: 1.2rem; left: 50%; transform: translateX(-50%) translateY(-200%);
  z-index: 95; display: flex; gap: 0.25rem; align-items: center;
  background: rgba(16, 18, 21, 0.85); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem;
  transition: transform 0.5s var(--ease-out); }
.pill-nav.is-visible { transform: translateX(-50%) translateY(0); }
.pill-nav a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  padding: 0.45rem 1rem; border-radius: 999px; color: var(--sand-dim);
  transition: color var(--dur-micro), background var(--dur-micro); }
.pill-nav a:hover, .pill-nav a.is-active { color: var(--gold-hot); }
.pill-nav a.pill-cta { background: var(--gold); color: var(--void); font-weight: 600; }
.pill-nav a.pill-cta:hover { background: var(--gold-hot); color: var(--void); }

/* ---------- 5. Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  font-size: 0.85rem; padding: 1.1rem 2.2rem; overflow: hidden; white-space: nowrap;
  transition: box-shadow var(--dur-std) var(--ease-out), background var(--dur-micro), border-color var(--dur-micro); }
.btn-primary { background: var(--gold); color: var(--void); }
.btn-primary:hover { box-shadow: 0 0 60px rgba(201, 162, 39, 0.35); background: var(--gold-hot); }
.btn-secondary { border: 1px solid var(--line); color: var(--sand); background: transparent; }
.btn-secondary:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.06); }
.btn-xl { padding: 1.4rem 3rem; font-size: 1rem; }
.btn-label { position: relative; display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-label { transform: translateY(-1px); }
.link-arrow { color: var(--sand-dim); font-size: 0.95rem; border-bottom: 1px solid var(--line);
  padding-bottom: 2px; transition: color var(--dur-micro), border-color var(--dur-micro); }
.link-arrow:hover { color: var(--gold-hot); border-color: var(--gold); }

/* ---------- 6. Section scaffolding ---------- */
section { padding-block: var(--section-pad); position: relative; }
.sec-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--gold); margin-bottom: 1.2rem; }
.sec-head { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: 0.92; letter-spacing: -0.02em; color: var(--sand); text-transform: uppercase; }
.sec-head em { font-family: var(--font-body); font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.4rem); color: var(--sand-dim); letter-spacing: 0; }

/* ---------- 7. HERO ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 24vw rgba(0, 0, 0, 0.75); } /* vignette */
.hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 22s var(--ease-out) infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.09) translateY(-1.5%); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s; }
.hero-video.is-ready { opacity: 1; }
.hero-video.is-ready ~ .hero-poster img,
.hero-media:has(.hero-video.is-ready) .hero-poster img { animation: none; }
.hero-media { display: none; }
/* modifier on .sec-film-scrim — lighter so the hero clip reads strongest */
.hero-scrim {
  background: linear-gradient(to top, rgba(8, 9, 10, 0.88) 0%, rgba(8, 9, 10, 0.14) 50%, rgba(8, 9, 10, 0.34) 100%); }

.hero-headline { font-family: var(--font-display); font-size: clamp(3.5rem, 11vw, 12rem);
  line-height: 0.88; letter-spacing: -0.03em; text-transform: uppercase; }
.hl-line { display: block; overflow: hidden; }
.hl-inner { display: inline-block; transform: translateY(110%); }
.hl-inner.accent { color: var(--gold); }
.hero-sub { max-width: 46ch; color: var(--sand-dim); margin-top: 2rem; opacity: 0; }
.hero-ctas { display: flex; align-items: center; gap: 2rem; margin-top: 2.6rem; opacity: 0; flex-wrap: wrap; }

.hero-status { position: absolute; bottom: 2rem; inset-inline-start: var(--gutter);
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--sand-dim);
  font-family: var(--font-mono); letter-spacing: 0.06em; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5); } 50% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); } }
.scroll-cue { position: absolute; bottom: 2rem; inset-inline-end: var(--gutter); width: 1px; height: 64px;
  background: var(--line); overflow: hidden; }
.scroll-cue span { display: block; width: 100%; height: 40%; background: var(--gold);
  animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { from { transform: translateY(-110%); } to { transform: translateY(280%); } }

/* ---------- 8. STATS ---------- */
.stats { background: rgba(16, 18, 21, 0.62); backdrop-filter: blur(6px); border-block: 1px solid var(--line); padding-block: clamp(3rem, 6vh, 5rem); overflow: hidden; }
.stats-track { display: flex; justify-content: space-around; gap: 2rem; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.stat { text-align: center; }
.stat-num { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(2.5rem, 6vw, 5rem); color: var(--gold); line-height: 1; }
.stat-label { margin-top: 0.8rem; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--sand-dim); }

/* ---------- 9. MISSION ---------- */
.mission { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.mission-statement { font-family: var(--font-display); font-size: clamp(2rem, 5.5vw, 5rem);
  line-height: 1.05; text-transform: uppercase; letter-spacing: -0.01em; }
[dir="rtl"] .mission-statement { font-family: var(--font-ar); font-weight: 700; line-height: 1.2; }
.mission-statement .w { display: inline-block; opacity: 0.12; transform: rotateX(40deg); transform-origin: bottom; }
.mission-support { color: var(--sand-dim); max-width: 38ch; }

/* ---------- 10. PILLARS ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.pillar-card { background: var(--ink); border: 1px solid var(--line); border-radius: 2px;
  padding: clamp(2rem, 3.5vw, 3.2rem);
  transition: border-color var(--dur-std) var(--ease-out), box-shadow var(--dur-std) var(--ease-out), transform var(--dur-std) var(--ease-out); }
.pillar-card:nth-child(2) { transform: translateY(3.5rem); }
.pillar-card:nth-child(3) { transform: translateY(7rem); }
.pillar-card:hover { border-color: var(--gold); box-shadow: 0 0 60px rgba(201, 162, 39, 0.15); }
.pillar-index { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 1.6rem; }
[dir="rtl"] .pillar-index { -webkit-text-stroke: 0; color: var(--gold); font-family: var(--font-mono); }
.pillar-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.8rem; }
.pillar-card p { color: var(--sand-dim); font-size: 0.98rem; }

/* ---------- 11. PROCESS ---------- */
.process { background: rgba(16, 18, 21, 0.6); backdrop-filter: blur(6px); border-block: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); }
.process-sticky { position: sticky; top: 14vh; }
.ui-mock { border: 1px solid var(--line); border-radius: 2px; background: var(--void);
  padding: 1rem; box-shadow: 0 0 60px rgba(201, 162, 39, 0.08); }
.ui-frame { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.ui-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ui-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ui-stage { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; }
.ui-el { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); border-radius: 2px; }
.ui-el.is-on { opacity: 1; transform: none; }
.ui-hero { height: 90px; background: linear-gradient(135deg, rgba(201, 162, 39, 0.5), rgba(201, 162, 39, 0.12)); }
.ui-nav { height: 14px; width: 55%; background: rgba(232, 225, 213, 0.18); }
.ui-grid { display: flex; gap: 10px; }
.ui-grid i { flex: 1; height: 54px; background: rgba(232, 225, 213, 0.1); border: 1px solid var(--line); }
.ui-text i { display: block; height: 8px; background: rgba(232, 225, 213, 0.16); margin-bottom: 7px; width: 85%; }
.ui-rtl { direction: rtl; }
.ui-rtl i { display: block; height: 8px; background: rgba(201, 162, 39, 0.4); margin-bottom: 7px; }
.ui-cta { height: 34px; width: 40%; background: var(--gold); opacity: 0; }
.ui-cta.is-on { opacity: 1; }
.ui-clock { text-align: center; margin-top: 0.9rem; color: var(--gold); font-size: 1.1rem; letter-spacing: 0.14em; }

.steps-list { margin-top: 3rem; display: flex; flex-direction: column; gap: clamp(3rem, 8vh, 6rem); }
.step { border-inline-start: 1px solid var(--line); padding-inline-start: 2rem; opacity: 0.28;
  transition: opacity var(--dur-std) var(--ease-out), border-color var(--dur-std); }
.step.is-active { opacity: 1; border-color: var(--gold); }
.step-time { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.14em; margin-bottom: 0.6rem; }
.step h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { color: var(--sand-dim); max-width: 44ch; }

/* ---------- 12. STORY ---------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.story-quote { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.02;
  text-transform: uppercase; letter-spacing: -0.01em; position: sticky; top: 18vh; }
.story-quote::before { content: ""; display: block; width: 72px; height: 3px; background: var(--gold); margin-bottom: 2rem; }
.story-body { display: flex; flex-direction: column; gap: 1.6rem; color: var(--sand-dim); max-width: 68ch; }

/* ---------- 13. PACKAGES ---------- */
.packages { background: rgba(16, 18, 21, 0.6); backdrop-filter: blur(6px); border-block: 1px solid var(--line); }
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: 3.5rem; align-items: stretch; }
.pkg { position: relative; background: var(--void); border: 1px solid var(--line); border-radius: 2px;
  padding: clamp(2rem, 3vw, 2.8rem); display: flex; flex-direction: column;
  transition: border-color var(--dur-std), box-shadow var(--dur-std), transform var(--dur-std) var(--ease-out); }
.pkg:hover { border-color: var(--gold); box-shadow: 0 0 60px rgba(201, 162, 39, 0.15); }
.pkg-featured { border-color: var(--gold); transform: scale(1.03); box-shadow: 0 0 60px rgba(201, 162, 39, 0.15); }
.pkg-badge { position: absolute; top: -12px; inset-inline-start: 1.8rem; background: var(--emerald); color: #EAF6F1;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 2px; }
.pkg-name { font-size: 0.85rem; letter-spacing: 0.22em; color: var(--sand-dim); }
.pkg-price { font-size: clamp(2.2rem, 3.5vw, 3rem); font-weight: 600; color: var(--gold); margin: 1rem 0 1.6rem; }
.pkg-price span { font-size: 1rem; color: var(--sand-dim); }
.pkg ul { flex: 1; display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 2rem; }
.pkg li { color: var(--sand-dim); font-size: 0.95rem; padding-inline-start: 1.2rem; position: relative; }
.pkg li::before { content: "—"; position: absolute; inset-inline-start: 0; color: var(--gold); }
.packages-note { margin-top: 2.6rem; color: var(--sand-dim); font-size: 0.9rem; text-align: center; }

/* ---------- 14. WORK ---------- */
.work { padding-block: 0; }
.work-pin { padding-block: var(--section-pad); }
.work-head { margin-bottom: 3.5rem; }

/* Native horizontal scroll — no pinning, no scroll-jacking.
   The page always scrolls vertically; this rail scrolls on its own. */
.work-rail { position: relative; }
.work-track {
  display: flex; gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-inline: var(--gutter); padding-block: 0.5rem;
  width: auto;
  overflow-x: auto; overflow-y: hidden;
  /* proximity, not mandatory: mandatory + center snapping fights programmatic
     scrolling because card 1 can never be centred, so it clamps back to 0. */
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.work-track::-webkit-scrollbar { display: none; }
.work-track.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
@media (prefers-reduced-motion: reduce) { .work-track { scroll-behavior: auto; } }
.work-track.is-dragging .work-card { pointer-events: none; }

/* Arrows */
.work-nav {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center; z-index: 3;
  background: rgba(16, 18, 21, 0.78); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--sand);
  cursor: pointer; transition: background .25s, border-color .25s, opacity .25s, transform .25s;
}
.work-nav svg { width: 1.4rem; height: 1.4rem; }
.work-nav:hover { background: var(--gold); border-color: var(--gold); color: #0F1114; }
.work-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.work-nav[disabled] { opacity: 0; pointer-events: none; }
.work-nav-prev { inset-inline-start: calc(var(--gutter) - 1.6rem); }
.work-nav-next { inset-inline-end: calc(var(--gutter) - 1.6rem); }
[dir="rtl"] .work-nav svg { transform: scaleX(-1); }
@media (max-width: 900px) { .work-nav { display: none; } }
.work-card { position: relative; width: clamp(290px, 38vw, 560px); flex-shrink: 0; scroll-snap-align: start; border: 1px solid var(--line);
  border-radius: 2px; overflow: hidden; background: var(--ink);
  transition: border-color var(--dur-std), transform var(--dur-std) var(--ease-out), filter var(--dur-std); }
.work-track:hover .work-card:not(:hover) { filter: saturate(0.35) brightness(0.7); }
.work-card:hover { border-color: var(--gold); }
/* The aspect-ratio lives on the CONTAINER, so the media's own intrinsic size can
   never dictate card height (that bug made cards 1029px tall). */
.work-media { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.work-media video, .work-media img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover; object-position: center; }
.work-meta { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.4rem 1.6rem; border-top: 1px solid var(--line); }
.work-cat { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--gold); }
.work-name { font-size: 1.3rem; font-weight: 600; }
.work-time { font-size: 0.72rem; color: var(--sand-dim); letter-spacing: 0.12em; }
.work-card-next { display: flex; align-items: center; justify-content: center; background: var(--gold); min-height: 100%; }
.work-next-inner { padding: 2.5rem; text-align: center; }
.work-next-big { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.9; color: var(--void); text-transform: uppercase; }
.work-next-small { display: block; margin-top: 1.4rem; color: rgba(8, 9, 10, 0.75); font-weight: 500; max-width: 30ch; }

/* ---------- 15. COMPARE ---------- */
.compare-scroll { overflow-x: auto; margin-top: 3rem; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 1.2rem 1.4rem; text-align: start; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--sand-dim); }
.compare-table thead th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--sand); }
.compare-table tbody td:first-child { color: var(--sand); font-weight: 500; }
.compare-table .col-nexa { background: rgba(201, 162, 39, 0.08); color: var(--gold-hot); font-weight: 600; }
.compare-table thead .col-nexa { color: var(--gold); }
.compare-table tbody tr { opacity: 0; transform: translateY(16px); }
.compare-table tbody tr.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }

/* ---------- 16. FAQ ---------- */
.faq-list { margin-top: 3rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  cursor: pointer; list-style: none; padding: 1.6rem 0; font-size: 1.15rem; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--gold); inset: 0; margin: auto;
  transition: transform 0.4s var(--ease-out); }
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; }
details[open] .faq-icon::after { transform: rotate(90deg); }
.faq-list p { padding-bottom: 1.8rem; color: var(--sand-dim); max-width: 68ch; }

/* ---------- 17. FINAL CTA ---------- */
.cta { min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img, .cta-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-video { opacity: 0; transition: opacity 0.8s; }
.cta-video.is-ready { opacity: 1; }
.cta-media { display: none; }
.cta-scrim { background: radial-gradient(ellipse at center, rgba(8,9,10,0.58), rgba(8,9,10,0.86) 80%); }
.cta-headline { font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 8rem); line-height: 0.9;
  letter-spacing: -0.02em; text-transform: uppercase; }
.cta-sub { color: var(--sand-dim); margin: 2rem auto 2.8rem; max-width: 46ch; }
[dir="rtl"] .cta-headline { line-height: 1.08; }

/* ---------- 18. FOOTER ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: clamp(4rem, 10vh, 8rem); overflow: hidden; }
.footer-giant { position: absolute; top: 45%; left: 50%; transform: translateX(-50%); z-index: 0;
  font-family: var(--font-display); font-size: clamp(6rem, 22vw, 20rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(232, 225, 213, 0.07); pointer-events: none; white-space: nowrap; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem;
  align-items: start; padding-bottom: 4rem; }
.footer-left p { color: var(--sand-dim); font-size: 0.9rem; margin-top: 0.8rem; }
.footer-nav { display: flex; gap: 1.6rem; }
.footer-nav a, .footer-right a { color: var(--sand-dim); font-size: 0.9rem; transition: color var(--dur-micro); }
.footer-nav a:hover, .footer-right a:hover { color: var(--gold-hot); }
.footer-right { display: flex; gap: 1.6rem; justify-content: flex-end; }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-block: 1.4rem; font-size: 0.8rem; color: var(--sand-dim); }

/* ---------- 19. Mobile sticky CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; display: none;
  background: var(--gold); color: var(--void); text-align: center; font-weight: 600;
  padding: 1rem calc(1rem + env(safe-area-inset-left)) calc(1rem + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 0.5s var(--ease-out); }
.mobile-cta.is-visible { transform: none; }

/* ---------- 20. Media queries ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar-card:nth-child(2), .pillar-card:nth-child(3) { transform: none; }
  .mission { grid-template-columns: 1fr; align-items: start; }
  .story { grid-template-columns: 1fr; }
  .story-quote { position: static; }
  .packages-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pkg-featured { transform: none; }
  .process-grid { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-right { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .stats-track { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .hero-headline { font-size: clamp(3rem, 15vw, 5rem); }
  /* Mobile: stack the cards vertically, no horizontal rail at all. */
  .work-track { width: auto; flex-direction: column; padding-inline: var(--gutter);
    overflow-x: visible; scroll-snap-type: none; cursor: auto; }
  .work-card { width: 100%; }
  .mobile-cta { display: block; }
  .hero-status { display: none; }
  .pill-nav { display: none; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; }
  .hl-inner { transform: none; }
  .hero-sub, .hero-ctas { opacity: 1; }
  .mission-statement .w { opacity: 1; transform: none; }
  .compare-table tbody tr { opacity: 1; transform: none; }
  .hero-poster img { animation: none; }
}
