/* ════════════════════════════════════════════════════════
   Rafael & Elvira — premium digital invitation
   Mobile-first. Cinematic. Emotional. Minimal.
   ════════════════════════════════════════════════════════ */

/* ─── Design tokens ─────────────────────────────────────── */
:root {
  /* Palette */
  --bg-1:        #f1ebdd;
  --bg-2:        #e8e0cd;
  --bg-3:        #ddd1b3;
  --paper:       #ece1c8;
  --paper-warm:  #e0d2b1;
  --ink:         #1a1814;
  --ink-2:       #2c2922;
  --ink-3:       #45413a;
  --muted:       #7a7163;
  --muted-2:     #9b9282;
  --hairline:    #c9c1b1;
  --accent:      #a8121f;        /* heart red — slightly muted */
  --gold:        #b9986a;
  --gold-deep:   #9a7c4f;
  --cream:       #f9f5ea;

  /* Shadow scale */
  --sh-1: 0 1px 2px rgba(40,30,15,.05), 0 8px 18px -10px rgba(40,30,15,.18);
  --sh-2: 0 2px 4px rgba(40,30,15,.06), 0 22px 50px -24px rgba(40,30,15,.28);
  --sh-3: 0 4px 10px rgba(40,30,15,.08), 0 50px 90px -40px rgba(40,30,15,.45);

  /* Fonts */
  --serif:    "Cormorant Garamond", "Times New Roman", serif;
  --serif-sc: "Cormorant SC", "Cormorant Garamond", serif;
  --script:   "Great Vibes", cursive;
  --script-2: "Italianno", "Pinyon Script", cursive;

  /* Motion */
  --ease-soft:  cubic-bezier(.22, 1, .36, 1);     /* expo-out — for big reveals */
  --ease-quint: cubic-bezier(.83, 0, .17, 1);
  --ease-out:   cubic-bezier(.16, .84, .32, 1);
  --ease-in-out:cubic-bezier(.65, 0, .35, 1);

  --dur-1: .2s;
  --dur-2: .4s;
  --dur-3: .7s;
  --dur-4: 1.1s;
  --dur-5: 1.6s;
  --dur-6: 2.4s;

  /* Spacing scale (mobile-first via clamp) */
  --s-0:  4px;
  --s-1:  8px;
  --s-2:  12px;
  --s-3:  16px;
  --s-4:  clamp(20px, 5vw, 24px);
  --s-5:  clamp(28px, 7vw, 36px);
  --s-6:  clamp(40px, 10vw, 56px);
  --s-7:  clamp(56px, 13vw, 80px);
  --s-8:  clamp(72px, 16vw, 104px);

  /* Layout */
  --pad:  clamp(20px, 6vw, 32px);
  --maxw: 440px;

  /* Typography ramp */
  --fs-overline: clamp(11px, 3.2vw, 13px);
  --fs-caption:  clamp(11px, 3vw, 12px);
  --fs-body:     clamp(15px, 4vw, 17px);
  --fs-body-lg:  clamp(16px, 4.4vw, 19px);
  --fs-h2:       clamp(20px, 5.6vw, 24px);
  --fs-h1-cap:   clamp(20px, 5.8vw, 28px);
  --fs-display:  clamp(42px, 11.5vw, 64px); /* script names */
  --fs-mega:     clamp(68px, 19vw, 104px);  /* "Вас", "With Love" */

  /* Border radii (mostly very subtle) */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 14px;
  --r-pill: 999px;
}

