/* ============================================================
   44 AESTHETIC DESIGN SYSTEM — CONSOLIDATED STYLESHEET
   ============================================================ */

/* ============================================================
   1. TOKENS: Kolory, fonty, ruch
   ============================================================ */
:root{
  --void:#000000;
  --void-1:#040405;
  --void-2:#070709;
  --void-3:#0B0C0E;

  --ink:#F2F5F8;
  --ink-2:#9AA1A9;
  --ink-3:#6A7178;
  --ink-4:#41464C;
  --ink-5:#23262A;

  --edge:rgba(255,255,255,.09);
  --edge-2:rgba(255,255,255,.045);
  --glass:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.008));

  --chrome:linear-gradient(176deg,
    #FFFFFF 0%, #D6DCE2 11%, #7E858D 25%, #F4F7FA 38%,
    #5A6167 52%, #C9D0D7 66%, #6E757D 80%, #FBFCFD 100%);
  --chrome-2:linear-gradient(120deg,
    #8A9198 0%, #FFFFFF 22%, #4E5459 44%, #E8ECF0 62%, #6B7278 82%, #FFFFFF 100%);

  --sans:system-ui,-apple-system,"Segoe UI Variable Display","Segoe UI",Roboto,
         "Helvetica Neue","Liberation Sans",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,
         "Liberation Mono","Courier New",monospace;

  --e:cubic-bezier(.16,1,.3,1);
  --spring:cubic-bezier(.22,1.4,.32,1);

  --p:0;
  --mx:50%;
  --my:40%;
  --tx:0;
  --ty:0;
  --lvl:0;
}

/* ============================================================
   2. BASE & BACKGROUND LAYERS
   ============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}

html{
  background:var(--void);
  -webkit-text-size-adjust:100%;
}

body{
  font-family:var(--sans);
  color:var(--ink-2);
  background:var(--void);
  overflow:hidden;
  overscroll-behavior:none;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0}
img{display:block;max-width:100%}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:.08em}

.sheet{
  position:fixed;inset:-40%;z-index:0;pointer-events:none;
  background:
    conic-gradient(from 0deg at 50% 50%,
      #000 0deg, #0E1013 42deg, #000 96deg,
      #14171B 168deg, #000 220deg, #0A0C0E 296deg, #000 360deg);
  filter:blur(90px) saturate(.4);
  opacity:.85;
  animation:spin 97s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.sheet2{
  position:fixed;inset:-50%;z-index:0;pointer-events:none;
  background:
    radial-gradient(38% 30% at 30% 32%, rgba(255,255,255,.05), transparent 70%),
    radial-gradient(30% 26% at 72% 66%, rgba(255,255,255,.038), transparent 72%);
  filter:blur(70px);
  animation:spin2 143s linear infinite;
}
@keyframes spin2{to{transform:rotate(-360deg) scale(1.08)}}

#field{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.9}

.spec{
  position:fixed;inset:0;z-index:2;pointer-events:none;
  background:radial-gradient(
    calc(30vmax + var(--lvl) * 12vmax) calc(24vmax + var(--lvl) * 10vmax)
    at var(--mx) var(--my),
    rgba(255,255,255,.055), transparent 68%);
  mix-blend-mode:screen;
  transition:background .25s linear;
}

.scan{
  position:fixed;left:0;right:0;height:38vh;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,
    transparent, rgba(255,255,255,.028) 45%, rgba(255,255,255,.05) 50%,
    rgba(255,255,255,.028) 55%, transparent);
  mix-blend-mode:screen;
  animation:scan 13s linear infinite;
}
@keyframes scan{
  0%{transform:translateY(-40vh)}
  100%{transform:translateY(140vh)}
}

.vign{
  position:fixed;inset:0;z-index:3;pointer-events:none;
  background:radial-gradient(120% 90% at 50% 45%, transparent 42%, #000 100%);
}
.grain{
  position:fixed;inset:-120px;z-index:4;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  animation:jitter 1.1s steps(3) infinite;
}
@keyframes jitter{
  0%{transform:translate(0,0)}
  33%{transform:translate(-24px,14px)}
  66%{transform:translate(18px,-20px)}
  100%{transform:translate(0,0)}
}

.stage{
  position:relative;z-index:5;height:100dvh;
  display:grid;grid-template-rows:auto 1fr;
  padding:clamp(14px,2.2vh,24px) clamp(16px,3.4vw,46px) clamp(14px,2.2vh,22px);
  overflow:hidden;
}

.bar{
  display:flex;align-items:center;gap:14px;
  font-size:9.5px;font-weight:700;letter-spacing:.24em;
  text-transform:uppercase;color:var(--ink-4);
}
.bar .tag{
  background:var(--chrome);-webkit-background-clip:text;background-clip:text;color:transparent;
  font-size:15px;font-weight:900;letter-spacing:-.04em;
  opacity:clamp(0,calc((var(--p) - .45) * 3),1);
}
.bar .rule{
  flex:1;height:1px;position:relative;overflow:hidden;
  background:linear-gradient(90deg,var(--edge),transparent);
}
.bar .rule::after{
  content:"";position:absolute;top:0;left:0;width:22%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);
  animation:runline 7s var(--e) infinite;
}

.lang-switch{
  background:transparent;
  border:1px solid rgba(255,255,255,.08);
  border-radius:4px;
  padding:2px 7px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-family:var(--mono);
  font-size:9.5px;
  font-weight:700;
  color:var(--ink-4);
  cursor:pointer;
  transition:all .25s var(--e);
  user-select:none;
}
.lang-switch:hover{
  border-color:rgba(255,255,255,.25);
  color:var(--ink);
  background:rgba(255,255,255,.03);
}
.lang-switch .l-opt{
  transition:color .2s var(--e);
}
.lang-switch .l-opt.active{
  color:var(--ink);
  font-weight:900;
  text-shadow:0 0 8px rgba(255,255,255,.6);
}
.lang-switch .l-sep{
  color:var(--ink-4);
  opacity:.4;
}
@keyframes runline{
  0%{transform:translateX(-120%)}
  55%{transform:translateX(560%)}
  100%{transform:translateX(560%)}
}

.mid{
  position:absolute;
  inset:clamp(40px, 5vh, 54px) 0 0 0;
  display:grid;
  place-items:center;
  pointer-events:none;
}

.hint{
  position:fixed;left:50%;bottom:clamp(10px,2vh,22px);z-index:18;
  translate:-50% 0;
  display:flex;align-items:center;gap:9px;
  font-size:8.5px;font-weight:700;letter-spacing:.3em;text-transform:uppercase;
  color:var(--ink-4);pointer-events:auto;cursor:pointer;
  opacity:clamp(0.2, calc(1.2 - (var(--p) * 0.5)), 1);
  transition:color .3s var(--e), opacity .3s var(--e);
}
.hint:hover{ color:var(--ink); }
.hint b{
  display:block;width:26px;height:1px;background:var(--edge);
}
.hint::after{
  content:"";position:absolute;left:50%;top:-16px;width:1px;height:12px;
  background:linear-gradient(180deg,transparent,var(--ink-4));
  animation:drop 2.1s var(--e) infinite;
}
@keyframes drop{
  0%{opacity:0;transform:translateY(-8px)}
  40%{opacity:1}
  100%{opacity:0;transform:translateY(10px)}
}

a, button, .soc, .item, .row, .tile, .cover, .stat, .go, .n, .t{
  transition:
    color .5s var(--e),
    opacity .5s var(--e),
    transform .55s var(--e),
    border-color .5s var(--e),
    background-color .5s var(--e),
    filter .5s var(--e);
}

.row{ animation:rowIn .7s var(--e) both; }
.live .row:nth-of-type(2){ animation-delay:.08s; }
.live .row:nth-of-type(3){ animation-delay:.16s; }
@keyframes rowIn{
  from{ opacity:0; transform:translateY(7px); filter:blur(3px); }
  to  { opacity:1; transform:none; filter:none; }
}

.tile, .cover{ animation:artIn .8s var(--e) both; }
@keyframes artIn{
  from{ opacity:0; transform:scale(.94); filter:blur(6px) saturate(.4); }
  to  { opacity:1; transform:none; filter:none; }
}

.bar > i, .pf{ transition:transform .9s linear, width .9s linear; }

.item{ animation:itemIn .75s var(--e) both; }
.item:nth-child(2){ animation-delay:.07s; }
.item:nth-child(3){ animation-delay:.14s; }
.item:nth-child(4){ animation-delay:.21s; }
.item:nth-child(5){ animation-delay:.28s; }
.item:nth-child(6){ animation-delay:.35s; }
@keyframes itemIn{
  from{ opacity:0; transform:translateY(10px); }
  to  { opacity:1; transform:none; }
}

@media (prefers-reduced-motion:reduce){
  html:not(.force-motion) *,
  html:not(.force-motion) *::before,
  html:not(.force-motion) *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

html{
  scrollbar-width:thin;
  scrollbar-color:rgba(214,220,226,.34) transparent;
}

*::-webkit-scrollbar{ width:7px; height:7px; }
*::-webkit-scrollbar-track{ background:transparent; }
*::-webkit-scrollbar-corner{ background:transparent; }

*::-webkit-scrollbar-thumb{
  border-radius:99px;
  background:linear-gradient(180deg,
    rgba(255,255,255,.42), rgba(150,158,166,.28) 45%, rgba(255,255,255,.34));
  border:1px solid rgba(255,255,255,.07);
  background-clip:padding-box;
  transition:background .4s var(--e);
}
*::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,
    rgba(255,255,255,.72), rgba(190,198,206,.5) 45%, rgba(255,255,255,.62));
}
*::-webkit-scrollbar-thumb:active{ background:rgba(255,255,255,.8); }

@media (min-width:861px){
  html,body{ overflow:hidden; }
}

.stage{ animation:stageBreath 27s ease-in-out infinite; }
@keyframes stageBreath{
  0%,100%{ filter:brightness(1); }
  50%    { filter:brightness(1.045); }
}

.plate{ position:relative; overflow:hidden; }
.plate::after{
  content:""; position:absolute; inset:-40%;
  background:linear-gradient(104deg, transparent 42%,
    rgba(255,255,255,.09) 49%, rgba(255,255,255,.02) 53%, transparent 60%);
  transform:translateX(-120%);
  animation:plateSweep 14s cubic-bezier(.5,0,.2,1) infinite;
  pointer-events:none;
}
@keyframes plateSweep{
  0%,62%{ transform:translateX(-120%); }
  86%,100%{ transform:translateX(120%); }
}

.soc{ position:relative; }
.soc::after{
  content:""; position:absolute; left:50%; bottom:-5px;
  width:0; height:1px; background:rgba(255,255,255,.6);
  transform:translateX(-50%);
  transition:width .45s var(--e);
}
.soc:hover{ transform:translateY(-2px); filter:brightness(1.5); }
.soc:hover::after{ width:100%; }

.item{ position:relative; overflow:hidden; }
.item::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform:translateX(-101%);
  transition:transform .8s var(--e);
}
.item:hover::after{ transform:translateX(101%); }
.item:hover{ transform:translateX(3px); }

.name{ animation:nameLive 11s ease-in-out infinite; }
@keyframes nameLive{
  0%,100%{ filter:brightness(1) contrast(1); }
  50%    { filter:brightness(1.13) contrast(1.06); }
}

.cover{ animation:coverSway 19s ease-in-out infinite; }
@keyframes coverSway{
  0%,100%{ transform:rotate(-.5deg) scale(1); }
  50%    { transform:rotate(.5deg) scale(1.012); }
}

.hits{ animation:hitsFlick 9s steps(1) infinite; }
@keyframes hitsFlick{
  0%,96%,100%{ opacity:1; }
  97%{ opacity:.55; }
  98%{ opacity:1; }
  99%{ opacity:.7; }
}

.bio .name,
.bio .quote,
.bio .plate,
.bio .live,
.bio .socials,
.bio .hits{
  opacity:0;
  transform:translateY(16px);
  filter:blur(7px);
  transition:
    opacity .8s var(--e),
    transform .95s var(--spring),
    filter .8s var(--e);
}

.bio.on .name   { opacity:1; transform:none; filter:none; transition-delay:.02s; }
.bio.on .plate  { opacity:1; transform:none; filter:none; transition-delay:.10s; }
.bio.on .quote  { opacity:1; transform:none; filter:none; transition-delay:.20s; }
.bio.on .live   { opacity:1; transform:none; filter:none; transition-delay:.30s; }
.bio.on .socials{ opacity:1; transform:none; filter:none; transition-delay:.40s; }
.bio.on .hits   { opacity:1; transform:none; filter:none; transition-delay:.48s; }

.bio.on .name{ animation:nameReveal 1.1s var(--e) both, nameLive 11s ease-in-out infinite 1.1s; }
@keyframes nameReveal{
  0%  { letter-spacing:.24em; opacity:0; filter:blur(12px); }
  55% { letter-spacing:-.02em; opacity:1; filter:blur(0); }
  100%{ letter-spacing:-.045em; }
}

/* ============================================================
   3. LOADER & BOOT SCREEN
   ============================================================ */
.boot{
  position:fixed; inset:0; z-index:60;
  display:grid; place-content:center; justify-items:center;
  gap:22px;
  background:#000;
  transition:opacity .7s var(--e), visibility 0s .7s;
}
html.gone .boot{ opacity:0; visibility:hidden; pointer-events:none; }

.boot .mk{
  display:flex; gap:clamp(6px,1.2vw,14px);
  font-family:var(--sans); font-weight:900;
  font-size:clamp(56px,11vw,132px); line-height:.84; letter-spacing:-.06em;
}
.boot .mk b{
  display:block;
  background:var(--chrome); background-size:100% 300%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:bootIn .9s var(--spring) both, flow 7s cubic-bezier(.45,0,.55,1) infinite .9s;
  clip-path:inset(0 0 0 0);
}
.boot .mk b:nth-child(2){ animation-delay:.1s, 1s; }
@keyframes bootIn{
  0%  { opacity:0; transform:translateY(26px) scaleY(1.4); filter:blur(9px); }
  60% { opacity:1; filter:blur(0); }
  100%{ opacity:1; transform:none; }
}

html.ready-boot .boot .mk b{ animation-duration:.9s, 2.4s; }
html.ready-boot .boot .ring{ animation-duration:1.1s, 1.6s; }

@keyframes sayPulse{ 0%,100%{opacity:.45} 50%{opacity:1} }

.boot .mk{
  position:relative;
  animation:mkSpin 6.5s cubic-bezier(.5,0,.5,1) infinite;
  transform-style:preserve-3d;
}

@keyframes mkSpin{
  0%  { transform:rotateY(0deg)   rotateX(0deg)  scale(1); }
  25% { transform:rotateY(24deg)  rotateX(-6deg) scale(1.04); }
  50% { transform:rotateY(0deg)   rotateX(0deg)  scale(1); }
  75% { transform:rotateY(-24deg) rotateX(6deg)  scale(1.04); }
  100%{ transform:rotateY(0deg)   rotateX(0deg)  scale(1); }
}

.boot .mk b:nth-child(1){ animation-name:bootIn, flow, digitFloat; }
.boot .mk b:nth-child(2){ animation-name:bootIn, flow, digitFloat2; }
.boot .mk b{
  animation-duration:.9s, 7s, 4.4s;
  animation-timing-function:var(--spring), cubic-bezier(.45,0,.55,1), ease-in-out;
  animation-iteration-count:1, infinite, infinite;
  animation-fill-mode:both, none, none;
}
@keyframes digitFloat { 0%,100%{ translate:0 0 }    50%{ translate:0 -6px } }
@keyframes digitFloat2{ 0%,100%{ translate:0 -4px } 50%{ translate:0 3px } }

.boot .ring{
  position:absolute; left:50%; top:50%;
  width:min(46vh,42vw); aspect-ratio:1;
  margin:calc(min(46vh,42vw) / -2) 0 0 calc(min(46vh,42vw) / -2);
  border-radius:50%;
  border:1px solid transparent;
  border-top-color:rgba(255,255,255,.24);
  border-right-color:rgba(255,255,255,.06);
  animation:ringIn 1.1s var(--e) both, ringSpin 5.2s linear infinite;
  pointer-events:none;
}
.boot .ring.r2{
  width:min(60vh,56vw);
  margin:calc(min(60vh,56vw) / -2) 0 0 calc(min(60vh,56vw) / -2);
  border-top-color:transparent;
  border-left-color:rgba(255,255,255,.13);
  animation-duration:1.1s, 8.6s;
  animation-direction:normal, reverse;
}
@keyframes ringIn{ from{ opacity:0; scale:.7 } to{ opacity:1; scale:1 } }
@keyframes ringSpin{ to{ rotate:360deg } }

html.gone .boot .mk{ animation:mkOut .9s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes mkOut{
  to{ transform:rotateY(90deg) scale(1.6); opacity:0; filter:blur(14px); }
}
html.gone .boot .ring{ animation:ringOut .8s var(--e) forwards; }
@keyframes ringOut{ to{ scale:2.4; opacity:0; } }

.boot-prompt{
  position:relative;
  z-index:2;
  font-family:var(--mono);
  font-size:clamp(10px, 1.2vw, 12px);
  font-weight:700;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--ink-3);
  padding:8px 20px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.02);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  cursor:pointer;
  user-select:none;
  transition:all .3s var(--e);
  animation:bootPromptPulse 2.4s ease-in-out infinite;
}
.boot-prompt:hover{
  color:var(--ink);
  border-color:rgba(255,255,255,.3);
  background:rgba(255,255,255,.06);
  box-shadow:0 0 20px rgba(255,255,255,.1);
}
@keyframes bootPromptPulse{
  0%, 100%{ opacity:.5; transform:scale(1); }
  50%{ opacity:1; transform:scale(1.02); }
}
html.gone .boot-prompt{ opacity:0; transform:scale(.9); transition:opacity .4s var(--e), transform .4s var(--e); }

