/* ═══════════════ FALAQ — فلق ═══════════════ */

/* ---------- Fonts ---------- */
/* woff2 only — the same OTF outlines, brotli-compressed to about a third of
   the weight. Every browser that can run this page reads it. */
@font-face{font-family:'Thmanyah Sans';src:url('Thmanyahsans/thmanyahsans-Light.woff2') format('woff2');font-weight:300;font-display:swap;}
@font-face{font-family:'Thmanyah Sans';src:url('Thmanyahsans/thmanyahsans-Regular.woff2') format('woff2');font-weight:400;font-display:swap;}
@font-face{font-family:'Thmanyah Sans';src:url('Thmanyahsans/thmanyahsans-Medium.woff2') format('woff2');font-weight:500;font-display:swap;}
@font-face{font-family:'Thmanyah Sans';src:url('Thmanyahsans/thmanyahsans-Bold.woff2') format('woff2');font-weight:700;font-display:swap;}
@font-face{font-family:'Thmanyah Sans';src:url('Thmanyahsans/thmanyahsans-Black.woff2') format('woff2');font-weight:900;font-display:swap;}
@font-face{font-family:'Thmanyah Serif';src:url('Thmanyahserif/thmanyahserifdisplay-Bold.woff2') format('woff2');font-weight:700;font-display:swap;}
@font-face{font-family:'Thmanyah Serif';src:url('Thmanyahserif/thmanyahserifdisplay-Black.woff2') format('woff2');font-weight:900;font-display:swap;}

/* ---------- Tokens ---------- */
:root{
  --bg:#0a0d14;
  --bg-2:#0d1119;
  --panel:#10151f;
  --line:rgba(255,255,255,.07);
  --line-accent:rgba(174,255,171,.22);
  --ink:#f2f6f8;
  --muted:#93a0ae;
  --mint:#aeffab;
  --teal:#30dfd5;
  --grad:linear-gradient(118deg,var(--mint) 8%,var(--teal) 82%);
  --radius:22px;
  --spring:cubic-bezier(.34,1.45,.55,1);
  --ease:cubic-bezier(.22,.8,.28,1);
  --sec-pad:clamp(60px,6.5vw,96px);
  --nav-h:84px;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:auto;}
body{
  font-family:'Thmanyah Sans','Segoe UI',Tahoma,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.75;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  /* the type family draws its kashida (ـــــ) as a curved swash ligature —
     rlig alone doesn't cover it, it's gated behind liga/calt */
  font-variant-ligatures:common-ligatures contextual;
  font-feature-settings:"liga" 1,"clig" 1,"calt" 1,"rlig" 1;
}
/* filmic grain */
body::after{
  content:"";position:fixed;inset:-50%;z-index:9999;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 9s steps(6) infinite;
}
@keyframes grain{
  0%,100%{transform:translate(0,0)}16%{transform:translate(-4%,3%)}33%{transform:translate(3%,-2%)}
  50%{transform:translate(-2%,-4%)}66%{transform:translate(4%,2%)}83%{transform:translate(-3%,4%)}
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.container{width:min(1200px,92vw);margin-inline:auto;}
.grad-text{
  background:var(--grad);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
  font-style:normal;
}
::selection{background:rgba(48,223,213,.35);}

/* focus */
a:focus-visible,button:focus-visible{outline:2px solid var(--mint);outline-offset:3px;border-radius:8px;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:inherit;font-size:1rem;font-weight:700;
  padding:.85em 2.1em;border-radius:100px;border:0;cursor:pointer;
  position:relative;overflow:hidden;white-space:nowrap;
  transition:transform .45s var(--spring),box-shadow .45s var(--ease),background-color .3s;
  will-change:transform;
}
.btn:active{transform:scale(.955);}
.btn-grad{
  background:var(--grad);color:#07130d;
}
.btn-grad::before{ /* sheen sweep */
  content:"";position:absolute;top:0;bottom:0;width:44%;
  inset-inline-start:-60%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);
  transform:skewX(-18deg);transition:inset-inline-start .7s var(--ease);
}
.btn-grad:hover{transform:translateY(-3px);box-shadow:0 14px 34px -10px rgba(48,223,213,.45);}
.btn-grad:hover::before{inset-inline-start:120%;}
.btn-ghost{
  background:transparent;color:var(--ink);
  box-shadow:inset 0 0 0 1.5px var(--line-accent);
}
.btn-ghost:hover{
  transform:translateY(-3px);
  box-shadow:inset 0 0 0 1.5px var(--teal),0 12px 30px -12px rgba(48,223,213,.3);
}

