/* A Journey of Two Hearts — scenes */
.film { position: relative; z-index: 1; }
.scene { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sticky--center { display: grid; place-items: center; padding: 70px 16px 30px; }

/* Scene lengths: keep in step with NJ.SCENES in js/core/util.js */
.scene--opening { height: 115vh; }
.scene--journey { height: 140vh; }
.scene--date { height: 130vh; }
.scene--countdown { height: 120vh; }
.scene--invitation { height: 150vh; }
.scene--destination { height: 140vh; }
.scene--finale { height: 140vh; }

.text-shadow, .hero, .journey__text, .dest { text-shadow: 0 2px 18px rgba(0, 0, 0, .65), 0 1px 2px rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- opening */
.hero { position: absolute; left: 0; right: 0; top: clamp(70px, 10.5vh, 140px); text-align: center; padding: 0 18px; }
.hero__eyebrow { margin: 0; font-family: var(--display); font-size: clamp(12px, 1.5vw, 16px); letter-spacing: .5em; color: var(--champagne); padding-left: .5em; }
.hero__rule { display: block; width: min(180px, 40vw); height: 1px; margin: clamp(16px, 3vh, 26px) auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero__names { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: .1em; font-size: clamp(30px, min(6.2vw, 7.2vh), 80px); }
.hero__name { display: block; color: var(--champagne); text-shadow: 0 0 28px color-mix(in srgb, var(--gold) 35%, transparent), 0 2px 18px rgba(0, 0, 0, .7); }
.hero__amp { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: .62em; color: var(--gold); margin: .04em 0 .02em; letter-spacing: 0; }
.hero__meta { margin: clamp(16px, 3vh, 28px) 0 0; font-size: 12px; letter-spacing: .36em; text-transform: uppercase; color: var(--ivory-dim); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(18px, 4vh, 40px);
  font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--champagne); text-shadow: 0 1px 10px #000; white-space: nowrap; opacity: 0; }
/* Wide screens: the hint sits in the lower right, clear of the car. Tall screens: under the names. */
.scroll-cue--corner { position: absolute; right: max(28px, 4vw); bottom: 9vh; margin: 0; }
.scroll-cue--inline { display: none; }
@media (orientation: portrait), (max-width: 760px) {
  .scroll-cue--corner { display: none; }
  .scroll-cue--inline { display: flex; }
}
.scroll-cue__line { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------------------------------------------------------------- journey */
.journey__inner { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr min(36vw, 62vh) 1fr; align-items: center; padding: 80px clamp(20px, 3vw, 60px) 8vh; }
.portrait { grid-column: 1; justify-self: center; margin: 0; width: min(100%, 360px, 46vh); aspect-ratio: 4 / 5; position: relative; transform: translateY(-4vh); }
.portrait::after { content: ""; position: absolute; inset: 8% -8% -6%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 35%, transparent), transparent); filter: blur(20px); }
.portrait__svg { width: 100%; height: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); }
/* Chapter One with no picture: the words sit centred above the car */
.journey__inner--solo { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: clamp(78px, 12vh, 140px); }
/* a soft dark glow behind the words, so they stay clear against the bright sunrise */
.journey__inner--solo .journey__text { transform: none; max-width: 760px; position: relative; padding: clamp(18px, 3vh, 30px) clamp(26px, 5vw, 64px) clamp(20px, 3.4vh, 34px); }
.journey__inner--solo .journey__text::before { content: ""; position: absolute; inset: -6% -10%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--forest-deep) 82%, transparent) 0%, color-mix(in srgb, var(--forest-deep) 62%, transparent) 55%, transparent 100%);
  filter: blur(6px); }
.journey__inner--solo .journey__names { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.25; margin-top: 2px; color: #fbe9c0; text-shadow: 0 2px 12px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6); }
.journey__name { white-space: nowrap; }
@media (max-width: 600px) {
  .journey__inner--solo .journey__name, .journey__inner--solo .journey__names .amp { display: block; }
  .journey__inner--solo .journey__names .amp { font-size: .75em; line-height: 1.1; }
}
.journey__inner--solo .journey__heading, .journey__inner--solo .journey__eyebrow { text-shadow: 0 2px 14px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6); }
.journey__inner--solo .journey__heading { font-size: clamp(22px, min(3.4vw, 5vh), 46px); }