/* ============================================================
   4. CURSOR
   ============================================================ */
@media (hover:hover) and (pointer:fine){

  html.cur, html.cur *{ cursor:none !important; }

  .cur-dot,
  .cur-ring{
    position:fixed; top:0; left:0; z-index:9999;
    pointer-events:none;
    will-change:transform;
  }

  .cur-dot{
    width:5px; height:5px; margin:-2.5px 0 0 -2.5px;
    border-radius:50%;
    background:#fff;
    mix-blend-mode:difference;
    transition:width .25s var(--e), height .25s var(--e), margin .25s var(--e);
  }

  .cur-ring{
    width:30px; height:30px; margin:-15px 0 0 -15px;
    border-radius:50%;
    border:1px solid rgba(242,245,248,.34);
    transition:width .35s var(--e), height .35s var(--e),
               margin .35s var(--e), border-color .35s var(--e),
               opacity .35s var(--e);
  }

  .cur-ring::before,
  .cur-ring::after{
    content:""; position:absolute; inset:-5px;
    border-radius:50%;
    border:1px solid transparent;
    border-top-color:rgba(255,255,255,.5);
    border-bottom-color:rgba(255,255,255,.18);
    animation:curSpin 3.6s linear infinite;
  }
  .cur-ring::after{ inset:-9px; animation-duration:6.4s; animation-direction:reverse; opacity:.5; }
  @keyframes curSpin{ to{ transform:rotate(360deg); } }

  html.cur-hot .cur-ring{
    width:54px; height:54px; margin:-27px 0 0 -27px;
    border-color:rgba(255,255,255,.7);
  }
  html.cur-hot .cur-dot{
    width:2px; height:2px; margin:-1px 0 0 -1px;
  }

  html.cur-down .cur-ring{
    width:18px; height:18px; margin:-9px 0 0 -9px;
    border-color:#fff;
  }

  html.cur-out .cur-ring,
  html.cur-out .cur-dot{ opacity:0; }
}

