:root {
  --bg: #0a0b0d;
  --bg-edge: #060708;
  --tile-top: #171a20;
  --tile-bottom: #0e1014;
  --well: rgba(0, 0, 0, .3);
  --bezel-light: rgba(255, 255, 255, .11);
  --bezel-dark: rgba(0, 0, 0, .6);
  --stroke: rgba(255, 255, 255, .06);
  --text: #ece9e1;
  --text-2: #9c9b95;
  --text-3: #5f615f;
  --amber: #f5b544;
  --ice: #8fd3f4;
  --moss: #9bd97a;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --r-tile: 22px;
  --r-well: 12px;
  --r-badge: 8px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1300px 900px at 12% -20%, rgba(255, 255, 255, .045), transparent 60%),
    radial-gradient(1100px 700px at 50% 130%, rgba(245, 181, 68, .05), transparent 60%),
    linear-gradient(var(--bg), var(--bg-edge));
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text-2); }
.fine { font-size: 12px; color: var(--text-3); }

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

.lamp {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c, var(--text-3)); vertical-align: middle; margin-right: 10px;
  box-shadow: 0 0 0 0 transparent;
}
.lamp.on { --c: var(--moss); box-shadow: 0 0 8px var(--c); }
.rows .lamp, .kicker .lamp { box-shadow: 0 0 8px var(--c); }

