/* flow-plus.css — flow+ Design System v2 (frosted mesh gradients) */

/* ===== TOKENS ===== */
:root {
  --bg-void: #000000;
  --bg-deep: #040406;
  --bg-surface: #080809;
  --bg-elevated: #0d0d10;

  --glass-bg: rgba(255,255,255,0.035);
  --glass-border: rgba(255,255,255,0.09);
  --glass-blur: 30px;

  --text-1: #ffffff;
  --text-2: rgba(255,255,255,0.66);
  --text-3: rgba(255,255,255,0.34);

  --font-en: 'Space Grotesk', sans-serif;
  --font-ar: 'Cairo', sans-serif;

  --radius-sm: 20px;
  --radius-md: 28px;
  --radius-lg: 38px;
  --radius-xl: 56px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --maxw: 1240px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-en);
  background: var(--bg-void);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }

/* ===== BRAND LOCK (flow+ never flips in RTL) ===== */
.brand {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
  white-space: nowrap;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(3.2rem, 9vw, 8.5rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(2.4rem, 6.5vw, 5.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
p { color: var(--text-2); font-weight: 400; }
.text-lg { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.6; }
.text-sm { font-size: 0.875rem; color: var(--text-3); }
.display-huge { font-size: clamp(4rem, 14vw, 13rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }

body.rtl h1 { font-size: clamp(2.8rem, 8vw, 7rem); letter-spacing: 0; line-height: 1.15; }
body.rtl h2 { font-size: clamp(2.2rem, 6vw, 4.8rem); letter-spacing: 0; line-height: 1.2; }
body.rtl h3 { letter-spacing: 0; line-height: 1.45; }
body.rtl .display-huge { letter-spacing: 0; line-height: 1.1; }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3.5rem); }
.section { padding: clamp(5rem, 13vw, 11rem) 0; position: relative; }
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.section-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--text-3); font-weight: 500; margin-bottom: 1.4rem;
}
body.rtl .section-label { letter-spacing: 0.1em; }

/* ===== FROSTED MESH GRADIENT SYSTEM (5 palettes) =====
   Built from radial + conic gradients only. Heavily blurred + noise = frosted random shapes.
   NEVER a linear gradient. */
.mesh {
  position: absolute;
  inset: -25%;
  filter: blur(44px) saturate(135%);
  opacity: 0.95;
  will-change: transform;
  pointer-events: none;
}

