/* Alanityc Projects — tokens & global */
:root {
  --bg: #0a0514;
  --bg-surface: #0f0920;
  --bg-elev: #140d28;
  --bg-elev-2: #1b1335;
  --line: #2a1e4a;
  --line-2: #3a2a60;
  --fg: #ececf5;
  --fg-muted: #9a93b4;
  --fg-dim: #5d557a;
  --accent: #3bff6e;
  --accent-ink: #021608;
  --accent-glow: rgba(59, 255, 110, 0.4);
  --accent-2: #7dd3ff;
  --danger: #ff4d6d;

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.7,0,.2,1);

  --max: 1320px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(124, 92, 255, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 200, 255, 0.08), transparent 60%),
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px;
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.8'/></svg>");
}

main, nav, footer, section, header, div, article { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: clamp(56px, 11vw, 168px); letter-spacing: -0.045em; }
h2 { font-size: clamp(36px, 5.6vw, 88px); letter-spacing: -0.035em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
p { margin: 0; }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.mono-sm { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(10,10,11,0.55);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; cursor: pointer; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elev);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 22px var(--accent-glow);
  transition: transform .4s var(--ease-out);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-text .dim { color: var(--fg-muted); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-muted);
  position: relative; padding: 6px 2px; transition: color .2s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px var(--accent-glow); }

@media (max-width: 720px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  transition: all .3s var(--ease-out);
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--accent-glow); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: var(--bg-elev); }

/* HERO */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); position: relative; overflow: hidden; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }

/* Logo as a full, centered backdrop behind the headline */
.hero-logo-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 0;
}
.hero-logo-bg img {
  width: clamp(280px, 42vw, 520px);
  aspect-ratio: 1; object-fit: contain;
  border-radius: 50%;
  opacity: 0.18;
  filter: saturate(1.1) drop-shadow(0 0 40px var(--accent-glow));
  animation: floatY 9s ease-in-out infinite;
}
.hero-logo-glow {
  position: absolute;
  width: clamp(400px, 60vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,157,0.14) 0%, rgba(0,255,157,0.04) 35%, transparent 65%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.08); opacity: 1; } }

.hero > *:not(.hero-logo-bg) { position: relative; z-index: 2; }

@media (max-width: 700px) {
  .hero-logo-bg img { opacity: 0.12; width: 80vw; }
}
.hero-meta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.35 } }

.hero h1 { font-size: clamp(58px, 12.5vw, 196px); letter-spacing: -0.05em; line-height: 0.92; max-width: 10ch; }
.hero h1 .hollow { -webkit-text-stroke: 1.5px var(--fg); color: transparent; font-style: italic; font-weight: 400; }
.hero h1 .accent { color: var(--accent); }

.hero-sub { max-width: 620px; margin-top: 28px; font-size: clamp(18px, 1.6vw, 22px); color: var(--fg-muted); line-height: 1.5; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.hero-bottom { margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: end; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .hero-bottom { grid-template-columns: 1fr; } }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat .n { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; }
.hero-stat .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-top: 4px; }

.hero-socials { display: flex; gap: 8px; justify-self: center; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--fg-muted);
  transition: all .25s var(--ease-out);
}
.social-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.scroll-hint { display: flex; align-items: center; gap: 10px; color: var(--fg-muted); justify-self: end; }
.scroll-hint .bar { width: 40px; height: 1px; background: var(--fg-muted); animation: scroll-bar 2s infinite var(--ease-in-out); transform-origin: left; }
@keyframes scroll-bar { 0%,100% { transform: scaleX(0.4) } 50% { transform: scaleX(1) } }

/* Sections */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-label { display: flex; align-items: center; gap: 12px; }
.section-label .idx { color: var(--accent); }
.section-head h2 .accent { color: var(--accent); }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-surface); }
.tab { padding: 9px 18px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); transition: all .25s var(--ease-out); }
.tab.active { background: var(--accent); color: var(--accent-ink); }
.tab:not(.active):hover { color: var(--fg); }

/* Project cards */
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project-card {
  grid-column: span 6;
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all .4s var(--ease-out);
}
.project-card.wide { grid-column: span 12; }
.project-card.third { grid-column: span 4; }
@media (max-width: 900px) { .project-card, .project-card.third, .project-card.wide { grid-column: span 12; } }

.project-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.project-card:hover .card-key-art > canvas { transform: scale(1.03); }
.project-card:hover .card-go { transform: translate(0, 0); opacity: 1; }
.project-card:hover .card-shine { opacity: 1; }

