/* ============================================================
   LAVE landing page.
   Tokens follow the app's LAVE design system (warm near-black ground,
   lava ramp magma -> ember -> amber, square geometry, glows not shadows).
   Violet is reserved for the co-VJ agent: only the #covj section uses it.
   ============================================================ */

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/GeistVF.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/GeistMonoVF.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0a0710;
  --bg-raised: #141019;
  --bg-hover: #1c1622;
  --ink: #f6eef3;
  --ink-80: rgba(246, 238, 243, 0.8);
  --ink-70: rgba(246, 238, 243, 0.7);
  --ink-60: rgba(246, 238, 243, 0.6);
  --ink-40: rgba(246, 238, 243, 0.4);
  --ink-10: rgba(246, 238, 243, 0.1);
  --hair: rgba(246, 238, 243, 0.1);
  --soft: rgba(246, 238, 243, 0.2);

  --magma: #ff2e88;
  --ember: #ff6a1a;
  --amber: #ffc24a;
  --lava: linear-gradient(90deg, #ff2e88, #ff6a1a 55%, #ffc24a);
  /* Buttons with dark text start on a lighter pink: on --lava's magma end the label fell to
     3.9:1 for protanopia (red-blindness darkens magma). This keeps every label above 4.5:1. */
  --lava-button: linear-gradient(90deg, #ff5fa2, #ff6a1a 55%, #ffc24a);

  /* Co-VJ agent only */
  --agent-200: #e8deff; /* small text on violet tints */
  --agent-300: #d9c9ff;
  --agent-400: #b596ff;
  --agent-500: #9b6bff;
  --agent-600: #7b45f0;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* No background on body: html supplies it, so the fixed #lava canvas (z-index -1)
   paints above the page colour and below the content. */
body {
  margin: 0;
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 106, 26, 0.4);
  color: #fff;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #ffd57e;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.nb {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--amber);
  color: #140a10;
  font-weight: 800;
  text-decoration: none;
  transition: top 120ms;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Liquid-light backdrop (drawn by script.js) ---------- */

#lava {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--lava-opacity, 0.5);
  mix-blend-mode: screen;
  filter: blur(12px) saturate(1.2);
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.eyebrow b {
  font-weight: 500;
  color: var(--amber);
}

.desc i {
  font-style: normal;
  color: var(--amber);
}

h2 {
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  color: var(--ink-70);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  max-width: 62ch;
  text-wrap: pretty;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

section {
  padding-block: clamp(64px, 10vw, 120px);
  scroll-margin-top: calc(var(--nav-h) - 8px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--soft);
  background: transparent;
  color: var(--ink);
  font: 800 0.8rem/1 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms, background 140ms, box-shadow 140ms, transform 140ms;
}
.btn:hover {
  color: var(--ink);
  border-color: var(--ink-60);
  background: rgba(246, 238, 243, 0.05);
}
.btn.fire {
  border: 0;
  color: #140a10;
  background: var(--lava-button);
  box-shadow: 0 0 26px rgba(255, 106, 26, 0.35);
}
.btn.fire:hover {
  color: #140a10;
  box-shadow: 0 0 42px rgba(255, 106, 26, 0.6);
  transform: translateY(-1px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 7, 16, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav-brand svg {
  height: 22px;
  width: auto;
  aspect-ratio: 242 / 104;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: var(--ink-70);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links a:not(.btn):hover {
  color: var(--ink);
}
.nav .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.72rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(32px, 4.5vw, 60px) 0;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Keeps the hero copy readable over the brightest part of the backdrop (WCAG AA, checked
   with tools/contrast-audit.py); the glow still shows around it. */
.hero::before {
  content: '';
  position: absolute;
  /* Larger than the hero, so the ellipse fades to nothing before any edge (no visible box). */
  inset: -40% 0 -40% -50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(50% 47% at 50% 47%, rgba(10, 7, 16, 0.62), rgba(10, 7, 16, 0.5) 45%, rgba(10, 7, 16, 0));
}
.hero-main {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
  justify-items: start;
}
.hero .logo {
  width: clamp(190px, 25vw, 330px);
  height: auto;
  aspect-ratio: 242 / 104;
  filter: drop-shadow(0 0 28px rgba(255, 106, 26, 0.45));
}
.hero .desc {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.5vw, 0.86rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero h1 {
  max-width: 18ch;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.3vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: var(--lava);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.hero-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.facts {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--hair);
  background: rgba(10, 7, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.facts li {
  padding: 22px 24px 24px;
  display: grid;
  gap: 4px;
}
.facts li + li {
  border-left: 1px solid var(--hair);
}
.facts strong {
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 1;
}
.facts span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.hero-covj {
  display: grid;
  gap: 10px;
  max-width: 600px;
  padding: 14px 18px 16px;
  background: linear-gradient(135deg, rgba(107, 43, 217, 0.2), rgba(20, 16, 25, 0.78) 70%);
  border: 1px solid rgba(155, 107, 255, 0.4);
  border-left: 3px solid var(--agent-500);
  box-shadow: 0 0 36px rgba(155, 107, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-covj p {
  color: var(--ink-80);
  font-size: 0.98rem;
  line-height: 1.5;
}
.hero-covj strong {
  color: var(--agent-300);
  font-weight: 800;
}

/* ---------- Trailer ---------- */

.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--hair);
  overflow: hidden;
}
.trailer-frame::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--lava);
  z-index: 2;
}
.trailer-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.trailer-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(255, 106, 26, 0.18), transparent 70%),
    radial-gradient(40% 50% at 20% 90%, rgba(255, 46, 136, 0.14), transparent 70%),
    #0d0912;
}
.trailer-soon svg {
  width: clamp(56px, 10vw, 104px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(255, 106, 26, 0.6));
}
.trailer-soon p {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.trailer-soon small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ---------- Features ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 30px;
  background: rgba(20, 16, 25, 0.86);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--hair);
  transition: transform 160ms, box-shadow 160ms, border-color 160ms;
}
.card::before {
  content: '';
  position: absolute;
  inset: -3px 0 auto 0;
  height: 3px;
  background: var(--lava);
  opacity: 0;
  transition: opacity 160ms;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 26, 0.3);
  box-shadow: 0 0 44px rgba(255, 90, 40, 0.18);
}
.card:hover::before {
  opacity: 1;
}
.card .num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: rgba(255, 140, 70, 0.85);
}
.card h3 {
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.card p {
  color: var(--ink-70);
  font-size: 0.97rem;
  line-height: 1.55;
}
.tag {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 106, 26, 0.5);
  color: #ffcaa3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Scale ---------- */

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px 24px 30px;
  background: rgba(20, 16, 25, 0.86);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--hair);
}
/* The lava bar grows step by step: one third, two thirds, full. */
.step::before {
  content: '';
  position: absolute;
  inset: -3px auto auto 0;
  height: 3px;
  width: 33%;
  background: var(--lava);
}
.step:nth-child(2)::before {
  width: 66%;
}
.step:nth-child(3)::before {
  width: 100%;
}
.meter {
  display: inline-flex;
  gap: 6px;
}
.meter i {
  width: 10px;
  height: 10px;
  background: var(--ink-10);
}
.meter i.on {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 194, 74, 0.6);
}
.step h3 {
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.step p {
  color: var(--ink-70);
  font-size: 0.97rem;
  line-height: 1.55;
}

.scale-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--hair);
  background: rgba(10, 7, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.scale-facts li {
  display: grid;
  gap: 6px;
  padding: 22px 24px 24px;
}
.scale-facts li + li {
  border-left: 1px solid var(--hair);
}
.scale-facts strong {
  font-weight: 900;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.scale-facts span {
  color: var(--ink-70);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---------- Expanded preview (lightbox) ---------- */

html:has(dialog[open]) {
  overflow: hidden;
}
.lightbox {
  /* Wide as the page allows, but never taller than the window. */
  width: min(1100px, calc(100vw - 2 * var(--gutter)), calc((100dvh - 150px) * 16 / 9));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(5, 3, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[open] {
  animation: lb-in 200ms ease-out;
}
@keyframes lb-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lb-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  box-shadow: 0 0 80px rgba(255, 90, 40, 0.2);
}
.lb-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  height: 3px;
  background: var(--lava);
}
.lb-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}
.lb-poster,
.lb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The small poster stands in (softened) until the 720p clip is ready. */
.lb-poster {
  filter: blur(5px);
  transform: scale(1.04);
}
.lb-video {
  opacity: 0;
  transition: opacity 240ms ease;
}
.lb-stage.ready .lb-video {
  opacity: 1;
}
.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(10, 7, 16, 0.75);
  border: 1px solid var(--soft);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
}
.lb-close:hover {
  border-color: var(--amber);
  background: rgba(10, 7, 16, 0.92);
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 18px;
}
.lb-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.lb-title-wrap h3 {
  margin-top: 4px;
  font-weight: 900;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.lb-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--soft);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
}
.lb-btn:hover {
  border-color: var(--amber);
  background: rgba(246, 238, 243, 0.05);
}
.lb-btn .i-play {
  display: none;
}
.lightbox.paused .lb-btn .i-play {
  display: block;
}
.lightbox.paused .lb-btn .i-pause {
  display: none;
}