/* ---------- Intro splash ---------- */
/* exit is triggered by JS adding .exit (once assets are loaded and the 1s
   minimum has elapsed — see script.js) rather than a fixed animation-delay,
   since the wait time is now dynamic */
.intro{
  position:fixed;inset:0;z-index:10000;
  background:#0d111d;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;
}
.intro.exit{
  animation:introExit .65s var(--ease) forwards;
}
.intro-logo{
  height:60px;width:auto;
  opacity:0;transform:translateY(36px);
  animation:introLogoIn .65s var(--ease) .1s forwards;
}
/* the panel itself is too close in color to the hero bg for a fade on it to
   read at all — the logo fading out on its own is what actually shows */
.intro.exit .intro-logo{
  animation:introLogoIn .65s var(--ease) .1s forwards,
            introLogoOut .35s var(--ease) forwards;
}
@keyframes introLogoIn{to{opacity:1;transform:translateY(0);}}
@keyframes introLogoOut{to{opacity:0;}}

/* Loading bar — the fill's scaleX is written from JS as each tracked asset
   settles (see script.js). transform, not width, so every step is composited
   rather than re-laying out, and the transition smooths the jumps between
   discrete asset completions into one continuous sweep. */
.intro-bar{
  position:relative;width:min(210px,44vw);height:3px;border-radius:3px;
  background:rgba(255,255,255,.11);overflow:hidden;
  opacity:0;animation:introBarIn .4s var(--ease) .45s forwards;
}
.intro-bar i{
  position:absolute;inset:0;border-radius:inherit;
  background:var(--grad);
  transform:scaleX(0);transform-origin:right; /* RTL: fills right → left */
  transition:transform .45s var(--ease);
}
@keyframes introBarIn{to{opacity:1;}}
.intro.exit .intro-bar{animation:introBarIn .4s var(--ease) .45s forwards, introBarOut .25s ease forwards;}
@keyframes introBarOut{to{opacity:0;}}
@keyframes introExit{to{transform:translateY(-100%);}}

/* hero entrance choreography stays paused until the intro clears, so it
   plays fresh on reveal instead of finishing off-screen behind the splash */
body.pre-reveal .hero-logo,
body.pre-reveal .hero-title .hero-line1,
body.pre-reveal .hero-title .hero-line2,
body.pre-reveal .hero-sub,
body.pre-reveal .hero-actions,
body.pre-reveal .hero-man,
body.pre-reveal .hero-man-overlay,
body.pre-reveal .hero-elements{
  animation-play-state:paused;
}