/* Watercolour keepsake card */
.wc-card { grid-column: 1; justify-self: center; margin: 0; width: min(100%, 420px, 56vh); position: relative; transform: translateY(-4vh); }
.wc-card::after { content: ""; position: absolute; inset: 6% -6% -4%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 32%, transparent), transparent); filter: blur(24px); }
.wc-card__paper { position: relative; isolation: isolate; overflow: hidden; padding: 4.5%; aspect-ratio: 1 / 1;
  background-color: #f7f0e1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 8px #f7f0e1, inset 0 0 0 9px color-mix(in srgb, var(--gold-antique) 70%, transparent), inset 0 0 0 13px #f7f0e1, inset 0 0 0 13.6px color-mix(in srgb, var(--gold-antique) 35%, transparent), 0 30px 60px -20px rgba(0, 0, 0, .75); }
.wc-card__art { --paint: 160%; position: absolute; inset: 5%; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse at 50% 64%, #000 var(--paint), transparent calc(var(--paint) + 18%));
  mask-image: radial-gradient(ellipse at 50% 64%, #000 var(--paint), transparent calc(var(--paint) + 18%)); }
.wc-card__zoom { position: absolute; inset: 0; transform-origin: 50% 70%; }
.wc-card__img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; animation: wcDrift 7s ease-in-out infinite; }
@keyframes wcDrift { 0%, 100% { transform: translate(0, 0) scale(1.015); } 50% { transform: translate(0, -1.2%) scale(1.03); } }
.wc-card__sheen { position: absolute; inset: -10% 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 246, 220, .55) 50%, transparent 60%); mix-blend-mode: soft-light; }
.wc-card__petals i { position: absolute; top: -6%; left: calc(8% + var(--i) * 11.5%); width: 7px; height: 5px; border-radius: 60% 0 60% 0;
  background: var(--c, #efc4b4); opacity: 0; animation: wcPetal calc(6s + var(--i) * .7s) linear infinite; animation-delay: calc(var(--i) * -1.3s); }
.wc-card__petals i:nth-child(3n) { --c: #f2dba4; } .wc-card__petals i:nth-child(3n+1) { --c: #b9a2d8; }
@keyframes wcPetal { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translate(40px, 440px) rotate(540deg); opacity: 0; } }
.wc-card__cap { display: flex; justify-content: center; margin-top: 14px; }
.wc-card__cap .monogram { font-size: 15px; }

.journey__text { grid-column: 3; text-align: center; transform: translateY(-4vh); }
.journey__heading { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.3; letter-spacing: .1em; margin: 0; color: var(--ivory); text-transform: uppercase; }
.journey__names { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); margin: 0; letter-spacing: .08em; color: var(--champagne); }
.journey__line { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.4vw, 21px); color: var(--ivory-dim); margin: 14px auto 0; max-width: 30ch; }
@media (orientation: portrait), (max-width: 860px) {
  .journey__inner { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 2.4vh; padding: max(76px, 10vh) 20px 0; }
  .journey__text { order: -1; transform: none; }
  .portrait { width: auto; height: min(30vh, 300px); transform: none; }
  .wc-card { width: min(78vw, 34vh, 330px); transform: none; }
  .wc-card__cap { display: none; }
  .journey__heading { font-size: clamp(20px, 5.6vw, 30px); }
  .journey .divider { margin: 10px auto; }
  .journey__line { display: none; }
}

/* ---------------------------------------------------------------- date */
/* Save the Date: the balloons float above (on the stage); the date sits just beneath them */
.std__shade { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse min(46vw, 520px) min(20vh, 180px) at 50% 45%, color-mix(in srgb, var(--forest-deep) 78%, transparent), color-mix(in srgb, var(--forest-deep) 40%, transparent) 55%, transparent 100%); }
.std { position: absolute; left: 0; right: 0; top: 36vh; text-align: center; padding: 0 16px; opacity: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .8), 0 1px 2px rgba(0, 0, 0, .6); }
.std__eyebrow { margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(11px, 1.4vw, 14px); letter-spacing: .55em; padding-left: .55em; text-transform: uppercase; color: #fbe9c0; }
.std__date { display: flex; align-items: baseline; justify-content: center; gap: .14em; margin: clamp(8px, 1.6vh, 16px) 0 clamp(10px, 2vh, 18px);
  font-family: var(--serif); font-weight: 500; font-size: clamp(44px, min(10.5vw, 12vh), 108px); line-height: 1; white-space: nowrap; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .7)); }