/* ---------- Compatibility ---------- */

.compat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.compat {
  position: relative;
  padding: 28px 24px 32px;
  background: rgba(20, 16, 25, 0.86);
  border: 1px solid var(--hair);
}
.compat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--lava);
}
.compat-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.compat h3 {
  margin: 10px 0 6px;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.compat-by {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.models h4 {
  margin: 24px 0 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.models ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.models li {
  padding: 6px 12px;
  border: 1px solid var(--soft);
  background: rgba(246, 238, 243, 0.03);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-80);
}

.more-coming {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px dashed rgba(255, 106, 26, 0.55);
  background: rgba(255, 106, 26, 0.06);
}
.more-mark {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--lava);
  box-shadow: 0 0 12px rgba(255, 106, 26, 0.6);
}
.more-coming h3 {
  margin-bottom: 4px;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.more-coming p {
  color: var(--ink-70);
  max-width: 62ch;
}
.compat-os {
  margin-top: 16px;
  padding: 10px 14px;
  max-width: 62ch;
  border-left: 2px solid var(--ember);
  background: rgba(255, 106, 26, 0.06);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-80);
}
.compat-os strong {
  color: var(--ink);
}
.compat-fine {
  margin-top: 20px;
  max-width: 86ch;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-60);
}

/* ---------- Co-VJ (the only violet on the page) ---------- */

