:root {
  --bg: #08050c;
  --ink: #ffffff;
  --dim: rgba(255, 255, 255, 0.62);
  --red: #e50914;
  --rail: 5rem;
  --gutter: 9.4rem;
  --serif: "Cinzel", "Didot", "Bodoni MT", "Times New Roman", serif;
  --script: "Great Vibes", "Snell Roundhand", "Segoe Script", cursive;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { font-size: clamp(13px, 0.84vw, 24px); background: var(--bg); }
body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--bg);
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

/* ---------- shared type ---------- */
.label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase;
  padding-left: 1rem; border-left: 0.22rem solid var(--red); line-height: 1.1;
}
.label span { color: var(--dim); letter-spacing: 0.2em; margin-left: 0.6em; }
.title {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: 5.2rem; line-height: 1.02; letter-spacing: 0.02em; margin-top: 1rem;
  text-wrap: balance;
}
.script { font-family: var(--script); font-size: 3.6rem; line-height: 1.1; margin-top: 0.4rem; }
.tagline { font-size: 0.78rem; letter-spacing: 0.6em; text-transform: uppercase; color: var(--dim); margin-top: 0.9rem; }

.actions { display: flex; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.7rem; border-radius: 0.35rem;
  background: #fff; color: #000; font-weight: 600; font-size: 1.05rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.btn svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn--ghost { background: rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(6px); }
.btn:hover, .btn.is-focus, .btn:focus-visible {
  outline: none; transform: scale(1.06);
  box-shadow: 0 0 0 0.18rem #fff, 0 0 2rem rgba(255, 80, 200, 0.55);
}

/* ---------- monogram ---------- */
.mark {
  display: inline-flex; font-family: var(--script); color: var(--red);
  font-size: 3.4rem; line-height: 1; text-shadow: 0 0 1.2rem rgba(229, 9, 20, 0.6);
}
.mark b { font-weight: 400; }
.mark b + b { margin-left: -0.42em; transform: translateY(0.12em); }
.mark img { height: 1.2em; width: auto; }
.mark--xl { font-size: 11rem; }

/* ---------- splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 60; background: #000;
  display: grid; place-content: center; justify-items: center;
  transition: opacity 0.9s 0.5s, visibility 0.9s 0.5s;
}
.splash .mark { opacity: 0; }
.splash.is-live .mark { animation: markIn 1.6s var(--ease) both; }
.splash.is-out { opacity: 0; visibility: hidden; }
.splash.is-out .mark { transform: scale(7); opacity: 0; transition: transform 1.3s ease-in, opacity 0.7s 0.6s; }
@keyframes markIn { from { opacity: 0; transform: scale(0.6); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- stage background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; }
.bg svg, .card svg.art, .detail__art svg { width: 100%; height: 100%; }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 5, 12, 0.85) 0%, rgba(8, 5, 12, 0.35) 38%, transparent 60%),
    linear-gradient(180deg, transparent 45%, rgba(8, 5, 12, 0.9) 85%);
}

/* ---------- chrome ---------- */
.rail {
  position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; padding-top: 1.2rem;
  background: linear-gradient(90deg, rgba(8, 5, 12, 0.7), transparent);
}
.rail__icons { display: grid; gap: 2rem; margin-top: 5.5rem; }
.rail__icons svg, .top svg {
  width: 1.7rem; height: 1.7rem; fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.rail__icons { position: relative; }
.rail__icons::before {
  content: ""; position: absolute; left: -1.65rem; top: 0; width: 0.24rem; height: 1.7rem; background: var(--red);
}
.top {
  position: fixed; z-index: 20; top: 1.6rem; right: 2.4rem;
  display: flex; align-items: center; gap: 1.6rem;
}
.heart {
  width: 2.5rem; height: 2.5rem; border-radius: 0.4rem; background: var(--red);
  display: grid; place-items: center; transition: transform 0.2s var(--ease);
}
.heart:hover, .heart:active { transform: scale(1.15); }
.heart svg { width: 1.5rem; height: 1.5rem; }
.love {
  position: fixed; z-index: 70; pointer-events: none; color: #ff3b6b; font-size: 1.6rem;
  animation: love 1.4s ease-out forwards;
}
@keyframes love {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(var(--sc)); opacity: 0; }
}

/* ---------- home ---------- */
.home {
  position: relative; z-index: 10; height: 100dvh; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; scroll-behavior: smooth;
}
.home::-webkit-scrollbar, .row::-webkit-scrollbar { display: none; }
.hero { min-height: 60dvh; padding: 15dvh 2rem 2rem var(--gutter); }
.hero .title { max-width: 6.2em; }
.hero > * { animation: rise 0.9s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: 0.08s; }
.hero > :nth-child(3) { animation-delay: 0.16s; }
.hero > :nth-child(4) { animation-delay: 0.24s; }
.hero > :nth-child(5) { animation-delay: 0.32s; }
body.is-waiting .hero > * { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translateY(1.6rem); } to { opacity: 1; transform: none; } }

