@font-face {
  font-family: 'Sora';
  src: url('assets/Sora.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06080d;
  --surface: rgba(12, 16, 26, 0.72);
  --ink: #f8fafc;
  --muted: #94a3b8;
  --gold: #f59e0b;
  --champagne: #fde68a;
  --cyan: #38bdf8;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(58vmax 44vmax at 50% 38%, rgba(245, 158, 11, 0.14), transparent 72%),
    radial-gradient(44vmax 32vmax at 68% 68%, rgba(56, 189, 248, 0.10), transparent 72%),
    var(--bg);
}

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
}
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.lockup img { filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.42)); }
.lockup-text { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; display: grid; line-height: 1.05; }
.lockup b {
  font-weight: 700;
  background: linear-gradient(90deg, var(--champagne), var(--gold) 52%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lockup small {
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--champagne); opacity: 0.82; margin-top: 3px;
}

.telemetry { display: flex; gap: 8px; }
.pill {
  display: grid; gap: 2px; padding: 7px 12px; min-width: 78px;
  border: 1px solid rgba(253, 230, 138, 0.16); border-radius: 10px;
  background: var(--surface); backdrop-filter: blur(12px);
}
.pill span { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pill b { font-size: 14px; font-weight: 600; color: var(--champagne); font-variant-numeric: tabular-nums; }

.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; justify-items: center;
  padding: 84px 16px 48px; gap: 8px;
}
.stage {
  position: relative; z-index: 1; width: min(58vmin, 620px); aspect-ratio: 1; align-self: center;
  cursor: grab; touch-action: none;
}
.stage:active { cursor: grabbing; }
#mark { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.copy, .nav { z-index: 2; position: relative; }
.nav { position: fixed; }
.poster { object-fit: contain; opacity: 1; transition: opacity 0.9s ease; }
.stage.live .poster { opacity: 0; }

.copy { text-align: center; max-width: 920px; }
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--champagne);
  opacity: 0.86; margin-bottom: 14px;
}
h1 {
  font-weight: 300; font-size: clamp(32px, 4.9vw, 62px); line-height: 1.05; letter-spacing: -0.035em;
}
h1 span {
  font-weight: 600;
  background: linear-gradient(90deg, var(--champagne) 8%, var(--gold) 50%, var(--cyan) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hint { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .hint { display: none; } }
@media (max-width: 640px) { .stage { width: 86vw; } .hero { padding-top: 96px; } }
.coarse { display: none; }
@media (pointer: coarse) { .fine { display: none; } .coarse { display: inline; } }

/* ---- Control panel ---- */
.panel {
  position: fixed; z-index: 4; left: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%);
  width: 284px; padding: 14px; border-radius: 16px;
  border: 1px solid rgba(253, 230, 138, 0.16);
  background: var(--surface); backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.04); margin-bottom: 14px;
}
.tabs button {
  font: 500 12px 'Sora', sans-serif; color: var(--muted); background: none; border: 0;
  padding: 8px 4px; border-radius: 7px; cursor: pointer;
}
.tabs button[aria-selected="true"] {
  color: #06080d; font-weight: 600;
  background: linear-gradient(90deg, var(--champagne), var(--gold));
}
.pane { display: none; }
.pane.active { display: grid; gap: 12px; }
.ctrl { display: grid; gap: 6px; font-size: 12px; color: #e2e8f0; }
.ctrl span { display: flex; justify-content: space-between; }
.ctrl output { color: var(--champagne); font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 4px; background: rgba(253, 230, 138, 0.18); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  border: 2px solid #06080d; box-shadow: 0 0 12px rgba(245, 158, 11, 0.7); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--gold);
  border: 2px solid #06080d; cursor: pointer;
}
input[type="range"]:focus-visible { box-shadow: 0 0 0 2px var(--cyan); }

.btn {
  font: 500 12.5px 'Sora', sans-serif; color: var(--ink); cursor: pointer;
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04); transition: border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { border-color: rgba(253, 230, 138, 0.45); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn.primary {
  border: 0; color: #06080d; font-weight: 600;
  background: linear-gradient(90deg, var(--champagne), var(--gold) 55%, var(--cyan));
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}
.btn.toggle.on, .btn.cam.active {
  border-color: rgba(56, 189, 248, 0.6); color: #bae6fd; background: rgba(56, 189, 248, 0.10);
}
.btn.ghost { background: none; }
.row, .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swatches { display: grid; gap: 8px; }
.swatch { display: flex; align-items: center; gap: 10px; text-align: left; }
.swatch i { display: block; width: 64px; height: 14px; border-radius: 7px; flex: none; }
.swatch.active { border-color: rgba(253, 230, 138, 0.65); background: rgba(245, 158, 11, 0.09); }
.panel-toggle { display: none; }

@media (max-width: 1180px) {
  .telemetry .pill:nth-child(n+3) { display: none; }
}
@media (max-width: 900px) {
  .telemetry { display: none; }
  .panel-toggle {
    display: block; position: fixed; z-index: 5; right: 16px; bottom: 16px;
    font: 600 13px 'Sora', sans-serif; color: #06080d; padding: 11px 18px; border-radius: 999px; border: 0;
    background: linear-gradient(90deg, var(--champagne), var(--gold) 55%, var(--cyan));
    box-shadow: 0 8px 26px rgba(245, 158, 11, 0.45);
  }
  .panel {
    left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; transform: translateY(calc(100% + 24px));
    transition: transform 0.35s ease; max-height: 70svh; overflow: auto;
  }
  .panel.open { transform: none; }
}
[hidden] { display: none !important; }
.lockup img.live { visibility: hidden; }

.about {
  position: relative; z-index: 2; max-width: 740px; margin: 0 auto; padding: 24px 16px 76px; text-align: center;
}
.about h2 {
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--champagne); opacity: 0.85; margin-bottom: 12px;
}
.about p { font-size: 16px; line-height: 1.68; color: #cbd5e1; }
