/* =========================================================
   "Royal Jewel" palette
   Bride: burgundy + gold foil + ivory
   Groom: emerald  + gold foil + ivory
   ========================================================= */
:root {
  --cream: #fbf5ec;
  --paper: #fffbf5;
  --ink: #2b1a1e;
  --muted: #7a6862;
  --on-dark: #f8ecd9;
  --on-dark-muted: rgba(248, 236, 217, .72);

  --gold: #c99b45;
  --gold-deep: #97701f;
  --gold-light: #f0dca6;
  --line: rgba(201, 155, 69, .36);
  --line-dark: rgba(240, 220, 166, .32);
  --foil: linear-gradient(110deg, #a0721f 0%, #e9c46c 20%, #fff2c6 36%, #dcb158 52%, #a0721f 70%, #e9c46c 86%, #fff2c6 100%);

  --jewel: #7a1638;
  --jewel-2: #a8284f;
  --jewel-mid: #4d0c26;
  --jewel-deep: #2b0614;
  --accent: #e07a98;
  --tint: #fbecf0;
  --glow: rgba(122, 22, 56, .3);

  --display: "Cinzel", "Times New Roman", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(.6, .1, .2, 1);
}
body[data-side="groom"] {
  --jewel: #0c5a47;
  --jewel-2: #178066;
  --jewel-mid: #073a2f;
  --jewel-deep: #03201a;
  --accent: #5cc49c;
  --tint: #e8f5ef;
  --glow: rgba(12, 90, 71, .3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(201,155,69,.10) 1px, transparent 1.4px),
    radial-gradient(rgba(201,155,69,.06) 1px, transparent 1.4px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }

.foil {
  background: var(--foil);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: foil 7s linear infinite;
}
@keyframes foil { to { background-position: -250% 0; } }

.kicker {
  font-family: var(--display); font-weight: 500;
  font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-deep);
}

/* Marigold toran — tile is generated in app.js */
.garland {
  position: absolute; left: 0; right: 0; top: 0; height: 124px; z-index: 3; pointer-events: none;
  background-image: var(--garland);
  background-repeat: repeat-x;
  background-size: 180px 124px;
  background-position: center top;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.35)) drop-shadow(0 12px 12px rgba(0,0,0,.18));
}

