:root {
  --ink: #06070d;
  --ink-2: #0d0f1a;
  --ink-3: #151826;
  --line: rgba(255, 255, 255, .1);
  --tx: #f2f3f9;
  --mut: #a2a8bd;
  --c1: #19c8ff;
  --c2: #3a6bff;
  --c3: #9a3dff;
  --c4: #ff2fc8;
  --c5: #ff9a1f;
  --grad: linear-gradient(95deg, var(--c1), var(--c2) 28%, var(--c3) 52%, var(--c4) 76%, var(--c5));
  --sans: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(60vw 50vh at 20% 10%, rgba(58, 107, 255, .16), transparent 70%),
    radial-gradient(50vw 50vh at 85% 70%, rgba(255, 47, 200, .09), transparent 70%);
  background-attachment: fixed;
  color: var(--tx);
  font: 400 1.0625rem/1.55 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c3); color: #fff; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
main { display: block; }
.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: fixed; top: -60px; left: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Type */
.display {
  font-size: clamp(3rem, 9.2vw, 8.6rem);
  line-height: .94;
  font-weight: 700;
  letter-spacing: -.045em;
  font-stretch: 88%;
}
h2 {
  font-size: clamp(2.3rem, 5.4vw, 4.8rem);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.04em;
  font-stretch: 90%;
  text-wrap: balance;
}
h3 { font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 650; font-stretch: 92%; }
.g, .g > .w > span {
  background: var(--grad);
  background-size: 100vw 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.g > .w:nth-child(2) > span { background-position: -40vw 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.45; color: #c8ccdc; max-width: 40em; }
.body { color: #c0c5d6; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.5; max-width: 34em; }
.eyebrow, .chart, .fine {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--mut);
}
.chart { color: var(--c1); margin-bottom: 1.1em; }
.chart::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
.small { color: var(--mut); font-size: 1rem; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .55em 1.05em;
  border-radius: 999px;
  background: #fff; color: #07080f;
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 44px -6px rgba(154, 61, 255, .9), 0 4px 22px -4px rgba(25, 200, 255, .7); }
.btn:active { transform: none; }
.btn-lg { min-height: 54px; padding: .7em 1.5em; font-size: 1.06rem; }
.btn-sm { min-height: 36px; padding: .3em .95em; font-size: .86rem; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.count { font-family: var(--mono); font-size: .8em; opacity: .75; }
.count:empty { display: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Nav */
.nav {
  position: fixed; z-index: 50; top: 10px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 20px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 8px 7px 14px;
  border-radius: 16px;
  background: rgba(13, 15, 26, .62);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px -20px #000;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; color: var(--mut); font-size: .92rem; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-end { display: flex; align-items: center; gap: 6px; }
.lang { font-family: var(--mono); font-size: .76rem; min-width: 36px; height: 36px; border-radius: 10px; color: var(--mut); }
.lang:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.star { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 9px; border-radius: 10px; color: #d7daea; font-family: var(--mono); font-size: .78rem; }
.star:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Window frame */
.win {
  position: relative;
  border-radius: clamp(8px, 1.1vw, 16px);
  overflow: hidden;
  background: #14161c;
  aspect-ratio: 1920 / 1000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .16),
    0 30px 90px -20px rgba(40, 60, 255, .5),
    0 10px 140px -30px rgba(255, 47, 200, .4);
}
.win img { width: 100%; height: 100%; object-fit: cover; }

/* Reveal */
.motion .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; padding-right: .04em; margin-right: -.04em; }
.w > span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); will-change: transform; }
.split.in .w > span { transform: none; }

/* ------------ HERO ------------ */
.hero .stage { position: relative; padding: 110px var(--gut) 60px; text-align: center; overflow: hidden; }
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.2vh, 24px); }
.hero-win { margin: 56px auto 0; max-width: 1200px; }
.hero-cap { margin: 18px auto 0; color: var(--mut); font-family: var(--mono); font-size: .78rem; max-width: 110ch; }
.hero-cap b { color: var(--tx); font-weight: 500; }
.folders, .hint { display: none; }

.ring { position: absolute; left: 50%; top: 50%; width: max(1100px, 118vw); max-width: none; transform: translate(-50%, -50%); pointer-events: none; overflow: visible; }
.comet { stroke-dasharray: 7 93; animation: comet 11s linear infinite; }
@keyframes comet { to { stroke-dashoffset: -100; } }

