/* ================================================================== */
/* Arfa 20 — static site styles                                        */
/* ================================================================== */

:root {
  --bg: #fdfbf7;
  --surface: #faf3f0;
  --surface-2: #f4eae6;
  --blush: #f1dcd3;
  --champagne: #e8d5b7;
  --gold: #c5a365;
  --gold-soft: #d9bd85;
  --rose: #c98b82;
  --ink: #3e2723;
  --muted: #795548;
}

* { box-sizing: border-box; }

/* Respect the native `hidden` attribute even when CSS sets display */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Typography */
.font-heading { font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-weight: 300; letter-spacing: -0.01em; }
.font-italic-serif { font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-style: italic; font-weight: 300; }
.font-hand { font-family: "Caveat", ui-serif, cursive; }

em { font-style: italic; font-weight: 300; }

/* Selection */
::selection { background: rgba(201, 139, 130, 0.35); color: #3e2723; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #faf3f0; }
::-webkit-scrollbar-thumb { background: #e8d5b7; border-radius: 10px; border: 2px solid #faf3f0; }

/* ================================================================== */
/* GRAIN                                                                */
/* ================================================================== */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.15  0 0 0 0 0.14  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 80;
}

/* ================================================================== */
/* ORNAMENT                                                             */
/* ================================================================== */
.ornament {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 auto;
  max-width: 320px;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 163, 101, 0.5), transparent);
}
.ornament.center { text-align: center; }

/* ================================================================== */
/* REVEAL ANIMATIONS (Intersection Observer powered)                   */
/* ================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.blur {
  filter: blur(6px);
}
.reveal.blur.is-visible {
  filter: blur(0);
}

/* ================================================================== */
/* GATE                                                                 */
/* ================================================================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 700px at 50% 30%, #fbe9df 0%, #faf3f0 45%, #efe0d4 100%);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.gate.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.gate-form {
  width: 100%;
  max-width: 560px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(197, 163, 101, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.gate-ornament { width: 220px; }
.gate-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.gate-lede {
  color: var(--muted);
  max-width: 440px;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

.pass-input {
  width: 100%;
  max-width: 460px;
  padding: 16px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(197, 163, 101, 0.35);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.18em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pass-input::placeholder {
  color: rgba(121, 85, 72, 0.55);
  letter-spacing: 0.2em;
}
.pass-input:focus {
  border-color: rgba(197, 163, 101, 0.9);
  box-shadow: 0 0 0 4px rgba(197, 163, 101, 0.12);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--bg);
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-dark:hover { background: #4e342e; }
.btn-dark:active { transform: scale(0.97); }
.btn-dark svg { color: var(--blush); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(197, 163, 101, 0.6);
  color: var(--ink);
  background: transparent;
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.gate-hint-toggle {
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(121, 85, 72, 0.7);
  transition: color 0.3s ease;
}
.gate-hint-toggle:hover { color: var(--muted); }

.gate-hint {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  margin: 2px 0 0 0;
  max-width: 440px;
}
.gate-error {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 2px 0 0 0;
}
.gate-form.shake { animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
}

/* ================================================================== */
/* PETALS                                                               */
/* ================================================================== */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -10vh;
  width: 12px;
  height: 12px;
  border-radius: 70% 30% 62% 38% / 50% 55% 45% 50%;
  background: radial-gradient(circle at 30% 30%, #fbe5dc, #e9b7a7 60%, #c98b82);
  opacity: 0.6;
  filter: drop-shadow(0 4px 8px rgba(201, 139, 130, 0.2));
  animation: floatPetal linear infinite;
}
@keyframes floatPetal {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.75; }
  100% { transform: translate3d(var(--drift, 30px), 110vh, 0) rotate(360deg); opacity: 0; }
}

/* ================================================================== */
/* LAYOUT                                                               */
/* ================================================================== */
.site { position: relative; z-index: 1; }

