/* VoxDeck website
   Theme: dark only (the brand and all product media are dark).
   Radius rule: cards 18px, panels 14px, buttons 12px, pills and dots fully round.
   Accent: VoxDeck blue; the blue-to-violet gradient only for headline highlights. */

:root {
  --bg: #07080c;
  --bg-alt: #0c0e13;
  --surface: #111318;
  --surface-2: #171a20;
  --border: #22262e;
  --border-2: #30353e;
  --text: #f1f3f6;
  --muted: #9aa1ad;
  --faint: #6b727e;
  --accent: #5b82f5;
  --accent-hi: #86a2ff;
  --accent-hover: #7194f7;
  --accent-soft: rgba(91, 130, 245, .14);
  --violet: #8b5cf6;
  --grad: linear-gradient(100deg, #86a2ff 0%, #8b5cf6 80%);
  --max: 1180px;
  --nav-h: 90px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.container { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; color: var(--muted); background: var(--surface-2); transition: transform .1s, border-color .2s, color .2s; }

/* Grain, fixed and inert */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Header: floating glass capsule ---------- */
.header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-shell { pointer-events: auto; position: relative; width: min(var(--max), 100% - 32px); margin: 0 auto; height: 62px; padding: 0 10px 0 20px; display: flex; align-items: center; gap: 28px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .08); background: color-mix(in srgb, var(--surface) 62%, transparent);
  backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -24px rgba(0, 0, 0, .8);
  transition: width .6s var(--ease-out), height .5s var(--ease-out), background-color .4s, border-color .4s, box-shadow .4s; }
.header.scrolled .nav-shell { width: min(1020px, 100% - 32px); height: 56px; background: color-mix(in srgb, var(--surface) 82%, transparent); border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(91, 130, 245, .08); }
.nav-shell::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6; background: radial-gradient(500px 80px at 15% 0%, rgba(91, 130, 245, .14), transparent 70%); }
@supports not (backdrop-filter: blur(1px)) { .nav-shell { background: var(--surface); } }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; flex: none; }
.logo-mark { display: flex; align-items: flex-start; gap: 2.5px; height: 20px; }
.logo-mark i { display: block; width: 3.5px; border-radius: 2px; background: var(--grad); transform-origin: top; animation: logoBar 1.6s var(--ease) infinite; }
.logo-mark i:nth-child(1) { height: 9px; } .logo-mark i:nth-child(2) { height: 13px; animation-delay: .12s; } .logo-mark i:nth-child(3) { height: 19px; animation-delay: .24s; }
.logo-mark i:nth-child(4) { height: 13px; animation-delay: .36s; } .logo-mark i:nth-child(5) { height: 9px; animation-delay: .48s; }
.logo-mark.sm { height: 14px; gap: 2px; } .logo-mark.sm i { width: 2.5px; }
.logo-mark.sm i:nth-child(1), .logo-mark.sm i:nth-child(5) { height: 6px; } .logo-mark.sm i:nth-child(2), .logo-mark.sm i:nth-child(4) { height: 9px; } .logo-mark.sm i:nth-child(3) { height: 13px; }
.logo:hover .logo-mark i { animation-duration: .55s; }
@keyframes logoBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.5); } }

.nav-links { position: relative; display: flex; align-items: center; gap: 2px; margin: 0 auto; font-size: 14px; font-weight: 550; color: var(--muted); }
.nav-links a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 10px; transition: color .25s; }
.nav-links a:hover, .nav-links a.current { color: var(--text); }
.nav-pill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s; pointer-events: none; }
.nav-pill::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); opacity: var(--cur, 0); transition: opacity .3s; }

.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }
.np-chip { display: flex; align-items: center; gap: 8px; height: 34px; border-radius: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden;
  background: var(--accent-soft); border: 0 solid rgba(91, 130, 245, .35); max-width: 0; opacity: 0; padding: 0;
  transition: max-width .5s var(--ease-out), opacity .3s, padding .5s var(--ease-out); }
