/* ==========================================================
   TANISH ARTS
   ========================================================== */

:root{
  --bg:#07050c;
  --bg-2:#0c0817;
  --panel:#120c22;
  --violet:#8b5cf6;
  --violet-hi:#a78bfa;
  --magenta:#d946ef;
  --cyan:#22d3ee;
  --text:#f6f4ff;
  --muted:#9d95b3;
  --line:rgba(167,139,250,.16);
  --ease:cubic-bezier(.16,1,.3,1);
  --spring:cubic-bezier(.22,1.4,.36,1);
  --pad:clamp(20px,5vw,80px);
}

*{margin:0;padding:0;box-sizing:border-box}
/* desktop scrolling is smoothed in JS, so no native smooth here or the two fight */
@media (pointer:coarse){html{scroll-behavior:smooth}}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Space Grotesk',system-ui,sans-serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
body.locked{overflow:hidden}
/* artwork is not meant to be dragged or saved out of the page */
img{display:block;max-width:100%;
  -webkit-user-drag:none;
  -webkit-touch-callout:none;
  -webkit-user-select:none;user-select:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
::selection{background:var(--violet);color:#fff}

/* scrollbar */
::-webkit-scrollbar{width:9px}
::-webkit-scrollbar-track{background:#0a0714}
::-webkit-scrollbar-thumb{background:linear-gradient(var(--violet),var(--magenta));border-radius:9px}

/* ---------- ambient layers ---------- */
.grain{
  position:fixed;inset:-50%;z-index:9998;pointer-events:none;opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 8s steps(6) infinite;
}
@keyframes grain{
  0%,100%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)}
  40%{transform:translate(3%,-4%)} 60%{transform:translate(-3%,-3%)} 80%{transform:translate(4%,2%)}
}
.aurora{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.blob{position:absolute;border-radius:50%;filter:blur(110px);opacity:.5}
.b1{width:46vw;height:46vw;left:-10vw;top:-8vw;background:radial-gradient(circle,#6d28d9,transparent 70%);animation:float1 22s ease-in-out infinite}
.b2{width:38vw;height:38vw;right:-8vw;top:18vh;background:radial-gradient(circle,#a21caf,transparent 70%);animation:float2 27s ease-in-out infinite}
.b3{width:42vw;height:42vw;left:32vw;top:62vh;background:radial-gradient(circle,#1d4ed8,transparent 70%);opacity:.3;animation:float1 31s ease-in-out infinite reverse}
@keyframes float1{50%{transform:translate(8vw,6vh) scale(1.15)}}
@keyframes float2{50%{transform:translate(-7vw,9vh) scale(.88)}}

/* ---------- custom cursor ---------- */
#cursor{position:fixed;inset:0;z-index:9999;pointer-events:none;mix-blend-mode:difference}
.cur-dot{position:absolute;width:6px;height:6px;border-radius:50%;background:#fff;transform:translate(-50%,-50%)}
.cur-ring{
  position:absolute;width:38px;height:38px;border:1.5px solid rgba(255,255,255,.8);border-radius:50%;
  transform:translate(-50%,-50%);display:grid;place-items:center;
  transition:width .35s var(--ease),height .35s var(--ease),background .3s,border-color .3s;
}

/* An irregular shape that never settles, holding a second copy of the figure
   above the wordmark. Everywhere else the letters cover him; inside this shape
   he comes forward. The copy is offset every frame to sit exactly over the real
   one, so the blob reads as a window rather than a cut-out being dragged about. */
#peek{
  position:absolute;width:230px;height:230px;z-index:3;pointer-events:none;
  transform:translate(-50%,-50%);opacity:0;overflow:hidden;
  border-radius:58% 42% 47% 53% / 44% 52% 48% 56%;
  animation:blobMorph 9s ease-in-out infinite;
  transition:opacity .45s ease;
}
#peek.on{opacity:1}
/* pixel-identical to the real one: any glow or brightness here would thicken his
   outline and make the revealed copy look like a different, larger figure */
#peekPhoto{position:absolute;max-width:none}
/* only the outline shifts — no rotation, so it reads as a soft shape changing
   rather than something spinning */
@keyframes blobMorph{
  0%,100%{border-radius:58% 42% 47% 53% / 44% 52% 48% 56%}
  25%    {border-radius:41% 59% 60% 40% / 56% 42% 58% 44%}
  50%    {border-radius:49% 51% 38% 62% / 62% 54% 46% 38%}
  75%    {border-radius:63% 37% 52% 48% / 40% 60% 40% 60%}
}
.cur-label{font-size:9px;letter-spacing:.14em;text-transform:uppercase;opacity:0;
  transition:opacity .2s;white-space:nowrap;font-weight:600}
#cursor.hot .cur-ring{width:76px;height:76px;background:rgba(255,255,255,.12);border-color:transparent}
#cursor.hot .cur-label{opacity:1}
#cursor.hot .cur-dot{opacity:0}

/* The blob is what brings him forward now, so dimming the whole wordmark on
   hover would only fight it. Just warm the letters very slightly instead. */
.hero-name{transition:filter .6s var(--ease)}
body.on-figure .hero-name{filter:brightness(.88)}
@media (pointer:coarse){#cursor{display:none}}

/* ==========================================================
   PRELOADER
   ========================================================== */
/* The logotype is a HOLE punched through a dark cover. While loading you see a
   vivid gradient through the letters; to reveal the site the hole is scaled up
   until a single letterform swallows the screen. */
#preloader{position:fixed;inset:0;z-index:9990;overflow:hidden}
#preloader.done{display:none}

.pre-fill{position:absolute;inset:-25%;
  background:
    radial-gradient(38% 46% at 28% 34%,#c084fc,transparent 68%),
    radial-gradient(36% 44% at 72% 30%,#f472b6,transparent 68%),
    radial-gradient(42% 50% at 52% 72%,#60a5fa,transparent 70%),
    radial-gradient(30% 36% at 18% 78%,#f59e0b,transparent 70%),
    #7c3aed;
  animation:preSwirl 7s ease-in-out infinite;
  transition:opacity .55s ease}
@keyframes preSwirl{50%{transform:scale(1.18) rotate(8deg)}}
#preloader.out .pre-fill{opacity:0}

.pre-cut{position:absolute;inset:0;width:100%;height:100%}
.pre-cut .mask-bg{fill:#fff}
.pre-cut .cover{fill:var(--bg)}
.cut-g{transform-box:fill-box;transform-origin:center}
.cut-1,.cut-2{fill:#000;font-family:'Anton',sans-serif;dominant-baseline:middle}
.cut-1{font-size:clamp(58px,13vw,190px)}
.cut-2{font-size:clamp(26px,5.6vw,80px);letter-spacing:.24em}
/* anticipation squeeze, then the letterform explodes past the edges of the screen */
#preloader.out .cut-g{animation:swallow 1.3s forwards}
@keyframes swallow{
  0%  {transform:scale(1);   animation-timing-function:cubic-bezier(.4,0,.2,1)}
  20% {transform:scale(.87); animation-timing-function:cubic-bezier(.55,0,.75,.22)}
  100%{transform:scale(58)}
}
#preloader.out .cover{animation:coverOut .45s ease .95s forwards}
@keyframes coverOut{to{opacity:0}}

.pre-meta{position:absolute;left:50%;bottom:9vh;transform:translateX(-50%);
  width:min(320px,62vw);text-align:center;
  font-size:10px;letter-spacing:.18em;color:var(--muted);
  transition:opacity .4s,transform .5s var(--ease)}
#preloader.out .pre-meta{opacity:0;transform:translateX(-50%) translateY(18px)}
.pre-bar{width:100%;height:2px;background:rgba(255,255,255,.12);margin:14px 0 8px;overflow:hidden;border-radius:2px}
.pre-bar i{display:block;height:100%;width:0;border-radius:2px;
  background:linear-gradient(90deg,var(--violet),var(--magenta),var(--cyan));transition:width .3s var(--ease)}
.pre-count::after{content:'%'}

/* the page itself settles into place as the hole swallows the screen */
main,#nav{transition:transform 1.3s var(--ease),filter 1.3s var(--ease)}
body:not(.ready) main,body:not(.ready) #nav{transform:scale(1.07);filter:blur(6px)}

/* ==========================================================
   NAV
   ========================================================== */
#nav{
  position:fixed;top:0;left:0;right:0;z-index:900;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:16px var(--pad);
  transition:background .4s,backdrop-filter .4s,padding .4s,border-color .4s;
  border-bottom:1px solid transparent;
}
#nav.stuck{
  background:rgba(9,6,17,.6);backdrop-filter:blur(22px) saturate(160%);
  border-color:var(--line);padding-top:12px;padding-bottom:12px;
}
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;
  background:linear-gradient(140deg,var(--violet),var(--magenta));box-shadow:0 6px 22px rgba(139,92,246,.45)}
.brand-mark svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round}
.brand-mark .spark{fill:#fff;stroke:none}
.brand-text{font-family:'Anton',sans-serif;font-size:17px;letter-spacing:.06em}
.brand-text em{font-style:normal;color:var(--violet-hi);margin-left:.18em}
.nav-links{display:flex;gap:28px;font-size:13px;letter-spacing:.06em;color:var(--muted)}
.nav-links a{position:relative;padding:4px 0;transition:color .3s}
.nav-links a::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:1px;
  background:var(--violet-hi);transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease)}
.nav-links a:hover{color:var(--text)}
.nav-links a:hover::after{transform:scaleX(1);transform-origin:left}
.nav-cta{display:inline-flex;align-items:center;gap:9px;padding:10px 20px;border-radius:99px;
  border:1px solid var(--line);font-size:13px;font-weight:500;
  background:rgba(139,92,246,.08);transition:background .35s,border-color .35s,transform .35s var(--ease)}
.nav-cta:hover{background:rgba(139,92,246,.22);border-color:var(--violet)}
.nav-cta .dot{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 0 rgba(74,222,128,.6);animation:pulse 2s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 8px rgba(74,222,128,0)}100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}}
@media (max-width:860px){.nav-links{display:none}}

/* ==========================================================
   HERO
   ========================================================== */
#hero{position:relative;min-height:100svh;display:flex;flex-direction:column;
  justify-content:flex-end;padding:0 var(--pad) 34px;z-index:1;overflow:hidden}

/* the setup photo, pushed far back: heavy blur, dropped brightness, and faded
   into the page edges so it never competes with the wordmark */
.hero-backdrop{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
/* soft enough to sit behind type, sharp enough that you can still read the room */
.hero-backdrop img{width:100%;height:100%;object-fit:cover;
  /* no extra zoom, and anchored high so the shelf and the desk both stay in frame */
  object-position:50% 34%;
  filter:blur(7px) saturate(1.45) brightness(.86) contrast(1.04);
  opacity:0;transition:opacity 1.4s var(--ease)}
/* On a portrait desktop window a landscape photo gets cropped to its middle, so
   widen the frame instead. Not worth doing on a phone, where the widened frame
   would be three times the screen and you would see even less of the room. */
@media (max-aspect-ratio:1/1) and (min-width:760px){
  .hero-backdrop{left:50%;width:auto;height:100%;aspect-ratio:1208/878;transform:translateX(-50%)}
}
.ready .hero-backdrop img{opacity:1}
.hero-backdrop::after{content:'';position:absolute;inset:0;
  background:
    radial-gradient(75% 70% at 50% 42%,rgba(7,5,12,.12) 35%,rgba(7,5,12,.5) 80%,var(--bg) 100%),
    linear-gradient(transparent 62%,rgba(7,5,12,.85) 92%,var(--bg) 100%)}
.hero-backdrop:empty,.hero-backdrop img:not([src]){display:none}
/* backdrop 0, the reveal hole 1, everything you actually read on top at 2 */
.hero-stage{position:relative;z-index:2}
.hero-bottom{position:relative;z-index:2}
.hero-stage{position:relative;flex:1;display:grid;place-items:center;
  perspective:1200px;transform-style:preserve-3d;min-height:62svh;margin-top:92px}

.hero-name{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-56%);
  font-family:'Anton',sans-serif;
  font-size:clamp(100px,23vw,345px);
  line-height:.82;letter-spacing:-.01em;white-space:nowrap;
  filter:drop-shadow(0 26px 60px rgba(124,58,237,.45));
  pointer-events:none;
}
.hero-name .hn-line{display:block}
.hn-char{
  display:inline-block;opacity:0;transform:translateY(60px) rotateX(-70deg);transform-origin:50% 100%;
  background:linear-gradient(180deg,#fff 4%,#c9baff 40%,#6d4bc4 78%,#3a1f7a 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  /* Anton's glyphs are ~1.5em tall, so a .82 line-height leaves their tops
     outside the box the gradient is painted into and they come out cut off.
     The wordmark is absolutely centred, so a taller line box costs nothing. */
  line-height:1.55;
}
.ready .hn-char{animation:heroChar 1.05s var(--ease) forwards;animation-delay:calc(var(--i)*60ms + .15s)}
@keyframes heroChar{to{opacity:1;transform:none}}

/* ---------- chrome sparkles ---------- */
.defs-only{position:absolute;pointer-events:none}
.sparkle{position:absolute;pointer-events:none;
  filter:drop-shadow(0 0 18px rgba(196,181,253,.55));
  opacity:0;animation:sparkIn 1s var(--ease) forwards}
.sparkle path{transform-origin:50% 50%;animation:sparkTwirl 9s ease-in-out infinite}
@keyframes sparkIn{to{opacity:1}}
@keyframes sparkTwirl{
  0%,100%{transform:rotate(0deg) scale(1)}
  50%    {transform:rotate(45deg) scale(.82)}
}
.sp1{width:clamp(56px,7vw,104px);left:8%;top:18%;animation-delay:1.3s}
.sp1 path{animation-duration:11s}
.sp2{width:clamp(28px,3.4vw,50px);right:12%;top:26%;animation-delay:1.5s}
.sp2 path{animation-duration:7s;animation-delay:-2s}
.sp3{width:clamp(18px,2.2vw,32px);right:26%;bottom:20%;animation-delay:1.7s}
.sp3 path{animation-duration:8.5s;animation-delay:-4s}
@media (max-width:700px){.sp1{left:2%;top:12%}.sp2{right:4%}.sp3{display:none}}

/* ---------- editorial side rails ---------- */
.rail{
  position:fixed;top:50%;z-index:800;pointer-events:none;
  font-size:9.5px;letter-spacing:.34em;text-transform:uppercase;color:var(--muted);
  white-space:nowrap;opacity:.55;
}
.rail-l{left:16px;transform:translateY(-50%) rotate(180deg);writing-mode:vertical-rl}
.rail-r{right:16px;transform:translateY(-50%);writing-mode:vertical-rl}
@media (max-width:1180px){.rail{display:none}}

/* ---------- ghost word behind About ---------- */
/* the clip lives on this wrapper, not on #about — clipping the section would
   cut the top off the stat cards when they lift on hover */
#about{position:relative}
.ghost-wrap{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.ghost-word{
  position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);
  font-family:'Anton',sans-serif;font-size:clamp(150px,26vw,420px);line-height:1;
  -webkit-text-stroke:1px rgba(167,139,250,.10);color:transparent;
  letter-spacing:.02em;white-space:nowrap;pointer-events:none;z-index:0;
}
.about-grid{position:relative;z-index:1}

/* Pinned to the bottom of the hero rather than sitting inside the stage, so he
   can stand full height and run past the blurb. z-index 1 keeps him behind the
   wordmark; the blob copy at z-index 3 is what brings him in front of it. */
.hero-photo{position:absolute;left:50%;bottom:0;z-index:1;
  height:min(56svh,540px);display:grid;place-items:end center;
  transform-origin:50% 100%;translate:-50% 0}
.hero-photo img{height:100%;width:auto;object-fit:contain;
  filter:drop-shadow(0 40px 70px rgba(0,0,0,.75));
  opacity:0;transform:translateY(60px) scale(.96)}
.ready .hero-photo img{animation:photoIn 1.4s var(--ease) .35s forwards}
@keyframes photoIn{to{opacity:1;transform:none}}
.photo-note{
  position:absolute;bottom:6%;left:50%;transform:translateX(-50%);
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;text-align:center;
  color:var(--muted);border:1px dashed var(--line);border-radius:12px;padding:10px 16px;
  background:rgba(12,8,23,.6);backdrop-filter:blur(8px);line-height:1.7;
}
.photo-note b{color:var(--violet-hi)}
.photo-glow{position:absolute;bottom:-6%;left:50%;transform:translateX(-50%);
  width:70%;height:90px;background:radial-gradient(ellipse,rgba(139,92,246,.55),transparent 70%);filter:blur(28px)}
/* a real cut-out stands taller, and fades out at the bottom so it melts into
   the page instead of ending on a hard straight edge */
/* Tall, but leaving room above his hood for the nav and the kicker. At 92svh a
   short laptop window pushed his head under the navigation. */
.has-hero-photo .hero-photo{height:min(78svh,880px)}
/* the revealed copy is styled by the very same rule, so the two are one picture
   drawn twice and nothing about the silhouette can drift between them */
/* A filter and a mask on the SAME element make Chromium rasterise a layer whose
   rectangular bounds show through as a faint box around the cut-out. Either one
   alone is clean, so the shadow goes on the wrapper and the fade on the image. */
.has-hero-photo .hero-photo{filter:drop-shadow(0 26px 44px rgba(0,0,0,.72))}
.has-hero-photo .hero-photo img,
.has-hero-photo #peekPhoto{
  filter:none;              /* the placeholder's shadow, moved to the wrapper */
  -webkit-mask-image:linear-gradient(to bottom,#000 78%,rgba(0,0,0,.45) 92%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 78%,rgba(0,0,0,.45) 92%,transparent 100%);
}
.has-hero-photo .photo-glow{display:none}

.hero-fg{position:absolute;inset:0;pointer-events:none;z-index:4}
/* The two app tiles, floating in real perspective: the wrapper handles drift and
   the face does the rotation, so the two never fight over one transform. */
.app-badge{
  position:absolute;width:clamp(52px,6.2vw,92px);aspect-ratio:1;
  perspective:520px;opacity:0;
  animation:badgeIn 1s var(--ease) 1.1s forwards, badgeDrift 9s ease-in-out 1.1s infinite;
}
.ab-l{left:4%;top:34%}
.ab-r{right:4%;top:50%}
.ab-face{
  position:relative;width:100%;height:100%;transform-style:preserve-3d;
  animation:badgeTurn 11s cubic-bezier(.45,0,.55,1) infinite;
  filter:drop-shadow(0 18px 26px rgba(0,0,0,.6));
}
.ab-face svg{width:100%;height:100%;display:block}
/* a specular streak that sweeps across as the tile turns */
.ab-sheen{
  position:absolute;inset:4%;border-radius:22%;pointer-events:none;overflow:hidden;
}
.ab-sheen::after{
  content:'';position:absolute;top:-40%;bottom:-40%;width:42%;left:-60%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent);
  animation:badgeSheen 11s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes badgeIn{from{opacity:0}to{opacity:1}}
@keyframes badgeDrift{
  0%,100%{transform:translateY(0)}
  50%    {transform:translateY(-14px)}
}
@keyframes badgeTurn{
  0%,100%{transform:rotateY(-26deg) rotateX(9deg)}
  50%    {transform:rotateY(26deg)  rotateX(-7deg)}
}
@keyframes badgeSheen{
  0%,100%{left:-60%}
  50%    {left:120%}
}
.ab-r .ab-face{animation-delay:-5.5s}
.ab-r{animation-delay:1.1s,-4s}
@media (max-width:700px){.app-badge{display:none}}
@media (prefers-reduced-motion:reduce){
  .ab-face{animation:none;transform:rotateY(-14deg) rotateX(6deg)}
  .ab-sheen::after{animation:none}
}

/* Pinned to the top of the stage rather than to the wordmark, so a tall cut-out
   can never stand in front of it. */
.hero-kicker{
  position:absolute;top:clamp(10px,3.4vh,34px);left:50%;transform:translateX(-50%);z-index:6;
  display:flex;align-items:center;justify-content:center;gap:.7em;white-space:nowrap;
  font-family:'Space Grotesk',sans-serif;
  font-size:clamp(10px,1.35vw,15px);letter-spacing:.34em;font-weight:500;line-height:1;
  pointer-events:none;
}
.hk-fixed{color:var(--muted)}
/* the slot animates to each word's width, so "I MAKE <word>" stays one centred unit */
.hk-slot{position:relative;display:inline-block;vertical-align:top;
  transition:width .55s cubic-bezier(.16,1,.3,1)}
.hk-ghost{visibility:hidden;white-space:pre}
.hk-word{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-start}
.hk-ch{
  display:inline-block;white-space:pre;
  background:linear-gradient(100deg,var(--violet-hi),var(--magenta) 55%,var(--cyan));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hk-word.in  .hk-ch{animation:hkIn .52s cubic-bezier(.16,1,.3,1) both;  animation-delay:calc(var(--i)*34ms)}
.hk-word.out .hk-ch{animation:hkOut .38s cubic-bezier(.7,0,.84,0) both; animation-delay:calc(var(--i)*22ms)}
@keyframes hkIn{
  from{opacity:0;transform:translateY(90%) rotateX(-85deg) scale(.7);filter:blur(5px)}
  to  {opacity:1;transform:none;filter:blur(0)}
}
@keyframes hkOut{
  from{opacity:1;transform:none;filter:blur(0)}
  to  {opacity:0;transform:translateY(-90%) rotateX(85deg) scale(.7);filter:blur(5px)}
}

.hero-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;
  padding-top:52px;border-top:1px solid var(--line);margin-top:26px}
.hero-blurb{max-width:46ch;font-size:clamp(14px,1.5vw,17px);line-height:1.62;color:#cdc5e0}
.hero-blurb em{display:block;margin-top:8px;font-style:normal;color:var(--muted);font-size:.85em;letter-spacing:.02em}
.scroll-cue{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--muted);font-size:10px;letter-spacing:.3em}
.sc-line{width:1px;height:52px;background:rgba(255,255,255,.12);position:relative;overflow:hidden}
.sc-line i{position:absolute;inset:0;background:linear-gradient(var(--violet),var(--magenta));animation:scrollDown 1.9s var(--ease) infinite}
@keyframes scrollDown{0%{transform:translateY(-100%)}60%,100%{transform:translateY(100%)}}
@media (max-width:760px){.hero-bottom{flex-direction:column;align-items:flex-start}.scroll-cue{flex-direction:row}.sc-line{display:none}}

/* ==========================================================
   SHARED SECTION BITS
   ========================================================== */
section{position:relative;z-index:1}
.eyebrow{display:inline-block;font-size:10.5px;letter-spacing:.32em;text-transform:uppercase;
  color:var(--violet-hi);margin-bottom:18px}
.sec-title{font-family:'Anton',sans-serif;font-size:clamp(34px,6vw,86px);line-height:.96;letter-spacing:-.005em}
.sec-title em{font-style:normal;
  background:linear-gradient(100deg,var(--violet-hi),var(--magenta),var(--cyan));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.sec-note{margin-top:18px;max-width:52ch;color:var(--muted);font-size:14.5px;line-height:1.7}

.reveal{opacity:0;transform:translateY(46px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.reveal.in{opacity:1;transform:none}

/* ==========================================================
   YOUTUBE WALL
   ========================================================== */
#wall{padding:clamp(80px,12vh,150px) 0 40px;overflow:hidden}
.wall-head{padding:0 var(--pad);margin-bottom:56px}
.wall-tilt{perspective:2800px;perspective-origin:50% 42%}
.wall-rows{transform:rotateX(19deg) rotateZ(-5deg) scale(1.04);transform-style:preserve-3d;
  display:flex;flex-direction:column;gap:44px;padding:20px 0 60px;
  filter:brightness(.82) saturate(.92);transition:filter .6s}
.wall-rows:hover{filter:none}
.wall-fade{position:absolute;left:0;right:0;bottom:0;height:220px;pointer-events:none;
  background:linear-gradient(transparent,var(--bg) 78%)}

.row{display:flex;gap:20px;width:max-content;will-change:transform;transform-style:preserve-3d}
.row.r0{animation:slide 62s linear infinite}
.row.r1{animation:slide 78s linear infinite reverse}
.row.r2{animation:slide 70s linear infinite}
@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* transform is driven by JS (magnetic hover); keep the transition short so it tracks the cursor */
.yt{width:244px;flex:none;cursor:pointer;transform-style:preserve-3d;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),filter .45s}
.yt-thumb{position:relative;border-radius:13px;overflow:hidden;background:#161122;
  box-shadow:0 18px 40px rgba(0,0,0,.55);transition:box-shadow .5s}
.yt-thumb img{width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .8s var(--ease),filter .5s}
.yt-time{position:absolute;right:7px;bottom:7px;background:rgba(0,0,0,.82);color:#fff;
  font-size:10.5px;padding:2px 5px;border-radius:4px;font-weight:500;letter-spacing:.02em}
.yt-play{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transition:opacity .4s;
  background:linear-gradient(transparent 40%,rgba(0,0,0,.5))}
.yt-play svg{width:42px;height:42px;fill:#fff;filter:drop-shadow(0 4px 14px rgba(0,0,0,.6));
  transform:scale(.5);transition:transform .5s var(--spring)}
.yt-meta{display:flex;gap:10px;padding:11px 2px 0}
.av-img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.yt-av{width:32px;height:32px;border-radius:50%;flex:none;overflow:hidden;
  background:linear-gradient(140deg,hsl(var(--h),70%,55%),hsl(var(--h),70%,32%));
  display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff}
.yt-txt{min-width:0}
.yt-title{font-size:13.5px;font-weight:500;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  transition:color .3s}
.yt-sub{font-size:11.5px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yt:hover .yt-thumb{box-shadow:0 34px 70px rgba(139,92,246,.45),0 0 0 1.5px rgba(167,139,250,.5)}
.yt:hover .yt-thumb img{transform:scale(1.09)}
.yt:hover .yt-play{opacity:1}
.yt:hover .yt-play svg{transform:scale(1)}
.yt:hover .yt-title{color:var(--violet-hi)}
.wall-rows:hover .yt:not(:hover){filter:brightness(.55) saturate(.7)}

/* ==========================================================
   CLIENT TICKER
   ========================================================== */
#clients{padding:30px 0 clamp(80px,12vh,140px)}
.ticker-wrap{padding:0}
.ticker-label{display:block;text-align:center;font-size:10.5px;letter-spacing:.32em;
  text-transform:uppercase;color:var(--muted);margin-bottom:26px}
/* padding gives the hover lift room inside the clip; the negative margin keeps
   the row where it was in the layout */
.ticker{overflow:hidden;padding:18px 0;margin:-18px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.ticker-track{display:flex;gap:16px;width:max-content;animation:slide 46s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
.ch{display:flex;align-items:center;gap:12px;padding:11px 20px 11px 12px;border-radius:99px;
  border:1px solid var(--line);background:rgba(18,12,34,.5);backdrop-filter:blur(10px);
  transition:transform .45s var(--spring),border-color .4s,background .4s}
.ch:hover{transform:translateY(-5px) scale(1.04);border-color:var(--violet);background:rgba(139,92,246,.14)}
.ch-av{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:14px;overflow:hidden;
  background:linear-gradient(140deg,hsl(var(--h),72%,58%),hsl(var(--h),72%,30%));
  box-shadow:0 0 0 2px rgba(255,255,255,.08)}
.ch-name{font-size:14px;font-weight:600;white-space:nowrap}
.ch-sub{font-size:11px;color:var(--muted);white-space:nowrap}

/* ==========================================================
   WORK / FOLDERS (liquid glass)
   ========================================================== */
#work{padding:0 var(--pad) clamp(90px,14vh,160px)}
.work-head{margin-bottom:56px}
.folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px}

.folder{
  position:relative;border-radius:30px;padding:16px;cursor:pointer;overflow:hidden;
  background:linear-gradient(150deg,rgba(255,255,255,.1),rgba(255,255,255,.028));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 20px 44px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .55s var(--spring),box-shadow .5s,border-color .4s;
  opacity:0;
}
/* backdrop-filter is only switched on AFTER the entrance — blurring a moving,
   scaling element is what made the reveal stutter. */
.folder.settled{opacity:1;backdrop-filter:blur(26px) saturate(180%)}
.folder.in{animation:folderPop .9s cubic-bezier(.2,1.3,.35,1) both;
  animation-delay:calc(var(--i)*85ms)}
@keyframes folderPop{
  0%  {opacity:0;transform:perspective(1000px) translate3d(0,64px,-160px) rotateX(-26deg) scale(.88)}
  55% {opacity:1}
  70% {transform:perspective(1000px) translate3d(0,-10px,0) rotateX(5deg) scale(1.035)}
  100%{opacity:1;transform:perspective(1000px) translate3d(0,0,0) rotateX(0) scale(1)}
}
/* one-shot light sweep across the glass as it lands */
.folder::after{
  content:'';position:absolute;top:0;bottom:0;width:60%;pointer-events:none;border-radius:inherit;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.22),transparent);
  left:-70%;opacity:0;
}
.folder.in::after{animation:sweep .85s ease-out both;animation-delay:calc(var(--i)*85ms + .25s)}
@keyframes sweep{0%{left:-70%;opacity:0}30%{opacity:1}100%{left:120%;opacity:0}}
/* specular sheen that follows the pointer */
.folder::before{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(420px circle at var(--mx,50%) var(--my,0%),rgba(255,255,255,.17),transparent 62%);
  opacity:0;transition:opacity .45s;
}
.folder:hover::before{opacity:1}
.folder:hover{transform:translateY(-10px) scale(1.025);
  border-color:rgba(167,139,250,.45);
  box-shadow:0 34px 70px rgba(124,58,237,.35), inset 0 1px 0 rgba(255,255,255,.35)}
.fold-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;border-radius:19px;overflow:hidden}
.fold-grid img{width:100%;aspect-ratio:16/10;object-fit:cover;
  transition:transform .7s var(--ease),filter .5s;filter:saturate(.92)}
.folder:hover .fold-grid img{filter:saturate(1.15)}
.folder:hover .fold-grid img:nth-child(1){transform:translate(-3px,-3px) scale(1.06)}
.folder:hover .fold-grid img:nth-child(2){transform:translate(3px,-3px) scale(1.06)}
.folder:hover .fold-grid img:nth-child(3){transform:translate(-3px,3px) scale(1.06)}
.folder:hover .fold-grid img:nth-child(4){transform:translate(3px,3px) scale(1.06)}
.fold-foot{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:15px 6px 5px}
.fold-name{font-size:15px;font-weight:600;letter-spacing:.01em}
.fold-blurb{font-size:11.5px;color:var(--muted);margin-top:3px;line-height:1.45;
  min-height:2lh;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fold-count{flex:none;font-size:11px;font-weight:600;padding:5px 10px;border-radius:99px;
  background:rgba(139,92,246,.18);border:1px solid var(--line);color:var(--violet-hi)}

/* ---------- folder overlay ---------- */
#folderOverlay{position:fixed;inset:0;z-index:950;display:none}
#folderOverlay.open{display:block}
.fo-scrim{position:absolute;inset:0;background:rgba(5,3,10,.72);backdrop-filter:blur(26px) saturate(140%);
  opacity:0;transition:opacity .45s}
#folderOverlay.show .fo-scrim{opacity:1}
.fo-panel{
  position:absolute;left:50%;top:50%;width:min(1180px,92vw);max-height:86vh;overflow:auto;
  border-radius:34px;padding:clamp(22px,3.4vw,40px);
  background:linear-gradient(155deg,rgba(28,20,50,.92),rgba(12,8,23,.96));
  border:1px solid rgba(167,139,250,.28);
  box-shadow:0 50px 120px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.14);
  transform:translate(-50%,-50%) scale(.82);opacity:0;
  transition:transform .62s var(--spring),opacity .4s;
}
#folderOverlay.show .fo-panel{transform:translate(-50%,-50%) scale(1);opacity:1}
.fo-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px}
.fo-eyebrow{font-size:10px;letter-spacing:.3em;text-transform:uppercase;color:var(--violet-hi)}
.fo-title{font-family:'Anton',sans-serif;font-size:clamp(26px,4vw,48px);line-height:1;margin-top:8px}
.fo-close,.lb-close{width:46px;height:46px;flex:none;border-radius:50%;display:grid;place-items:center;
  border:1px solid var(--line);background:rgba(255,255,255,.06);
  transition:background .35s,transform .45s var(--spring),border-color .35s}
.fo-close svg,.lb-close svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round}
.fo-close:hover,.lb-close:hover{background:var(--violet);transform:rotate(90deg);border-color:var(--violet)}
.fo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(252px,1fr));gap:18px}
.fo-card{border-radius:16px;overflow:hidden;cursor:pointer;position:relative;background:#171128;
  opacity:0;transform:translateY(24px);animation:cardIn .6s var(--ease) forwards;
  animation-delay:calc(var(--i)*45ms + .12s);transition:transform .5s var(--spring)}
@keyframes cardIn{to{opacity:1;transform:none}}
.fo-card img{width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .7s var(--ease)}
.fo-card:hover{transform:scale(1.045)!important;z-index:3}
.fo-card:hover img{transform:scale(1.1)}
.fo-cap{position:absolute;inset:auto 0 0 0;padding:26px 13px 12px;
  background:linear-gradient(transparent,rgba(6,4,12,.94));
  transform:translateY(8px);opacity:0;transition:.45s var(--ease)}
.fo-card:hover .fo-cap{transform:none;opacity:1}
.fo-cap b{display:block;font-size:13px;font-weight:600}
.fo-cap span{font-size:11px;color:var(--muted)}
.ba-badge{position:absolute;top:10px;left:10px;font-size:9.5px;font-weight:700;letter-spacing:.12em;
  padding:4px 8px;border-radius:99px;background:rgba(139,92,246,.92);box-shadow:0 4px 14px rgba(0,0,0,.4)}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
#words{padding:0 var(--pad) clamp(90px,14vh,160px)}
.quotes{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}
.qc{border-radius:20px;padding:22px;border:1px solid var(--line);
  background:linear-gradient(155deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
  backdrop-filter:blur(16px);position:relative;overflow:hidden;
  transition:transform .55s var(--spring),border-color .4s,box-shadow .5s}
.qc::before{content:'';position:absolute;inset:0;
  background:radial-gradient(340px circle at var(--mx,50%) var(--my,50%),rgba(139,92,246,.16),transparent 65%);
  opacity:0;transition:opacity .4s}
.qc:hover::before{opacity:1}
.qc:hover{transform:translateY(-7px);border-color:rgba(167,139,250,.4);box-shadow:0 26px 54px rgba(0,0,0,.45)}
.qc.ghost{border-style:dashed;opacity:.62}
.qc-top{display:flex;align-items:center;gap:11px;margin-bottom:13px}
.qc-av{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:700;
  background:linear-gradient(140deg,hsl(var(--h),70%,58%),hsl(var(--h),70%,32%))}
.qc-name{font-size:14px;font-weight:600}
.qc-name i{font-style:normal;color:var(--muted);font-weight:400;font-size:11.5px;margin-left:7px}
.qc-date{font-size:10.5px;color:var(--muted);margin-left:auto}
.qc-text{font-size:14px;line-height:1.68;color:#d7d1e6;position:relative}

/* ==========================================================
   ABOUT
   ========================================================== */
#about{padding:0 var(--pad) clamp(90px,14vh,160px)}
.about-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:clamp(30px,5vw,80px);align-items:start}
@media (max-width:900px){.about-grid{grid-template-columns:1fr}}
.about-copy p{margin-top:20px;font-size:16px;line-height:1.78;color:#cbc4dd;max-width:60ch}
.about-copy p b{color:var(--text);font-weight:600}
.about-side{color:var(--muted)!important;font-size:14.5px!important;
  padding-left:18px;border-left:2px solid var(--line)}
.about-kit{display:flex;gap:clamp(28px,4vw,56px);flex-wrap:wrap;align-items:flex-start}
.kit-skills{flex:1 1 360px;min-width:min(100%,300px)}
.kit-tools{flex:0 0 auto;margin-top:34px}
.tools{list-style:none;display:flex;flex-direction:column;gap:11px}
.tool{display:flex;align-items:center;gap:11px;font-size:13.5px;color:#cbc4dd;transition:color .3s}
.tool:hover{color:var(--text)}
.tool:hover .sk-ico{transform:translateY(-3px) scale(1.1);box-shadow:0 8px 20px rgba(0,0,0,.5)}
.sk-ico.tri b{font-size:9px;letter-spacing:-.02em}

.skill-group{margin-top:34px;max-width:480px}
.sk-head{display:block;font-size:10px;letter-spacing:.3em;text-transform:uppercase;
  color:var(--violet-hi);margin-bottom:14px}
.skills{display:flex;flex-direction:column;gap:13px}
.skill{display:flex;align-items:center;gap:13px}
.sk-ico{width:30px;height:30px;flex:none;border-radius:8px;display:grid;place-items:center;
  background:var(--tile);border:1px solid rgba(255,255,255,.12);color:var(--ink);
  transition:transform .45s var(--spring),box-shadow .4s}
.sk-ico b{font-size:12px;font-weight:700;letter-spacing:.01em}
.sk-ico svg{width:17px;height:17px;fill:none;stroke:var(--ink);stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}
.skill:hover .sk-ico{transform:translateY(-3px) scale(1.1);box-shadow:0 8px 20px rgba(0,0,0,.5)}
.sk-name{font-size:12.5px;letter-spacing:.05em;color:var(--muted);width:112px;flex:none}
.sk-bar{flex:1;height:4px;border-radius:4px;background:rgba(255,255,255,.08);overflow:hidden}
.sk-bar i{display:block;height:100%;width:0;border-radius:4px;
  background:linear-gradient(90deg,var(--violet),var(--magenta));
  transition:width 1.5s var(--ease)}
.skill.in .sk-bar i{width:calc(var(--v)*100%)}

.about-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.stat{border-radius:20px;padding:24px 20px;border:1px solid var(--line);
  background:linear-gradient(160deg,rgba(255,255,255,.055),transparent);
  transition:transform .5s var(--spring),border-color .4s}
.stat:hover{transform:translateY(-6px);border-color:var(--violet)}
.stat b{display:block;font-family:'Anton',sans-serif;font-size:clamp(30px,4vw,46px);line-height:1;
  background:linear-gradient(160deg,#fff,var(--violet-hi));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.stat span{display:block;margin-top:9px;font-size:11.5px;letter-spacing:.06em;color:var(--muted);line-height:1.5}

/* ==========================================================
   CONTACT
   ========================================================== */
#contact{padding:0 var(--pad)}
.contact-inner{padding:clamp(60px,9vh,110px) 0 clamp(60px,9vh,100px);text-align:center;
  border-top:1px solid var(--line)}
.contact-title{font-family:'Anton',sans-serif;font-size:clamp(38px,8.4vw,128px);line-height:.92;letter-spacing:-.01em}
.contact-title span{display:block}
.ct-em{background:linear-gradient(100deg,var(--violet-hi),var(--magenta),var(--cyan));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.mail-cta{display:inline-flex;align-items:center;gap:16px;margin-top:44px;
  padding:19px 34px;border-radius:99px;border:1px solid var(--line);
  font-size:clamp(14px,2vw,20px);letter-spacing:.01em;
  background:rgba(139,92,246,.09);position:relative;overflow:hidden;
  transition:border-color .4s,transform .5s var(--spring)}
.mail-cta::before{content:'';position:absolute;inset:0;
  background:linear-gradient(100deg,var(--violet),var(--magenta));
  transform:translateY(101%);transition:transform .55s var(--ease)}
.mail-cta:hover::before{transform:none}
.mail-cta:hover{border-color:transparent}
.mc-text,.mc-ico{position:relative;z-index:1}
.mc-ico{transition:transform .45s var(--spring)}
.mail-cta:hover .mc-ico{transform:translateX(7px)}
.mail-cta.copied .mc-text::after{content:' — copied';color:#fff;opacity:.8;font-size:.8em}

.socials{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:40px}
.soc{display:inline-flex;align-items:center;gap:10px;padding:10px 20px 10px 13px;border-radius:99px;
  border:1px solid var(--line);font-size:13px;
  transition:transform .5s var(--spring),background .4s,border-color .4s}
.soc b{font-weight:500}
.soc span{color:var(--muted);font-size:12px}
.soc-ico{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.07);color:var(--muted);transition:background .4s,color .4s,transform .5s var(--spring)}
.soc-ico svg{width:16px;height:16px;fill:currentColor}
.soc-ico svg.stroked{fill:none;stroke:currentColor;stroke-width:1.7}
.soc-ico svg.stroked .solid{fill:currentColor;stroke:none}
.soc:hover{transform:translateY(-5px);background:rgba(139,92,246,.16);border-color:var(--brand)}
.soc:hover .soc-ico{background:var(--brand);color:#0a0614;transform:rotate(-8deg) scale(1.1)}
.pay{display:inline-flex;align-items:center;gap:9px;margin-top:34px;font-size:12px;color:var(--muted)}
.pay b{color:var(--text);font-weight:600}
.pay i{font-style:normal;opacity:.4}

footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  padding:26px 0 34px;border-top:1px solid var(--line);font-size:11.5px;color:var(--muted)}
.foot-logo{font-family:'Anton',sans-serif;font-size:15px;color:var(--text);letter-spacing:.06em}
.foot-logo em{font-style:normal;color:var(--violet-hi);margin-left:.18em}

/* ==========================================================
   LIGHTBOX
   ========================================================== */
#lightbox{position:fixed;inset:0;z-index:980;display:none}
#lightbox.open{display:block}
.lb-scrim{position:absolute;inset:0;background:rgba(4,2,9,.9);backdrop-filter:blur(20px);
  opacity:0;transition:opacity .4s}
#lightbox.show .lb-scrim{opacity:1}
.lb-close{position:absolute;top:22px;right:22px;z-index:3}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:52px;height:52px;border-radius:50%;display:grid;place-items:center;
  border:1px solid var(--line);background:rgba(255,255,255,.06);
  transition:background .35s,transform .4s}
.lb-nav svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lb-nav:hover{background:var(--violet)}
.lb-prev{left:22px}.lb-next{right:22px}
@media (max-width:700px){.lb-nav{top:auto;bottom:22px;transform:none}.lb-prev{left:26%}.lb-next{right:26%}}
.lb-figure{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.9);
  width:min(1120px,90vw);opacity:0;transition:transform .6s var(--spring),opacity .4s}
#lightbox.show .lb-figure{transform:translate(-50%,-50%) scale(1);opacity:1}
.lb-stage{position:relative;border-radius:18px;overflow:hidden;aspect-ratio:16/9;background:#100b1e;
  box-shadow:0 44px 100px rgba(0,0,0,.75), 0 0 0 1px rgba(167,139,250,.22)}
.lb-img{width:100%;height:100%;object-fit:cover}
.lb-compare{position:absolute;inset:0;display:none}
.lb-compare.on{display:block}
.lb-before{position:absolute;inset:0;width:50%;overflow:hidden;border-right:2px solid rgba(255,255,255,.9)}
/* stage is 16/9, so matching height + aspect-ratio makes the image exactly stage-wide */
.lb-before img{position:absolute;left:0;top:0;height:100%;width:auto;max-width:none;
  aspect-ratio:16/9;object-fit:cover}
.lb-handle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:52px;height:52px;border-radius:50%;background:#fff;border:3px solid var(--violet);
  display:grid;place-items:center;cursor:ew-resize;box-shadow:0 8px 30px rgba(0,0,0,.7)}
.lb-handle i{width:18px;height:18px;border-left:3px solid var(--violet);border-right:3px solid var(--violet);
  border-radius:2px;display:block}
.lb-handle span{position:absolute;top:calc(100% + 10px);font-size:9px;letter-spacing:.2em;
  text-transform:uppercase;color:#fff;white-space:nowrap;
  background:rgba(10,6,20,.8);padding:3px 8px;border-radius:99px}
.lb-tag{position:absolute;top:14px;font-size:10px;font-weight:700;letter-spacing:.16em;
  padding:5px 11px;border-radius:99px;background:rgba(0,0,0,.72);backdrop-filter:blur(6px)}
.tag-before{left:14px}.tag-after{right:14px}
.lb-figure figcaption{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;padding:18px 4px 0}
.lb-title{font-size:18px;font-weight:600}
.lb-meta{font-size:12.5px;color:var(--muted)}

/* ==========================================================
   MOBILE
   ========================================================== */
/* a down arrow that only phones get, since the blurb and its SCROLL cue end up
   behind him there */
.tap-scroll{display:none}
@media (max-width:760px){
  .tap-scroll{
    display:grid;place-items:center;position:absolute;z-index:5;
    /* the hero runs taller than the screen, so anchor to the first viewport's
       bottom rather than to the section's */
    left:50%;top:calc(100svh - 66px);transform:translateX(-50%);
    width:44px;height:44px;border-radius:50%;
    border:1px solid var(--line);background:rgba(10,7,20,.55);
    backdrop-filter:blur(10px);
    animation:tapBob 1.9s ease-in-out infinite;
  }
  .tap-scroll span{
    width:11px;height:11px;border-right:2px solid var(--violet-hi);
    border-bottom:2px solid var(--violet-hi);transform:rotate(45deg) translate(-2px,-2px);
  }
  @keyframes tapBob{
    0%,100%{transform:translateX(-50%) translateY(0)}
    50%    {transform:translateX(-50%) translateY(7px)}
  }
}

@media (max-width:760px){
  .wall-rows{transform:rotateX(14deg) rotateZ(-4deg) scale(1.1)}
  .yt{width:212px}
  .about-stats{grid-template-columns:1fr 1fr}

  /* the page was a very long single column: pack the repeating blocks two-up
     and pull the vertical rhythm in so it is not such a trek to the bottom */
  .folders{grid-template-columns:1fr 1fr;gap:12px}
  .fold-name{font-size:13px}
  .fold-blurb{display:none}
  .folder{padding:11px;border-radius:22px}
  .fold-grid{gap:5px;border-radius:14px}
  .quotes{gap:12px}
  #work,#words,#about{padding-bottom:clamp(54px,9vh,80px)}
  #clients{padding-bottom:clamp(44px,7vh,70px)}
  .work-head,.wall-head{margin-bottom:30px}
  /* About was by far the tallest block, so the skill rows go two-up and the
     paragraphs tighten rather than the copy being cut */
  .about-copy p{margin-top:14px;font-size:15px;line-height:1.68}
  .skill-group{margin-top:20px}
  .about-kit{gap:18px}
  .skills{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
  .tools{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
  .skill{flex-wrap:wrap;gap:9px}
  .sk-name{width:auto;flex:1;font-size:11.5px}
  .sk-bar{flex-basis:100%;order:3}
  .sk-ico,.tool .sk-ico{width:26px;height:26px}
  .sk-ico b{font-size:10.5px}
  .kit-tools{margin-top:20px}

  .contact-inner{padding:clamp(40px,7vh,70px) 0}
  .contact-title{font-size:clamp(34px,11vw,60px)}
  .mail-cta{margin-top:28px;padding:15px 22px}
  .socials{margin-top:26px;gap:9px}

  /* the tilted wall does not need this much room on a phone */
  .wall-rows{gap:26px;padding:12px 0 34px}
  #wall{padding-top:clamp(56px,9vh,110px)}
  /* size him by width on a phone: driving it from height makes a tall portrait
     wider than the screen */
  /* no pointer means no reveal, so the wordmark would simply sit on his face
     forever. On phones he goes in front of it instead. */
  .hero-photo,
  .has-hero-photo .hero-photo{height:auto;width:min(108vw,440px);z-index:3}
  .has-hero-photo .hero-photo img{width:100%;height:auto}
  .hero-backdrop img{object-position:50% 28%}
}
@media (max-width:560px){
  .hero-kicker{letter-spacing:.24em;gap:.5em}
  /* the folders stay two-up even here; one per row made the page endless.
     Inside an opened folder the pieces still get the full width. */
  .fo-grid{grid-template-columns:1fr}
}
/* ---------- touch devices: the expensive effects are what make scrolling stutter ---------- */
@media (pointer:coarse){
  /* the reveal is a pointer effect; with no pointer it is just dead weight */
  #peek{display:none}
  #cursor{display:none}
  /* a full-screen animated noise layer repaints on every frame */
  .grain{animation:none;opacity:.03}
  /* 110px blurs over huge elements are the single heaviest thing on a phone */
  .blob{filter:blur(64px)}
  .b3{display:none}
  /* filtering the whole tilted 3D wall forces an offscreen composite each frame */
  .wall-rows{filter:none}
  .yt{transition:none}
  /* backdrop-filter over a scrolling page is very costly; a flat panel reads the same */
  .folder.settled{backdrop-filter:none;background:linear-gradient(150deg,rgba(40,30,66,.92),rgba(18,12,34,.92))}
  .qc{backdrop-filter:none}
  .ch{backdrop-filter:none}
}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  html{scroll-behavior:auto}
}