@media (prefers-reduced-motion:reduce){
  html:not(.force-motion) .cur-ring::before,
  html:not(.force-motion) .cur-ring::after{ animation:none; }
}

/* ============================================================
   5. GATE (INTRO CARD)
   ============================================================ */
.gate{
  position:absolute; inset:0;
  display:grid; place-content:center; justify-items:center;
  gap:clamp(14px,2.4vh,26px);
  opacity:clamp(0, calc(1.06 - var(--p) * 1.9), 1);
  transform:
    translateY(calc(var(--p) * -12vh))
    scale(calc(1 - var(--p) * .16));
  filter:blur(calc(var(--p) * 8px));
  transition:opacity .12s linear;
  pointer-events:none;
  will-change:transform,opacity,filter;
}

.bust{
  position:absolute; left:50%; top:50%;
  width:min(1180px, 108vw);
  translate:-50% -50%;
  z-index:-1;
  opacity:0;
  animation:bustIn 2.6s var(--e) .25s forwards;
  pointer-events:none;
}
.bust img{
  width:100%; display:block;
  filter:contrast(1.22) brightness(calc(.62 + var(--lvl) * .5)) saturate(0);
  -webkit-mask-image:radial-gradient(62% 62% at 50% 46%, #000 30%, transparent 76%);
  mask-image:radial-gradient(62% 62% at 50% 46%, #000 30%, transparent 76%);
  transform:
    translate3d(calc(var(--tx) * -22px), calc(var(--ty) * -16px), 0)
    scale(1.02);
  transition:filter .3s linear, transform .9s var(--e);
  animation:bustDrift 41s ease-in-out infinite;
}
@keyframes bustIn{ to{ opacity:.9; } }
@keyframes bustDrift{
  0%   { scale:1.00; }
  33%  { scale:1.055; }
  66%  { scale:1.02; }
  100% { scale:1.00; }
}

.halo{
  position:absolute; left:50%; top:50%;
  width:min(74vh, 62vw); aspect-ratio:1/1;
  translate:-50% -50%;
  border-radius:50%;
  z-index:-1;
  background:conic-gradient(from 0deg,
    transparent 0deg, rgba(255,255,255,.10) 24deg, transparent 70deg,
    transparent 190deg, rgba(255,255,255,.06) 214deg, transparent 260deg);
  filter:blur(28px);
  opacity:0; animation:haloIn 2s var(--e) .6s forwards, spin 61s linear infinite;
}
@keyframes haloIn{ to{ opacity:.9; } }

.metal{
  position:relative;
  display:flex;
  gap:clamp(4px,.8vw,14px);
  transform:
    perspective(1400px)
    rotateX(calc((var(--my) - 42%) * -.045))
    rotateY(calc((var(--mx) - 50%) * .06));
  transition:transform .6s var(--e);
  animation:sway 23s ease-in-out infinite;
}
@keyframes sway{
  0%,100%{ translate:0 0; }
  25%    { translate:-.6% -1.1%; }
  50%    { translate:.5% .8%; }
  75%    { translate:-.3% .5%; }
}

.d{
  display:block;
  height:min(58vh, 38vw);
  overflow:hidden;
}

.roll{
  display:block;
  transform:translateY(-66.666%);
  animation:rollIn 1.5s var(--spring) forwards;
}
.d:nth-child(2) .roll{ animation-delay:.16s; }
@keyframes rollIn{ to{ transform:translateY(0); } }

.glyph{
  position:relative;
  display:block;
  font-family:var(--sans); font-weight:900;
  font-size:min(58vh, 38vw);
  line-height:1;
  letter-spacing:-.02em;
  background:var(--chrome);
  background-size:100% 340%;
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
  animation:flow 9s cubic-bezier(.45,0,.55,1) infinite;
}
.roll .glyph:not(:first-child){ opacity:.3; filter:blur(1.5px); }

@keyframes flow{
  0%  { background-position:50% 0%; }
  50% { background-position:50% 100%; }
  100%{ background-position:50% 0%; }
}

.glyph::after{
  content:attr(data-d);
  position:absolute; inset:0;
  background:linear-gradient(102deg,
    transparent 40%, rgba(255,255,255,1) 47.5%,
    rgba(255,255,255,.35) 53%, transparent 62%);
  background-size:340% 100%;
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
  mix-blend-mode:screen;
  animation:sweep 6s ease-in-out 1.7s infinite;
  pointer-events:none;
}
.d:nth-child(2) .glyph::after{ animation-delay:1.34s; }

@keyframes sweep{
  0%  { background-position:220% 0; }
  42% { background-position:-120% 0; }
  100%{ background-position:-120% 0; }
}

.glyph::before{
  content:attr(data-d);
  position:absolute; inset:0;
  color:#fff;
  -webkit-mask-image:radial-gradient(70% 55% at var(--mx) var(--my), #000, transparent 66%);
  mask-image:radial-gradient(70% 55% at var(--mx) var(--my), #000, transparent 66%);
  opacity:.3; mix-blend-mode:overlay; pointer-events:none;
}

.ticker{
  position:relative;
  width:min(760px, 76vw);
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);
  opacity:0; animation:fade 1s var(--e) 1.1s forwards;
}
.ticker span{
  display:inline-block; white-space:nowrap;
  font-family:var(--sans); font-weight:900; font-size:13px;
  letter-spacing:.34em;
  color:transparent;
  -webkit-text-stroke:.7px rgba(154,161,169,.55);
  text-stroke:.7px rgba(154,161,169,.55);
  animation:slideX 26s linear infinite;
}
.ticker.back span{
  animation-duration:38s; animation-direction:reverse;
  -webkit-text-stroke:.7px rgba(106,113,120,.42);
  text-stroke:.7px rgba(106,113,120,.42);
}
@keyframes slideX{
  from{ transform:translateX(0); }
  to  { transform:translateX(-50%); }
}
@keyframes fade{ to{ opacity:1; } }

@media (prefers-reduced-motion:reduce){
  html:not(.force-motion) .metal,
  html:not(.force-motion) .bust img,
  html:not(.force-motion) .halo,
  html:not(.force-motion) .ticker span{ animation:none !important; }
  html:not(.force-motion) .roll{ transform:translateY(0) !important; animation:none !important; }
  html:not(.force-motion) .glyph::after{ display:none; }
}

/* ============================================================
   6. BIO (PROFIL CARD)
   ============================================================ */
.bio {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: clamp(180px, 18vw, 232px) minmax(0, 640px);
  gap: clamp(26px, 3.4vw, 52px);
  align-content: center;
  align-items: center;
  justify-content: center;
  width: min(960px, 92%);
  margin-inline: auto;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(24px) scale(.988);
  transition: opacity .45s var(--e), transform .6s var(--e), visibility 0s .45s;
}

.bio.on {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none;
  transition: opacity .55s var(--e) .05s, transform .85s var(--spring) .05s, visibility 0s;
}

.bio.on .plate{   animation:riseIn .8s var(--spring) .06s both; }
.bio.on .name{    animation:riseIn .7s var(--spring) .12s both; }
.bio.on .quote{   animation:riseIn .7s var(--spring) .18s both; }
.bio.on .live{    animation:riseIn .7s var(--spring) .26s both; }
@keyframes riseIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }

.bio::before {
  content: "";
  position: absolute;
  left: 25%;
  top: 50%;
  width: min(480px, 48vw);
  height: min(480px, 48vw);
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, rgba(255,255,255,.015) 50%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(24px);
  animation: bioAuraPulse 9s ease-in-out infinite alternate;
}

@keyframes bioAuraPulse {
  0% { scale: 0.92; opacity: 0.65; }
  100% { scale: 1.08; opacity: 1; }
}

.plate{
  position:relative; margin:0;
  aspect-ratio:1/1;
  border-radius:50%; overflow:hidden;
  border:2px solid rgba(255,255,255,.18);
  background:#000;
  box-shadow:0 0 35px rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.12);
  transform:
    perspective(1000px)
    rotateX(calc((var(--my) - 40%) * -.01))
    rotateY(calc((var(--mx) - 50%) * .012));
  transition:transform .7s var(--e), box-shadow .5s var(--e), border-color .5s var(--e);
}
.plate:hover{
  border-color:rgba(255,255,255,.4);
  box-shadow:0 0 50px rgba(255,255,255,.22), 0 0 0 2px rgba(255,255,255,.3);
  transform:scale(1.03);
}
.plate .face{
  width:100%; height:100%; object-fit:cover; display:block;
  border-radius:50%;
  filter:grayscale(1) contrast(1.16) brightness(.94);
  animation:slowZoom 41s ease-in-out infinite;
}
@keyframes slowZoom{
  0%,100%{ scale:1; }
  50%    { scale:1.045; }
}

.plate::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  background-size:200% 100%;
  animation:flowX 9s linear infinite;
}

