/* =========================================================
   Felix — Portfolio  |  Space · Glass · Apple-grade motion
   ========================================================= */
:root {
  --bg: #04030a;
  --bg-2: #0b0716;
  --violet: #a855f7;
  --violet-2: #c084fc;
  --violet-3: #7c3aed;
  --magenta: #e879f9;
  --gold: #e9c98b;
  --text: #f6f2fc;
  --muted: #a69bbd;
  --dim: #6d6283;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-2: rgba(192, 132, 252, 0.38);
  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 30px 80px -30px rgba(124, 58, 237, 0.5);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-apple: cubic-bezier(.28, .11, .32, 1);
  --container: 1240px;
  --font: "Alexandria", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Sora", "Alexandria", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
html[lang="en"] body { line-height: 1.65; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 8px; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.num { font-family: var(--font-num); direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Space layers ---------- */
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; }
.space-fallback {
  position: fixed; inset: 0; z-index: -4; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(192,38,211,.22), transparent 60%),
    radial-gradient(700px 500px at 50% 50%, rgba(76,29,149,.18), transparent 70%),
    var(--bg);
}
.grain {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .05; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .8s var(--ease), visibility .8s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .sig { font-family: var(--font); font-weight: 800; font-size: clamp(56px, 11vw, 110px); letter-spacing: -.04em; line-height: 1; direction: ltr; animation: rise 1s var(--ease-apple) both; }
.preloader .bar { width: 160px; height: 2px; margin: 22px auto 0; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.preloader .bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--violet-2), transparent); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Brand mark ---------- */
.brand { font-family: var(--font); font-weight: 800; letter-spacing: -.045em; direction: ltr; unicode-bidi: isolate; line-height: 1; color: var(--text); }
.brand i { font-style: normal; color: var(--violet-2); text-shadow: 0 0 14px rgba(192,132,252,.9); }
.logo { font-size: 28px; padding-top: 2px; }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 24px 60px -30px rgba(0,0,0,.7);
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding-inline: 26px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s, border-color .4s; isolation: isolate;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: linear-gradient(135deg, #b46cff 0%, #8b3dff 50%, #d94dff 100%); color: #fff; box-shadow: 0 10px 40px -10px rgba(168,85,247,.85), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: inherit; filter: blur(18px); opacity: .5; transition: opacity .4s; }
.btn-primary:hover { box-shadow: 0 18px 50px -10px rgba(168,85,247,1), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover::after { opacity: .9; }
.btn-light { background: #fff; color: #0b0716; }
.btn-light:hover { box-shadow: 0 14px 40px -12px rgba(255,255,255,.6); }
.btn-ghost { background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: var(--glass-2); border-color: var(--stroke-2); }
.btn-wa { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; box-shadow: 0 10px 40px -12px rgba(37,211,102,.7); }
.btn-sm { --h: 42px; padding-inline: 18px; font-size: 14px; }

/* ---------- Header ---------- */
.header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; transition: transform .6s var(--ease); }
.header.hide { transform: translateY(-140%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding-inline: 22px 10px; border-radius: 999px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s, background .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.07); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn { height: 42px; min-width: 52px; padding-inline: 14px; border-radius: 999px; font-weight: 600; font-size: 13px; border: 1px solid var(--stroke); background: rgba(255,255,255,.04); transition: border-color .3s, background .3s; }
.lang-btn:hover { border-color: var(--stroke-2); background: rgba(255,255,255,.08); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--stroke); place-items: center; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; transition: background .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: var(--text); transition: transform .35s var(--ease); }
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 100px 28px 40px; background: rgba(4,3,10,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 26px; font-weight: 700; padding: 10px 0; border-bottom: 1px solid var(--stroke); transform: translateY(16px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .04s; } .menu-open .mobile-menu a:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .12s; } .menu-open .mobile-menu a:nth-child(5) { transition-delay: .16s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: .2s; } .menu-open .mobile-menu a:nth-child(7) { transition-delay: .24s; }
.mobile-menu .btn { margin-top: 24px; font-size: 16px; border: 0; }

/* ---------- Sections ---------- */
section { position: relative; padding-block: clamp(90px, 12vw, 160px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--violet-2); background: rgba(168,85,247,.08); border: 1px solid rgba(168,85,247,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 10px var(--violet-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 48ch; color: var(--muted); font-size: 17px; }
.h2 { margin: 18px 0 0; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.3; font-weight: 800; letter-spacing: -.01em; max-width: 18ch; }
html[lang="en"] .h2 { letter-spacing: -.045em; line-height: 1.04; }
.grad { background: linear-gradient(100deg, #f5d0fe 0%, #c084fc 35%, #a855f7 60%, #e879f9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-block: .06em .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 130px; padding-bottom: 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; position: relative; z-index: 1; }
.hero h1 { margin: 24px 0 28px; font-size: clamp(42px, 6.6vw, 92px); line-height: 1.38; font-weight: 800; letter-spacing: -.01em; }
html[lang="en"] .hero h1 { letter-spacing: -.05em; line-height: 1.02; }
.hero h1 .line { display: block; overflow: hidden; padding-block: .04em .12em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-apple); }
.hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.loaded .hero h1 .line > span { transform: none; }
.hero h1 .grad { white-space: nowrap; }
.hero .lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); max-width: 54ch; margin: 0 0 36px; }
.hero .lead strong { color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; gap: clamp(20px, 3.4vw, 46px); margin-top: 50px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-family: var(--font-num); font-size: clamp(28px, 2.8vw, 38px); font-weight: 700; line-height: 1.1; direction: ltr; text-align: start; }
html[dir="rtl"] .hero-meta b { text-align: right; }
.hero-meta > div > span { font-size: 13px; color: var(--dim); }

/* Astronaut stage */
.astro-stage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.12; justify-self: center; perspective: 1200px; touch-action: pan-y; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(192,132,252,.28); transform: translate(-50%, -50%) rotateX(72deg); pointer-events: none; }
.orbit-ring.r1 { width: 96%; aspect-ratio: 1; box-shadow: 0 0 40px rgba(168,85,247,.25), inset 0 0 40px rgba(168,85,247,.15); }
.orbit-ring.r2 { width: 122%; aspect-ratio: 1; border-style: dashed; border-color: rgba(232,121,249,.22); }
.orbit-ring .moon { position: absolute; inset: 0; animation: orbit 14s linear infinite; }
.orbit-ring .moon::after { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #c084fc 45%, #6d28d9); box-shadow: 0 0 18px #c084fc; }
.orbit-ring.r2 .moon { animation-duration: 24s; animation-direction: reverse; }
.orbit-ring.r2 .moon::after { width: 9px; height: 9px; margin-left: -4.5px; top: -4.5px; background: radial-gradient(circle at 30% 30%, #fff, #f0abfc 50%, #a21caf); }
@keyframes orbit { to { transform: rotate(360deg); } }
.astro-glow { position: absolute; left: 50%; top: 48%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,.45), rgba(124,58,237,.12) 45%, transparent 70%); filter: blur(10px); pointer-events: none; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .75; } }
.astro { position: absolute; inset: 4% 16% 4%; transform-style: preserve-3d; will-change: transform; cursor: grab; z-index: 2; }
.astro:active { cursor: grabbing; }
.astro canvas, .astro img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 0 30px rgba(168,85,247,.35)); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.astro img.fallback { mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }
.astro-bubble {
  position: absolute; z-index: 4; top: 4%; inset-inline-start: -2%; max-width: 230px; padding: 12px 16px; border-radius: 18px 18px 18px 4px; font-size: 14px; font-weight: 500; line-height: 1.55;
  opacity: 0; transform: translateY(10px) scale(.92); transform-origin: bottom left; transition: opacity .4s var(--ease), transform .5s var(--ease); pointer-events: none;
}
html[dir="rtl"] .astro-bubble { border-radius: 18px 18px 4px 18px; transform-origin: bottom right; }
.astro-bubble.show { opacity: 1; transform: none; }
.astro-hint { position: absolute; z-index: 4; bottom: 0; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.astro-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.spark { position: absolute; z-index: 3; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff, #e879f9 50%, transparent 70%); box-shadow: 0 0 10px #e879f9; }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; font-size: 13px; font-weight: 500; animation: bob 6s ease-in-out infinite; }
.float-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(168,85,247,.35), rgba(232,121,249,.2)); border: 1px solid rgba(192,132,252,.35); flex: none; }
.float-chip .ic svg { width: 18px; height: 18px; }
.float-chip small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.3; }
.chip-1 { top: 26%; inset-inline-end: -6%; }
.chip-2 { bottom: 16%; inset-inline-end: -2%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid var(--stroke-2); border-radius: 14px; opacity: .7; }
.scroll-cue::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--violet-2); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* ---------- Pen-tool paths ---------- */
.pen { position: absolute; pointer-events: none; z-index: 0; overflow: visible; }
.pen .p { fill: none; stroke: url(#penGrad); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.6s var(--ease-apple); }
.pen .h { stroke: rgba(192,132,252,.55); stroke-width: 1; opacity: 0; transition: opacity .6s var(--ease) 1.4s; }
.pen .a { fill: #0b0716; stroke: #c084fc; stroke-width: 1.4; opacity: 0; transition: opacity .5s var(--ease); }
.pen .hc { fill: #c084fc; opacity: 0; transition: opacity .6s var(--ease) 1.6s; }
.pen .tool { opacity: 0; transition: opacity .6s var(--ease) 2.2s; }
.pen.in .p { stroke-dashoffset: 0; }
.pen.in .h, .pen.in .hc, .pen.in .tool, .pen.in .a { opacity: 1; }
.pen.in .a:nth-of-type(2) { transition-delay: .6s; } .pen.in .a:nth-of-type(3) { transition-delay: 1.2s; } .pen.in .a:nth-of-type(4) { transition-delay: 1.8s; }
.pen-hero { width: 44%; top: 14%; inset-inline-start: 2%; opacity: .55; }
.pen-statement { width: 52%; bottom: 0; inset-inline-end: -6%; opacity: .5; }
.pen-contact { width: 36%; top: -50px; inset-inline-start: 6%; opacity: .6; }

/* ---------- Marquee ---------- */
.marquee { padding-block: 30px; border-block: 1px solid var(--stroke); background: rgba(10,6,20,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; direction: ltr; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 46px; padding-inline: 23px; font-family: var(--font-num); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; color: rgba(246,242,252,.5); white-space: nowrap; letter-spacing: -.02em; }
.marquee-track span::after { content: "✦"; color: var(--violet); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement (Apple-style word reveal) ---------- */
.statement { padding-block: clamp(110px, 16vw, 220px); overflow: hidden; }
.statement-text { font-size: clamp(28px, 4.4vw, 60px); font-weight: 700; line-height: 1.6; letter-spacing: -.01em; max-width: 22ch; margin: 22px 0 0; position: relative; z-index: 1; }
html[lang="en"] .statement-text { line-height: 1.18; letter-spacing: -.04em; }
.statement-text .w { color: rgba(246,242,252,.13); transition: color .45s var(--ease); }
.statement-text .w.on { color: var(--text); }
.statement-text .w.hl.on { color: var(--violet-2); text-shadow: 0 0 30px rgba(192,132,252,.45); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(170px, auto); gap: 16px; }
.tile { position: relative; padding: 28px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .4s, transform .6s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(168,85,247,.2), transparent 45%); }
.tile:hover { border-color: var(--stroke-2); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile .big { font-family: var(--font-num); font-weight: 800; font-size: clamp(64px, 8vw, 128px); line-height: .95; letter-spacing: -.05em; direction: ltr; text-align: start; }
html[dir="rtl"] .tile .big { text-align: right; }
.tile .mid { font-family: var(--font-num); font-weight: 700; font-size: clamp(40px, 4vw, 58px); line-height: 1; letter-spacing: -.04em; direction: ltr; text-align: start; }
html[dir="rtl"] .tile .mid { text-align: right; }
.tile .lbl { color: var(--muted); font-size: 15px; margin-top: 10px; }
.tile h3 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.t-years { grid-column: span 3; grid-row: span 2; background: radial-gradient(120% 90% at 100% 100%, rgba(168,85,247,.35), transparent 60%), linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018)); }
.t-years .planet-mini { position: absolute !important; width: 56%; aspect-ratio: 1; inset-inline-end: -12%; bottom: -16%; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #f5d0fe 0%, #c084fc 18%, #7c3aed 45%, #2e1065 75%); box-shadow: inset -30px -30px 80px rgba(0,0,0,.6), 0 0 80px rgba(168,85,247,.45); opacity: .9; animation: spinSlow 30s linear infinite; }
.t-years .planet-mini::after { content: ""; position: absolute; left: -24%; top: 44%; width: 148%; height: 16%; border-radius: 50%; border: 2px solid rgba(232,121,249,.5); transform: rotate(-16deg); }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.t-sm { grid-column: span 3; }
.t-third { grid-column: span 2; }
.t-credit { background: linear-gradient(135deg, rgba(233,201,139,.12), rgba(255,255,255,.02)); }
.t-credit .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(233,201,139,.15); border: 1px solid rgba(233,201,139,.35); color: var(--gold); margin-bottom: 18px; }
.t-credit .ic svg { width: 22px; height: 22px; }
.edu { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.edu svg { width: 20px; height: 20px; color: var(--violet-2); flex: none; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { position: relative; padding: 32px 28px; overflow: hidden; transition: transform .6s var(--ease), border-color .4s; transform-style: preserve-3d; }
.service::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(168,85,247,.18), transparent 45%); }
.service:hover { border-color: var(--stroke-2); }
.service:hover::before { opacity: 1; }
.service .no { position: absolute; top: 24px; inset-inline-end: 26px; font-family: var(--font-num); font-size: 13px; color: var(--dim); }
.service .ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px; background: linear-gradient(145deg, rgba(168,85,247,.3), rgba(232,121,249,.1)); border: 1px solid rgba(192,132,252,.35); box-shadow: 0 10px 30px -10px rgba(168,85,247,.7), inset 0 1px 0 rgba(255,255,255,.2); }
.service .ic svg { width: 26px; height: 26px; color: #f3e8ff; }
.service h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.service ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stroke); color: var(--muted); }

/* ---------- Toolkit orbit ---------- */
.toolkit-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.orbit-sys { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; justify-self: center; }
.orbit-sys .core { position: absolute; inset: 35%; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 32% 28%, #f5d0fe 0%, #c084fc 16%, #7c3aed 46%, #1e0a3c 80%); box-shadow: inset -24px -24px 60px rgba(0,0,0,.65), 0 0 90px rgba(168,85,247,.55); }
.orbit-sys .core .brand { font-size: clamp(20px, 2.4vw, 30px); }
.orbit-sys .track { position: absolute; border-radius: 50%; border: 1px dashed rgba(192,132,252,.3); animation: orbit 50s linear infinite; }
.orbit-sys .track.t1 { inset: 17%; }
.orbit-sys .track.t2 { inset: 1%; animation-duration: 70s; animation-direction: reverse; }
.orbit-sys:hover .track, .orbit-sys:hover .tool-b > span { animation-play-state: paused; }
.tool-b { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.tool-b > span { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; font-family: var(--font-num); font-weight: 800; font-size: 17px; letter-spacing: -.02em; animation: orbit 50s linear infinite reverse; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); }
.track.t2 .tool-b > span { animation-duration: 70s; animation-direction: normal; }
.tool-b > span svg { width: 30px; height: 30px; }
.tool-list { display: flex; flex-direction: column; gap: 24px; }
.tool-group h3 { margin: 0 0 12px; font-size: 15px; color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 14px; font-size: 14px; font-weight: 500; background: var(--glass); border: 1px solid var(--stroke); direction: ltr; transition: border-color .3s, transform .3s var(--ease); }
.chip:hover { border-color: var(--stroke-2); transform: translateY(-2px); }
.chip i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; font-family: var(--font-num); }
.chip i svg { width: 18px; height: 18px; }
.c-ps { background: #001e36; color: #31a8ff; border: 1px solid #31a8ff66; }
.c-ai { background: #330000; color: #ff9a00; border: 1px solid #ff9a0066; }
.c-id { background: #49021f; color: #ff3366; border: 1px solid #ff336666; }
.c-pr { background: #00005b; color: #9999ff; border: 1px solid #9999ff66; }
.c-cc { background: #0a0a0a; color: #fff; border: 1px solid #ffffff44; }
.c-gpt { background: #0d0d0d; color: #fff; border: 1px solid #10a37f88; }
.c-cl { background: #2a1610; color: #d97757; border: 1px solid #d9775788; }
.c-ff { background: linear-gradient(135deg, #2b0a0a, #4a0d1e); color: #ff6b5b; border: 1px solid #ff6b5b77; }
.c-fl { background: linear-gradient(135deg, #0b1a33, #0b2a24); color: #8ab4f8; border: 1px solid #8ab4f888; }
.c-hf { background: #0f0f0f; color: #d4ff3d; border: 1px solid #d4ff3d66; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.project { grid-column: span 4; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); background: var(--bg-2); transition: transform .6s var(--ease), border-color .4s, box-shadow .6s; transform-style: preserve-3d; }
.project.wide { grid-column: span 6; }
.project:hover { border-color: var(--stroke-2); box-shadow: 0 30px 70px -30px rgba(168,85,247,.6); }
.project .thumb { aspect-ratio: 808 / 632; overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .thumb img { transform: scale(1.06); }
.project .info { position: absolute; inset-inline: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; }
.project h3 { margin: 0; font-size: 16px; font-weight: 600; direction: ltr; text-align: start; }
html[dir="rtl"] .project h3 { text-align: right; }
.project .cat { font-size: 12px; color: var(--muted); }
.project .arrow { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #120a1f; transition: transform .5s var(--ease); }
.project .arrow svg { width: 16px; height: 16px; }
html[dir="rtl"] .project .arrow svg { transform: scaleX(-1); }
.project:hover .arrow { transform: rotate(-45deg); }
html[dir="rtl"] .project:hover .arrow { transform: rotate(45deg); }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Gallery (masonry) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 42px; padding-inline: 18px; border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid var(--stroke); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: all .35s var(--ease); white-space: nowrap; }
.filter:hover { color: var(--text); border-color: var(--stroke-2); }
.filter.active { color: #0b0716; background: #fff; border-color: #fff; }
.masonry { columns: 4 240px; column-gap: 16px; }
.m-item { position: relative; break-inside: avoid; margin: 0 0 16px; border-radius: 18px; overflow: hidden; border: 1px solid var(--stroke); background: var(--bg-2); cursor: zoom-in; opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s, box-shadow .5s; }
.m-item.in { opacity: 1; transform: none; }
.m-item:hover { border-color: var(--stroke-2); box-shadow: 0 24px 60px -24px rgba(168,85,247,.6); }
.m-item img { width: 100%; height: auto; transition: transform 1s var(--ease), opacity .6s; opacity: 0; }
.m-item img.loaded { opacity: 1; }
.m-item:hover img { transform: scale(1.04); }
.m-item .zoom { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: all .4s var(--ease); }
.m-item:hover .zoom { opacity: 1; transform: scale(1); }
.m-item .zoom svg { width: 17px; height: 17px; }
.m-item.skeleton { background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Logo carousel ---------- */
.logos-viewport { overflow: hidden; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); cursor: grab; touch-action: pan-y; }
.logos-viewport.dragging { cursor: grabbing; }
.logos-track { display: flex; gap: 16px; width: max-content; will-change: transform; padding-block: 8px; }
.logo-tile { flex: none; width: 210px; height: 120px; display: grid; place-items: center; padding: 16px 22px; border-radius: 22px; transition: border-color .4s, transform .5s var(--ease); }
.logo-tile:hover { border-color: var(--stroke-2); transform: translateY(-4px); }
.logo-tile img { max-width: 100%; max-height: 82px; width: auto; mix-blend-mode: lighten; filter: contrast(1.15); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.logos-nav { display: flex; gap: 10px; direction: ltr; }
.logos-nav button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--stroke); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: all .35s var(--ease); }
.logos-nav button:hover { background: #fff; color: #0b0716; border-color: #fff; }
.logos-nav svg { width: 20px; height: 20px; }

/* ---------- Creator / Videos ---------- */
.creator-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.c-stat { padding: 22px; border-radius: 22px; }
.c-stat b { display: block; font-family: var(--font-num); font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1; direction: ltr; text-align: start; }
html[dir="rtl"] .c-stat b { text-align: right; }
.c-stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.c-stat.ig b { background: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.video-tabs { display: inline-flex; padding: 5px; border-radius: 999px; gap: 4px; }
.video-tab { height: 44px; padding-inline: 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: all .35s var(--ease); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.video-tab .count { font-family: var(--font-num); font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
.video-tab.active { background: #fff; color: #0b0716; }
.video-tab.active .count { background: #0b0716; color: #fff; }
.reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; cursor: pointer; border: 1px solid var(--stroke); background: var(--bg-2); transition: transform .6s var(--ease), border-color .4s, box-shadow .6s; }
.reel:hover { transform: translateY(-8px); border-color: var(--stroke-2); box-shadow: 0 26px 60px -24px rgba(168,85,247,.7); }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video { opacity: 0; transition: opacity .5s; }
.reel.playing video { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,3,10,.8), transparent 42%); pointer-events: none; }
.reel .play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .4s var(--ease), opacity .4s; }
.reel .play svg { width: 20px; height: 20px; margin-left: 3px; }
.reel.playing .play { opacity: 0; transform: scale(.7); }
.reel .meta { position: absolute; z-index: 2; inset-inline: 14px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: rgba(255,255,255,.88); }
.reel .badge { padding: 3px 9px; border-radius: 999px; background: rgba(168,85,247,.35); border: 1px solid rgba(192,132,252,.5); font-size: 11px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reel .views { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-num); font-weight: 700; direction: ltr; }
.reel .views svg { width: 14px; height: 14px; }
.reel .dur { font-family: var(--font-num); direction: ltr; }
.reel.hidden { display: none; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tl-item { position: relative; padding: 24px 22px 22px; border-radius: 22px; transition: border-color .4s, transform .5s var(--ease); }
.tl-item:hover { border-color: var(--stroke-2); transform: translateY(-4px); }
.tl-item .yr { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-num); font-weight: 700; font-size: 13px; color: var(--violet-2); }
.tl-item .yr::before { content: ""; width: 9px; height: 9px; background: #0b0716; border: 1.5px solid var(--violet-2); transform: rotate(45deg); box-shadow: 0 0 10px rgba(192,132,252,.6); }
.tl-item h3 { margin: 10px 0 2px; font-size: 18px; font-weight: 700; }
.tl-item .role { font-size: 13px; color: var(--violet-2); opacity: .85; }
.tl-item p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 30px 24px; }
.step .n { font-family: var(--font-num); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(180deg, rgba(192,132,252,.95), rgba(192,132,252,.05)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 18px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-card { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 66px); border-radius: 36px; background: radial-gradient(120% 120% at 100% 0%, rgba(168,85,247,.38), transparent 50%), radial-gradient(100% 120% at 0% 100%, rgba(232,121,249,.22), transparent 50%), linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(192,132,252,.3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.contact-card::before { content: "Felix."; position: absolute; inset-inline-end: -1%; bottom: -10%; font-family: var(--font); font-weight: 800; font-size: clamp(130px, 22vw, 320px); letter-spacing: -.06em; line-height: 1; color: rgba(255,255,255,.035); pointer-events: none; direction: ltr; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact h2 { margin: 18px 0 18px; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.3; font-weight: 800; }
html[lang="en"] .contact h2 { letter-spacing: -.045em; line-height: 1.04; }
.contact .lead { color: var(--muted); font-size: 17px; margin: 0 0 30px; max-width: 46ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-lines { display: grid; gap: 10px; margin-top: 26px; }
.c-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.c-line svg { width: 18px; height: 18px; color: var(--violet-2); flex: none; }
.c-line a { color: var(--text); font-family: var(--font-num); direction: ltr; unicode-bidi: isolate; border-bottom: 1px dashed var(--stroke-2); }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.social { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); transition: all .35s var(--ease); }
.social:hover { background: rgba(255,255,255,.08); border-color: var(--stroke-2); transform: translateY(-2px); }
.social .si { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.social .si svg { width: 20px; height: 20px; }
.social b { display: block; font-size: 14px; font-weight: 600; }
.social span { display: block; font-size: 12.5px; color: var(--muted); direction: ltr; text-align: start; font-family: var(--font-num); }
html[dir="rtl"] .social span { text-align: right; }
.si.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.si.tt { background: #000; border: 1px solid rgba(255,255,255,.15); }
.si.fb { background: #1877f2; }
.si.be { background: #0057ff; }
.brief { padding: clamp(22px, 3vw, 30px); border-radius: 26px; background: rgba(4,3,10,.5); }
.brief h3 { margin: 0 0 4px; font-size: 20px; }
.brief > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding-inline: 16px; border-radius: 14px; font: inherit; font-size: 15px; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--stroke); outline: none; transition: border-color .3s, background .3s; }
.field textarea { height: 96px; padding-block: 12px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23a69bbd' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
html[dir="rtl"] .field select { background-position: left 16px center; }
.field select option { background: #140d22; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet-2); background: rgba(255,255,255,.07); }
.brief .btn { width: 100%; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 34px; border-top: 1px solid var(--stroke); margin-top: clamp(60px, 8vw, 100px); background: rgba(4,3,10,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer small { color: var(--dim); font-size: 13px; }
.footer-links { display: flex; gap: 8px; }
.footer-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--stroke); transition: all .3s; }
.footer-links a:hover { border-color: var(--stroke-2); background: rgba(255,255,255,.06); }
.footer-links svg { width: 17px; height: 17px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; z-index: 40; bottom: 22px; inset-inline-end: 22px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .4s var(--ease), opacity .4s; transform: scale(0); opacity: 0; }
.wa-float.show { transform: scale(1); opacity: 1; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float .tip { position: absolute; inset-inline-end: 72px; white-space: nowrap; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 500; background: #fff; color: #0b0716; opacity: 0; transform: translateX(8px); transition: all .35s var(--ease); pointer-events: none; }
html[dir="rtl"] .wa-float .tip { transform: translateX(-8px); }
.wa-float:hover .tip { opacity: 1; transform: translateX(0); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(2,1,6,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-body { position: relative; max-width: min(1400px, 100%); max-height: 100%; transform: scale(.95); transition: transform .5s var(--ease); }
.modal.open .modal-body { transform: scale(1); }
.modal img { max-height: calc(100svh - 130px); width: auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal video { max-height: calc(100svh - 90px); max-width: 100%; border-radius: 18px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-close, .modal-nav { position: fixed; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--stroke); transition: background .3s; }
.modal-close:hover, .modal-nav:hover { background: rgba(255,255,255,.18); }
.modal-close { top: 18px; right: 18px; }
.modal-nav.prev { left: 18px; top: 50%; margin-top: -24px; }
.modal-nav.next { right: 18px; top: 50%; margin-top: -24px; }
.modal-close svg, .modal-nav svg { width: 20px; height: 20px; }
.modal-count { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--font-num); font-size: 13px; color: var(--muted); direction: ltr; }

/* ---------- Cursor & progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #7c3aed, #c084fc, #e879f9); box-shadow: 0 0 12px rgba(192,132,252,.8); pointer-events: none; }
html[dir="rtl"] .progress { transform-origin: 100% 50%; }
.cursor-glow { position: fixed; top: 0; left: 0; z-index: 1; width: 440px; height: 440px; margin: -220px 0 0 -220px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(168,85,247,.14), transparent 62%); transition: opacity .4s; opacity: 0; mix-blend-mode: screen; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; box-shadow: 0 0 10px #c084fc; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(192,132,252,.7); display: grid; place-items: center; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; }
.cursor-ring span { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #0b0716; opacity: 0; transition: opacity .2s; white-space: nowrap; font-family: var(--font-num); }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring, html.has-cursor .cursor-glow { opacity: 1; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor .m-item, html.has-cursor .reel, html.has-cursor .astro { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
.cursor-ring.hover { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(168,85,247,.14); border-color: rgba(232,121,249,.9); }
.cursor-ring.label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; border-color: #fff; }
.cursor-ring.label span { opacity: 1; }
.cursor-dot.hide { opacity: 0 !important; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-apple), transform 1.1s var(--ease-apple); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity 1.2s var(--ease-apple), transform 1.2s var(--ease-apple); transition-delay: var(--d, 0s); }
.reveal-scale.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-scale, .no-js .m-item { opacity: 1; transform: none; }
.no-js .hero h1 .line > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .reels { grid-template-columns: repeat(4, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .creator-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .toolkit-wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .astro-stage { max-width: 420px; order: -1; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .hero-meta div { align-items: center; }
  html[dir="rtl"] .hero-meta b, .hero-meta b { text-align: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-years { grid-column: span 2; grid-row: span 1; min-height: 300px; }
  .t-sm, .t-third { grid-column: span 1; }
  .project, .project.wide { grid-column: span 6; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .reels { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .orbit-sys { max-width: 440px; }
  .scroll-cue { display: none; }
  .pen-hero { width: 70%; top: 4%; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header { top: 10px; }
  .nav { height: 58px; padding-inline: 18px 8px; }
  .logo { font-size: 24px; }
  .nav-actions .btn-wa-nav { display: none; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); line-height: 1.45; }
  html[lang="en"] .hero h1 { line-height: 1.05; }
  .astro-stage { max-width: 320px; }
  .chip-1 { inset-inline-end: -4%; top: 18%; }
  .chip-2 { inset-inline-end: 0; bottom: 14%; }
  .float-chip { padding: 8px 10px; font-size: 12px; }
  .float-chip .ic { width: 28px; height: 28px; }
  .astro-bubble { inset-inline-start: 0; max-width: 180px; font-size: 12.5px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .t-years, .t-sm, .t-third { grid-column: span 1; }
  .project, .project.wide { grid-column: span 12; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .m-item { margin-bottom: 10px; border-radius: 14px; }
  .reels { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .timeline { grid-template-columns: 1fr; }
  .creator-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .c-stat { padding: 16px; }
  .socials { grid-template-columns: 1fr; }
  .video-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .video-tab { flex: 1; justify-content: center; padding-inline: 12px; font-size: 13px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; width: calc(100% + 32px); }
  .filters::-webkit-scrollbar, .video-tabs::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .contact-actions .btn { flex: 1 1 100%; }
  .logo-tile { width: 160px; height: 96px; padding: 12px 16px; }
  .logo-tile img { max-height: 64px; }
  .modal-nav.prev, .modal-nav.next { top: auto; bottom: 18px; margin-top: 0; }
  .modal-nav.prev { left: 24px; } .modal-nav.next { right: 24px; }
  .modal-count { bottom: 34px; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; inset-inline-end: 16px; }
  .wa-float .tip { display: none; }
  .tool-b > span { width: 48px; height: 48px; left: -24px; top: -24px; border-radius: 14px; font-size: 13px; }
  .tool-b > span svg { width: 22px; height: 22px; }
  .pen-statement, .pen-contact { display: none; }
}
@media (hover: none) { .cursor-glow { width: 260px; height: 260px; margin: -130px 0 0 -130px; transition: opacity .5s; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-scale, .m-item { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}

/* ---------- Hero headline sizing (two clean lines) ---------- */
.hero h1 { font-size: clamp(40px, 5.3vw, 80px); }
@media (min-width: 961px) { .hero h1 .line > span { white-space: nowrap; } }
.pen-hero { inset-inline-start: auto; inset-inline-end: 6%; top: 10%; width: 40%; }
.t-years .planet-mini { z-index: 0; opacity: .55; }
.t-years > *:not(.planet-mini) { z-index: 1; }
.logo-tile img { mix-blend-mode: normal; filter: none; }
#toolkit .h2 { max-width: 20ch; }

/* ---------- Felix On TV ---------- */
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.credit { margin: 0; overflow: hidden; padding: 0; cursor: zoom-in; transition: transform .6s var(--ease), border-color .4s, box-shadow .6s; }
.credit:hover { transform: translateY(-6px); border-color: rgba(233,201,139,.45); box-shadow: 0 30px 70px -30px rgba(233,201,139,.35); }
.credit img { width: 100%; aspect-ratio: 1080 / 607; object-fit: cover; transition: transform 1.2s var(--ease); }
.credit:hover img { transform: scale(1.05); }
.credit figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; }
.credit figcaption b { font-size: 17px; }
.credit figcaption span { font-family: var(--font-num); font-size: 12px; color: var(--gold); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(233,201,139,.35); background: rgba(233,201,139,.08); white-space: nowrap; }
.credits-more { margin: 22px 0 0; text-align: center; color: var(--gold); font-weight: 600; font-size: 16px; }
.h3 { margin: 0; font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; line-height: 1.35; }
html[lang="en"] .h3 { letter-spacing: -.035em; line-height: 1.1; }
.star-tile { flex: none; width: 260px; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--stroke); background: var(--bg-2); transition: transform .5s var(--ease), border-color .4s; }
.star-tile:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--stroke-2); }
.star-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
@media (max-width: 960px) { .credits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .credits { grid-template-columns: 1fr; } .star-tile { width: 200px; } }
.tv-link { display: inline-block; margin-top: 10px; color: var(--gold); font-weight: 600; font-size: 14px; }

/* ---------- Featured reel ---------- */
.featured { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 50px); align-items: center; padding: clamp(18px, 2.4vw, 28px); margin-bottom: 30px; border-radius: 30px; background: radial-gradient(90% 120% at 0% 0%, rgba(214,41,118,.18), transparent 55%), linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); }
.featured-video { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; cursor: pointer; background: #000; box-shadow: 0 30px 70px -30px rgba(214,41,118,.6); }
.featured-video video { width: 100%; height: 100%; object-fit: cover; }
.views-badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #fa7e1e, #d62976, #962fbf); box-shadow: 0 8px 20px -6px rgba(214,41,118,.8); }
.views-badge svg { width: 14px; height: 14px; }
.featured-info .h3 { margin: 16px 0 12px; }
.featured-info p { color: var(--muted); font-size: 16px; margin: 0 0 22px; max-width: 48ch; }
.f-stats { display: flex; gap: clamp(18px, 3vw, 40px); margin-bottom: 26px; flex-wrap: wrap; }
.f-stats b { display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.f-stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } .featured-video { max-width: 280px; margin-inline: auto; width: 100%; } .featured-info { text-align: center; } .f-stats { justify-content: center; } .featured-info p { margin-inline: auto; } }

/* ---------- Reach (IG stats, blurred) ---------- */
.reach { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 50px); align-items: center; padding: clamp(18px, 2.4vw, 28px); margin-bottom: 34px; border-radius: 30px; background: radial-gradient(90% 120% at 0% 0%, rgba(214,41,118,.16), transparent 55%), linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); }
.reach-tiles { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 360px; }
.r-tile { position: relative; overflow: hidden; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); transition: transform .5s var(--ease), border-color .4s; isolation: isolate; }
.r-tile:hover { transform: translateY(-4px); border-color: var(--stroke-2); }
.r-tile b { font-family: var(--font-num); font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1; direction: ltr; text-align: start; }
html[dir="rtl"] .r-tile b { text-align: right; }
.r-tile > span:not(.r-play) { margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.78); }
.r-thumb { grid-row: span 2; }
.r-thumb img { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(16px) saturate(1.3) brightness(.7); transform: scale(1.1); z-index: -1; }
.r-thumb::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4,3,10,.85), rgba(4,3,10,.1) 60%); }
.r-ig { background: linear-gradient(135deg, #feda75 -20%, #fa7e1e 15%, #d62976 50%, #962fbf 80%, #4f5bd5 120%); border-color: transparent; }
.r-ig b, .r-ig > span { color: #fff; }
.r-play { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.r-play svg { width: 18px; height: 18px; margin-left: 2px; }
.reach-info .h3 { margin: 16px 0 12px; }
.reach-info p { color: var(--muted); font-size: 16px; margin: 0 0 24px; max-width: 46ch; }
@media (max-width: 860px) { .reach { grid-template-columns: 1fr; } .reach-info { order: -1; } }
@media (max-width: 520px) { .reach-tiles { min-height: 300px; } .r-tile { padding: 14px; } }

/* ---------- Projects: full-width covers ---------- */
.project .thumb { aspect-ratio: 2 / 1; }
@media (max-width: 640px) {
  .projects-grid { gap: 12px; }
  .project .info { inset-inline: 8px; bottom: 8px; padding: 9px 12px; border-radius: 14px; }
  .project h3 { font-size: 14px; }
  .project .cat { font-size: 11px; }
  .project .arrow { width: 30px; height: 30px; }
}

/* ---------- More breathing room for Arabic headlines ---------- */
html[lang="ar"] .h2 { line-height: 1.45; }
html[lang="ar"] #tv .h2 { line-height: 1.65; }
html[lang="ar"] .h3 { line-height: 1.55; }

/* ---------- Cinematic astronaut ---------- */
.astro-stage { overflow: visible; }
.cine-rays { position: absolute; left: 50%; top: 44%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: .5;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(192,132,252,.22) 10%, transparent 13% 30%, rgba(232,121,249,.16) 33%, transparent 37% 55%, rgba(167,139,250,.2) 58%, transparent 62% 80%, rgba(192,132,252,.16) 83%, transparent 87%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%); mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  animation: spinSlow 60s linear infinite; mix-blend-mode: screen; }
.cine-planet { position: absolute; left: -28%; right: -28%; top: 74%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 2%, #f5d0fe 0%, #c084fc 4%, #7c3aed 11%, #2e1065 26%, #0c0518 48%, #04030a 70%);
  box-shadow: 0 -14px 70px rgba(192,132,252,.6), 0 -2px 18px rgba(245,208,254,.7), inset 0 30px 80px rgba(232,121,249,.35); }
.cine-planet span { position: absolute; inset: 0; border-radius: 50%; opacity: .35; mix-blend-mode: overlay;
  background: repeating-linear-gradient(8deg, transparent 0 18px, rgba(255,255,255,.12) 18px 22px, transparent 22px 48px); animation: planetSpin 80s linear infinite; }
@keyframes planetSpin { to { transform: rotate(360deg); } }
.orbit-ring.r2 { top: 56%; }
.tether { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.tether path { fill: none; stroke: url(#tetherGrad); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(192,132,252,.8)); }
.astro-fx { position: absolute; inset: -12%; width: 124%; height: 124%; pointer-events: none; z-index: 3; }
.astro { z-index: 2; touch-action: none; }
.astro img { filter: drop-shadow(0 40px 50px rgba(0,0,0,.65)) drop-shadow(0 0 26px rgba(168,85,247,.45)) contrast(1.08) saturate(1.05); }
.astro-light, .visor-glint { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  -webkit-mask-image: var(--astro-mask); mask-image: var(--astro-mask); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.astro.keyed .astro-light, .astro.keyed .visor-glint { opacity: 1; }
.astro-light { mix-blend-mode: screen; background: radial-gradient(circle at var(--lx, 30%) var(--ly, 20%), rgba(250,232,255,.75), rgba(232,121,249,.35) 18%, rgba(124,58,237,.08) 38%, transparent 55%); }
.visor-glint { mix-blend-mode: screen;
  -webkit-mask-image: var(--astro-mask), radial-gradient(ellipse 12% 7.5% at 55.5% 16.5%, #000 65%, transparent 100%);
  mask-image: var(--astro-mask), radial-gradient(ellipse 12% 7.5% at 55.5% 16.5%, #000 65%, transparent 100%);
  -webkit-mask-size: contain, 100% 100%; mask-size: contain, 100% 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.95) 50%, transparent 58%) 0 0 / 300% 100% no-repeat; animation: glint 5.5s ease-in-out infinite; }
@keyframes glint { 0%, 55% { background-position: 120% 0; } 85%, 100% { background-position: -40% 0; } }
.hud { position: absolute; inset: 2% 4%; pointer-events: none; z-index: 3; font-family: var(--font-num); font-size: 10.5px; letter-spacing: .14em; color: rgba(233,213,255,.75); direction: ltr; }
.hud-c { position: absolute; width: 22px; height: 22px; border-color: rgba(192,132,252,.6); border-style: solid; border-width: 0; }
.hud-c.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud-c.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud-c.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud-c.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud-t { position: absolute; white-space: nowrap; text-shadow: 0 0 8px rgba(168,85,247,.8); }
.hud-t b { font-weight: 600; color: #fff; }
.hud-t.t1 { top: 6px; left: 30px; display: inline-flex; align-items: center; gap: 8px; }
.hud-t.t1 i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: blink 1.2s infinite; }
.hud-t.t2 { bottom: 6px; right: 30px; }
.hud-t.t3 { bottom: 6px; left: 30px; }
.astro-hint { bottom: -4%; }
@media (max-width: 640px) { .hud { font-size: 9px; letter-spacing: .1em; } .hud-t.t3 { display: none; } }

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: stretch; }
.lm-stage { position: relative; overflow: hidden; min-height: 420px; padding: 20px; display: flex; align-items: flex-end; justify-content: center; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.lm-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 40%), rgba(168,85,247,.28), transparent 55%); }
.lm-svg { position: relative; width: 100%; max-width: 640px; height: auto; overflow: visible; }
.lm-stars circle { fill: #e9d5ff; opacity: .7; animation: blink 3s ease-in-out infinite; }
.lm-stars circle:nth-child(2n) { animation-delay: -1.2s; }
.lm-stars circle:nth-child(3n) { animation-delay: -2.1s; }
.lm .lp { fill: transparent; stroke: #e9d5ff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(192,132,252,.7)); transition: stroke-dashoffset 1.8s var(--ease-apple), fill-opacity 1s ease; fill-opacity: 0; }
.lm.on .lp { stroke-dashoffset: 0; }
.lm.on .lp.f { fill: url(#lmFill); fill-opacity: 1; transition: stroke-dashoffset 1.8s var(--ease-apple), fill-opacity 1s ease 1.2s; }
.lm .lp:nth-child(2) { transition-delay: .25s; }
.lm .lp:nth-child(3) { transition-delay: .45s; }
.lm .lp:nth-child(4) { transition-delay: .65s; }
.lm .lp:nth-child(5) { transition-delay: .85s; }
.lm .lp:nth-child(6) { transition-delay: 1s; }
.lm:not(.on) .lp { transition-duration: .45s; transition-delay: 0s; }
.lm-ground { stroke: url(#lmGround); stroke-width: 1.4; }
.lm-label { position: absolute; top: 18px; inset-inline-start: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(4,3,10,.5); border: 1px solid var(--stroke); font-size: 14px; z-index: 1; }
.lm-flag { width: 22px; height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--c1, #a855f7) 50%, var(--c2, #fff) 50%); box-shadow: 0 0 10px rgba(255,255,255,.2); }
.mk-list { display: flex; flex-direction: column; gap: 10px; }
.mk { position: relative; text-align: start; padding: 18px 20px 18px 24px; border-radius: 20px; border: 1px solid var(--stroke); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: all .45s var(--ease); overflow: hidden; flex: 1; }
.mk b { display: block; font-size: 17px; margin-bottom: 4px; }
.mk > span:not(.mk-bar) { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.mk-bar { position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--c1), var(--c2)); opacity: .35; transition: opacity .4s; }
.mk:hover { border-color: var(--stroke-2); }
.mk.active { background: linear-gradient(135deg, rgba(168,85,247,.22), rgba(255,255,255,.04)); border-color: var(--stroke-2); }
.mk.active .mk-bar { opacity: 1; }
.mk::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, #c084fc, #e879f9); }
.mk.active.timing::after { animation: mkTimer 5.5s linear forwards; }
@keyframes mkTimer { to { width: 100%; } }
@media (max-width: 960px) { .markets { grid-template-columns: 1fr; } .lm-stage { min-height: 300px; } .mk-list { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mk-list { grid-template-columns: 1fr; } .mk { padding: 14px 16px 14px 20px; } }

/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.case { grid-column: span 4; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); background: var(--bg-2); cursor: pointer; transition: transform .6s var(--ease), border-color .4s, box-shadow .6s; transform-style: preserve-3d; }
.case.hidden { display: none; }
.case.big { grid-column: span 8; grid-row: span 2; }
.case:hover { border-color: var(--stroke-2); box-shadow: 0 30px 70px -30px rgba(168,85,247,.6); }
.case-media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.case.big .case-media { aspect-ratio: auto; height: 100%; min-height: 380px; }
.case-media .cover { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case:hover .case-media .cover { transform: scale(1.06); }
.case.brochure .case-media { aspect-ratio: 2 / 1.25; background: radial-gradient(90% 90% at 50% 100%, rgba(168,85,247,.28), transparent 60%), linear-gradient(160deg, #110a20, #070410); }
.fan { position: absolute; inset: 0; display: grid; place-items: center; }
.fan img { position: absolute; height: 84%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); transition: transform .8s var(--ease); top: 8%; }
.fan img:nth-child(1) { transform: translateX(-46%) rotate(-10deg) scale(.86); filter: brightness(.7); }
.fan img:nth-child(2) { transform: translateX(46%) rotate(10deg) scale(.86); filter: brightness(.7); }
.fan img:nth-child(3) { transform: translateY(-2%); }
.case:hover .fan img:nth-child(1) { transform: translateX(-66%) rotate(-14deg) scale(.88); }
.case:hover .fan img:nth-child(2) { transform: translateX(66%) rotate(14deg) scale(.88); }
.case:hover .fan img:nth-child(3) { transform: translateY(-6%) scale(1.04); }
.case-info { position: absolute; inset-inline: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 18px; }
.case-info h3 { margin: 2px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.case.big .case-info h3 { font-size: clamp(20px, 2.2vw, 28px); }
.case-cat { font-size: 12px; color: var(--violet-2); }
.case-count { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; }
.case-count svg { width: 16px; height: 16px; }
@media (max-width: 960px) { .case, .case.big { grid-column: span 6; } .case.big { grid-row: span 1; } .case.big .case-media { aspect-ratio: 2 / 1; min-height: 0; height: auto; } }
@media (max-width: 640px) {
  .cases { gap: 12px; }
  .case, .case.big { grid-column: span 12; }
  .case-info { inset-inline: 8px; bottom: 8px; padding: 9px 12px; border-radius: 14px; }
  .case-info h3 { font-size: 15px; } .case.big .case-info h3 { font-size: 17px; }
  .case-cat { font-size: 11px; }
  .case-count { padding: 5px 9px; font-size: 12px; }
}

/* ---------- Case viewer ---------- */
.case-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: clamp(10px, 2.5vw, 30px); background: rgba(2,1,6,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.case-modal.open { opacity: 1; visibility: visible; }
.cm-inner { width: min(1300px, 100%); height: 100%; max-height: 940px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; transform: translateY(20px) scale(.98); transition: transform .55s var(--ease); }
.case-modal.open .cm-inner { transform: none; }
.cm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cm-cat { font-size: 13px; color: var(--violet-2); }
.cm-head h3 { margin: 4px 0 6px; font-size: clamp(22px, 3vw, 36px); font-weight: 800; line-height: 1.25; }
.cm-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.cm-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.cm-close { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--stroke); transition: background .3s; }
.cm-close:hover { background: rgba(255,255,255,.18); }
.cm-close svg { width: 20px; height: 20px; }
.cm-stage { position: relative; min-height: 0; display: grid; place-items: center; border-radius: 22px; background: radial-gradient(70% 70% at 50% 50%, rgba(124,58,237,.18), transparent 70%), rgba(255,255,255,.02); border: 1px solid var(--stroke); overflow: hidden; touch-action: pan-y; }
.cm-img { width: 100%; height: 100%; display: grid; place-items: center; padding: 14px; }
.cm-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); animation: cmIn .5s var(--ease); }
@keyframes cmIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.cm-nav { position: absolute; top: 50%; margin-top: -26px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(4,3,10,.6); border: 1px solid var(--stroke); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s; }
.cm-nav:hover { background: #fff; color: #0b0716; }
.cm-nav svg { width: 22px; height: 22px; }
.cm-nav.prev { left: 14px; } .cm-nav.next { right: 14px; }
.cm-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(4,3,10,.6); font-family: var(--font-num); font-size: 12px; color: var(--muted); direction: ltr; }
.cm-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; direction: ltr; }
.cm-thumbs button { flex: none; width: 112px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .5; transition: all .3s; background: #000; }
.case-modal.portrait .cm-thumbs button { width: 52px; height: 90px; }
.cm-thumbs button.on { opacity: 1; border-color: var(--violet-2); }
.cm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .cm-head { flex-direction: column-reverse; gap: 8px; } .cm-actions { align-self: flex-end; }
  .cm-head p { font-size: 13.5px; }
  .cm-nav { width: 42px; height: 42px; margin-top: -21px; } .cm-nav.prev { left: 6px; } .cm-nav.next { right: 6px; }
  .cm-thumbs button { width: 84px; height: 48px; } .case-modal.portrait .cm-thumbs button { width: 42px; height: 74px; }
}

/* ---------- Scroll-driven motion ---------- */
.scroll-band { overflow: hidden; padding-block: clamp(20px, 4vw, 50px); direction: ltr; pointer-events: none; }
.sb-track { display: flex; align-items: center; gap: 40px; width: max-content; will-change: transform; white-space: nowrap; }
.sb-track span { font-family: var(--font-num); font-weight: 800; font-size: clamp(56px, 10vw, 150px); letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(192,132,252,.45); }
.sb-track span:nth-of-type(3n+2) { color: rgba(246,242,252,.92); -webkit-text-stroke: 0; }
.sb-track i { font-style: normal; color: var(--violet); font-size: clamp(24px, 3vw, 44px); }
.marquee.js .marquee-track { animation: none; }
#masonry, #reels, #cases { transform: skewY(var(--skew, 0deg)); transform-origin: center; }
.wd { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2deg); filter: blur(6px); transition: opacity .9s var(--ease-apple), transform .9s var(--ease-apple), filter .9s var(--ease-apple); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.in .wd, .in.wd { opacity: 1; transform: none; filter: none; }
.h2.split, .h3.split { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wd { opacity: 1; transform: none; filter: none; } #masonry, #reels, #cases { transform: none; } }

/* ---------- Lite mode (Android / low-end): no live blur, fewer layers ---------- */
.lite *, .lite *::before, .lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lite .glass { background: linear-gradient(145deg, rgba(30,20,52,.92), rgba(14,9,26,.92)); }
.lite .nav { background: rgba(14,9,26,.94); }
.lite .eyebrow, .lite .filter, .lite .btn-ghost, .lite .logos-nav button, .lite .mk, .lite .video-tabs { background-color: rgba(22,14,40,.9); }
.lite .marquee, .lite .footer { background: rgba(10,6,20,.92); }
.lite .grain, .lite .cine-rays, .lite .astro-light, .lite .visor-glint, .lite .cursor-glow { display: none !important; }
.lite .contact-card { background: linear-gradient(145deg, #1d1236, #0e0919); }
.lite .astro img { filter: drop-shadow(0 20px 24px rgba(0,0,0,.6)); }
.lite .tether path { filter: none; }
.lite .lm .lp { filter: none; }
/* Pure-CSS fail-safe: the preloader can never stay on screen */
.preloader { animation: preGone .01s linear 5s forwards; }
@keyframes preGone { to { opacity: 0; visibility: hidden; } }

/* ---------- Realistic horizon planet (clipped inside the hero stage: never covers text) ---------- */
.cine-planet { all: unset; }
.cine-horizon { position: absolute; left: -30%; right: -30%; top: 64%; bottom: -2%; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.cine-horizon .cine-planet { position: absolute; left: 0; right: 0; top: 14%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: block;
  box-shadow: 0 -12px 60px rgba(192,132,252,.55), 0 -2px 18px rgba(233,213,255,.65); }
.cine-planet .tex { position: absolute; top: 0; left: 0; width: 200%; height: 100%; background: url(../planets/jupiter.jpg) 0 0 / 50% 100% repeat-x; animation: texMove 180s linear infinite; will-change: transform; }
@keyframes texMove { to { transform: translateX(-50%); } }
.cine-planet::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%; background: rgba(124,58,237,.42); mix-blend-mode: color; }
.cine-planet::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 50%;
  background: radial-gradient(circle at 50% -6%, rgba(245,232,255,.55) 0%, rgba(192,132,252,.18) 14%, transparent 30%),
              radial-gradient(circle at 50% 50%, transparent 46%, rgba(4,3,10,.55) 62%, rgba(4,3,10,.95) 72%); }
.lite .cine-planet .tex { animation: none; }
@media (max-width: 960px) { .cine-horizon { top: 70%; } }
.cine-horizon { direction: ltr; }
.cine-planet .tex { inset: auto; top: 0; left: 0; right: auto; bottom: auto; opacity: 1; mix-blend-mode: normal; border-radius: 0; }

/* ---------- Performance trims ---------- */
.wd { filter: none !important; transition-property: opacity, transform; }
#masonry, #reels, #cases { transform: none !important; }
.lite .astro-fx, .lite .hud-t.t3 { display: none; }
.lite .orbit-sys .track, .lite .orbit-sys .tool-b > span { animation-duration: 120s; }