/* ─── Reset / base ──────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
  background: var(--bg-1);
  background-image:
    radial-gradient(120% 60% at 50% 0%,  #fbf7eb 0%, transparent 60%),
    radial-gradient(120% 80% at 50% 120%, #d8caa9 0%, transparent 55%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: rgba(168, 18, 31, .15); color: var(--ink); }

/* ─── Ambient layers ────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient .orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: orbDrift 26s ease-in-out infinite alternate;
}
.ambient .orb-a {
  width: 70vw; height: 70vw; top: -25vw; left: -25vw;
  background: radial-gradient(closest-side, #f6e3c1, transparent 70%);
}
.ambient .orb-b {
  width: 80vw; height: 80vw; bottom: -30vw; right: -30vw;
  background: radial-gradient(closest-side, #e6d2ac, transparent 70%);
  animation-duration: 32s; animation-delay: -10s;
}
.ambient .orb-c {
  width: 50vw; height: 50vw; top: 40%; left: 30%;
  background: radial-gradient(closest-side, #fff4dd, transparent 70%);
  opacity: .3; animation-duration: 40s; animation-delay: -5s;
}
@keyframes orbDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(5vw,-4vw,0) scale(1.12); }
}

/* ─── Sound toggle ──────────────────────────────────────── */
.sound-toggle {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  z-index: 60;
  height: 38px;
  padding: 0 14px 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(40,30,15,.14);
  border-radius: var(--r-pill);
  background: rgba(255,253,247,.78);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    0 4px 14px -6px rgba(40,30,15,.25),
    inset 0 0 0 1px rgba(255,255,255,.55);
  font-family: var(--serif-sc);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-8px);
  animation: soundIn .8s var(--ease-soft) 1.8s forwards;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform .15s var(--ease-out),
    background .3s var(--ease-out),
    border-color .3s var(--ease-out),
    box-shadow .3s var(--ease-out);
}
@keyframes soundIn { to { opacity: 1; transform: none; } }
.sound-toggle:active { transform: scale(.96); }
.sound-toggle:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .sound-toggle:hover {
    background: rgba(255,253,247,.95);
    box-shadow: 0 8px 22px -10px rgba(40,30,15,.35), inset 0 0 0 1px rgba(255,255,255,.7);
  }
}

.sound-icon { position: relative; width: 16px; height: 16px; display: inline-grid; place-items: center; flex: 0 0 auto; }
.sound-icon .ico { position: absolute; inset: 0; transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
.sound-toggle.is-muted  .ico-on  { opacity: 0; transform: scale(.7); }
.sound-toggle.is-muted  .ico-off { opacity: 1; transform: scale(1); }
.sound-toggle:not(.is-muted) .ico-on  { opacity: 1; transform: scale(1); }
.sound-toggle:not(.is-muted) .ico-off { opacity: 0; transform: scale(.7); }

.sound-label { position: relative; display: inline-block; min-width: 96px; height: 13px; overflow: hidden; }
.sound-label-text { position: absolute; inset: 0; display: flex; align-items: center;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
.sound-toggle.is-muted  .label-on  { opacity: 0; transform: translateY(-6px); }
.sound-toggle.is-muted  .label-off { opacity: 1; transform: none; }
.sound-toggle:not(.is-muted) .label-on  { opacity: 1; transform: none; }
.sound-toggle:not(.is-muted) .label-off { opacity: 0; transform: translateY(6px); }

.sound-pulse { position: absolute; inset: -2px; border-radius: var(--r-pill); pointer-events: none;
  opacity: 0; transition: opacity .3s var(--ease-out); }
.sound-pulse i { position: absolute; inset: 0; border-radius: var(--r-pill); border: 1px solid rgba(40,30,15,.28);
  animation: soundRipple 2.4s var(--ease-out) infinite; }
.sound-pulse i:nth-child(2) { animation-delay: .8s; }
.sound-pulse i:nth-child(3) { animation-delay: 1.6s; }
.sound-toggle:not(.is-muted) .sound-pulse { opacity: 1; }
@keyframes soundRipple { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.4); opacity: 0; } }