/* ================================================================== */
/* HERO                                                                 */
/* ================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 96px 24px 140px;
  background:
    radial-gradient(1200px 600px at 80% 20%, #fbe9df 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 90%, #f4eae6 0%, transparent 60%),
    var(--bg);
}
.hero-ornament {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
}
.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 40px; min-height: 80vh; }
}
.hero-portrait {
  position: relative;
  width: min(78vw, 460px);
  justify-self: center;
  aspect-ratio: 4 / 5;
  transition: transform 1.4s ease-out, opacity 1.4s ease-out;
}
@media (min-width: 900px) {
  .hero-portrait { justify-self: start; width: 100%; max-width: 520px; }
}
.hero-portrait-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(62,39,35,0.35),
    0 0 0 1px rgba(197,163,101,0.25);
}
.hero-portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(0.98);
}
.portrait-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(62,39,35,0.35) 100%),
    linear-gradient(180deg, rgba(253,251,247,0) 40%, rgba(253,251,247,0.7) 100%);
  pointer-events: none;
}
.hero-portrait-frame-1 {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(197, 163, 101, 0.25);
  pointer-events: none;
}
.hero-portrait-frame-2 {
  position: absolute;
  inset: -24px;
  border: 1px solid rgba(197, 163, 101, 0.1);
  pointer-events: none;
}

.hero-copy { padding: 0; }
.hero-kicker {
  color: var(--rose);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 16px 0;
  line-height: 1.1;
}
.hero-title {
  color: var(--ink);
  line-height: 0.95;
  margin: 0;
}
.hero-title-row-1 {
  display: block;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 300;
}
.hero-title-row-2 {
  display: block;
  font-size: clamp(3.4rem, 7.5vw, 5.6rem);
  font-weight: 500;
  margin-top: 6px;
}
.hero-lede {
  margin-top: 28px;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}
.hero-scroll {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-scroll-line { width: 56px; height: 1px; background: rgba(197, 163, 101, 0.6); }
.hero-scroll-label { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; }

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(197, 163, 101, 0.8), transparent);
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ================================================================== */
/* LETTER                                                               */
/* ================================================================== */
.letter {
  padding: 96px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.letter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .letter-grid { grid-template-columns: 5fr 7fr; gap: 72px; padding: 32px 0; }
}
.letter-aside {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}
.letter-aside-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(62, 39, 35, 0.25);
}
.letter-aside-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.08) saturate(0.95);
}
.letter-aside-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(253,251,247,0) 55%, rgba(253,251,247,0.4) 100%);
  pointer-events: none;
}
.letter-aside-border {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(197, 163, 101, 0.25);
  pointer-events: none;
}
.letter-aside-caption {
  color: var(--rose);
  font-size: 1.4rem;
  margin-top: 20px;
  text-align: center;
}

@media (min-width: 900px) {
  .letter-aside { position: sticky; top: 96px; }
}

.letter-paper {
  position: relative;
  padding: 32px;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(233, 213, 183, 0.35), transparent 60%),
    radial-gradient(1200px 500px at 110% 110%, rgba(241, 220, 211, 0.45), transparent 60%),
    linear-gradient(180deg, #fdfbf7 0%, #f7ece6 100%);
  box-shadow:
    0 30px 60px -20px rgba(62, 39, 35, 0.18),
    inset 0 0 60px rgba(233, 213, 183, 0.18);
}
@media (min-width: 640px) { .letter-paper { padding: 48px; } }
@media (min-width: 900px) { .letter-paper { padding: 56px; } }

.letter-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 24px 0 32px 0;
  color: var(--ink);
  line-height: 1.1;
}
.letter-body p {
  color: rgba(62, 39, 35, 0.85);
  font-size: 1.06rem;
  line-height: 1.9;
  margin: 0 0 24px 0;
}
.letter-signoff {
  white-space: pre-line;
  font-family: "Caveat", cursive;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1.4;
  margin: 40px 0 0 0;
}