.std__digits { background: linear-gradient(100deg, #b98a46 0%, #f7e3b4 30%, #e2bf7c 52%, #fff2d2 70%, #c1934c 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite; letter-spacing: .02em; text-shadow: none; }
.std__dot { color: #e8c98a; font-size: .6em; position: relative; top: -.14em; }
@media (orientation: portrait), (max-width: 600px) {
  .std { top: 37vh; }
  .std__shade { background: radial-gradient(ellipse 70vw 24vh at 50% 47%, color-mix(in srgb, var(--forest-deep) 80%, transparent), color-mix(in srgb, var(--forest-deep) 42%, transparent) 55%, transparent 100%); }
}

/* the two heart balloons on the stage: a gentle bob, the strings swaying, the shimmer twinkling */
.stage__balloons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.balloons { position: absolute; left: 0; top: 0; width: 420px; height: 520px; transform-origin: 250px 302px; display: none; will-change: transform, opacity;
  filter: drop-shadow(0 18px 26px rgba(40, 24, 6, .35)); }
.balloons__svg { display: block; overflow: visible; }
.bl-big, .bl-small { transform-box: fill-box; }
.bl-big { animation: blBob 5.2s ease-in-out infinite; transform-origin: 50% 100%; }
.bl-small { animation: blBob 6.4s ease-in-out -2.1s infinite; transform-origin: 50% 100%; }
.bl-string-b, .bl-string-s { transform-box: fill-box; transform-origin: 50% 0; animation: blSway 3.6s ease-in-out infinite; }
.bl-string-s { animation-duration: 4.3s; animation-delay: -1.4s; }
.bl-glow { animation: blGlow 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.bl-spark { transform-box: fill-box; transform-origin: 50% 50%; animation: blTwinkle 2.8s ease-in-out infinite; opacity: 0; }
@keyframes blBob { 0%, 100% { transform: translateY(0) rotate(-1.6deg); } 50% { transform: translateY(-7px) rotate(1.6deg); } }
@keyframes blSway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes blGlow { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: .9; transform: scale(1.04); } }
@keyframes blTwinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: .95; transform: scale(1) rotate(20deg); } 70% { opacity: 0; transform: scale(.5) rotate(40deg); } }
@media (prefers-reduced-motion: reduce) {
  .bl-big, .bl-small, .bl-string-b, .bl-string-s, .bl-glow, .bl-spark { animation: none; }
  .bl-spark { opacity: .6; }
}

.scene--date .sticky { display: grid; place-items: center; padding: 60px 16px 8vh; }
.spotlight { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 30% 62% at 50% -4%, rgba(255, 236, 196, .26), rgba(255, 224, 170, .06) 55%, transparent 75%),
    radial-gradient(ellipse 42% 10% at 50% 80%, rgba(255, 220, 160, .16), transparent 70%); }
.plaque { position: relative; width: min(94vw, 780px); padding: clamp(36px, 6vw, 58px) clamp(22px, 5vw, 52px); text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #17201b, #070a08 60%, #040605);
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  box-shadow: inset 0 0 0 7px #050706, inset 0 0 0 8px color-mix(in srgb, var(--gold) 45%, transparent), inset 0 0 60px color-mix(in srgb, var(--gold) 8%, transparent), 0 40px 90px rgba(0, 0, 0, .85), 0 0 80px color-mix(in srgb, var(--gold) 14%, transparent); }
.plaque__pattern { position: absolute; inset: 0; opacity: .7; mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); }
.plaque__frame { position: absolute; inset: 14px; pointer-events: none; color: var(--gold); }
.corner { position: absolute; width: clamp(38px, 7vw, 60px); height: clamp(38px, 7vw, 60px); }
.corner--tl { left: 0; top: 0; } .corner--tr { right: 0; top: 0; transform: scaleX(-1); }
.corner--bl { left: 0; bottom: 0; transform: scaleY(-1); } .corner--br { right: 0; bottom: 0; transform: scale(-1, -1); }
.plaque__sheen { position: absolute; inset: -20% 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 240, 200, .2) 50%, transparent 62%); pointer-events: none; mix-blend-mode: screen; }
.plaque__eyebrow { position: relative; margin: 0; font-family: var(--sans); font-weight: 400; font-size: clamp(11px, 1.5vw, 13px); letter-spacing: .55em; padding-left: .55em; text-transform: uppercase; color: var(--champagne); }
/* The date is the hero: one large gold line, 01 · 12 · 2026 */
.plaque__date { position: relative; display: flex; align-items: baseline; justify-content: center; gap: .16em; margin: clamp(14px, 2.6vh, 24px) 0 2px;
  font-family: var(--display); font-weight: 400; font-size: clamp(38px, 11.4vw, 104px); line-height: 1; white-space: nowrap; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)); }