/* ---------- Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: linear-gradient(rgba(10, 11, 13, .92), rgba(10, 11, 13, .6));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background:
    linear-gradient(var(--amber), var(--amber)) 3px 3px / 7px 7px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 12px 3px / 7px 7px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 3px 12px / 7px 7px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 12px 12px / 7px 7px no-repeat,
    var(--bg-edge);
  box-shadow: inset 0 1px 0 var(--bezel-light), 0 0 14px rgba(245, 181, 68, .35);
}
.mark.small { width: 18px; height: 18px; background-size: 6px 6px, 6px 6px, 6px 6px, 6px 6px; background-position: 2px 2px, 10px 2px, 2px 10px, 10px 10px; }
.nav { display: flex; gap: 22px; font-size: 15px; color: var(--text-2); }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav a:not(:last-child) { display: none; } }

/* ---------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.97); }
.btn.primary {
  background: var(--amber); color: var(--bg-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px rgba(245, 181, 68, .22);
}
.btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 32px rgba(245, 181, 68, .32); }
.btn.ghost {
  background: rgba(255, 255, 255, .06); color: var(--text);
  box-shadow: inset 0 1px 0 var(--bezel-light), inset 0 -1px 0 var(--bezel-dark);
}
.btn.ghost:hover { background: rgba(255, 255, 255, .09); }
.btn.big { height: 60px; padding: 0 32px; font-size: 17px; }
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .07); color: var(--text-2);
  box-shadow: inset 0 1px 0 var(--bezel-light), inset 0 -1px 0 var(--bezel-dark);
  display: inline-grid; place-items: center;
}
.round:hover { color: var(--text); background: rgba(255, 255, 255, .1); }

/* ---------- Hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--gutter) 40px;
  min-height: calc(100vh - 60px);
  overflow: visible;
}
.dial {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(1200px, 130vw); height: auto; right: -12%; top: 50%; transform: translateY(-50%);
  opacity: .9;
}
.dial .tick { stroke: rgba(255, 255, 255, .07); stroke-width: 2; stroke-linecap: round; }
.dial .tick.lit { stroke: rgba(245, 181, 68, .55); }
.dial-arc {
  fill: none; stroke: rgba(245, 181, 68, .16); stroke-width: 1;
  stroke-dasharray: 75 25; stroke-dashoffset: 0; transform: rotate(-225deg); transform-origin: 500px 500px;
}
.hero-copy { position: relative; z-index: 1; }
.kicker { margin-bottom: 26px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -0.028em; }
.hero h1::after { content: ""; display: block; width: 72px; height: 3px; margin: 26px 0 0; border-radius: 2px; background: var(--amber); box-shadow: 0 0 12px rgba(245, 181, 68, .7); }
.lede { margin-top: 24px; max-width: 46ch; color: var(--text-2); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta.center { flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
.hint { margin-top: 26px; }

.stage { position: relative; z-index: 1; aspect-ratio: 16 / 10; width: 100%; min-height: 320px; }
.stage::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 10%; height: 18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 181, 68, .18), transparent 70%);
  filter: blur(14px);
}
#stage { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage-caption {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 0 var(--bezel-light); color: var(--text-2);
}
.ripple {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 2px solid var(--amber); pointer-events: none; opacity: .9;
  animation: ripple .55s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Reveal, once, on load. */
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .26s; }
.stage { opacity: 0; animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) forwards; }
.dial-arc { animation: arc 1.6s .3s cubic-bezier(.2, .7, .2, 1) forwards; stroke-dashoffset: 75; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes arc { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .stage { animation: none; opacity: 1; transform: none; }
  .dial-arc { animation: none; stroke-dashoffset: 0; }
  .ripple { animation: none; display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .stage { order: -1; aspect-ratio: 16 / 11; }
  .dial { right: -40%; top: 20%; width: 160vw; opacity: .6; }
}

/* ---------- Sections */
section { max-width: var(--max); margin: 0 auto; padding: 88px var(--gutter); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.02em; }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 18px; }

/* Screens reel: the panel's own aspect ratio, framed like the hardware. */
.screens { padding-left: 0; padding-right: 0; max-width: none; }
.screens .section-head, .reel-nav { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.reel {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 20px;
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.frame { flex: 0 0 min(1180px, 88vw); scroll-snap-align: center; margin: 0; }
.panel {
  padding: 10px; border-radius: 18px;
  background: linear-gradient(var(--tile-top), var(--tile-bottom));
  box-shadow: inset 0 1px 0 var(--bezel-light), inset 0 -1px 0 var(--bezel-dark), 0 30px 60px rgba(0, 0, 0, .55);
}
.panel img { display: block; width: 100%; height: auto; border-radius: 9px; background: #000; }
figcaption { margin-top: 16px; color: var(--text-2); font-size: 15px; }
figcaption b { color: var(--text); font-weight: 600; margin-right: 8px; }
.reel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .18); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--amber); box-shadow: 0 0 8px rgba(245, 181, 68, .8); }

/* Spec sheet rows: numbered by lamp, not by decoration. */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stroke); }
.rows li {
  display: grid; grid-template-columns: 24px 120px 1fr; align-items: start; gap: 12px 20px;
  padding: 28px 0; border-bottom: 1px solid var(--stroke);
}
.rows .lamp { margin-top: 10px; }
.rows .label { padding-top: 6px; }
.rows h3 { font-size: 22px; letter-spacing: -0.015em; }
.rows p { margin-top: 8px; color: var(--text-2); max-width: 70ch; }
@media (max-width: 640px) {
  .rows li { grid-template-columns: 24px 1fr; }
  .rows .label { grid-column: 2; }
  .rows div { grid-column: 2; }
}

/* Film */
.player {
  position: relative; border-radius: var(--r-tile); overflow: hidden;
  background: #000; box-shadow: inset 0 1px 0 var(--bezel-light), 0 30px 70px rgba(0, 0, 0, .6);
  aspect-ratio: 16 / 9;
}
.player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.player .sound { position: absolute; right: 16px; bottom: 16px; background: rgba(0, 0, 0, .5); color: var(--text); }
.player .sound[aria-pressed="false"] .wave { opacity: .3; }

/* Install */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--r-tile);
  background: linear-gradient(var(--tile-top), var(--tile-bottom));
  box-shadow: inset 0 1px 0 var(--bezel-light), inset 0 -1px 0 var(--bezel-dark);
}
.steps li:nth-child(2) { box-shadow: inset 0 1px 0 rgba(245, 181, 68, .35), inset 0 -1px 0 var(--bezel-dark); }
.num {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-badge); display: grid; place-items: center;
  background: rgba(245, 181, 68, .14); color: var(--amber); font-size: 15px;
}
.steps h3 { font-size: 18px; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  max-width: var(--max); margin: 40px auto 0; padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--stroke); color: var(--text-2); font-size: 14px;
}
.foot > div { display: flex; align-items: center; gap: 12px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a:hover { color: var(--text); }