.np-chip.on { max-width: 260px; opacity: 1; padding: 0 12px; border-width: 1px; }
.np-chip b { color: var(--text); font-weight: 650; }
.np-chip .eq i { background: var(--accent); animation: eq .5s ease-in-out infinite alternate; }
.np-chip .eq i:nth-child(2) { animation-delay: .15s; animation-duration: .4s; } .np-chip .eq i:nth-child(3) { animation-delay: .3s; animation-duration: .55s; }
.nav-cta { position: relative; overflow: hidden; height: 40px; }
.nav-cta .ic { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .35s var(--ease-out); }
.nav-cta:hover .ic { transform: translateY(2px); }
.nav-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
.nav-cta:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }

/* Scroll progress along the capsule's bottom edge (CSS scroll timeline) */
#progress { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform-origin: left; transform: scaleX(0); opacity: .9; }
@supports (animation-timeline: scroll()) {
  #progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

.menu-btn { display: none; position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); cursor: pointer; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.8px; border-radius: 2px; background: var(--text); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 24px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }
.mobile-menu { pointer-events: auto; width: min(var(--max), 100% - 32px); margin: 8px auto 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.mobile-menu > div { overflow: hidden; }
.mobile-menu.open { grid-template-rows: 1fr; }
.mm-inner { border-radius: 18px; }
.mobile-menu.open .mm-inner { padding: 10px; border: 1px solid rgba(255, 255, 255, .08); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.mobile-menu a { display: block; padding: 13px 14px; border-radius: 10px; font-size: 17px; font-weight: 600; color: var(--text); opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .45s var(--ease-out), background-color .2s; transition-delay: calc(var(--i) * 40ms); }
.mobile-menu a:hover { background: rgba(255, 255, 255, .05); }
.mobile-menu a.btn { margin-top: 6px; justify-content: center; display: flex; color: #fff; }
.mobile-menu.open a { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-size: 15px; font-weight: 650; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .35s var(--ease-out), box-shadow .3s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(91, 130, 245, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 14px 40px -10px rgba(91, 130, 245, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-secondary { color: var(--text); border-color: var(--border-2); background: rgba(255, 255, 255, .02); }
.btn-secondary:hover { border-color: var(--faint); }
.btn-small { padding: 8px 15px; font-size: 14px; border-radius: 10px; }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Type + sections ---------- */
.sec { padding: 120px 0; position: relative; }
.sec.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
h1 { font-size: clamp(36px, 3.7vw, 56px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.eyebrow { font-size: 13px; font-weight: 650; color: var(--accent-hi); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.lead { font-size: 18px; color: var(--muted); margin-top: 20px; max-width: 520px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* Split-word headline reveal */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi) * 45ms); }
[data-split].in .w > span { transform: none; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.fade-up { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero-section { position: relative; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.hero-section::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 560px at 50% -14%, rgba(255, 255, 255, .075), transparent 62%), linear-gradient(to bottom, transparent 55%, rgba(91, 130, 245, .045)); }
#field { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 300px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hero { display: grid; grid-template-columns: 1fr 1.04fr; gap: 64px; align-items: center; position: relative; z-index: 1; padding: calc(var(--nav-h) + 40px) 0 230px; }
.rotator { position: relative; display: inline-block; white-space: nowrap; vertical-align: bottom; transition: width .7s var(--ease-out); }
.rw { display: inline-block; white-space: nowrap; }
.w:has(.rotator) { overflow: visible; clip-path: inset(-.08em -100vw 0 -100vw); } /* clip the roll vertically only */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rw.enter, .rw.leave { position: absolute; left: 0; top: 0; }
.rw .ch { display: inline-block; background: var(--grad); background-size: var(--gw, 100%) 100%; background-position: calc(var(--gx, 0px) * -1) 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em;
  transition: transform .75s cubic-bezier(.2, .9, .25, 1.15), opacity .45s var(--ease-out), filter .5s var(--ease-out); transition-delay: calc(140ms + var(--ci) * 34ms); }
.rw.enter .ch { transform: translateY(118%) rotate(10deg); opacity: 0; filter: blur(8px); transition: none; }
.rw.leave .ch { transform: translateY(-118%) rotate(-8deg); opacity: 0; filter: blur(8px); transition-duration: .42s, .24s, .3s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); transition-delay: calc(var(--ci) * 18ms); }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.hero-meta .live-dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; position: relative; flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

/* Interactive app preview */
.preview-wrap { perspective: 1400px; }
.preview { position: relative; border: 1px solid var(--border-2); border-radius: 16px; background: var(--surface); overflow: hidden; transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 40px 100px -30px rgba(91, 130, 245, .45), 0 30px 60px -30px rgba(0, 0, 0, .9); transition: transform .5s var(--ease-out); }
.preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .12), transparent 45%); }
.preview-wrap:hover .preview::after { opacity: 1; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 650; background: var(--surface-2); }
.pv-title { display: flex; align-items: center; gap: 8px; }
.pv-actions { display: flex; gap: 6px; }
.pv-actions button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; background: var(--surface); border: 1px solid var(--border-2); border-radius: 7px; padding: 3px 10px; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.pv-actions button:hover { color: var(--text); border-color: var(--faint); }
.pv-actions kbd { font-size: 10px; padding: 0 4px; }
.sound-list { list-style: none; }
.sound-list li { border-bottom: 1px solid var(--border); position: relative; }
.sound-list button { width: 100%; display: grid; grid-template-columns: 16px 1fr 90px auto 34px; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14px; background: none; border: none; cursor: pointer; text-align: left; transition: background-color .2s; }
.sound-list button:hover { background: rgba(255, 255, 255, .03); }
.sound-list .name { font-weight: 550; transition: color .2s; }
.sound-list .dur { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; }
.sound-list li.active button { background: var(--accent-soft); }
.sound-list li.active .name { color: var(--accent-hi); }
.mini-wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.mini-wave i { flex: 1; border-radius: 1px; background: var(--border-2); }
li.active .mini-wave i { background: var(--accent); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--grad); }
.eq { display: flex; align-items: flex-end; gap: 2px; width: 14px; height: 14px; }
.eq i { flex: 1; height: 3px; border-radius: 1px; background: var(--border-2); }
li.active .eq i { background: var(--accent); animation: eq .5s ease-in-out infinite alternate; }
li.active .eq i:nth-child(2) { animation-delay: .15s; animation-duration: .4s; }
li.active .eq i:nth-child(3) { animation-delay: .3s; animation-duration: .55s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
li.active kbd { border-color: var(--accent); color: var(--accent-hi); }
kbd.pressed { transform: translateY(1px); border-bottom-width: 1px; }
.levels { padding: 14px; display: grid; gap: 14px; }
.level label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.level label span:last-child { font-variant-numeric: tabular-nums; }
.meter { display: flex; gap: 2px; height: 8px; margin-top: 6px; }
.meter i { flex: 1; border-radius: 1px; background: var(--border); transition: background-color .08s; }
.meter i.on { background: var(--accent); }
.meter i.on.hot { background: #e2a634; }
.level input { width: 100%; accent-color: var(--accent); margin-top: 6px; }
.preview-note { font-size: 12px; color: var(--faint); padding: 0 14px 12px; }

/* ---------- Marquee ---------- */
.marquee { padding: 30px 0; border-block: 1px solid var(--border); overflow: hidden; position: relative; background: var(--bg); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.mq-track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-group { display: flex; align-items: center; }
.mq-item { display: flex; align-items: center; gap: 16px; padding: 0 34px; font-size: clamp(24px, 3vw, 38px); font-weight: 750; letter-spacing: -0.03em; white-space: nowrap; }
.mq-item svg { width: .9em; height: .9em; fill: currentColor; }
.mq-item.muted { color: transparent; -webkit-text-stroke: 1px var(--faint); }
.mq-sep { display: flex; align-items: flex-start; gap: 3px; height: 22px; }
.mq-sep i { width: 3px; border-radius: 2px; background: var(--grad); }
.mq-sep i:nth-child(1) { height: 10px; } .mq-sep i:nth-child(2) { height: 20px; } .mq-sep i:nth-child(3) { height: 13px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { --x: 50%; --y: 50%; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; overflow: hidden; display: flex; flex-direction: column; min-height: 300px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--x) var(--y), var(--accent-soft), transparent 45%); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--x) var(--y), var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card .vis { flex: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; position: relative; min-height: 160px; }
.card p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.card-media .vis.media { margin: -24px -24px 22px; min-height: 0; }
.card-media .vis.media img { width: 100%; height: 280px; object-fit: cover; object-position: 50% 30%; }
.span-2 { grid-column: span 2; }
.paused, .paused * { animation-play-state: paused !important; }

.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 560px; }
.pad { position: relative; height: 58px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out); }
.pad small { font-family: var(--mono); font-size: 10px; color: var(--faint); font-weight: 500; }
.pad:hover { border-color: var(--faint); color: var(--text); }
.pad.hit { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(.95); }
.pad.hit small { color: rgba(255, 255, 255, .8); }
.pad.hit::after { content: ""; position: absolute; inset: -1px; border-radius: 12px; border: 2px solid var(--accent); animation: ring .7s var(--ease-out) forwards; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }

.keys { display: flex; gap: 8px; }
.key { min-width: 48px; height: 48px; padding: 0 10px; border: 1px solid var(--border-2); border-bottom-width: 4px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; color: var(--muted); transition: transform .12s, border-color .2s, color .2s, border-bottom-width .12s, background-color .2s; }
.key.wide { min-width: 64px; }
.key.down { transform: translateY(3px); border-bottom-width: 1px; border-color: var(--accent); color: #fff; background: var(--accent); }
.hk-status { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hk-status b { color: var(--text); font-weight: 650; display: inline-block; transition: opacity .2s, transform .3s var(--ease-out); }
.hk-status b.swap { opacity: 0; transform: translateY(6px); }
.hk-status .live-dot { background: var(--accent); }

.vfaders { display: flex; gap: 30px; height: 150px; align-items: flex-end; }
.vf { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.vtrack { position: relative; width: 4px; height: 120px; background: var(--border-2); border-radius: 2px; }
.vfill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--grad); border-radius: 2px; animation: vfill var(--t) ease-in-out infinite alternate; }
.vknob { position: absolute; left: -10px; width: 24px; height: 12px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--faint); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); margin-bottom: -6px; animation: vknob var(--t) ease-in-out infinite alternate; }
@keyframes vfill { from { height: var(--lo); } to { height: var(--hi); } }
@keyframes vknob { from { bottom: var(--lo); } to { bottom: var(--hi); } }

.profiles { width: 100%; max-width: 290px; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); background: var(--accent); border-radius: 7px; box-shadow: 0 6px 16px -6px var(--accent); transition: transform .55s var(--ease-out); }
.seg button { position: relative; z-index: 1; font-size: 12px; padding: 7px 0; background: none; border: 0; color: var(--muted); cursor: pointer; transition: color .3s; }
.seg button.on { color: #fff; font-weight: 650; }
.pbars { margin-top: 18px; display: grid; gap: 11px; }
.pbar { font-size: 12px; color: var(--muted); }
.pbar div { display: flex; justify-content: space-between; }
.pbar div span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.pbar .t { height: 5px; background: var(--border); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.pbar .t i { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width .7s var(--ease-out); }

.palette { width: 100%; max-width: 300px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface-2); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.pal-in { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); min-height: 42px; }
.pal-in .ic { width: 15px; height: 15px; color: var(--faint); }
.caret { width: 1.5px; height: 15px; background: var(--accent); animation: caret .8s steps(1) infinite; margin-left: -6px; }
@keyframes caret { 50% { opacity: 0; } }
.pal-k { margin-left: auto; font-size: 10px; }
.pal-list { list-style: none; padding: 5px; }
.pal-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-size: 12.5px; color: var(--muted); transition: background-color .2s, color .2s, opacity .25s; }
.pal-list li.sel { background: var(--accent-soft); color: var(--text); }
.pal-list li.sel.go { background: var(--accent); color: #fff; }
.pal-list li kbd { margin-left: auto; font-size: 10px; }
.pal-list li::before { content: ""; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; opacity: .7; }

.settings-wrap { position: relative; width: 100%; max-width: 280px; }
.settings { border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; position: relative; background: var(--surface-2); }
.srow { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 12px; border-bottom: 1px solid var(--border); }
.srow:last-child { border-bottom: 0; }
.srow span:last-child { color: var(--muted); }
.scan { position: absolute; left: 0; right: 0; height: 36px; top: -36px; background: linear-gradient(to bottom, transparent, var(--accent-soft), transparent); border-bottom: 1px solid var(--accent); animation: scan 3.2s var(--ease) infinite; }
@keyframes scan { 0% { top: -36px; } 70%, 100% { top: 100%; } }
.badge { position: absolute; right: 0; top: -12px; z-index: 1; font-size: 11px; font-weight: 650; color: #4ade80; background: var(--surface); border: 1px solid rgba(74, 222, 128, .5); padding: 2px 8px; border-radius: 99px; display: flex; align-items: center; gap: 5px; }
.badge svg { width: 10px; height: 10px; }

/* ---------- Story (pinned) ---------- */
.story { padding: 0; background: var(--bg-alt); border-block: 1px solid var(--border); }
.story-track { height: 450vh; position: relative; timeline-scope: --st1, --st2, --st3, --st4; }
.story-sentinel { position: absolute; left: 0; width: 1px; height: 100vh; pointer-events: none; }
.story-sentinel:nth-child(1) { view-timeline: --st1 block; } .story-sentinel:nth-child(2) { view-timeline: --st2 block; }
.story-sentinel:nth-child(3) { view-timeline: --st3 block; } .story-sentinel:nth-child(4) { view-timeline: --st4 block; }
.story-sticky { position: sticky; top: 0; height: 100vh; padding-top: var(--nav-h); display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.story-steps { list-style: none; margin-top: 36px; }
.story-steps li { padding: 16px 0; border-top: 1px solid var(--border); cursor: pointer; position: relative; }
.story-steps li:last-child { border-bottom: 1px solid var(--border); }
.story-steps .bar { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.story-steps li.active .bar { transform: scaleX(1); }
@supports (animation-timeline: view()) {
  .story-steps li .bar { transform: scaleX(0); animation: barFill linear both; }
  .story-steps li:nth-child(1) .bar { animation-timeline: --st1; } .story-steps li:nth-child(2) .bar { animation-timeline: --st2; }
  .story-steps li:nth-child(3) .bar { animation-timeline: --st3; } .story-steps li:nth-child(4) .bar { animation-timeline: --st4; }
  @keyframes barFill { 0%, 25% { transform: scaleX(0); } 75%, 100% { transform: scaleX(1); } }
}
.story-steps .row { display: flex; gap: 16px; align-items: baseline; }
.story-steps .num { font-family: var(--mono); font-size: 12px; color: var(--faint); transition: color .4s; }
.story-steps h3 { color: var(--faint); transition: color .4s; font-size: 19px; }
.story-steps .desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out), opacity .5s; opacity: 0; padding-left: 36px; }
.story-steps .desc p { overflow: hidden; color: var(--muted); font-size: 15px; }
.story-steps li.active h3 { color: var(--text); }
.story-steps li.active .num { color: var(--accent-hi); }
.story-steps li.active .desc { grid-template-rows: 1fr; opacity: 1; }
.story-steps li.active .desc p { padding-top: 6px; }

.stage { position: relative; height: 480px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--border-2) 1px, transparent 1px); background-size: 22px 22px; opacity: .55; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px 300px at 50% 50%, rgba(91, 130, 245, .14), transparent 70%); }
.stage-count { position: absolute; right: 18px; top: 16px; font-family: var(--mono); font-size: 12px; color: var(--faint); z-index: 2; }
.stage-count b { color: var(--text); font-weight: 500; }
.scene { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 32px; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); pointer-events: none; }
.scene.active { opacity: 1; transform: none; }
.scene.past { transform: translateY(-30px) scale(.97); }
.panel { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); position: relative; }
.panel.wide { max-width: 520px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 650; }
.panel-head span { font-weight: 400; color: var(--faint); font-size: 12px; }

