:root {
  --ivory: #f8f3ef;
  --blush: #efd8d6;
  --rose: #c77a80;
  --rose-dark: #934f58;
  --wine: #512e34;
  --gold: #b69054;
  --ink: #2f2626;
  --serif: "Italiana", "Bodoni 72", Didot, serif;
  --sans: "DM Sans", Avenir, sans-serif;
  --script: "Italianno", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
}
body:not(.has-entered) { height: 100svh; overflow: hidden; }
body.is-transitioning { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.cover {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  display: grid;
  place-items: center;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  padding: 32px clamp(22px, 5vw, 72px) 28px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.96) 0 16%, transparent 47%),
    linear-gradient(145deg, #fbf7f4, #f3e3df 58%, #f9f1eb);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.7, 0, .2, 1), filter 1.1s ease;
}
.cover[hidden] { display: none; }
.cover::before, .cover::after { content: ""; position: absolute; border: 1px solid rgba(182,144,84,.25); border-radius: 50%; pointer-events: none; }
.cover::before { width: 46vw; height: 46vw; left: -29vw; top: -20vw; }
.cover::after { width: 30vw; height: 30vw; right: -17vw; bottom: -13vw; }
.cover.is-leaving { opacity: 0; transform: scale(1.04); filter: blur(8px); }
.cover__eyebrow { position: relative; z-index: 2; color: var(--gold); font-size: 10px; letter-spacing: .42em; text-transform: uppercase; }
.brand-lockup { align-self: end; width: min(660px, 88vw); margin-top: 2vh; }
.brand-logo { display: block; width: 100%; max-height: 45vh; object-fit: contain; mix-blend-mode: multiply; filter: saturate(.72) brightness(1.08) contrast(.9); }
.cover__copy { position: relative; z-index: 2; margin-top: -3vh; }
.cover__title { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.02em; }
.cover__subtitle { margin: 18px 0 0; color: #766361; font-size: 12px; line-height: 1.8; letter-spacing: .08em; }
.continue-button { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 18px; margin-top: 28px; padding: 14px 5px; border: 0; color: var(--wine); background: transparent; font: 400 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; cursor: pointer; }
.continue-button__line { position: relative; display: block; width: 64px; height: 1px; overflow: hidden; background: rgba(81,46,52,.25); }
.continue-button__line::after { content: ""; position: absolute; inset: 0; background: var(--rose-dark); transform: translateX(-105%); transition: transform .45s ease; }
.continue-button:hover .continue-button__line::after, .continue-button:focus-visible .continue-button__line::after { transform: translateX(0); }
.cover__footer { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: #a68a82; font-size: 8px; letter-spacing: .28em; text-transform: uppercase; }
.cover__flower { color: var(--rose); font-size: 16px; }

.love { position: relative; display: none; min-height: 100vh; overflow: hidden; background: var(--ivory); }
.love.is-visible { display: block; }
.love-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 80px 24px 40px; text-align: center; background: radial-gradient(circle at 50% 40%, #faeeec 0 15%, transparent 51%), linear-gradient(#f7e9e6, var(--ivory)); }
.love-hero__kicker { margin: 0 0 10vh; color: var(--gold); font-size: 10px; letter-spacing: .42em; }
.love-hero__script { margin: 0 0 -12px; color: var(--rose-dark); font-family: var(--script); font-size: clamp(38px, 6vw, 72px); transform: rotate(-4deg); }
.love-hero h2 { margin: 0; color: var(--wine); font-family: var(--serif); font-size: clamp(62px, 11vw, 150px); font-weight: 400; line-height: .78; letter-spacing: -.045em; }
.love-hero h2 em { color: var(--rose); font-family: var(--script); font-size: 1.15em; font-weight: 400; }
.love-hero__intro { max-width: 520px; margin: 52px auto 0; color: #705c5d; font-family: var(--serif); font-size: clamp(15px, 1.8vw, 20px); line-height: 1.7; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: auto; padding-top: 7vh; color: #8e7472; font-size: 9px; letter-spacing: .28em; text-decoration: none; text-transform: uppercase; }
.scroll-cue__arrow { font-size: 18px; animation: bob 1.7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.story { padding: 130px max(6vw, 22px) 150px; background: #f4ece6; }
.story__heading { display: grid; grid-template-columns: 60px 1fr 1fr; align-items: end; gap: 30px; max-width: 1180px; margin: 0 auto 80px; }
.section-number { align-self: start; color: var(--gold); font-size: 10px; letter-spacing: .25em; }
.story h3 { margin: 0; color: var(--wine); font-family: var(--serif); font-size: clamp(42px, 6vw, 80px); font-weight: 400; line-height: .95; }
.story__heading p { max-width: 310px; margin: 0 0 6px auto; color: #786865; font-size: 13px; line-height: 1.8; }
.heart-stage { position: relative; display: grid; place-items: center; max-width: 1180px; margin: 0 auto; padding: 20px 0 30px; }
.heart-stage::before { content: ""; position: absolute; z-index: 0; width: min(82vw, 880px); aspect-ratio: 1; border-radius: 50%; background: rgba(199,122,128,.18); filter: blur(70px); }
.heart-shell { position: relative; z-index: 1; width: min(88vw, 900px); aspect-ratio: 112 / 104; padding: clamp(7px, .85vw, 11px); background: linear-gradient(135deg, #dda0a6, var(--rose-dark)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 104'%3E%3Cpath fill='%23000' d='M56 104C24 76 0 57 0 32 0 14 14 0 32 0c10 0 19 5 24 14C61 5 70 0 80 0c18 0 32 14 32 32 0 25-24 44-56 72Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 104'%3E%3Cpath fill='%23000' d='M56 104C24 76 0 57 0 32 0 14 14 0 32 0c10 0 19 5 24 14C61 5 70 0 80 0c18 0 32 14 32 32 0 25-24 44-56 72Z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 30px 35px rgba(81,46,52,.2)); }
.heart-collage { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); gap: clamp(3px, .4vw, 6px); width: 100%; height: 100%; overflow: hidden; background: var(--rose); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 104'%3E%3Cpath fill='%23000' d='M56 104C24 76 0 57 0 32 0 14 14 0 32 0c10 0 19 5 24 14C61 5 70 0 80 0c18 0 32 14 32 32 0 25-24 44-56 72Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 104'%3E%3Cpath fill='%23000' d='M56 104C24 76 0 57 0 32 0 14 14 0 32 0c10 0 19 5 24 14C61 5 70 0 80 0c18 0 32 14 32 32 0 25-24 44-56 72Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.heart-photo { min-width: 0; min-height: 0; overflow: hidden; background: #dbc1bd; }
.heart-photo:nth-child(49) { grid-column: 4; grid-row: 7; }
.heart-photo:nth-child(50) { grid-column: 5; grid-row: 7; }
.heart-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(.96); transform: scale(1.02); transition: filter .45s ease, transform .65s cubic-bezier(.2,.75,.3,1); }
.heart-photo:hover img { filter: saturate(1.08) contrast(1.02); transform: scale(1.14); }
.heart-stage__caption { position: relative; z-index: 2; margin: 30px 0 0; color: var(--rose-dark); font-family: var(--serif); font-size: clamp(14px, 2vw, 19px); font-style: italic; letter-spacing: .04em; }

.letter { max-width: 780px; margin: 0 auto; padding: 170px 32px; text-align: center; }
.letter .section-number { display: block; margin-bottom: 55px; }
.letter__script { margin: 0; color: var(--rose-dark); font-family: var(--script); font-size: clamp(50px, 8vw, 88px); line-height: .8; }
.letter__body { margin: 34px auto 0; color: var(--wine); font-family: var(--serif); font-size: clamp(20px, 3vw, 32px); line-height: 1.55; }
.letter__signature { margin: 45px 0 0; color: var(--rose); font-family: var(--script); font-size: 65px; transform: rotate(-5deg); }
.love-footer { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 44px 22px; color: #af9490; background: var(--wine); font-size: 9px; letter-spacing: .24em; text-align: center; text-transform: uppercase; }
.love-footer__heart { color: var(--rose); font-size: 17px; }
.petal { position: absolute; z-index: 3; top: -30px; width: 12px; height: 18px; border-radius: 75% 25% 70% 30%; background: rgba(203,120,131,.45); pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--drift), 105vh, 0) rotate(520deg); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-revealed { opacity: 1; transform: none; }

.music-toggle { position: fixed; z-index: 60; right: 22px; bottom: 20px; display: none; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(147,79,88,.25); border-radius: 100px; color: var(--wine); background: rgba(248,243,239,.8); backdrop-filter: blur(10px); cursor: pointer; }
.music-toggle.is-visible { display: flex; }
.music-toggle__label { font: 400 8px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.music-toggle__bars { display: flex; align-items: end; gap: 2px; height: 12px; }
.music-toggle__bars i { display: block; width: 2px; height: 6px; background: var(--rose-dark); }
.music-toggle.is-playing i { animation: equalize .7s ease-in-out infinite alternate; }
.music-toggle.is-playing i:nth-child(2) { animation-delay: -.3s; }
.music-toggle.is-playing i:nth-child(3) { animation-delay: -.5s; }
.music-toggle.needs-tap { border-color: rgba(147,79,88,.55); box-shadow: 0 0 0 6px rgba(199,122,128,.12); animation: music-pulse 1.5s ease-in-out infinite; }
@keyframes equalize { to { height: 12px; } }
@keyframes music-pulse { 50% { box-shadow: 0 0 0 11px rgba(199,122,128,.04); } }
.soundcloud-player { position: fixed; z-index: 0; left: 1px; bottom: 1px; width: 300px; height: 166px; border: 0; opacity: .01; clip-path: inset(49%); pointer-events: none; }

@media (max-width: 740px) {
  .cover { padding-top: 24px; }
  .brand-lockup { width: min(98vw, 590px); margin-top: 5vh; }
  .brand-logo { max-height: 39vh; }
  .cover__copy { margin-top: -1vh; }
  .cover__footer { font-size: 7px; letter-spacing: .15em; }
  .love-hero__kicker { margin-bottom: 13vh; }
  .story { padding-top: 95px; }
  .story__heading { grid-template-columns: 34px 1fr; gap: 15px; margin-bottom: 55px; }
  .story__heading p { grid-column: 2; margin: 8px 0 0; }
  .heart-collage { width: 96vw; gap: 3px; }
  .heart-stage__caption { margin-top: 18px; }
  .love-footer { gap: 14px; font-size: 7px; }
  .music-toggle__label { display: none; }
}

@media (max-height: 720px) {
  .cover { padding-top: 16px; padding-bottom: 14px; }
  .brand-logo { max-height: 34vh; }
  .cover__title { font-size: clamp(24px, 3.5vw, 38px); }
  .cover__subtitle { margin-top: 10px; line-height: 1.5; }
  .continue-button { margin-top: 10px; }
  .cover__footer { margin-top: 6px; }
}

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