/* huspicysoup — terminal / ASCII studio site */
:root {
  --bg: #07080a;
  --bg-2: #0c0e12;
  --bg-3: #12151b;
  --line: rgba(233, 230, 220, .09);
  --line-2: rgba(233, 230, 220, .18);
  --fg: #ece8dd;
  --dim: #7b808c;
  --blue: #0a8cff;
  --blue-2: #0090ff;
  --yellow: #ffd84a;
  --orange: #ff7a1a;
  --red: #ff3b1f;
  --green: #7dff8a;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --bar-h: 60px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.6 var(--mono);
  font-feature-settings: "calt" 1, "zero" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
pre { font-family: var(--mono); margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: .95; }
p { margin: 0; }
::selection { background: var(--yellow); color: #000; }
.dim { color: var(--dim); }
.ok { color: var(--green); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.caret {
  display: inline-block; width: .6em; height: 1.05em; margin-left: .15em;
  vertical-align: -.15em; background: currentColor; animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* film grain + scanlines */
.fx {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55));
  mix-blend-mode: multiply;
}
.fx::after {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: screen; animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
}

/* ───────── cursor ───────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
    width: 0; height: 0; mix-blend-mode: difference;
  }
  .cursor span {
    position: absolute; left: -7px; top: -11px; width: 14px; height: 22px; background: #fff;
    transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), border-radius .35s var(--ease);
    animation: blink 1.05s steps(1) infinite;
  }
  .cursor.is-link span { left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; animation: none; }
  .cursor.is-down span { transform: scale(.7); }
}

/* ───────── buttons ───────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  padding: .9em 1.1em; font-weight: 600; font-size: 14px; letter-spacing: .02em;
  color: var(--fg); border: 1px solid var(--line-2); isolation: isolate; overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn__b { color: var(--dim); transition: transform .4s var(--ease), color .3s; }
.btn:hover .btn__b:first-child { transform: translateX(-3px); color: var(--bg); }
.btn:hover .btn__b:last-child { transform: translateX(3px); color: var(--bg); }
.btn--solid { background: var(--yellow); color: #120d00; border-color: var(--yellow); }
.btn--solid .btn__b { color: rgba(0,0,0,.45); }
.btn--solid::before { background: var(--fg); }
.btn--big { font-size: 15px; padding: 1.1em 1.4em; }

/* ───────── boot screen ───────── */
.boot { display: none; }
.js .boot {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: var(--blue-2); color: #fff; overflow: hidden;
}
.boot__inner { position: relative; z-index: 2; width: min(92vw, 760px); display: grid; gap: 18px; justify-items: start; }
.boot__log { font-size: clamp(11px, 1.6vw, 13px); line-height: 1.55; min-height: 9.5em; color: rgba(255,255,255,.92); white-space: pre-wrap; }
.boot__log .ok { color: #fff; font-weight: 700; }
.boot__log .w { color: var(--yellow); }
.boot__logo { font-size: var(--px, 8px); line-height: 1; letter-spacing: 0; justify-self: center; }
.boot__logo span { display: inline-block; width: 1ch; }
.boot__name { justify-self: center; font-weight: 800; font-size: clamp(28px, 6vw, 56px); letter-spacing: .08em; min-height: 1.1em; }
.boot__hint { justify-self: center; font-size: 11px; opacity: .7; letter-spacing: .08em; text-transform: uppercase; }
.boot__hint .caret { width: .5em; height: .9em; }
.boot__shutter { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--blue-2); z-index: 1; }
.boot__shutter--top { top: 0; } .boot__shutter--bottom { bottom: 0; }
.boot.is-open { background: transparent; pointer-events: none; }
.boot.is-open .boot__inner { opacity: 0; transition: opacity .25s; }
.boot.is-open .boot__shutter--top { transform: translateY(-101%); transition: transform 1s var(--ease-io); }
.boot.is-open .boot__shutter--bottom { transform: translateY(101%); transition: transform 1s var(--ease-io); }
.boot.is-gone { display: none; }
html.booting { overflow: hidden; }

/* ───────── sticky bar ───────── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--bar-h);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px;
  padding: 0 var(--gutter); font-size: 13px;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, height .4s var(--ease);
}
.bar.is-stuck { background: rgba(7, 8, 10, .72); border-color: var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); --bar-h: 52px; }
.bar__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.bar__logo { width: 34px; height: 34px; border-radius: 9px; image-rendering: auto; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 24px -6px rgba(10,140,255,.6); transition: transform .5s var(--ease); }
.bar__brand:hover .bar__logo { transform: rotate(-8deg) scale(1.08); }
.bar__path { color: var(--fg); opacity: .85; white-space: nowrap; overflow: hidden; }
.bar__path .caret { width: .5em; }
.bar__nav { display: flex; gap: 22px; }
.bar__nav a { position: relative; padding: 6px 0; color: var(--fg); opacity: .78; transition: opacity .25s; }
.bar__nav a::after { content: "_"; position: absolute; right: -10px; opacity: 0; }
.bar__nav a:hover, .bar__nav a.is-on { opacity: 1; }
.bar__nav a:hover::after, .bar__nav a.is-on::after { opacity: 1; animation: blink 1.05s steps(1) infinite; }
.bar__nav a.is-on { color: var(--yellow); }
.bar__progress { color: var(--dim); white-space: nowrap; font-size: 12px; }
.bar__progress #barProg { color: var(--fg); letter-spacing: -.05em; }
@media (max-width: 1100px) { .bar__progress { display: none; } .bar { grid-template-columns: auto 1fr auto; } }
@media (max-width: 820px) {
  .bar__nav { display: none; }
  .bar { grid-template-columns: auto 1fr; gap: 14px; }
  .bar__path { justify-self: end; font-size: 12px; max-width: 46vw; text-overflow: ellipsis; }
}

/* ───────── hero ───────── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--bar-h) + 40px) var(--gutter) 90px; overflow: hidden;
}
.layer { will-change: transform; }
.hero__stars { position: absolute; inset: -10% -5%; width: 110%; height: 120%; opacity: .9; }
.hero__planet { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.hero__mark {
  position: absolute; width: clamp(80px, 9vw, 140px); height: auto; right: var(--gutter); top: calc(var(--bar-h) + 40px);
  filter: drop-shadow(0 0 1px rgba(255,255,255,.6)) drop-shadow(0 18px 40px rgba(10,140,255,.45));
  pointer-events: none; animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -12px; rotate: -4deg; } }
.hero__hud {
  position: absolute; bottom: 26px; right: var(--gutter); font-size: 11px; line-height: 1.75;
  color: var(--dim); text-transform: uppercase; letter-spacing: .08em; pointer-events: none;
  border-left: 1px solid var(--line-2); padding-left: 14px;
}
.hero__hud b { color: var(--fg); font-weight: 600; }
.hud__tip { color: var(--yellow); margin-top: 4px; }
.hero__copy { position: relative; z-index: 2; max-width: 780px; pointer-events: none; text-shadow: 0 0 22px var(--bg), 0 0 6px var(--bg), 0 0 2px var(--bg); }
.hero__copy a { pointer-events: auto; }
.prompt { font-size: 14px; color: var(--fg); margin-bottom: 26px; }
.hero__title { font-size: clamp(46px, 7.8vw, 124px); letter-spacing: -.06em; line-height: .9; }
.hero__title .line { display: block; white-space: nowrap; }
.line--accent { color: var(--yellow); text-shadow: 0 0 22px var(--bg), 0 0 40px rgba(255,216,74,.25); }
.hero__lede { max-width: 520px; margin-top: 30px; font-size: 16px; color: #c9c5ba; }
.hero__lede em { font-style: normal; color: var(--orange); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.hero__scroll i { width: 70px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: scan 2.2s var(--ease-io) infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (max-width: 820px) {
  .hero { align-items: end; padding-bottom: 110px; }
  .hero__planet { opacity: .85; }
  .hero__hud { bottom: auto; top: calc(var(--bar-h) + 16px); right: auto; left: var(--gutter); font-size: 10px; }
  .hero__hud div:not(.hud__tip) { display: none; }
  .hero__hud { border: 0; padding: 0; }
  .hero__mark { top: calc(var(--bar-h) + 18px); width: 64px; }
  .hero__title .line { white-space: normal; }
}

/* ───────── marquee ───────── */
.marquee { border-block: 1px solid var(--line); padding: 26px 0 20px; overflow: hidden; background: var(--bg-2); }
.marquee__row { display: flex; overflow: hidden; white-space: nowrap; }
.marquee__track {
  display: flex; flex: none; align-items: center; gap: .55em; padding-right: .55em;
  font-weight: 800; font-size: clamp(40px, 7vw, 96px); letter-spacing: -.04em; line-height: 1.05;
  will-change: transform;
}
.marquee__track .o { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.marquee__track b { color: var(--orange); font-size: .5em; }
.marquee__track--small { font-weight: 500; font-size: 14px; letter-spacing: .04em; color: var(--dim); gap: 1.6em; padding-right: 1.6em; margin-top: 10px; }
.marquee__track--small b { color: var(--blue); font-size: 1em; }

/* ───────── sections ───────── */
.section { position: relative; padding: clamp(90px, 14vh, 160px) var(--gutter); }
.section__head { margin-bottom: clamp(40px, 7vh, 72px); }
.section__cmd { font-size: 13px; color: var(--fg); margin-bottom: 18px; }
.section__title { font-size: clamp(44px, 7.5vw, 112px); letter-spacing: -.055em; }
.section__sub { margin-top: 18px; color: var(--dim); max-width: 520px; }

/* reveal + scramble */
.js [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ───────── games grid (hover layers) ───────── */
.games__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; aspect-ratio: 16 / 10.5; perspective: 1100px; display: block; color: var(--fg);
}
.card__inner {
  position: absolute; inset: 0; transform-style: preserve-3d; border: 1px solid var(--line-2); background: var(--bg-2);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
}
.card:hover .card__inner { border-color: rgba(255,216,74,.55); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,216,74,.15); }
.card__art { position: absolute; inset: 0; overflow: hidden; transform: translateZ(0); }
.card__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.75) brightness(.5); transition: transform 1s var(--ease), filter .8s var(--ease); }
.card:hover .card__art img { transform: scale(1.02); filter: saturate(1.05) brightness(.75); }
.card__art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255,216,74,.18), transparent 60%), linear-gradient(180deg, transparent 30%, rgba(7,8,10,.92)); }
.card__icon {
  position: absolute; left: 26px; bottom: 112px; width: 92px; height: 92px; border-radius: 22px;
  box-shadow: 0 24px 40px -14px rgba(0,0,0,.85); transform: translateZ(30px); transition: transform .7s var(--ease);
}
.card:hover .card__icon { transform: translateZ(90px) translateY(-10px) rotate(-6deg); }
.card__body { position: absolute; left: 26px; right: 26px; bottom: 24px; transform: translateZ(20px); transition: transform .7s var(--ease); }
.card:hover .card__body { transform: translateZ(55px); }
.card__title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
.card__title small { display: block; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--dim); margin-top: 8px; }
.card__meta { position: absolute; top: 20px; left: 26px; right: 26px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transform: translateZ(40px); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 9px; border: 1px solid var(--line-2); background: rgba(7,8,10,.6); }
.tag--live { color: var(--green); border-color: rgba(125,255,138,.4); }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s steps(1) infinite; }
.card__open {
  position: absolute; right: 26px; bottom: 26px; transform: translateZ(70px) translateX(10px); opacity: 0;
  font-size: 12px; font-weight: 700; color: #120d00; background: var(--yellow); padding: 8px 11px; transition: opacity .4s, transform .6s var(--ease);
}
.card:hover .card__open { opacity: 1; transform: translateZ(70px); }
.card__corner { position: absolute; font-size: 14px; color: var(--yellow); opacity: 0; transition: opacity .4s, transform .5s var(--ease); transform: translateZ(10px); }
.card__corner--tl { top: -10px; left: -6px; } .card__corner--tr { top: -10px; right: -6px; }
.card__corner--bl { bottom: -10px; left: -6px; } .card__corner--br { bottom: -10px; right: -6px; }
.card:hover .card__corner { opacity: 1; }
.card--soon .card__inner { border-style: dashed; background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, var(--bg) 14px 15px); }
.card--soon .card__art { display: grid; place-items: center; }
.soon__ascii { font-size: 13px; line-height: 1.45; color: var(--dim); text-align: center; white-space: pre; transform: translateZ(40px); }
.soon__bar { color: var(--orange); }

