:root {
  --midnight: #0A1B33;
  --deep-blue: #0D2947;
  --lany-blue: #315D88;
  --sky-blue: #8EB8D8;
  --eyebrow-blue: #7EA6C9;
  --misty-blue: #C8DCE8;
  --off-white: #F5F3EE;
  --line: rgba(245, 243, 238, .1);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "Space Mono", monospace;

  --pad-x: clamp(24px, 6vw, 90px);
  --ease: cubic-bezier(.22, .61, .25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--off-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

svg {
  fill: currentColor;
}

em {
  font-style: italic;
  font-family: var(--font-display);
  color: rgb(241, 87, 141);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ============================================================ DEEP OCEAN BACKGROUND ============================================================ */
/* This layer is NOT position:fixed on purpose — it's sized to the full
   scrollable page height (see script.js setupOceanBg), so scrolling
   naturally reveals a lower slice of the image. That's what creates the
   "the further you scroll, the deeper you go" effect. */
.ocean-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  background-color: var(--midnight);
  /* fallback while the image loads / if missing */
  background-size: 100% 100%;
  background-position: top center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Extra depth cue: a fixed dark gradient that gets more opaque the further
   you scroll, layered on top of the ocean image. Purely optional — delete
   the #depthOverlay div + this rule + setupDepthOverlay() call if you'd
   rather let the image alone carry the depth. */
.depth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 14, 0) 0%, rgba(2, 6, 14, 1) 100%);
  opacity: 0;
  will-change: opacity;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 2;
}

/* ============================================================ GATE ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--midnight);
  transition: opacity 1s var(--ease), visibility 1s;
}

.gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate__moon {
  margin-bottom: 18px;
  filter: drop-shadow(0 0 16px rgba(200, 220, 232, .3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.gate__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--eyebrow-blue);
  margin: 0 0 18px;
}

.gate__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 7vw, 2rem);
  line-height: 1.5;
  margin: 0 0 38px;
  color: #fa4b7f;
}

.gate__hint {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(245, 243, 238, .5);
  font-style: italic;
}

/* ============================================================ THUMBPRINT HEART LOCK ============================================================ */
.thumb-gate {
  display: flex;
  justify-content: center;
}

.thumb-gate__svg {
  width: min(260px, 72vw);
  height: auto;
  overflow: visible;
}

.thumb__base {
  fill: rgba(200, 220, 232, .06);
  stroke: rgba(200, 220, 232, .4);
  stroke-width: 1.5;
  transition: fill .6s var(--ease), stroke .6s var(--ease);
}

.thumb__ridge {
  fill: none;
  stroke: rgba(200, 220, 232, .32);
  stroke-width: 1.4;
  transition: stroke .6s var(--ease);
}

/* left thumb: already pressed */
.thumb--left .thumb__base {
  fill: var(--sky-blue);
  stroke: var(--sky-blue);
}

.thumb--left .thumb__ridge {
  stroke: rgba(10, 27, 51, .55);
}

/* right thumb: waiting for a tap */
.thumb--right {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
}

.thumb--right .thumb__base {
  animation: thumb-pulse 2.4s ease-in-out infinite;
}

.thumb--right:focus-visible .thumb__base {
  stroke: var(--off-white);
}

@keyframes thumb-pulse {

  0%,
  100% {
    opacity: .75;
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(142, 184, 216, .55));
  }
}

.thumb--right.is-pressed {
  animation: thumb-pop .5s var(--ease);
  cursor: default;
}

.thumb--right.is-pressed .thumb__base {
  fill: var(--sky-blue);
  stroke: var(--sky-blue);
  animation: none;
}

.thumb--right.is-pressed .thumb__ridge {
  stroke: rgba(10, 27, 51, .55);
}

@keyframes thumb-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* ============================================================ NAV ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 27, 51, .55);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}

.nav.is-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--off-white);
}

.nav__links {
  display: flex;
  gap: 34px;
}

.nav__links a {
  color: rgba(245, 243, 238, .65);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  transition: color .25s;
}

.nav__links a:hover {
  color: var(--sky-blue);
}

.nav__motto {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: rgba(245, 243, 238, .45);
}

@media (max-width:768px) {
  .nav__links {
    display: none;
  }
}

/* ============================================================ MINI PLAYER ============================================================ */
.mini-player {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 41, 71, .75);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(200, 220, 232, .16);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  transform: translateY(140%);
  transition: transform .8s var(--ease);
  box-shadow: 0 20px 40px rgba(2, 9, 20, .4);
}

