/* ═══════════════════════════════════════════════════════════════
   DIYAA ALBOUZAN — cinematic scroll portfolio
   Brand system: BRAND.md / tokens.json — no colors outside it.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0D1117;
  --surface: #161B22;
  --surface2: #1C2128;
  --primary: #2DD4BF;
  --amber: #F59E0B;
  --text: #E6EDF3;
  --muted: #8B949E;
  --border: rgba(139, 148, 158, 0.13);
  --divider: rgba(139, 148, 158, 0.12);

  --font-display-ar: 'Cairo', sans-serif;
  --font-display-en: 'Space Grotesk', sans-serif;
  --font-body-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-body-en: 'IBM Plex Sans', sans-serif;

  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.40);
  --glow-primary: 0 0 20px rgba(45, 212, 191, 0.30);
  --glow-amber: 0 0 16px rgba(245, 158, 11, 0.25);

  --accent-line: linear-gradient(90deg, transparent, #2DD4BF, #F59E0B, transparent);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body-ar);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 1000px 800px at 80% 5%, rgba(45, 212, 191, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 700px 600px at 10% 90%, rgba(245, 158, 11, 0.05) 0%, transparent 60%),
    radial-gradient(circle, rgba(139, 148, 158, 0.09) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(45, 212, 191, 0.25); color: var(--text); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── grain + progress ─────────────────────────────────────────── */

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(2%, 2%); }
}

.scroll-progress {
  position: fixed; top: 0; inset-inline: 0;
  height: 2px; z-index: 120; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--accent-line);
  transform-origin: right center;
  transform: scaleX(var(--sp, 0));
}

/* ── classic site header (ported from css/site.css so the old
      global styles never load on this page) ─────────────────────── */

.dt-accent-bar { height: 2px; background: var(--accent-line); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(13, 17, 23, 0.78);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }

.dt-wordmark { display: flex; align-items: center; gap: 10px; direction: ltr; }
.dt-wordmark-ar {
  font-family: var(--font-display-ar); font-weight: 900;
  color: var(--text); letter-spacing: -0.01em; line-height: 1;
}
.dt-wordmark-sep {
  width: 1.5px; height: 1em; flex-shrink: 0;
  background: linear-gradient(to bottom, transparent, var(--primary) 30%, var(--primary) 70%, transparent);
}
.dt-wordmark-en { font-family: var(--font-display-en); font-weight: 700; color: var(--primary); letter-spacing: 0.02em; }

.site-header .nav { display: flex; gap: 26px; margin-inline-start: auto; align-items: center; }
.site-header .nav a:not(.btn) {
  font-family: var(--font-body-ar); font-size: 14.5px; font-weight: 500;
  color: var(--muted); white-space: nowrap;
  transition: color 0.25s ease;
}
.site-header .nav a:not(.btn):hover { color: var(--text); }
.site-header .nav a:not(.btn).active { color: var(--primary); font-weight: 700; }
.site-header .btn { padding: 11px 24px; font-size: 14px; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── pinned scene scaffolding ─────────────────────────────────── */

.pin-wrap { position: relative; }
.hero-wrap { height: 280vh; }
.pillars-wrap { height: 560vh; }
.work-wrap { height: 480vh; }

.pin-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

.seq-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* when real Seedance footage is live, it takes over from the stand-ins */
.seq-live .hero-fallback,
.seq-live .holo-field,
.seq-live .corridor { display: none; }

.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(13, 17, 23, 0.85) 0%, transparent 26%),
    linear-gradient(to bottom, rgba(13, 17, 23, 0.75) 0%, transparent 20%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(13, 17, 23, 0.6) 100%);
}

/* ── hero fallback stage (procedural stand-in until Seedance frames land) ── */

.hero-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  perspective: 1300px;
}