.col{ min-width:0; display:grid; gap:clamp(14px, 2vh, 22px); }

.name{
  margin:0;
  font-family:var(--sans); font-weight:900;
  font-size:clamp(24px, 3.9vw, 60px);
  line-height:.8; letter-spacing:-.04em;
  background:var(--chrome); background-size:100% 300%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:flow 11s cubic-bezier(.45,0,.55,1) infinite;
}

.quote{
  position:relative;
  max-width:60ch;
  font-family:var(--sans);
  font-weight:800;
  font-size:clamp(13px, 1.35vw, 19px);
  line-height:1.25;
  letter-spacing:-.02em;
}
.quote.off{ display:none; }

.quote .ghost{ display:grid; visibility:hidden; height:0; overflow:hidden; }
.quote .ghost span{ display:block; }

.quote .type{ display:grid; gap:4px; }
.quote .type span{
  display:block;
  color:transparent;
  -webkit-text-stroke:1.2px rgba(255,255,255,.92);
  text-stroke:1.2px rgba(255,255,255,.92);
  paint-order:stroke fill;
  text-shadow:0 0 24px rgba(0,0,0,.92);
  transition:color .5s var(--e), -webkit-text-stroke-color .5s var(--e), -webkit-text-stroke-width .5s var(--e), opacity .5s var(--e), text-shadow .5s var(--e), transform .4s var(--spring);
  animation:lineIn .4s var(--e) both;
}
@keyframes lineIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

