/* ==========================================================================
   FUZION — Social by Fuzion
   Shared design system  |  Clean & Bright  |  RTL Hebrew
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #FBFAFC;
  --bg-2: #F2F0F7;
  --surface: #FFFFFF;
  --ink: #0E0E14;
  --ink-2: #2A2A33;
  --muted: #6B6B7A;
  --line: #E7E4EF;

  --violet: #7C3AED;
  --pink: #DB2777;
  --orange: #F97316;
  --indigo: #4F46E5;

  --grad: linear-gradient(120deg, #7C3AED 0%, #DB2777 50%, #F97316 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,58,237,.12), rgba(219,39,119,.12), rgba(249,115,22,.12));

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -20px rgba(28, 16, 64, .25);
  --shadow-soft: 0 10px 30px -16px rgba(28, 16, 64, .18);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Rubik", "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--violet); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(70px, 11vw, 140px) 0; position: relative; }
.center { text-align: center; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  color: var(--violet); text-transform: uppercase;
  padding: 7px 15px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.eyebrow::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.h-display { font-size: clamp(2.5rem, 7vw, 5.6rem); }
.h-1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
.h-2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px; font-weight: 700; font-size: 1rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  will-change: transform;
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(-4px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(124,58,237,.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(219,39,119,.55); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--violet); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(251,250,252,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 32px; width: auto; display: block; transition: height .4s var(--ease); }
.site-header.scrolled .brand-logo { height: 27px; }
.site-footer .brand-logo { height: 38px; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-weight: 600; font-size: .98rem; color: var(--ink-2);
  padding: 9px 16px; border-radius: 100px; position: relative; transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--violet); }
.nav-links a.active { color: var(--violet); background: var(--grad-soft); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.nav-toggle span { display:block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; right: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; }

@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 130; }
  .site-header { z-index: 125; }
  /* When the drawer is open, drop the header's backdrop-filter. A backdrop-filter
     turns the header into the containing block for its fixed-position child (the
     drawer), which would otherwise clip the drawer to the header height (~136px)
     once scrolled. Removing it lets the drawer fill the full viewport height. */
  body.menu-open .site-header.scrolled {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(251,250,252,.92);
  }
  /* hide the scroll-progress sliver while the (non-scrollable) drawer is open */
  body.menu-open .scroll-progress { opacity: 0; }
  /* hide the gradient CTA pill on mobile (it rendered as an empty colored blob); the drawer has its own CTA */
  .nav-cta .btn-primary { display: none; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: var(--surface); flex-direction: column; align-items: stretch; gap: 4px;
    padding: 96px 22px 40px; box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform .4s var(--ease);
    z-index: 120; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.12rem; padding: 14px 16px; border-radius: 12px; }
  .nav-links a.active { background: var(--grad-soft); }
  /* drawer CTA button shown at the bottom of the open menu */
  .nav-drawer-cta { margin-top: 18px; }
  .nav-drawer-cta .btn { width: 100%; justify-content: center; }
  /* dim + blur backdrop behind the drawer */
  body.menu-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(14,14,20,.5);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); z-index: 110;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(140px, 20vh, 220px) 0 clamp(80px,12vw,140px); overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-note { display:flex; align-items:center; gap: 10px; color: var(--muted); font-size: .92rem; margin-top: 30px; }
.hero-note .dot { width:8px;height:8px;border-radius:50%;background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.18); }

/* animated gradient blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 1; animation: float 16s ease-in-out infinite; }
.blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(124,58,237,.6), transparent 70%); top: -120px; left: -80px; }
.blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(219,39,119,.5), transparent 70%); bottom: -120px; right: -60px; animation-delay: -6s; }
.blob.b3 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(249,115,22,.45), transparent 70%); top: 40%; left: 50%; animation-delay: -10s; }
@keyframes float { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(40px,-30px) scale(1.08);} 66%{transform:translate(-30px,30px) scale(.96);} }

/* grid backdrop */
.grid-bg::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px; opacity:.5;
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 72%);
}

