/* =========================================================
   Said Rajeb · personal site
   Mobile-first · violet / gold · 3D scroll
   ========================================================= */

@font-face { font-family: "Sora"; src: url(/fonts/sora-latin-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Cairo"; src: url(/fonts/cairo-arabic-wght-normal.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Playfair"; src: url(/fonts/playfair-display-latin-400-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiri"; src: url(/fonts/amiri-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --bg: #07060d;
  --bg-2: #0f0b1d;
  --card: rgba(26, 19, 48, .72);
  --line: rgba(196, 170, 255, .14);
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --violet-3: #c4b5fd;
  --gold: #e2b865;
  --gold-2: #f6dc9c;
  --text: #f5f2ff;
  --muted: #a8a1c4;
  --wa: #25d366;

  --font: "Sora", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair", "Amiri", Georgia, serif;
  --pad: 20px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

html[dir="rtl"] {
  --font: "Cairo", "Sora", system-ui, sans-serif;
  --serif: "Amiri", "Cairo", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
strong { color: #fff; font-weight: 600; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-2); }
html[dir="rtl"] em { font-style: normal; color: var(--gold-2); }
::selection { background: var(--violet); color: #fff; }

/* ---------- ambient background ---------- */
#net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
.glow { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: .45; }
.glow-a { width: 70vw; height: 70vw; background: #5b21b6; top: -20vw; left: -25vw; }
.glow-b { width: 60vw; height: 60vw; background: #7e22ce; bottom: -25vw; right: -25vw; opacity: .3; }
main, .foot, .marquee { position: relative; z-index: 1; }

/* ---------- header ---------- */
.top {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(7, 6, 13, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.mono {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), #3b0f7a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 8px 24px -8px rgba(124,58,237,.8);
  font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: 15px;
}
.mono span { background: linear-gradient(180deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.lang {
  height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-family: "Cairo", "Sora", sans-serif;
}
.lang:active { transform: scale(.96); }
.wa-mini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.35); }
.wa-mini svg { width: 20px; height: 20px; fill: var(--wa); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: #fff; box-shadow: 0 14px 34px -12px rgba(168,85,247,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1206; box-shadow: 0 14px 34px -14px rgba(226,184,101,.9); }
.btn-gold svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-wa { background: var(--wa); color: #06210f; box-shadow: 0 14px 34px -14px rgba(37,211,102,.9); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; }
.hero-stage { position: relative; height: 100%; perspective: 1200px; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; transform-origin: 50% 0%;
  overflow: hidden; will-change: transform;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,6,13,.55) 0%, rgba(7,6,13,0) 22%, rgba(7,6,13,0) 42%, rgba(7,6,13,.85) 72%, var(--bg) 100%),
    radial-gradient(120% 60% at 50% 100%, rgba(91,33,182,.45), transparent 70%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad) calc(88px + env(safe-area-inset-bottom));
}
.eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--violet-3); font-weight: 600; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.hero-name {
  margin: 0; font-size: clamp(64px, 21vw, 150px); line-height: .86; font-weight: 800; letter-spacing: -.045em;
  font-family: "Sora", sans-serif; text-transform: uppercase;
}
.hero-name .line { display: block; }
.hero-name .accent {
  background: linear-gradient(100deg, #fff 0%, var(--violet-3) 40%, var(--violet-2) 70%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[dir="rtl"] .hero-name { direction: ltr; text-align: right; }
.hero-sub { margin: 16px 0 24px; font-size: 16px; color: #ddd6f5; line-height: 1.5; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn { flex: 1 1 auto; }
.scroll-cue {
  position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 26px; background: linear-gradient(var(--violet-3), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(15,11,29,.7); padding: 16px 0; transform: rotate(-2deg) scale(1.04); margin: 40px 0 10px; }
.marquee-track { display: flex; width: max-content; animation: marq 32s linear infinite; }
html[dir="rtl"] .marquee-track { animation-name: marq-rtl; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; padding-inline-end: 22px; font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
html[dir="rtl"] .marquee-track span { letter-spacing: 0; font-size: 17px; }
.marquee-track span::after { content: "◆"; color: var(--gold); font-size: 10px; }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes marq-rtl { to { transform: translateX(50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 90px var(--pad); max-width: 1120px; margin: 0 auto; }
.label { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .label { letter-spacing: 0; font-size: 14px; }
.label span { color: var(--gold); font-weight: 700; }
.label b { font-weight: 600; }
.label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
html[dir="rtl"] .label::after { background: linear-gradient(270deg, var(--line), transparent); }
.title { margin: 0 0 34px; font-size: clamp(38px, 11vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
html[dir="rtl"] .title { letter-spacing: 0; line-height: 1.25; }
.lead { color: #cfc8e8; font-size: 17px; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; gap: 34px; }
.tilt-card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; transform-style: preserve-3d; will-change: transform; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; transform: scale(1.12); will-change: transform; }
.about-photo figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: rgba(7,6,13,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; border: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.2); flex: none; }
.about-text p { margin: 0 0 18px; font-size: 17px; color: #d7d0ee; }
.about-text p:first-child { font-size: 20px; color: #fff; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 40px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 18px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: 34px; direction: ltr; line-height: 1.1; font-weight: 800; background: linear-gradient(180deg, #fff, var(--violet-3)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: "Sora", sans-serif; }
.stat > span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
html[dir="rtl"] .stat > span { font-size: 13px; }

/* ---------- PRINCIPLE ---------- */
.principle { padding-top: 60px; }
.words { margin: 0; font-size: clamp(28px, 8.2vw, 58px); line-height: 1.18; font-weight: 700; letter-spacing: -.025em; }
html[dir="rtl"] .words { letter-spacing: 0; line-height: 1.45; }
.words .w { opacity: .14; transition: none; }
.words .w.gold { color: var(--gold-2); }
.sign { margin: 26px 0 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); }
.sign::before { content: "— "; }

/* ---------- SERVICES (3D stack) ---------- */
.stack { position: relative; perspective: 1400px; }
.card3d { position: sticky; top: calc(96px + var(--i, 0) * 16px); margin-bottom: 26px; transform-origin: 50% 0%; will-change: transform; }
.card3d:last-child { margin-bottom: 0; }
.card-inner {
  position: relative; overflow: hidden; min-height: 330px; padding: 28px 24px;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(168,85,247,.35), transparent 55%),
    linear-gradient(160deg, #1d1438 0%, #120d24 60%, #0c0918 100%);
  border: 1px solid rgba(196,170,255,.2);
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
}
html[dir="rtl"] .card-inner { background: radial-gradient(120% 90% at 0% 0%, rgba(168,85,247,.35), transparent 55%), linear-gradient(200deg, #1d1438 0%, #120d24 60%, #0c0918 100%); }
.card-inner::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(226,184,101,.18); box-shadow: 0 0 0 30px rgba(226,184,101,.04), 0 0 0 60px rgba(226,184,101,.03);
}
html[dir="rtl"] .card-inner::after { inset: auto auto -60px -40px; }
.num { position: absolute; top: 22px; inset-inline-end: 24px; font-family: "Sora"; font-weight: 800; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(196,170,255,.35); }
.ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(168,85,247,.3), rgba(124,58,237,.12)); border: 1px solid rgba(196,170,255,.28); margin-bottom: 70px; }
.ico svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-inner h3 { margin: 0 0 10px; font-size: 25px; line-height: 1.15; letter-spacing: -.02em; }
html[dir="rtl"] .card-inner h3 { letter-spacing: 0; line-height: 1.4; }
.card-inner p { margin: 0; color: #c9c1e4; font-size: 15.5px; max-width: 34ch; }

/* ---------- WORLD RING ---------- */
.world { position: relative; height: 100svh; }
.world-pin { height: 100svh; display: flex; flex-direction: column; padding: 84px var(--pad) calc(26px + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }
.world-head .title { margin-bottom: 0; font-size: clamp(34px, 10vw, 68px); }
.ring-viewport { position: relative; flex: 1; overflow: hidden; margin: 0 calc(var(--pad) * -1); perspective: 1100px; perspective-origin: 50% 40%; display: grid; place-items: center; min-height: 0; }
.ring { position: relative; width: var(--cw, 190px); height: var(--ch, 253px); transform-style: preserve-3d; will-change: transform; }
.ring .rc {
  position: absolute; inset: 0; margin: 0; border-radius: 18px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1);
  background: #140f26;
}
.ring .rc img { width: 100%; height: 100%; object-fit: cover; }
.ring .rc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,6,13,.75)); }
.ring .rc span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-size: 12px; font-weight: 600; line-height: 1.25; }
.world-foot { padding-inline-end: 72px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.place { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.place-count { font-size: 13px; color: var(--muted); font-family: "Sora"; white-space: nowrap; }
.place-count b { color: var(--gold); }

/* ---------- MOMENTS strips ---------- */
.moments { position: relative; padding: 70px 0 20px; overflow: hidden; }
.moments-quote { max-width: 1120px; margin: 0 auto 30px; padding: 0 var(--pad); font-family: var(--serif); font-style: italic; font-size: clamp(24px, 7vw, 44px); line-height: 1.25; color: #e9e3ff; }
html[dir="rtl"] .moments-quote { font-style: normal; line-height: 1.6; }
.strip { display: flex; gap: 12px; width: max-content; margin-bottom: 12px; will-change: transform; }
.strip figure { margin: 0; width: 150px; height: 190px; border-radius: 16px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- STAGE ---------- */
.stage-layers { position: relative; height: 128vw; max-height: 620px; margin-bottom: 30px; perspective: 1000px; }
.layer { position: absolute; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1); will-change: transform; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.l1 { width: 78%; height: 66%; top: 0; inset-inline-start: 0; z-index: 2; }
.l2 { width: 60%; height: 40%; top: 8%; inset-inline-end: 0; z-index: 1; opacity: .9; }
.l3 { width: 50%; height: 48%; bottom: 0; inset-inline-end: 4%; z-index: 3; border: 3px solid var(--bg); }

/* ---------- BOOK ---------- */
.book { text-align: center; overflow: hidden; }
.book .label { text-align: start; }
.book-scene { position: relative; height: 470px; perspective: 1400px; display: grid; place-items: center; margin: 10px 0 20px; }
.book3d { --w: 230px; --h: 345px; --d: 34px; position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateY(-32deg) rotateX(8deg); will-change: transform; }
.book3d .face { position: absolute; }
.book3d .front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: inset 4px 0 10px rgba(0,0,0,.4); }
.book3d .front img { width: 100%; height: 100%; object-fit: cover; }
.book3d .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,.18) 0%, transparent 18%, transparent 70%, rgba(255,255,255,.08) 100%); pointer-events: none; }
.book3d .back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: linear-gradient(160deg, #1b1438, #07060d); border-radius: 6px 2px 2px 6px; }
.book3d .spine { width: var(--d); height: var(--h); left: calc(50% - var(--d) / 2); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(90deg, #0b0918, #1e1540 50%, #0b0918); display: grid; place-items: center; }
/* Arabic book: spine on the right side when looking at the cover */
.book3d .spine span { writing-mode: vertical-rl; font-family: "Cairo", sans-serif; font-size: 12px; font-weight: 700; color: var(--gold-2); letter-spacing: .02em; }
.book3d .pages { width: calc(var(--d) - 4px); height: calc(var(--h) - 8px); top: 4px; left: calc(50% - (var(--d) - 4px) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2 - 3px)); background: repeating-linear-gradient(90deg, #f3ecdc 0 1px, #d9cfb8 1px 2px); }
.book3d .top-edge, .book3d .bottom-edge { width: calc(var(--w) - 4px); height: calc(var(--d) - 4px); left: 2px; top: calc(50% - (var(--d) - 4px) / 2); background: repeating-linear-gradient(0deg, #efe7d4 0 1px, #d6ccb4 1px 2px); }
.book3d .top-edge { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 2px)); }
.book3d .bottom-edge { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 2px)); }
.book-shadow { position: absolute; bottom: 20px; left: 50%; width: 260px; height: 40px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(168,85,247,.55), transparent); filter: blur(8px); }
.book-title { margin: 0 0 12px; font-size: clamp(32px, 9.5vw, 60px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
html[dir="rtl"] .book-title { letter-spacing: 0; line-height: 1.3; }
html[dir="rtl"] .book-title small { display: none; }
.book-title small { display: block; margin-top: 10px; font-family: "Amiri", serif; font-size: .62em; font-weight: 400; color: var(--gold-2); letter-spacing: 0; }
.book-tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: #e9e3ff; margin: 0 auto 16px; max-width: 30ch; line-height: 1.45; }
html[dir="rtl"] .book-tag { font-style: normal; }
.book .lead { max-width: 40ch; margin: 0 auto 10px; }
.note { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 26px; }
html[dir="rtl"] .note { letter-spacing: 0; font-size: 14px; }
.book-cta { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }

/* ---------- QUOTES coverflow ---------- */
.quotes { padding-inline: 0; }
.quotes .label, .quotes .title { padding-inline: var(--pad); }
.coverflow {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 20px 12vw 30px; perspective: 900px; -webkit-overflow-scrolling: touch;
}
.coverflow::-webkit-scrollbar { display: none; }
.qcard {
  flex: 0 0 76vw; max-width: 420px; scroll-snap-align: center; margin: 0 -2vw;
  min-height: 300px; padding: 30px 26px; border-radius: 24px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, rgba(40,28,78,.95), rgba(14,10,28,.95));
  border: 1px solid rgba(196,170,255,.2);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.9);
  will-change: transform; transform-style: preserve-3d;
}
.qcard .qm { font-family: "Playfair", serif; font-size: 70px; line-height: .6; color: var(--gold); height: 34px; }
.qcard p { margin: 0; font-size: 23px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
html[dir="rtl"] .qcard p { font-size: 22px; line-height: 1.7; letter-spacing: 0; }
.qcard small { color: var(--violet-3); font-size: 13px; letter-spacing: .08em; }
.cf-dots { display: flex; justify-content: center; gap: 6px; }
.cf-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); transition: width .3s, background .3s; }
.cf-dots i.on { width: 22px; background: var(--gold); }

/* ---------- CONTACT ---------- */
.contact-card { position: relative; border-radius: 28px; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.1); }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,6,13,.1) 0%, rgba(7,6,13,.55) 40%, rgba(12,8,26,.97) 78%); }
.contact-body { position: relative; z-index: 2; padding: 26px 22px 26px; }
.contact-body .title { font-size: clamp(32px, 9vw, 60px); margin-bottom: 14px; }
.contact-body .lead { margin: 0 0 22px; }
.contact-body .btn { width: 100%; }
.follow { margin: 46px 0 14px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); text-align: center; }
html[dir="rtl"] .follow { letter-spacing: 0; font-size: 14px; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.soc { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s; }
.soc:active { transform: scale(.97); }
.soc svg { width: 26px; height: 26px; fill: none; stroke: var(--violet-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.soc svg .fill { fill: var(--violet-3); stroke: none; }
.soc.js-wa svg { fill: var(--wa); stroke: none; }
.soc span { font-weight: 600; font-size: 15px; }
.soc small { color: var(--muted); font-size: 12px; text-align: start; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 50px var(--pad) calc(100px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot .mono { margin: 0 auto 16px; }
.foot p { margin: 0 0 6px; }
.disclaimer { font-size: 11.5px; opacity: .75; max-width: 40ch; margin-inline: auto !important; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transform: scale(0); transition: transform .45s var(--ease);
}
.wa-float.show { transform: scale(1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(5,4,10,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 14px 20px; opacity: 0; transition: opacity .35s; }
.modal.open { opacity: 1; }
.modal[hidden] { display: none; }
.modal-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); z-index: 2; }
.video-frame { width: min(100%, calc((100svh - 100px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(124,58,237,.6); }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.flip-wrap { width: min(92vw, 460px, calc((100svh - 190px) / 1.5)); }
#flipbook { margin: 0 auto; }
.fpage { background: #07060d; overflow: hidden; }
.fpage img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.fpage.cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 22px;
  background: radial-gradient(90% 60% at 50% 0%, rgba(168,85,247,.45), transparent 70%), linear-gradient(180deg, #120d24, #07060d);
  color: #fff; font-family: "Cairo", "Sora", sans-serif;
}
.fpage.cta .cta-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 14px; }
.fpage.cta h4 { margin: 0; font-family: "Amiri", serif; font-size: 30px; font-weight: 400; color: var(--gold-2); line-height: 1.3; }
.fpage.cta p { margin: 0; color: #d9d2f2; font-size: 15px; line-height: 1.6; max-width: 26ch; }
.fpage.cta a { margin-top: 8px; }
.flip-bar { display: flex; align-items: center; gap: 18px; margin-top: 16px; font-family: "Sora"; font-size: 14px; color: var(--muted); }
.fb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); font-size: 26px; line-height: 1; }
.flip-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- reveal helper ---------- */
.reveal { will-change: transform, opacity; }

/* =========================================================
   Larger screens (site is mobile-first; this keeps desktop elegant)
   ========================================================= */
@media (min-width: 760px) {
  :root { --pad: 40px; }
  .hero-media { inset: 0; }
  .hero-content { max-width: 1120px; margin: 0 auto; padding-bottom: 110px; }
  .hero-cta .btn { flex: 0 0 auto; }
  .about-grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 60px; }
  .stack { max-width: 640px; margin: 0 auto; }
  .stage-layers { height: 560px; }
  .qcard { flex-basis: 380px; margin: 0 -10px; }
  .coverflow { padding-inline: calc(50% - 190px); }
  .socials { grid-template-columns: repeat(4, 1fr); }
  .contact-card { min-height: 600px; }
  .contact-body { max-width: 560px; padding: 40px; }
  .contact-body .btn { width: auto; }
  .strip figure { width: 210px; height: 270px; }
}
@media (min-width: 1000px) {
  /* Vertical video: on wide screens show it as a floating phone-sized card */
  .hero-media { inset: 90px auto 60px 55%; width: min(38vw, 440px); border-radius: 28px; box-shadow: 0 50px 120px -30px rgba(124,58,237,.7), 0 0 0 1px rgba(255,255,255,.12); }
  html[dir="rtl"] .hero-media { inset: 90px 55% 60px auto; }
  .hero-shade { background: linear-gradient(180deg, transparent 60%, rgba(7,6,13,.5)); }
  .hero-content { top: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); }
  .hero-content > * { max-width: 48%; }
  .hero-name { font-size: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .wa-float::before, .scroll-cue i { animation: none; }
  .words .w { opacity: 1; }
}
