/* Kernel — home landing. Inner pages use site.css. */
:root{
  --bg:#ececea;
  --ink:#121214;
  --mid:#6e6e74;
  --soft:#b9b9bd;
  --card:#f7f7f5;
  --dark:#141416;
  --font:"Onest", system-ui, sans-serif;
  --ease:cubic-bezier(.2,.75,.15,1);
}
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; color:var(--ink); font:400 17px/1.5 var(--font); overflow-x:hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 38%),
    linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 42%, rgba(255,255,255,0) 52%),
    var(--bg);
  background-attachment:fixed;
}
img,video{ display:block; max-width:100%; }
a{ color:inherit; }
h1,h2,h3,p{ margin:0; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 20px; }

/* ---------- nav ---------- */
.nav{ position:fixed; top:14px; left:0; right:0; z-index:50; pointer-events:none; }
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; }
.nav a{ pointer-events:auto; }
.logo{ display:flex; align-items:center; gap:8px; text-decoration:none; font-weight:600; }
.logo img{ width:30px; height:30px; filter:invert(1); }
.nav-links{ display:flex; gap:2px; padding:5px; border-radius:999px; background:rgba(255,255,255,.7);
  backdrop-filter:blur(10px); box-shadow:0 1px 0 rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.06); pointer-events:auto; }