/* kinetic word swap */
.swap { display:inline-grid; }
.swap span {
  grid-area: 1/1; opacity:0; transform: translateY(18px); animation: swap 9s infinite;
  /* Apply the gradient directly to each word span. The parent .swap.grad-text
     gradient does not clip onto these grid-stacked, transformed children, so
     without this their text fill is transparent and the word is invisible. */
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.swap span:nth-child(1){ animation-delay: 0s; }
.swap span:nth-child(2){ animation-delay: 3s; }
.swap span:nth-child(3){ animation-delay: 6s; }
@keyframes swap { 0%{opacity:0;transform:translateY(14px);} 3%{opacity:1;transform:translateY(0);} 34%{opacity:1;transform:translateY(0);} 37%{opacity:0;transform:translateY(-14px);} 100%{opacity:0;transform:translateY(-14px);} }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--surface); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.1rem,2vw,1.6rem); color: var(--ink); display:flex; align-items:center; gap:56px; white-space: nowrap; }
.marquee-track span::after { content:""; width:9px; height:9px; border-radius:50%; background: var(--grad); display:inline-block; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ==========================================================================
   Image reveal cards  (the hover effect)
   ========================================================================== */
.reveal-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shadow-soft); background: var(--bg-2);
  cursor: pointer; isolation: isolate; transform-style: preserve-3d;
  transition: transform .25s var(--ease), box-shadow .4s var(--ease);
}
.reveal-card .art { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.05); transform: scale(1.03); transition: filter .6s var(--ease), transform .8s var(--ease); }
/* color overlay: wipe fallback (no pointer) */
.reveal-card .art-color { position: absolute; inset: 0; background-size: cover; background-position: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); }
.reveal-card:hover .art { filter: grayscale(0); transform: scale(1.07); }
.reveal-card:hover .art-color { clip-path: inset(0 0 0 0); }
/* cursor-driven reveal: color "paints" around the cursor, like the reference */
.reveal-card.cursor-mode .art-color {
  clip-path: none;
  -webkit-mask-image: radial-gradient(circle 40% at var(--mx,50%) var(--my,50%), #000 0%, #000 44%, transparent 72%);
  mask-image: radial-gradient(circle 40% at var(--mx,50%) var(--my,50%), #000 0%, #000 44%, transparent 72%);
  transition: none;
}
.reveal-card.cursor-mode .art { transform: scale(1.08); }
.reveal-card.cursor-mode .art-color { transform: scale(1.08); }
.reveal-card .scrim { position:absolute; inset:0; background: linear-gradient(to top, rgba(8,6,20,.78), rgba(8,6,20,.05) 55%); z-index:2; }
.reveal-card .card-body { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 26px; color:#fff; transform: translateY(8px); transition: transform .5s var(--ease); }
.reveal-card:hover .card-body { transform: translateY(0); }
.reveal-card .card-body h3 { font-size: 1.35rem; }
.reveal-card .card-body p { color: rgba(255,255,255,.82); font-size: .95rem; margin-top: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s var(--ease), margin .5s; }
.reveal-card:hover .card-body p { max-height: 120px; opacity: 1; margin-top: 10px; }
.reveal-card .tag { position:absolute; top:18px; right:18px; z-index:3; background: rgba(255,255,255,.92); color: var(--ink); font-weight:700; font-size:.78rem; padding:7px 13px; border-radius:100px; }

/* ==========================================================================
   Service cards
   ========================================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.scard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.scard::before{ content:""; position:absolute; inset:0; background: var(--grad-soft); opacity:0; transition:opacity .4s; }
.scard:hover{ transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.scard:hover::before{ opacity:1; }
.scard > * { position: relative; z-index: 1; }
.scard .ico-wrap { width: 58px; height: 58px; border-radius: 16px; background: var(--grad); display:grid; place-items:center; color:#fff; margin-bottom: 20px; box-shadow: 0 12px 24px -12px rgba(124,58,237,.6); }
.scard h3 { font-size: 1.3rem; margin-bottom: 10px; }
.scard p { color: var(--muted); font-size: .98rem; }
.scard .more { display:inline-flex; align-items:center; gap:7px; margin-top:18px; font-weight:700; color: var(--violet); font-size:.92rem; }

/* feature list with check */
.flist { display:grid; gap: 12px; margin-top: 18px; }
.flist li { display:flex; align-items:flex-start; gap: 11px; color: var(--ink-2); }
.flist li .ck { flex:none; width:22px; height:22px; border-radius:50%; background: var(--grad-soft); color: var(--violet); display:grid; place-items:center; margin-top:3px; }

/* ==========================================================================
   Instagram Reels  (click-to-play, lazy embed)
   ========================================================================== */
.reels-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(290px, 1fr)); gap:22px; align-items:start; justify-items:center; }
.reel-card{ position:relative; border-radius:var(--radius); overflow:hidden; background:var(--surface); box-shadow:var(--shadow-soft); width:100%; max-width:420px; }
.reel-card .instagram-media{ margin:0 auto !important; min-width:0 !important; }
.reel-facade{ position:relative; aspect-ratio:9/16; cursor:pointer; display:block; isolation:isolate; }
.reel-facade .poster{ position:absolute; inset:0; background-size:cover; background-position:center; background-color:#15131f; transition:transform .6s var(--ease), filter .5s; }
.reel-facade .poster.grad{ background-image: var(--grad); opacity:.92; }
.reel-card:hover .reel-facade .poster{ transform:scale(1.05); }
.reel-facade .veil{ position:absolute; inset:0; background:linear-gradient(to top, rgba(8,6,20,.82), rgba(8,6,20,.15) 55%); z-index:1; }
.reel-facade .ig-badge{ position:absolute; top:14px; right:14px; z-index:3; width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:rgba(255,255,255,.16); color:#fff; backdrop-filter:blur(6px); }
.reel-facade .play{ position:absolute; inset:0; margin:auto; width:64px; height:64px; border-radius:50%; z-index:3;
  background:rgba(255,255,255,.95); display:grid; place-items:center; color:var(--ink);
  box-shadow:0 12px 30px -8px rgba(0,0,0,.5); transition:transform .35s var(--ease); }
.reel-card:hover .play{ transform:scale(1.1); }
.reel-facade .play svg{ margin-right:-3px; }
.reel-facade .cap{ position:absolute; inset:auto 0 0 0; z-index:3; padding:18px; color:#fff; }
.reel-facade .cap h4{ font-size:1.05rem; font-family:var(--font-body); font-weight:700; }
.reel-facade .cap span{ font-size:.85rem; color:rgba(255,255,255,.75); }
.reel-card.loaded .reel-facade{ display:none; }
.reel-embed{ background:#fff; min-height:480px; display:grid; place-items:center; }
.reel-embed .loading{ color:var(--muted); font-size:.9rem; padding:30px; }
.reel-embed .instagram-media{ margin:0 !important; min-width:0 !important; }

/* ==========================================================================
   Client logo wall  (uniform tiles)
   ========================================================================== */
.logo-wall{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px;
}
.logo-tile{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 16px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  overflow: hidden;
}
.logo-tile img{
  max-width: 100%; max-height: 82px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .62;
  transition: filter .45s var(--ease), opacity .45s var(--ease), transform .45s var(--ease);
}
.logo-tile:hover{ transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: transparent; }
.logo-tile:hover img{ filter: grayscale(0); opacity: 1; transform: scale(1.05); }
/* text fallback chip (used until real logo files are added) */
.logo-tile .ph{
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; text-align: center;
  color: var(--ink-2); letter-spacing: -.01em; line-height: 1.2;
  filter: grayscale(1); opacity: .55; transition: opacity .45s, color .45s, transform .45s;
}
.logo-tile:hover .ph{ opacity: 1; color: var(--violet); transform: scale(1.04); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 24px; }
.stat { text-align:center; padding: 30px 18px; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); }
.stat .num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.4rem,5vw,3.4rem); line-height:1; }
.stat .lbl { color: var(--muted); margin-top: 10px; font-weight:600; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; position:relative; transition: transform .4s var(--ease), box-shadow .4s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.step .n { counter-increment: step; font-family: var(--font-head); font-weight:900; font-size: 2.4rem; background: var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.step h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; border-radius: 34px; overflow: hidden; background: var(--ink); color:#fff; padding: clamp(48px,7vw,80px); text-align:center; }
.cta-band .blob { opacity:.6; }
.cta-band .container { position:relative; z-index:2; }
.cta-band h2 { font-size: clamp(2rem,4.5vw,3.2rem); }
.cta-band p { color: rgba(255,255,255,.78); max-width: 56ch; margin: 18px auto 32px; font-size: 1.1rem; }
.cta-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 70px 0 40px; margin-top: 0; }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color:#fff; margin-bottom: 16px; }
.site-footer p { font-size: .96rem; max-width: 38ch; }
.footer-col h4 { color:#fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); font-weight:700; }
.footer-col a { display:block; padding: 6px 0; transition: color .25s, transform .25s; }
.footer-col a:hover { color:#fff; transform: translateX(-4px); }
.socials { display:flex; gap: 10px; margin-top: 6px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border:1px solid rgba(255,255,255,.16); display:grid; place-items:center; color:#fff; transition: .3s; }
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: 50px; padding-top: 26px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.88rem; }

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

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 120;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; color:#fff;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: transform .35s var(--ease);
  animation: pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 0 0 18px rgba(37,211,102,0);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1{ transition-delay:.08s;} .reveal.d2{ transition-delay:.16s;} .reveal.d3{ transition-delay:.24s;} .reveal.d4{ transition-delay:.32s;} .reveal.d5{ transition-delay:.4s;}

/* split layout */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,80px); align-items:center; }
.split.rev { direction: ltr; } .split.rev > * { direction: rtl; }
@media (max-width: 880px){ .split{ grid-template-columns:1fr; } }

/* media frame */
.frame { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); position: relative; aspect-ratio: 5/4; transition: transform .25s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d; }
.frame .art { position:absolute; inset:0; background-size:cover; background-position:center; transition: transform .4s var(--ease); }
.frame.cursor-mode .art { transform: scale(1.06); }
.frame::after { content:""; position:absolute; inset:0; z-index:2; pointer-events:none; opacity:0; transition:opacity .3s var(--ease);
  background: radial-gradient(circle 230px at var(--mx,50%) var(--my,50%), rgba(255,255,255,.28), transparent 62%); mix-blend-mode: screen; }
.frame.cursor-mode::after { opacity:1; }
.frame .badge { position:absolute; bottom:16px; right:16px; z-index:3; background: rgba(255,255,255,.92); padding:10px 16px; border-radius:14px; font-weight:700; font-size:.9rem; box-shadow: var(--shadow-soft); }

/* ==========================================================================
   Preloader / entrance animation
   ========================================================================== */
.preloader{
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: grid; place-items: center; gap: 26px; grid-auto-flow: row;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader::before{ /* subtle gradient glow behind logo */
  content:""; position:absolute; width:520px; height:520px; border-radius:50%;
  background: radial-gradient(circle, rgba(124,58,237,.25), transparent 70%); filter: blur(40px);
  animation: plGlow 2.4s ease-in-out infinite;
}
.preloader.done{ opacity: 0; visibility: hidden; }
.pl-stage{ position: relative; z-index:2; overflow: hidden; padding: 4px 8px; }
.pl-logo-img{
  height: clamp(46px, 9vw, 78px); width: auto; display:block;
  opacity: 0; transform: translateY(16px) scale(.96);
  animation: plLogo 1s var(--ease) .15s forwards;
  -webkit-mask-image: linear-gradient(60deg, #000 40%, rgba(0,0,0,.35) 50%, #000 60%);
  mask-image: linear-gradient(60deg, #000 40%, rgba(0,0,0,.35) 50%, #000 60%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: plLogo 1s var(--ease) .15s forwards, plSheen 1.6s var(--ease) .5s forwards;
}
.pl-bar{ position: relative; z-index:2; width: min(220px, 56vw); height: 4px; border-radius: 100px; background: var(--line); overflow: hidden; }
.pl-bar span{ position:absolute; inset:0; right:0; width:0; background: var(--grad); border-radius:100px; animation: plBar 1.4s var(--ease) .3s forwards; }
@keyframes plLogo{ to{ opacity:1; transform: translateY(0) scale(1); } }
@keyframes plSheen{ from{ -webkit-mask-position:100% 0; mask-position:100% 0; } to{ -webkit-mask-position:0 0; mask-position:0 0; } }
@keyframes plBar{ to{ width:100%; } }
@keyframes plGlow{ 0%,100%{ transform: scale(.9); opacity:.6;} 50%{ transform: scale(1.1); opacity:1;} }

/* hold reveals until entrance is done so they animate together */
body.is-loading{ overflow: hidden; }
body.is-loading .reveal{ opacity: 0 !important; transform: translateY(34px) !important; }
body.is-loading .hero .blob{ opacity: 0; }

/* parallax helper */
[data-parallax]{ will-change: transform; }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  .reveal{ opacity:1; transform:none; }
  .preloader{ display:none; }
  body.is-loading{ overflow:auto; }
  body.is-loading .reveal{ opacity:1 !important; transform:none !important; }
}