/* Palette 1 — Azure / Coral / Cream */
.mesh-1 {
  background:
    radial-gradient(38% 46% at 22% 28%, #58A6FF 0%, transparent 64%),
    radial-gradient(42% 38% at 78% 22%, #FF6B6B 0%, transparent 62%),
    radial-gradient(48% 52% at 64% 82%, #FFEDD5 0%, transparent 66%),
    conic-gradient(from 210deg at 46% 58%, #58A6FF, #FF6B6B, #FFEDD5, #58A6FF);
}
/* Palette Kyo — Blue Ink */
.mesh-kyo {
  position: absolute; inset: -22%; z-index: 0; pointer-events: none;
  filter: blur(46px) saturate(170%);
  background:
    radial-gradient(38% 46% at 22% 28%, #2A2BE5 0%, transparent 64%),
    radial-gradient(42% 38% at 78% 22%, #4F50FF 0%, transparent 62%),
    radial-gradient(48% 52% at 64% 82%, #1518A0 0%, transparent 66%),
    conic-gradient(from 210deg at 46% 58%, #2A2BE5, #4F50FF, #1518A0, #2A2BE5);
}
/* Palette 2 — Electric Blue / Tan / Cream */
.mesh-2 {
  background:
    radial-gradient(40% 44% at 26% 26%, #0C10E3 0%, transparent 60%),
    radial-gradient(44% 40% at 80% 30%, #D1B17C 0%, transparent 62%),
    radial-gradient(46% 50% at 58% 84%, #F8E6D2 0%, transparent 66%),
    conic-gradient(from 160deg at 52% 54%, #0C10E3, #D1B17C, #F8E6D2, #0C10E3);
}
/* Palette 3 — Cream / Lime / Acid / Teal */
.mesh-3 {
  background:
    radial-gradient(36% 42% at 20% 32%, #FFFDEE 0%, transparent 58%),
    radial-gradient(40% 44% at 74% 24%, #E0FBCF 0%, transparent 60%),
    radial-gradient(42% 46% at 60% 70%, #E3ED2A 0%, transparent 58%),
    radial-gradient(50% 54% at 82% 86%, #076554 0%, transparent 64%),
    conic-gradient(from 120deg at 50% 56%, #FFFDEE, #E3ED2A, #076554, #E0FBCF, #FFFDEE);
}
/* Palette 4 — Teal / Deep Teal / Abyss */
.mesh-4 {
  background:
    radial-gradient(44% 50% at 28% 26%, #105368 0%, transparent 62%),
    radial-gradient(46% 44% at 78% 34%, #0A323E 0%, transparent 60%),
    radial-gradient(54% 58% at 56% 84%, #031115 0%, transparent 70%),
    conic-gradient(from 230deg at 48% 52%, #105368, #0A323E, #031115, #105368);
}
/* Palette 5 — Wine / Rust / Umber */
.mesh-5 {
  background:
    radial-gradient(42% 48% at 24% 28%, #660F24 0%, transparent 60%),
    radial-gradient(46% 42% at 80% 26%, #702D09 0%, transparent 60%),
    radial-gradient(52% 56% at 60% 82%, #241705 0%, transparent 68%),
    conic-gradient(from 190deg at 50% 56%, #660F24, #702D09, #241705, #660F24);
}

/* Crisp grain overlay (sits above blurred mesh, not blurred itself) */
.grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.42; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}

/* Noise overlay (frost grain) */
.noise::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  opacity: 0.5; mix-blend-mode: overlay; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ===== GLASS ===== */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02) 55%, rgba(255,255,255,0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2;
}
.glass-pad { padding: clamp(1.6rem, 3vw, 2.6rem); }

/* ===== BIG GRADIENT CARD (labs.google style) ===== */
.bigcard {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: clamp(360px, 42vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  background: #0a0a0c;
  transition: transform 0.6s var(--ease);
  will-change: transform;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.bigcard::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 4;
  background: linear-gradient(140deg, rgba(255,255,255,0.22), rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
/* dark scrim so text reads over the mesh */
.bigcard-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, transparent 40%, rgba(0,0,0,0.35) 100%),
    radial-gradient(100% 70% at 30% 120%, rgba(0,0,0,0.85), transparent 60%);
}
.bigcard-body {
  position: relative; z-index: 3;
  padding: clamp(1.8rem, 3vw, 2.8rem);
}
.bigcard-kicker {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.8); font-weight: 600; margin-bottom: 0.7rem;
}
.bigcard-title { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.bigcard-desc { color: rgba(255,255,255,0.82); margin-top: 0.8rem; max-width: 36ch; font-size: clamp(0.95rem, 1.4vw, 1.08rem); }
body.rtl .bigcard-kicker { letter-spacing: 0.08em; }
body.rtl .bigcard-title { letter-spacing: 0; line-height: 1.3; }

/* hover gravity lift */
@media (pointer: fine) {
  .bigcard[data-tilt]:hover { transform: translateY(-10px); }
}

/* ===== MIRROR REFLECTION ===== */
.mirror { position: relative; }
.mirror-reflection {
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 55%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 75%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 75%);
  opacity: 0.45;
  pointer-events: none;
  filter: blur(2px);
}

/* ===== BUTTONS ===== */
.btn-mesh {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.2rem; border: none; border-radius: 100px;
  color: #fff; font-family: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn-mesh .mesh { position: absolute; inset: -80%; filter: blur(26px) saturate(150%); opacity: 1; }
.btn-mesh span { position: relative; z-index: 3; }
.btn-mesh::after {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: rgba(0,0,0,0.18);
}
.btn-mesh:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.5); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.2rem; border-radius: 100px;
  color: var(--text-1); font-family: inherit; font-size: 1rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(20px);
  transition: all 0.4s var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

/* ===== FLOATING ORBS / GRAVITY ELEMENTS ===== */
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; will-change: transform;
}
.float-el { will-change: transform; }
@keyframes floatA { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(22px,-34px) rotate(6deg); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-26px,28px) rotate(-5deg); } }
@keyframes floatC { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px,30px); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-40px) scale(1.08); } }
@keyframes orbDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-44px,38px) scale(0.94); } }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.3rem 0; transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s; }
.nav.scrolled { background: rgba(0,0,0,0.55); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); padding: 0.9rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3.5rem); }
.nav-logo img { height: 26px; opacity: 0.95; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-3); text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-1); }
.lang-toggle { display: flex; align-items: center; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.lang-btn { padding: 0.45rem 0.9rem; border: none; background: transparent; color: var(--text-3); font-family: var(--font-en); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.lang-btn.active { background: rgba(255,255,255,0.14); color: var(--text-1); }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; padding: 7rem 0 4rem; }
.hero-logo { width: clamp(260px, 42vw, 480px); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.45rem); color: var(--text-2); max-width: 620px; margin: 1.8rem auto 0; }
.scroll-hint { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-3); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent); }

/* Hero rotating quotes */
.quote-rotator { position: relative; height: 3.2em; margin-top: 1.6rem; width: min(760px, 90vw); }
.quote-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  font-size: clamp(1.15rem, 2.4vw, 1.9rem); font-weight: 500; color: var(--text-1); letter-spacing: -0.02em; line-height: 1.3;
}
.quote-slide.active { opacity: 1; transform: translateY(0); }

/* ===== BLACK-TINTED PHOTO PLACEHOLDER ===== */
.photo-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
image-slot { display: block; width: 100%; height: 100%; }
.photo-tint { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.7)); }
.photo-tint.heavy { background: rgba(0,0,0,0.62); }
.photo-caption { position: absolute; z-index: 4; bottom: clamp(1.4rem,3vw,2.4rem); left: clamp(1.4rem,3vw,2.4rem); right: clamp(1.4rem,3vw,2.4rem); }
.photo-frame {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ===== FLOW GRID SHOWCASE ===== */
.flowgrid-stage {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  min-height: clamp(460px, 56vw, 620px);
  display: flex; align-items: center; justify-content: center;
  isolation: isolate; background: #060708;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.flowgrid-stage::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 6;
  background: linear-gradient(140deg, rgba(255,255,255,0.22), rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.flowgrid-core {
  position: relative; z-index: 5; text-align: center; padding: 2rem;
}
.flowgrid-core h3 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.03em; }
.fg-node {
  position: absolute; z-index: 4;
  padding: 0.6rem 1.1rem; border-radius: 100px;
  background: rgba(255,255,255,0.06); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.82rem; font-weight: 500; color: var(--text-1); white-space: nowrap;
}
.fg-line { position: absolute; z-index: 3; height: 1px; transform-origin: left center; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); pointer-events: none; }
.fg-dot { position: absolute; z-index: 4; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 3px rgba(255,255,255,0.7); }

/* ===== FOUNDER ===== */
.founder-divider { width: 64px; height: 2px; margin: 1.6rem auto; border-radius: 2px; position: relative; overflow: hidden; }

/* ===== CONTACT CARD ===== */
.contact-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(1.6rem,3vw,2.4rem); min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; text-decoration: none; background: #0a0a0c; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.contact-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 4; background: linear-gradient(140deg, rgba(255,255,255,0.2), rgba(255,255,255,0.03) 55%, rgba(255,255,255,0.1)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.contact-card .bigcard-scrim { z-index: 2; }
.contact-card-body { position: relative; z-index: 3; }
.contact-card .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.8); font-weight: 600; margin-bottom: 0.5rem; }
.contact-card .handle { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
.contact-card { transition: transform 0.5s var(--ease); }
@media (pointer: fine) { .contact-card:hover { transform: translateY(-8px); } }

/* ===== FOOTER ===== */
.footer { padding: 4rem 0 3rem; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.footer-logo { height: 22px; opacity: 0.4; margin: 0 auto 1.2rem; }
.footer p { font-size: 0.82rem; color: var(--text-3); }

/* ===== SCROLL ANIMATIONS ===== */
[data-anim] { opacity: 0; transform: translateY(46px) scale(0.96); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
[data-anim].in-view { opacity: 1; transform: translateY(0) scale(1); }
[data-anim][data-delay="1"] { transition-delay: 0.09s; }
[data-anim][data-delay="2"] { transition-delay: 0.18s; }
[data-anim][data-delay="3"] { transition-delay: 0.27s; }
[data-anim][data-delay="4"] { transition-delay: 0.36s; }
[data-zoom] { opacity: 0; transform: scale(0.84); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
[data-zoom].in-view { opacity: 1; transform: scale(1); }

/* ===== LANG VISIBILITY ===== */
body.rtl { direction: rtl; font-family: var(--font-ar); }
/* Strict Cairo for every Arabic glyph rendered on the page */
.lang-ar, .lang-ar *,
body.rtl, body.rtl * { font-family: var(--font-ar) !important; }
/* The wordmark `flow+` stays in the Latin geometric face even in RTL */
.brand, .brand *, body.rtl .brand, body.rtl .brand * { font-family: var(--font-en) !important; }
.lang-en { display: inline; }
.lang-ar { display: none; }
body.rtl .lang-en { display: none; }
body.rtl .lang-ar { display: inline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links a:not(.lang-toggle-wrap) { display: none; }
  .section { padding: clamp(3.5rem, 9vw, 5rem) 0; }
  .fg-node { font-size: 0.7rem; padding: 0.45rem 0.8rem; }
}

/* ===== BRAND WEIGHT LOCK (flow thin · + bold) ===== */
.brand { font-weight: 400; }
.brand .b-flow { font-weight: 300; }
.brand .b-plus { font-weight: 700; }
body.rtl .brand .b-flow { font-weight: 300; }
body.rtl .brand .b-plus { font-weight: 700; }

/* ===== GLOBAL NOISED / DISTORTED BACKGROUND TEXTURE ===== */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
/* slow, organic distortion drift on the texture */
@keyframes texDrift { 0% { background-position: 0 0; } 100% { background-position: 240px 140px; } }
body::before { animation: texDrift 24s steps(8) infinite; }
/* depth vignette so the black feels distorted, not flat */
.bg-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(20,22,30,0.55), transparent 55%),
    radial-gradient(100% 80% at 80% 110%, rgba(18,14,20,0.5), transparent 60%),
    radial-gradient(90% 70% at 10% 90%, rgba(12,16,22,0.5), transparent 60%);
}

/* ===== HERO FLOWING / FLUID BLOBS ===== */
.hero-fluid { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fluid-blob {
  position: absolute; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  filter: blur(64px) saturate(135%);
  opacity: 0.42; mix-blend-mode: screen; will-change: transform, border-radius;
  border-radius: 42% 58% 55% 45% / 55% 45% 58% 42%;
}
@keyframes morphA {
  0%,100% { border-radius: 42% 58% 55% 45% / 55% 45% 58% 42%; transform: translate(0,0) rotate(0deg) scale(1); }
  33% { border-radius: 62% 38% 46% 54% / 44% 62% 38% 56%; transform: translate(6%, -5%) rotate(70deg) scale(1.12); }
  66% { border-radius: 48% 52% 62% 38% / 60% 42% 58% 40%; transform: translate(-5%, 4%) rotate(140deg) scale(0.94); }
}
@keyframes morphB {
  0%,100% { border-radius: 55% 45% 48% 52% / 48% 56% 44% 52%; transform: translate(0,0) rotate(0deg) scale(1); }
  50% { border-radius: 40% 60% 58% 42% / 56% 44% 60% 40%; transform: translate(-6%, 6%) rotate(-90deg) scale(1.1); }
}

/* ===== WORK HERO TITLE ===== */
.work-hero-title {
  font-size: clamp(3.6rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  padding: clamp(3rem, 8vw, 8rem) 0;
}

/* ===== WORK SHOWCASE (full-width per project) ===== */
.work-showcase { padding-top: 0; padding-bottom: clamp(1rem, 2vw, 2rem); }
.showcase-header { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.showcase-kicker {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--text-3); font-weight: 600; margin-bottom: 0.8rem;
}
.showcase-title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-1);
}
.showcase-card {
  width: 100%;
  min-height: clamp(400px, 50vw, 600px);
}
.showcase-card.work-card-logo { min-height: clamp(460px, 55vw, 680px); }

/* ===== WORK CARD: PHOTO FRAME + BADGE + REALISTIC MIRROR ===== */
.work-card { min-height: clamp(420px, 44vw, 500px); }
.work-photo-frame {
  position: absolute; inset: 14px 14px 56% 14px; z-index: 2;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #050506;
}
.work-photo-frame image-slot { width: 100%; height: 100%; }
.coming-badge {
  position: absolute; top: 18px; right: 18px; z-index: 7;
  padding: 0.4rem 0.85rem; border-radius: 100px;
  font-family: var(--font-en); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
}
body.rtl .coming-badge { right: auto; left: 18px; }
.work-card .bigcard-body { z-index: 5; }

/* Work card variant: brand logo as the hero visual (no photo) */
.work-card-logo .work-logo-hero {
  position: absolute; left: 50%; top: clamp(36px, 7vw, 70px);
  transform: translateX(-50%); z-index: 3;
  width: clamp(96px, 16vw, 140px); aspect-ratio: 1;
  border-radius: clamp(24px, 3vw, 36px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
}
.work-card-logo .work-logo-hero img {
  width: 100%; height: 100%; display: block; border-radius: inherit;
}
.work-card-logo .bigcard-body { padding-top: clamp(160px, 22vw, 210px); }

/* outbound link cue inside a work card */
.bigcard-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem; font-size: 0.85rem; font-weight: 600;
  color: #fff; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px; width: fit-content;
}
.bigcard-link .arrow { font-size: 0.95em; transition: transform 0.4s var(--ease); display: inline-block; }
.work-card:hover .bigcard-link .arrow { transform: translate(3px, -3px); }
body.rtl .work-card:hover .bigcard-link .arrow { transform: translate(-3px, -3px); }

/* tighter, more realistic reflection hugging the card */
.mirror-reflection {
  top: calc(100% + 6px);
  height: 38%;
  opacity: 0.5;
  filter: blur(1px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 62%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 62%);
}
.mirror-reflection .work-photo-frame { inset: 16px 16px 46% 16px; opacity: 0.7; }

/* ===== TOOLS OF TOMORROW STRIP ===== */
.tools-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.tool-chip {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; border-radius: 100px; overflow: hidden; isolation: isolate;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px); font-size: 1rem; font-weight: 500; color: var(--text-1);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.tool-chip:hover { transform: translateY(-3px); background: rgba(255,255,255,0.08); }
.tool-dot { width: 9px; height: 9px; border-radius: 50%; position: relative; overflow: hidden; }
.tool-dot .mesh { filter: blur(3px); }

/* ===== MEET THE BRAIN TEASER ===== */
.brain-teaser {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate;
  padding: clamp(2.5rem, 6vw, 5rem); display: flex; flex-direction: column;
  align-items: flex-start; gap: 1.4rem; background: #08080a;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.brain-teaser::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 4;
  background: linear-gradient(140deg, rgba(255,255,255,0.2), rgba(255,255,255,0.03) 55%, rgba(255,255,255,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.brain-teaser .bt-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; }
.brain-teaser .bigcard-scrim { z-index: 2; }

/* ===== TOOL LOGOS ===== */
.tool-logo { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-logo svg { width: 100%; height: 100%; display: block; }

/* ===== SERVICES CARD STACK ===== */
.stack-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.card-stack {
  position: relative; width: min(560px, 92vw); height: clamp(400px, 60vw, 500px);
  margin: 0 auto; cursor: pointer; user-select: none; perspective: 1400px;
  touch-action: manipulation;
}
.stack-card {
  position: absolute; inset: 0; border-radius: var(--radius-xl); overflow: hidden;
  isolation: isolate; background: #0a0a0c;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.55s var(--ease), opacity 0.5s ease;
  will-change: transform, opacity; transform-origin: center bottom;
}
.stack-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 4;
  background: linear-gradient(140deg, rgba(255,255,255,0.22), rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.stack-card.flick { transition: transform 0.46s ease, opacity 0.46s ease; transform: translateX(125%) rotate(14deg) !important; opacity: 0 !important; }
body.rtl .stack-card.flick { transform: translateX(-125%) rotate(-14deg) !important; }
.stack-card .bigcard-body { position: relative; z-index: 3; }
.stack-controls { display: flex; align-items: center; gap: 1.3rem; }
.stack-btn {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 1.4rem; line-height: 1; backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, transform 0.3s; font-family: var(--font-en);
}
.stack-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.stack-counter { font-size: 0.85rem; color: var(--text-3); font-family: var(--font-en); letter-spacing: 0.1em; min-width: 56px; text-align: center; }
.stack-hint { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-3); }