.card-key-art { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--bg-elev); }
.card-key-art > canvas { display: block; width: 100%; height: 100%; transition: transform .6s var(--ease-out); }
.card-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.09), transparent 40%);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.card-tag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 10px; border-radius: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.card-tag.live { color: var(--accent); border-color: rgba(0,255,157,.3); }
.card-tag.soon { color: #ffb84d; border-color: rgba(255,184,77,.3); }

.card-body { padding: 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-title { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.card-desc { font-size: 13.5px; color: var(--fg-muted); margin-top: 6px; max-width: 42ch; }
.card-meta { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.platforms { display: flex; gap: 6px; }
.plat { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--bg-elev); border: 1px solid var(--line); color: var(--fg-muted); }

.card-go { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; transform: translate(8px, -8px); opacity: 0; transition: all .3s var(--ease-out); }

/* In Development */
.indev-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.indev-card { grid-column: span 4; border: 1px dashed var(--line-2); border-radius: 16px; padding: 24px; background: var(--bg-surface); transition: all .3s var(--ease-out); overflow: hidden; position: relative; }
@media (max-width: 900px) { .indev-card { grid-column: span 12; } }
.indev-card:hover { border-color: var(--accent); border-style: solid; }
.indev-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 54px; }
.indev-stage { padding: 5px 9px; border-radius: 4px; background: rgba(255,184,77,.1); color: #ffb84d; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.indev-title { font-size: 26px; letter-spacing: -0.02em; }
.indev-kind { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-top: 6px; }
.indev-desc { color: var(--fg-muted); font-size: 14px; margin-top: 18px; }
.indev-progress { margin-top: 26px; }
.indev-progress .track { height: 3px; background: var(--bg-elev-2); border-radius: 2px; overflow: hidden; }
.indev-progress .fill { height: 100%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); transition: width 1.2s var(--ease-out); }
.indev-progress .label { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }

/* Devlog */
.devlog-list { border-top: 1px solid var(--line); }
.devlog-item { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: all .3s var(--ease-out); cursor: pointer; }
.devlog-item:hover { padding-left: 16px; padding-right: 16px; background: var(--bg-surface); }
.devlog-item:hover .devlog-arrow { transform: translateX(0); opacity: 1; }
.devlog-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--fg-dim); }
.devlog-title { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.devlog-excerpt { color: var(--fg-muted); font-size: 14px; margin-top: 4px; max-width: 60ch; }
.devlog-meta { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); text-align: right; }
.devlog-arrow { transform: translateX(-8px); opacity: 0; transition: all .3s var(--ease-out); color: var(--accent); }
@media (max-width: 800px) { .devlog-item { grid-template-columns: 1fr; gap: 6px; } .devlog-meta, .devlog-arrow { text-align: left; } }

.ai-note { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg-surface); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--fg-muted); text-transform: uppercase; margin-top: 32px; }
.ai-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-display { font-size: clamp(40px, 6vw, 92px); letter-spacing: -0.035em; line-height: 1.02; }
.contact-display .hollow { -webkit-text-stroke: 1.5px var(--fg); color: transparent; font-style: italic; font-weight: 400; }
.contact-display .accent { color: var(--accent); }

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.form-field input, .form-field textarea {
  background: var(--bg-surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; color: var(--fg); font-family: var(--f-display); font-size: 15px;
  outline: none; transition: all .2s var(--ease-out); resize: vertical;
}
.form-field textarea { min-height: 130px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-field input.err, .form-field textarea.err { border-color: var(--danger); }
.form-err { font-family: var(--f-mono); font-size: 10px; color: var(--danger); margin-top: 2px; letter-spacing: 0.1em; text-transform: uppercase; }
.form-success { padding: 18px; border-radius: 10px; background: rgba(0,255,157,.07); border: 1px solid rgba(0,255,157,.25); color: var(--accent); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }
.footer-word { font-size: clamp(60px, 14vw, 220px); letter-spacing: -0.055em; line-height: 0.85; font-weight: 500; }
.footer-word .hollow { -webkit-text-stroke: 1.5px var(--fg-dim); color: transparent; font-style: italic; font-weight: 400; }
.footer-col h4 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: var(--fg); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--fg-muted); text-transform: uppercase; gap: 16px; flex-wrap: wrap; }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee-inner { display: flex; gap: 48px; white-space: nowrap; animation: marquee 40s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; font-size: 22px; letter-spacing: -0.02em; color: var(--fg-muted); }
.marquee-item .dot { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Project detail */
.detail-back { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); transition: color .2s; }
.detail-back:hover { color: var(--accent); }