/* =========================================================
   Envelope intro
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; text-align: center; padding: 120px 24px 24px;
  background:
    radial-gradient(ellipse at 50% 40%, var(--jewel) 0%, var(--jewel-mid) 50%, var(--jewel-deep) 100%);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.intro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(240,220,166,.14) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.intro.open { opacity: 0; transform: scale(1.08); pointer-events: none; }
.intro-inner { position: relative; animation: rise 1.1s var(--ease) both; }
.intro .kicker { color: var(--gold-light); }

/* The envelope */
.envelope {
  position: relative; width: min(360px, 84vw); aspect-ratio: 3 / 2; margin: 34px auto 26px;
  perspective: 1200px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.env-back, .env-front, .env-flap { position: absolute; left: 0; right: 0; }
.env-back {
  inset: 0; border-radius: 8px;
  background: linear-gradient(160deg, #e9d3a6, #cfae6c);
}
.env-letter {
  position: absolute; left: 6%; right: 6%; top: 7%; bottom: 7%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--paper); border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--gold-light), inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold);
  color: var(--jewel);
  transition: transform 1s var(--ease) .95s;
}
.env-letter .om { font-family: "Tiro Devanagari Hindi", serif; font-size: 2rem; line-height: 1; }
.letter-names { font-family: var(--script); font-size: clamp(1.6rem, 6.5vw, 2.1rem); line-height: 1.2; }
.env-letter small { font-family: var(--display); font-size: .6rem; letter-spacing: .22em; color: var(--gold-deep); }
.env-front {
  inset: 0; z-index: 3; border-radius: 8px;
  background: linear-gradient(200deg, #f3e2bd 0%, #dcbf84 100%);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
}
.env-front::after {           /* gold edge lines on the pocket */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(160,114,31,.45) 50%, transparent calc(50% + 1px)) left bottom / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(160,114,31,.45) 50%, transparent calc(50% + 1px)) right bottom / 50% 100% no-repeat;
}
.env-flap {
  top: 0; height: 60%; z-index: 4;
  background: linear-gradient(180deg, #f6e8c8, #d9ba7c);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .8s var(--ease) .35s, z-index 0s linear .75s;
}
.seal {
  position: absolute; left: 50%; top: 60%; z-index: 5; translate: -50% -50%;
  width: 92px; height: 92px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, #c94a6c 0%, #8e1f45 45%, #5a0f2a 100%);
  box-shadow:
    0 0 0 6px rgba(201,74,108,.18),
    0 12px 24px -8px rgba(0,0,0,.6),
    inset 0 -6px 12px rgba(0,0,0,.35),
    inset 0 5px 8px rgba(255,255,255,.22);
  transition: transform .45s var(--ease), opacity .45s;
  animation: pulse 2.6s ease-in-out infinite;
}
.seal::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1.5px solid rgba(240,220,166,.55);
}
.seal span {
  font-family: var(--script); font-size: 2.1rem; line-height: 1;
  background: var(--foil); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.seal b { font-weight: 400; }
.seal i { font-style: normal; font-size: .6em; padding: 0 2px; }
.intro-names { font-family: var(--script); font-size: clamp(2.6rem, 10vw, 4rem); line-height: 1.15; padding: 0 .1em; transition: opacity .5s; }
.hint { margin-top: 10px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); transition: opacity .5s; }
@keyframes pulse { 50% { box-shadow: 0 0 0 16px rgba(201,74,108,0), 0 12px 24px -8px rgba(0,0,0,.6), inset 0 -6px 12px rgba(0,0,0,.35), inset 0 5px 8px rgba(255,255,255,.22); } }