.files { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; font-size: 12px; opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i) * 70ms + .15s); }
.scene.active .file { opacity: 1; transform: none; }
.file small { display: block; color: var(--faint); font-size: 11px; }
.ficon { width: 28px; height: 28px; border-radius: 7px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; gap: 2px; flex-shrink: 0; }
.ficon i { width: 2px; background: var(--accent-hi); border-radius: 1px; }
.ficon i:nth-child(1) { height: 6px; } .ficon i:nth-child(2) { height: 12px; } .ficon i:nth-child(3) { height: 8px; } .ficon i:nth-child(4) { height: 4px; }
.dropzone { margin: 0 14px 14px; padding: 12px; border: 1.5px dashed var(--border-2); border-radius: 9px; text-align: center; font-size: 12px; color: var(--faint); animation: dz 2.6s ease-in-out infinite; }
@keyframes dz { 0%, 40%, 100% { border-color: var(--border-2); background: transparent; } 55%, 70% { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hi); } }
.drag-chip { position: absolute; right: -30px; top: -40px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--accent); border-radius: 9px; font-size: 12px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); animation: drag 2.6s var(--ease) infinite; }
.drag-chip svg { width: 12px; height: 12px; color: var(--accent-hi); }
@keyframes drag { 0% { transform: translate(40px, -10px) rotate(6deg); opacity: 0; } 15% { opacity: 1; } 55% { transform: translate(-150px, 285px) rotate(-2deg); opacity: 1; } 70%, 100% { transform: translate(-150px, 285px) scale(.8); opacity: 0; } }