/* ---------- Nav ---------- */
.nav{
  position:fixed;top:0;inset-inline:0;z-index:100;
  transition:background-color .4s var(--ease),box-shadow .4s,backdrop-filter .4s;
}
.nav.scrolled{
  background:rgba(10,13,20,.72);
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  box-shadow:0 1px 0 var(--line);
}
.nav-inner{
  width:min(1280px,94vw);margin-inline:auto;
  display:flex;align-items:center;gap:2.4rem;
  padding:.9rem 0;
}
.nav-brand img{height:46px;width:auto;transition:transform .5s var(--spring);}
.nav-brand:hover img{transform:rotate(-6deg) scale(1.07);}
.nav-links{display:flex;gap:1.9rem;margin-inline-start:auto;}
.nav-links a{
  font-size:.95rem;font-weight:500;color:var(--muted);
  position:relative;padding:.3em 0;transition:color .3s;
}
.nav-links a::after{
  content:"";position:absolute;bottom:0;inset-inline-start:0;height:2px;width:100%;
  background:var(--grad);border-radius:2px;
  transform:scaleX(0);transform-origin:center;transition:transform .4s var(--spring);
}
.nav-links a:hover{color:var(--ink);}
.nav-links a:hover::after,.nav-links a.active::after{transform:scaleX(1);}
.nav-links a.active{color:var(--ink);}
.nav-cta{font-size:.92rem;padding:.7em 1.7em;}
.nav-burger{
  display:none;background:none;border:0;cursor:pointer;
  width:44px;height:44px;flex-direction:column;justify-content:center;align-items:center;gap:5px;
}
.nav-burger span{display:block;width:22px;height:2px;background:var(--ink);border-radius:2px;transition:transform .35s var(--ease),opacity .3s;}
.nav-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.nav-drawer{
  display:none;flex-direction:column;gap:1.2rem;padding:1.4rem 6vw 2rem;
  background:rgba(10,13,20,.96);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--line);
}
.nav-drawer a{font-weight:500;font-size:1.05rem;}
.nav-drawer .btn{align-self:flex-start;}
.nav-drawer.open{display:flex;}

/* ---------- Hero ---------- */
.hero{
  position:relative;min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
  overflow:hidden;isolation:isolate;
}
.hero-video{
  position:absolute;inset:0;z-index:-4;width:100%;height:100%;object-fit:cover;
  filter:brightness(.9);
}
.hero-shade{
  position:absolute;inset:0;z-index:-3;
  background:
    linear-gradient(to top,var(--bg) 2%,rgba(10,13,20,.25) 30%,rgba(10,13,20,.45) 100%),
    radial-gradient(120% 90% at 15% 60%,transparent 30%,rgba(10,13,20,.55) 100%);
}
/* Desktop-only decor. It's a background-image inside the media query rather
   than an <img> in the markup so phones — where the layout hides it the
   moment the burger nav appears — never spend a byte fetching it. */
.hero-elements{display:none;}
@media (min-width:1021px){
  .hero-elements{
    display:block;
    position:absolute;inset:0;top:44px;z-index:-2;width:100%;height:100%;
    background:url('Background_Elements.webp') center/cover no-repeat;
    transform:translateX(-115%); /* fully clear of the viewport — the box is
       100% viewport-wide, so -30% only hid 30% of it; matches slideInLeft's
       "from" so .pre-reveal's paused delay phase holds this position instead
       of sitting in place and jumping left when the animation actually starts */
    /* no fade — slides in from off-screen left only. this animation is paused
       behind body.pre-reveal, so its delay counts from whenever JS unpauses it
       (1s — see script.js), not from page load: .65s delay here lands the
       start at the 1.65s mark, exactly when the intro (1s hold + .65s exit)
       is fully gone. long smooth ease-out tail so it glides to a stop */
    animation:slideInLeft 2.4s cubic-bezier(.16,1,.3,1) .65s both,
              wiggle 16s ease-in-out 3.05s infinite;
    will-change:transform;
  }
}
@keyframes slideInLeft{
  from{transform:translateX(-115%);}
  to{transform:translateX(0);}
}
/* subtle looping shake for the background watermark (slow) */
@keyframes wiggle{
  0%{transform:translate(0,0) rotate(0deg);}
  20%{transform:translate(1.4px,-1px) rotate(-.35deg);}
  40%{transform:translate(-1px,1.3px) rotate(.3deg);}
  60%{transform:translate(1.2px,.8px) rotate(-.28deg);}
  80%{transform:translate(-1.3px,-.6px) rotate(.32deg);}
  100%{transform:translate(0,0) rotate(0deg);}
}
/* stronger, easily-visible shake for the man portrait + its flare overlay —
   identical timing on both so they move together as one unit */