/* hint */
.sound-hint {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 14px + 162px);
  height: 38px;
  z-index: 59;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-deep);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  animation:
    hintIn  .8s var(--ease-soft) 2.6s forwards,
    hintBob 1.8s ease-in-out 3.6s infinite;
  transition: opacity .45s var(--ease-out), transform .5s var(--ease-out);
}
.sound-hint.is-hidden { opacity: 0 !important; transform: translateX(20px) !important; animation: none !important; }
.sound-hint-label { font-family: var(--script); font-size: 22px; line-height: 1; color: var(--gold-deep); }
.sound-hint-arrow { display: block; flex: 0 0 auto; }
@keyframes hintIn  { to { opacity: 1; transform: translateX(0); } }
@keyframes hintBob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
@media (max-width: 380px) { .sound-hint { right: calc(env(safe-area-inset-right, 0px) + 14px + 150px); } .sound-hint-label { font-size: 19px; } }
@media (max-width: 340px) { .sound-hint-label { display: none; } }

/* ─── Intro overlay ─────────────────────────────────────── */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #f3eddf 0%, #e5d8b9 100%);
  transition: opacity 1s var(--ease-soft), transform 1.2s var(--ease-soft);
  will-change: transform, opacity;
}
.intro.is-open { opacity: 0; transform: translateY(-14%); pointer-events: none; }
.intro::before, .intro::after {
  content:""; position:absolute; left:0; right:0; height:50%;
  background: linear-gradient(180deg, #efe6d2 0%, #ddd0b3 100%);
  transition: transform 1.2s var(--ease-soft);
}
.intro::before { top:0; transform-origin: top; }
.intro::after  { bottom:0; transform-origin: bottom; }
.intro.is-open::before { transform: translateY(-100%); }
.intro.is-open::after  { transform: translateY(100%); }

.intro-card { position: relative; z-index: 2; text-align: center; padding: 28px 36px; color: #2a2418; }
.intro-mark { display: grid; place-items: center; margin-bottom: 14px; color: #6b5e3f;
  animation: introMarkSpin 22s linear infinite; }
@keyframes introMarkSpin { to { transform: rotate(360deg); } }
.intro-monogram {
  font-family: var(--script);
  font-size: 78px; line-height: 1; color: #2a2418; letter-spacing: .02em;
  animation: introPulse 3.6s var(--ease-out) infinite alternate;
}
.intro-rule { width: 88px; height: 1px; background: #6b5e3f; margin: 14px auto;
  transform-origin: center; animation: ruleDraw 1.2s var(--ease-soft) .4s both; }
.intro-sub { font-family: var(--serif-sc); text-transform: uppercase; letter-spacing: .42em; font-size: 11px; color: #6b5e3f; }
@keyframes introPulse { from { opacity: .9; transform: scale(1); } to { opacity: 1; transform: scale(1.03); } }
@keyframes ruleDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ─── Page wrapper ──────────────────────────────────────── */
.page {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding:
    env(safe-area-inset-top) var(--pad)
    env(safe-area-inset-bottom) var(--pad);
}

/* ─── Reveal system ─────────────────────────────────────── */
/* Section-level reveal — delay via --cd custom property so it
   doesn't clobber per-element transitions (e.g. clip-path).     */
[data-reveal] > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(8px);
  transition:
    opacity   var(--dur-4) var(--ease-soft) var(--cd, 0ms),
    transform var(--dur-4) var(--ease-soft) var(--cd, 0ms),
    filter    var(--dur-4) var(--ease-soft) var(--cd, 0ms);
}
[data-reveal].in > * { opacity: 1; transform: none; filter: none; }

/* Character splitter (used on hero) */
.split-chars { position: relative; }
.split-chars .char,
.split-chars .word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .35em, 0);
  filter: blur(6px);
  transition:
    opacity   1s var(--ease-soft),
    transform 1.1s var(--ease-soft),
    filter    1s  var(--ease-soft);
  transition-delay: calc(var(--ci, 0) * 30ms + var(--cd, 0ms));
}
.split-chars.is-in .char,
.split-chars.is-in .word { opacity: 1; transform: none; filter: none; }
.split-chars .space { display: inline-block; width: .3em; }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: clamp(64px, 16vh, 96px) 0 var(--s-6);
  display: flex; flex-direction: column;
  gap: clamp(22px, 6vw, 32px);
}
.hero-head { text-align: center; }
.overline {
  font-family: var(--serif-sc);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .46em;
  font-size: var(--fs-overline);
  color: var(--ink);
  padding-left: .46em;
}
.hero-rule {
  width: 100%;
  display: flex; justify-content: center;
  margin: 12px 0 4px;
  pointer-events: none;
}
.hero-rule span {
  display: block;
  height: 1px;
  width: min(240px, 56%);
  background: linear-gradient(90deg, transparent, var(--ink) 18%, var(--ink) 82%, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-5) var(--ease-soft);
  transition-delay: 480ms;
}
.hero.in .hero-rule span { transform: scaleX(1); }