.quote .type span.typing{
  color:transparent;
  -webkit-text-stroke:1.3px #FFFFFF;
  text-stroke:1.3px #FFFFFF;
  opacity:1;
}

.quote .type span.solid{
  color:var(--ink);
  -webkit-text-stroke:0px transparent;
  text-stroke:0px transparent;
  opacity:1;
  text-shadow:0 0 16px rgba(255,255,255,.16);
  animation:cuteFill .55s cubic-bezier(.16,1,.3,1) both;
}

@keyframes cuteFill{
  0%{
    color:transparent;
    -webkit-text-stroke:1.3px #FFFFFF;
    filter:drop-shadow(0 0 14px rgba(255,255,255,.9));
    transform:scale(.98);
  }
  50%{
    color:#FFFFFF;
    -webkit-text-stroke:.4px #FFFFFF;
    filter:drop-shadow(0 0 20px rgba(255,255,255,1));
    transform:scale(1.025);
  }
  100%{
    color:var(--ink);
    -webkit-text-stroke:0px transparent;
    filter:drop-shadow(0 0 4px rgba(255,255,255,.2));
    transform:scale(1);
  }
}

.quote .caret{
  position:absolute; right:auto; bottom:2px;
  display:none;
}

.mood{
  margin:0; font-family:var(--mono); font-size:11px;
  color:var(--ink-4); letter-spacing:.14em; text-transform:uppercase;
}
.mood.off{ display:none; }

.socials{ display:flex; gap:2px; align-items:center; }
.soc{
  position:relative;
  width:26px; height:26px; border-radius:3px;
  display:grid; place-items:center;
  color:var(--ink-5);
  transition:color .3s var(--e), transform .4s var(--spring);
}
.soc svg{ width:13px; height:13px; fill:currentColor; }
.soc::after{
  content:""; position:absolute; left:50%; bottom:2px;
  width:0; height:1px; background:currentColor;
  transform:translateX(-50%);
  transition:width .35s var(--e);
}
.soc:hover{ color:var(--ink); transform:translateY(-2px); }
.soc:hover::after{ width:12px; }

.hits{
  display:flex; align-items:baseline; gap:6px;
  font-family:var(--mono); font-size:9.5px; color:var(--ink-5);
  letter-spacing:.24em; text-transform:uppercase;
}
.hits.off{ visibility:hidden; }
.hits b{
  font-weight:400; font-size:11.5px; letter-spacing:.08em;
  background:var(--chrome-2); background-size:220% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:flowX 8s linear infinite;
}
@keyframes flowX{
  0%  { background-position:0% 0; }
  100%{ background-position:220% 0; }
}

/* ============================================================
   7. PRESENCE (DISCORD & SPOTIFY)
   ============================================================ */
.live{ display:grid; gap:1px; max-width:min(540px, 100%); }

.row{
  position:relative;
  display:flex; align-items:center; gap:12px;
  padding:12px 2px;
  border-top:1px solid var(--edge-2);
  overflow:hidden;
}
.row.off{ display:none; }
.live .row:first-of-type{ border-top:0; }

.row::before{
  content:""; position:absolute; left:0; right:0; top:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  background-size:44% 100%; background-repeat:no-repeat;
  animation:edgeRun 12s ease-in-out infinite;
}
.live .row:first-of-type::before{ display:none; }
.row.song::before{ animation-duration:16s; animation-delay:2.5s; }
@keyframes edgeRun{
  0%  { background-position:-60% 0; }
  55% { background-position:160% 0; }
  100%{ background-position:160% 0; }
}

.stat{
  position:relative;
  display:inline-flex; align-items:center; gap:11px;
  font-family:var(--mono); font-size:10px; font-weight:600;
  letter-spacing:.34em; text-transform:uppercase;
  padding:3px 2px 6px;
  opacity:0; transform:translateY(4px);
  animation:statIn .9s var(--e) forwards;
}
.stat.off{ display:none; }

.stat b{
  font-weight:600;
  background:var(--chrome-2); background-size:280% 100%;
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
  animation:flowX 9s ease-in-out infinite;
}

.stat i{
  display:block; width:22px; height:1px; flex:none;
  transform-origin:left center;
  background:linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.06));
  animation:statLine 4.6s cubic-bezier(.4,0,.3,1) infinite;
}

.stat::after{
  content:""; position:absolute; left:30px; right:-6px; bottom:2px; height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,.16), transparent);
  transform:scaleX(0); transform-origin:left;
  animation:statUnder 1.1s .35s var(--e) forwards;
}

@keyframes statIn{ to{ opacity:1; transform:none; } }
@keyframes statUnder{ to{ transform:scaleX(1); } }
@keyframes statLine{
  0%,100%{ transform:scaleX(.35); opacity:.45; }
  50%    { transform:scaleX(1);   opacity:1; }
}