@keyframes manWiggle{
  0%{transform:translate(0,0) rotate(0deg);}
  20%{transform:translate(5px,-3.5px) rotate(-1.4deg);}
  40%{transform:translate(-4px,4px) rotate(1.2deg);}
  60%{transform:translate(4.5px,3px) rotate(-1.1deg);}
  80%{transform:translate(-5px,-2px) rotate(1.3deg);}
  100%{transform:translate(0,0) rotate(0deg);}
}
.hero-grid{
  width:min(1280px,94vw);margin-inline:auto;
  display:grid;grid-template-columns:1.05fr .95fr;align-items:center;
  padding-top:76px;flex:1;
}
/* copy — first col = right side in RTL */
.hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:1.4rem;max-width:640px;transform:translateX(22px);}
/* water-ripple warp — class added by JS once the sync engine is running, so
   browsers that never run it (or reduced-motion) stay unfiltered. The filter
   stays applied permanently (it's an identity transform while the map is
   neutral) rather than being toggled per-wave: toggling `filter` re-rasters
   the text and reads as a one-frame pop */
.hero-copy.ripple-live{filter:url(#waveWarp);will-change:filter;}
.hero-logo{height:clamp(84px,9vw,120px);width:auto;}
/* Two words on one line at desktop width, both at full display size. Sizing is
   deliberately capped below .hero-copy's max-width — an Arabic word never
   breaks, and the kashida makes the second one long, so it has to fit whole.
   `wrap` is a safety net only: at the sizes below the pair fits on one row for
   every viewport this rule applies to. */
.hero-title{
  font-family:'Thmanyah Serif','Thmanyah Sans',sans-serif;
  font-weight:900;line-height:1.2;
  font-size:clamp(2.6rem,5.4vw,4.75rem);
  letter-spacing:-.015em;
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.3em;
}
.hero-line1{color:#fff;}
/* the gradient is painted into the element box before being clipped to the
   glyphs, so the box needs slack — a tall ascender poking outside it would
   simply come out unpainted */
.hero-line2{padding-block:.06em;}
.hero-sub{
  font-size:clamp(.98rem,1.35vw,1.13rem);font-weight:500;color:var(--muted);
  max-width:52ch;
}
.hero-actions{display:flex;gap:1rem;margin-top:.6rem;flex-wrap:wrap;}
/* visual — man anchored bottom */
.hero-visual{position:relative;align-self:stretch;min-height:420px;}
/* wrapper owns the responsive horizontal placement only — kept isolated from
   the entrance animation below so a media query can freely override it */
.hero-man-pos{
  position:absolute;bottom:-12px;inset-inline-start:50%; /* nudged down a touch so the wiggle has clearance and never clips at the top */
  transform:translateX(30%); /* shifted left of visual-column center */
  height:min(78vh,760px);
  will-change:transform;
}
.hero-man{
  display:block;height:100%;max-width:none;width:auto;
  filter:drop-shadow(0 30px 60px rgba(0,0,0,.55));
}
/* left/top/width/height are synced in JS to match .hero-man-pos's rendered
   box — it must live outside that wrapper (which is positioned via transform,
   creating its own stacking context) so color-dodge can blend against the
   full hero backdrop (video, watermark, bg) instead of getting trapped
   against nothing but Man.webp */
.hero-man-overlay{
  position:absolute;max-width:none;object-fit:cover;
  mix-blend-mode:color-dodge;pointer-events:none;
  /* hidden for now — it used to fade in with .hero-man (overlayFadeIn, same
     .25s delay and 1.2s duration as manIn) and then wiggle with it. Everything
     else about it still runs, including the JS box sync, so putting the fade-in
     back in the animation list is all it takes to bring it back. */
  opacity:0;
  animation:manWiggle 9s ease-in-out 1.45s infinite;
}
@keyframes overlayFadeIn{to{opacity:1;}}
/* entrance choreography */
.hero-logo,.hero-title .hero-line1,.hero-title .hero-line2,.hero-sub,.hero-actions{
  opacity:0;transform:translateY(26px);
  animation:riseIn 1s var(--ease) forwards;
}
.hero-logo{animation-delay:.15s;}
.hero-title .hero-line1{animation-delay:.3s;}
.hero-title .hero-line2{animation-delay:.45s;}
.hero-sub{animation-delay:.62s;}
.hero-actions{animation-delay:.78s;}
.hero-man{
  opacity:0;
  animation:manIn 1.2s var(--ease) .25s forwards, manWiggle 9s ease-in-out 1.45s infinite;
}
@keyframes riseIn{to{opacity:1;transform:translateY(0);}}
@keyframes manIn{
  from{opacity:0;transform:translateY(46px);}
  to{opacity:1;transform:translateY(0);}
}
/* ---------- Keyword strip ---------- */
.strip{
  border-block:1px solid var(--line);
  background:var(--bg-2);
  overflow:hidden;padding:1.05rem 0;position:relative;
}
.strip::before,.strip::after{
  content:"";position:absolute;top:0;bottom:0;width:120px;z-index:2;pointer-events:none;
}
.strip::before{inset-inline-start:0;background:linear-gradient(to left,var(--bg-2),transparent);}
.strip::after{inset-inline-end:0;background:linear-gradient(to right,var(--bg-2),transparent);}
.strip-track{display:flex;width:max-content;will-change:transform;}
.strip-set{display:flex;align-items:center;flex-shrink:0;}
.strip-set span{
  font-weight:700;font-size:1.02rem;color:var(--muted);
  padding-inline:1.6rem;white-space:nowrap;
}
.strip-set i{
  width:7px;height:7px;border-radius:50%;background:var(--grad);flex-shrink:0;
}

/* ---------- Sections shared ---------- */
.section{position:relative;padding-block:var(--sec-pad);overflow:hidden;scroll-margin-top:var(--nav-h);}
#contact{scroll-margin-top:24px;}

/* divider between sections */
.divider{
  width:min(1200px,92vw);margin-inline:auto;position:relative;
  height:1px;background:linear-gradient(to right,transparent,var(--line-accent) 50%,transparent);
}
.divider::after{
  content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:8px;height:8px;border-radius:50%;background:var(--grad);
  box-shadow:0 0 16px rgba(48,223,213,.55);
}
.sec-head{max-width:640px;margin-bottom:clamp(48px,6vw,72px);}
.eyebrow{
  display:flex;align-items:center;gap:.6rem;
  font-size:.85rem;font-weight:700;letter-spacing:.14em;
  color:var(--teal);margin-bottom:1.1rem;
}
.eyebrow-dot{
  width:9px;height:9px;border-radius:50%;background:var(--grad);
  box-shadow:0 0 12px rgba(48,223,213,.8);
  animation:recPulse 1.8s ease-in-out infinite;
}
@keyframes recPulse{0%,100%{opacity:1}50%{opacity:.35}}
.sec-title{
  font-family:'Thmanyah Serif','Thmanyah Sans',sans-serif;
  font-size:clamp(2.1rem,4.6vw,3.4rem);font-weight:900;line-height:1.3;
  margin-bottom:.9rem;
}
.sec-sub{color:var(--muted);font-weight:500;font-size:clamp(.98rem,1.3vw,1.1rem);}

/* watermark */
.watermark{
  position:absolute;z-index:0;pointer-events:none;opacity:.05;
  width:min(58vw,780px);height:auto;
  animation:wmDrift 18s ease-in-out infinite alternate;
}
@keyframes wmDrift{from{transform:translateY(-18px) rotate(-2deg)}to{transform:translateY(22px) rotate(2.5deg)}}
.wm-impact{top:-6%;inset-inline-end:-14%;}
.wm-studio{bottom:-10%;inset-inline-start:-16%;}
.wm-footer{top:-20%;inset-inline-end:-10%;opacity:.04;}

/* scroll reveal */
.reveal{opacity:0;transform:translateY(34px);transition:opacity .9s var(--ease),transform .9s var(--ease);}
.reveal.in{opacity:1;transform:none;}
.impact-grid .reveal:nth-child(2){transition-delay:.12s;}
.impact-grid .reveal:nth-child(3){transition-delay:.24s;}

/* ---------- Impact ---------- */
.impact{background:linear-gradient(to bottom,var(--bg-2),var(--bg));}
.impact .container{position:relative;z-index:1;}
.impact-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,2vw,1.6rem);
}
.impact-card{
  position:relative;background:var(--panel);
  border:1px solid var(--line);border-radius:var(--radius);
  padding:2.2rem 2rem 2rem;
  transition:transform .5s var(--spring),border-color .4s,box-shadow .5s var(--ease);
  transform-style:preserve-3d;will-change:transform;
}
.impact-card::before{ /* gradient keyline reveal */
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
  background:var(--grad);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  opacity:0;transition:opacity .45s;pointer-events:none;
}
.impact-card:hover{transform:translateY(-8px);box-shadow:0 26px 50px -22px rgba(0,0,0,.7);}
.impact-card:hover::before{opacity:1;}
.impact-icon{
  width:52px;height:52px;border-radius:15px;
  display:grid;place-items:center;margin-bottom:1.5rem;
  color:var(--mint);background:rgba(174,255,171,.07);
  border:1px solid var(--line-accent);
  transition:transform .5s var(--spring),background-color .4s;
}
.impact-icon svg{width:26px;height:26px;}
.impact-card:hover .impact-icon{transform:rotate(-8deg) scale(1.1);background:rgba(174,255,171,.13);}
.impact-num{
  font-size:clamp(3.1rem,5.5vw,4.3rem);font-weight:900;line-height:1.1;
  background:var(--grad);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  font-variant-numeric:tabular-nums;
  display:flex;align-items:baseline;
}
.impact-plus{font-size:.55em;font-weight:900;}
.impact-label{font-family:'Thmanyah Serif','Thmanyah Sans',sans-serif;font-size:1.22rem;font-weight:700;margin-top:.4rem;}
.impact-desc{color:var(--muted);font-size:.93rem;font-weight:400;margin-top:.45rem;}

/* ---------- Portfolio marquee ---------- */
.work{background:var(--bg);}
.marquee{
  overflow:hidden;position:relative;padding-block:.8rem;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);
}
.marquee-track{display:flex;gap:1.4rem;width:max-content;will-change:transform;}
/* A bare 16:9 tile, not a video card: the thumbnail is the whole surface and
   the title sits on it under a bottom gradient. No panel, no chrome, no
   avatar. The ratio matches the source frames, so nothing is cropped away. */