.couple {
  margin: 4px 0 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .95;
  color: var(--ink);
  letter-spacing: .005em;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  white-space: nowrap;
  text-wrap: balance;
  word-spacing: -.05em;
}
@media (max-width: 340px) { .couple { font-size: 38px; word-spacing: -.08em; } }
.couple-name { display: inline-block; }
.amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: .42em;
  padding: 0 .26em;
  vertical-align: .22em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 1s var(--ease-soft) 900ms;
}
.hero.in .amp { opacity: 1; }

/* hero photo — curtain + blur-to-focus + ken-burns */
.hero-photo {
  margin: 0; position: relative;
  border-radius: var(--r-1);
  overflow: hidden;
  box-shadow: var(--sh-3);
  aspect-ratio: 4 / 5;
  -webkit-clip-path: inset(50% 10% 50% 10% round 2px);
          clip-path: inset(50% 10% 50% 10% round 2px);
  transition: clip-path 1.6s var(--ease-soft), -webkit-clip-path 1.6s var(--ease-soft);
  transition-delay: 500ms;
}
.hero.in .hero-photo {
  -webkit-clip-path: inset(0 0 0 0 round 2px);
          clip-path: inset(0 0 0 0 round 2px);
}
.hero-photo-inner { position: absolute; inset: -6%; will-change: transform; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.22);
  filter: blur(16px) saturate(.82) brightness(.9);
  transition: transform 2.6s var(--ease-soft), filter 1.8s var(--ease-soft);
  transition-delay: 600ms;
}
.hero.in .hero-img {
  transform: scale(1.03);
  filter: blur(0) saturate(1) brightness(1);
  animation: kenburns 22s ease-in-out 2.6s infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.03) translate3d(0, 0, 0); }
  100% { transform: scale(1.11) translate3d(-2%, -1.5%, 0); }
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(120% 80% at 50% 45%, transparent 50%, rgba(0,0,0,.35) 100%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
}
.hero-veil { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,8,.55) 0%, rgba(8,12,8,.32) 100%);
  opacity: 1; transition: opacity 1.6s var(--ease-soft); transition-delay: 700ms; }
.hero.in .hero-veil { opacity: 0; }
.hero-shimmer { position: absolute; top: 0; bottom: 0; width: 60%; z-index: 4;
  left: -80%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,245,220,0) 30%, rgba(255,245,220,.22) 50%, rgba(255,245,220,0) 70%, transparent 100%);
  transform: skewX(-12deg); opacity: 0; }
.hero.in .hero-shimmer { animation: heroShimmer 2.4s var(--ease-soft) 1.4s 1 forwards; }
@keyframes heroShimmer { 0% { left: -80%; opacity: 0; } 18% { opacity: 1; } 100% { left: 140%; opacity: 0; } }
.hero-grain {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* hero foot row */
.hero-foot {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hero-date {
  font-family: var(--serif);
  font-size: clamp(16px, 4.4vw, 19px);
  letter-spacing: .32em;
  color: var(--ink);
  text-align: center;
}
/* ─── Invite copy ───────────────────────────────────────── */
.invite {
  padding: var(--s-8) 0 var(--s-7);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
}
.invite-ornament { color: var(--gold-deep); margin-bottom: 8px; opacity: .85; }
.invite-line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 5vw, 22px);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: .005em;
  max-width: 34ch;
}
.invite-line-soft {
  color: var(--ink-2);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 4.7vw, 20px);
}
.heart { color: var(--accent); font-size: 1em; opacity: .9; }
.br-mob { display: inline; }
@media (min-width: 420px) { .br-mob { display: none; } }