.row .tile{
  width:30px; height:30px; flex:none;
  border-radius:3px; object-fit:cover;
  border:1px solid var(--edge-2);
  background:#000;
  filter:grayscale(1) contrast(1.1);
}
.row .tile.ph{ background:linear-gradient(140deg, rgba(255,255,255,.05), rgba(255,255,255,.012)); }

.row .txt{ display:grid; gap:3px; min-width:0; }
.row .txt b{
  font-family:var(--sans);
  font-size:13px; font-weight:700; color:var(--ink);
  letter-spacing:-.015em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.row .txt i{
  font-style:normal; font-family:var(--mono);
  font-size:10.5px; color:var(--ink-4); letter-spacing:.04em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.row .since{
  margin-left:auto; flex:none;
  font-family:var(--mono); font-size:10px; color:var(--ink-5); letter-spacing:.1em;
}

.row.song{ gap:13px; padding:13px 2px; }

.cover{
  width:46px; height:46px; flex:none;
  border-radius:3px;
  background-size:cover; background-position:50% 50%;
  border:1px solid var(--edge-2);
  filter:grayscale(1) contrast(1.06);
  transition:filter .6s var(--e);
}
.row.song:hover .cover{ filter:none; }
.cover.ph{ background-image:linear-gradient(140deg, rgba(255,255,255,.07), rgba(255,255,255,.012)); }

.row.song .meta{ display:grid; gap:6px; min-width:0; flex:1; }
.row.song .ttl{
  font-family:var(--sans);
  font-size:13px; font-weight:700; color:var(--ink); letter-spacing:-.015em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.row.song .art{
  font-family:var(--mono);
  font-size:10.5px; color:var(--ink-4); letter-spacing:.06em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.row.song .bar{
  position:relative; display:block;
  height:2px; border-radius:99px;
  background:rgba(255,255,255,.07);
  overflow:hidden;
}
.row.song .bar i{
  position:absolute; inset:0;
  transform-origin:0 50%; transform:scaleX(0);
  background:linear-gradient(90deg, #767D85, #FFFFFF);
  transition:transform .5s linear;
}
.row.song .times{
  display:flex; justify-content:space-between;
  font-family:var(--mono); font-size:9.5px; color:var(--ink-5); letter-spacing:.12em;
}

.snd{ display:flex; align-items:center; gap:8px; }
.snd .eq{ display:flex; align-items:flex-end; gap:2px; height:10px; }
.snd .eq b{
  width:1.5px; border-radius:1px; background:var(--ink-4);
  height:calc(2px + var(--lvl) * 8px);
  animation:eq 1.15s ease-in-out infinite;
}
.snd .eq b:nth-child(2){ animation-delay:.14s; }
.snd .eq b:nth-child(3){ animation-delay:.28s; }
.snd .eq b:nth-child(4){ animation-delay:.42s; }
@keyframes eq{
  0%,100%{ transform:scaleY(.4); }
  50%    { transform:scaleY(1); }
}
[data-snd="wait"] .snd .eq b,
[data-snd="off"] .snd .eq b{ animation:none; height:2px; opacity:.5; }

/* ============================================================
   8. PROJECTS (PROJECTS GRID)
   ============================================================ */
.dock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(1040px, 92%);
  margin-inline: auto;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(24px);
  transition: opacity .45s var(--e), transform .6s var(--e), visibility 0s .45s;
  z-index: 10;
}

.dock.on {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none;
  transition: opacity .55s var(--e) .05s, transform .85s var(--spring) .05s, visibility 0s;
}

.dock-grid-lines {
  position: absolute;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  opacity: .05;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}

.dock-bg-accent {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  pointer-events: none;
  z-index: -1;
  user-select: none;
}

.dock-bg-accent .glyph-bg {
  font-family: var(--sans);
  font-size: min(44vh, 32vw);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--chrome);
  background-size: 100% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .085;
  filter: drop-shadow(0 0 45px rgba(255,255,255,.15));
  animation: glowPulse 10s ease-in-out infinite, flow 11s cubic-bezier(.45,0,.55,1) infinite;
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(255,255,255,.1)); scale: 1; }
  50% { filter: drop-shadow(0 0 55px rgba(255,255,255,.22)); scale: 1.02; }
}

.dock-halo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 380px at var(--mx) var(--my), rgba(255,255,255,.06), transparent 70%);
  pointer-events: none;
}

.mini-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 10px 22px 10px 12px;
  margin-bottom: clamp(16px, 2.4vh, 24px);
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.012) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(0,0,0,.6), 0 0 15px rgba(255,255,255,.03), inset 0 1px 0 rgba(255,255,255,.12);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .5s var(--e), transform .6s var(--spring);
}

.dock.on .mini-profile {
  animation: pillIn .75s var(--spring) .08s both;
}

@keyframes pillIn {
  from { opacity: 0; transform: translateY(-18px) scale(.96); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.mini-profile-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-ava-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
}

.mini-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid rgba(255,255,255,.2);
  box-shadow: 0 0 10px rgba(0,0,0,.4);
  filter: grayscale(1) contrast(1.15);
}

.mini-status-dot {
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--void);
  background: #444;
}

.mini-status-dot.online { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.7); }
.mini-status-dot.idle   { background: #eab308; }
.mini-status-dot.dnd    { background: #ef4444; }

.mini-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-name {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.02em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mini-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mini-profile-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.1);
  flex: none;
}

.mini-profile-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.mini-sp-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-sp-icon {
  font-size: 14px;
  color: var(--ink-2);
}

.mini-sp-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.mini-sp-ttl {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.mini-sp-art {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  flex: none;
}

.mini-eq b {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--ink), var(--ink-3));
  box-shadow: 0 0 6px rgba(255,255,255,.4);
  animation: eq 1.15s ease-in-out infinite;
}

.mini-eq b:nth-child(2) { animation-delay: .14s; }
.mini-eq b:nth-child(3) { animation-delay: .28s; }
.mini-eq b:nth-child(4) { animation-delay: .42s; }

.dock-header {
  width: 100%;
  margin-bottom: clamp(12px, 1.8vh, 18px);
}

.dhead {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.dhead .dtag {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 18px;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}

.dhead .dtitle {
  color: var(--ink-2);
  font-weight: 700;
  letter-spacing: .24em;
}

.dhead .dline {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--edge), transparent);
}

.dock.on .dline {
  animation: lineExpand .8s var(--e) .15s both;
}