.shelf { padding-bottom: 8dvh; }
.shelf__title { font-size: 1.5rem; font-weight: 600; padding-left: var(--gutter); }
.row {
  display: flex; gap: 1.3rem; overflow-x: auto; scrollbar-width: none;
  padding: 2.6rem var(--gutter) 3rem; scroll-padding-inline: var(--gutter);
}
.card {
  contain: layout paint;
  position: relative; flex: 0 0 15.5rem; aspect-ratio: 2 / 3; border-radius: 0.7rem; overflow: hidden;
  opacity: 0.55; transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.35s, box-shadow 0.35s;
  box-shadow: 0 0 0 0 transparent;
}
.card img, .card svg.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 5, 12, 0.85));
}
.card .mark { position: absolute; z-index: 2; top: 0.7rem; left: 0.9rem; font-size: 1.9rem; }
.card__text {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.3rem; text-align: center;
  font-size: 1.25rem; font-weight: 500; line-height: 1.25; padding: 0 1.2rem; text-wrap: balance;
}
.card__text::after {
  content: ""; display: block; margin: 0.7rem auto 0; width: 0; height: 0;
  border-left: 0.6rem solid #fff; border-top: 0.38rem solid transparent; border-bottom: 0.38rem solid transparent;
}
.card.is-focus, .card:focus-visible {
  outline: none; opacity: 1; transform: scale(1.12); z-index: 3;
  box-shadow: 0 0 0 0.2rem #fff, 0 0 3.5rem rgba(255, 60, 200, 0.55);
}

/* ---------- detail ---------- */
.detail { position: fixed; inset: 0; z-index: 30; background: var(--bg); animation: zoomIn 0.55s var(--ease) both; }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
.detail__art { position: absolute; inset: 0 0 0 30%; }
.detail__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.detail__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 5, 12, 0.55) 28%, transparent 55%),
    linear-gradient(180deg, transparent 60%, var(--bg));
}
.detail__body {
  position: relative; height: 100%; max-width: 52rem;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 2rem 0 var(--gutter);
}
.detail__body > * { animation: rise 0.7s 0.2s var(--ease) both; }
.detail__sub { font-size: 1.7rem; font-weight: 500; margin-top: 1.4rem; }
.detail__meta { color: var(--dim); font-size: 1.15rem; margin-top: 0.7rem; display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.detail__meta i {
  font-style: normal; font-size: 0.8em; font-weight: 600; color: #fff;
  border: 1px solid var(--dim); border-radius: 0.25rem; padding: 0.05em 0.45em;
}
.detail__blurb { color: var(--dim); font-size: 1.15rem; line-height: 1.5; margin-top: 1rem; max-width: 34rem; }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 40; background: #000; animation: fade 0.4s both; }
@keyframes fade { from { opacity: 0; } }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__title {
  position: absolute; top: 1.6rem; left: 2rem; font-size: 1.2rem; font-weight: 500;
  text-shadow: 0 0.1rem 0.6rem #000; pointer-events: none; animation: titleOut 1s 3s forwards;
}
@keyframes titleOut { to { opacity: 0; } }
.player__close {
  position: absolute; top: 0.8rem; right: 1.4rem; width: 3rem; height: 3rem;
  font-size: 2.2rem; line-height: 1; border-radius: 50%; background: rgba(0, 0, 0, 0.5);
}
.player__missing {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 1rem; padding: 2rem; color: var(--dim);
  background: radial-gradient(circle at 50% 30%, #3a0d4a, #000 70%);
}
.player__missing .title { color: #fff; font-size: 3.6rem; }

/* ---------- info ---------- */
.info {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); animation: fade 0.3s both;
}
.info__card {
  width: min(44rem, 100%); padding: 3rem; border-radius: 1rem;
  background: linear-gradient(160deg, #2a0f3a, #0d0714 70%);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.info__card .title { font-size: 3.4rem; }
.info__card .btn { margin-top: 2rem; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  html { font-size: 15px; }
  :root { --gutter: 1.25rem; }
  .rail { width: auto; background: none; padding: 0.9rem 0 0 1.1rem; bottom: auto; }
  .rail__icons, .top > svg { display: none; }
  .top { top: 1.1rem; right: 1.1rem; }
  .mark { font-size: 2.6rem; }
  .mark--xl { font-size: 7rem; }
  .hero { min-height: 58dvh; padding-top: 22dvh; }
  .title { font-size: 2.9rem; }
  .script { font-size: 2.5rem; }
  .tagline { letter-spacing: 0.4em; }
  .bg::after { background: linear-gradient(180deg, rgba(8, 5, 12, 0.25), rgba(8, 5, 12, 0.92) 80%); }
  .shelf__title { font-size: 1.25rem; }
  .row { gap: 0.8rem; padding-top: 1.4rem; scroll-snap-type: x proximity; }
  .card { flex-basis: 9.6rem; opacity: 0.9; scroll-snap-align: start; }
  .card.is-focus, .card:focus-visible { transform: scale(1.04); }
  .card__text { font-size: 0.95rem; bottom: 0.9rem; padding: 0 0.6rem; }
  .card .mark { font-size: 1.4rem; }
  .detail__art { inset: 0 0 42% 0; }
  .detail__art::after { background: linear-gradient(180deg, transparent 40%, var(--bg)); }
  .detail__body { justify-content: flex-end; padding-bottom: 12dvh; }
  .detail__sub { font-size: 1.2rem; }
  .info__card { padding: 2rem 1.5rem; }
  .info__card .title { font-size: 2.3rem; }
  .player__missing .title { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