/* ─── Waiting + Calendar ────────────────────────────────── */
.waiting { padding: var(--s-7) 0 var(--s-7); text-align: center; }
.waiting-title { position: relative; margin: 0 0 var(--s-5); font-weight: 400; line-height: 1; }
.waiting-upper {
  display: inline-block;
  font-family: var(--serif-sc);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: clamp(20px, 6vw, 26px);
  color: var(--ink);
  vertical-align: middle;
}
.waiting-script {
  display: inline-block;
  font-family: var(--script);
  font-size: var(--fs-mega);
  color: var(--gold);
  margin-left: -.18em;
  transform: translateY(.14em);
  opacity: .85;
  line-height: 1;
  letter-spacing: -.01em;
}

.calendar {
  background: #fdfaf3;
  border: 1px solid var(--hairline);
  padding: clamp(22px, 6vw, 30px) clamp(16px, 5vw, 26px) clamp(20px, 5vw, 24px);
  box-shadow: var(--sh-2);
  border-radius: var(--r-1);
  position: relative;
}
.calendar::before, .calendar::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 18px; height: 1px; background: var(--hairline);
}
.calendar::before { top: -1px; } .calendar::after { bottom: -1px; }
.calendar-month {
  text-align: center;
  font-family: var(--script);
  font-size: clamp(38px, 9.5vw, 46px);
  color: var(--ink);
  line-height: 1;
}
.calendar-month-en {
  text-align: center;
  font-family: var(--serif-sc);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .42em;
  color: var(--muted);
  margin-top: 6px;
}
.calendar-weekdays {
  margin-top: clamp(14px, 4vw, 18px);
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: clamp(4px, 2vw, 10px);
  font-family: var(--serif-sc);
  font-size: clamp(10px, 2.8vw, 11px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}
.calendar-grid {
  margin-top: clamp(8px, 2vw, 10px);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(2px, 1vw, 4px) clamp(4px, 2vw, 10px);
  font-family: var(--serif);
  font-size: clamp(13px, 3.8vw, 15px);
  color: var(--ink-3);
  text-align: center;
}
.cal-cell {
  position: relative; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  font-variant-numeric: lining-nums;
  letter-spacing: .02em;
}
.cal-cell.is-empty { visibility: hidden; }
.cal-cell.is-weekend { color: var(--muted-2); }
.cal-cell.is-mark { font-weight: 500; }
.cal-cell.is-mark::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  opacity: 0; transform: scale(.5);
  z-index: 0;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7-4.5-9.5-9C.9 8.6 2.5 4.5 6 4c2-.3 3.6.8 6 3.2C14.4 4.8 16 3.7 18 4c3.5.5 5.1 4.6 3.5 8C19 16.5 12 21 12 21z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7-4.5-9.5-9C.9 8.6 2.5 4.5 6 4c2-.3 3.6.8 6 3.2C14.4 4.8 16 3.7 18 4c3.5.5 5.1 4.6 3.5 8C19 16.5 12 21 12 21z' fill='black'/></svg>") center/contain no-repeat;
  transition: opacity 1s var(--ease-soft), transform 1.2s var(--ease-soft);
  transition-delay: 600ms;
}
/* the "6" inside the heart */
.cal-cell.is-mark .cal-num {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05em;
  line-height: 1;
  /* nudge slightly down to sit in the visual center of the heart */
  transform: translateY(8%);
  text-shadow: 0 1px 2px rgba(120, 0, 10, .25);
  letter-spacing: 0;
}
.waiting.in .cal-cell.is-mark::before {
  opacity: 1; transform: scale(1);
  animation: heartBeat 2.6s var(--ease-in-out) 2.2s infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.12); }
  20%      { transform: scale(.96); }
  30%      { transform: scale(1.06); }
  45%      { transform: scale(1); }
}