@keyframes lineExpand {
  from { opacity: 0; transform: scaleX(0); transform-origin: left; }
  to   { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

.work {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
}

/* Adaptive Layouts based on project count */
.work[data-count="1"] {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.work[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}

.work[data-count="4"] {
  grid-template-columns: repeat(2, 1fr);
}

.work.empty {
  display: block;
  padding: 10px 0;
}

.empty-work-box {
  width: 100%;
  padding: clamp(32px, 5vh, 56px) clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);
  animation: emptyBoxIn .75s var(--spring) both;
}

@keyframes emptyBoxIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.loading {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.loading-text {
  font-family: var(--sans);
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 300;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,1) 45%, rgba(255,255,255,.42) 90%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 25px rgba(255,255,255,.2);
  animation: brightShimmer 3.4s linear infinite;
}

@keyframes brightShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.dots {
  display: inline-flex;
  gap: 7px;
  margin-left: 12px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(255,255,255,.6);
  animation: pulse 1.35s ease-in-out infinite;
}

.dots i:nth-child(2) { animation-delay: .18s; }
.dots i:nth-child(3) { animation-delay: .36s; }

@keyframes pulse {
  0%, 100% { opacity: .25; transform: translateY(0) scale(.8); }
  40% { opacity: 1; transform: translateY(-6px) scale(1.2); }
}

/* ============================================================
   PROJECT CARD: SLEEK CYBER-BRUTALIST GLASS CARD
   ============================================================ */
.project-card {
  --card-accent: #ff2a85;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  min-height: 120px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink-2);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform .35s var(--spring),
    border-color .35s var(--e),
    box-shadow .4s var(--e),
    background .35s var(--e);
  opacity: 0;
  transform: translateY(18px) scale(.97);
  filter: blur(4px);
}

.dock.on .project-card {
  animation: cardEntrance .65s var(--spring) both;
  animation-delay: calc(.14s + var(--i) * 90ms);
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Card Header Line */
.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.card-idx {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: .12em;
}

.card-title {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  transition: color 0.25s var(--e), text-shadow 0.25s var(--e);
}

.card-badge {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-go {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-3);
  transition: transform .35s var(--spring), color .25s var(--e);
}

/* Card Body / Description */
.card-desc {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
  letter-spacing: -.01em;
  flex: 1;
}

/* Card Footer / Action */
.card-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.card-foot-btn {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-4);
  transition: color .25s var(--e);
}

/* Hover Interactions */
a.project-card:hover, div.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.04);
}

a.project-card:hover .card-title {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

a.project-card:hover .card-go {
  color: #fff;
  transform: translateX(4px);
}

a.project-card:hover .card-foot-btn {
  color: var(--ink);
}

a.project-card:hover .card-badge {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (prefers-reduced-motion:reduce) {
  html:not(.force-motion) .loading,
  html:not(.force-motion) .dots i,
  html:not(.force-motion) .project-card { animation: none !important; }
}

/* ============================================================
   9. RESPONSIVE BREAKPOINTS & MOBILE
   ============================================================ */
@media (max-width:860px),(max-height:560px){
  body{overflow:hidden;overscroll-behavior:none;touch-action:none}

  .stage{
    height:100dvh;
    grid-template-rows:auto minmax(0,1fr) auto;
    padding:clamp(10px,1.8vh,18px) clamp(12px,4vw,22px) clamp(10px,1.8vh,18px);
  }

  .glyph{font-size:min(30vh,44vw)}
  .d{height:min(30vh,44vw)}
  .bust{width:130vw}
  .ticker{width:92vw}

  .bio{
    width:94%;
    grid-template-columns:1fr;
    gap:14px;
    justify-items:start;
  }
  .plate{width:min(38vw,150px);max-height:none}
  .name{font-size:clamp(20px,6.4vw,36px)}
  .quote{max-width:100%;font-size:clamp(12px,3.5vw,15px)}
  .live{max-width:100%}

  .dock{width:94%;}
  .mini-profile{padding:6px 12px;margin-bottom:12px;}
  .mini-profile-divider{display:none;}
  .mini-sp-meta{display:none;}
  .work{grid-template-columns:1fr !important; gap:12px;}
  .project-card{padding:14px 16px; min-height:auto; gap:10px;}

  .hint{display:flex;font-size:8px}
}

@media (min-width:861px) and (max-height:780px){
  .glyph{font-size:min(42vh,28vw)}
  .d{height:min(42vh,28vw)}
  .plate{max-height:34vh}
}

@media (prefers-reduced-motion:reduce){
  html:not(.force-motion) *{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
  html:not(.force-motion) .metal{filter:none}
  html:not(.force-motion) .sheet{animation:none}
}

/* ============================================================
   10. FORCE MOTION & HARDWARE ACCELERATION
   ============================================================ */
html.lite .grain,
html.lite .scan,
html.lite .sheet2{
  display:none !important;
}

html.lite .spec{
  opacity:.35;
}

html.lite .sheet{
  filter:blur(38px) saturate(.5);
}

html.lite #field{
  opacity:.7;
}

html.lite .type .cur::after,
html.lite .ticker span,
html.lite .metal,
html.lite .roll{
  animation-play-state:running !important;
}

html.force-motion .metal,
html.force-motion .bust img,
html.force-motion .halo,
html.force-motion .ticker span,
html.force-motion .roll,
html.force-motion .cur-ring::before,
html.force-motion .cur-ring::after,
html.force-motion .loading,
html.force-motion .loading-text,
html.force-motion .dots i,
html.force-motion .item,
html.force-motion .project-card,
html.force-motion .empty-work-box,
html.force-motion .mini-profile,
html.force-motion .dock-bg-accent .glyph-bg,
html.force-motion .plate,
html.force-motion .plate .face,
html.force-motion .name,
html.force-motion .hits b,
html.force-motion .mini-eq b,
html.force-motion .dline {
  animation-play-state: running !important;
}

.gate, .bio, .dock, .plate, .mini-profile, .project-card, .empty-work-box {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Wyłączenie ciężkich filtrów GPU w trybie oszczędnym .lite i .auto-lite */
html.lite .mini-profile,
html.lite .empty-work-box,
html.lite .project-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.5) !important;
  background: rgba(18, 20, 24, 0.94) !important;
}

html.lite .dock-bg-accent .glyph-bg {
  animation: none !important;
  filter: none !important;
}

html.auto-lite #field {
  opacity: .5;
}

/* ============================================================
   11. SPOTIFY SLIDING MUSIC PLAYER WIDGET
   ============================================================ */
.music-trigger {
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-3);
  transition: transform 0.3s var(--spring), background 0.3s var(--e), border-color 0.3s var(--e), color 0.3s var(--e);
  margin-right: 8px;
  user-select: none;
}
.music-trigger:hover {
  transform: scale(1.15) rotate(12deg);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--ink);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}