/* ───────── mask reveal ───────── */
.reveal { position: relative; height: 260vh; }
.reveal__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.reveal__frame {
  --r: 12%; position: absolute; inset: 0; clip-path: circle(var(--r) at 50% 52%);
  will-change: clip-path;
}
.reveal__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1.25)); }
.reveal__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reveal__text { position: relative; z-index: 2; text-align: center; pointer-events: none; text-shadow: 0 0 40px rgba(7,8,10,.9), 0 0 12px rgba(7,8,10,.8); }
.reveal__title { font-size: clamp(64px, 15vw, 240px); letter-spacing: -.07em; line-height: .82; color: #fff; }
.reveal__title span { color: var(--yellow); }
.reveal__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); z-index: 2;
}
@media (max-width: 640px) { .reveal__meta { flex-direction: column; gap: 6px; } }

/* ───────── story ───────── */
.story {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 6vw;
  padding: 0 var(--gutter);
}
.story__device-wrap { order: 2; position: sticky; top: calc(var(--bar-h) + 6vh); height: calc(100svh - var(--bar-h) - 12vh); display: grid; align-content: center; gap: 18px; }
.story__device {
  position: relative; border-radius: 34px; padding: 12px; background: linear-gradient(145deg, #2a2d35, #0f1115);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 120px -30px rgba(0,0,0,.9), 0 0 120px -40px rgba(10,140,255,.5);
}
.story__device.is-shake { animation: shake .6s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px) rotate(-.3deg); } 20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-7px, 3px) rotate(.4deg); } 40%, 60% { transform: translate(7px, -3px); }
}
.device__screen { position: relative; aspect-ratio: 2622 / 1206; border-radius: 24px; overflow: hidden; background: #000; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 100%); transition: clip-path 1s var(--ease-io); }
.shot.is-on { clip-path: inset(0 0 0 0); z-index: 1; }
.shot.was-on { clip-path: inset(0 0 0 0); z-index: 0; }
.device__boom {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none;
  font-weight: 800; font-size: clamp(48px, 9vw, 130px); letter-spacing: -.06em; color: var(--yellow);
  text-shadow: 0 0 30px rgba(255,122,26,.9), 0 0 80px rgba(255,59,31,.7); opacity: 0; transform: scale(.4);
}
.device__boom.is-go { animation: boom 1.3s var(--ease) forwards; }
@keyframes boom { 0% { opacity: 0; transform: scale(.3) rotate(-8deg); } 18% { opacity: 1; transform: scale(1.12) rotate(3deg); } 60% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(1.5); filter: blur(10px); } }
.burst { position: absolute; z-index: 4; font-weight: 800; pointer-events: none; color: var(--yellow); animation: burst 1.1s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--tx), var(--ty)) rotate(var(--tr)); opacity: 0; } }
.story__readout { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); padding: 0 8px; letter-spacing: .06em; }
.story__readout #storyBar { color: var(--yellow); letter-spacing: -.05em; }
.story__steps { order: 1; list-style: none; margin: 0; padding: 30vh 0 30vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; opacity: .18; transition: opacity .7s var(--ease); }
.step.is-on { opacity: 1; }
.step__k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.step h3 { font-size: clamp(38px, 5vw, 76px); letter-spacing: -.055em; }
.step p:last-child { max-width: 420px; color: #c9c5ba; }
.step b { color: var(--orange); }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story__device-wrap { order: 0; top: calc(var(--bar-h) + 10px); height: auto; z-index: 3; padding: 14px 0; background: linear-gradient(var(--bg) 80%, transparent); }
  .story__device { border-radius: 22px; padding: 7px; width: 100%; max-width: calc(40svh * 2.174 + 14px); margin: 0 auto; }
  .story__readout { width: 100%; max-width: calc(40svh * 2.174 + 14px); margin: 0 auto; }
  .device__screen { border-radius: 16px; }
  .story__steps { padding: 10vh 0 30vh; }
  .step { min-height: 62vh; justify-content: flex-start; padding-top: 6vh; }
}