.plaque__digits { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite; letter-spacing: .02em; }
.plaque__dot { color: var(--gold); font-size: .62em; opacity: .85; position: relative; top: -.12em; }
.plaque .divider { position: relative; }
.plaque__names { position: relative; margin: 0; font-family: var(--display); font-size: clamp(14px, 2.4vw, 20px); letter-spacing: .18em; text-transform: uppercase; color: var(--ivory); }

/* ---------------------------------------------------------------- countdown */
.panel { position: relative; }
.panel--green, .panel--night, .panel--glass {
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--forest-deep) 50%, transparent), inset 0 0 0 7px color-mix(in srgb, var(--gold) 16%, transparent), 0 40px 100px -30px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.panel--green { background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--forest-raise) 90%, transparent), color-mix(in srgb, var(--forest-deep) 92%, transparent)); }
.countdown { width: min(94vw, 860px); padding: clamp(30px, 5vw, 58px) clamp(16px, 4vw, 48px); text-align: center; }
.countdown__heading { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4.6vw, 44px); letter-spacing: .12em; line-height: 1.25; color: var(--ivory); text-transform: uppercase; }
.cd-grid { display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 1.6vw, 16px); margin: 8px 0 26px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cd-unit__box { position: relative; width: clamp(64px, 17vw, 140px); aspect-ratio: 1 / 1.08; display: grid; place-items: center; overflow: hidden; perspective: 400px;
  border: 1px solid color-mix(in srgb, var(--gold) 65%, transparent); background: linear-gradient(180deg, var(--forest), var(--forest-deep));
  box-shadow: inset 0 0 0 4px var(--forest-deep), inset 0 0 0 5px color-mix(in srgb, var(--gold) 25%, transparent), inset 0 0 30px color-mix(in srgb, var(--gold) 8%, transparent), 0 0 34px color-mix(in srgb, var(--gold) 12%, transparent); }
.cd-unit__box::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: rgba(0, 0, 0, .45); box-shadow: 0 1px 0 color-mix(in srgb, var(--gold) 12%, transparent); }
.cd-unit__num { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 9vw, 80px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; animation: tick .7s var(--ease) both, sheen 9s ease-in-out infinite; }
@keyframes tick { from { opacity: 0; transform: translateY(-35%) rotateX(70deg); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.cd-unit__label { font-size: clamp(9.5px, 1.6vw, 11.5px); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--champagne); }
.cd-sep { font-family: var(--serif); font-size: clamp(30px, 5vw, 56px); color: var(--gold); opacity: .55; line-height: 1; margin-top: clamp(12px, 4vw, 38px); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 520px) { .cd-sep { display: none; } }
.countdown__done { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 30px); color: var(--champagne); margin: 18px 0 28px; }
.countdown__when { margin: 0; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim); }
.dot { color: var(--gold); padding: 0 .4em; }