.vcard{
  position:relative;display:block;flex-shrink:0;overflow:hidden;cursor:pointer;
  width:clamp(300px,29vw,420px);aspect-ratio:16/9;
  border-radius:22px;background:var(--panel);
  transition:transform .5s var(--spring),box-shadow .5s var(--ease);
}
.vcard:hover{transform:translateY(-9px);box-shadow:0 30px 56px -24px rgba(0,0,0,.8);}
.vcard-img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .9s var(--ease);
}
.vcard:hover .vcard-img{transform:scale(1.07);}
/* the gradient from below — opaque enough at the foot to carry text, gone by
   the midpoint so the thumbnail still reads as the picture it is */
.vcard::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,
    rgba(6,8,13,.94) 0%,rgba(6,8,13,.8) 26%,rgba(6,8,13,.4) 56%,transparent 84%);
  transition:opacity .45s var(--ease);
}
.vcard:hover::after{opacity:.88;}
/* the hairline keyline rides above the gradient so it stays visible at the
   foot of the tile where the veil is at its most opaque */
.vcard::before{
  content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;
  box-shadow:inset 0 0 0 1px var(--line);pointer-events:none;
  transition:box-shadow .4s;
}
.vcard:hover::before{box-shadow:inset 0 0 0 1px var(--line-accent);}
.vcard-cap{
  position:absolute;inset-inline:0;bottom:0;z-index:3;
  padding:1.15rem 1.25rem 1.3rem;
  display:flex;flex-direction:column;gap:.3rem;
}
.vcard-tag{
  font-size:.74rem;font-weight:700;letter-spacing:.1em;color:var(--mint);
  display:flex;align-items:center;gap:.45em;
}
.vcard-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--grad);}
.vcard-title{
  font-size:1.02rem;font-weight:700;line-height:1.55;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  text-shadow:0 1px 12px rgba(0,0,0,.5);
}

