:root {
  --pink: #f27ea9;
  --rose: #f9c6d1;
  --plum: #6d4c97;
  --deep: #1f1235;
  --cream: #fff8f0;
  --text: #2d1c3c;
  --card-bg: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', 'Noto Serif SC', system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  color: var(--cream);
  min-height: 100vh;
  background: #0d0818;
  overflow-x: hidden;
}

body.mobile-blocked {
  overflow: hidden;
}

.mobile-blocker {
  position: fixed;
  inset: 0;
  background: rgba(7, 3, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 9999;
  text-align: center;
}

.mobile-blocker__card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-family: 'Noto Serif SC', 'Nunito', system-ui, sans-serif;
  letter-spacing: 0.1em;
}

.gradient-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #f27ea955, transparent 45%),
    radial-gradient(circle at 80% 0%, #f9c6d155, transparent 40%),
    radial-gradient(circle at 50% 80%, #6d4c9750, transparent 45%);
  filter: blur(80px);
  animation: glow 15s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes glow {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1) translate(-20px, 20px);
  }
}

.floating-hearts {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.floating-hearts span {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(242, 126, 169, 0.6);
  transform: rotate(45deg);
  animation: floatHeart 18s linear infinite;
  border-radius: 2px;
}

.floating-hearts span::before,
.floating-hearts span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: inherit;
  border-radius: 50%;
}

.floating-hearts span::before {
  top: -12px;
  left: 0;
}

.floating-hearts span::after {
  left: -12px;
  top: 0;
}

.floating-hearts span:nth-child(1) {
  left: 10%;
  animation-duration: 16s;
  animation-delay: 0s;
  bottom: -10%;
}

.floating-hearts span:nth-child(2) {
  left: 30%;
  animation-duration: 20s;
  animation-delay: 3s;
  bottom: -15%;
}

.floating-hearts span:nth-child(3) {
  left: 50%;
  animation-duration: 18s;
  animation-delay: 5s;
}

.floating-hearts span:nth-child(4) {
  left: 70%;
  animation-duration: 22s;
}

.floating-hearts span:nth-child(5) {
  left: 85%;
  animation-duration: 17s;
  animation-delay: 2s;
}

.floating-hearts span:nth-child(6) {
  left: 40%;
  animation-duration: 24s;
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) rotate(45deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(45deg);
    opacity: 0;
  }
}

.hero {
  text-align: center;
  padding: 7rem 1.5rem 5rem;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  color: var(--rose);
}

.hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin: 0 auto 1rem;
  max-width: 900px;
}

.subtitle {
  margin: 0 auto 2rem;
  max-width: 640px;
  color: #fbe9f2;
  line-height: 1.6;
}

.scroll-btn,
.sparkle {
  border: none;
  background: linear-gradient(120deg, #f27ea9, #f8a7c5, #f9c6d1);
  color: #1f1235;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-btn:hover,
.sparkle:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 30px rgba(242, 126, 169, 0.4);
}

main {
  width: min(1100px, 92vw);
  margin: 0 auto 4rem;
}

.panel {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel h2 {
  margin-top: 0;
  font-family: 'Noto Serif SC', serif;
  color: var(--rose);
}

.panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.highlight-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 180px;
}

.highlight-grid h3 {
  margin-top: 0;
  color: #fff;
}

.highlight-grid p {
  margin-bottom: 0;
  color: #fbe9f2;
}

.letter-panel .letter-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.letter-panel article {
  background: rgba(10, 5, 20, 0.7);
  border-radius: 18px;
  padding: 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
  text-indent: 2em;
}

.gallery {
  padding-bottom: 3rem;
}

.film-strip {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 7, 20, 0.6);
  padding: 1.5rem 0;
  box-shadow: 0 20px 60px rgba(10, 4, 20, 0.55);
}

.film-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.5rem;
  will-change: transform;
}

.film-frame {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(220px, 24vw, 360px);
  max-width: clamp(240px, 30vw, 420px);
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 16px 40px rgba(10, 4, 25, 0.35);
  transition: background 0.3s ease;
}

.film-frame.loading {
  background: #fff;
}

.film-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(220px, 38vw, 380px);
  border-radius: 0;
  background: transparent;
}

.promise {
  text-align: center;
}

.promise p {
  max-width: 640px;
  margin: 1rem auto 2rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.note {
  color: #fbe9f2;
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: #d8cbe4;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .panel {
    padding: 1.75rem;
  }

  .letter-panel article {
    text-indent: 1.2em;
  }

  .film-strip {
    padding: 1.5rem 0;
  }

  .film-track {
    gap: 0.75rem;
    padding: 0 1rem;
  }
}