/* ---------------------------------------------------------------- invitation */
.stationery { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: scale(var(--k, 1)); }
.stationery__glow { position: absolute; width: 1000px; height: 800px; left: -500px; top: -400px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 228, 176, .2), rgba(255, 220, 160, .05) 60%, transparent); }
.env-group { position: absolute; left: 0; top: 0; }
.env__back, .env__front, .env__flap, .letter, .seal { position: absolute; }
.paper, .env__back, .env__front, .env__flap, .letter__face, .letter__back {
  background-color: #f6eedd;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, .55), transparent 60%);
}
.env__back { z-index: 1; border-radius: 6px; background-color: #e2d2b0; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--gold-antique) 35%, transparent); }
.env__back::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(180deg, rgba(90, 64, 30, .28), transparent 60%); }
.letter { z-index: 2; perspective: 1600px; }
.env__front { z-index: 3; border-radius: 0 0 6px 6px; background-color: #f3e9d4; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env__front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(90, 64, 30, .14), transparent 45%); }
.env__flap { z-index: 4; transform-origin: 50% 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background-color: #efe4ca; }
.env__flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(90, 64, 30, .12)); }
.env__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal { z-index: 5; left: -44px; width: 88px; height: 88px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; transition: transform .35s var(--ease); }
.seal:hover:not(.is-open) { transform: scale(1.07); }
.seal:focus-visible { outline: 3px solid var(--champagne); outline-offset: 6px; }
.seal.is-open { cursor: default; pointer-events: none; }
.seal__pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--gold) 85%, transparent); animation: sealPulse 1.8s ease-out infinite; }
.seal.is-open .seal__pulse { display: none; }
@keyframes sealPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.seal__half { position: absolute; inset: 0; display: block; }
.seal-hint { position: absolute; left: 0; right: 0; bottom: clamp(56px, 12vh, 120px); margin: 0; display: flex; justify-content: center; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: var(--champagne); text-shadow: 0 1px 10px #000; pointer-events: none; }
.seal-hint__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 1.6s ease-in-out infinite; }
.seal__half--l { clip-path: polygon(0 0, 54% 0, 46% 40%, 55% 62%, 48% 100%, 0 100%); }
.seal__half--r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 48% 100%, 55% 62%, 46% 40%); }
.seal__svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }

.letter__panel { position: relative; transform-style: preserve-3d; }
.letter__panel--top { transform-origin: 50% 100%; transform: rotateX(-177deg); }
.letter__panel--bot { transform-origin: 50% 0%; transform: rotateX(178deg); }
.letter__panel--mid, .letter__panel--bot { box-shadow: inset 0 1px 0 rgba(120, 90, 40, .12); }
.letter__face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55); }
.letter__back { position: absolute; inset: 0; transform: rotateX(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; background-color: #f1e7d2; box-shadow: inset 0 0 0 10px #f1e7d2, inset 0 0 0 11px color-mix(in srgb, var(--gold-antique) 50%, transparent); }
/* Front of the folded letter: the couple's initials with a heart between them */
.letter__cover { position: absolute; left: 0; width: 100%; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background-color: #f6eedd;
  background-image: radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, .6), transparent 60%);
  box-shadow: inset 0 0 0 12px #f6eedd, inset 0 0 0 13px color-mix(in srgb, var(--gold-antique) 60%, transparent), inset 0 0 0 17px #f6eedd, inset 0 0 0 17.6px color-mix(in srgb, var(--gold-antique) 35%, transparent), 0 20px 50px -20px rgba(0, 0, 0, .55); }
.letter__cover-inner { display: flex; align-items: center; gap: 22px; }
.letter__cover-initial { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--forest); letter-spacing: .02em; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.letter__cover-heart { width: 40px; height: 36px; filter: drop-shadow(0 2px 3px rgba(120, 60, 50, .3)); animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 48% { transform: scale(1); } }
.letter__cover-line { width: 60%; color: var(--gold-antique); }
.letter__cover-line .divider { margin: 6px auto 0; }
.letter__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(60, 40, 10, .16), transparent 30%, transparent 70%, rgba(60, 40, 10, .16)); }
.letter__content { position: absolute; left: 0; top: 0; width: 100%; padding: 50px 42px 46px; text-align: center; color: #111; }
.letter__measure { position: absolute; left: -9999px; top: 0; visibility: hidden; pointer-events: none; }
.letter__measure .letter__content { position: relative; }
.letter__frame { position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--gold-antique) 50%, transparent); color: var(--gold-antique); pointer-events: none; }
.letter__frame .corner { width: 44px; height: 44px; margin: 5px; }
.letter__bismillah { font-family: var(--arabic); font-size: 26px; line-height: 1.7; color: #111; margin: 2px 0 0; }
.letter__content .divider { color: var(--gold-antique); margin: 10px auto 18px; max-width: 240px; }
.letter__msg { font-family: var(--serif); font-size: 18.5px; line-height: 1.55; color: #111; margin: 0 0 12px; }
.letter__msg--lead { font-style: italic; font-size: 20px; color: #111; margin-top: 14px; }
.letter__details { margin-top: 22px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--gold-antique) 40%, transparent); }
.letter__details p { margin: 0; }
.letter__occasion { font-size: 11.5px; letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: #111; font-weight: 500; }
.letter__date { font-family: var(--display); font-size: 27px; letter-spacing: .06em; color: #111; margin: 8px 0 0 !important; }
.letter__time { font-family: var(--serif); font-style: italic; font-size: 22px; color: #111; }
.letter__star { color: var(--gold-antique); margin: 12px auto; }
.letter__venue { font-family: var(--display); font-size: 18px; letter-spacing: .1em; color: #111; }
.letter__loc { font-size: 12px; letter-spacing: .36em; padding-left: .36em; text-transform: uppercase; color: #111; margin-top: 4px !important; }
.letter__host { font-family: var(--serif); font-style: italic; margin: 16px 0 0; color: #111; }

/* ---------------------------------------------------------------- programme */
.scene--programme { padding: 26vh 0 34vh; }
.scene--transit { height: 30vh; }
.panel--night { background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--forest) 90%, transparent), color-mix(in srgb, var(--forest-deep) 90%, transparent)); }
.programme { width: min(94vw, 1000px); margin: 0 auto; padding: clamp(40px, 6vw, 70px) clamp(18px, 4vw, 56px) clamp(36px, 5vw, 60px); text-align: center; overflow: hidden; }
.programme__pattern { position: absolute; inset: 0; opacity: .55; pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 40%, transparent 70%, #000); -webkit-mask-image: linear-gradient(180deg, #000, transparent 40%, transparent 70%, #000); }
.programme__head { position: relative; }
.programme__arch { width: 66px; margin: 0 auto 18px; color: var(--gold); }
.programme__heading { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.6vw, 46px); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); }
.programme__sub { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 24px); color: var(--champagne); margin: 10px 0 0; }
.timeline { position: relative; margin: 34px auto 10px; max-width: 860px; }
.timeline__line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; background: color-mix(in srgb, var(--gold) 20%, transparent); transform: translateX(-50%); }
.timeline__fill { position: absolute; inset: 0; background: linear-gradient(var(--gold), var(--champagne), var(--gold)); transform-origin: top; box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 60%, transparent); }
.timeline__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 34px); }
.timeline__item { position: relative; width: 50%; }
.timeline__item.is-left { padding-right: 52px; text-align: right; }
.timeline__item.is-right { margin-left: 50%; padding-left: 52px; text-align: left; }
.timeline__node { position: absolute; top: 22px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--forest-deep); border-radius: 50%; color: var(--gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent), 0 0 22px color-mix(in srgb, var(--gold) 30%, transparent); }
.timeline__item.is-left .timeline__node { right: -19px; } .timeline__item.is-right .timeline__node { left: -19px; }
.timeline__node .star { width: 24px; height: 24px; }
.timeline__card { position: relative; padding: 22px 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--forest-raise) 55%, transparent), color-mix(in srgb, var(--forest-deep) 60%, transparent)); border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent); }
.timeline__card::before { content: ""; position: absolute; inset: 5px; border: 1px solid color-mix(in srgb, var(--gold) 10%, transparent); pointer-events: none; }
.timeline__num { font-family: var(--display); font-size: 12px; letter-spacing: .3em; color: var(--gold-antique); }
.timeline__title { margin: 6px 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.6vw, 30px); color: var(--champagne); }
.timeline__time { margin: 0 0 6px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--champagne); }
.timeline__text { margin: 0; font-size: 15.5px; color: var(--ivory-dim); line-height: 1.6; }
.programme__foot { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 30px 0 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim); }
@media (max-width: 720px) {
  .timeline__line { left: 19px; }
  .timeline__item, .timeline__item.is-right { width: 100%; margin-left: 0; padding: 0 0 0 54px; text-align: left; }
  .timeline__item.is-left .timeline__node, .timeline__item.is-right .timeline__node { left: 0; right: auto; }
  .timeline__card { padding: 18px 18px; }
}