/* ================================================================== */
/* MOMENTS                                                              */
/* ================================================================== */
.moments {
  padding: 112px 24px;
  background: linear-gradient(180deg, #fdfbf7 0%, #f6ebe4 60%, #fdfbf7 100%);
}
.moments-head {
  max-width: 640px;
  margin: 0 auto 80px;
  text-align: center;
}
.moments-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 24px 0 20px 0;
}
.moments-lede {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.polaroids {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0 16px;
}
@media (min-width: 640px) { .polaroids { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .polaroids { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.polaroid {
  position: relative;
  width: min(78vw, 280px);
  background: white;
  padding: 12px 12px 40px;
  box-shadow: 0 25px 50px -20px rgba(62, 39, 35, 0.35);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
  will-change: transform;
}
@media (min-width: 1024px) { .polaroid { width: 100%; max-width: 240px; } }
.polaroid:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.04);
  z-index: 10;
  box-shadow: 0 35px 60px -20px rgba(62, 39, 35, 0.45);
}
.polaroid-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}
.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid-tape {
  position: absolute;
  width: 88px;
  height: 22px;
  background: rgba(201, 139, 130, 0.28);
  box-shadow: 0 1px 2px rgba(62, 39, 35, 0.08);
  top: -10px;
  left: 50%;
}
.polaroid-caption {
  font-family: "Caveat", cursive;
  color: var(--ink);
  font-size: 1.3rem;
  text-align: center;
  margin: 14px 0 0 0;
  line-height: 1.2;
}

.moments-note {
  text-align: center;
  max-width: 420px;
  margin: 80px auto 0;
}
.moments-note-main {
  color: var(--rose);
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  margin: 0;
  line-height: 1.1;
}
.moments-note-sub {
  color: var(--muted);
  font-size: 1.3rem;
  margin: 6px 0 0 0;
}

/* ================================================================== */
/* SPECIAL LINES                                                        */
/* ================================================================== */
.special {
  padding: 112px 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.special-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 24px 0 0 0;
}
.special-lines {
  margin-top: 88px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
@media (min-width: 640px) {
  .special-lines { gap: 72px; }
}
.special-line {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.5;
  color: rgba(62, 39, 35, 0.9);
  max-width: 780px;
  margin: 0 auto;
}
.special-line .bullet { font-style: italic; color: var(--rose); margin-right: 8px; }

/* ================================================================== */
/* VIDEO SECTION                                                        */
/* ================================================================== */
.video-section {
  padding: 112px 24px;
  background: radial-gradient(1200px 600px at 50% 0%, #f4eae6 0%, transparent 60%), var(--bg);
}
.video-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.video-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 24px 0 0 0;
}
.video-lede {
  margin-top: 16px;
  color: var(--muted);
  font-style: italic;
}

.video-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: white;
  padding: 14px;
  box-shadow: 0 40px 90px -30px rgba(62, 39, 35, 0.45);
}
.video-inner { position: relative; }
.video-frame {
  position: relative;
  border: 1px solid rgba(197, 163, 101, 0.4);
  padding: 10px;
  background: #2b1a17;
}
.video-frame > video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #2b1a17;
  filter: saturate(0.85) contrast(0.95) brightness(0.9);
  transition: filter 0.6s ease;
}
@media (min-width: 640px) {
  .video-frame > video { aspect-ratio: 4 / 5; max-height: 560px; }
}
.video-frame.is-playing > video {
  filter: saturate(0.95) contrast(1.02);
}

.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.corner-tl { top: -2px; left: -2px; border-width: 1px 0 0 1px; }
.corner-tr { top: -2px; right: -2px; border-width: 1px 1px 0 0; }
.corner-bl { bottom: -2px; left: -2px; border-width: 0 0 1px 1px; }
.corner-br { bottom: -2px; right: -2px; border-width: 0 1px 1px 0; }

