:root {
  color-scheme: dark;
  --bg: #070708;
  --bg-2: rgba(18, 18, 20, 0.92);
  --ink: #f2f3f5;
  --muted: #9a9ba1;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #e8e8ea;
  --accent-2: #3a3a3e;
  --accent-ink: #111214;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --vinyl-label: #d0d0d4;
  --vinyl-a: #2a2a2e;
  --vinyl-b: #070708;
  --glass: rgba(255, 236, 230, 0.05);
  --sans: "Manrope", "Segoe UI", sans-serif;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f8;
  --bg-2: rgba(255, 255, 255, 0.86);
  --ink: #1e2832;
  --muted: #5e6c7b;
  --line: rgba(70, 110, 140, 0.16);
  --accent: #5d8aa8;
  --accent-2: #d5e4ee;
  --accent-ink: #f7fafc;
  --shadow: 0 18px 40px rgba(40, 70, 100, 0.08);
  --vinyl-label: #d5e4ee;
  --vinyl-a: #e4ebf1;
  --vinyl-b: #f7f9fb;
  --glass: rgba(255, 255, 255, 0.7);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.nav, main, footer { position: relative; z-index: 1; }
.wrap { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; }
.logo { height: 42px; width: auto; display: block; }
html[data-theme="light"] .logo { filter: invert(1); }
.intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity .45s ease;
}
.intro video { height: min(72vh, 760px); width: auto; max-width: 92vw; }
.intro.is-done { opacity: 0; pointer-events: none; }
.nav-links { display: flex; gap: 18px; margin-left: auto; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.theme-btn, .btn {
  border: 1px solid var(--line);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform .35s ease, box-shadow .35s ease;
}
.btn:hover { transform: translateY(-2px); }
.theme-btn, .btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.theme-btn { margin-left: auto; }
.btn[hidden] { display: none; }
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 0 28px;
  animation: rise .8s ease both;
}
.hero-top {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .9fr);
  gap: 36px;
  align-items: center;
}
.eyebrow, .index {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 560; letter-spacing: -0.04em; }
h1 { margin: 0; font-size: clamp(42px, 5.4vw, 72px); line-height: 0.96; }
h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; }
h3 { margin: 0 0 8px; font-size: 18px; }
.lead, .muted, .release { color: var(--muted); }
.lead { max-width: 36rem; font-size: 17px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.release { font-size: 14px; align-self: center; }
.stage {
  position: relative;
  height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 900px;
}
.orbits, .deck, .float-card { transform-style: preserve-3d; }
.orbits {
  position: absolute;
  inset: 12%;
  animation: tilt 16s ease-in-out infinite;
}
.ring {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: rotateX(68deg);
}
.r2 { inset: 18%; border-color: var(--accent); animation: ring 22s linear infinite; }
.deck {
  position: relative;
  width: min(380px, 86%);
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -8deg));
  animation: floaty 7s ease-in-out infinite;
}
.vinyl {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--bg) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 50%, var(--vinyl-label) 0 22%, transparent 23%),
    repeating-radial-gradient(circle at 50% 50%, var(--vinyl-a) 0 2px, var(--vinyl-b) 3px 5px);
  animation: vinylspin 9s linear infinite;
}
.deck-meta { display: flex; flex-direction: column; }
.deck-meta span, .deck-meta em { color: var(--muted); font-style: normal; font-size: 13px; }
.deck-meta strong { font-size: 22px; letter-spacing: -0.04em; }
.wave {
  grid-column: 1 / -1;
  width: 100%;
  height: 42px;
  display: block;
  overflow: visible;
}
.wave path { fill: #f4f4f5; }
html[data-theme="light"] .wave path { fill: #7eb6e8; }
.block { position: relative; padding: 28px 0 20px; }
.block-head { max-width: 28rem; }
.funcs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  margin-top: 28px;
}
.funcs article {
  border-top: 1px solid var(--line);
  padding: 18px 0 8px;
  animation: rise .7s ease both;
}
.funcs article:nth-child(2) { animation-delay: .08s; }
.funcs article:nth-child(3) { animation-delay: .16s; }
.funcs article:nth-child(4) { animation-delay: .24s; }
.funcs p, .split p { margin: 0; color: var(--muted); }
#solid {
  position: absolute;
  right: 0;
  top: 8px;
  width: 180px;
  height: 180px;
  pointer-events: none;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .7fr);
  gap: 32px;
  align-items: center;
  padding: 64px 0;
}
.float-card {
  justify-self: center;
  width: min(260px, 100%);
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--accent);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite reverse;
}
.float-card b { display: block; font-size: 20px; letter-spacing: -0.04em; }
.float-card span { color: var(--muted); font-size: 13px; }
.float-card i {
  display: block;
  height: 3px;
  margin-top: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.download { padding: 20px 0 80px; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.authors { padding: 0; }
.shop { padding: 36px 0 80px; }
.sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.set {
  min-height: 140px;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.set i { width: 28px; height: 8px; border-radius: 99px; display: block; }
.set span { color: #b5bac1; font-size: 13px; }
.profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.profile {
  position: relative;
  background: #111214;
  border-radius: 8px;
  overflow: hidden;
  padding: 58px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.banner { height: 60px; position: absolute; inset: 0 0 auto; }
.b1 { background: #1a1b1e; }
.b2 { background: #15161a; }
.b3 { background: #121316; }
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid #111214;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 22px;
  position: relative;
  margin-top: -8px;
  color: #fff;
}
.avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #23a559;
  border: 3px solid #111214;
}
.a1 { background: #3c3f45; }
.a2 { background: #2f3136; }
.a3 { background: #3a3d44; }
.profile b { display: block; margin-top: 8px; font-size: 16px; color: #f2f3f5; letter-spacing: 0; }
.profile span { color: #b5bac1; font-size: 13px; }
.admin {
  width: min(520px, calc(100% - 40px));
  margin: 12vh auto 40px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.admin h1 { font-size: 32px; margin: 0 0 8px; }
.admin label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
.admin input, .admin textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
}
.admin textarea { min-height: 88px; resize: vertical; }
.admin .btn { margin-top: 16px; }
.admin .err { color: #c45656; min-height: 1.2em; }
@keyframes vinylspin { to { transform: rotate(360deg); } }
@keyframes ring { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes tilt {
  50% { transform: rotateY(12deg) rotateX(4deg); }
}
@keyframes floaty {
  50% { transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -8deg)) translateY(-8px); }
}
@keyframes bar {
  50% { height: 34px; }
}
@keyframes pulse {
  50% { box-shadow: 0 0 22px var(--accent); transform: scale(1.15); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 800px) {
  .nav-links { display: none; }
  .hero-top, .split, .funcs, .profiles { grid-template-columns: 1fr; }
  #solid { position: static; display: block; margin-left: auto; }
  .stage { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
