/* =========================================================
   TOKENS
========================================================= */
:root{
  --cream:      #FBF3EF;
  --blush:      #F5DCD9;
  --rose:       #C08A78;
  --rose-deep:  #9C5B54;
  --gold:       #C9A66B;
  --ink:        #3B2E2C;
  --ink-soft:   #7A6560;
  --white:      #FFFDFB;

  --font-display: "Fraunces", serif;
  --font-body:    "Manrope", sans-serif;

  --radius: 2px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }

::selection{ background:var(--rose); color:var(--white); }

:focus-visible{
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

/* =========================================================
   AMBIENT PETALS
========================================================= */
.petals{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.petal{
  position: absolute;
  top: -5%;
  width: 10px;
  height: 12px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  border-radius: 60% 0 60% 0;
  opacity: 0.35;
  animation: fall linear infinite;
}
@keyframes fall{
  0%   { transform: translateY(0) translateX(0) rotate(0deg); }
  100% { transform: translateY(110vh) translateX(var(--drift,20px)) rotate(300deg); }
}

/* =========================================================
   HERO / ENVELOPE
========================================================= */
.envelope-stage{
  min-height: 100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(192,138,120,0.12), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(201,166,107,0.12), transparent 55%),
    var(--cream);
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.envelope-stage.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  position:fixed;
  inset:0;
}

.envelope-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 22px;
  padding: 24px;
  text-align:center;
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
}

.envelope{
  --w: 260px;
  --h: 172px;
  position: relative;
  width: var(--w);
  height: var(--h);
  cursor: pointer;
}

.envelope__back{
  position:absolute; inset:0;
  background: var(--white);
  border: 1px solid var(--blush);
  box-shadow: 0 30px 60px -20px rgba(156,91,84,0.35);
}

.envelope__letter{
  position:absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 82%;
  background: var(--white);
  border: 1px solid var(--blush);
  box-shadow: 0 -6px 16px rgba(0,0,0,0.04);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top: 26px;
  transition: transform .9s var(--ease);
  z-index: 1;
}
.letter-preview{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  text-align:center;
}

.envelope__flap{
  position:absolute;
  top:0; left:0; right:0;
  height: 0;
  border-left: calc(var(--w) / 2) solid transparent;
  border-right: calc(var(--w) / 2) solid transparent;
  border-top: 96px solid var(--blush);
  transform-origin: top center;
  transition: transform .7s var(--ease);
  z-index: 3;
  filter: drop-shadow(0 6px 8px rgba(156,91,84,0.15));
}

.envelope__seal{
  position:absolute;
  top: 96px;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 40px; height: 40px;
  background: radial-gradient(circle at 35% 30%, var(--rose), var(--rose-deep));
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--cream);
  font-size: 15px;
  z-index: 4;
  box-shadow: 0 4px 10px rgba(156,91,84,0.4);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.envelope.is-open .envelope__flap{
  transform: rotateX(180deg);
}
.envelope.is-open .envelope__seal{
  opacity:0;
  transform: translate(-50%,-50%) scale(0.4);
}
.envelope.is-open .envelope__letter{
  transform: translateY(-56%);
}

.open-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--ink);
  color: var(--cream);
  border:none;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 600;
  cursor:pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.open-btn:hover{ background: var(--rose-deep); transform: translateY(-2px); }
.open-btn svg{ transition: transform .3s var(--ease); }
.open-btn:hover svg{ transform: translateX(3px); }

.hint{
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* =========================================================
   MAIN CONTENT
========================================================= */
.main-content{
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.main-content.is-visible{ opacity: 1; }

.section{
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px;
}

.label{
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 700;
  margin-bottom: 18px;
}

.headline{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.headline em{
  font-style: italic;
  font-weight: 500;
  color: var(--rose-deep);
}
.headline--small{ font-size: clamp(28px, 4vw, 42px); }

.section-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.25;
  max-width: 620px;
}
.section-title.quote{
  font-style: italic;
  font-weight: 400;
  color: var(--rose-deep);
}

.subcopy, .section-desc{
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-top: 22px;
}

.hero-message{ text-align:left; }

.cta{
  display:inline-block;
  margin-top: 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cta--ghost{
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rose-deep);
  color: var(--rose-deep);
  transition: opacity .3s var(--ease);
}
.cta--ghost:hover{ opacity: 0.6; }

.cta--solid{
  background: var(--rose-deep);
  color: var(--cream);
  border:none;
  padding: 15px 30px;
  cursor:pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.cta--solid:hover{ background: var(--ink); transform: translateY(-2px); }

.divider{
  max-width: 760px;
  margin: 0 auto;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--blush), transparent);
}

/* ===== Gallery ===== */
.gallery{
  margin-top: 40px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.gallery__item{ position:relative; overflow:hidden; grid-column: span 1; grid-row: span 1; }
.gallery__item--tall{ grid-row: span 2; }
.gallery__item--wide{ grid-column: span 2; }

.gallery__img{
  width:100%; height:100%;
  background-color: var(--blush);
  background-size: cover;
  background-position: center;
  transition: transform .6s var(--ease);
}
.gallery__item:hover .gallery__img{ transform: scale(1.06); }

.gallery__item figcaption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--white);
  background: linear-gradient(to top, rgba(59,46,44,0.55), transparent);
}

/* ===== Reasons ===== */
.reasons__list{
  margin-top: 36px;
  display:flex;
  flex-direction:column;
}
.reasons__list li{
  display:flex;
  gap: 24px;
  align-items:flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--blush);
}
.reasons__list li:last-child{ border-bottom: 1px solid var(--blush); }
.reasons__mark{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
  min-width: 28px;
}
.reasons__list p{ font-size: 16px; color: var(--ink); }

/* ===== Closing ===== */
.closing{ text-align:center; }
.closing .subcopy{ margin-left:auto; margin-right:auto; }
.signature{
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose-deep);
}

/* ===== Footer ===== */
.footer{
  text-align:center;
  padding: 40px 24px 60px;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* ===== Toast ===== */
.toast{
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--cream);
  padding: 14px 22px;
  font-size: 13px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events:none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  z-index: 20;
}
.toast.is-visible{
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 640px){
  .section{ padding: 90px 20px; }
  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery__item--wide{ grid-column: span 2; }
  .envelope{ --w: 220px; --h: 148px; }
}