.bind-tile { padding: 26px 20px 22px; text-align: center; position: relative; }
.bind-name { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
.bind-key { position: relative; height: 30px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.bind-key span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bind-key .wait { animation: waitA 3.2s infinite; }
.bind-key .wait::after { content: ""; width: 1.5px; height: 14px; background: var(--accent); animation: caret .8s steps(1) infinite; }
.bind-key .done { animation: doneA 3.2s infinite; color: var(--text); }
.bind-key .done kbd { font-size: 13px; border-color: var(--accent); color: var(--accent-hi); }
@keyframes waitA { 0%, 44% { opacity: 1; transform: none; } 50%, 94% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; } }
@keyframes doneA { 0%, 46% { opacity: 0; transform: translateY(8px); } 52%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.bind-ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: bring 3.2s var(--ease-out) infinite; pointer-events: none; }
@keyframes bring { 0%, 47% { transform: scale(.5); opacity: 0; } 49% { opacity: .7; } 75%, 100% { transform: scale(2.6); opacity: 0; } }
.kb { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 6px; padding: 14px; border-top: 1px solid var(--border); }
.kb .key { min-width: 0; height: 38px; font-size: 12px; border-radius: 7px; border-bottom-width: 3px; }
.kb .key.target { animation: press 3.2s infinite; }
@keyframes press { 0%, 45%, 54%, 100% { transform: none; border-bottom-width: 3px; } 47%, 50% { transform: translateY(2px); border-bottom-width: 1px; border-color: var(--accent); color: #fff; background: var(--accent); } 51%, 94% { border-color: var(--accent); color: var(--accent-hi); } }

.mix { padding: 18px 16px; display: grid; gap: 18px; }
.ch-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.ch-head b { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--accent-hi); }
.hfader { position: relative; height: 4px; background: var(--border-2); border-radius: 2px; margin: 6px 0 10px; }
.hfader .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: var(--grad); border-radius: 2px; }
.hfader .knob { position: absolute; top: 50%; left: var(--v); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.mix .meter { height: 6px; margin-top: 0; }
@property --v { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.mix .ch { animation: chLoop 3s ease-in-out infinite alternate; }
@keyframes chLoop { from { --v: var(--a); } to { --v: var(--b); } }
@supports (animation-timeline: view()) {
  .mix .ch { animation: chScrub linear both; animation-timeline: --st3; }
  @keyframes chScrub { 0%, 25% { --v: var(--a); } 75%, 100% { --v: var(--b); } }
}

.flow { padding: 14px; }
.flow svg { width: 100%; height: auto; }
.flow .node rect { fill: var(--surface-2); stroke: var(--border-2); }
.flow .node.main rect { fill: rgba(91, 130, 245, .16); stroke: var(--accent); }
.flow .node.discord rect { fill: rgba(88, 101, 242, .16); stroke: #5865F2; }
.flow .node.discord svg path { fill: #8f98ff; }
.flow text { fill: var(--text); font-size: 13px; font-weight: 650; font-family: inherit; }
.flow text.sub { fill: var(--faint); font-size: 11px; font-weight: 400; }
.flow .line { fill: none; stroke: var(--border-2); stroke-width: 1.5; }
.flow .line-anim { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 9; animation: flowA 1.2s linear infinite; opacity: .8; }
.flow .pulse { fill: var(--accent-hi); }
.flow .halo { fill: none; stroke: var(--accent); opacity: .4; animation: halo 2s var(--ease-out) infinite; transform-origin: 260px 115px; }
@keyframes flowA { to { stroke-dashoffset: -12; } }
@keyframes halo { from { transform: scale(1); opacity: .5; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- Discord + games ---------- */
.squad { display: grid; grid-template-columns: auto 1fr; gap: 80px; align-items: center; }
.phone { position: relative; width: 320px; aspect-ratio: 9 / 16; border-radius: 46px; padding: 10px; background: #191c23; border: 1px solid var(--border-2); box-shadow: 0 60px 120px -40px rgba(139, 92, 246, .55), inset 0 0 0 2px #0c0e12; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #000; }
.sound-btn { position: absolute; right: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 8, 12, .72); border: 1px solid var(--border-2); backdrop-filter: blur(10px); cursor: pointer; transition: transform .2s var(--ease-out); }
.sound-btn:active { transform: scale(.94); }
.discord-row { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 18px; border-radius: 14px; border: 1px solid rgba(88, 101, 242, .4); background: rgba(88, 101, 242, .08); max-width: 560px; }
.dlogo { width: 46px; height: 46px; border-radius: 13px; background: #5865F2; display: grid; place-items: center; flex: none; box-shadow: 0 12px 30px -10px #5865F2; }
.dlogo svg { width: 26px; height: 26px; fill: #fff; }
.discord-row p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; max-width: 560px; }
.game { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: center; transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s; }
.game svg { width: 34px; height: 34px; fill: var(--muted); transition: fill .3s; }
.game b { font-size: 12.5px; font-weight: 650; line-height: 1.2; }
.game:hover { border-color: var(--c); transform: translateY(-3px); box-shadow: 0 20px 40px -20px var(--c); }
.game:hover svg { fill: var(--c); }

/* ---------- Setup ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.device-list { list-style: none; margin-top: 32px; }
.device-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.device-list li:first-child { border-top: 1px solid var(--border); }
.device-list .ic { color: var(--muted); }
.device-list .status { margin-left: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.chk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-2); display: flex; align-items: center; justify-content: center; transition: background-color .4s, border-color .4s; transition-delay: var(--d); }
.chk svg { width: 10px; height: 10px; color: #fff; opacity: 0; transition: opacity .3s; transition-delay: var(--d); }
.device-list.in .chk { background: var(--accent); border-color: var(--accent); }
.device-list.in .chk svg { opacity: 1; }
.device-list .status em { font-style: normal; opacity: 0; transition: opacity .4s; transition-delay: var(--d); }
.device-list.in .status em { opacity: 1; }
.steps { list-style: none; position: relative; margin-top: 40px; }
.steps::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 28px; width: 1px; background: var(--border-2); }
.steps .rail { position: absolute; left: 13px; top: 28px; width: 1px; height: 0; background: var(--accent); transition: height 1.4s var(--ease-out) .3s; }
.steps.in .rail { height: calc(100% - 56px); }
.steps li { position: relative; padding-left: 46px; margin-bottom: 26px; }
.steps li:last-child { margin-bottom: 0; }
.steps .n { position: absolute; left: 0; top: 0; width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--bg-alt); font-size: 13px; font-weight: 650;
  display: flex; align-items: center; justify-content: center; color: var(--muted); transition: border-color .4s, color .4s, background-color .4s; transition-delay: var(--d, 0s); }
.steps.in .n { border-color: var(--accent); color: #fff; background: var(--accent); }
.steps p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.shots { position: sticky; top: calc(var(--nav-h) + 40px); }
.shot-frame { position: relative; aspect-ratio: 1280 / 782; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2); background: var(--bg); box-shadow: 0 50px 100px -40px rgba(91, 130, 245, .5); }
.shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out); }
.shot-frame img.on { opacity: 1; transform: none; }
.shot-caption { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-weight: 600; }
.shot-dots { display: flex; gap: 6px; }
.shot-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--border-2); cursor: pointer; transition: background-color .3s, width .3s var(--ease-out); padding: 0; }
.shot-dots button.on { background: var(--accent); width: 22px; border-radius: 4px; }

/* ---------- Download ---------- */
.dl { text-align: center; overflow: hidden; }
.viz { position: relative; width: 440px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dl-btn { position: absolute; left: 50%; top: 50%; width: 156px; height: 156px; margin: -78px 0 0 -78px; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer;
  font-size: 17px; font-weight: 750; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .4s var(--ease-out), background-color .2s, box-shadow .3s; box-shadow: 0 0 0 0 var(--accent-soft), 0 20px 60px -10px rgba(91, 130, 245, .8); }
.dl-btn:hover { background: var(--accent-hover); box-shadow: 0 0 0 14px var(--accent-soft), 0 20px 60px -10px rgba(91, 130, 245, .9); }
.dl-btn:active { transform: scale(.97); }
.dl-btn small { font-size: 12px; font-weight: 500; opacity: .85; }
.dl-btn svg { width: 22px; height: 22px; margin-bottom: 4px; transition: transform .4s var(--ease-out); }
.dl-btn:hover svg { transform: translateY(3px); }
.dl h2 { margin-top: 0; }
.dl .viz { margin-top: 4px; }
.dl p { margin: 14px auto 0; max-width: 480px; color: var(--muted); }
.note2 { display: block; margin-top: 12px; font-size: 13px; color: var(--faint); }
.note2 a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; transition: color .2s; font-size: 17px; }
summary:hover { color: var(--accent-hi); }
summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 5.25px; width: 12px; height: 1.5px; background: var(--muted); transition: transform .35s var(--ease-out); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.answer { overflow: hidden; height: 0; transition: height .45s var(--ease-out); }
.answer p { padding-bottom: 20px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0 28px; font-size: 14px; color: var(--muted); overflow: hidden; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .logo { color: var(--text); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a, .footer-social a { transition: color .2s; }
.footer-links a:hover, .footer-social a:hover { color: var(--text); }
.footer-social { display: flex; gap: 14px; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.wordmark { font-size: clamp(72px, 19vw, 260px); font-weight: 800; letter-spacing: -0.06em; line-height: .85; color: var(--bg-alt); -webkit-text-stroke: 1px var(--border-2); margin: 44px 0 32px; user-select: none; white-space: nowrap; display: flex; justify-content: center; }
.wordmark span { display: inline-block; transition: transform .6s var(--ease-out), color .4s, -webkit-text-stroke-color .4s; transition-delay: calc(var(--i) * 35ms); }
.wordmark:hover span { transform: translateY(-8%); color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.footer-base { font-size: 12.5px; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero, .two-col, .faq-grid, .squad { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: calc(var(--nav-h) + 20px) 0 160px; }
  .squad { justify-items: center; }
  .bento { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .story-text h2 { font-size: 26px; }
  .story-steps { margin-top: 14px; }
  .story-steps li { padding: 10px 0; }
  .story-steps li:not(.active) .desc { display: none; }
  .stage { height: 360px; }
  .scene { padding: 18px; }
  .drag-chip { display: none; }
  .shots { position: relative; top: 0; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta, .np-chip { display: none; }
  .menu-btn { display: block; }
  .nav-shell { height: 58px; padding: 0 8px 0 16px; justify-content: space-between; }
  .container { width: calc(100% - 32px); }
  .sec { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .pads { grid-template-columns: repeat(2, 1fr); }
  .sound-list button { grid-template-columns: 16px 1fr auto 34px; }
  .mini-wave { display: none; }
  .story-steps li:not(.active) { display: none; }
  .story-steps li.active { border-bottom: 1px solid var(--border); }
  .stage { height: 340px; }
  .files { grid-template-columns: 1fr; }
  .file:nth-child(n+5) { display: none; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .viz { width: 320px; }
  .dl-btn { width: 124px; height: 124px; margin: -62px 0 0 -62px; font-size: 15px; }
  .marquee::before, .marquee::after { width: 40px; }
  .phone { width: min(300px, 82vw); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .w > span { transform: none; }
  .scene { transition: none; }
}