.mini-player.is-shown {
  transform: translateY(0);
}

.mini-vinyl {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a1a 0 6px, #262626 7px, #111 40%);
  animation: spin 6s linear infinite;
  animation-play-state: paused;
  display: grid;
  place-items: center;
}

.mini-vinyl.is-spinning {
  animation-play-state: running;
}

.mini-vinyl__hole {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-blue);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mini-player__meta {
  line-height: 1.2;
  min-width: 80px;
}

.mini-player__title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.mini-player__artist {
  margin: 0;
  font-size: 10px;
  color: var(--sky-blue);
  font-family: var(--font-mono);
  letter-spacing: .05em;
}

.mini-player__eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.mini-player__eq span {
  width: 3px;
  background: var(--sky-blue);
  border-radius: 2px;
  height: 4px;
  opacity: .5;
}

.mini-player__eq.is-active span {
  animation: eq 1s ease-in-out infinite;
  opacity: 1;
}

.mini-player__eq span:nth-child(1) {
  animation-delay: 0s;
}

.mini-player__eq span:nth-child(2) {
  animation-delay: .15s;
}

.mini-player__eq span:nth-child(3) {
  animation-delay: .3s;
}

.mini-player__eq span:nth-child(4) {
  animation-delay: .45s;
}

@keyframes eq {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 12px;
  }
}

.mini-player__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--sky-blue);
  color: var(--midnight);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mini-player__btn svg {
  width: 15px;
  height: 15px;
}

@media (max-width:480px) {
  .mini-player__meta {
    display: none;
  }
}

/* Container Printer Slot */
.birthday__printer-container {
  position: relative;
  width: min(280px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  transform: scale(0.8);
  transform-origin: center center;
  /* Menjaga posisi pembesaran/pengecilan di tengah */
  margin: 0 -40px;
  /* Opsional: mengompensasi sisa ruang kosong akibat scale */

}

/* Slot Cetakan (Printer Slot Lip) */
.printer-slot {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 18px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(200, 220, 232, 0.3);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(142, 184, 216, 0.15);
}

.printer-slot__lip {
  position: absolute;
  top: 4px;
  left: 8%;
  width: 84%;
  height: 8px;
  background: #040914;
  border-radius: 4px;
  border-bottom: 1px solid rgba(142, 184, 216, 0.2);
}

/* Masking tempat photostrip meluncur keluar */
.printer-mask {
  position: relative;
  z-index: 5;
  width: 90%;
  overflow: hidden;
  /* Memotong gambar yang belum keluar dari slot */
  padding-top: 4px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Photostrip styling */
.photo-strip {
  width: 100%;
  transform: translateY(-85%);
  /* Posisi awal tersembunyi di dalam slot */
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.25, 1);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

.photo-strip img {
  width: 100%;
  height: auto;
  display: block;
}

/* Saat di-scroll / aktif, meluncur keluar */
.birthday__printer-container.is-printed .photo-strip {
  transform: translateY(0%);
}

/* ============================================================ SHARED ============================================================ */
.album {
  position: relative;
  z-index: 3;
}

.section {
  position: relative;
  min-height: 100svh;
  padding: 120px var(--pad-x) 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--eyebrow-blue);
  margin: 0 0 20px;
}

.eyebrow--light {
  color: rgba(10, 27, 51, .55);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 40px;
  line-height: 1.15;
}

/* ============================================================ 01 — PLAYER ============================================================ */
.player-section {
  background: radial-gradient(ellipse at 50% 35%, rgba(49, 93, 136, .22), transparent 60%);
}

.player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 70px);
  width: 100%;
  max-width: 1300px;
  flex-wrap: wrap;
}

.player__side {
  width: 210px;
  flex-shrink: 0;
  text-align: left;
}

.player__side--right {
  text-align: right;
}

.player__side-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--eyebrow-blue);
  margin: 0 0 14px;
}

.player__side-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin: 0 0 22px;
}

.player__note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.player__note-meta {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sky-blue);
  letter-spacing: .05em;
}

.player__note-desc {
  margin: 0;
  font-size: 13px;
  color: rgba(245, 243, 238, .6);
  font-style: italic;
  line-height: 1.5;
}

.player__side-orbit {
  margin-left: auto;
  margin-top: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(142, 184, 216, .3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player__side-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-blue);
  box-shadow: 0 0 10px var(--sky-blue);
}