/* ---------- Studio ---------- */
.studio{background:linear-gradient(to bottom,var(--bg),var(--bg-2) 55%,var(--bg));}
.studio .container{position:relative;z-index:1;}
.studio .sec-head{max-width:720px;}
.studio-pitch{line-height:2;}
.studio-stage{
  position:relative;border-radius:clamp(20px,3vw,34px);overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 40px 90px -40px rgba(0,0,0,.8);
}
.studio-img{width:100%;height:auto;display:block;}
.studio-chip{
  position:absolute;top:18px;inset-inline-start:18px;z-index:3;
  background:rgba(8,10,16,.72);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid var(--line-accent);color:var(--ink);
  font-size:.82rem;font-weight:700;padding:.5em 1.1em;border-radius:100px;
  display:flex;align-items:center;gap:.5em;pointer-events:none;
  transition:border-color .4s,box-shadow .4s;
}
.studio-chip b{color:var(--mint);}
.studio-stage:hover .studio-chip{border-color:var(--teal);box-shadow:0 0 22px -6px rgba(48,223,213,.5);}
/* Deliberately viewBox-less: with no viewBox one SVG user unit is one CSS pixel,
   which is the space the leader line is already computed in. A JS-synced viewBox
   was measuring the stage before Studio.webp had loaded, so the line was drawn
   into a zero-height box and only snapped onto the lens after a window resize. */