.covj-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, rgba(107, 43, 217, 0.16), rgba(20, 16, 25, 0.9) 60%);
  border: 1px solid rgba(155, 107, 255, 0.4);
  box-shadow: 0 0 60px rgba(155, 107, 255, 0.12);
}
.covj-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--agent-600), var(--agent-400));
}
.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  justify-self: start;
  padding: 7px 14px;
  border: 1px solid rgba(155, 107, 255, 0.55);
  background: rgba(107, 43, 217, 0.14);
  color: var(--agent-200);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(155, 107, 255, 0.18);
}
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--agent-500);
  box-shadow: 0 0 0 4px rgba(155, 107, 255, 0.18), 0 0 12px var(--agent-500);
}
.covj-copy {
  display: grid;
  gap: 22px;
  align-content: start;
}
.covj-copy h2 .agent-word {
  color: var(--agent-300);
  text-shadow: 0 0 34px rgba(155, 107, 255, 0.5);
}
.covj-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.covj-list li {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(155, 107, 255, 0.22);
}
.covj-list strong {
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--agent-300);
}
.covj-list span {
  color: var(--ink-70);
}
.covj-fine {
  font-size: 0.9rem;
  color: var(--ink-60);
}

.control {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 22px;
  background: rgba(10, 7, 16, 0.7);
  border: 1px solid var(--hair);
}
.control h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 4px;
}
.control ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.level {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 2px 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  background: rgba(246, 238, 243, 0.02);
}
.level .radio {
  grid-column: 1;
  grid-row: 1;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  border: 2px solid rgba(246, 238, 243, 0.25);
}
.level strong {
  grid-column: 2;
  grid-row: 1;
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.level small {
  grid-column: 2 / 4;
  grid-row: 2;
  font-size: 0.88rem;
  color: var(--ink-60);
  line-height: 1.45;
}
.level.on {
  border-color: rgba(155, 107, 255, 0.7);
  background: rgba(107, 43, 217, 0.14);
  box-shadow: inset 3px 0 0 var(--agent-500), 0 0 26px rgba(155, 107, 255, 0.14);
}
.level.on .radio {
  border-color: var(--agent-500);
  background: radial-gradient(circle, var(--agent-500) 42%, transparent 46%);
}
.level.on strong {
  color: var(--agent-300);
}
.field > label .opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-60);
}
.armed {
  grid-column: 3;
  grid-row: 1;
  font-style: normal;
  align-self: center;
  padding: 2px 8px;
  border: 1px solid rgba(255, 71, 71, 0.5);
  color: #ff8a8a;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.covj-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
.ask {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  background: rgba(10, 7, 16, 0.7);
  border: 1px solid var(--hair);
}
.ask h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.ask ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ask li {
  padding: 10px 14px;
  border-left: 2px solid var(--agent-500);
  background: rgba(107, 43, 217, 0.1);
  color: var(--agent-300);
  font-size: 0.95rem;
  line-height: 1.4;
}

.covj-why {
  grid-column: 1 / -1;
  list-style: none;
  margin: 8px 0 0;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(155, 107, 255, 0.28);
}
.covj-why h3 {
  margin-bottom: 8px;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--agent-300);
}
.covj-why p {
  color: var(--ink-70);
  font-size: 0.93rem;
  line-height: 1.5;
}
.covj-why em {
  font-style: normal;
  color: #ff8a8a;
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery figure {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  overflow: hidden;
  transition: transform 160ms, box-shadow 160ms, border-color 160ms;
}
.gallery figure:hover,
.gallery figure:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 26, 0.35);
  box-shadow: 0 0 40px rgba(255, 90, 40, 0.2);
}
/* The tile is a button: hover or focus plays a looping clip over the poster. */
.tile-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}
.tile-media:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -3px;
}
.tile-media img,
.tile-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-media video {
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.tile-media.is-playing video {
  opacity: 1;
}
/* Featured tile: two columns wide, and two rows tall when the grid has four columns. */
.gallery .tile.feature {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  --dot: 14px;
}
.gallery .tile.feature .tile-media {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
}
.gallery .tile.feature figcaption {
  padding: 14px 16px 16px;
  font-size: 0.82rem;
}
@media (min-width: 1001px) {
  .gallery .tile.feature {
    grid-row: span 2;
  }
}
@media (max-width: 1000px) {
  .gallery .tile.feature .tile-media {
    flex: none;
    aspect-ratio: 16 / 9;
  }
}

/* A dot that pulses on the beat. --p runs 1 -> 0 after each beat (set by script.js
   from the clip's real beat grid); the first beat of each bar pops harder and hotter. */
.beat-dot {
  --p: 0;
  --dot: inherit;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: none;
  width: var(--dot, 10px);
  height: var(--dot, 10px);
  border-radius: 50%;
  background: var(--amber);
  opacity: calc(0.6 + var(--p) * 0.4);
  transform: scale(calc(1 + var(--p) * 0.7));
  box-shadow:
    0 0 0 1px rgba(10, 7, 16, 0.65),
    0 0 calc(3px + var(--p) * 14px) rgba(255, 194, 74, calc(0.35 + var(--p) * 0.6));
  pointer-events: none;
}
.beat-dot.down {
  background: var(--magma);
  transform: scale(calc(1 + var(--p) * 1.1));
  box-shadow:
    0 0 0 1px rgba(10, 7, 16, 0.65),
    0 0 calc(3px + var(--p) * 20px) rgba(255, 46, 136, calc(0.4 + var(--p) * 0.6));
}
.tile-media.is-playing .beat-dot,
.lb-stage.ready .beat-dot {
  display: block;
}
.beat-dot.no-data {
  display: none !important; /* no beat grid for this clip */
}
.lb-stage {
  --dot: 16px;
}
.lb-stage .beat-dot {
  top: 16px;
  left: 16px;
}

/* Pointer devices: an expand icon appears on hover or focus; clicking opens the big player. */
.gallery:not(.tap-mode) .tile-media::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  background: rgba(10, 7, 16, 0.78)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3H3v6M15 3h6v6M9 21H3v-6M15 21h6v-6' fill='none' stroke='%23f6eef3' stroke-width='2.2'/%3E%3C/svg%3E")
    center / 15px no-repeat;
  border: 1px solid var(--soft);
  opacity: 0;
  transition: opacity 160ms;
}
.gallery:not(.tap-mode) .tile-media:hover::after,
.gallery:not(.tap-mode) .tile-media:focus-visible::after {
  opacity: 1;
}
/* Touch and reduced-motion: a play badge says "tap to open". */
.tap-mode .tile-media::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(#0a0710, #0a0710) padding-box,
    var(--lava) border-box;
  border: 1px solid transparent;
  clip-path: none;
  opacity: 0.92;
}
.tap-mode .tile-media::before {
  content: '';
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--amber);
}
.tap-mode .tile-media.is-playing::after,
.tap-mode .tile-media.is-playing::before {
  display: none;
}
.gallery figcaption {
  padding: 10px 12px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.gallery-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  max-width: 820px;
  border-bottom: 1px solid var(--hair);
}
.faq details {
  border-top: 1px solid var(--hair);
}
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ember);
  transition: rotate 160ms;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  padding: 0 48px 24px 0;
  color: var(--ink-70);
  max-width: 62ch;
}