.player__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(360px, 90vw);
}

.player__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--sky-blue);
  border: 1px solid rgba(142, 184, 216, .35);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.player__ring {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(142, 184, 216, .35);
  box-shadow: 0 0 60px rgba(142, 184, 216, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.player__vinyl {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #12151c 0 28%, #1c2029 30%, #0e1016 100%);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .5);
  animation: spin 9s linear infinite;
  animation-play-state: paused;
}

.player__vinyl.is-spinning {
  animation-play-state: running;
}

.player__art {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .4);
}

.player__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__vinyl-hole {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--midnight);
  border: 2px solid rgba(200, 220, 232, .4);
}

.player__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--eyebrow-blue);
  margin: 0 0 8px;
}

.player__song {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin: 0 0 6px;
  font-weight: 500;
}

.player__artist {
  margin: 0 0 22px;
  color: rgba(245, 243, 238, .55);
  font-family: var(--font-mono);
  letter-spacing: .05em;
  font-size: 12px;
}

.player__artist span {
  color: var(--eyebrow-blue);
  margin: 0 4px;
}

.player__progress {
  width: 100%;
  margin-bottom: 20px;
}

.player__progress-bar {
  position: relative;
  height: 2px;
  background: rgba(245, 243, 238, .15);
  border-radius: 2px;
  cursor: pointer;
}

.player__progress-fill {
  position: absolute;
  inset: 0;
  width: 44%;
  background: var(--sky-blue);
  border-radius: 2px;
}

.player__time {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(245, 243, 238, .45);
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.player__btn {
  background: none;
  border: none;
  color: var(--off-white);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  opacity: .75;
  transition: opacity .2s, transform .2s;
}

.player__btn:hover {
  opacity: 1;
  transform: scale(1.08);
}

.player__btn svg {
  width: 18px;
  height: 18px;
}

.player__btn--main {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--midnight);
  opacity: 1;
}

.player__btn--main svg {
  width: 20px;
  height: 20px;
}

.player__caption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-style: italic;
  color: rgba(245, 243, 238, .5);
  font-size: 13px;
}

/* ============================================================ 02 — LETTER ============================================================ */
.letter-section {
  background: none;
}

.letter-card {
  position: relative;
  width: min(560px, 90vw);
  background: var(--off-white);
  color: var(--deep-blue);
  padding: clamp(30px, 5vw, 50px) clamp(26px, 5vw, 46px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .4);
  transform: rotate(1deg);
  background-image: repeating-linear-gradient(rgba(13, 41, 71, .03) 0 1px, transparent 1px 34px);
}

.letter-card__stamp {
  position: absolute;
  top: 18px;
  right: 20px;
  opacity: .85;
}

.letter-card__date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--lany-blue);
  margin: 0 0 20px;
}

.letter-card__body {
  text-align: left;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
  margin: 0;
}

/* ============================================================ 03 — BIRTHDAY ============================================================ */
/* ============================================================ 03 — BIRTHDAY ============================================================ */
.birthday-section {
  background: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* Mengubah dari space-between ke center agar berkumpul di tengah */
  gap: 28px;
  /* Memperkecil jarak antar elemen (sebelumnya 40px) */
  text-align: left;
  width: 100%;
  max-width: 900px;
  /* Memperkecil batas lebar maksimal dari 1200px agar layout lebih rapi */
  margin: 0 auto;
}

.birthday__text {
  max-width: 460px;
}

.birthday__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 22px;
}

.birthday__subtitle {
  color: rgba(245, 243, 238, .6);
  font-size: 15px;
  max-width: 380px;
  margin: 0;
}

.birthday__photo-wrap {
  position: relative;
  width: min(320px, 80vw);
  flex-shrink: 0;
}

.birthday__moon {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--misty-blue) 70%);
  box-shadow: 0 0 30px rgba(245, 243, 238, .6);
}

.birthday__photo {
  border: 1px solid rgba(142, 184, 216, .3);
  padding: 10px;
  background: rgba(142, 184, 216, .03);
  transform: rotate(2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}

.birthday__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.birthday__caption {
  position: absolute;
  bottom: -18px;
  left: 16px;
  background: var(--lany-blue);
  color: var(--off-white);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 8px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

@media (max-width:768px) {
  .birthday-section {
    flex-direction: column;
    text-align: center;
  }

  .birthday__text {
    text-align: center;
  }
}

/* ============================================================ 04 — ORBIT ============================================================ */
.orbit-section {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 8vw, 120px);
  text-align: left;
  background: none;
}

.orbit__number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(200, 220, 232, .4);
}