.lens-svg{
  position:absolute;inset:0;z-index:2;width:100%;height:100%;pointer-events:none;
  opacity:0;transition:opacity .4s var(--ease);
}
.lens-svg.on{opacity:1;}
.lens{
  position:absolute;z-index:4;width:190px;height:190px;border-radius:50%;
  background:var(--grad);padding:2.5px;
  transform:translate(-50%,-50%) scale(.4);
  opacity:0;pointer-events:none;
  transition:opacity .35s,transform .45s var(--spring);
  box-shadow:0 24px 60px -18px rgba(0,0,0,.85),0 0 40px -10px rgba(48,223,213,.35);
  left:0;top:0;
}
.lens.on{opacity:1;transform:translate(-50%,-50%) scale(1);}
/* background-size and -position are written from JS every frame: the zoom is a
   multiple of the *stage* width, which only JS knows, and a percentage here
   would silently rescale with the lens instead of with the photo. */
.lens-view{
  width:100%;height:100%;border-radius:50%;
  background-image:url('Studio.webp');background-repeat:no-repeat;
}
.lens-hud{
  position:absolute;bottom:14px;left:50%;transform:translateX(-50%);
  font-size:.68rem;font-weight:700;letter-spacing:.1em;color:#eafff2;
  background:rgba(8,10,16,.65);padding:.15em .7em;border-radius:20px;
}
.studio-cta{
  margin-top:clamp(36px,4vw,52px);
  display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;
}
.studio-cta-note{color:var(--muted);font-size:.92rem;font-weight:500;}

/* ---------- Footer ---------- */
.footer{
  position:relative;overflow:hidden;
  background:var(--bg-2);
  border-top:1px solid var(--line);
  padding-top:clamp(64px,8vw,96px);
}
.footer .container{position:relative;z-index:1;}
.footer-top{
  display:grid;grid-template-columns:1.6fr 1fr 1.2fr 1.2fr;
  gap:clamp(2rem,4vw,3.5rem);
  padding-bottom:clamp(48px,6vw,72px);
}
.footer-logo{height:76px;width:auto;margin-bottom:1.2rem;}
.footer-tag{font-family:'Thmanyah Serif','Thmanyah Sans',sans-serif;font-size:1.35rem;font-weight:900;margin-bottom:.7rem;}
.footer-desc{color:var(--muted);font-size:.95rem;font-weight:400;max-width:34ch;}
.footer-col{display:flex;flex-direction:column;gap:.75rem;}
.footer-col h4{
  font-size:.92rem;font-weight:900;letter-spacing:.1em;color:var(--mint);
  margin-bottom:.5rem;
}
.footer-col a,.footer-col span{
  color:var(--muted);font-size:.95rem;font-weight:500;width:fit-content;
  transition:color .3s,transform .35s var(--ease);
}
.footer-col a:hover{color:var(--ink);transform:translateX(-4px);}
.footer-social{display:flex;gap:.7rem;margin-bottom:.6rem;}
.footer-social a{
  width:42px;height:42px;border-radius:13px;
  display:grid;place-items:center;color:var(--muted);
  border:1px solid var(--line);background:var(--panel);
  transition:color .3s,border-color .3s,transform .45s var(--spring),box-shadow .4s;
}
.footer-social a svg{width:19px;height:19px;}
.footer-social a:hover{
  color:#07130d;border-color:transparent;background:var(--grad);
  transform:translateY(-4px) rotate(-4deg);
  box-shadow:0 12px 26px -10px rgba(48,223,213,.5);
}
.footer-inq{color:var(--muted);font-size:.88rem;line-height:1.9;}
.footer-inq a{color:var(--teal);font-weight:700;}
.footer-inq a:hover{color:var(--mint);}
/* the booking CTA sits inside .footer-col, whose link rules are more
   specific than .btn-grad and would otherwise repaint it muted and
   swap its lift for the sideways nudge the text links use */