.hf-dust {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(45, 212, 191, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 46%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 46%, #000 0%, transparent 70%);
  opacity: 0.5;
}

.hf-ring {
  position: absolute;
  width: min(74vh, 92vw); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(45, 212, 191, 0.22);
  box-shadow: inset 0 0 60px rgba(45, 212, 191, 0.05);
  transform: rotateX(72deg) rotateZ(var(--ring-rot, 0deg));
}

.hero-slab {
  position: relative;
  width: min(42vh, 66vw);
  aspect-ratio: 3 / 4.1;
  border-radius: 18px;
  transform-style: preserve-3d;
  transform: rotateY(var(--slab-rot, 0deg));
  will-change: transform;
}
.hero-slab-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  backface-visibility: hidden;
  background: var(--surface);
}
.hero-slab-edge {
  position: absolute; inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(45, 212, 191, 0.16) 0%, transparent 30%),
    linear-gradient(285deg, rgba(245, 158, 11, 0.10) 0%, transparent 26%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), var(--glow-primary);
  backface-visibility: hidden;
}
/* back face: the D mark on surface — shown mid-orbit */
.hero-slab::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 18px;
  background: var(--surface) url('../../assets/logo-d-mark.svg') center / 34% no-repeat;
  border: 1px solid rgba(45, 212, 191, 0.22);
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

/* ── hero type ────────────────────────────────────────────────── */

.hero-type {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  padding: 0 5vw;
}
.hero-phase {
  grid-area: 1 / 1;
  display: flex; flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}
.hero-phase-alt { opacity: 0; }

.phase-title {
  font-family: var(--font-display-ar);
  font-weight: 900;
  font-size: clamp(44px, 9.5vw, 118px);
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 4px 60px rgba(13, 17, 23, 0.9);
}
.phase-title em { font-style: normal; color: var(--primary); }
.phase-sub {
  font-family: var(--font-body-ar);
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 2;
  max-width: 620px;
  margin-top: 2.5vh;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display-ar); font-weight: 700; font-size: 13px;
  color: var(--primary);
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 4vh;
}
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: var(--glow-amber);
}

.hero-name {
  font-family: var(--font-display-ar);
  font-weight: 900;
  font-size: clamp(64px, 15.5vw, 195px);
  line-height: 1.02;
  color: var(--text);
  display: flex; gap: 0.22em; flex-wrap: wrap; justify-content: center;
  text-shadow: 0 4px 60px rgba(13, 17, 23, 0.9);
}
.hero-name .t-word {
  display: inline-block;
  padding: 0.08em 0.06em; margin: -0.08em -0.06em;
  will-change: transform, clip-path;
}

.hero-latin {
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: clamp(13px, 2vw, 22px);
  color: var(--primary);
  margin-top: 2.2vh;
  direction: ltr;
  white-space: nowrap;
}
.hero-latin .lt { display: inline-block; will-change: transform, opacity; }

.hero-sub {
  font-family: var(--font-body-ar);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--muted);
  max-width: 620px;
  line-height: 2;
  margin-top: 3vh;
}
.hero-sub em { font-style: normal; color: var(--primary); font-weight: 600; }

/* page-wide scroll indicator: hand touching an up/down arrow.
   Fixed so it accompanies the whole page; JS fades it near the end. */
.scroll-cue {
  position: fixed; bottom: 18px; inset-inline: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 60;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
/* soft dark halo so the icon reads over any footage */
.scroll-cue::before {
  content: '';
  position: absolute; bottom: -30px;
  width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(13, 17, 23, 0.8) 0%, rgba(13, 17, 23, 0.45) 45%, transparent 72%);
  z-index: -1;
}
.cue-label {
  font-family: var(--font-display-ar); font-weight: 700; font-size: 14px;
  color: var(--text);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 10px rgba(13, 17, 23, 1);
}