/* Opening sequence */
.intro.opening .envelope { animation: none; }
.intro.opening .seal { transform: scale(1.6) rotate(-20deg); opacity: 0; animation: none; pointer-events: none; }
.intro.opening .env-flap { transform: rotateX(180deg); z-index: 1; }
.intro.opening .env-letter { transform: translateY(-58%); }
.intro.opening .hint, .intro.opening .intro-names { opacity: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Petals (marigold + rose)
   ========================================================= */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.petal {
  position: absolute; top: -30px; width: 11px; height: 15px; opacity: .75;
  border-radius: 80% 0 80% 0;
  animation: fall linear infinite;
}
.petal.rose     { background: radial-gradient(circle at 30% 30%, #ffc9d6, #c8385f); }
.petal.marigold { background: radial-gradient(circle at 30% 30%, #ffd88a, #ef7d12); }
.petal.gold     { background: radial-gradient(circle at 30% 30%, #fff2c6, #c99b45); width: 8px; height: 10px; }
.petal.burst    { position: fixed; z-index: 110; animation: none; opacity: 1; width: 13px; height: 17px; pointer-events: none; }

.trail {
  position: fixed; z-index: 50; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: #fff4cf; box-shadow: 0 0 8px 3px rgba(255,214,120,.75);
}

/* Music toggle */
.music-btn {
  position: fixed; bottom: 22px; right: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(30, 6, 14, .55); color: var(--gold-light);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.6);
  font-size: .74rem; font-weight: 500; letter-spacing: .08em;
  transition: background .3s, transform .2s;
}
body[data-side="groom"] .music-btn { background: rgba(3, 32, 26, .55); }
.music-btn:hover { transform: translateY(-1px); }
.music-btn:not(.on) { animation: invite 2.4s ease-in-out 1.5s 4; }
@keyframes invite { 50% { box-shadow: 0 0 0 8px rgba(240,220,166,.12), 0 8px 20px -10px rgba(0,0,0,.6); } }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--foil); background-size: 100% 400%; }
.music-btn.on .bars i { animation: eq 1s ease-in-out infinite; }
.music-btn.on .bars i:nth-child(2) { animation-delay: -.3s; }
.music-btn.on .bars i:nth-child(3) { animation-delay: -.6s; }
.music-btn.on .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@media (max-width: 680px) {
  .music-btn { bottom: calc(86px + env(safe-area-inset-bottom)); right: 14px; padding: 10px 11px; }
  .music-btn .m-label { display: none; }
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none;
  background: var(--foil); background-size: 200% 100%;
  transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 10px rgba(233,196,108,.6);
}
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(560deg); } }

/* =========================================================
   Hero (dark jewel)
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; padding: 130px 16px 110px;
  display: flex; justify-content: center; text-align: center;
  color: var(--on-dark);
  background: radial-gradient(ellipse 90% 70% at 50% 35%, var(--jewel) 0%, var(--jewel-mid) 50%, var(--jewel-deep) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(240,220,166,.13) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 40%, transparent 20%, #000 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, transparent 20%, #000 80%);
}
/* scalloped edge into the ivory page */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px;
  background: radial-gradient(circle at 50% 100%, var(--cream) 12px, transparent 12.5px) 0 0 / 28px 18px repeat-x;
}
.hero-content { position: relative; z-index: 2; width: 100%; min-width: 0; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 34px; }

.mandala {
  position: absolute; top: 46%; left: 50%; width: min(1000px, 175vw); aspect-ratio: 1;
  translate: -50% -50%; color: var(--gold-light); opacity: .13; pointer-events: none;
  animation: spin 180s linear infinite;
}
.mandala svg { width: 100%; height: 100%; }
@keyframes spin { to { rotate: 360deg; } }

.sparkles { position: absolute; inset: 0; pointer-events: none; }
.spark {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff4cf; box-shadow: 0 0 6px 2px rgba(255,226,150,.7);
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

.blessing { font-family: var(--display); font-size: .82rem; letter-spacing: .22em; color: var(--gold-light); }
.blessing span { display: inline-block; margin: 0 .6em; white-space: nowrap; }

.arch {
  position: relative; width: 100%; max-width: 500px;
  padding: 92px 28px 44px;
  border-radius: 260px 260px 24px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
.arch::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(240,220,166,.22); border-radius: 250px 250px 16px 16px;
}
.arch .om {
  position: absolute; top: 22px; left: 50%; translate: -50% 0;
  font-family: "Tiro Devanagari Hindi", serif; font-size: 2.6rem; line-height: 1;
  filter: drop-shadow(0 0 14px rgba(240,220,166,.45));
}
.festivities {
  display: inline-block; margin-top: 14px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(0,0,0,.15);
  font-size: .78rem; letter-spacing: .12em; color: var(--gold-light);
}
.names .foil { animation: foil 7s linear infinite, nameIn 1.6s var(--ease) both; }
.names .foil:last-child { animation-delay: 0s, .35s; }
.names .amp { animation: nameIn 1.6s var(--ease) .2s both; }
@keyframes nameIn { from { opacity: 0; filter: blur(8px); transform: translateY(14px) scale(.96); } to { opacity: 1; filter: blur(0); transform: none; } }
.arch .kicker { color: var(--gold-light); }
.names {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.8rem, 14vw, 6rem); line-height: 1.12; margin: 16px 0 6px;
}
.names .foil { padding: 0 .12em; }
.names .amp { font-family: var(--serif); font-style: italic; font-size: .42em; color: var(--gold-light); opacity: .9; line-height: 1.4; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--on-dark-muted); }
.date-row {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin: 24px 0 10px;
  font-family: var(--display); font-size: .86rem; letter-spacing: .2em; text-transform: uppercase;
}
.date-row span { min-width: 104px; padding: 7px 0; border-block: 1px solid var(--line-dark); }
.date-row strong { font-family: var(--serif); font-size: 3.6rem; font-weight: 600; line-height: 1; letter-spacing: 0; }
.place { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted); }

