:root {
  --ink: #fff9f1;
  --muted: rgba(255, 249, 241, 0.74);
  --faint: rgba(255, 249, 241, 0.12);
  --line: rgba(255, 249, 241, 0.2);
  --night: #0d1225;
  --plum: #2a1834;
  --rose: #ff77a8;
  --coral: #ff9f8a;
  --gold: #ffd58e;
  --mint: #8edfc4;
  --paper: #fff4e4;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 119, 168, 0.22), transparent 28rem),
    radial-gradient(circle at 84% 10%, rgba(142, 223, 196, 0.16), transparent 24rem),
    radial-gradient(circle at 72% 88%, rgba(255, 213, 142, 0.16), transparent 25rem),
    linear-gradient(135deg, var(--night), var(--plum) 48%, #0f2b32);
  overflow-x: hidden;
}

body.is-letter-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 249, 241, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 249, 241, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
  pointer-events: none;
}

#sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 213, 142, 0.2), transparent 22rem),
    linear-gradient(145deg, rgba(13, 18, 37, 0.96), rgba(42, 24, 52, 0.96));
  transition: opacity 600ms ease, visibility 600ms ease, transform 600ms ease;
}

.opening.is-hidden {
  transform: scale(1.04);
  opacity: 0;
  visibility: hidden;
}

.opening-inner {
  width: min(720px, 100%);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 249, 241, 0.1), rgba(255, 249, 241, 0.04)),
    rgba(12, 15, 31, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 84px;
}

.hero {
  min-height: min(820px, 94vh);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(330px, 0.9fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 9vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(2.15rem, 5.6vw, 5.2rem);
  line-height: 0.96;
}

.hero-line,
.section-heading p,
.promise-copy p,
.finale-card p,
.opening-inner p {
  color: var(--muted);
  font-size: clamp(1.04rem, 2.2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions,
.story-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-action,
.quiet-action,
.icon-action,
.lightbox-close,
.lightbox-nav {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  color: #2a1220;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  border-color: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.quiet-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(255, 249, 241, 0.1);
  backdrop-filter: blur(16px);
}

.primary-action:hover,
.quiet-action:hover,
.icon-action:hover,
.lightbox-close:hover,
.lightbox-nav:hover,
.day-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 213, 142, 0.68);
}

.hero-frame {
  position: relative;
  min-height: 610px;
}

.frame-photo {
  position: absolute;
  width: min(58%, 330px);
  border: 10px solid var(--paper);
  border-bottom-width: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.photo-one {
  top: 36px;
  left: 5%;
  z-index: 2;
  transform: rotate(-8deg);
}

.photo-two {
  top: 108px;
  right: 3%;
  z-index: 3;
  transform: rotate(7deg);
}

.photo-three {
  right: 20%;
  bottom: 54px;
  z-index: 4;
  transform: rotate(-2deg);
}

.countdown-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: min(390px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: rgba(13, 18, 37, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.countdown-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.countdown-card strong {
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.section {
  padding: 62px 0;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 28px;
}

.story-stage {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 16px;
  align-items: center;
}

.icon-action,
.lightbox-nav {
  width: 54px;
  min-height: 54px;
  color: var(--ink);
  background: rgba(255, 249, 241, 0.1);
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(16px);
}

.feature-card,
.lightbox-frame {
  margin: 0;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(240px, 0.44fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  padding: clamp(16px, 3.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-card img {
  width: 100%;
  max-height: 760px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 249, 241, 0.08);
}

.feature-card figcaption,
.lightbox-frame figcaption {
  display: grid;
  gap: 10px;
}

.feature-card span,
.lightbox-frame span,
.feature-card small,
.lightbox-frame small {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.feature-card strong,
.lightbox-frame strong {
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.story-controls {
  margin-top: 18px;
  justify-content: center;
}

.progress-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  max-width: 760px;
}

.progress-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 249, 241, 0.32);
  cursor: pointer;
}

.progress-dots button.is-active {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 213, 142, 0.16);
}

.collage-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 15px);
  align-items: stretch;
}

.day-card {
  position: relative;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 241, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 249, 241, 0.08);
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.day-card:nth-child(6n + 2),
.day-card:nth-child(6n + 5) {
  transform: translateY(22px);
}

.day-card:nth-child(6n + 3) {
  grid-row: span 2;
}

.day-card:nth-child(6n + 4) {
  transform: translateY(-10px);
}

.day-card:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.day-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

.day-card:hover img {
  transform: scale(1.045);
}

.day-card span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #2a1220;
  background: rgba(255, 213, 142, 0.92);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.day-card strong {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(9, 12, 25, 0.68);
  font-size: 1rem;
  line-height: 1.12;
  backdrop-filter: blur(12px);
}

.promise-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.78fr);
  gap: 28px;
  align-items: center;
}

.letter-portal-section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.letter-portal {
  position: relative;
  display: grid;
  min-height: 460px;
  place-items: center;
  padding: clamp(26px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 119, 168, 0.22), transparent 18rem),
    radial-gradient(circle at 76% 76%, rgba(255, 213, 142, 0.18), transparent 18rem),
    rgba(255, 249, 241, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.letter-portal::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 249, 241, 0.12);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.heart-button {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 560px;
  min-height: 260px;
  padding: clamp(24px, 6vw, 54px);
  border: 1px solid rgba(255, 213, 142, 0.5);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 249, 241, 0.14), rgba(255, 249, 241, 0.06)),
    rgba(8, 10, 22, 0.58);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.heart-button:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 213, 142, 0.9);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
}