/* ───────── balls marquee ───────── */
.balls { padding: 70px 0 60px; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.balls__cmd { padding: 0 var(--gutter); margin-bottom: 30px; }
.balls__track { font-size: 14px; font-weight: 600; letter-spacing: .02em; gap: 46px; padding-right: 46px; }
.ball { display: flex; align-items: center; gap: 14px; }
.ball img { width: 54px; height: 54px; image-rendering: pixelated; transition: transform .6s var(--ease); }
.ball:hover img { transform: translateY(-10px) rotate(200deg) scale(1.15); }
.ball span { color: var(--fg); }
.ball em { font-style: normal; color: var(--dim); font-size: 11px; display: block; }

/* ───────── horizontal planets ───────── */
.hscroll { position: relative; height: 420vh; }
.hscroll__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--bar-h) + 30px) 0 30px; }
.hscroll__head { padding: 0 var(--gutter); }
.hscroll__track { display: flex; gap: 22px; padding: 4vh var(--gutter) 0; width: max-content; will-change: transform; align-items: stretch; }
.planet {
  position: relative; width: clamp(280px, 30vw, 420px); display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  border: 1px solid var(--line-2); background: var(--bg-2); padding: 18px; transition: border-color .4s, transform .6s var(--ease);
}
.planet:hover { border-color: var(--pc, var(--yellow)); transform: translateY(-8px); }
.planet__top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.planet__top b { color: var(--pc, var(--fg)); font-weight: 600; }
.planet canvas { width: 100%; aspect-ratio: 1.45; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.03), transparent 70%); }
.planet h3 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.05em; color: var(--fg); }
.planet p { font-size: 13px; color: var(--dim); margin-top: 8px; min-height: 3.2em; }
.hscroll__bar { margin: 0 var(--gutter); height: 1px; background: var(--line); position: relative; }
.hscroll__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .hscroll { height: auto; }
  .hscroll__sticky { position: relative; height: auto; padding: 90px 0 50px; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; transform: none !important; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .planet { width: 78vw; flex: none; scroll-snap-align: center; }
  .hscroll__bar { display: none; }
}