.countdown { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cd {
  width: 86px; padding: 14px 8px 10px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cd b {
  display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--foil); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd span { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted); }
.cd.done { width: auto; padding: 14px 26px; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); }

.choose { width: 100%; }
.choose .kicker { color: var(--gold-light); }
.side-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.side-card {
  --c: #c13a66;
  position: relative; overflow: hidden; text-align: left; text-decoration: none;
  display: flex; flex-direction: column; gap: 2px; padding: 22px 20px 18px; border-radius: 20px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.side-card.groom { --c: #2fa37f; }
.side-card::before {
  content: ""; position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 14px var(--c);
}
.side-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); border-color: var(--gold-light); }
.side-card .tag { font-family: var(--display); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.side-card strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--on-dark); }
.side-card small { font-size: .84rem; color: var(--on-dark-muted); }
.side-card .go { margin-top: 10px; font-size: .84rem; font-weight: 500; color: var(--gold-light); }
.side-card .go i { display: inline-block; font-style: normal; transition: transform .3s var(--ease); }
.side-card:hover .go i { transform: translateX(5px); }

/* =========================================================
   Tabs
   ========================================================= */
.tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: center; padding: 10px 16px;
  background: rgba(251,245,236,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.switch {
  position: relative; display: inline-flex; padding: 4px; border-radius: 999px;
  background: #f1e5d3; border: 1px solid var(--line);
}
.switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  min-width: 146px; padding: 9px 18px; border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: color .35s;
}
.switch button[aria-selected="true"] { color: var(--gold-light); }
.switch .pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: linear-gradient(135deg, var(--jewel-mid), var(--jewel));
  box-shadow: 0 6px 16px -6px var(--glow), inset 0 0 0 1px rgba(240,220,166,.35);
  transition: transform .45s var(--ease);
}
body[data-side="groom"] .switch .pill { transform: translateX(100%); }

/* =========================================================
   Main content
   ========================================================= */
main { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 56px 16px 0; }

/* Invitation card */
.card {
  position: relative; text-align: center;
  padding: 70px 40px 60px; border-radius: 6px;
  background:
    radial-gradient(500px 260px at 50% 0%, var(--tint), transparent 70%),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -60px var(--glow), 0 2px 6px rgba(0,0,0,.04);
}
.card::before, .card::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 2px;
}
.card::before { inset: 12px; border: 2px solid var(--gold); opacity: .55; }
.card::after  { inset: 18px; border: 1px solid var(--gold-light); }
.corner { position: absolute; width: 70px; height: 70px; color: var(--gold); z-index: 1; }
.corner.tl { top: 22px; left: 22px; }
.corner.tr { top: 22px; right: 22px; transform: scaleX(-1); }
.corner.bl { bottom: 22px; left: 22px; transform: scaleY(-1); }
.corner.br { bottom: 22px; right: 22px; transform: scale(-1); }

