@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Lora:wght@400;500;600;700&display=swap");

/* Design tokens */
:root {
  color-scheme: dark;
  --night: #120d12;
  --night-soft: #1b151c;
  --panel: rgba(20, 20, 20, 0.88);
  --gold: #d4af37;
  --gold-soft: #f0d98b;
  --orange: #d87936;
  --purple: #281c2d;
  --cream: #fff4df;
  --muted: #d2c9bf;
  --serif: "Cinzel", "Palatino Linotype", Georgia, serif;
  --sans: "Lora", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse at 50% 0, rgba(112, 76, 106, 0.14), transparent 44rem),
    linear-gradient(155deg, #120d12 0%, #18121a 58%, #100d10 100%);
  transition: opacity 220ms ease, transform 220ms ease;
}

/* Shared foundation and cover */
a {
  color: inherit;
}

.cover-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow-x: clip;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(71, 37, 57, 0.24), transparent 54%),
    linear-gradient(145deg, #100b10 0%, #18101a 52%, #100b10 100%);
}

.cover-audio {
  display: none;
}

.cover-audio-status:not([hidden]) {
  margin: 0.5rem auto 0;
  color: var(--gold-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.cover-shell {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: clamp(1.25rem, 4vh, 3rem) clamp(1rem, 4vw, 2.5rem);
  place-items: center;
  isolation: isolate;
}

.cover-atmosphere {
  position: fixed;
  z-index: 0;
  inset: -1px;
  overflow: hidden;
  pointer-events: none;
}

.cover-atmosphere::before {
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(ellipse at 12% 22%, rgba(196, 83, 32, 0.18), transparent 32%),
    radial-gradient(ellipse at 86% 76%, rgba(108, 54, 109, 0.22), transparent 35%),
    radial-gradient(ellipse at 54% 4%, rgba(220, 160, 55, 0.1), transparent 33%),
    radial-gradient(ellipse at 46% 100%, rgba(151, 66, 30, 0.12), transparent 35%);
  content: "";
  animation: altar-aura 19s ease-in-out infinite alternate;
}

.cover-atmosphere::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 203, 113, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 73%, rgba(255, 160, 69, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 27% 36%, rgba(255, 227, 163, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 39% 84%, rgba(255, 187, 92, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 17%, rgba(255, 227, 163, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 69%, rgba(255, 160, 69, 0.58) 0 1px, transparent 2px),
    radial-gradient(circle at 75% 31%, rgba(255, 227, 163, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 87% 82%, rgba(255, 187, 92, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 94% 47%, rgba(255, 227, 163, 0.55) 0 1px, transparent 2px);
  content: "";
  opacity: 0.48;
  animation: ember-shimmer 8s ease-in-out infinite alternate;
}

.floating-flower {
  position: absolute;
  width: clamp(3.5rem, 8vw, 6rem);
  height: auto;
  opacity: 0.78;
  filter: drop-shadow(0 8px 20px rgba(193, 91, 23, 0.25));
}

.flower-upper {
  top: 12%;
  left: clamp(1.25rem, 7vw, 7rem);
  animation: flower-drift 9s ease-in-out infinite alternate;
}

.flower-lower {
  right: clamp(1.25rem, 7vw, 7rem);
  bottom: 12%;
  width: clamp(3rem, 7vw, 5rem);
  opacity: 0.66;
  animation: flower-drift 11s ease-in-out -4s infinite alternate-reverse;
}

.drifting-petal {
  position: absolute;
  width: clamp(0.55rem, 1.2vw, 0.9rem);
  height: clamp(1rem, 2vw, 1.5rem);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, #ffb02e, #dd5a17 72%);
  box-shadow: 0 0 16px rgba(238, 135, 35, 0.28);
  opacity: 0;
}

.petal-one {
  top: 24%;
  left: 13%;
  animation: petal-float 12s ease-in-out 1s infinite;
}

.petal-two {
  top: 68%;
  left: 8%;
  animation: petal-float 15s ease-in-out -5s infinite;
}

.petal-three {
  top: 30%;
  right: 11%;
  animation: petal-float 14s ease-in-out -8s infinite;
}

.petal-four {
  right: 16%;
  bottom: 24%;
  animation: petal-float 17s ease-in-out -3s infinite;
}

.cover-content {
  position: relative;
  z-index: 1;
  width: min(100%, 740px);
  padding: clamp(1.5rem, 5vw, 3.25rem);
  text-align: center;
}

.cover-content > .papel-picado {
  animation: cover-rise 850ms 60ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.cover-content > .eyebrow {
  animation: cover-rise 750ms 160ms ease-out both;
}

.cover-content > .arched-title {
  animation: title-arrive 1100ms 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cover-content > .cover-subtitle {
  animation: cover-rise 850ms 360ms ease-out both;
}

.cover-content > .cover-intro {
  animation: cover-rise 850ms 470ms ease-out both;
}

.cover-content > .cover-footnote {
  animation: cover-rise 850ms 680ms ease-out both;
}

.cover-content > .marigold-garland {
  animation: garland-arrive 1100ms 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.papel-picado {
  width: min(100%, 520px);
  margin: 0 auto 1.8rem;
  color: var(--gold);
  opacity: 0.98;
  filter: drop-shadow(0 5px 12px rgba(119, 38, 45, 0.22));
}

.papel-picado svg {
  display: block;
  width: 100%;
  height: auto;
}

.marigold-garland {
  width: min(100%, 560px);
  margin: 1.3rem auto -1rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.42));
}

.marigold-garland svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.arched-title {
  display: block;
  width: min(100%, 700px);
  height: auto;
  margin: 0.1rem auto -1.3rem;
  overflow: visible;
  filter: drop-shadow(0 5px 20px rgba(212, 175, 55, 0.15));
}

.arched-title text {
  fill: var(--gold-soft);
  font-family: var(--serif);
  font-size: 66px;
  font-weight: 600;
  letter-spacing: 1px;
}

.cover-title-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.cover-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1.2;
}

.cover-intro {
  max-width: 480px;
  margin: 1.25rem auto 2rem;
  color: var(--muted);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(236, 149, 71, 0.24);
}

.button-primary {
  color: #17120c;
  background: linear-gradient(135deg, #f0d98b, #c99e37);
  border-color: var(--gold-soft);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffe8ba;
}

.button-secondary {
  color: var(--gold-soft);
  background: rgba(20, 20, 20, 0.9);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(231, 189, 114, 0.13);
}

.cover-cta {
  min-height: 3.5rem;
  padding-inline: 1.7rem;
  animation:
    cover-rise 850ms 560ms ease-out both,
    candle-glow 2.8s 1.2s ease-in-out infinite alternate;
}

.cover-footnote {
  margin: 1.5rem 0 0;
  color: rgba(255, 244, 223, 0.63);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* Song pages */
.song-page {
  position: relative;
  padding: 0 1.25rem calc(6rem + env(safe-area-inset-bottom));
}

.site-header,
.song-layout,
.site-footer {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.song-page::before,
.song-page::after {
  position: fixed;
  z-index: -1;
  width: clamp(8rem, 18vw, 15rem);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  opacity: 0.11;
  background:
    radial-gradient(ellipse at 50% 8%, #ef8b25 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 8%, #db6518 0 12%, transparent 13%),
    repeating-conic-gradient(from 0deg, transparent 0deg 9deg, rgba(223, 117, 27, 0.75) 10deg 15deg, transparent 16deg 24deg);
  mask-image: radial-gradient(circle, transparent 0 14%, #000 15% 70%, transparent 71%);
  animation: flower-drift 14s ease-in-out infinite alternate;
}

.song-page::before {
  top: 9%;
  left: -5rem;
}

.song-page::after {
  right: -5rem;
  bottom: 9%;
  animation-delay: -7s;
  animation-direction: alternate-reverse;
}

.wordmark {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--cream);
  font-weight: 400;
}

.journey-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.journey-count span {
  color: var(--gold);
  font-weight: 700;
}

.song-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.1rem;
  padding-block: 2rem;
}

.song-hero {
  grid-column: 1 / -1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.5rem 0;
  text-align: center;
}

.hero-note {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.art-slot {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0 1rem;
  text-align: center;
}

.song-page.is-intro {
  overflow: hidden;
}

.song-page.is-intro .site-header,
.song-page.is-intro .song-layout > :not(.art-slot),
.song-page.is-intro .site-footer,
.song-page.is-intro .skip-link {
  visibility: hidden;
}

.song-page.is-intro .art-slot {
  position: fixed;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(112, 76, 106, 0.2), transparent 52%),
    radial-gradient(ellipse at 50% 100%, rgba(196, 83, 32, 0.1), transparent 46%),
    #120d12;
  animation: cover-splash-exit 3s ease-in both;
  pointer-events: none;
}

.song-page.is-intro .cover-image-wrap {
  width: min(62vw, 320px);
  height: clamp(190px, 34vh, 290px);
}

.song-page.is-intro .cover-title-row {
  width: min(96vw, 720px);
  animation: cover-title-enter 900ms 120ms ease-out both;
}

.song-page.is-intro .cover-image-wrap {
  animation: cover-image-enter 1100ms 180ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.song-page.is-intro .cover-artist-arc {
  width: min(78vw, 400px);
  height: clamp(3rem, 7vh, 4rem);
  animation: cover-artist-enter 900ms 300ms ease-out both;
}

.song-page.is-revealing .site-header,
.song-page.is-revealing .song-layout > :not(.art-slot),
.song-page.is-revealing .site-footer {
  animation: song-content-reveal 600ms ease-out both;
}

.cover-artist-arc {
  display: block;
  width: min(100%, 400px);
  overflow: visible;
}

.cover-title-row {
  display: grid;
  width: min(100%, 740px);
  grid-template-columns: clamp(2.5rem, 8vw, 5rem) minmax(0, 1fr) clamp(2.5rem, 8vw, 5rem);
  align-items: center;
  justify-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  margin-bottom: 0.25rem;
}

.cover-song-title {
  max-width: 100%;
  margin: 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}

.cover-side-flower {
  display: block;
  width: 100%;
  max-width: 5rem;
  overflow: visible;
  filter: drop-shadow(0 4px 16px rgba(217, 121, 54, 0.3));
  animation: flower-drift 7s ease-in-out infinite alternate;
}

.cover-side-flower:last-child {
  animation-delay: -3.5s;
  animation-direction: alternate-reverse;
}

.cover-image-wrap {
  position: relative;
  display: grid;
  width: min(100%, 230px);
  height: clamp(155px, 22vw, 220px);
  place-items: center;
}

.altar-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.altar-image[hidden] {
  display: none;
}

.art-placeholder {
  position: absolute;
  max-width: 90%;
  color: rgba(240, 217, 139, 0.48);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.6;
  opacity: 0;
}

.altar-image[hidden] + .art-placeholder {
  opacity: 1;
}

.cover-artist-arc {
  width: min(100%, 340px);
  height: 2.75rem;
  margin-top: -0.15rem;
}

.cover-artist-arc text {
  fill: var(--cream);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-anchor: middle;
}

.story-toggle {
  grid-column: span 4;
  min-width: 0;
  align-self: start;
}

.story-toggle summary {
  display: flex;
  min-height: 5rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  transition: color 180ms ease, transform 180ms ease;
}

.story-toggle summary::-webkit-details-marker {
  display: none;
}

.story-toggle summary:hover {
  color: var(--gold-soft);
}

.story-symbol {
  flex: 0 0 2.6rem;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 18px rgba(217, 121, 54, 0.34);
  transition: color 180ms ease, transform 220ms ease;
}

.story-toggle[open] .story-symbol {
  color: var(--gold-soft);
  transform: rotate(45deg);
}

.story-heading {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.story-heading .eyebrow {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.story-title {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
}

.story-indicator {
  position: relative;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
}

.story-indicator::before,
.story-indicator::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.story-indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.story-toggle[open] .story-indicator::after {
  transform: translate(-50%, -50%) rotate(0);
}

.story-copy {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 260ms ease, opacity 200ms ease;
}

.story-toggle[open] .story-copy {
  grid-template-rows: 1fr;
  opacity: 1;
}

.story-copy-inner {
  min-height: 0;
  overflow: hidden;
  padding-left: 3.45rem;
}

.story-copy p {
  margin: 0 0 1.25rem;
  color: var(--cream);
  font-size: 0.9rem;
  line-height: 1.75;
}

.audio-panel {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 4.5rem 1.5rem 0;
  backdrop-filter: none;
}

.audio-panel .eyebrow {
  margin-bottom: 0.25rem;
  font-size: 0.64rem;
}

.audio-panel h2 {
  margin: 0 0 0.2rem;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.audio-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.audio-gate {
  width: min(92vw, 38rem);
  max-width: none;
  max-height: min(90vh, 42rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(212, 175, 55, 0.62);
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 0, rgba(112, 76, 106, 0.2), transparent 75%),
    rgba(20, 16, 20, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.audio-gate::backdrop {
  background: rgba(7, 5, 8, 0.82);
  backdrop-filter: blur(8px);
}

.audio-gate-content {
  padding: clamp(1.5rem, 6vw, 3rem);
  text-align: center;
}

.audio-gate .eyebrow {
  margin-bottom: 0.6rem;
}

.audio-gate h2 {
  margin: 0 0 0.85rem;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 600;
}

.audio-gate-description,
.audio-gate-status {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.audio-gate-status {
  min-height: 1.5em;
  margin-top: 0.75rem;
  color: var(--gold-soft);
  font-size: 0.8rem;
}

.audio-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.audio-gate-actions .button {
  justify-content: center;
}

.journey-nav {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4.5rem 1rem 0;
}

.journey-nav .button,
.journey-nav .button-primary,
.journey-nav .button-secondary {
  padding-inline: 0.3rem;
  border: 0;
  border-radius: 0;
  color: var(--gold-soft);
  background: transparent;
  box-shadow: none;
}

.journey-nav .button:hover,
.journey-nav .button:focus-visible {
  transform: none;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
  box-shadow: none;
}

.nav-progress {
  color: var(--muted);
  font-size: 0.77rem;
  letter-spacing: 0.12em;
}

.nav-progress span {
  padding-inline: 0.3rem;
  color: var(--gold);
}

.site-footer {
  padding: 0.5rem 0 1rem;
  color: rgba(255, 244, 223, 0.55);
  font-size: 0.72rem;
  text-align: center;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  color: var(--night);
  background: var(--gold-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

:focus-visible {
  outline: 3px solid #fff0c8;
  outline-offset: 4px;
}

@keyframes candle-glow {
  from {
    box-shadow: 0 0 10px rgba(236, 149, 71, 0.14);
  }
  to {
    box-shadow: 0 0 28px rgba(236, 149, 71, 0.34);
  }
}

@keyframes cover-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-arrive {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes garland-arrive {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ember-shimmer {
  from {
    opacity: 0.28;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0.7;
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes cover-splash-exit {
  0%,
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes cover-title-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cover-image-enter {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-2deg);
  }
  75% {
    opacity: 1;
    transform: scale(1.035) rotate(0.5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes cover-artist-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes song-content-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes altar-aura {
  from {
    transform: translate3d(-1%, -0.5%, 0) scale(1);
  }
  to {
    transform: translate3d(1%, 0.8%, 0) scale(1.04);
  }
}

@keyframes flower-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(8px, -12px, 0) rotate(8deg);
  }
}

@keyframes petal-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  18% {
    opacity: 0.58;
  }
  78% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate3d(30px, -70px, 0) rotate(150deg);
  }
}

/* Responsive layouts */
@media (max-width: 650px) {
  .cover-shell {
    min-height: 100svh;
    padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
  }

  .cover-content {
    width: 100%;
    padding: clamp(1rem, 5vw, 1.5rem) 0.25rem;
  }

  .flower-upper {
    top: 3%;
    left: 2%;
    width: 3.25rem;
  }

  .flower-lower {
    right: 2%;
    bottom: 3%;
    width: 3rem;
  }

  .petal-one {
    left: 8%;
  }

  .petal-two {
    left: 4%;
  }

  .petal-three {
    right: 6%;
  }

  .petal-four {
    right: 10%;
  }

  .papel-picado {
    margin-bottom: 1.35rem;
  }

  .arched-title {
    margin-bottom: -1rem;
  }

  .arched-title text {
    font-size: 58px;
  }

  .song-page {
    padding-inline: 1rem;
  }

  .site-header {
    min-height: 4.5rem;
  }

  .wordmark {
    font-size: clamp(0.92rem, 4.2vw, 1.2rem);
  }

  .journey-count {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .song-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    padding-block: 1.2rem;
  }

  .song-hero,
  .art-slot,
  .story-toggle,
  .audio-panel,
  .journey-nav {
    grid-column: 1;
  }

  .song-hero {
    min-height: auto;
    padding: 1rem 0.35rem 0;
  }

  .art-slot {
    padding-block: 0.25rem 1rem;
  }

  .cover-title-row {
    width: min(100%, 500px);
    grid-template-columns: clamp(2rem, 11vw, 3.25rem) minmax(0, 1fr) clamp(2rem, 11vw, 3.25rem);
    gap: 0.35rem;
  }

  .cover-song-title {
    font-size: clamp(1.6rem, 7vw, 2.3rem);
  }

  .cover-side-flower {
    max-width: 3.25rem;
  }

  .cover-image-wrap {
    width: min(68vw, 220px);
    height: min(58vw, 190px);
  }

  .cover-artist-arc {
    width: min(100%, 310px);
  }

  .story-toggle {
    width: 100%;
  }

  .story-toggle summary {
    min-height: 4.5rem;
  }

  .story-title {
    font-size: 1.05rem;
  }

  .story-copy-inner {
    padding-left: 3.45rem;
  }

  .audio-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 4.5rem 1rem 0;
  }

  .journey-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-right: 4.5rem;
  }

  .nav-progress {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .journey-nav .button {
    flex: 1;
    padding-inline: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cover-atmosphere::before,
  .floating-flower,
  .drifting-petal,
  .song-page::before,
  .song-page::after {
    animation: none;
  }

  .story-copy,
  .story-toggle summary,
  .story-symbol {
    transition: none;
  }
}