/* ---------- Register ---------- */

.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.register-copy {
  display: grid;
  gap: 22px;
}
.register-points {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.register-points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-70);
}
.register-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--ember);
  box-shadow: 0 0 10px rgba(255, 106, 26, 0.6);
}

.form-card {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(20, 16, 25, 0.92);
  border: 1px solid var(--hair);
}
.form-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--lava);
}
form {
  display: grid;
  gap: 20px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.field > label,
fieldset legend {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.field > label i {
  font-style: normal;
  color: var(--ember);
}
input,
select,
textarea {
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
input[type='text'],
input[type='email'],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(246, 238, 243, 0.04);
  border: 1px solid var(--soft);
  border-radius: 0;
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-sans);
  transition: border-color 140ms, box-shadow 140ms, background 140ms;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff6a1a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select option {
  background: #141019;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-60);
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink-40);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 194, 74, 0.18);
  background: rgba(246, 238, 243, 0.06);
}
input[aria-invalid='true'] {
  border-color: #ff6a6a;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
fieldset legend {
  padding: 0;
  margin-bottom: 10px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-70);
  transition: border-color 140ms, background 140ms, color 140ms;
}
.chip:hover span {
  border-color: var(--ink-40);
}
.chip input:checked + span {
  border-color: transparent;
  background: var(--lava);
  color: #1a0d10;
  font-weight: 600;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
  color: var(--ink-70);
  cursor: pointer;
}
.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ember);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: grid;
  gap: 12px;
}
.form-actions .btn {
  width: 100%;
}
.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--ink-70);
}
.form-status.error {
  color: #ff8a8a;
}
.fine {
  font-size: 0.8rem;
  color: var(--ink-60);
  line-height: 1.5;
}