.nav-links a{ text-decoration:none; font-size:14.5px; padding:7px 14px; border-radius:999px; color:var(--mid); }
.nav-links a:hover{ color:var(--ink); background:rgba(0,0,0,.05); }
.nav-links a.cta{ background:var(--ink); color:#fff; }

/* ---------- hero ---------- */
.hero{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:120px 20px 60px; }
.slots{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; padding:6px 12px 6px 8px;
  border-radius:999px; background:var(--card); box-shadow:0 1px 2px rgba(0,0,0,.06); margin-bottom:28px; }
.slots i{ width:8px; height:8px; border-radius:50%; background:#2fbf5b; box-shadow:0 0 0 3px rgba(47,191,91,.18); }
.hero h1{ font-size:clamp(40px, 7.4vw, 104px); font-weight:500; line-height:1.04; letter-spacing:-.035em;
  max-width:13em; perspective:900px; }
.hero h1 .w{ display:inline-block; }
.hero h1 .g{ color:var(--soft); }
.tile{ display:inline-block; width:.92em; height:.92em; vertical-align:-.12em; margin:0 .08em;
  border-radius:.24em; overflow:hidden; box-shadow:0 .08em .2em rgba(0,0,0,.18), inset 0 0 0 2px rgba(255,255,255,.5);
  transform:rotate(var(--r, -6deg)); background:#ccc; }
.tile img{ width:100%; height:100%; object-fit:cover; }
.hero-sub{ color:var(--mid); margin:26px 0 30px; max-width:30em; }
.hero-row{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; justify-content:center; }
.btn{ display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-size:15px; font-weight:500;
  padding:12px 20px; border-radius:999px; background:var(--ink); color:#fff; transition:transform .3s var(--ease); }
.btn:hover{ transform:translateY(-2px); }
.btn.light{ background:var(--card); color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.08); }
.trust{ display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--mid); text-align:left; line-height:1.25; }
.faces{ display:flex; }
.faces img{ width:32px; height:32px; border-radius:50%; border:2px solid var(--bg); margin-left:-9px; }
.faces img:first-child{ margin-left:0; }

/* ---------- tilted screen ---------- */
.screen-wrap{ perspective:1400px; padding:0 20px; margin-top:-20px; }
.screen{ max-width:1180px; margin:0 auto; background:var(--dark); border-radius:22px; padding:12px;
  box-shadow:0 40px 80px -30px rgba(0,0,0,.45); transform-origin:50% 0;
  transform:rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); will-change:transform; }
.screen-bar{ display:flex; align-items:center; gap:7px; padding:4px 6px 12px; color:#8a8a90; font-size:13px; }
.screen-bar i{ width:10px; height:10px; border-radius:50%; background:#3a3a3f; }
.screen-bar span{ margin-left:auto; }
.screen video{ width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:12px; background:#000; }

/* ---------- statement ---------- */
.statement{ position:relative; padding:160px 20px; text-align:center; }
.statement .tagline{ color:var(--mid); font-size:14px; margin-bottom:22px; }
.statement p.big{ font-size:clamp(26px, 3.4vw, 44px); line-height:1.22; letter-spacing:-.02em; font-weight:500;
  max-width:19em; margin:0 auto; }
.statement .wd{ color:var(--soft); transition:color .25s; }
.statement .wd.on{ color:var(--ink); }
.pill{ position:absolute; display:flex; align-items:center; gap:8px; font-size:14px; padding:7px 13px 7px 8px;
  border-radius:999px; background:var(--card); box-shadow:0 2px 0 rgba(0,0,0,.04), 0 10px 24px rgba(0,0,0,.08);
  transform:translateY(var(--py, 0)) rotate(var(--pr, 0deg)); white-space:nowrap; }
.pill b{ width:22px; height:22px; border-radius:7px; display:grid; place-items:center; font-size:12px; color:#fff; }
@media (max-width:900px){ .pill{ display:none; } .statement{ padding:110px 20px; } }

/* ---------- section heads ---------- */
.head{ text-align:center; margin-bottom:46px; }
.head small{ display:block; color:var(--mid); font-size:14px; margin-bottom:10px; }
.head h2{ font-size:clamp(32px, 4.6vw, 60px); font-weight:500; letter-spacing:-.03em; line-height:1.05; }

/* ---------- 3D ring ---------- */
.ring-sec{ height:340vh; position:relative; }
.ring-stick{ position:sticky; top:0; height:100vh; display:flex; flex-direction:column; align-items:center;
  justify-content:center; overflow:hidden; }
.ring-stage{ perspective:1600px; width:100%; height:min(46vw, 420px); display:grid; place-items:center; }
.ring{ position:relative; width:min(34vw, 380px); aspect-ratio:16/10; transform-style:preserve-3d;
  transform:translateZ(calc(var(--R) * -1)) rotateX(-6deg) rotateY(var(--ry, 0deg)); }
.ring figure{ position:absolute; inset:0; margin:0; border-radius:14px; overflow:hidden; background:#000;
  transform:rotateY(var(--a)) translateZ(var(--R)); backface-visibility:hidden;
  box-shadow:0 20px 40px -18px rgba(0,0,0,.5); }
.ring figure img{ width:100%; height:100%; object-fit:cover; }
.ring-cap{ margin-top:34px; text-align:center; min-height:56px; }
.ring-cap b{ display:block; font-size:22px; font-weight:500; letter-spacing:-.01em; }
.ring-cap span{ color:var(--mid); font-size:14.5px; }
.ring-cap a{ color:var(--mid); font-size:14px; }
@media (max-width:700px){ .ring{ width:58vw; } .ring-stage{ height:70vw; } }

/* ---------- games ---------- */
.games{ padding:120px 0; }
.ggrid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; perspective:1400px; }
.gcard{ display:block; text-decoration:none; background:var(--card); border-radius:20px; padding:10px;
  box-shadow:0 1px 2px rgba(0,0,0,.05); transform-style:preserve-3d; transition:transform .5s var(--ease), box-shadow .5s; }
.gcard:hover{ box-shadow:0 30px 50px -28px rgba(0,0,0,.35); }
.gcard .cov{ aspect-ratio:16/9; border-radius:13px; overflow:hidden; }
.gcard .cov img{ width:100%; height:100%; object-fit:cover; }
.gcard .meta{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; padding:14px 8px 6px; }
.gcard h3{ font-size:21px; font-weight:500; letter-spacing:-.01em; }
.gcard .role{ color:var(--mid); font-size:14.5px; }
.chip{ font-size:12.5px; padding:4px 10px; border-radius:999px; background:#e3e3e0; color:var(--mid); white-space:nowrap; }
.chip.dev{ background:#daf3e1; color:#1f7a3c; }
@media (max-width:700px){ .ggrid{ grid-template-columns:1fr; } }

/* ---------- process ---------- */
.process{ padding:40px 0 120px; }
.steps{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; }
.step{ background:var(--card); border-radius:20px; padding:26px; min-height:210px; display:flex; flex-direction:column; }
.step .n{ width:36px; height:36px; border-radius:11px; background:var(--ink); color:#fff; display:grid; place-items:center;
  font-weight:500; margin-bottom:auto; }
.step h3{ font-size:20px; font-weight:500; margin:28px 0 6px; }
.step p{ color:var(--mid); font-size:15.5px; }
@media (max-width:800px){ .steps{ grid-template-columns:1fr; } .step{ min-height:0; } }

/* ---------- quotes ---------- */
.quotes{ padding:0 0 120px; }
.qgrid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; }
.q{ background:var(--card); border-radius:20px; padding:24px; display:flex; flex-direction:column; gap:22px; }
.q blockquote{ margin:0; font-size:19px; line-height:1.35; letter-spacing:-.01em; }
.q .who{ display:flex; align-items:center; gap:10px; margin-top:auto; font-size:14.5px; }
.q .who img{ width:38px; height:38px; border-radius:50%; }
.q .who span{ color:var(--mid); display:block; font-size:13.5px; }
.studios{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:22px 48px; margin-top:54px; }
.studios img{ height:30px; width:auto; filter:invert(1) grayscale(1); opacity:.55; }
.studios img.sq{ height:40px; }
@media (max-width:800px){ .qgrid{ grid-template-columns:1fr; } }

/* ---------- contact ---------- */
.contact{ padding:0 20px 40px; }
.cbox{ max-width:1180px; margin:0 auto; background:var(--dark); color:#fff; border-radius:28px;
  padding:clamp(40px, 7vw, 90px) 24px; text-align:center; position:relative; overflow:hidden; }
.cbox h2{ font-size:clamp(34px, 5.6vw, 76px); font-weight:500; letter-spacing:-.035em; line-height:1.03; }
.cbox p{ color:#9b9ba2; margin:18px auto 30px; max-width:30em; }
.cbox .btn{ background:#fff; color:var(--ink); }
.cbox .alt{ display:flex; justify-content:center; gap:22px; flex-wrap:wrap; margin-top:26px; font-size:14.5px; }
.cbox .alt a{ color:#c9c9cf; }
.foot{ text-align:center; color:var(--mid); font-size:13.5px; padding:26px 0 36px; }

/* ---------- motion ---------- */
.m .hero h1 .w{ opacity:0; transform:translateY(.45em) rotateX(-70deg); filter:blur(8px); transform-origin:50% 100%;
  transition:opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
  transition-delay:calc(var(--d) * 55ms + 150ms); }
.m .hero.go h1 .w{ opacity:1; transform:none; filter:none; }
.m .hero .tile{ transform:rotate(var(--r)) scale(.2); opacity:0;
  transition:transform 1s var(--ease), opacity .6s; transition-delay:calc(var(--d) * 55ms + 300ms); }
.m .hero.go .tile{ transform:rotate(var(--r)) scale(1); opacity:1; }
.m .fade{ opacity:0; transform:translateY(16px); transition:opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay:var(--fd, 0ms); }
.m .go .fade, .m .fade.go{ opacity:1; transform:none; }
.m [data-rise] > *{ opacity:0; transform:translateY(60px) rotateX(24deg); transform-origin:50% 100%;
  transition:opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay:calc(var(--i) * 90ms); }
.m [data-rise].go > *{ opacity:1; transform:none; }
.m .gcard:hover{ transform:translateY(-6px) rotateX(4deg); }
@media (prefers-reduced-motion:reduce){ .m *{ transition:none !important; } }

/* nav indicator (nav.js) */
.nav-links{ position:relative; }
.nav-links a{ position:relative; z-index:1; transition:color .3s; }
.nav-links a:hover{ background:none; }
.nav-links a[aria-current]{ color:var(--ink); }
.nav-links a.cta[aria-current]{ color:#fff; }
.nav-ind{ position:absolute; z-index:0; left:0; top:5px; bottom:5px; border-radius:999px; background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  transition:transform .45s cubic-bezier(.2,.75,.15,1), width .45s cubic-bezier(.2,.75,.15,1), opacity .2s; }
.nav-ind.on-cta{ box-shadow:0 0 0 2px #fff, 0 0 0 3.5px var(--ink); background:transparent; }
.nav-links a[aria-current]::after{ content:""; position:absolute; left:50%; bottom:2px; width:4px; height:4px;
  margin-left:-2px; border-radius:50%; background:currentColor; }

/* featured game spans the row */
.gcard.wide{ grid-column:1 / -1; }
.gcard.wide .cov, .gcard.wide .shot{ aspect-ratio:21/9; }
.gcard.wide h3{ font-size:26px; }
.gcard.wide img{ object-position:center 85%; }
.studios img.fg{ height:78px; margin:-20px 0; }
.studios img{ filter:grayscale(1) brightness(0); opacity:.5; transition:opacity .3s; }
.studios img:hover{ opacity:.85; }

/* ---------- nav: scroll behaviour + mobile menu (nav.js) ---------- */
.nav{ transition:transform .5s cubic-bezier(.2,.75,.15,1); }
.nav.away{ transform:translateY(-140%); }
.nav-links{ transition:box-shadow .4s, background .4s; }
.nav.scrolled .nav-links{ background:rgba(255,255,255,.88); box-shadow:0 1px 0 rgba(0,0,0,.04), 0 12px 30px rgba(0,0,0,.1); }
.logo{ pointer-events:auto; transition:opacity .3s; }
.nav-toggle{ display:none; }

@media (max-width:720px){
  .nav-toggle{ pointer-events:auto; display:flex; align-items:center; gap:10px; height:42px; padding:0 8px 0 16px;
    border:0; border-radius:999px; background:var(--ink); color:#fff; font:500 14.5px var(--font); cursor:pointer; }
  .nav-toggle i{ position:relative; width:26px; height:26px; border-radius:50%; background:rgba(255,255,255,.14); }
  .nav-toggle i::before,.nav-toggle i::after{ content:""; position:absolute; left:8px; right:8px; height:1.8px; border-radius:2px;
    background:#fff; transition:transform .4s cubic-bezier(.2,.75,.15,1), top .4s cubic-bezier(.2,.75,.15,1); }
  .nav-toggle i::before{ top:10px; }
  .nav-toggle i::after{ top:14.5px; }
  .nav.open .nav-toggle i::before{ top:12px; transform:rotate(45deg); }
  .nav.open .nav-toggle i::after{ top:12px; transform:rotate(-45deg); }

  .nav-links{ position:fixed; top:66px; left:12px; right:12px; flex-direction:column; gap:2px; padding:8px;
    border-radius:26px; background:rgba(255,255,255,.96) !important; box-shadow:0 30px 60px -20px rgba(0,0,0,.35) !important;
    opacity:0; transform:translateY(-12px) scale(.97); transform-origin:50% 0; pointer-events:none;
    transition:opacity .3s, transform .45s cubic-bezier(.2,.75,.15,1); }
  .nav.open .nav-links{ opacity:1; transform:none; pointer-events:auto; }
  .nav-links a{ display:flex; align-items:center; justify-content:space-between; font-size:22px; letter-spacing:-.02em;
    color:var(--ink); padding:15px 18px; border-radius:18px; }
  .nav-links a::before{ content:"\2192"; order:2; font-size:18px; color:var(--soft); transition:transform .3s; }
  .nav-links a:active{ background:rgba(0,0,0,.05); }
  .nav-links a[aria-current]{ background:#efefec; }
  .nav-links a[aria-current]::after{ position:static; order:1; margin:0 auto 0 10px; width:7px; height:7px; background:#2fbf5b; }
  .nav-links a.cta{ margin-top:6px; justify-content:center; gap:10px; font-size:18px; padding:16px; }
  .nav-links a.cta::before{ color:rgba(255,255,255,.6); }
  .nav-links a.cta[aria-current]::after{ display:none; }
  .nav-ind{ display:none; }
  .nav-links a{ opacity:0; transform:translateY(-8px); transition:opacity .3s, transform .45s cubic-bezier(.2,.75,.15,1); }
  .nav.open .nav-links a{ opacity:1; transform:none; }
  .nav.open .nav-links a:nth-of-type(2){ transition-delay:.04s; }
  .nav.open .nav-links a:nth-of-type(3){ transition-delay:.08s; }
  .nav.open .nav-links a:nth-of-type(4){ transition-delay:.12s; }
  .nav.open .nav-links a:nth-of-type(5){ transition-delay:.16s; }
  .nav-scrim{ position:fixed; inset:0; z-index:49; background:rgba(20,20,22,.25); backdrop-filter:blur(3px);
    opacity:0; pointer-events:none; transition:opacity .3s; }
  .nav.open + .nav-scrim{ opacity:1; pointer-events:auto; }
}

/* ============================================================
   Feel pass (apple-design): feedback on press, no sticky hover
   on touch, menu grows from its button, reduced motion/transparency
   ============================================================ */

/* respond on pointer-down, instantly */
.btn, .nav-links a, .nav-toggle, .gcard, .chan, .wcard, .kp-btn, .sneak-play, .sneaks-close, .wpanel-close, .tab{
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.btn:active, .nav-toggle:active, .tab:active{ transform:scale(.96); transition:transform .1s ease-out; }
.nav-links a:active{ transform:scale(.96); transition:transform .1s ease-out; }
.gcard:active, .chan:active, .wcard:active{ transform:scale(.985) !important; transition:transform .1s ease-out !important; }

/* hover lifts only where a pointer can hover; on touch they stick after a tap */
@media (hover:none){
  .btn:hover, .chan:hover{ transform:none; }
  .m .gcard:hover, .m .wgrid.go > .wcard:hover{ transform:none; }
  .gcard:hover, .wcard:hover, .chan:hover{ box-shadow:0 1px 2px rgba(0,0,0,.05); }
}

/* the phone menu grows out of the Menu button and materialises (blur + scale), not just fades */
@media (max-width:720px){
  .nav-links{ transform-origin:calc(100% - 50px) -10px; filter:blur(6px);
    transition:opacity .25s, transform .4s cubic-bezier(.2,.75,.15,1), filter .3s; }
  .nav.open .nav-links{ filter:none; }
}

@media (prefers-reduced-transparency:reduce){
  .nav-links, .nav.scrolled .nav-links{ background:#fff !important; backdrop-filter:none; }
  .nav-scrim{ backdrop-filter:none; background:rgba(20,20,22,.4); }
}
@media (prefers-reduced-motion:reduce){
  .nav, .nav-links, .nav-links a, .nav-ind{ transition:opacity .2s ease !important; transform:none !important; filter:none !important; }
  .nav.away{ transform:none !important; }
  .screen{ transform:none !important; }
}

/* rest of the site: press feedback on the remaining controls */
.kp-big:active{ transform:scale(.92); transition:transform .1s ease-out; }
.sneak-play:active{ transform:scale(.92); transition:transform .1s ease-out; }
.logo:active{ transform:scale(.96); }
.cbox .alt a:active, .hero-sub a:active{ opacity:.6; }

/* tracking by size: tight on display type, neutral on body, a touch open on small labels */
.head small, .tagline, .slots, .chip, .tag, .stats span, .chan small{ letter-spacing:.01em; }
.hero-sub, .step p, .q blockquote, .gp-about p{ text-wrap:pretty; }
h1, h2, .gcard h3{ text-wrap:balance; }

/* reduced motion on the home: no tilting screen, no floating pills, no word flips */
@media (prefers-reduced-motion:reduce){
  .ring{ transition:transform .3s ease; }
  .pill{ transform:rotate(var(--pr, 0deg)) !important; }
  .tile{ translate:none !important; }
}

/* ============================================================
   Kernel-only pieces, copied from Roblox Studio (Dark theme):
   colours read from settings().Studio.Theme, icons are Studio's
   own InsertableObjects/Dark set (assets/studio).
   ============================================================ */
:root{
  --rs-bg:#191a1f;        /* MainBackground */
  --rs-bar:#202227;       /* Titlebar / ScriptBackground */
  --rs-input:#282931;     /* InputFieldBackground */
  --rs-text:#bcbec8;      /* MainText */
  --rs-dim:#6a6f81;       /* DimmedText */
  --rs-hover:#353741;     /* Item:Hover */
  --rs-sel:#1458d6;       /* Explorer selection bar */
  --rs-kw:#eb7973;        /* ScriptKeyword */
  --rs-warn:#f57630;      /* WarningText */
  --rs-ui:"Figtree", system-ui, sans-serif;
  --rs-mono:"JetBrains Mono", ui-monospace, Consolas, monospace;
}
.screen{ position:relative; }

/* ---- script editor window docked on the hero clip ---- */
.script{ position:absolute; right:-36px; bottom:-46px; width:min(470px, 46%); background:var(--rs-bar); color:var(--rs-text);
  border-radius:8px; box-shadow:0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px #000; overflow:hidden; text-align:left;
  transform:rotate(1.2deg); font-family:var(--rs-mono); }
.script-tabs{ display:flex; background:var(--rs-bg); padding:0 4px; }
.stab{ display:flex; align-items:center; gap:6px; padding:6px 10px 6px 8px; background:var(--rs-bar); color:var(--rs-text);
  font:500 12.5px var(--rs-ui); border-top:2px solid var(--rs-sel); }
.stab img{ width:16px; height:16px; }
.stab i{ font-style:normal; color:var(--rs-dim); margin-left:6px; font-size:13px; }
.script pre{ margin:0; padding:6px 12px 12px 0; counter-reset:ln; white-space:pre; overflow:hidden; font-size:12.5px; line-height:1.5; }
.script .ln{ display:block; counter-increment:ln; padding-left:44px; position:relative; }
.script .ln::before{ content:counter(ln); position:absolute; left:0; width:24px; text-align:right; color:var(--rs-dim); }
.script .ln:first-child::before{ color:#fff; }
.script .ln.fold::after{ content:""; position:absolute; left:31px; top:7px; border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:5px solid var(--rs-dim); }
.script .k{ color:var(--rs-kw); font-weight:700; }
.script .c{ color:var(--rs-dim); }
.script u{ text-decoration:underline wavy rgba(245,118,48,.75); text-decoration-thickness:1px; text-underline-offset:3px; }
.m .script .ln{ clip-path:inset(0 100% 0 0); }
.m .script.go .ln{ clip-path:inset(0 0 0 0); transition:clip-path .45s steps(22) calc(.6s + var(--i) * .32s); }
@media (max-width:900px){ .script{ position:relative; right:auto; bottom:auto; width:auto; margin:12px 0 0; transform:none; } }

/* ---- Studio panels beside the statement ---- */
.studio-panel{ position:absolute; width:260px; background:var(--rs-bg); color:var(--rs-text); border-radius:8px; overflow:hidden; text-align:left;
  box-shadow:0 30px 60px -24px rgba(0,0,0,.55), 0 0 0 1px #000; font:400 13.5px/1 var(--rs-ui); }
.sp-title{ background:var(--rs-bar); text-align:center; padding:7px 0; font-size:12.5px; font-weight:500; color:var(--rs-text); }
.sp-search{ margin:6px; padding:6px 8px; background:var(--rs-input); border-radius:4px; color:var(--rs-dim); font-size:12.5px; }
.explorer{ left:3.5%; top:9%; transform:rotate(-1.5deg) translateY(var(--py, 0)); }
.explorer ul{ list-style:none; margin:0; padding:2px 6px 8px; }
.explorer li{ display:flex; align-items:center; gap:5px; height:21px; padding-right:8px; border-radius:4px; white-space:nowrap; }
.explorer li.d1{ padding-left:12px; } .explorer li.d2{ padding-left:24px; } .explorer li.d3{ padding-left:36px; }
.explorer li img{ width:16px; height:16px; flex:none; }
.explorer li.sel{ background:var(--rs-sel); color:#fff; }
@media (hover:hover){ .explorer li:not(.sel):hover{ background:var(--rs-hover); } }
.tw{ width:12px; height:12px; flex:none; position:relative; }
.tw::before{ content:""; position:absolute; left:4px; top:2px; border-top:4px solid transparent; border-bottom:4px solid transparent; border-left:5px solid var(--rs-text); }
.tw.open::before{ left:2px; top:4px; border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid var(--rs-text); border-bottom:0; }
.tw.none::before{ display:none; }
.output{ right:3%; top:20%; width:390px; transform:rotate(1.5deg) translateY(var(--py, 0)); }
.sp-filters{ display:flex; gap:6px; padding:6px; }
.sp-filters span{ background:var(--rs-input); border-radius:4px; padding:5px 22px 5px 8px; font-size:11.5px; position:relative; }
.sp-filters span::after{ content:""; position:absolute; right:8px; top:9px; border-left:3px solid transparent; border-right:3px solid transparent; border-top:4px solid var(--rs-text); }
.output ol{ list-style:none; margin:0; padding:2px 8px 10px; font:400 11.5px/1.55 var(--rs-mono); }
.output li{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.output time{ display:inline-block; margin:0 10px 0 6px; }
.output em{ font-style:normal; }
.output li.warn{ color:var(--rs-warn); font-weight:700; }

/* motion: rows unfold, log lines print */
.m .explorer li{ opacity:0; transform:translateX(-8px); transition:opacity .35s, transform .45s var(--ease); }
.m .explorer.go li{ opacity:1; transform:none; transition-delay:calc(var(--i) * 60ms + .2s); }
.m .output li{ opacity:0; max-height:0; transition:opacity .3s, max-height .35s var(--ease); }
.m .output li.on{ opacity:1; max-height:20px; }
@media (max-width:1180px){ .studio-panel{ display:none; } }
@media (prefers-reduced-motion:reduce){ .script .ln, .explorer li, .output li{ clip-path:none !important; opacity:1 !important; transform:none !important; max-height:none !important; } }

/* Studio chrome details: dock buttons, search history + "more", scrollbar */
.sp-title{ position:relative; }
.sp-btns{ position:absolute; right:8px; top:50%; transform:translateY(-50%); display:flex; gap:9px; }
.sp-btns i{ width:9px; height:9px; position:relative; display:block; }
.sp-btns .pop{ border:1.4px solid var(--rs-text); border-radius:1px; }
.sp-btns .pop::after{ content:""; position:absolute; right:-3px; top:-3px; width:4px; height:4px; border-top:1.4px solid var(--rs-text); border-right:1.4px solid var(--rs-text); }
.sp-btns .x::before, .sp-btns .x::after{ content:""; position:absolute; left:4px; top:-1px; width:1.4px; height:11px; background:var(--rs-text); transform:rotate(45deg); }
.sp-btns .x::after{ transform:rotate(-45deg); }
.sp-searchrow{ display:flex; align-items:center; gap:4px; margin:6px; }
.sp-searchrow .sp-search{ flex:1; margin:0; display:flex; align-items:center; justify-content:space-between; }
.sp-search .hist{ width:11px; height:11px; border:1.4px solid var(--rs-text); border-radius:50%; position:relative; }
.sp-search .hist::after{ content:""; position:absolute; left:3.5px; top:1.5px; width:2.5px; height:3px; border-left:1.2px solid var(--rs-text); border-bottom:1.2px solid var(--rs-text); }
.sp-searchrow .more{ width:24px; height:24px; border-radius:4px; background:var(--rs-input); position:relative; }
.sp-searchrow .more::before{ content:"\2022\2022\2022"; position:absolute; inset:0; display:grid; place-items:center; font-size:8px; letter-spacing:1px; color:var(--rs-text); font-style:normal; }
.explorer ul{ position:relative; padding-right:14px; }
.explorer ul::after{ content:""; position:absolute; right:4px; top:4px; width:4px; height:45%; border-radius:2px; background:var(--rs-hover); }

/* keep the Studio panels clear of the statement */
.statement p.big{ max-width:14em; }
.output{ width:340px; right:2%; top:auto; bottom:12%; }
.explorer{ left:2%; top:6%; }
@media (max-width:1320px){ .studio-panel{ display:none; } }
.script code{ display:flex; flex-direction:column; }

/* ---------- the site's own scrollbar (scrollbar.js) ---------- */
html.own-scrollbar{ scrollbar-width:none; }
html.own-scrollbar::-webkit-scrollbar{ display:none; }
.sbar{ position:fixed; z-index:60; top:12px; bottom:12px; right:6px; width:14px; cursor:pointer; }
.sbar.none{ display:none; }
.sbar::before{ content:""; position:absolute; top:0; bottom:0; left:50%; width:2px; margin-left:-1px; border-radius:2px;
  background:rgba(18,18,20,.08); opacity:0; transition:opacity .4s; }
.sbar-thumb{ position:absolute; left:50%; top:0; width:4px; margin-left:-2px; border-radius:99px; background:#121214; opacity:.28;
  transition:width .25s var(--ease), margin .25s var(--ease), opacity .3s; cursor:grab; }
.sbar.on::before, .sbar:hover::before{ opacity:1; }
.sbar.on .sbar-thumb{ opacity:.7; }
.sbar:hover .sbar-thumb, .sbar.drag .sbar-thumb{ width:8px; margin-left:-4px; opacity:1; }
.sbar.drag .sbar-thumb{ cursor:grabbing; }
.sbar-tag{ position:absolute; right:16px; top:50%; transform:translate(6px,-50%); white-space:pre; pointer-events:none;
  font:500 12.5px var(--font); color:#fff; background:#121214; padding:6px 10px; border-radius:8px; opacity:0;
  transition:opacity .25s, transform .35s var(--ease); box-shadow:0 8px 20px rgba(0,0,0,.18); }
.sbar-tag::after{ content:""; position:absolute; right:-4px; top:50%; margin-top:-4px; border-left:5px solid #121214; border-top:4px solid transparent; border-bottom:4px solid transparent; }
.sbar.on .sbar-tag, .sbar.drag .sbar-tag{ opacity:1; transform:translate(0,-50%); }
@media (prefers-reduced-motion:reduce){ .sbar-thumb, .sbar-tag{ transition:opacity .2s; } }

/* keep the Hire me pill dark on hover (the generic link hover clears backgrounds) */
.nav-links a.cta, .nav-links a.cta:hover, .nav-links a.cta.lit{ background:var(--ink); color:#fff; }
.nav-links a.cta:hover{ background:#2a2a2e; }
@media (max-width:720px){ .nav-links a.cta:hover{ background:var(--ink); } }

/* ---------- music button (music.js) ---------- */
.music{ position:fixed; z-index:55; left:18px; bottom:18px; display:flex; align-items:center; gap:10px; padding:8px 14px 8px 10px;
  border:0; border-radius:999px; background:rgba(255,255,255,.82); backdrop-filter:blur(12px); color:var(--ink); cursor:pointer;
  box-shadow:0 1px 0 rgba(0,0,0,.04), 0 10px 26px rgba(0,0,0,.1); font:inherit; text-align:left;
  transition:transform .3s var(--ease), box-shadow .3s; -webkit-tap-highlight-color:transparent; }
.music:hover{ transform:translateY(-2px); box-shadow:0 1px 0 rgba(0,0,0,.04), 0 14px 30px rgba(0,0,0,.14); }
.music:active{ transform:scale(.96); }
.eq{ display:flex; align-items:flex-end; gap:2px; width:22px; height:22px; padding:4px; border-radius:50%; background:var(--ink); }
.eq i{ flex:1; height:25%; border-radius:1px; background:#fff; transition:height .3s; }
.music.on .eq i{ animation:eq .9s ease-in-out infinite; }
.music.on .eq i:nth-child(2){ animation-delay:-.3s; animation-duration:.7s; }
.music.on .eq i:nth-child(3){ animation-delay:-.55s; animation-duration:1.1s; }
.music.on .eq i:nth-child(4){ animation-delay:-.15s; animation-duration:.8s; }
@keyframes eq{ 0%,100%{ height:25%; } 50%{ height:100%; } }
.music-txt{ display:flex; flex-direction:column; line-height:1.15; }
.music-txt b{ font-size:13px; font-weight:600; }
.music-txt small{ font-size:11.5px; color:var(--mid); }
.music:not(.on) .music-txt b::after{ content:" · off"; font-weight:400; color:var(--mid); }
@media (max-width:640px){ .music{ left:12px; bottom:12px; padding:6px; } .music-txt{ display:none; } }
@media (prefers-reduced-motion:reduce){ .music.on .eq i{ animation:none; height:70%; } }
/* music: container pill with a main button and a next button */
.music{ padding:6px 6px 6px 8px; gap:4px; cursor:default; }
.music:hover{ transform:none; }
.music-main{ display:flex; align-items:center; gap:10px; padding:2px 8px 2px 2px; border:0; background:none; color:inherit; font:inherit;
  text-align:left; cursor:pointer; border-radius:999px; -webkit-tap-highlight-color:transparent; }
.music-main:active{ transform:scale(.96); }
.music-txt b{ display:block; max-width:150px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.music-next{ width:30px; height:30px; border:0; border-radius:50%; background:none; color:var(--ink); cursor:pointer; display:grid; place-items:center;
  transition:background .2s; }
.music-next:hover{ background:rgba(0,0,0,.06); }
.music-next:active{ transform:scale(.9); }
.music-next svg{ width:15px; height:15px; }
.music.swap .music-txt b{ animation:trk .45s var(--ease); }
@keyframes trk{ from{ opacity:0; transform:translateY(6px); } }
@media (max-width:640px){ .music{ padding:4px; } .music-main{ padding:2px; } .music-next{ display:none; } }