.calendar-foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: clamp(20px, 5vw, 24px);
}
.calendar-rule { flex: 1; height: 1px; background: var(--hairline); }
.calendar-date {
  font-family: var(--serif);
  font-size: clamp(17px, 4.4vw, 19px);
  letter-spacing: .18em;
  color: var(--ink);
}

/* ─── Location (paper) ──────────────────────────────────── */
.location { padding: var(--s-7) 0; }
.paper {
  position: relative;
  padding:
    clamp(40px, 10vw, 60px) clamp(22px, 6vw, 30px)
    clamp(30px, 7vw, 40px);
  background:
    radial-gradient(120% 80% at 28% 6%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(120% 100% at 82% 94%, rgba(0,0,0,.06), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-radius: 1px;
  box-shadow:
    var(--sh-3),
    inset 0 0 0 1px rgba(255,255,255,.3),
    inset 0 -40px 60px -30px rgba(40,28,12,.16);
}
.paper::before, .paper::after {
  content:""; position: absolute; left: 0; right: 0; height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 16' preserveAspectRatio='none'><path d='M0 8 Q 25 2 50 8 T 100 8 T 150 8 T 200 8 T 250 8 T 300 8 T 350 8 T 400 8 V16 H0 Z' fill='%23ece1c8'/></svg>");
  background-size: 100% 100%;
}
.paper::before { top: -1px; transform: translateY(-100%); }
.paper::after  { bottom: -1px; transform: translateY(100%) scaleY(-1); }

.location-script {
  margin: 0;
  text-align: center;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(68px, 19vw, 96px);
  color: #2a2418;
  opacity: .9;
  line-height: 1;
  letter-spacing: .005em;
}
.location-intro {
  text-align: center;
  font-family: var(--serif-sc);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: clamp(13px, 3.6vw, 15px);
  color: #2a2418;
  margin: clamp(12px, 4vw, 18px) 0 clamp(18px, 5vw, 22px);
}
.location-card {
  background: #fffaf0;
  padding: clamp(22px, 6vw, 28px) clamp(18px, 5vw, 24px);
  text-align: center;
  border-radius: 1px;
  box-shadow: 0 18px 40px -24px rgba(40,28,12,.32);
  position: relative;
}
.location-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 5.4vw, 24px);
  letter-spacing: .18em;
  color: var(--ink);
}
.location-divider {
  width: 28px; height: 1px; background: var(--gold);
  margin: 12px auto;
  opacity: .8;
}
.location-addr {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(15px, 4vw, 16px);
  line-height: 1.55;
  color: var(--ink-2);
}

.btn-route {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: clamp(20px, 5vw, 24px) auto 0;
  width: 100%;
  background: linear-gradient(180deg, #211d17 0%, #14110d 100%);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif-sc);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 18px 22px;
  border-radius: 1px;
  position: relative; overflow: hidden;
  box-shadow:
    0 14px 30px -16px rgba(20,15,5,.7),
    inset 0 1px 0 rgba(255,235,200,.08);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-route::before {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,235,200,.16) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 1s var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
  .btn-route:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(20,15,5,.8); }
  .btn-route:hover::before { transform: translateX(120%); }
  .btn-route:hover .btn-route-icon { transform: translateX(4px); }
}
.btn-route:active { transform: translateY(0); }
.btn-route-label { line-height: 1; }
.btn-route-icon { display: inline-flex; transition: transform .35s var(--ease-out); }

/* ─── Countdown (torn paper) ────────────────────────────── */
.countdown {
  padding: var(--s-7) 0 var(--s-8);
  text-align: center;
}
.countdown-title {
  margin: 0 0 clamp(24px, 6vw, 32px);
  font-family: var(--serif-sc);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: var(--fs-h1-cap);
  color: var(--ink);
  line-height: 1.5;
}
.countdown-title em {
  font-family: var(--script);
  font-style: normal;
  font-size: 1.35em;
  letter-spacing: 0;
  color: var(--gold-deep);
  text-transform: none;
  display: inline-block;
  margin-top: 4px;
}