.music-player-panel {
  position: fixed;
  top: clamp(60px, 8vh, 84px);
  right: clamp(16px, 3.4vw, 46px);
  width: 270px;
  background: rgba(4, 4, 5, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 9999;
  transform: translateX(340px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.music-player-panel.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.music-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.spotify-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  color: #1DB954;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.spotify-badge::before {
  content: "●";
  font-size: 8px;
  animation: pulseGreen 1.8s infinite alternate;
}

@keyframes pulseGreen {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.close-panel-btn {
  cursor: pointer;
  font-size: 11px;
  color: var(--ink-4);
  transition: color 0.25s var(--e);
  line-height: 1;
}

.close-panel-btn:hover {
  color: var(--ink);
}

.music-player-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.song-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-display-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.015em;
}

.song-display-artist {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.play-pause-btn {
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 0.25s var(--spring), background 0.25s var(--e), border-color 0.25s var(--e);
  flex-shrink: 0;
}
.play-pause-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}
.play-pause-btn svg {
  fill: currentColor;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.vol-icon {
  color: var(--ink-3);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vol-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.vol-slider:hover {
  background: rgba(255, 255, 255, 0.14);
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-2);
  cursor: pointer;
  transition: transform 0.15s var(--spring), background 0.15s var(--e);
}
.vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  background: var(--ink);
}



/* ===== napis "thebiggestoliwier" zamiast 44 (5 kolumn zamiast 2) ===== */
.metal .d{ height:min(34vh, 8.6vw); }
.metal .glyph{ font-size:min(34vh, 8.6vw); letter-spacing:0; }
.d:nth-child(3) .roll{ animation-delay:.32s; }
.d:nth-child(4) .roll{ animation-delay:.48s; }
.d:nth-child(3) .glyph::after{ animation-delay:1.0s; }
.d:nth-child(4) .glyph::after{ animation-delay:.66s; }
.d:nth-child(5) .roll{ animation-delay:.64s; }
.d:nth-child(5) .glyph::after{ animation-delay:1.18s; }
.dock-bg-accent .glyph-bg{ font-size:min(24vh, 6.4vw); white-space:nowrap; }
@media (max-width:700px){
  .metal .d{ height:min(24vh, 8.6vw); }
  .metal .glyph{ font-size:min(24vh, 8.6vw); }
}
.boot .mk{ font-size:clamp(20px,5.6vw,80px); letter-spacing:-.02em; gap:clamp(1px,.4vw,6px); }
.boot .mk b:nth-child(3){ animation-name:bootIn, flow, digitFloat; animation-delay:.2s, 1.1s, 0s; }
.boot .mk b:nth-child(4){ animation-name:bootIn, flow, digitFloat2; animation-delay:.3s, 1.2s, 0s; }
.boot .mk b:nth-child(5){ animation-name:bootIn, flow, digitFloat2; animation-delay:.4s, 1.3s, 0s; }

/* stagger for thebiggestoliwier */
.d:nth-child(1) .roll{ animation-delay:0.0s; }
.d:nth-child(1) .glyph::after{ animation-delay:1.35s; }
.boot .mk b:nth-child(1){ animation-name:bootIn, flow, digitFloat; animation-delay:0.0s, 1.0s, 0s; }
.d:nth-child(2) .roll{ animation-delay:0.05s; }
.d:nth-child(2) .glyph::after{ animation-delay:1.7s; }
.boot .mk b:nth-child(2){ animation-name:bootIn, flow, digitFloat2; animation-delay:0.05s, 1.05s, 0s; }
.d:nth-child(3) .roll{ animation-delay:0.1s; }
.d:nth-child(3) .glyph::after{ animation-delay:2.05s; }
.boot .mk b:nth-child(3){ animation-name:bootIn, flow, digitFloat; animation-delay:0.1s, 1.1s, 0s; }
.d:nth-child(4) .roll{ animation-delay:0.15s; }
.d:nth-child(4) .glyph::after{ animation-delay:1.21s; }
.boot .mk b:nth-child(4){ animation-name:bootIn, flow, digitFloat2; animation-delay:0.15s, 1.15s, 0s; }
.d:nth-child(5) .roll{ animation-delay:0.2s; }
.d:nth-child(5) .glyph::after{ animation-delay:1.56s; }
.boot .mk b:nth-child(5){ animation-name:bootIn, flow, digitFloat; animation-delay:0.2s, 1.2s, 0s; }
.d:nth-child(6) .roll{ animation-delay:0.25s; }
.d:nth-child(6) .glyph::after{ animation-delay:1.91s; }
.boot .mk b:nth-child(6){ animation-name:bootIn, flow, digitFloat2; animation-delay:0.25s, 1.25s, 0s; }
.d:nth-child(7) .roll{ animation-delay:0.3s; }
.d:nth-child(7) .glyph::after{ animation-delay:1.07s; }
.boot .mk b:nth-child(7){ animation-name:bootIn, flow, digitFloat; animation-delay:0.3s, 1.3s, 0s; }
.d:nth-child(8) .roll{ animation-delay:0.35s; }
.d:nth-child(8) .glyph::after{ animation-delay:1.42s; }
.boot .mk b:nth-child(8){ animation-name:bootIn, flow, digitFloat2; animation-delay:0.35s, 1.35s, 0s; }
.d:nth-child(9) .roll{ animation-delay:0.4s; }
.d:nth-child(9) .glyph::after{ animation-delay:1.77s; }
.boot .mk b:nth-child(9){ animation-name:bootIn, flow, digitFloat; animation-delay:0.4s, 1.4s, 0s; }
.d:nth-child(10) .roll{ animation-delay:0.45s; }
.d:nth-child(10) .glyph::after{ animation-delay:2.12s; }
.boot .mk b:nth-child(10){ animation-name:bootIn, flow, digitFloat2; animation-delay:0.45s, 1.45s, 0s; }
.d:nth-child(11) .roll{ animation-delay:0.5s; }
.d:nth-child(11) .glyph::after{ animation-delay:1.28s; }
.boot .mk b:nth-child(11){ animation-name:bootIn, flow, digitFloat; animation-delay:0.5s, 1.5s, 0s; }
.d:nth-child(12) .roll{ animation-delay:0.55s; }
.d:nth-child(12) .glyph::after{ animation-delay:1.63s; }
.boot .mk b:nth-child(12){ animation-name:bootIn, flow, digitFloat2; animation-delay:0.55s, 1.55s, 0s; }
.d:nth-child(13) .roll{ animation-delay:0.6s; }
.d:nth-child(13) .glyph::after{ animation-delay:1.98s; }
.boot .mk b:nth-child(13){ animation-name:bootIn, flow, digitFloat; animation-delay:0.6s, 1.6s, 0s; }
.d:nth-child(14) .roll{ animation-delay:0.65s; }
.d:nth-child(14) .glyph::after{ animation-delay:1.14s; }
.boot .mk b:nth-child(14){ animation-name:bootIn, flow, digitFloat2; animation-delay:0.65s, 1.65s, 0s; }
.d:nth-child(15) .roll{ animation-delay:0.7s; }
.d:nth-child(15) .glyph::after{ animation-delay:1.49s; }
.boot .mk b:nth-child(15){ animation-name:bootIn, flow, digitFloat; animation-delay:0.7s, 1.7s, 0s; }
.d:nth-child(16) .roll{ animation-delay:0.75s; }
.d:nth-child(16) .glyph::after{ animation-delay:1.84s; }
.boot .mk b:nth-child(16){ animation-name:bootIn, flow, digitFloat2; animation-delay:0.75s, 1.75s, 0s; }
.d:nth-child(17) .roll{ animation-delay:0.8s; }
.d:nth-child(17) .glyph::after{ animation-delay:1.0s; }
.boot .mk b:nth-child(17){ animation-name:bootIn, flow, digitFloat; animation-delay:0.8s, 1.8s, 0s; }