.motion .scene { position: relative; }
.motion .scene > .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .hero { height: 340vh; }
.motion .hero .stage { display: flex; align-items: center; justify-content: center; padding: 70px var(--gut) 0; perspective: 1500px; }
.motion .folders { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.motion .hero-win {
  position: absolute; margin: 0; z-index: 2; max-width: none;
  width: min(calc(100% - 2 * var(--gut)), calc((100svh - 130px) * 1.92), 1400px);
  left: 0; right: 0; margin-inline: auto; top: 76px;
  opacity: 0; will-change: transform, opacity;
}
.motion #heroShot { opacity: 0; }
.motion .hero-cap { position: absolute; z-index: 5; left: var(--gut); right: var(--gut); bottom: 12px; margin: 0 auto; opacity: 0; }
.f { position: absolute; left: 0; top: 0; width: 120px; height: 96px; will-change: transform, opacity; }
.f svg { width: 100%; height: 100%; overflow: visible; }
.f b { position: absolute; left: 0; right: 0; top: 54%; text-align: center; color: #fff; font: 700 30px/1 var(--sans); letter-spacing: -.02em; }
.f i { position: absolute; left: 50%; top: 104%; transform: translateX(-50%); font: 400 15px/1 var(--mono); color: #c8ccdc; white-space: nowrap; }
.motion .hint { display: block; position: absolute; bottom: 22px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); z-index: 5; }
.hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: none; opacity: 1; } 70%, 100% { transform: translateY(12px); opacity: 0; } }