.torn {
  position: relative;
  background: #f4eee2;
  box-shadow:
    0 24px 60px -32px rgba(40,28,12,.4),
    inset 0 0 0 1px rgba(255,255,255,.4);
}
.torn-edge {
  position: absolute; left: 0; right: 0; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18' preserveAspectRatio='none'><path d='M0 9 L20 4 L40 12 L62 6 L86 13 L112 7 L136 11 L162 5 L188 12 L214 6 L240 13 L266 7 L292 11 L318 5 L344 12 L370 7 L400 10 V18 H0 Z' fill='%23f4eee2'/></svg>");
  background-size: 100% 100%;
  filter: drop-shadow(0 2px 1px rgba(40,28,12,.08));
}
.torn-top    { top: -1px; transform: translateY(-100%); }
.torn-bottom { bottom: -1px; transform: translateY(100%) scaleY(-1); }

.torn-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 2vw, 12px);
  padding: clamp(24px, 6vw, 32px) clamp(10px, 3vw, 18px);
}
.cd-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative;
}
.cd-cell + .cd-cell::before {
  content:""; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(40,28,12,.1);
}
.cd-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 8.6vw, 38px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}
.cd-num-flip {
  display: inline-block;
  animation: cdFlip .45s var(--ease-soft);
}
@keyframes cdFlip {
  0%   { transform: translateY(-100%); opacity: 0; filter: blur(3px); }
  50%  { transform: translateY(0%);     opacity: 1; filter: blur(0); }
  100% { transform: translateY(0); opacity: 1; }
}
.cd-label {
  font-family: var(--script);
  font-size: clamp(15px, 4.2vw, 18px);
  color: var(--muted);
  margin-top: 4px;
}
.countdown-foot {
  margin: clamp(32px, 8vw, 48px) 0 0;
  font-family: var(--serif-sc);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: clamp(14px, 3.8vw, 16px);
  color: var(--ink);
}

/* ─── Signoff ───────────────────────────────────────────── */
.signoff {
  padding: var(--s-7) 0 var(--s-8);
  text-align: center;
  position: relative;
}
.ghost-script {
  font-family: var(--script-2);
  font-size: clamp(82px, 25vw, 140px);
  line-height: .95;
  color: transparent;
  -webkit-text-stroke: 1px rgba(60,40,20,.32);
  letter-spacing: .005em;
  text-shadow: 0 4px 18px rgba(40,28,12,.05);
  white-space: nowrap;
}
.ghost-names {
  margin-top: clamp(6px, 2vw, 12px);
  font-family: var(--script);
  font-size: clamp(34px, 9vw, 44px);
  color: var(--ink-2);
  line-height: 1;
}
.signoff-rule {
  width: 38px; height: 1px;
  background: var(--gold);
  margin: clamp(20px, 5vw, 26px) auto 0;
  opacity: .8;
}
.signoff-date {
  margin-top: clamp(16px, 4vw, 20px);
  font-family: var(--serif-sc);
  font-weight: 500;
  letter-spacing: .42em;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── Larger screens — keep mobile-card aesthetic ───────── */
@media (min-width: 720px) {
  :root { --maxw: 480px; }
  body { background: linear-gradient(180deg, #ece4d3, #d6c8a7); }
  .page {
    box-shadow: 0 60px 140px -60px rgba(40,28,12,.4);
    background: var(--bg-1);
    background-image:
      radial-gradient(120% 60% at 50% 0%, #fbf7eb 0%, transparent 60%),
      radial-gradient(120% 80% at 50% 120%, #d8caa9 0%, transparent 55%);
  }
}

/* ─── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] > *, .split-chars .char, .split-chars .word {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .intro { display: none; }
}