.form-done {
  display: none;
  gap: 16px;
  padding: 12px 0;
}
.form-card.done form {
  display: none;
}
.form-card.done .form-done {
  display: grid;
}
.form-done h3 {
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  background: var(--lava);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.form-done p {
  color: var(--ink-70);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hair);
  padding-block: 48px 56px;
  background: rgba(10, 7, 16, 0.7);
}
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.foot-brand {
  display: grid;
  gap: 14px;
  color: var(--ink-60);
}
.foot-brand svg {
  height: 28px;
  width: auto;
  aspect-ratio: 242 / 104;
  color: var(--ink-60);
}
.foot p {
  font-size: 0.88rem;
  color: var(--ink-60);
  max-width: 52ch;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-links a {
  color: var(--ink-70);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--amber);
}
/* Social profile links above the footer links */
.foot-side {
  display: grid;
  gap: 18px;
  justify-items: end;
}
.foot-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.foot-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hair);
  color: var(--ink-70);
  transition: color 0.15s, border-color 0.15s;
}
.foot-social a:hover,
.foot-social a:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}
.foot-social svg {
  display: block;
  width: 18px;
  height: 18px;
}
.copy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .covj-why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .covj-panel,
  .register-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links a:not(.btn) {
    display: none;
  }
  .ladder,
  .compat-grid,
  .scale-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .scale-facts li + li {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts li:nth-child(3) {
    border-left: 0;
  }
  .facts li:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
  .covj-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .foot {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .foot-side {
    justify-items: start;
  }
}

@media (max-width: 600px) {
  .covj-why {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .row {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery {
    gap: 10px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* Short windows: keep the co-VJ callout and buttons above the fold by dropping the intro paragraph. */
@media (max-height: 820px) {
  .hero .lede {
    display: none;
  }
  .hero .logo {
    width: clamp(170px, 20vw, 250px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .card:hover,
  .gallery figure:hover,
  .btn.fire:hover {
    transform: none;
  }
  .lightbox[open] {
    animation: none;
  }
}

/* ============================================================
   Languages
   ============================================================ */

/* Visitors who need another language see nothing until the translation is in (i18n.js), not a flash of English. */
html[data-pending] body {
  opacity: 0;
}
body {
  transition: opacity 200ms ease;
}

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink-70);
}
.lang-icon {
  position: absolute;
  left: 11px;
  pointer-events: none;
}
.lang select {
  width: auto;
  min-height: 0;
  height: 40px;
  padding: 0 30px 0 34px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ff6a1a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  border: 1px solid var(--soft);
  color: var(--ink);
  font: 500 0.8rem/1 var(--font-sans);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.lang select:hover {
  border-color: var(--ink-60);
  background-color: rgba(246, 238, 243, 0.05);
}
.lang select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  box-shadow: none;
}

/* Japanese: system CJK fonts, no tight tracking, looser leading, measures in em not ch. */
html:lang(ja) {
  --font-sans: 'Geist', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', ui-sans-serif, system-ui, sans-serif;
}
html:lang(ja) body {
  line-break: strict;
}
html:lang(ja) :is(h1, h2, h3, h4, .btn, summary, .facts strong, .scale-facts strong, .covj-why h3, .covj-list strong, .level strong, .form-done h3) {
  letter-spacing: 0;
  line-height: 1.25;
  font-weight: 800;
}
html:lang(ja) :is(.eyebrow, .hero-note, .compat-kicker, .compat-by, .models h4, .facts span, .ask h3, .control h3, .field > label, legend, .tag, .gallery-note, .trailer-soon p, .trailer-soon small, .copy, .foot-links) {
  letter-spacing: 0.06em;
}
html:lang(ja) .hero h1 {
  max-width: 17em;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.2;
}
html:lang(ja) .lede,
html:lang(ja) .faq details p,
html:lang(ja) .more-coming p {
  max-width: 40em;
}
html:lang(ja) h2 {
  line-height: 1.2;
}

/* French, Italian and Spanish run longer than English: let long words break gracefully. */
html:lang(fr) :is(p, .lede, small, li > span),
html:lang(it) :is(p, .lede, small, li > span),
html:lang(es) :is(p, .lede, small, li > span) {
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* The nav keeps its text links for wide windows only: the language switcher and Register button always stay. */
@media (max-width: 980px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}
@media (max-width: 520px) {
  .nav .wrap {
    gap: 12px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav .btn {
    padding: 0 12px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }
  .lang select {
    padding: 0 24px 0 29px;
    font-size: 0.74rem;
  }
  .lang-icon {
    left: 9px;
  }
}

/* ============================================================
   Hero: "See it move" beside the headline
   ============================================================ */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero .hero-main > h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}
.hero-trailer {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.trailer-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.trailer-label .rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magma);
  box-shadow: 0 0 10px var(--magma);
}
.hero-trailer .trailer-frame {
  box-shadow: 0 0 60px rgba(255, 90, 40, 0.18);
}

/* Until the finished trailer exists, a reel of real clips plays in the frame. */
.reel {
  position: absolute;
  inset: 0;
}
.reel-poster,
.reel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel video {
  opacity: 0;
  transition: opacity 600ms ease;
}
.reel video.on {
  opacity: 1;
}
.reel-bar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 38px 14px 12px;
  background: linear-gradient(0deg, rgba(10, 7, 16, 0.92), rgba(10, 7, 16, 0.72) 45%, rgba(10, 7, 16, 0));
}
.reel-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.reel-soon {
  padding: 3px 9px;
  border: 1px solid rgba(255, 106, 26, 0.5);
  background: rgba(10, 7, 16, 0.55);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb27a;
  white-space: nowrap;
}

/* "Play the trailer": appears over the reel once the trailer is on Mux. */
.trailer-play {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: max-content; /* left: 50% would otherwise cap the button at half the frame */
  max-width: calc(100% - 24px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 16px;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #140a10;
  background: var(--lava-button);
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 34px rgba(255, 90, 40, 0.45);
  transition: box-shadow 160ms, filter 160ms;
}
.trailer-play[hidden] {
  display: none;
}
.trailer-play:hover:not(:disabled),
.trailer-play:focus-visible {
  box-shadow: 0 0 54px rgba(255, 90, 40, 0.75);
  filter: brightness(1.06);
}
.trailer-play:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.trailer-play:disabled {
  cursor: progress;
  filter: saturate(0.6);
}
.play-mark {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #140a10;
}
.trailer-frame mux-player {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  background: #000;
  --media-object-fit: contain;
}

@media (max-width: 1000px) {
  /* One column: headline, then the reel, then the rest. .hero-main dissolves so its children can be reordered. */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: clamp(14px, 1.8vw, 20px);
  }
  .hero-main {
    display: contents;
  }
  .hero-main > .desc { order: 1; }
  .hero-main > .logo { order: 2; }
  .hero-main > h1 { order: 3; font-size: clamp(1.7rem, 6vw, 2.6rem); }
  .hero-trailer { order: 4; justify-self: stretch; }
  .hero-main > .lede { order: 5; }
  .hero-main > .hero-covj { order: 6; }
  .hero-main > .hero-actions { order: 7; }
  .hero-main > .hero-note { order: 8; }
}

/* ============================================================
   Co-VJ: two halves, one visible at a time
   ============================================================ */

.covj-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 34px);
}
.covj-head {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.covj-head .lede {
  max-width: 62ch;
}

.covj-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.covj-tab {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 20px 20px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: rgba(10, 7, 16, 0.55);
  border: 1px solid var(--hair);
  cursor: pointer;
  transition: border-color 160ms, background 160ms, box-shadow 160ms;
}
.covj-tab:hover {
  border-color: var(--ink-40);
}
.covj-tab[aria-selected='true'] {
  background: rgba(107, 43, 217, 0.2);
  border-color: rgba(155, 107, 255, 0.75);
  box-shadow: inset 0 3px 0 var(--agent-500), 0 0 34px rgba(155, 107, 255, 0.16);
}
/* a small notch pointing at the open half */
.covj-tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 28px;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: #1a1030;
  border-right: 1px solid rgba(155, 107, 255, 0.75);
  border-bottom: 1px solid rgba(155, 107, 255, 0.75);
  transform: rotate(45deg);
}
.tab-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.tab-kicker b {
  font-weight: 500;
  color: var(--agent-300);
}
.covj-tab strong {
  font-weight: 900;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.tab-sub {
  color: var(--ink-70);
  font-size: 0.92rem;
  line-height: 1.45;
}

.covj-view {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(22px, 3vw, 32px);
  padding-top: 6px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.covj-view[hidden] {
  display: none;
}
.covj-view:focus-visible {
  outline: 2px solid var(--agent-400);
  outline-offset: 6px;
}
.covj-intro {
  max-width: 68ch;
  color: var(--ink-80);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}
.covj-block {
  display: grid;
  gap: 16px;
}
.block-h {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agent-300);
}

/* numbered steps and three-up cards */
.steps4,
.tri {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tri {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps4 li,
.tri li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 18px 20px;
  background: rgba(10, 7, 16, 0.6);
  border: 1px solid var(--hair);
  border-top: 2px solid rgba(155, 107, 255, 0.5);
}
.steps4 .n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #140a10;
  background: var(--agent-400);
}
.steps4 h4,
.tri h4 {
  font-weight: 900;
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--agent-300);
}
.steps4 p,
.tri p {
  color: var(--ink-70);
  font-size: 0.93rem;
  line-height: 1.5;
}

.covj-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.control-copy {
  display: grid;
  gap: 14px;
}
.control-copy > p {
  font-weight: 800;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-70);
  line-height: 1.5;
}
.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--agent-500);
  box-shadow: 0 0 10px var(--agent-glow);
}
.points em {
  font-style: normal;
  color: #ff8a8a;
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.control h3,
.control h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 4px;
}