.detail-hero { padding: clamp(30px, 6vw, 70px) 0 clamp(30px, 5vw, 60px); }
.detail-hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: end; }
@media (max-width: 900px) { .detail-hero-grid { grid-template-columns: 1fr; } }
.detail-title { font-size: clamp(48px, 8vw, 128px); letter-spacing: -0.045em; line-height: 0.92; font-weight: 500; }
.detail-kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.detail-lede { color: var(--fg-muted); font-size: 17px; line-height: 1.55; max-width: 46ch; margin-top: 20px; }

.detail-key-art { border-radius: 20px; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-elev); }
.detail-key-art > canvas { display: block; width: 100%; height: 100%; }

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg-surface);
  transition: all .25s var(--ease-out); cursor: pointer;
}
.badge:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--bg-elev); }
.badge:hover .b-icon { color: var(--accent); }
.badge .b-icon { width: 22px; height: 22px; display: grid; place-items: center; color: var(--fg); transition: color .2s; }
.badge .b-sub { color: var(--fg-muted); font-size: 9.5px; display: block; letter-spacing: 0.12em; font-family: var(--f-mono); text-transform: uppercase; }
.badge .b-store { color: var(--fg); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }

.detail-meta-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; }
@media (max-width: 800px) { .detail-meta-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.meta-cell .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; }
.meta-cell .v { font-size: 16px; letter-spacing: -0.01em; }

.detail-section { padding: clamp(60px, 8vw, 110px) 0; }
.detail-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; gap: 24px; flex-wrap: wrap; }
.detail-section h2 { font-size: clamp(34px, 5vw, 72px); }

.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.feature { grid-column: span 4; border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--bg-surface); transition: all .3s var(--ease-out); }
@media (max-width: 900px) { .feature { grid-column: span 12; } }
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--fg-muted); font-size: 14px; line-height: 1.55; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-elev); aspect-ratio: 4/3; transition: all .3s var(--ease-out); cursor: pointer; position: relative; }
.shot.wide { grid-column: span 8; aspect-ratio: 16/9; }
.shot.normal { grid-column: span 4; }
@media (max-width: 900px) { .shot.wide, .shot.normal { grid-column: span 12; } }
.shot:hover { border-color: var(--accent); }
.shot > canvas { display: block; width: 100%; height: 100%; }

.trailer-box { border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 16/9; background: var(--bg-elev); display: grid; place-items: center; position: relative; overflow: hidden; cursor: pointer; transition: all .3s var(--ease-out); }
.trailer-box:hover { border-color: var(--accent); }
.trailer-box > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.play-btn { position: relative; z-index: 2; width: 92px; height: 92px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset, 0 30px 80px -10px var(--accent-glow); transition: transform .3s var(--ease-out); }
.trailer-box:hover .play-btn { transform: scale(1.08); }

.cta-block { padding: clamp(60px, 9vw, 130px) 0; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-block::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%); opacity: 0.25; pointer-events: none; }
.cta-block h2 { max-width: 18ch; margin: 0 auto 32px; }

/* Tweaks panel */
.tweaks { position: fixed; bottom: 20px; right: 20px; z-index: 100; width: 300px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(14,14,16,0.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 16px; color: var(--fg); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); display: none; }
.tweaks.open { display: block; }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tweaks-head .ttl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.tweak-row { margin-bottom: 16px; }
.tweak-row > label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); display: block; margin-bottom: 8px; }
.tweak-row .options { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid var(--line); transition: all .2s var(--ease-out); }
.swatch.on { border-color: var(--fg); transform: scale(1.1); }
.pill { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); transition: all .2s; }
.pill.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill:not(.on):hover { color: var(--fg); border-color: var(--line-2); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

.cursor-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%); pointer-events: none; z-index: 3; mix-blend-mode: screen; transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s var(--ease-out); filter: blur(40px); }
body:hover .cursor-glow { opacity: 0.3; }

body[data-motion="low"] .hero-dot,
body[data-motion="low"] .scroll-hint .bar,
body[data-motion="low"] .marquee-inner { animation: none !important; }
body[data-motion="low"] .cursor-glow { display: none; }
body[data-motion="low"] .reveal { opacity: 1; transform: none; transition: none; }

/* Page transitions */
.page { animation: page-in .6s var(--ease-out); }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