.orbit__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.15;
  margin: 14px 0 22px;
}

.orbit__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--sky-blue);
  display: flex;
  align-items: center;
  gap: 16px;
}

.orbit__date::after {
  content: "";
  height: 1px;
  width: 60px;
  background: rgba(142, 184, 216, .4);
}

@media (max-width:768px) {
  .orbit-section {
    flex-direction: column;
    text-align: center;
  }

  .orbit__date {
    justify-content: center;
  }
}

/* ============================================================ 05 — TRACKS ============================================================ */
.tracks-section {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(30px, 6vw, 90px);
  text-align: left;
  background: none;
  max-width: 1200px;
  margin: 0 auto;
}

.tracks__side {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}

.tracks__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  margin: 0 0 20px;
}

.tracks__subtitle {
  color: rgba(245, 243, 238, .55);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.tracks__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--sky-blue);
}

.tracklist {
  width: min(560px, 92vw);
}

.track-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  cursor: pointer;
  transition: background .3s;
  border-radius: 8px;
}

.track-item:hover,
.track-item.is-open {
  background: rgba(142, 184, 216, .05);
}

.track-item__row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
}

.track-item__no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--eyebrow-blue);
  width: 20px;
}

.track-item__titles {
  flex: 1;
}

.track-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
}

.track-item__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  color: rgba(245, 243, 238, .4);
  margin: 4px 0 0;
}

.track-item__dur {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245, 243, 238, .4);
}

.track-item__play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(142, 184, 216, .4);
  display: grid;
  place-items: center;
  color: var(--sky-blue);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.track-item.is-open .track-item__play {
  background: var(--sky-blue);
  color: var(--midnight);
}

.track-item__play svg {
  width: 13px;
  height: 13px;
}

.track-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}

.track-item.is-open .track-item__panel {
  max-height: 220px;
}

.track-item__panel-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 16px 4px 54px;
  text-align: left;
}

.track-item__photo {
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
}

.track-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-item__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--off-white);
  margin: 0;
}

@media (max-width:900px) {
  .tracks-section {
    flex-direction: column;
    align-items: center;
  }

  .tracks__side {
    position: static;
    width: 100%;
    text-align: center;
  }
}

@media (max-width:480px) {
  .track-item__panel-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 16px;
  }
}

/* ============================================================ 06 — CAMERA ROLL ============================================================ */
.photoalbum-section {
  background: none;
  padding-bottom: 130px;
}

.photo-collage {
  position: relative;
  width: min(920px, 94vw);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 12px;
}

.collage-item {
  background: var(--off-white);
  padding: 8px 8px 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
  position: relative;
  transition: transform .4s var(--ease);
}

.collage-item:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 5;
}

.collage-item img {
  width: 100%;
  aspect-ratio: 1/1.15;
  object-fit: cover;
}

.collage-item span {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--deep-blue);
  padding: 0 10px;
}

.collage-item--sm,
.collage-item--md,
.collage-item--lg {
  grid-column: span 2;
}

.collage-item--md {
  margin-top: 34px;
}

.collage-item--lg {
  margin-top: -10px;
}

@media (max-width:1024px) {
  .photo-collage {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width:768px) {
  .photo-collage {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 8px;
  }

  .collage-item--sm,
  .collage-item--md,
  .collage-item--lg {
    margin-top: 0;
  }

  /* Caption text overflows the polaroid strip at this width, so it's
     hidden here and moved into the tap-to-open modal below instead. */
  .collage-item {
    cursor: pointer;
  }

  .collage-item span {
    display: none;
  }
}

/* ---- camera roll caption modal ---- */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}

.photo-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 51, .82);
  backdrop-filter: blur(6px);
}

.photo-modal__card {
  position: relative;
  z-index: 1;
  width: min(360px, 90vw);
  background: var(--off-white);
  padding: 10px 10px 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  transform: scale(.94);
  transition: transform .35s var(--ease);
}

.photo-modal.is-open .photo-modal__card {
  transform: scale(1);
}

.photo-modal__img {
  width: 100%;
  aspect-ratio: 1/1.15;
  object-fit: cover;
}

.photo-modal__caption {
  margin: 14px 4px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--deep-blue);
}

.photo-modal__close {
  position: absolute;
  top: -38px;
  right: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 27, 51, .5);
  color: var(--off-white);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================ 07 — LYRICS ============================================================ */
