@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000;
  --gold: #f4bb2e;
  --gold-dark: #e3a00b;
  --caption: #9499a8;
  --muted: #585d6b;
  --border: #3d3d3d;
  --text: #fff;
  --panel: #111;
  --sticky-h: 104px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: Inter, Helvetica, "Liberation Sans", sans-serif; min-height: 100%; }
button, a { font-family: inherit; }
body { overflow-x: hidden; }

.legal-row {
  display: flex;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--caption);
  font-weight: 500;
}
.disclaimer { font-size: 11px; line-height: 1.45; color: var(--muted); max-width: 72ch; }

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #111;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-leave {
  background: transparent;
  border: 0;
  color: var(--caption);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 8px;
}
.btn-leave:hover { color: var(--text); }

/* Gate */
.gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px 40px;
  background: radial-gradient(800px 400px at 50% 20%, #1a1408, #000 62%);
}
.gate .legal-row { position: absolute; top: 18px; left: 20px; }
.gate-card { text-align: center; max-width: 420px; }
.gate-card h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 12px; }
.gate-copy { color: var(--caption); font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
.gate-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gate .disclaimer { margin-top: 36px; text-align: center; }
.denied { margin-top: 16px; color: var(--gold); font-size: 14px; }

/* App */
.app { min-height: 100svh; display: flex; flex-direction: column; padding-bottom: var(--sticky-h); }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(0,0,0,0.88);
}
.tape-name { font-size: 13px; font-weight: 500; color: var(--text); text-align: right; white-space: nowrap; }

.catalog { flex: 0 0 auto; padding: 12px 12px 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #161616;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  isolation: isolate;
}
.tile img, .tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile video { opacity: 0; transition: opacity 0.2s ease; }
.tile.is-hover video.has-src { opacity: 1; }
.tile .label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 28px 10px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  color: #fff;
  pointer-events: none;
}
.tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }

/* Player */
.player {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000;
  display: flex;
  flex-direction: column;
}
.gate[hidden],
.app[hidden],
.player[hidden] { display: none !important; }
.back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.back:hover { border-color: var(--gold); color: var(--gold); }

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #000;
}
.stage img, .stage video, .grain, .vignette, .glitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage img, .stage video { object-fit: cover; }
.stage video { opacity: 0; }
.stage video.is-on { opacity: 1; }
.grain {
  background: url("../media/grain.png") repeat;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.vignette {
  background: radial-gradient(ellipse at center, transparent 46%, rgba(0,0,0,0.55) 100%),
              linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 38%);
  pointer-events: none;
}
.glitch {
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(244,187,46,0.0), rgba(244,187,46,0.0));
  mix-blend-mode: screen;
}
.stage-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 56px;
  z-index: 3;
  max-width: 640px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}