/* ---------------------------------------------------------------- destination */
.dest { position: absolute; left: 0; right: 0; top: clamp(66px, 9.5vh, 120px); padding: 0 18px; text-align: center; }
.dest__scrim { position: absolute; left: 0; right: 0; top: 0; height: 66%; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--forest-deep) 90%, transparent) 0%, color-mix(in srgb, var(--forest-deep) 72%, transparent) 45%, color-mix(in srgb, var(--forest-deep) 0%, transparent) 100%); }
.dest__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
.dest__venue { margin: 0 auto; max-width: 22ch; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.8vw, 52px); letter-spacing: .12em; line-height: 1.15; text-transform: uppercase; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .8)); }
.dest__loc { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 3vw, 30px); color: var(--champagne); }
.dest .divider { margin: 14px auto; }
.dest__card { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; padding: 12px 24px; text-transform: uppercase; font-size: clamp(11px, 1.4vw, 13px); letter-spacing: .26em;
  color: var(--ivory); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); background: color-mix(in srgb, var(--forest-deep) 50%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: none; }
.dest__card i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.dest__btn { text-shadow: none; --h: 46px; }
.dest .divider { margin: 10px auto; }

/* ---------------------------------------------------------------- RSVP & wishes */
.scene--blessings { padding: 14vh 0 18vh; display: flex; flex-direction: column; gap: 10vh; align-items: center; }
.panel--glass { background: linear-gradient(160deg, color-mix(in srgb, var(--forest) 82%, transparent), color-mix(in srgb, var(--forest-deep) 86%, transparent)); }
.rsvp, .wishes { width: min(94vw, 760px); padding: clamp(36px, 6vw, 64px) clamp(18px, 5vw, 56px); text-align: center; }
.wishes { width: min(94vw, 1040px); }
.section-heading { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4.2vw, 42px); letter-spacing: .1em; line-height: 1.28; text-transform: uppercase; color: var(--ivory); }
.section-intro { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: var(--champagne); margin: 12px 0 0; }
.rsvp__form, .wishes__form { display: flex; flex-direction: column; gap: 20px; max-width: 480px; margin: 8px auto 0; }
.rsvp__form .btn, .wishes__form .btn { align-self: center; min-width: 220px; }
.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.choice legend { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; }
.choice__opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: 10px; cursor: pointer;
  font-family: var(--serif); font-size: 19px; color: var(--ivory); background: rgba(0, 0, 0, .2); transition: border-color .3s, background-color .3s; }
.choice__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__mark { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; }
.choice__mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .3s var(--ease); }
.choice__opt.is-on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.choice__opt.is-on .choice__mark::after { transform: scale(1); }
.choice__opt:focus-within { outline: 2px solid var(--champagne); outline-offset: 2px; }
@media (max-width: 460px) { .choice { grid-template-columns: 1fr; } }
.rsvp__done { padding: 10px 0 0; }
.rsvp__star { margin: 0 auto 14px; color: var(--gold); }
.rsvp__thanks-name { font-family: var(--serif); font-size: 26px; margin: 0; color: var(--champagne); }
.rsvp__thanks { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ivory); margin: 8px auto 22px; max-width: 34ch; }