.lyrics-section {
  background: radial-gradient(ellipse at 30% 70%, rgba(49, 93, 136, .25), transparent 60%);
  align-items: flex-start;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.lyrics__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.15;
  margin: 0 0 60px;
}

.lyrics__quote {
  border: none;
  padding-left: 0;
}

.lyrics__quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.4;
  color: var(--misty-blue);
  margin: 0 0 16px;
}

.lyrics__quote-attr {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(245, 243, 238, .4);
  margin: 0;
}

/* ============================================================ 08 — SIDE B ============================================================ */
.sideb-section {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(40px, 8vw, 110px);
  text-align: left;
  background: none;
  max-width: 1150px;
  margin: 0 auto;
}

.sideb__side {
  width: 280px;
  flex-shrink: 0;
}

.sideb__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5rem);
  margin: 0 0 14px;
}

.sideb__subtitle {
  font-style: italic;
  color: var(--sky-blue);
  font-size: 14px;
}

.sideb-list {
  width: min(520px, 92vw);
}

.sideb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.sideb-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.sideb-item__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sideb-item__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--eyebrow-blue);
}

.sideb-item__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.sideb-item__icon {
  opacity: .5;
  width: 16px;
  height: 16px;
}

@media (max-width:900px) {
  .sideb-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sideb-item__left {
    margin: 0 auto;
  }
}

/* ============================================================ 09 — FINAL ============================================================ */
.final-section {
  overflow: hidden;
}

.final__visual {
  width: clamp(90px, 13vw, 150px);
  margin-bottom: 34px;
  filter: drop-shadow(0 0 26px rgba(142, 184, 216, .35));
  animation: final-drift 7s ease-in-out infinite;
}

.final__drown-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.final__figure {
  fill: rgba(200, 220, 232, .85);
}

.final__limb {
  fill: none;
  stroke: rgba(200, 220, 232, .85);
  stroke-width: 7;
  stroke-linecap: round;
}

.final__bubbles circle {
  fill: rgba(200, 220, 232, .5);
  animation: final-bubble 3.2s ease-in-out infinite;
}

.final__bubbles circle:nth-child(2) {
  animation-delay: .5s;
}

.final__bubbles circle:nth-child(3) {
  animation-delay: 1s;
}

.final__bubbles circle:nth-child(4) {
  animation-delay: 1.6s;
}

@keyframes final-drift {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(10px) rotate(2deg);
  }
}

@keyframes final-bubble {
  0% {
    transform: translateY(0);
    opacity: .15;
  }

  50% {
    opacity: .7;
  }

  100% {
    transform: translateY(-22px);
    opacity: 0;
  }
}

.final__prompt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  color: var(--off-white);
  margin: 0 0 40px;
}

.final__lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 46px;
}

.final__lines p {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--off-white);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s, transform .6s;
}

.final__lines p.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.final__love {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5rem);
  color: var(--off-white);
  margin: 0 0 10px;
}

.final__subtitle {
  color: var(--misty-blue);
  font-style: italic;
  margin: 0 0 46px;
}

.final__replay {
  background: var(--sky-blue);
  color: var(--midnight);
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  transition: transform .3s var(--ease), background .3s;
}

.final__replay:hover {
  transform: scale(1.05);
  background: var(--misty-blue);
}

/* ============================================================
   480px FIXES — gallery/letter too big, birthday<->polaroid gap
   too wide on small screens. Scoped to this breakpoint only.
   ============================================================ */
@media (max-width:480px) {

  /* Gallery: at 768px the grid becomes 2 columns but each item still
     spans 2 columns, so every photo ends up full-width (1 per row) —
     that's the "kegedean" gallery. Force a real 2-up grid instead. */
  .photo-collage {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 8px;
  }

  /* Letter: shrink the card + type a bit so it doesn't dominate a
     narrow screen. */
  .letter-card {
    width: 92vw;
    padding: 22px 18px;
  }

  .letter-card__body {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  /* Birthday <-> polaroid gap: .birthday__printer-container is
     transform:scale(0.8), which still reserves its full un-scaled
     height in the flex layout — once the section stacks into a
     column here, that reserved blank space above/below the shrunk
     photo strip reads as an oversized gap. Pull it back up. */
  .birthday-section {
    gap: 4px;
  }

  .birthday__printer-container {
    margin: -30px -20px 0;
  }
}