.cue-hand { display: block; width: 58px; height: 74px; }
.cue-hand svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cue-hand .sc-arrow {
  stroke: var(--primary);
  stroke-width: 3;
  filter: drop-shadow(0 0 9px rgba(45, 212, 191, 0.65));
}
.cue-hand .sc-head { fill: var(--primary); stroke: none; }
.cue-hand .sc-hand {
  stroke: var(--text);
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 8px rgba(13, 17, 23, 0.95));
  animation: sc-slide 2.2s ease-in-out infinite;
}
/* solid hand body so it reads in front of the arrow, like the reference */
.cue-hand .sc-hand path { fill: rgba(22, 27, 34, 0.92); }
.cue-hand .sc-touch {
  stroke: var(--primary);
  fill: rgba(45, 212, 191, 0.25);
}
@keyframes sc-slide {
  0%, 100% { transform: translateY(6px); }
  50% { transform: translateY(-6px); }
}

/* ── stats strip ──────────────────────────────────────────────── */

.stats {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(22, 27, 34, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 6;
}
.stats::before {
  content: '';
  position: absolute; top: -1px; inset-inline: 0;
  height: 2px; background: var(--accent-line);
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6vh 4vw;
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  color: var(--amber);
  line-height: 1.1;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  text-shadow: var(--glow-amber);
}
.stat-label {
  display: block;
  font-family: var(--font-body-ar); font-size: 14px; font-weight: 500;
  color: var(--muted);
  margin-top: 10px;
}

/* ── scene headers ────────────────────────────────────────────── */

.scene-head {
  position: absolute; top: 11vh; inset-inline-start: 5vw;
  display: flex; align-items: flex-start; gap: 20px;
  z-index: 6;
}
.scene-index {
  font-family: var(--font-display-en); font-weight: 700;
  font-size: clamp(54px, 7vw, 96px); line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(45, 212, 191, 0.35);
}
.scene-titles { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.accent-bar { display: block; width: 110px; height: 2px; background: var(--accent-line); }
.scene-title {
  font-family: var(--font-display-ar); font-weight: 900;
  font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15;
  color: var(--text);
}
.scene-latin {
  font-family: var(--font-display-en); font-weight: 500; font-size: 12px;
  letter-spacing: 5px; color: var(--muted);
}

/* ── pillars scene (the builder) ──────────────────────────────── */

.holo-field { position: absolute; inset: 0; pointer-events: none; }
.holo {
  position: absolute;
  background: rgba(22, 27, 34, 0.72);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.07), var(--shadow-md);
  padding: 12px;
  will-change: transform;
  direction: ltr;
}
.holo-bar { display: flex; gap: 5px; margin-bottom: 10px; }
.holo-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(139, 148, 158, 0.35); }
.holo-bar i:first-child { background: rgba(45, 212, 191, 0.6); }

/* physical positions on purpose: the pinned stage is a cinematic frame,
   scene head sits top-right (RTL start), card deck bottom-right —
   so the holograms live on the left half of the frame */
.holo-terminal { top: 14vh; left: 6vw; width: 240px; }
.holo-terminal pre {
  font-family: var(--font-body-en), monospace; font-size: 11px; line-height: 1.75;
  color: var(--primary); opacity: 0.85;
}

.holo-chart { bottom: 12vh; left: 9vw; width: 200px; }
.holo-chart .bars { display: flex; align-items: flex-end; gap: 8px; height: 74px; }
.holo-chart .bars i {
  flex: 1; height: calc(var(--h) * 100%);
  background: linear-gradient(to top, rgba(45, 212, 191, 0.25), rgba(45, 212, 191, 0.75));
  border-radius: 3px 3px 0 0;
}
.holo-chart .bars i:nth-child(4), .holo-chart .bars i:nth-child(6) {
  background: linear-gradient(to top, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.8));
}