.ask ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ask li {
  align-self: stretch;
}

.covj-why {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .steps4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tri,
  .ask ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .covj-control {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .covj-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
  .covj-tab[aria-selected='true']::after {
    display: none;
  }
  .steps4,
  .covj-why {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Japanese headings in the new pieces */
html:lang(ja) :is(.covj-tab strong, .steps4 h4, .tri h4, .control-copy > p) {
  letter-spacing: 0;
  line-height: 1.25;
  font-weight: 800;
}
html:lang(ja) .hero .hero-main > h1 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.covj-tabs {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ============================================================
   Lighting: demo video, three steps, the ten looks
   ============================================================ */

.eyebrow .tag {
  margin: 0 0 0 12px;
  vertical-align: middle;
}

/* The three steps sit in a row; once the demo video is switched on they stack beside it. */
.lighting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.lighting-grid.has-video {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.lighting-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lighting-grid.has-video .lighting-steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.lighting-steps .step {
  padding: 24px 22px 26px;
}
.lighting-steps .step h3 {
  font-size: 1.4rem;
}

.lighting-demo,
.venue-demo {
  margin: 0;
  display: grid;
  gap: 12px;
}
.lighting-demo[hidden],
.venue-demo[hidden] {
  display: none;
}
.lighting-demo .trailer-frame,
.venue-demo .trailer-frame {
  box-shadow: 0 0 60px rgba(255, 90, 40, 0.18);
}
.demo-caption {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-70);
}

.looks {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}
.looks-head {
  display: grid;
  gap: 6px;
}
.looks-head h3 {
  font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.looks-head p {
  max-width: 62ch;
  color: var(--ink-70);
  line-height: 1.55;
}
.looks-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 12px;
}
.look {
  display: grid;
  gap: 8px;
  align-content: start;
}
.look img {
  display: block;
  width: 100%;
  height: auto; /* the height attribute would otherwise override the aspect ratio */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--hair);
}
.look-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.look-t {
  color: var(--ink-60);
}
.look-n {
  color: var(--ink);
  text-align: right;
}
.look .meter {
  gap: 4px;
}
.look .meter i {
  width: 7px;
  height: 7px;
}

.lighting-control {
  margin-top: clamp(32px, 4vw, 48px);
}
.lighting-fine {
  max-width: 86ch;
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .lighting-grid.has-video {
    grid-template-columns: minmax(0, 1fr);
  }
  .lighting-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .looks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Japanese: no tracking on the new headings */
html:lang(ja) :is(.lighting-steps .step h3, .looks-head h3, .venue-steps .step h3) {
  letter-spacing: 0;
  line-height: 1.25;
}

/* ============================================================
   App screenshot (the Controller, under the feature cards)
   ============================================================ */

.app-shot {
  margin: clamp(32px, 4vw, 48px) 0 0;
  display: grid;
  gap: 12px;
}
.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #0a0710;
  border: 1px solid var(--hair);
  box-shadow: 0 0 60px rgba(255, 90, 40, 0.14);
}

/* ============================================================
   Virtual venue: demo video across the top, four steps, four facts
   ============================================================ */

.venue-demo {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.venue-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.venue-steps .step {
  padding: 24px 22px 26px;
}
.venue-steps .step h3 {
  font-size: 1.3rem;
}
.venue-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(24px, 3vw, 36px);
}
.venue-fine {
  max-width: 86ch;
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .venue-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .venue-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .venue-facts li:nth-child(3) {
    border-left: 0;
  }
  .venue-facts li:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
}
@media (max-width: 760px) {
  .venue-steps,
  .venue-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .venue-facts li + li {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
}

/* ============================================================
   Privacy policy page (public/privacy.html)
   ============================================================ */

.doc-page {
  padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) 0 clamp(56px, 9vw, 112px);
}
.doc.wrap {
  max-width: calc(76ch + 2 * var(--gutter));
}
.doc h1 {
  margin-top: 12px;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.doc-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-60);
}
.doc-lede {
  margin-top: 28px;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-80);
}
.doc h2 {
  margin-top: clamp(36px, 5vw, 56px);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.doc h3 {
  margin-top: 26px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.doc p,
.doc li {
  color: var(--ink-70);
  line-height: 1.7;
}
.doc p {
  margin-top: 12px;
}
.doc strong {
  color: var(--ink);
  font-weight: 700;
}
.doc ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.doc li::marker {
  color: var(--ember);
}
.doc a {
  color: var(--amber);
  text-underline-offset: 3px;
}
.doc code {
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--ink);
  background: var(--ink-10);
}
.doc-short {
  margin-top: 32px;
  padding: 22px 24px 24px;
  background: rgba(20, 16, 25, 0.86);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--ember);
}
.doc-short h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.foot-links a[aria-current='page'] {
  color: var(--ink);
}