.kalash { width: 64px; margin: 0 auto 14px; color: var(--gold); }
.kalash svg { width: 100%; display: block; }
.badge {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--jewel-mid), var(--jewel)); color: var(--gold-light);
  font-family: var(--display); font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(240,220,166,.35);
}
.invocation {
  max-width: 520px; margin: 24px auto 0;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--jewel); line-height: 1.5;
}
.invocation-sub { max-width: 500px; margin: 8px auto 0; font-size: .9rem; color: var(--muted); }
.host { margin-top: 28px; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1.2; }
.host small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .9rem; font-weight: 300; color: var(--muted); }
.lead { max-width: 560px; margin: 16px auto 0; color: var(--muted); }
.person h2 {
  font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, 12vw, 5rem); line-height: 1.2;
  color: var(--jewel); margin-top: 20px; padding: 0 .1em;
}
.person p { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: .95rem; }
.with { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.with span { font-family: var(--display); font-size: .72rem; letter-spacing: .3em; color: var(--gold-deep); }
.with::before, .with::after { content: ""; width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.with::after { transform: scaleX(-1); }
.invite-text { max-width: 580px; margin: 30px auto 0; font-size: 1.02rem; }

/* Section heads */
.section-head { text-align: center; margin: 84px 0 30px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(2.3rem, 7vw, 3rem); color: var(--jewel); line-height: 1.15; margin-top: 6px;
}
.flourish { display: block; margin: 10px auto 0; width: 150px; color: var(--gold); }

/* Timeline */
.day + .day { margin-top: 40px; }
.day-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.day-head .chip {
  flex: none; padding: 6px 14px; border-radius: 999px; color: var(--gold-light);
  background: linear-gradient(135deg, var(--jewel-mid), var(--jewel));
  font-family: var(--display); font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.day-head h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.day-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before {
  content: ""; position: absolute; top: 20px; bottom: 20px; left: 125px; width: 2px;
  background: linear-gradient(var(--gold-light), var(--gold), var(--gold-light));
  transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease) .2s;
}
/* timeline draws itself, then events slide in one by one */
.day.in .timeline::before { transform: scaleY(1); }
.day .event { opacity: 0; transform: translateX(-14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.day.in .event { opacity: 1; transform: none; }
.day.in .event:nth-child(2) { transition-delay: .15s; }
.day.in .event:nth-child(3) { transition-delay: .3s; }
.day.in .event:nth-child(4) { transition-delay: .45s; }
.day.in .event:nth-child(5) { transition-delay: .6s; }
.day.in .event.past { opacity: .45; }
.event { display: grid; grid-template-columns: 108px 36px 1fr; align-items: center; }
.event .when {
  text-align: right; padding-right: 6px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--jewel); white-space: nowrap;
}
.event .dot {
  justify-self: center; width: 16px; height: 16px; rotate: 45deg; border-radius: 3px; position: relative; z-index: 1;
  background: var(--paper); border: 2px solid var(--gold);
}
.event .body {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event .body::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--jewel-2), var(--jewel));
}
.event .body:hover { transform: translateX(4px); box-shadow: 0 18px 32px -22px var(--glow); }
.event h4 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.event .note { color: var(--muted); font-size: .9rem; }
.event .time-sm { display: none; }
.event .cal {
  flex: none; text-decoration: none; font-size: .76rem; font-weight: 500; color: var(--jewel);
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap;
  transition: background .25s, color .25s;
}
.event .cal:hover { background: var(--jewel); color: var(--gold-light); }
.event.highlight .dot { background: var(--foil); border-color: var(--gold-deep); box-shadow: 0 0 0 5px var(--tint); }
.event.highlight .body {
  background: linear-gradient(135deg, var(--jewel-mid), var(--jewel)); border-color: var(--gold);
  color: var(--on-dark);
}
.event.highlight .body::before { background: var(--foil); }
.event.highlight h4 { color: var(--gold-light); }
.event.highlight .note { color: var(--on-dark-muted); }
.event.highlight .cal { color: var(--gold-light); border-color: var(--line-dark); }
.event.highlight .cal:hover { background: var(--gold-light); color: var(--jewel-mid); }
.event.past { opacity: .45; }

.next-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-family: var(--display); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--jewel-2);
}
.event.highlight .next-badge { color: var(--gold-light); }
.next-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
.event.next .dot { background: var(--accent); border-color: var(--paper); box-shadow: 0 0 0 4px var(--tint), 0 0 0 5px var(--gold); }
@keyframes blink { 50% { opacity: .25; } }