.title {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.support { margin-top: 8px; color: #ddd; font-size: 15px; line-height: 1.4; max-width: 46ch; }
.scrub {
  position: absolute;
  left: 20px; right: 20px; bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scrub-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  cursor: pointer;
}
.scrub-fill { display: block; height: 100%; width: 12%; background: var(--gold); border-radius: 2px; }
.timecode { font-size: 12px; color: var(--caption); min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }

.dock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 14px;
  background: #000;
  border-top: 1px solid var(--border);
}
.rail {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: #3d3d3d; border-radius: 2px; }
.rail-item {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  aspect-ratio: 16 / 9;
  border: 2px solid transparent;
  padding: 0;
  background: #161616;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.rail-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-item.is-on { border-color: var(--gold); }
.cta { flex: 0 0 auto; min-width: 180px; }

.foot { padding: 18px 16px 8px; }

/* Locked teaser tiles complete the last catalog row */
.tile-locked {
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 0 0 1px rgba(244,187,46,0.28);
}
.tile-locked img {
  will-change: transform;
}
.lock-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.28) 52%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  overflow: hidden;
}
.lock-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.7));
}
.lock-text {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.tile-locked .label {
  opacity: 1;
  transform: none;
  z-index: 3;
}

/* Conversion block fills the leftover viewport under the grid */
.below {
  flex: 1 0 auto;
  background: linear-gradient(to bottom, #0c0c0c, #000 70%);
  display: flex;
  flex-direction: column;
}
.convert {
  padding: 12px 16px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.convert-title {
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.convert-support {
  margin-top: 6px;
  color: var(--caption);
  font-size: 13px;
  line-height: 1.4;
  max-width: 52ch;
}
.benefits {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 920px;
  margin: 14px auto 0;
  padding: 0;
}
.chip {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(244,187,46,0.55);
  border-radius: 8px;
  background: #141414;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  text-wrap: pretty;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover, .chip:focus-visible {
  background: #1f1808;
  border-color: var(--gold);
  color: #ffe08a;
}
.chip:active { transform: scale(0.99); }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.convert-note {
  display: none;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 7px 16px calc(8px + env(safe-area-inset-bottom));
  background: #000;
  border-top: 1px solid var(--border);
}
.legal-strip {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
.legal-strip p { margin: 0; }
.legal-strip a, .legal-links a {
  color: var(--caption);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-strip a:hover, .legal-links a:hover { color: var(--text); }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
  font-size: 11px;
}
.foot .legal-links { margin-top: 8px; }
.sticky-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-copy {
  font-size: 14px;
  font-weight: 500;
  color: #eee;
  line-height: 1.3;
}
.sticky-cta .btn-gold {
  flex: 0 0 auto;
  min-width: 180px;
}
.app.is-playing .sticky-cta {
  visibility: hidden;
  pointer-events: none;
}


/* Short desktops: slightly flatter tiles so the convert block sits fully above the sticky bar */
@media (max-height: 860px) and (min-width: 701px) {
  .tile { aspect-ratio: 16 / 8.6; }
  .convert { padding: 8px 16px 8px; }
  .benefits { margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tile-locked img { transform: none !important; }
}

@media (max-width: 700px) {
  :root { --sticky-h: 122px; }
  .top { padding: 10px 12px; }
  .tape-name { font-size: 12px; }
  .tile { aspect-ratio: 16 / 7.8; }
  .convert { padding: 8px 12px 12px; }
  .convert-title { font-size: 17px; }
  .convert-support { font-size: 12px; margin-top: 4px; }
  .benefits { flex-direction: column; flex-wrap: nowrap; margin: 8px 0 0; gap: 6px; max-width: 640px; }
  .chip { flex: 1 1 auto; min-height: 44px; padding: 8px 10px; font-size: 12px; }
  .sticky-copy { font-size: 13px; }
  .sticky-cta .btn-gold { min-width: 150px; padding: 10px 14px; }
  .sticky-row { gap: 10px; }
}


@media (max-width: 1100px) {
  .rail-item { flex: 1 0 88px; }
}
@media (max-width: 700px) {
  .dock { flex-direction: column; align-items: stretch; }
  .cta { width: 100%; }
  .rail-item { flex: 1 1 0; min-width: 0; }
  .stage-copy { bottom: 44px; left: 14px; right: 14px; }
  .title { font-size: 28px; }
}

.sound-btn {
  position: absolute;
  right: 14px;
  bottom: 56px;
  z-index: 4;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.sound-btn:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 700px) {
  .sound-btn { right: 14px; bottom: 48px; }
}

/* Legal documents */
.doc {
  min-height: 100svh;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.doc .top { position: static; margin: -24px -20px 24px; }
.doc h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.doc h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
}
.doc p, .doc li {
  color: var(--caption);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
}
.doc ul { padding-left: 1.2em; margin-bottom: 12px; }
.doc a { color: var(--gold); }
.doc .home-link {
  display: inline-block;
  margin: 8px 0 16px;
  color: var(--caption);
  font-size: 13px;
}