.holo-graph { top: 42vh; left: 22vw; width: 190px; }
.holo-graph svg { width: 100%; display: block; }
.holo-graph line { stroke: rgba(45, 212, 191, 0.4); stroke-width: 1; }
.holo-graph circle { fill: rgba(45, 212, 191, 0.25); stroke: var(--primary); stroke-width: 1; }
.holo-graph circle.hub { fill: rgba(245, 158, 11, 0.3); stroke: var(--amber); }
.holo-tag {
  position: absolute; bottom: 8px; inset-inline-end: 10px;
  font-family: var(--font-display-en); font-weight: 700; font-size: 10px;
  letter-spacing: 2px; color: var(--primary); opacity: 0.7;
}

.holo-grid { top: 18vh; left: 30vw; width: 210px; }
.holo-grid .cells {
  height: 86px; border-radius: 4px;
  background:
    linear-gradient(rgba(45, 212, 191, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(45, 212, 191, 0.045), rgba(45, 212, 191, 0.045));
  background-size: 100% 17px, 34px 100%, 100% 100%;
  box-shadow: inset 34px -17px 0 -30px rgba(245, 158, 11, 0.5);
}

.pillar-deck {
  position: absolute;
  bottom: 10vh; inset-inline-start: 5vw;
  width: min(600px, 90vw);
  height: 300px;
  z-index: 7;
}
.pillar-card, .work-card {
  background: rgba(22, 27, 34, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  transform: translateY(calc(var(--cy, 0px) + var(--hy, 0px))) scale(var(--cs, 1));
  opacity: var(--co, 1);
  transition: box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card { position: absolute; inset-inline: 0; bottom: 0; will-change: transform, opacity; }
.pillar-card::before, .work-card::before {
  content: '';
  position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: var(--accent-line);
}
.pillar-card:hover, .work-card:hover { --hy: -3px; box-shadow: var(--shadow-lg); }

.pillar-no, .work-no {
  font-family: var(--font-display-en); font-weight: 700; font-size: 12px;
  letter-spacing: 3px; color: var(--amber);
}
.pillar-card h3, .work-card h3 {
  font-family: var(--font-display-ar); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 27px);
  color: var(--text);
  margin: 10px 0 10px;
}
.pillar-card p, .work-card p {
  font-family: var(--font-body-ar); font-size: 15px; line-height: 1.95;
  color: var(--muted);
}

.pillar-points {
  list-style: none;
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.pillar-points li {
  position: relative;
  font-family: var(--font-body-ar); font-size: 13px; line-height: 1.8;
  color: var(--muted);
  padding-inline-start: 22px;
}
.pillar-points li::before {
  content: '';
  position: absolute; inset-inline-start: 4px; top: 7px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
}
.pillar-amber .pillar-points li::before { border-color: var(--amber); }

.pillar-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display-ar); font-weight: 700; font-size: 13px;
  color: var(--primary);
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.25s ease;
}
.pillar-link:hover { border-color: var(--primary); }
.pillar-amber .pillar-link { color: var(--amber); border-color: rgba(245, 158, 11, 0.35); }
.pillar-amber .pillar-link:hover { border-color: var(--amber); }

@media (max-height: 760px) {
  .pillar-points { display: none; }
}

.pillar-amber { border-color: rgba(245, 158, 11, 0.2); }
.pillar-amber::before { background: linear-gradient(90deg, transparent, #F59E0B, #2DD4BF, transparent); }
.pillar-amber h3 { color: var(--amber); }
.pillar-amber:hover { box-shadow: var(--shadow-lg), var(--glow-amber); }

/* pillar progress dots */
.pillar-dots {
  position: absolute; bottom: 4vh; inset-inline-start: 5vw;
  display: flex; gap: 8px; z-index: 7;
}
.pillar-dots i {
  width: 26px; height: 3px; border-radius: 2px;
  background: rgba(139, 148, 158, 0.25);
  transition: background 0.3s ease;
}
.pillar-dots i.on { background: var(--primary); box-shadow: var(--glow-primary); }

/* ── work scene (the closer) ──────────────────────────────────── */

.corridor {
  position: absolute; inset: 0;
  perspective: 900px;
  perspective-origin: 50% 46%;
  overflow: hidden;
}
.wall-panel {
  position: absolute; top: 50%;
  width: min(30vw, 340px); aspect-ratio: 1;
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.10), inset 0 0 60px rgba(45, 212, 191, 0.04);
  will-change: transform, opacity;
  padding: 8%;
}
.wp-right { inset-inline-start: 66%; }
.wp-left { inset-inline-start: 6%; }
.wall-panel svg { width: 100%; height: 100%; }
.wall-panel svg * { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; }
.wall-panel svg .dot { fill: var(--primary); stroke: none; }
.wall-panel svg .fill-soft { fill: rgba(45, 212, 191, 0.12); }
.wall-panel svg .amberline { stroke: var(--amber); }
.wall-panel svg .dash { stroke-dasharray: 4 5; }
.wall-panel svg .arrow { stroke: rgba(45, 212, 191, 0.6); }

.work-deck { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.work-card {
  position: absolute;
  width: min(430px, 86vw);
  pointer-events: auto;
  will-change: transform, opacity;
}
.work-card[data-work="0"] { top: 24vh; inset-inline-start: 6vw; }
.work-card[data-work="1"] { top: 38vh; inset-inline-end: 6vw; }
.work-card[data-work="2"] { top: 52vh; inset-inline-start: 10vw; }

.work-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display-ar); font-weight: 700; font-size: 13px;
  color: var(--primary);
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.25s ease;
}
.work-link:hover { border-color: var(--primary); }

/* ── content bands (old-site content: process / why / guides / course / about) ── */

.band {
  position: relative;
  z-index: 6;
  padding: 13vh 5vw;
}
.band-tint {
  background: rgba(22, 27, 34, 0.42);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band-inner { max-width: 1200px; margin: 0 auto; }

.band-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 6vh;
}
.band-head h2 {
  font-family: var(--font-display-ar); font-weight: 900;
  font-size: clamp(26px, 3.4vw, 42px); line-height: 1.2;
  color: var(--text);
}
.band-head .accent-bar { width: 64px; flex-shrink: 0; }
.band-en {
  font-family: var(--font-display-en); font-weight: 500; font-size: 12px;
  letter-spacing: 5px; color: var(--muted);
  margin-inline-start: auto;
  white-space: nowrap;
}

.band-head-num { align-items: flex-start; gap: 20px; }
.band-head-num .accent-bar { margin-bottom: 8px; }
.band-index {
  font-family: var(--font-display-en); font-weight: 700;
  font-size: clamp(54px, 7vw, 96px); line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(45, 212, 191, 0.35);
}
.band-titles { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }

.band-note {
  font-family: var(--font-body-ar); font-size: 15px; line-height: 2;
  color: var(--muted);
  max-width: 640px;
  margin: -3vh 0 5vh;
}

/* scroll reveals (JS adds .in; hidden only when JS is running) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--rd, 0) * 100ms),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--rd, 0) * 100ms);
}
html.js [data-reveal].in { opacity: 1; transform: none; }

/* process steps */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-no {
  font-family: var(--font-display-en); font-weight: 700; font-size: 11px;
  letter-spacing: 3px; color: var(--amber);
}
.step-card h3 {
  font-family: var(--font-display-ar); font-weight: 700; font-size: 19px;
  color: var(--text);
  margin: 12px 0 8px;
}
.step-card p {
  font-family: var(--font-body-ar); font-size: 13.5px; line-height: 1.95;
  color: var(--muted);
}

/* why me */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card::before {
  content: '';
  position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: var(--accent-line);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.why-card h3 {
  font-family: var(--font-display-ar); font-weight: 700; font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}
.why-card p {
  font-family: var(--font-body-ar); font-size: 14px; line-height: 2;
  color: var(--muted);
}
.why-amber { border-color: rgba(245, 158, 11, 0.2); }
.why-amber::before { background: linear-gradient(90deg, transparent, #F59E0B, #2DD4BF, transparent); }
.why-amber h3 { color: var(--amber); }

/* guides library */
.guides-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.guide-chip {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.guide-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.guide-chip h3 {
  font-family: var(--font-display-ar); font-weight: 700; font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}
.guide-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.g-tag {
  font-family: var(--font-body-ar); font-size: 11px; font-weight: 500;
  color: var(--primary);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 100px;
  padding: 3px 12px;
}
.g-tag-amber {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

/* course */
.course-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 42px;
  position: relative; overflow: hidden;
  margin-bottom: 22px;
}
.course-hero::before {
  content: '';
  position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: var(--accent-line);
}
.course-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body-ar); font-size: 12px; font-weight: 500;
  color: var(--primary);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 100px;
  padding: 6px 16px;
}
.tag-amber {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}
.tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: var(--glow-amber);
}
.course-title {
  font-family: var(--font-display-ar); font-weight: 900;
  font-size: clamp(28px, 4vw, 46px);
  color: var(--text);
  margin-bottom: 14px;
}
.course-desc {
  font-family: var(--font-body-ar); font-size: 15.5px; line-height: 2.05;
  color: var(--muted);
  max-width: 760px;
}
.course-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.course-ctas .btn { font-size: 14px; padding: 13px 30px; }

.modules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.module-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module-no {
  font-family: var(--font-display-en); font-weight: 700; font-size: 22px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 158, 11, 0.55);
  line-height: 1;
  padding-top: 3px;
}
.module-card h4 {
  font-family: var(--font-display-ar); font-weight: 700; font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
}
.module-card p {
  font-family: var(--font-body-ar); font-size: 13px; line-height: 1.9;
  color: var(--muted);
}

.course-includes {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 22px;
}
.inc {
  position: relative;
  font-family: var(--font-body-ar); font-size: 13px; font-weight: 500;
  color: var(--muted);
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px 8px 20px;
  padding-inline-start: 34px;
}
.inc::before {
  content: '';
  position: absolute; inset-inline-start: 16px; top: 12px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
}

/* about */
.about-grid {
  display: grid; grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 48px;
  align-items: start;
}
.about-portrait { position: relative; }
.about-portrait img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), var(--glow-primary);
}
.about-badge {
  position: absolute; bottom: 16px; inset-inline-start: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display-en); font-weight: 500; font-size: 12px;
  color: var(--text);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  direction: ltr;
}
.about-copy h3 {
  font-family: var(--font-display-ar); font-weight: 900;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--text);
  margin-bottom: 20px;
}
.about-copy p {
  font-family: var(--font-body-ar); font-size: 15.5px; line-height: 2.1;
  color: var(--muted);
  margin-bottom: 16px;
}
.about-copy em { font-style: normal; color: var(--primary); font-weight: 600; }