.pending {
  text-align: center; padding: 34px 20px; border-radius: 18px;
  border: 1.5px dashed var(--line); background: rgba(255,251,245,.7);
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted);
}
.ics-row { display: flex; justify-content: center; margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; border: 0;
  padding: 11px 20px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--gold-light);
  background: linear-gradient(135deg, var(--jewel-mid), var(--jewel));
  box-shadow: 0 10px 22px -12px var(--glow), inset 0 0 0 1px rgba(240,220,166,.3);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -12px var(--glow), inset 0 0 0 1px rgba(240,220,166,.5); }
.btn.ghost { background: var(--paper); color: var(--jewel); box-shadow: inset 0 0 0 1px var(--gold); }
.btn.gold {
  background: var(--foil); background-size: 200% 100%; color: var(--jewel-deep); font-weight: 600;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.5);
}
.btn.wa { background: linear-gradient(135deg, #0f7a40, #22b25f); color: #fff; box-shadow: 0 10px 22px -12px rgba(15,122,64,.6); }
.btn svg { width: 16px; height: 16px; }

/* Info cards */
.grid2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.info { padding: 28px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.info h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--jewel); line-height: 1.2; }
.info .label { margin-bottom: 4px; }
.info p { color: var(--muted); }
.map {
  margin-top: 16px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); padding: 5px; background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 10px; filter: saturate(.85); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact { padding: 14px 0; border-top: 1px solid var(--line); }
.contact:first-of-type { border-top: 0; }
.contact .num { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: .04em; }
.contact .btns { margin-top: 8px; }

.note-card {
  position: relative; margin-top: 22px; padding: 28px 20px 18px; text-align: center;
  background: #fff4dc; border-radius: 4px; rotate: -1.5deg;
  box-shadow: 0 16px 26px -18px rgba(0,0,0,.4);
}
.note-card::before {
  content: ""; position: absolute; top: -10px; left: 50%; translate: -50% 0; rotate: 3deg;
  width: 92px; height: 22px; background: rgba(201,155,69,.4);
}
.note-card p { font-family: var(--script); font-size: 2rem; line-height: 1.25; color: var(--jewel); }
.note-card small { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* Good to know */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tip { padding: 26px 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); text-align: center; }
.tip-ico {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--jewel-mid), var(--jewel)); color: var(--gold-light); font-size: 1.3rem;
  box-shadow: 0 0 0 4px var(--tint), 0 0 0 5px var(--gold-light);
}
.tip h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.tip p { margin-top: 6px; color: var(--muted); font-size: .93rem; }

/* Save the Date band (dark jewel, full-bleed) */
.save-band {
  position: relative; overflow: hidden; text-align: center;
  margin: 90px calc(50% - 50vw) 0; padding: 74px 16px 88px;
  color: var(--on-dark);
  background: radial-gradient(ellipse 80% 90% at 50% 20%, var(--jewel) 0%, var(--jewel-mid) 55%, var(--jewel-deep) 100%);
}
.save-band::before, .save-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18px;
  background: radial-gradient(circle at 50% 0%, var(--cream) 12px, transparent 12.5px) 0 0 / 28px 18px repeat-x;
}
.save-band::before { top: -1px; }
.save-band::after { bottom: -1px; transform: scaleY(-1); }
.save-band .section-head { margin: 0 0 34px; }
.save-band .section-head h2 { color: var(--on-dark); }
.save-band .kicker { color: var(--gold-light); }
.sd-days { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 4vw, 40px); flex-wrap: wrap; }
.sd-day { display: flex; flex-direction: column; align-items: center; width: 150px; }
.sd-wk { font-family: var(--display); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
.sd-day strong { font-family: var(--serif); font-size: clamp(4rem, 14vw, 5.6rem); font-weight: 500; line-height: 1.05; }
.sd-ev { font-size: .82rem; color: var(--on-dark-muted); line-height: 1.45; }
.sd-sep { align-self: center; color: var(--gold); font-size: 1rem; opacity: .7; }
.sd-month { margin-top: 16px; font-family: var(--display); font-size: .9rem; letter-spacing: .5em; color: var(--gold-light); }
.sd-btns { justify-content: center; margin-top: 30px; }
.sd-btns .btn { padding: 13px 22px; font-size: .95rem; }

.sign { display: flex; justify-content: space-between; gap: 18px; margin: 64px 0 0; padding: 26px 0 70px; }
.sign > div:last-child { text-align: right; }
.sign strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--jewel); }