/* ------------ DISCOVERY ------------ */
.scan .stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: 110px var(--gut) 60px; max-width: 1320px; margin-inline: auto; }
.motion .scan { height: 280vh; }
.motion .scan .stage { padding-block: 84px 28px; }
.scan-meter { display: flex; gap: 40px; margin-top: 28px; }
.scan-meter dt { font-family: var(--mono); font-size: .76rem; color: var(--mut); }
.scan-meter dd { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.scan-panel { border-radius: 14px; background: rgba(13, 15, 26, .78); box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -40px rgba(58, 107, 255, .8); overflow: hidden; backdrop-filter: blur(14px); }
.panel-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b2f42; }
.panel-bar code { margin-left: 8px; font-size: .76rem; color: var(--mut); }
.motion .scan-view { height: min(56vh, 460px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.scan-list { padding: 6px 0; font-family: var(--mono); font-size: clamp(.8rem, 1.05vw, .94rem); will-change: transform; }
.scan-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 42px; padding: 0 16px; transition: opacity .35s, background .35s; }
.motion .scan-list li { opacity: .22; }
.motion .scan-list li.on { opacity: 1; }
.motion .scan-list li.now { background: linear-gradient(90deg, rgba(25, 200, 255, .17), transparent 75%); box-shadow: inset 2px 0 0 var(--c1); }
.scan-list .type { font-size: .9em; padding: 2px 9px; border-radius: 6px; color: #fff; background: color-mix(in srgb, var(--k) 42%, transparent); white-space: nowrap; }
.scan-list li.skip-row code { color: var(--mut); text-decoration: line-through; }
.scan-list li.skip-row .type { background: none; color: var(--mut); padding-right: 0; }

/* ------------ VIEWS ------------ */
.views .stage { padding: 96px var(--gut) 40px; max-width: 1320px; margin-inline: auto; display: flex; flex-direction: column; gap: clamp(20px, 3vh, 34px); }
.motion .views { height: 330vh; }
.motion .views .stage { padding-top: 84px; padding-bottom: 0; }
.views-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.views h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); }
.views-ctl { width: min(100%, 390px); }
.seg { position: relative; display: none; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .07); margin-bottom: 12px; }
.motion .seg { display: grid; }
.seg button { position: relative; z-index: 1; min-height: 36px; font-size: .92rem; color: var(--mut); transition: color .3s; }
.seg button.on { color: #07080f; font-weight: 600; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 9px; background: #fff; transition: transform .5s var(--ease); }
.seg-notes { position: relative; color: var(--mut); font-size: .98rem; line-height: 1.4; }
.motion .seg-notes { min-height: 2.8em; }
.motion .seg-notes p { position: absolute; inset: 0 0 auto; opacity: 0; transition: opacity .4s; }
.motion .seg-notes p.on { opacity: 1; }
.seg-notes p + p { margin-top: .5em; }
.motion .seg-notes p + p { margin-top: 0; }
.views-win { width: 100%; }
.motion .views-win { width: min(100%, calc((100svh - 300px) * 1.92)); margin-inline: auto; will-change: transform; }
.views-win img + img { margin-top: 12px; }
.motion .views-win img { position: absolute; inset: 0; margin: 0; }
.motion .wipe { clip-path: inset(0 0 0 100%); }
.wipe-edge { display: none; }
.motion .wipe-edge { display: block; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: linear-gradient(var(--c1), var(--c3), var(--c4)); box-shadow: 0 0 22px 3px rgba(154, 61, 255, .9); opacity: 0; }
html:not(.motion) .views-win { aspect-ratio: auto; background: none; overflow: visible; box-shadow: none; }

/* ------------ TOUR ------------ */
.tour .stage { padding: 90px var(--gut) 40px; max-width: 1320px; margin-inline: auto; }
.motion .tour { height: 620vh; }
.motion .tour .stage { max-width: none; padding: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.tour-chart { margin-bottom: 1em; }
.motion .tour-chart { position: absolute; top: 76px; left: var(--gut); margin: 0; z-index: 4; }
.motion .tour-frame {
  width: min(calc(100% - 2 * var(--gut)), calc((100svh - 190px) * 1.92));
  margin-top: 46px;
  will-change: transform;
}
.motion .tour-frame img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform-origin: 0 0; will-change: transform; }
.tour-caps { margin-top: 24px; display: grid; gap: 20px; }
.tour-caps p { color: #c0c5d6; margin-top: .35em; font-size: 1rem; }
.mono-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px !important; }
.mono-row code { font-size: .72rem; padding: 2px 7px; border-radius: 5px; background: rgba(255, 255, 255, .09); color: #e0e3f0; }
.motion .tour-caps { position: absolute; z-index: 5; margin: 0; left: max(var(--gut), calc(50% - 620px)); bottom: clamp(20px, 5vh, 50px); width: min(calc(100% - 2 * var(--gut)), 470px); display: block; }
.motion .tour-caps article {
  position: absolute; left: 0; bottom: 0; width: 100%;
  padding: 18px 20px; border-radius: 14px;
  background: rgba(10, 12, 22, .84);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -14px #000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none;
}
.motion .tour-caps article.on { opacity: 1; transform: none; }
.tour-dots { display: none; }
.motion .tour-dots { display: flex; flex-direction: column; gap: 7px; position: absolute; z-index: 5; right: 16px; top: 50%; transform: translateY(-50%); }
.tour-dots li { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: background .3s, transform .3s; }
.tour-dots li.on { background: #fff; transform: scale(1.6); }

/* ------------ HORIZONTAL ------------ */
.track { display: grid; gap: 56px; padding: 90px var(--gut) 40px; max-width: 1320px; margin-inline: auto; }
.motion .hs { height: 520vh; }
.motion .track { display: flex; gap: clamp(24px, 4vw, 70px); padding: 0 var(--gut); max-width: none; margin: 0; height: 100%; align-items: center; width: max-content; will-change: transform; }
.motion .panel { flex: 0 0 auto; width: min(84vw, calc((100svh - 270px) * 1.92)); min-width: min(84vw, 560px); }
.motion .panel-intro { width: min(84vw, 680px); min-width: 0; }
.panel-intro .body { margin-top: 18px; }
.arrow { margin-top: 26px; color: var(--c1); }
.p-inner { will-change: transform, opacity; }
.p-inner header { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 8px 28px; align-items: end; margin-bottom: 18px; }
.p-inner header p { color: var(--mut); font-size: 1.02rem; line-height: 1.4; }
.rail { display: none; }
.motion .rail { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: 22px; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; }
.rail span { display: block; height: 100%; background: var(--grad); background-size: 100vw 100%; transform-origin: 0 50%; transform: scaleX(0); }

.code-card { border-radius: clamp(8px, 1.1vw, 16px); background: #0b0d17; box-shadow: 0 0 0 1px rgba(255, 255, 255, .13), 0 30px 90px -20px rgba(255, 47, 200, .45); overflow: hidden; aspect-ratio: 1920 / 1000; display: flex; flex-direction: column; }
.code-card pre { flex: 1; padding: clamp(10px, 2vw, 26px) clamp(14px, 2.4vw, 30px); font-size: clamp(.66rem, 1.3vw, 1.12rem); line-height: 1.4; overflow: hidden; display: flex; flex-direction: column; justify-content: space-evenly; white-space: normal; }
.code-card b { color: #c78bff; font-weight: 500; }
.ln { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ln > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln > .used, .ln > .un { flex: none; font-size: .78em; padding: 0 .55em; border-radius: 5px; }
.used { color: #7fe3b5; background: rgba(40, 200, 140, .13); }
.un { color: #ff9db5; background: rgba(255, 60, 110, .15); }
.ln.dead > span:first-child { color: #ff9db5; text-decoration: line-through; text-decoration-color: rgba(255, 90, 130, .85); }
.motion .ln.dead > span:first-child { color: inherit; text-decoration-color: transparent; transition: text-decoration-color .5s, color .5s; }
.motion .ln.dead > .un { opacity: 0; transition: opacity .4s; }
.motion .code-card.hit .ln.dead > span:first-child { color: #ff9db5; text-decoration-color: rgba(255, 90, 130, .85); }
.motion .code-card.hit .ln.dead > .un { opacity: 1; }
.code-card figcaption { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .76rem; color: #cfd3e4; }
.code-card figcaption span { padding: 2px 8px; border-radius: 5px; background: rgba(255, 255, 255, .08); }

/* ------------ PROMPTS ------------ */
.prompts { padding-block: clamp(80px, 14vh, 160px) clamp(70px, 12vh, 140px); overflow: clip; }
.prompts-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px clamp(30px, 6vw, 90px); align-items: end; }
.prompts-head .chart { grid-column: 1 / -1; margin: 0; }
.prompt-stats { display: flex; gap: clamp(26px, 4vw, 54px); }
.prompt-stats div { display: flex; flex-direction: column; }
.prompt-stats b { font-size: clamp(3.4rem, 8vw, 6.8rem); line-height: .95; letter-spacing: -.05em; font-weight: 700; font-variant-numeric: tabular-nums; }
.prompt-stats span { font-family: var(--mono); font-size: .78rem; color: var(--mut); margin-top: 4px; }
.prompts-head .body { grid-column: 2; }
.marquee { margin-block: clamp(40px, 8vh, 90px); display: grid; gap: .1em; font-size: clamp(2.1rem, 6.4vw, 5.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.12; font-stretch: 88%; }
.m-row { display: flex; gap: .7em; width: max-content; white-space: nowrap; will-change: transform; }
.m-row span::after { content: "✦"; margin-left: .7em; font-size: .4em; vertical-align: middle; color: var(--c3); }
.m-out { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55); }
.m-out span::after { -webkit-text-stroke: 0; }
.tilt { will-change: transform; transform-origin: 50% 0; }

/* ------------ ORBIT ------------ */
.orbit .stage { padding: 80px var(--gut); text-align: center; }
.motion .orbit { height: 300vh; }
.motion .orbit .stage { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 88px var(--gut) clamp(20px, 5vh, 50px); }
.orbit-sys { position: relative; width: 100%; flex: 1; min-height: 240px; }
html:not(.motion) .orbit-sys { min-height: 0; margin-block: 30px; }
.orbit-line { display: none; }
.motion .orbit-line { display: block; position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; overflow: visible; }
.orbit-logo { width: clamp(170px, 34vh, 340px); margin: 0 auto; filter: drop-shadow(0 20px 70px rgba(154, 61, 255, .6)); }
.motion .orbit-logo { position: absolute; inset: 0; margin: auto; z-index: 2; }
.orbit-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.motion .orbit-chips { position: absolute; inset: 0; margin: 0; display: block; }
.orbit-chips li { padding: .42em .95em; border-radius: 999px; background: rgba(21, 24, 38, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .17); font-weight: 600; font-size: clamp(.86rem, 1.6vw, 1.14rem); white-space: nowrap; }
.motion .orbit-chips li { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.keys li { display: flex; align-items: center; gap: 4px; color: var(--mut); font-size: .92rem; transition: color .3s; }
.keys span { margin-left: 6px; }
kbd { min-width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 7px; font-size: .84rem; background: linear-gradient(#1d2133, #131625); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 3px 0 #05060b; color: #e6e8f3; transition: transform .18s, box-shadow .18s, color .18s; }
.keys li.on { color: #fff; }
.keys li.on kbd { transform: translateY(2px); color: var(--c1); box-shadow: inset 0 0 0 1px var(--c1), 0 1px 0 #05060b, 0 0 18px rgba(25, 200, 255, .55); }

/* ------------ NATIVE ------------ */
.native { padding-block: clamp(80px, 14vh, 160px) clamp(50px, 8vh, 90px); }
.native-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.native-copy .body { margin-top: 18px; }
.tints { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; }
.tints button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.tints button::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--c); transition: box-shadow .25s; }
.tints button:hover::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.tints button.on::before { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #fff; }
.src-link { display: inline-flex; gap: .5em; margin-top: 18px; padding-block: 8px; font-size: .86rem; color: var(--c1); }
.src-link:hover code { text-decoration: underline; }
.shader-box { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin-inline: auto; cursor: crosshair; touch-action: pan-y; }
.shader-box canvas { width: 100%; height: 100%; }
.shader-glyph { position: absolute; left: 0; right: 0; top: 50%; margin-top: 0.1em; text-align: center; font: 700 clamp(3.6rem, 9vw, 7.2rem)/1 var(--sans); letter-spacing: -.03em; color: rgba(255, 255, 255, .95); pointer-events: none; text-shadow: 0 2px 14px rgba(0, 0, 0, .18); transition: transform .4s var(--ease); }
.native-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(50px, 10vh, 110px); }
.fact { padding: clamp(20px, 2.6vw, 34px); border-top: 1px solid var(--line); }
.fact h3 { margin-bottom: 14px; }
.fact .small { margin-top: 10px; }
.stack { display: flex; flex-wrap: wrap; gap: 5px; }
.stack span { font-family: var(--mono); font-size: .76rem; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.hello { font-size: clamp(2.2rem, 4.4vw, 3.6rem); height: 1.2em; overflow: hidden; }
#hello { display: inline-block; transition: transform .45s var(--ease), opacity .45s; }
#hello.out { transform: translateY(-70%); opacity: 0; }

/* ------------ FINALE ------------ */
.finale { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 100px var(--gut) 60px; text-align: center; overflow: clip; }
.finale-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.finale-logo { width: clamp(110px, 18vh, 170px); filter: drop-shadow(0 20px 60px rgba(154, 61, 255, .7)); }
.finale-ring { width: max(900px, 96vw); opacity: .7; }
.clone { margin-top: 8px; width: min(100%, 640px); color: var(--mut); font-size: .95rem; }
.clone-box { margin-top: 8px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 12px; background: rgba(13, 15, 26, .8); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.clone-box code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: .82rem; color: #dfe2f0; scrollbar-width: none; }
.clone-box code::-webkit-scrollbar { display: none; }
.clone-box button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 8px; font-size: .86rem; background: rgba(255, 255, 255, .09); }
.clone-box button:hover { background: rgba(255, 255, 255, .17); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 26px 34px; border-top: 1px solid var(--line); color: var(--mut); font-size: .92rem; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--tx); font-weight: 650; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { padding-block: 6px; }
.foot nav a:hover { color: #fff; }

/* ------------ RESPONSIVE ------------ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .scan .stage, .native-grid { grid-template-columns: minmax(0, 1fr); }
  .motion .scan .stage { align-content: center; gap: 18px; padding-block: 72px 16px; }
  .scan-copy .body { font-size: .98rem; }
  .scan-meter { margin-top: 12px; }
  .scan-meter dd { font-size: 1.9rem; }
  .motion .scan-view { height: min(34vh, 300px); }
  .scan-list li { height: 36px; }
  .prompts-head { grid-template-columns: minmax(0, 1fr); }
  .prompts-head .body { grid-column: 1; }
  .native-facts { grid-template-columns: minmax(0, 1fr); }
  .shader-box { width: min(100%, 420px); }
  .native-grid .shader-box { order: -1; }
  .motion .tour-frame { width: 100%; height: 56svh; aspect-ratio: auto; border-radius: 0; margin-top: -70px; }
  .motion .tour-caps { left: var(--gut); bottom: 18px; }
  .motion .tour-dots { display: none; }
  .p-inner header { grid-template-columns: minmax(0, 1fr); }
  .motion .panel { width: 86vw; min-width: 0; }
  .motion .views-win { width: 100%; }
  .motion .views .stage { justify-content: center; padding-top: 72px; }
  .motion .hero-win { top: max(76px, calc((100svh - (100vw - 2 * var(--gut)) / 1.92) / 2)); }
  .motion .hero-cap { bottom: auto; top: calc(50svh + (100vw - 2 * var(--gut)) / 3.84 + 16px); }
  .code-card { aspect-ratio: auto; }
  .code-card pre { gap: 10px; padding-block: 16px; font-size: .74rem; }
}
@media (max-width: 520px) {
  .star-n { display: none; }
  .hero-cap { font-size: .7rem; }
  .fine { font-size: .72rem; }
  .btn-lg { min-height: 50px; font-size: 1rem; padding: .6em 1.2em; }
  .keys { gap: 8px 14px; }
  .keys li { font-size: .8rem; }
  kbd { min-width: 26px; height: 26px; font-size: .78rem; }
  .motion .tour-caps article { padding: 14px 16px; }
  .views h2 { font-size: 2.1rem; }
  .orbit-logo { width: 36vw; }
}
@media (max-height: 640px) and (min-width: 961px) {
  .display { font-size: clamp(3rem, 13vh, 6rem); }
  .motion .scan-view { height: 48vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .comet, .hint span { animation: none; }
  .comet { stroke-dasharray: 3 97; }
}