.about-platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.plat {
  font-family: var(--font-body-en); font-size: 12.5px; font-weight: 500;
  color: var(--primary);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 100px;
  padding: 8px 18px;
  direction: ltr;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plat:hover { transform: translateY(-3px); box-shadow: var(--glow-primary); }
.plat-amber {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}
.plat-amber:hover { box-shadow: var(--glow-amber); }

/* ── finale ───────────────────────────────────────────────────── */

.finale {
  position: relative;
  min-height: 90vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 12vh 5vw;
  z-index: 6;
}
.finale .scene-head-static {
  position: absolute; top: 10vh; inset-inline-start: 5vw;
}

.finale-title {
  font-family: var(--font-display-ar); font-weight: 900;
  font-size: clamp(42px, 8.4vw, 108px);
  line-height: 1.16;
  color: var(--text);
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.finale.in .finale-title { opacity: 1; transform: translateY(0); }

.finale-sub {
  font-family: var(--font-body-ar); font-size: clamp(14px, 1.6vw, 17px);
  color: var(--muted); line-height: 2;
  max-width: 560px;
  margin-top: 3vh;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.finale.in .finale-sub { opacity: 1; transform: translateY(0); }

.finale-ctas {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  margin-top: 5vh;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.finale.in .finale-ctas { opacity: 1; transform: translateY(0); }

.btn {
  font-family: var(--font-display-ar); font-weight: 700; font-size: 16px;
  border-radius: 100px;
  padding: 16px 38px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.30);
}
.btn-primary:hover { box-shadow: var(--glow-primary), var(--shadow-md); }
.btn-ghost {
  color: var(--primary);
  border: 1px solid rgba(45, 212, 191, 0.4);
  background: transparent;
}
.btn-ghost:hover { box-shadow: var(--glow-primary); }

/* ── classic site footer + WhatsApp float (ported from css/site.css) ── */

.site-footer {
  position: relative; z-index: 6;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: rgba(13, 17, 23, 0.5);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-display-ar); font-weight: 700; font-size: 13.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li a {
  font-family: var(--font-body-ar); font-size: 13px;
  color: var(--muted);
  transition: color 0.25s ease;
}
.footer-grid li a:hover { color: var(--primary); }
.footer-brand p {
  font-family: var(--font-body-ar); font-size: 13px;
  color: var(--muted);
  margin: 14px 0 18px; max-width: 32ch;
}

.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.social:hover {
  color: var(--primary);
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.footer-bottom {
  border-top: 1px solid var(--divider);
  padding-top: 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-bottom p { font-family: var(--font-body-ar); font-size: 12.5px; color: var(--muted); }
.footer-bottom .handle {
  font-family: var(--font-display-en); font-size: 12.5px;
  direction: ltr; margin-inline-start: auto;
  color: var(--muted);
}

.wa-float {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px;
  z-index: 95;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #1FA855; color: #fff;
  box-shadow: 0 8px 28px rgba(31, 168, 85, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0; visibility: hidden;
}
.wa-float.show { opacity: 1; visibility: visible; }
.wa-float:hover { color: #fff; transform: scale(1.09) translateY(-2px); box-shadow: 0 12px 34px rgba(31, 168, 85, 0.5); }
.wa-float svg { width: 27px; height: 27px; }
.wa-float::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #1FA855;
  animation: waPing 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes waPing { 0% { transform: scale(1); opacity: 0.65; } 70%, 100% { transform: scale(1.75); opacity: 0; } }

/* ── responsive ───────────────────────────────────────────────── */

.footer-pages { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-pages a {
  font-family: var(--font-body-ar); font-weight: 500; font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease;
}
.footer-pages a:hover { color: var(--primary); }

@media (max-width: 900px) {
  .site-header .wrap { gap: 18px; }
  .nav-toggle { display: flex; }
  .site-header .nav {
    position: fixed; top: 72px; inset-inline: 0;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch;
    padding: 24px; gap: 4px;
    border-bottom: 1px solid var(--border);
    display: none;
    z-index: 99;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .site-header .nav.open { display: flex; }
  .site-header .nav a:not(.btn) { padding: 13px 8px; font-size: 15px; border-radius: 10px; }
  .site-header .nav a:not(.btn):hover { background: var(--surface); }
  .site-header .nav .btn { margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; padding: 7vh 6vw; }

  .scene-head { top: 9vh; }
  .holo-terminal { left: 4vw; top: 13vh; width: 200px; }
  .holo-graph { left: 4vw; top: 34vh; width: 150px; }
  .holo-chart { display: none; }
  .holo-grid { display: none; }

  .pillar-deck { inset-inline: 5vw; width: auto; bottom: 9vh; height: 280px; }

  /* one work card at a time, bottom-anchored like the services deck */
  .work-card { position: absolute; inset-inline: 5vw !important; width: auto; padding: 20px 22px; top: auto !important; bottom: 9vh; }
  .work-card h3 { font-size: 19px; }
  .work-card p { font-size: 13.5px; line-height: 1.85; }
  .wall-panel { width: 44vw; }

  /* keep the bottom-right corner clear of the WhatsApp float */
  .pillar-dots { inset-inline: 0; justify-content: center; bottom: 3vh; }
  .wa-float { inset-inline-start: auto; inset-inline-end: 18px; width: 48px; height: 48px; }
  .wa-float svg { width: 24px; height: 24px; }

  .hero-sub { line-height: 1.9; }
  .finale .scene-head-static { position: static; align-self: flex-start; margin-bottom: 6vh; }

  .band { padding: 10vh 5vw; }
  .band-en { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .course-hero { padding: 32px 26px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-portrait { max-width: 320px; }
  .pillar-points li { font-size: 12.5px; }
}

@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-name { font-size: clamp(56px, 19vw, 92px); }
  .hero-sub { font-size: 13.5px; }
  .phase-title { font-size: clamp(40px, 13.5vw, 66px); }
  .phase-sub { font-size: 13.5px; }
  .cue-hand { width: 48px; height: 61px; }
  .cue-label { font-size: 12.5px; }
  .scroll-cue::before { width: 140px; height: 140px; }

  .pillar-deck { bottom: 7vh; }
  .pillar-card { padding: 20px 20px; }
  .pillar-card h3 { font-size: 19px; }
  .pillar-card p { font-size: 13px; line-height: 1.85; }
  .pillar-points li { font-size: 12px; line-height: 1.7; }

  .scene-index, .band-index { font-size: 44px; }
  .scene-title { font-size: 24px; }
  .band-head h2 { font-size: 24px; }

  .course-hero { padding: 26px 20px; }
  .course-ctas .btn, .finale-ctas .btn { width: 100%; text-align: center; }
  .stats-inner { padding: 6vh 6vw; gap: 28px 12px; }
  .stat-num { font-size: 36px; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

/* hero footage keeps the head → D morph in the left third,
   so the copy moves to the empty right side (RTL start) */
@media (min-width: 901px) {
  .hero-type { justify-items: start; text-align: start; padding-inline: 7vw 0; }
  .hero-phase { align-items: flex-start; max-width: 50vw; }
  .hero-name { font-size: clamp(64px, 9vw, 150px); justify-content: flex-start; }
  .phase-title { font-size: clamp(44px, 6.5vw, 104px); }
}

/* phones: the morph sits in the top half of the frame, copy below it */
@media (max-width: 900px) {
  .hero-type { align-items: end; padding-bottom: 23svh; }
  .hero-kicker { margin-bottom: 2vh; }
}

/* ── reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .cue-hand .sc-hand { animation: none; }
  .hero-phase-alt { display: none; }
  .finale-title, .finale-sub, .finale-ctas { opacity: 1; transform: none; transition: none; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ═══ products band (index) ═══ */
.product-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 40px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 42px;
  position: relative; overflow: hidden;
}
.product-hero::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: var(--accent-line);
}
.product-hero::after {
  content: ''; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 120%;
  background: radial-gradient(ellipse at 50% 50%, rgba(45,212,191,.12), transparent 65%);
  pointer-events: none;
}
.product-en {
  display: inline-block; font-family: var(--font-display-en); font-size: 11px;
  letter-spacing: .22em; color: var(--muted); direction: ltr; margin: -6px 0 14px;
}
.product-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.product-visual {
  position: relative; z-index: 1; display: flex; justify-content: center;
  perspective: 1200px; text-decoration: none;
}
.product-visual img {
  width: min(280px, 90%); height: auto; border-radius: 6px 12px 12px 6px;
  box-shadow: 0 36px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotateY(-16deg) rotateX(3deg);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.product-visual:hover img { transform: rotateY(-4deg) rotateX(1deg) translateY(-6px); }
@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .product-visual { order: -1; }
  .product-visual img { width: min(220px, 70%); }
}