/* ───────── stats + cta ───────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 60px; }
.stat { padding: 30px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(40px, 6vw, 84px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--yellow); }
.stat span { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.cta__box {
  display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; padding: 36px;
  border: 1px solid var(--line-2); background:
    radial-gradient(600px circle at 0% 0%, rgba(255,216,74,.10), transparent 60%),
    radial-gradient(600px circle at 100% 100%, rgba(10,140,255,.12), transparent 60%), var(--bg-2);
}
.cta__icon { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.cta__txt h2 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.05em; margin-bottom: 14px; }
.cta__txt p.dim { font-size: 12px; }
@media (max-width: 980px) { .cta__box { grid-template-columns: 1fr; padding: 26px; gap: 24px; } .cta__icon { width: 96px; height: 96px; border-radius: 22px; } }

/* ───────── studio ───────── */
.studio__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
.studio__term { border: 1px solid var(--line-2); background: #0a0b0e; }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2f36; }
.term__bar i:nth-child(1) { background: var(--red); } .term__bar i:nth-child(2) { background: var(--yellow); } .term__bar i:nth-child(3) { background: var(--green); }
.term__bar span { margin-left: 10px; }
.term__body { padding: 24px; font-size: clamp(13px, 1.3vw, 15px); line-height: 1.75; white-space: pre-wrap; color: #d7d3c8; min-height: 23em; }
.studio__logo { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.studio__tile { position: relative; overflow: hidden; background: var(--blue-2); display: grid; place-items: center; border: 1px solid var(--line-2); }
.studio__tile img { width: 78%; height: auto; transition: transform 1.2s var(--ease); }
.studio__tile:hover img { transform: scale(1.06) rotate(-3deg); }
.studio__logo figcaption { font-size: 12px; color: var(--fg); }
@media (max-width: 900px) { .studio__grid { grid-template-columns: 1fr; } .term__body { min-height: 0; } }

/* ───────── footer ───────── */
.foot { position: relative; padding: clamp(80px, 12vh, 140px) var(--gutter) 30px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__links { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 70px; }
.foot__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot__links ul a { font-size: clamp(18px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.03em; display: inline-flex; gap: .4em; transition: color .3s, transform .5s var(--ease); }
.foot__links ul a span { color: var(--dim); transition: transform .5s var(--ease), color .3s; }
.foot__links ul a:hover { color: var(--yellow); transform: translateX(10px); }
.foot__links ul a:hover span { color: var(--yellow); transform: translate(4px, -4px); }
.foot__status { font-size: 13px; text-align: right; display: grid; gap: 6px; align-content: start; }
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); margin-right: 6px; animation: blink 1.6s steps(1) infinite; }
.foot__ascii { display: block; width: 100%; height: auto; cursor: crosshair; }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.foot__base a:hover { color: var(--yellow); }

/* ───────── reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js:not(.force-motion) [data-reveal] { opacity: 1; transform: none; filter: none; }
  html:not(.force-motion) .reveal { height: auto; }
  html:not(.force-motion) .reveal__sticky { position: relative; height: 80vh; }
  html:not(.force-motion) .reveal__frame { clip-path: none; }
  html:not(.force-motion) .reveal__frame canvas { display: none; }
  html:not(.force-motion) .hscroll { height: auto; }
  html:not(.force-motion) .hscroll__sticky { position: relative; height: auto; }
  html:not(.force-motion) .hscroll__track { width: auto; overflow-x: auto; transform: none !important; }
  html:not(.force-motion) .planet { flex: none; }
  html:not(.force-motion) .fx::after { animation: none; }
}