.heart-button span {
  font-size: clamp(4.8rem, 16vw, 9.5rem);
  line-height: 0.92;
  filter: drop-shadow(0 16px 30px rgba(255, 119, 168, 0.45));
  animation: heartPulse 1700ms ease-in-out infinite;
}

.heart-button strong {
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 0.98;
}

.heart-button small {
  max-width: 360px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.promise-copy,
.finale-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mini-vault {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-vault span {
  min-height: 74px;
  display: grid;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 249, 241, 0.08);
  font-family: Arial, Helvetica, sans-serif;
}

.finale {
  padding-bottom: 110px;
}

.finale-card {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.finale-card p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  gap: 12px;
  align-items: center;
  padding: 22px;
  background: rgba(5, 7, 14, 0.9);
  backdrop-filter: blur(18px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(220px, 0.42fr);
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100vh - 64px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
  background: rgba(255, 249, 241, 0.08);
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  min-height: 44px;
  color: var(--ink);
  background: rgba(255, 249, 241, 0.12);
  font-size: 1.6rem;
}

.letter-cinema {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 34px);
  overflow: hidden;
  background: #070812;
}

.letter-cinema[hidden] {
  display: none;
}

.letter-backdrop {
  position: absolute;
  inset: -10px;
  background-image: var(--letter-bg);
  background-position: center;
  background-size: cover;
  filter: blur(2px) saturate(1.18) contrast(1.04);
  opacity: 0.9;
  transform: scale(1.02);
  transition: background-image 800ms ease, opacity 800ms ease;
}

.letter-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 213, 142, 0.12), transparent 24rem),
    linear-gradient(90deg, rgba(5, 7, 14, 0.58), rgba(5, 7, 14, 0.2), rgba(5, 7, 14, 0.58)),
    linear-gradient(180deg, rgba(5, 7, 14, 0.18), rgba(5, 7, 14, 0.62));
}

.letter-scroll {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(820px, calc(100vh - 52px));
  padding: clamp(24px, 5vw, 58px);
  overflow-y: auto;
  border: 1px solid rgba(255, 249, 241, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(9, 12, 25, 0.62), rgba(9, 12, 25, 0.46)),
    rgba(9, 12, 25, 0.46);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.letter-scroll h2 {
  font-size: clamp(2.8rem, 8vw, 6.8rem);
}

.letter-scroll p {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 249, 241, 0.86);
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
  line-height: 1.82;
  text-align: center;
}

.letter-scroll .letter-lead {
  color: var(--gold);
  font-size: clamp(1.2rem, 3vw, 1.62rem);
}

.letter-scroll strong {
  color: var(--gold);
  font-weight: 500;
}

.letter-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 46px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 249, 241, 0.12);
  cursor: pointer;
  font: 700 1.35rem Arial, Helvetica, sans-serif;
  backdrop-filter: blur(14px);
}

.audio-note {
  min-height: 24px;
  color: var(--muted) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem !important;
}

.petal {
  position: fixed;
  z-index: 90;
  width: 12px;
  height: 18px;
  border-radius: 999px 999px 999px 0;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  pointer-events: none;
  animation: fall 1900ms ease-in forwards;
}

@keyframes fall {
  to {
    transform: translate(var(--x), 94vh) rotate(380deg);
    opacity: 0;
  }
}

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

@media (max-width: 980px) {
  .hero,
  .promise-section,
  .feature-card,
  .lightbox-frame {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 560px;
  }

  .collage-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .hero {
    min-height: auto;
    padding: 28px 0;
  }

  .hero-frame {
    min-height: 470px;
  }

  .frame-photo {
    width: min(65%, 260px);
    border-width: 7px;
    border-bottom-width: 26px;
  }

  .story-stage,
  .lightbox {
    grid-template-columns: 1fr;
  }

  .icon-action {
    display: none;
  }

  .lightbox-nav {
    display: none;
  }

  .collage-wall {
    grid-template-columns: 1fr;
  }

  .day-card,
  .day-card:nth-child(n) {
    min-height: 520px;
    transform: none;
    grid-row: auto;
  }

  .mini-vault {
    grid-template-columns: 1fr;
  }

  .letter-scroll {
    max-height: calc(100vh - 28px);
  }
}

@media (max-width: 430px) {
  .opening-inner {
    padding: 24px 18px;
  }

  .hero-frame {
    min-height: 430px;
  }

  .day-card {
    min-height: 460px;
  }

  .feature-card {
    padding: 12px;
  }
}