.wishes__wrap { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; text-align: left; margin-top: 10px; }
.wishes__form { margin: 0; }
.wishes__wrap--private { grid-template-columns: minmax(0, 480px); justify-content: center; }
.wishes__wrap--private .wishes__form { width: 100%; max-width: 480px; margin: 0 auto; }
.wishes__wrap--private .wishes__form .btn { align-self: center; }
.wishes__sent { padding-top: 10px; text-align: center; }
.wishes__form .btn { align-self: flex-start; }
.wishes__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; max-height: 620px; overflow-y: auto; padding: 6px 6px 6px 2px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--gold) 40%, transparent) transparent; }
.wishes__empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 0; padding: 36px 24px; justify-content: center; border: 1px dashed color-mix(in srgb, var(--gold) 30%, transparent); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--champagne); }
.wish { position: relative; padding: 26px 20px 16px; color: #2c2618; transform: rotate(var(--r, 0deg)); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .7), inset 0 0 0 6px #f6eedd, inset 0 0 0 7px color-mix(in srgb, var(--gold-antique) 45%, transparent);
  background-color: #f6eedd; background-image: radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, .6), transparent 60%); transition: transform .5s var(--ease); }
.wish:hover { transform: rotate(0) translateY(-3px); }
.wish--new { animation: wishIn 1s var(--ease) both; }
@keyframes wishIn { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
.wish__quote { position: absolute; top: 2px; left: 14px; font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--gold-antique); }
.wish__msg { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.5; word-wrap: break-word; }
.wish__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--gold-antique) 35%, transparent); }
.wish__name { font-family: var(--display); font-size: 12.5px; letter-spacing: .1em; color: var(--forest); }
.wish__date { font-size: 11px; color: #8a6a30; letter-spacing: .08em; }
@media (max-width: 820px) { .wishes__wrap { grid-template-columns: 1fr; } .wishes__form .btn { align-self: center; } .wishes__list { max-height: none; } }

/* ---------------------------------------------------------------- finale */
.finale__veil { position: absolute; inset: 0; opacity: 0; background: radial-gradient(90% 70% at 50% 45%, var(--forest-raise), var(--forest-deep) 70%, var(--forest-deep)); }
.finale__pattern { position: absolute; inset: 0; opacity: .6; mask-image: radial-gradient(closest-side, transparent 40%, #000); -webkit-mask-image: radial-gradient(closest-side, transparent 40%, #000); }
.finale { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 22px 40px; }
.finale > * { opacity: 0; }
.finale__heading { opacity: 1; margin: 0 0 clamp(18px, 3vh, 30px); font-family: var(--display); font-weight: 400; font-size: clamp(14px, 2vw, 19px); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--champagne); }
.finale__heading .split__char { opacity: 0; }
.finale__names { opacity: 1; margin: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--display); line-height: 1.12; }
.finale__name { opacity: 0; font-size: clamp(32px, 6.4vw, 82px); letter-spacing: .1em; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--gold) 30%, transparent)); }
.finale__amp { opacity: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 4vw, 50px); color: var(--gold); }
.finale__msg { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.5; color: var(--ivory); max-width: 40ch; }
.finale__names + .finale__msg { margin-top: clamp(20px, 4vh, 36px); }
.finale .divider { margin: clamp(18px, 3vh, 28px) auto; width: min(320px, 70vw); }
.finale__signoff { margin: 0; font-size: clamp(12px, 1.5vw, 14px); letter-spacing: .32em; text-transform: uppercase; color: var(--champagne); }
.finale__foot { margin-top: clamp(24px, 5vh, 48px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.finale__foot p { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(247, 240, 224, .5); max-width: 60ch; line-height: 1.8; }

/* ---------------------------------------------------------------- phones and tablets: smoother scrolling
   iPhone Safari repaints these effects on every frame while the road is moving, which made the scroll
   stutter on the way to Save the Date. On touch screens they are swapped for still versions that look
   almost the same but cost nothing per frame. */
@media (hover: none), (pointer: coarse) {
  /* the animated film grain was blended over the whole moving scene */
  .stage__grain { display: none; }
  /* frosted-glass blur over the moving scene: use a slightly more solid fill instead */
  .icon-btn, .music-btn, .panel--green, .panel--night, .panel--glass, .dest__card, .dest__btn {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .icon-btn { background: color-mix(in srgb, var(--forest-deep) 78%, transparent); }
  .panel--green, .panel--night, .panel--glass { background-color: color-mix(in srgb, var(--forest-deep) 72%, transparent); }
  /* the moving gold shine on large type kept the shadowed date repainting: keep the gold, hold it still */
  .gold-text, .plaque__day, .finale__name, .dest__venue, .std__digits, .plaque__digits { animation: none; background-position: 50% 50%; }
  .cd-unit__num { animation: tick .7s var(--ease) both; background-position: 50% 50%; }
  /* the balloons' soft shadow was redrawn every frame as they bob */
  .balloons { filter: none; }
}