/* Footer (dark jewel) */
footer {
  position: relative; z-index: 1; text-align: center; padding: 130px 16px 64px; overflow: hidden;
  color: var(--on-dark);
  background: radial-gradient(ellipse 80% 100% at 50% 100%, var(--jewel) 0%, var(--jewel-mid) 55%, var(--jewel-deep) 100%);
}
.mono { font-family: var(--script); font-size: 5rem; line-height: 1.1; }
.mono .foil { padding: 0 .08em; }
.mono i { font-family: var(--serif); font-size: .4em; color: var(--gold-light); padding: 0 6px; }
.foot-line { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--on-dark-muted); margin: 6px 0 22px; }
.foot-small { margin-top: 24px; font-family: var(--display); font-size: .74rem; letter-spacing: .5em; color: var(--gold-light); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; translate: -50% 120px;
  padding: 11px 20px; border-radius: 999px; background: var(--jewel-deep); color: var(--gold-light); font-size: .9rem;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: translate .4s var(--ease);
}
.toast.show { translate: -50% 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.swap { animation: rise .7s var(--ease) both; }

/* Mobile quick bar */
.quickbar { display: none; }

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 680px) {
  .garland { height: 96px; background-size: 140px 96px; }
  .hero { padding: 110px 16px 96px; }
  .side-cards, .grid2, .tips { grid-template-columns: 1fr; }
  .arch { padding: 80px 18px 36px; }
  .date-row { gap: 12px; font-size: .74rem; }
  .date-row span { min-width: 84px; }
  .date-row strong { font-size: 3rem; }
  .cd { width: 72px; }
  .cd b { font-size: 1.9rem; }
  .card { padding: 62px 22px 52px; }
  .corner { width: 44px; height: 44px; }
  .corner.tl, .corner.tr { top: 20px; } .corner.bl, .corner.br { bottom: 20px; }
  .corner.tl, .corner.bl { left: 20px; } .corner.tr, .corner.br { right: 20px; }
  .switch button { min-width: 0; padding: 9px 14px; font-size: .7rem; }

  .timeline::before { left: 7px; }
  .event { grid-template-columns: 16px 1fr; gap: 12px; }
  .event .when { display: none; }
  .event .dot { width: 13px; height: 13px; }
  .event .time-sm { display: block; font-family: var(--display); font-size: .7rem; letter-spacing: .14em; color: var(--jewel-2); }
  .event.highlight .time-sm { color: var(--gold-light); }
  .event .body { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
  .sd-days { gap: 10px; flex-wrap: nowrap; }
  .sd-day { width: auto; flex: 1; min-width: 0; }
  .sd-sep { display: none; }
  .sd-ev { font-size: .74rem; }
  .sign { flex-direction: column; }
  .sign > div:last-child { text-align: left; }

  .quickbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; padding: 6px;
    border-radius: 20px; background: rgba(43,6,20,.88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line-dark); box-shadow: 0 16px 40px -14px rgba(0,0,0,.5);
    transform: translateY(150%); transition: transform .45s var(--ease);
  }
  body[data-side="groom"] .quickbar { background: rgba(3,32,26,.88); }
  .quickbar.show { transform: none; }
  .quickbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px;
    text-decoration: none; font-size: .74rem; font-weight: 500; color: var(--gold-light);
  }
  .quickbar a[hidden] { display: none; }
  .quickbar a.primary { background: var(--foil); background-size: 200% 100%; color: var(--jewel-deep); }
  .quickbar svg { width: 20px; height: 20px; }
  footer { padding-bottom: 120px; }
  .toast { bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .petals, .sparkles { display: none; }
}
