:root {
  --night: #0b0c1f;
  --night2: #15163a;
  --ink: #f2ede6;
  --soft: #c9c6de;
  --dim: #9e9bb8;
  --gold: #ffe3b0;
  --sand: #f4d9a6;
  --line: #34345e;
  --out: cubic-bezier(.16, .84, .3, 1);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: var(--night); color: var(--ink); overflow: hidden; }
body { font: 300 clamp(17px, 1.55vw, 30px)/1.55 'Lexend', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

#deck { position: fixed; inset: 0; }
.slide { position: absolute; inset: 0; display: none; overflow: hidden auto; overscroll-behavior: contain; }
.slide.on { display: block; }
.slide.alt { background: rgba(21, 22, 58, .55); }
.slide.gold-slide { background: var(--sand); color: #14132b; }

/* every slide's content arrives at once and settles, a fast ease-out */
.in { position: relative; min-height: 100%; padding: clamp(28px, 6.6vw, 128px) clamp(20px, 6.6vw, 128px) clamp(96px, 9vw, 150px); display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2.6vw, 48px); }
.slide.on .in { animation: arrive .55s var(--out) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1, h2, h3 { font-weight: 300; line-height: 1.1; }
h2 { font-size: clamp(30px, 3.75vw, 72px); }
h3 { font-size: clamp(20px, 1.9vw, 36px); font-weight: 400; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
p { max-width: 1500px; }
.big { font-size: clamp(22px, 2.3vw, 44px); line-height: 1.45; }
.lead { font-size: clamp(18px, 1.9vw, 36px); color: #d9d5ea; }
.small { font-size: clamp(14px, 1.35vw, 26px); color: #b7b4d0; }
.soft { font-size: clamp(15px, 1.35vw, 26px); color: var(--soft); }
.lyric { color: var(--gold); font-size: clamp(17px, 1.55vw, 30px); line-height: 1.5; }

.title { font-size: clamp(34px, 6.25vw, 120px); font-weight: 200; letter-spacing: .3em; text-transform: uppercase; color: #f4eee6; }

/* covers: a picture under everything */
.bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed.dim { opacity: .45; }
.shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 31, .92) 0%, rgba(11, 12, 31, .35) 45%, rgba(11, 12, 31, 0) 70%); }
.in.bottom { justify-content: flex-end; }
.in.center { align-items: center; text-align: center; }
.in.center-left { justify-content: center; }
.end .title { letter-spacing: .25em; }

.row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.btn { display: inline-block; padding: .8em 1.6em; border: 1px solid rgba(255, 230, 190, .4); border-radius: 999px; font-size: clamp(14px, 1.1vw, 20px); letter-spacing: .06em; text-decoration: none; color: #ffe9c6; transition: border-color .3s, background .3s; }
.btn:hover, .btn:focus-visible { border-color: rgba(255, 230, 190, .9); background: rgba(255, 220, 170, .08); }
.btn.gold { background: var(--gold); color: #14132b; border-color: var(--gold); }
.btn.gold:hover { background: #fff0d4; }

/* two columns: words and a picture */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: center; }
.col { display: flex; flex-direction: column; gap: clamp(12px, 1.3vw, 24px); }
.split .col { gap: clamp(16px, 1.9vw, 36px); }
.pic { width: 100%; border-radius: clamp(12px, 1.25vw, 24px); object-fit: cover; display: block; }
.pic.tall { aspect-ratio: 752 / 824; max-height: 76vh; }

.cards { display: grid; gap: clamp(14px, 1.7vw, 32px); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: 1fr 1fr; }
.card { display: flex; flex-direction: column; gap: clamp(10px, 1vw, 20px); padding: clamp(22px, 2.5vw, 48px); border: 1px solid var(--line); border-radius: clamp(14px, 1.25vw, 24px); color: #d9d5ea; }
.card.fill { background: rgba(21, 22, 58, .8); border-color: transparent; }
.card h3 { color: var(--gold); }
.card .key { font-size: clamp(32px, 3.3vw, 64px); color: var(--gold); line-height: 1.1; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.25vw, 24px); }
.shot { padding: 0; border-radius: clamp(10px, .85vw, 16px); overflow: hidden; aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--out); }
.shot:hover img { transform: scale(1.04); }

.songs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.25vw, 24px); }
.song { position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 0; }
.song img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(10px, .85vw, 16px); display: block; transition: transform .5s var(--out), box-shadow .5s; }
.song::after { content: '▶'; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: clamp(18px, 2vw, 34px); color: rgba(255, 240, 220, .9); text-shadow: 0 0 24px rgba(0, 0, 0, .8); pointer-events: none; }
.song:hover img, .song:focus-visible img { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(255, 210, 150, .18); }
.song span { font-size: clamp(14px, 1.2vw, 22px); color: var(--gold); }
.song small, .partner small { display: block; font-size: clamp(12px, .95vw, 18px); color: var(--dim); }
.song span + small { margin-top: -6px; }
.credits { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: clamp(14px, 2vw, 40px); align-items: start; }
.credits .who { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.credits .songs { grid-template-columns: repeat(3, 1fr); }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 40px); padding-top: clamp(14px, 1.6vw, 28px); border-top: 1px solid var(--line); }
.partner { display: flex; flex-direction: column; gap: 10px; }
.partner h3 a { text-decoration: none; border-bottom: 1px solid rgba(255, 230, 190, .35); }
.partner h3 a:hover { border-color: var(--gold); }
.partner ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.partner li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.partner li span { font-size: clamp(14px, 1.1vw, 20px); color: #d9d5ea; }
h2 .watch { vertical-align: middle; margin-left: 12px; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 56px); max-width: 1200px; width: 100%; }
.team > div { display: flex; flex-direction: column; gap: 6px; }
.team dt { font-size: clamp(17px, 1.45vw, 28px); color: var(--gold); }
.team dt a { text-decoration: none; border-bottom: 1px solid rgba(255, 230, 190, .35); }
.team dt a:hover { border-color: var(--gold); }
.team dt span { color: var(--dim); font-size: .75em; }
.team dd { font-size: clamp(14px, 1.1vw, 20px); color: var(--soft); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4.2vw, 80px); }
.watch { font-size: clamp(12px, .85vw, 16px); letter-spacing: .08em; padding: .45em 1.1em; border: 1px solid rgba(255, 230, 190, .4); border-radius: 999px; color: #ffe9c6; }
.watch::before { content: '▶ '; font-size: .8em; }
.watch:hover, .watch:focus-visible { border-color: rgba(255, 230, 190, .9); background: rgba(255, 220, 170, .08); }

.screen { width: min(100%, calc((100vh - 220px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: clamp(10px, 1vw, 20px); overflow: hidden; background: #000; box-shadow: 0 30px 120px rgba(0, 0, 0, .6); }
.screen video { width: 100%; height: 100%; display: block; background: #000; }

/* the bar */
#bar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 999px; background: rgba(11, 12, 31, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 5; }
#bar > button { width: 40px; height: 40px; border-radius: 50%; font-size: 18px; color: var(--ink); opacity: .8; }
#bar > button:hover { opacity: 1; background: rgba(255, 255, 255, .06); }
#bar > button:disabled { opacity: .2; cursor: default; background: none; }
#dots { display: flex; gap: 8px; }
#dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(242, 237, 230, .28); padding: 0; transition: background .3s, transform .3s var(--out); }
#dots button.on { background: var(--gold); transform: scale(1.35); }
body.light #bar { background: rgba(20, 19, 43, .75); }

/* a song or a picture, over everything */
#modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(5, 5, 14, .86); padding: clamp(16px, 4vw, 64px); }
#modal[hidden] { display: none; }
#modal .frame { width: min(100%, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; animation: arrive .45s var(--out) both; }
#modal .frame iframe, #modal .frame img { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
#close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 20px; padding: .5em 1.1em; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: 14px; letter-spacing: .08em; }
#close:hover { border-color: rgba(255, 255, 255, .7); }

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

@media (max-width: 860px) {
  body { overflow: hidden; }
  .split, .pair, .cards.two, .cards.three { grid-template-columns: 1fr; }
  .pic.tall { aspect-ratio: 4 / 3; max-height: none; }
  .gallery { grid-template-columns: 1fr; }
  .songs, .credits .songs { grid-template-columns: 1fr 1fr; }
  .credits, .partners, .team { grid-template-columns: 1fr; }
  .in { justify-content: flex-start; padding-top: 56px; }
  .in.bottom, .in.center { justify-content: flex-end; }
  .in.center { justify-content: center; }
  .title { letter-spacing: .18em; }
  #dots { gap: 6px; }
  #dots button { width: 6px; height: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.on .in, #modal .frame { animation: none; }
}
