/* Kerala palette: kasavu ivory and gold, temple-wood teak, kumkum maroon, banana-leaf green */
:root {
  --ivory: #fbf4e4;
  --ivory-2: #f4e8cc;
  --gold: #c99a2e;
  --gold-hi: #f3d57e;
  --maroon: #7c1620;
  --night: #3d0f12;
  --leaf: #2f5d34;
  --ink: #3b241a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --dock: calc(48px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font: 500 1.125rem/1.5 var(--serif);
  font-variant-numeric: lining-nums;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }
[hidden] { display: none !important; }
.ml { font-family: "Noto Serif Malayalam", serif; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  font: 700 1.05rem var(--serif); letter-spacing: .04em;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; }
.gold { background: linear-gradient(135deg, #f7e19b, #c99a2e 55%, #eecb6a); color: var(--night); }
.maroon { background: var(--maroon); color: #ffeec2; border-color: var(--gold); }
.line { background: transparent; color: var(--gold-hi); border-color: var(--gold); }
.line.dark { color: var(--maroon); }
.wide { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.row .btn { flex: 1 1 150px; max-width: 230px; padding-left: 10px; padding-right: 10px; line-height: 1.2; text-align: center; }

/* ---------- Door opening ---------- */
#gate {
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  background: #120504;
  transition: opacity .4s ease 2.1s, visibility 0s 2.5s;
}
/* the doorway fills a phone, and stays door-shaped on wide screens */
.doorway {
  --dw: min(100vw, 62vh);
  --iw: max(var(--dw), 56.3vh); /* photo width needed to cover without stretching */
  position: absolute; top: 0; bottom: 0; left: calc(50% - var(--dw) / 2); width: var(--dw);
  perspective: 1400px;
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50.2%; overflow: hidden; background: #4a1e0d;
  backface-visibility: hidden;
}
.door::before {
  content: ""; position: absolute; top: 50%; width: var(--iw); aspect-ratio: 941 / 1672;
  transform: translateY(-50%); background: url("img/doors.webp") center / 100% 100% no-repeat;
}
.door::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 40px #0009; }
.door.left { left: 0; transform-origin: left center; }
.door.left::before { right: calc(var(--iw) / -2); }
.door.right { right: 0; transform-origin: right center; }
.door.right::before { left: calc(var(--iw) / -2); }

/* flower and mango-leaf garland across the top */
.toran {
  position: absolute; z-index: 3; top: env(safe-area-inset-top); left: 50%; transform: translateX(-50%);
  width: clamp(430px, 112vw, 720px); max-width: none; height: auto;
  filter: drop-shadow(0 8px 10px #0009); pointer-events: none; transition: opacity .6s .4s;
}

.gate-card {
  position: absolute; z-index: 4; left: 50%; bottom: calc(7vh + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(340px, calc(100% - 36px));
  padding: 20px 16px 22px; text-align: center; color: #ffeec2;
  background: #3d0f12ed; border: 2px solid var(--gold); border-radius: 170px 170px 18px 18px / 80px 80px 18px 18px;
  box-shadow: 0 0 0 4px #3d0f12ed, 0 0 0 5px var(--gold), 0 18px 40px #000b;
  transition: opacity .4s, transform .4s;
}
.gate-line { font-size: clamp(.66rem, 3vw, .84rem); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; color: var(--gold-hi); margin-bottom: 4px; }
.gate-names { font: 400 clamp(1.7rem, 8.4vw, 2.2rem)/1.35 var(--script); white-space: nowrap; }
.gate-names i { font-style: normal; color: var(--gold-hi); }
.gate-date { letter-spacing: .2em; font-size: .95rem; margin-bottom: 14px; }
#openBtn { animation: pulse 2s infinite; min-width: 210px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #f3d57eaa; } 70%, 100% { box-shadow: 0 0 0 14px #f3d57e00; } }

/* ---------- Closed doors: gentle life before the tap ---------- */
.toran { transform-origin: top center; animation: dropIn .8s cubic-bezier(.2, 1.3, .4, 1) both, breeze 4s ease-in-out .8s infinite alternate; }
.gate-card { animation: cardIn .94s cubic-bezier(.2, 1.15, .35, 1) .14s both; }
.gate-card > * { animation: fadeUp .61s ease both; }
.gate-card > :nth-child(1) { animation-delay: .41s; }
.gate-card > :nth-child(2) { animation-delay: .57s; }
.gate-card > :nth-child(3) { animation-delay: .73s; }
.gate-card > #openBtn { animation: fadeUp .61s ease .89s both, pulse 1.4s 1.1s infinite; }
/* warm lamplight breathing over the brass knockers */
.doorway::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 55% 30% at 50% 50%, #ffc45a55, #0000 70%);
  mix-blend-mode: screen; animation: lampBreath 3.2s ease-in-out infinite alternate;
}
/* line of light in the seam, shown on tap */
.doorway::after {
  content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(50% - 2px); width: 4px;
  background: #fff6d0; box-shadow: 0 0 18px 8px #ffd56bcc, 0 0 50px 22px #ffae3377; opacity: 0; pointer-events: none;
}

/* ---------- Opening ---------- */
#gate.open { opacity: 0; visibility: hidden; pointer-events: none; background: transparent; }
#gate.open .doorway { transform: scale(1.12); transition: transform 2.2s cubic-bezier(.45, 0, .3, 1) .2s; }
#gate.open .doorway::before { animation: none; opacity: 0; transition: opacity 1.08s; }
#gate.open .doorway::after { animation: seam 1.01s ease-in-out forwards; }
#gate.open .left { animation: swingLeft 2.23s .2s both; }
#gate.open .right { animation: swingRight 2.23s .2s both; }
#gate.open .gate-card { animation: cardOut .47s ease-in forwards; }
#gate.open .toran { opacity: 0; }

@keyframes dropIn { from { translate: 0 -100%; } to { translate: 0 0; } }
@keyframes breeze { from { scale: 1 1; } to { scale: 1.015 1.045; } }
@keyframes cardIn { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes cardOut { from { opacity: 1; translate: 0 0; scale: 1; } to { opacity: 0; translate: 0 50px; scale: .94; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes lampBreath { from { opacity: .35; } to { opacity: 1; } }
@keyframes seam { 0% { opacity: 0; transform: scaleY(0); } 35% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scale(4, 1); } }
/* a small push as the latch gives way, then a slow heavy swing */
@keyframes swingLeft {
  0% { transform: rotateY(0); animation-timing-function: ease-out; }
  9% { transform: rotateY(-4deg); animation-timing-function: ease-in-out; }
  16% { transform: rotateY(-1.5deg); animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
  100% { transform: rotateY(-108deg); }
}
@keyframes swingRight {
  0% { transform: rotateY(0); animation-timing-function: ease-out; }
  9% { transform: rotateY(4deg); animation-timing-function: ease-in-out; }
  16% { transform: rotateY(1.5deg); animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
  100% { transform: rotateY(108deg); }
}

/* short or landscape screens */
@media (max-height: 520px) {
  .gate-card { bottom: 12px; padding: 12px 16px 16px; }
  .gate-line { font-size: .66rem; }
  .gate-names { font-size: 1.6rem; }
  .gate-date { margin-bottom: 8px; }
}

/* ---------- Page ---------- */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

.hero {
  position: relative; overflow: hidden;
  padding: calc(104px + env(safe-area-inset-top)) 14px 34px; text-align: center;
  background:
    radial-gradient(circle at 1px 1px, #f3d57e30 1px, #0000 1.6px) 0 0 / 22px 22px,
    radial-gradient(ellipse at 50% 20%, #7c1620, var(--night) 72%);
}
.card {
  background: linear-gradient(165deg, #fffdf6, var(--ivory) 55%, var(--ivory-2));
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px var(--ivory), 0 0 0 7px var(--gold), 0 18px 40px #0006;
}
.hero-garland { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: clamp(400px, 108vw, 640px); max-width: none; height: auto; z-index: 1; pointer-events: none; }
.ganesha { display: block; width: 104px; height: auto; margin: 0 auto 2px; }
.arch {
  max-width: 480px; margin: 0 auto; padding: 46px 16px 34px;
  border-radius: 50% 50% 14px 14px / 130px 130px 14px 14px;
}
.blessing { color: var(--maroon); font-size: 1rem; margin-bottom: 18px; }
.family { font-size: 1.05rem; }
.family strong { color: var(--maroon); display: inline-block; font-weight: 700; }
.lead { margin: 18px auto; max-width: 31ch; font-style: italic; font-size: 1.14rem; }
.couple { color: var(--maroon); font-weight: 400; margin: 6px 0 20px; }
.couple .name { display: block; font: 400 clamp(2.75rem, 13.5vw, 4.4rem)/1.35 var(--script); }
.couple .with { display: block; font: 400 1.7rem/1 var(--script); color: var(--gold); }
.orn { display: block; width: 210px; height: 22px; margin: 16px auto; color: var(--gold); }

.when { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; }
.when > div { display: flex; flex-direction: column; padding: 4px 6px; line-height: 1.35; }
.when > div + div { border-left: 2px solid var(--maroon); }
.when .big { font-size: 3.2rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.when .label { font: 400 2rem/1.2 var(--script); color: var(--maroon); }
.when .time { font-weight: 700; font-size: clamp(.95rem, 4.1vw, 1.12rem); white-space: nowrap; font-variant-numeric: lining-nums; }
.venue-short { margin-top: 20px; color: var(--maroon); font-weight: 700; }

.lamps { display: flex; justify-content: space-between; max-width: 400px; margin: 30px auto 0; }
.lamps img { width: 44%; max-width: 170px; height: auto; animation: glow 2.4s ease-in-out infinite alternate; }
@keyframes glow { from { filter: drop-shadow(0 0 8px #ffb52e55); } to { filter: drop-shadow(0 0 20px #ffb52e99); } }

/* kasavu border: ivory cloth with a woven gold band */
.band {
  text-align: center; padding: 56px 16px; color: #ffeec2; position: relative; background: var(--leaf);
}
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 16px;
  background:
    repeating-linear-gradient(90deg, #0000 0 6px, #7c162055 6px 8px) 0 50% / 100% 6px no-repeat,
    linear-gradient(var(--ivory) 0 2px, var(--gold) 2px 11px, var(--ivory) 11px 13px, var(--gold-hi) 13px);
}
.band::before { top: 0; }
.band::after { bottom: 0; transform: scaleY(-1); }

h2 { font: 400 clamp(2.2rem, 10vw, 3rem)/1.3 var(--script); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin: 18px auto 0; }
.count div { border: 1px solid var(--gold); border-radius: 40px 40px 10px 10px; padding: 16px 2px 10px; background: #00000026; }
.count b { display: block; font-size: 2rem; line-height: 1.1; color: var(--gold-hi); font-variant-numeric: tabular-nums lining-nums; }
.count span { font-size: .85rem; }
.note { margin-top: 16px; font-size: 1.3rem; }

.sec { max-width: 560px; margin: 0 auto; padding: 52px 18px; text-align: center; scroll-margin-top: env(safe-area-inset-top); }
.sec h2 { color: var(--maroon); }
address { font-style: normal; font-size: 1.2rem; }
address strong { color: var(--maroon); font-size: 1.35rem; }
.map { margin-top: 20px; aspect-ratio: 4 / 3; border: 2px solid var(--gold); border-radius: 120px 120px 14px 14px / 60px 60px 14px 14px; overflow: hidden; background: var(--ivory-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

footer { text-align: center; color: #ffeec2; background: var(--night); padding: 40px 18px calc(40px + var(--dock)); }
.foot-lamp { display: block; width: 130px; height: auto; margin: 0 auto 8px; }
.signoff { font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; opacity: .85; margin: 10px 0 18px; }
/* names sit three to a row, with room to breathe */
.regards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 12px; max-width: 390px; margin: 0 auto; color: var(--gold-hi); font: 400 clamp(1.65rem, 7.6vw, 2.1rem)/1.4 var(--script); }
.regards li { white-space: nowrap; }
/* top row: Achu, Amrutha, Vichu a size up */
.regards:not(.minor) li:nth-child(-n+3) { font-size: 1.22em; }
.regards li { align-self: baseline; }
.regards.minor { max-width: 330px; margin-top: 24px; margin-bottom: 34px; font-size: clamp(1.35rem, 6vw, 1.65rem); color: #ffeec2; }

/* ---------- Contact and credit ---------- */
#contact { padding-top: 6px; }
.people { display: grid; gap: 22px; }
.person { background: #fffdf6; border: 1.5px solid var(--gold); border-radius: 90px 90px 16px 16px / 36px 36px 16px 16px; padding: 18px 14px 18px; }
.person strong { display: block; font: 400 2.1rem/1.4 var(--script); color: var(--maroon); }
.person span { font-weight: 700; letter-spacing: .06em; }
.person .row { margin-top: 14px; flex-wrap: nowrap; }
.person .row .btn { flex: 1 1 0; }
.credit { margin-top: 30px; padding-top: 14px; border-top: 1px solid #c99a2e33; font-size: .82rem; color: #ffeec2a6; }
.credit a { display: inline-block; padding: 10px 4px; color: #e6cf94; font-family: "Cinzel", var(--serif); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
.credit a:hover, .credit a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.share { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.share .btn { min-width: 230px; }
.gate-hint { margin-top: 10px; font-size: .82rem; letter-spacing: .04em; color: #ffeec2b8; }
@media (max-height: 520px) { .gate-hint { margin-top: 4px; } }

/* ---------- Floating controls ---------- */
.dock {
  position: fixed; z-index: 30; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; width: min(272px, calc(100% - 48px)); padding: 2px;
  background: var(--night);
  border: 1px solid var(--gold); border-radius: 999px; box-shadow: 0 3px 12px #3d0f1240;
}
.dock a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 36px; color: var(--gold-hi); text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: .03em; border-radius: 999px; }
.dock a:active { background: #ffffff1f; }

.music {
  position: fixed; z-index: 31; right: 12px; top: calc(12px + env(safe-area-inset-top));
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--gold); background: #3d0f12f0; cursor: pointer;
}
.bars { display: flex; gap: 3px; height: 18px; align-items: flex-end; justify-content: center; }
.bars i { width: 4px; height: 6px; background: var(--gold-hi); border-radius: 2px; }
.music[aria-pressed="true"] i { animation: eq .8s ease-in-out infinite alternate; }
.music[aria-pressed="true"] i:nth-child(2) { animation-delay: -.5s; }
.music[aria-pressed="true"] i:nth-child(3) { animation-delay: -.25s; }
@keyframes eq { to { height: 18px; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .61s ease, transform .74s cubic-bezier(.2, 1.3, .35, 1); }
.reveal.in { opacity: 1; transform: none; }

/* smallest phones */
@media (max-width: 359px) {
  .hero { padding-left: 12px; padding-right: 12px; }
  .arch { padding-left: 10px; padding-right: 10px; }
  .family { font-size: .95rem; }
  .when > div { font-size: 1rem; padding-left: 2px; padding-right: 2px; }
  .when .label { font-size: 1.8rem; }
  .when .time { font-size: .86rem; }
}

@media (min-width: 700px) {
  .arch { padding-left: 36px; padding-right: 36px; }
}

/* ---------- Entrance, just after the doors open ----------
   "anim" is added by app.js, so the page stays visible without it */
.anim body:not(.entered) .arch,
.anim body:not(.entered) .arch > :not(.reveal),
.anim body:not(.entered) .hero-garland { opacity: 0; }
.anim .entered .hero-garland { transform-origin: top center; animation: garlandIn 1.22s cubic-bezier(.2, 1.4, .4, 1) both, breeze 4s ease-in-out .9s infinite alternate; }
.anim .entered .arch { transform-origin: 50% 70%; animation: archIn 1.15s cubic-bezier(.18, .9, .25, 1) both; }
/* one sweep of gold light across the card as it settles */
.arch { position: relative; }
.arch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(112deg, #0000 38%, #f7d97a40 47%, #fffbe6aa 50%, #f7d97a40 53%, #0000 62%) 150% 0 / 280% 100% no-repeat;
}
.anim .entered .arch::after { animation: cardShine 1.1s ease-in-out .65s both; }
@keyframes cardShine { 0% { opacity: 1; background-position: 150% 0; } 99% { opacity: 1; } 100% { opacity: 0; background-position: -60% 0; } }
.anim .entered .ganesha { animation: ganeshaIn .9s cubic-bezier(.2, 1.7, .4, 1) .3s both, halo 2.2s ease-in-out 1.2s infinite alternate; }
.anim .entered .blessing { animation: fadeUp .55s ease .42s both; }
.anim .entered .blessing + .family { animation: fadeUp .55s ease .5s both; }
.anim .entered .lead { animation: fadeUp .55s ease .58s both; }
.anim .entered .couple { animation: fadeUp .55s ease .66s both; }
.anim .entered .couple + .family { animation: fadeUp .55s ease .74s both; }
.anim .entered .arch > .orn { animation: unfurl .65s ease .82s both; }
@keyframes garlandIn { from { opacity: 0; translate: 0 -100%; } to { opacity: 1; translate: 0 0; } }
@keyframes archIn { 0% { opacity: 0; transform: perspective(900px) translateY(46px) rotateX(14deg) scale(.82); } 35% { opacity: 1; } 72% { transform: perspective(900px) translateY(-6px) rotateX(-1.5deg) scale(1.015); } 100% { opacity: 1; transform: none; } }
@keyframes ganeshaIn { from { opacity: 0; scale: .4; filter: drop-shadow(0 0 24px #f3b52e); } to { opacity: 1; scale: 1; filter: drop-shadow(0 0 3px #f3b52e55); } }
@keyframes halo { from { filter: drop-shadow(0 0 3px #f3b52e55); } to { filter: drop-shadow(0 0 13px #f3b52ecc); } }
@keyframes popIn { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes unfurl { from { opacity: 0; scale: .2 1; } to { opacity: 1; scale: 1 1; } }

.portrait.reveal { transform: translateY(50px) scale(.9); transition: opacity .81s ease, transform 1.01s cubic-bezier(.2, 1.4, .35, 1); }
.portrait.reveal.in { transform: none; }
.when.reveal.in > div:first-child { animation: fromLeft .74s ease .07s both; }
.when.reveal.in > div:last-child { animation: fromRight .74s ease .2s both; }
@keyframes fromLeft { from { opacity: 0; translate: -30px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes fromRight { from { opacity: 0; translate: 30px 0; } to { opacity: 1; translate: 0 0; } }

/* sections: each piece follows the one before */
section.reveal.in > * { animation: fadeUp .68s ease both; }
section.reveal.in > :nth-child(2) { animation-delay: .11s; }
section.reveal.in > :nth-child(3) { animation-delay: .22s; }
section.reveal.in > :nth-child(4) { animation-delay: .32s; }
section.reveal.in > :nth-child(5) { animation-delay: .43s; }
section.reveal.in > .orn { animation-name: unfurl; }
.reveal.in .count > div { animation: popIn .68s cubic-bezier(.2, 1.7, .4, 1) both; }
.reveal.in .count > :nth-child(2) { animation-delay: .11s; }
.reveal.in .count > :nth-child(3) { animation-delay: .22s; }
.reveal.in .count > :nth-child(4) { animation-delay: .32s; }
.reveal.in .person:first-child { animation: fromLeft .74s ease .27s both; }
.reveal.in .person:last-child { animation: fromRight .74s ease .41s both; }
/* family names pop in one after another */
.regards.reveal { transform: none; }
.regards.reveal.in li { animation: popIn .68s cubic-bezier(.2, 1.7, .4, 1) both; }
.regards.reveal.in li:nth-child(2) { animation-delay: .11s; }
.regards.reveal.in li:nth-child(3) { animation-delay: .22s; }
.regards.reveal.in li:nth-child(4) { animation-delay: .32s; }
.regards.reveal.in li:nth-child(5) { animation-delay: .43s; }
.regards.reveal.in li:nth-child(6) { animation-delay: .54s; }
/* a glint of light crosses the couple's frame now and then */
.portrait { position: relative; }
.portrait::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 700 / 1050; pointer-events: none;
  border-radius: 50% 50% 10px 10px / 26% 26% 10px 10px;
  background: linear-gradient(110deg, #0000 40%, #fff6c855 50%, #0000 60%) 150% 0 / 260% 100% no-repeat;
}
.portrait.in::after { animation: glint 4s ease-in-out .7s infinite; }
@keyframes glint { 0% { background-position: 150% 0; } 40%, 100% { background-position: -60% 0; } }

/* the bar under the button fills while the doors wait to open by themselves */
#openBtn { position: relative; overflow: hidden; }
#openBtn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--maroon); transform: scaleX(0); transform-origin: left; }
#openBtn.counting::after { animation: fill var(--wait, 2.5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
#gate { cursor: pointer; }

.sound-hint {
  position: fixed; z-index: 31; right: 68px; top: calc(18px + env(safe-area-inset-top));
  padding: 6px 14px; font-size: .95rem; font-weight: 700; color: var(--night); pointer-events: none;
  background: var(--gold-hi); border-radius: 999px; box-shadow: 0 4px 12px #0006; animation: nudge .8s ease-in-out infinite alternate;
}
@keyframes nudge { to { translate: -6px 0; } }

/* Achu only: a soft heartbeat with a golden glow, after popping in */
.regards.reveal.in li.achu { animation: popIn .68s cubic-bezier(.2, 1.7, .4, 1) both, achuPulse 1.5s ease-in-out .9s infinite; }
@keyframes achuPulse {
  0%, 45%, 100% { scale: 1; text-shadow: 0 0 0 #f3d57e00; }
  12% { scale: 1.16; text-shadow: 0 0 14px #ffd866, 0 0 28px #f3b52eaa; }
  24% { scale: 1.02; text-shadow: 0 0 6px #ffd86677; }
  34% { scale: 1.11; text-shadow: 0 0 12px #ffd866cc; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  #petals { display: none; }
}

/* couple portrait: standing in a gold temple arch */
.portrait { max-width: 330px; margin: 24px auto 4px; }
.portrait img {
  display: block; width: 100%; height: auto; padding: 26px 8px 0;
  border: 2px solid var(--gold); border-radius: 50% 50% 10px 10px / 26% 26% 10px 10px;
  background: radial-gradient(ellipse at 50% 38%, #a3303a, #5c1219 75%);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--gold), 0 10px 24px #0004;
}