.footer-col .footer-cta{color:#07130d;font-size:.95rem;font-weight:700;margin-top:.9rem;}
.footer-col .footer-cta:hover{color:#07130d;transform:translateY(-3px);}
.footer-bar{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding-block:1.4rem;
  color:var(--muted);font-size:.85rem;font-weight:500;
}
.footer-made .grad-text{font-style:normal;}

/* ---------- Responsive ---------- */
@media (max-width:1020px){
  .nav-inner{gap:.9rem;}
  .nav-links{display:none;}
  .nav-cta{display:inline-flex;margin-inline-start:auto;font-size:.85rem;padding:.6em 1.4em;}
  .nav-burger{display:flex;}
  .hero-grid{grid-template-columns:1fr;padding-top:96px;}
  .hero-copy{align-items:center;text-align:center;margin-inline:auto;transform:none;}
  /* stacked once the column collapses: side by side the pair would have to
     shrink past the point where either word carries the screen */
  .hero-title{
    display:block;font-size:clamp(3rem,7.4vw,5.6rem);
  }
  .hero-title span{display:block;}
  .hero-line1{
    font-size:.69em;font-weight:500;line-height:1.3;letter-spacing:.055em;
  }
  .hero-actions{justify-content:center;}
  .hero-visual{min-height:min(52vh,480px);order:2;}
  .hero-man-pos{height:min(52vh,480px);transform:translateX(40%);}
  .impact-grid{grid-template-columns:1fr;max-width:520px;margin-inline:auto;}
  .footer-top{grid-template-columns:1fr 1fr;}
}
@media (max-width:600px){
  .hero-man-pos{height:44vh;}
  .vcard{width:clamp(260px,78vw,320px);border-radius:18px;}
  .footer-top{grid-template-columns:1fr;}
  .lens{width:150px;height:150px;}
  .footer-bar{justify-content:center;text-align:center;}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  body::after{animation:none;}
  .intro{animation:introFadeReduced .3s ease .2s forwards;}
  .intro-logo{animation:none;opacity:1;transform:none;}
  .intro-bar{display:none;}
  @keyframes introFadeReduced{to{opacity:0;}}
  .watermark,.eyebrow-dot{animation:none;}
  /* transform too, not just the animation — the slide-in's "from" position is
     written on the element itself, so killing the animation alone would leave
     the artwork parked off-screen */
  .hero-elements{animation:none;transform:none;}
  .hero-logo,.hero-title .hero-line1,.hero-title .hero-line2,.hero-sub,.hero-actions,.hero-man{
    animation:none;opacity:1;transform:none;
  }
  /* not in the list above on purpose — it is hidden for now, and opacity:1
     here would put it back for reduced-motion visitors only */
  .hero-man-overlay{animation:none;transform:none;}
  .reveal{opacity:1;transform:none;transition:none;}
  .marquee{overflow-x:auto;}
  *{transition-duration:.01ms !important;}
}