.video-overlay {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(62,39,35,0.35) 0%, rgba(62,39,35,0.55) 100%);
  transition: opacity 0.6s ease;
  z-index: 3;
}
.video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.video-play {
  width: 84px;
  height: 84px;
  border-radius: 9999px;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, color 0.3s ease;
}
@media (min-width: 640px) {
  .video-play { width: 96px; height: 96px; }
}
.video-play:hover { transform: scale(1.06); color: var(--rose); }
.video-play:active { transform: scale(0.97); }
.video-play svg { transform: translateX(2px); }
.video-overlay-caption {
  margin-top: 24px;
  color: rgba(253, 251, 247, 0.95);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.video-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
.video-ctl {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(253, 251, 247, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background-color 0.3s ease;
}
.video-ctl:hover { background: rgba(253, 251, 247, 1); }

.video-fallback {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  text-align: center;
  background: linear-gradient(180deg, #3e2723 0%, #2b1a17 100%);
  z-index: 5;
}
.video-fallback p:nth-of-type(1) {
  color: var(--surface);
  font-size: 1.25rem;
  margin: 16px 0 0 0;
  line-height: 1.6;
}
.video-fallback p:nth-of-type(2) {
  color: var(--champagne);
  font-size: 1.35rem;
  margin: 12px 0 0 0;
}

.video-plate {
  color: var(--ink);
  font-size: 1.4rem;
  text-align: center;
  margin: 18px 0 8px;
}

.video-footnote {
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ================================================================== */
/* TWENTY REASONS                                                       */
/* ================================================================== */
.reasons {
  padding: 112px 24px;
  background: linear-gradient(180deg, #fdfbf7 0%, #faf3f0 55%, #fdfbf7 100%);
}
.reasons-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.reasons-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 24px 0 16px 0;
}
.reasons-lede {
  color: var(--muted);
  margin: 0 0 28px 0;
}
.reasons-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .reasons-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 900px) { .reasons-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .reasons-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

.reason-card {
  position: relative;
  aspect-ratio: 3 / 4;
  text-align: left;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, #f1dcd3 0%, #e8d5b7 100%);
  box-shadow:
    0 20px 40px -20px rgba(62, 39, 35, 0.25),
    inset 0 0 0 1px rgba(197, 163, 101, 0.25);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s ease;
}
.reason-card:hover { transform: translateY(-3px); }
.reason-card.is-open {
  background: linear-gradient(160deg, #fdfbf7 0%, #faf3f0 100%);
  justify-content: space-between;
  align-items: flex-start;
}
.reason-number {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: rgba(62, 39, 35, 0.8);
  line-height: 1;
  transition: color 0.3s ease, font-size 0.3s ease;
}
.reason-card.is-open .reason-number {
  color: var(--gold);
  font-size: 1.5rem;
  align-self: flex-start;
}
.reason-tap {
  margin-top: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(62, 39, 35, 0.6);
}
.reason-card.is-open .reason-tap { display: none; }
.reason-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.reason-card.is-open .reason-text {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================== */
/* NEXT YEAR                                                            */
/* ================================================================== */
.next-year {
  padding: 112px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.next-year-head {
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: center;
}
.next-year-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 24px 0 0 0;
}
.wishes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .wishes { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.wish {
  position: relative;
  padding: 36px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(197, 163, 101, 0.25);
  box-shadow: 0 20px 40px -20px rgba(62, 39, 35, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.wish::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 32px;
  width: 24px;
  height: 24px;
  background: rgba(201, 139, 130, 0.3);
  border-radius: 9999px;
  filter: blur(8px);
}
.wish:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(62, 39, 35, 0.25);
}
.wish h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--rose);
}
.wish p {
  margin: 14px 0 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.next-year-foot {
  margin-top: 80px;
  text-align: center;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2rem);
}

/* ================================================================== */
/* ENVELOPE                                                             */
/* ================================================================== */
.envelope-section {
  padding: 128px 24px;
  text-align: center;
  background:
    radial-gradient(1000px 500px at 50% 20%, #fbe9df 0%, transparent 60%),
    linear-gradient(180deg, #fdfbf7 0%, #f4eae6 100%);
}
.envelope-head {
  max-width: 720px;
  margin: 0 auto 64px;
}
.envelope-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 24px 0 16px 0;
}
.envelope-lede { color: var(--muted); margin: 0; }

.envelope-stage {
  position: relative;
  min-height: 280px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 56px;
}

.envelope {
  position: relative;
  width: min(90vw, 360px);
  aspect-ratio: 4 / 3;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.envelope:hover { transform: translateY(-6px) rotate(-1deg); }
.envelope:active { transform: scale(0.97); }
.envelope.is-hidden { display: none; }

.envelope-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f7e3d7 0%, #e8c9b8 100%);
  box-shadow: 0 30px 60px -20px rgba(62, 39, 35, 0.4);
}
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(180deg, #eccfbd 0%, #dcb099 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid rgba(197, 163, 101, 0.4);
}
.envelope-seal {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #e8a097 0%, #b85c54 70%, #8b3f38 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(62, 39, 35, 0.35);
}
.envelope-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  text-align: center;
  color: rgba(62, 39, 35, 0.7);
  font-size: 1.3rem;
}

.envelope-note {
  max-width: 680px;
  padding: 32px;
  text-align: left;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(233, 213, 183, 0.35), transparent 60%),
    radial-gradient(1200px 500px at 110% 110%, rgba(241, 220, 211, 0.45), transparent 60%),
    linear-gradient(180deg, #fdfbf7 0%, #f7ece6 100%);
  box-shadow:
    0 30px 60px -20px rgba(62, 39, 35, 0.18),
    inset 0 0 60px rgba(233, 213, 183, 0.18);
  animation: envelopeFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (min-width: 640px) { .envelope-note { padding: 48px; } }
@keyframes envelopeFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.envelope-note[hidden] { display: none; }
.envelope-note-ornament { width: 180px; margin: 0 0 24px 0; }
.envelope-note-p {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 20px 0;
}
.envelope-note-divider {
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.envelope-note-divider span {
  flex: 1;
  height: 1px;
  background: rgba(197, 163, 101, 0.4);
}
.envelope-signoff {
  white-space: pre-line;
  font-family: "Caveat", cursive;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1.4;
  margin: 0;
}
.envelope-close {
  margin-top: 36px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.envelope-close:hover { color: var(--ink); }

.envelope-closing {
  margin-top: 96px;
  color: var(--muted);
  font-size: 1.1rem;
}
.envelope-date {
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(121, 85, 72, 0.7);
}

/* ================================================================== */
/* FOOTER                                                               */
/* ================================================================== */
.footer {
  padding: 56px 24px;
  text-align: center;
}
.footer p {
  color: rgba(121, 85, 72, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* ================================================================== */
/* MUSIC PLAYER (heart toggle + handwritten hint + curvy arrow)        */
/* ================================================================== */
.music-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
@media (min-width: 640px) {
  .music-stack { top: 24px; right: 24px; gap: 12px; }
}

.music-hint {
  position: relative;
  margin-top: 36px;
  margin-right: 4px;
  max-width: 230px;
  text-align: right;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transform: translate(16px, 6px);
  animation: hintIn 0.9s 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@media (min-width: 640px) { .music-hint { max-width: 260px; } }
.music-hint.is-fading {
  animation: hintOut 0.7s ease forwards;
}
.music-hint p {
  font-family: "Caveat", cursive;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
  margin: 0;
}
@media (min-width: 640px) { .music-hint p { font-size: 21px; } }
.music-hint .hint-em { color: var(--rose); }

.music-arrow {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 88px;
  color: var(--rose);
}
@media (min-width: 640px) { .music-arrow { width: 96px; } }
.music-arrow-line {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: drawArrow 1.6s 1.4s ease-out forwards;
}
.music-arrow-head {
  opacity: 0;
  animation: fadeIn 0.4s 2.9s ease-out forwards;
}

@keyframes hintIn {
  to { opacity: 1; transform: translate(0, 0); }
}
@keyframes hintOut {
  to { opacity: 0; transform: translate(16px, 0); }
}
@keyframes drawArrow {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.music-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fbe5dc 0%, #f1a7a0 55%, #c98b82 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 30px -12px rgba(184, 92, 84, 0.55);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
  animation: heartBeat 2.4s ease-in-out infinite;
}
@media (min-width: 640px) { .music-btn { width: 56px; height: 56px; } }
.music-btn:hover { transform: scale(1.06); animation-play-state: paused; }
.music-btn:active { transform: scale(0.94); }

@keyframes heartBeat {
  0%, 50%, 100% { transform: scale(1); }
  10% { transform: scale(1.08); }
  20% { transform: scale(1); }
}

.music-btn-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--bg);
  border: 1px solid var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(62, 39, 35, 0.18);
}

/* ================================================================== */
/* REDUCED MOTION                                                       */
/* ================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .petal { display: none; }
  .scroll-indicator { display: none; }
}
