:root {
  --chrome: #d9cec5;
  --paper: #efeae3;
  --ink: #726351;
  --ink-2: #5c4f40;
  --gold: #b28a5d;
  --gold-2: #8f6b42;
  --mute: #8f8072;
  --accent: #9b8360;
  --shadow: 0 -1px 0 rgba(255,255,255,.55), 0 2px 3px rgba(114,99,81,.3), 0 5px 11px rgba(114,99,81,.14);
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --didone: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --script: "Great Vibes", "Pinyon Script", cursive;
  --pinyon: "Pinyon Script", "Great Vibes", cursive;
  --sans: "Jost", "DM Sans", sans-serif;
  color-scheme: light only;
}

* { color-scheme: light only; box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  overflow-x: clip;
  background: var(--chrome);
  color: var(--ink);
}
img { max-width: 100%; }
button, input { font: inherit; }

.bg-fill {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--chrome) url("../assets/lacy/bg.webp") center / cover no-repeat;
}

#app {
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 1;
  background: transparent;
}

body.is-cover { overflow: hidden; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--chrome);
  max-width: none;
  margin: 0;
}
.intro-poster, .intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.intro-video { opacity: 0; }
.intro.is-playing .intro-video { opacity: 1; }
.intro.is-playing .intro-poster { opacity: 0; }
.intro.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}

.tap-hint {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 1px solid rgba(178, 138, 93, .45);
  background: rgba(255, 250, 245, .82);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(114, 99, 81, .16);
  cursor: pointer;
  animation: hintPulse 2.4s ease-in-out infinite;
}
.intro.is-playing .tap-hint { opacity: 0; pointer-events: none; }

@keyframes hintPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

.deck {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  overflow-anchor: none;
  background: transparent;
}
.deck.is-form-lock {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.deck[hidden] { display: none; }

.scene {
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(108px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom, 0px));
}

.couple {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.name {
  font-family: var(--didone);
  font-weight: 400;
  font-size: clamp(42px, 17vw, 72px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--ink);
  text-shadow: var(--shadow);
}
.amp {
  font-family: var(--pinyon);
  font-size: clamp(50px, 15vw, 84px);
  line-height: .7;
  color: var(--gold);
  margin: -2% 0;
}
.from-left { animation: inL 2.3s cubic-bezier(.16,.84,.24,1) both; }
.from-right { animation: inR 2.3s cubic-bezier(.16,.84,.24,1) both; }
.amp { animation: bloom 1s .6s cubic-bezier(.19,1,.22,1) both; }

.has-reveal .from-left,
.has-reveal .from-right,
.has-reveal .amp {
  animation: none;
  opacity: 0;
}
.has-reveal .scene-names.is-inview .from-left {
  animation: inL 1.55s cubic-bezier(.16,.84,.24,1) both;
  opacity: 1;
}
.has-reveal .scene-names.is-inview .from-right {
  animation: inR 1.55s .12s cubic-bezier(.16,.84,.24,1) both;
  opacity: 1;
}
.has-reveal .scene-names.is-inview .amp {
  animation: bloom 1s .42s cubic-bezier(.19,1,.22,1) both;
  opacity: 1;
}

@keyframes inL {
  from { opacity: 0; transform: translateX(-82px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes inR {
  from { opacity: 0; transform: translateX(82px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes bloom {
  from { opacity: 0; transform: scale(.74) rotate(-4deg); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; } }

.ornament-row, .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(58%, 170px);
  margin: 0 auto;
  position: relative;
}
.rule, .divider i {
  flex: 1;
  height: 1.2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider i:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.star {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.25;
  stroke-linejoin: round;
}
.star.sm { width: 15px; height: 15px; }
.star.lg { width: 24px; height: 24px; margin-bottom: 12px; }
.pearl {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0%, #fffaf2 18%, #f6e8d8 48%, #e4cfb6 78%, #c9ab8c 100%);
  box-shadow: 0 1.5px 3px rgba(120,96,70,.3), inset 0 -2px 3px rgba(160,130,100,.26);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.kicker {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.title-plaque {
  position: relative;
  width: min(244px, 78%);
  aspect-ratio: 703 / 276;
  margin: 0 auto 14px;
}
.title-plaque img, .date-frame img, .time-plaque img, .map-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.title-plaque span {
  position: absolute;
  inset: 14% 13% 18%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--didone);
  font-weight: 500;
  font-size: clamp(13px, 3.8vw, 17px);
  color: var(--gold-2);
  line-height: 1.05;
  text-align: center;
}

.timeline {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  width: min(100%, 320px);
  display: grid;
  gap: 0;
}
.timeline li {
  display: grid;
  justify-items: center;
  text-align: center;
}
.timeline time {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline strong {
  font-family: var(--didone);
  font-weight: 500;
  font-size: clamp(22px, 6.4vw, 28px);
  color: var(--ink-2);
  margin-bottom: 8px;
}
.timeline p {
  margin: 0;
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 34ch;
}
.timeline .tl-star {
  padding: 14px 0 12px;
}
.timeline .tl-star .star { width: 13px; height: 13px; }

.mem-sub {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--mute);
  margin: 0 0 16px;
}
.mem-locked {
  width: min(100%, 320px);
  background: rgba(255,252,248,.72);
  border: 1px solid rgba(178,138,93,.28);
  border-radius: 18px;
  padding: 22px 18px 18px;
}
.mem-locked .star { margin-bottom: 8px; }
.mem-note {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 12px;
}
.mem-remain {
  font-family: var(--didone);
  font-weight: 500;
  font-size: clamp(18px, 5.4vw, 24px);
  color: var(--ink-2);
  margin: 12px 0 10px;
  line-height: 1.25;
}
.mem-opens {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.mem-open { width: min(100%, 340px); }
.mem-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  border: 1px dashed rgba(178,138,93,.55);
  background: rgba(255,252,248,.7);
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 10px;
}
.mem-name {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(178,138,93,.4);
  background: rgba(251,247,240,.9);
  border-radius: 8px 8px 0 0;
  padding: 10px 6px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
}
.mem-quota, .mem-status {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--mute);
  margin: 0 0 10px;
}
.mem-status { color: var(--gold-2); }
.mem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-height: 36vh;
  overflow: auto;
}
.mem-grid a, .mem-grid video, .mem-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(239,234,227,.8);
  display: block;
}

@media (max-height: 740px) {
  .scene-line { justify-content: flex-start; padding-top: calc(36px + env(safe-area-inset-top)); }
  .timeline time { font-size: 16px; }
  .timeline strong { font-size: clamp(19px, 5.6vw, 24px); margin-bottom: 4px; }
  .timeline p { font-size: 13.5px; line-height: 1.45; }
  .timeline .tl-star { padding: 8px 0 6px; }
}

.lead, .quote {
  font-family: "EB Garamond", var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 320px;
  margin: 8px auto 18px;
}
.quote { margin-top: 28px; max-width: 280px; font-size: 16.5px; }

.families {
  width: min(92%, 340px);
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  gap: 8px;
  align-items: start;
}
.families strong {
  display: block;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 6px;
}
.families span {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.families em { font-size: 11px; color: var(--mute); }
.fam-line {
  width: 1px;
  height: 42px;
  margin: 10px auto 0;
  background: var(--accent);
  opacity: .7;
  font-weight: 400;
}

.date-frame {
  position: relative;
  width: clamp(168px, 52vw, 234px);
  aspect-ratio: 597 / 892;
  margin: 8px auto 10px;
}
.date-frame span {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  color: var(--ink);
  white-space: nowrap;
}
.d-day {
  top: 38%;
  font-family: var(--didone);
  font-size: clamp(64px, 20vw, 92px);
  line-height: 1;
}
.d-month {
  top: 62%;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(13px, 4.8vw, 19px);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.d-year {
  top: 82%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(15px, 4.4vw, 21px);
  letter-spacing: .28em;
}

.time-row {
  display: flex;
  gap: 12px;
  width: min(100%, 380px);
  justify-content: center;
}
.time-plaque {
  position: relative;
  flex: 1 1 0;
  max-width: 196px;
  aspect-ratio: 419 / 332;
}
.time-plaque span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 11%;
  color: var(--ink);
  white-space: nowrap;
}
.weekday {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(9.5px, 3.2vw, 13px);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hour {
  font-family: var(--didone);
  font-size: clamp(22px, 6.8vw, 33px);
}
.cal-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1.8px solid transparent;
  color: var(--gold-2);
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  background:
    linear-gradient(166deg,#fff 0%,#fdfaf5 40%,#f2ebe0 100%) padding-box,
    linear-gradient(150deg,#e6cb94 0%,#b08a5e 40%,#dcc191 68%,#9b7a50 100%) border-box;
  box-shadow: 0 8px 18px rgba(130,104,74,.22), inset 0 0 0 2px rgba(255,255,255,.85);
}
.cal-btn span { color: var(--gold); font-size: 1.15em; line-height: 1; }
.cal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--gold-2);
}
.cal-note span {
  color: var(--gold);
  font-style: normal;
  animation: calArrow 1.4s ease-in-out infinite;
}
@keyframes calArrow {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.count-kicker {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.count-days-wrap {
  margin: 8px 0 18px;
}
.count-day-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(78%, 280px);
  margin: 0 auto;
}
.count-day-row i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.count-day-row i:last-of-type { background: linear-gradient(270deg, transparent, var(--gold)); }
.count-days {
  font-family: var(--didone);
  font-weight: 400;
  font-size: clamp(88px, 28vw, 128px);
  line-height: .85;
  color: var(--ink-2);
  min-width: .7em;
  text-align: center;
  display: inline-block;
}
.count-days-wrap > span {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink);
}
.count-hms {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 4px auto 0;
}
.count-hms div { min-width: 64px; }
.count-hms b {
  display: block;
  font-family: var(--didone);
  font-weight: 400;
  font-size: clamp(28px, 8.4vw, 36px);
  line-height: 1;
  color: var(--ink-2);
}
.count-hms span {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mute);
}
.count-hms em {
  font-style: normal;
  font-family: var(--didone);
  font-size: clamp(24px, 7vw, 30px);
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
}
.tick-in { animation: digitIn .38s cubic-bezier(.16,.84,.24,1); }
@keyframes digitIn {
  from { opacity: .25; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

.scene-title {
  font-family: var(--didone);
  font-weight: 500;
  font-size: clamp(26px, 7.2vw, 38px);
  color: var(--ink);
  margin: 0 0 4px;
}
.map-frame {
  position: relative;
  width: min(calc(100% + 24px), 280px);
  aspect-ratio: 2 / 3;
  margin: -4% auto 8px;
  transform: scale(1.08);
}
.map-clip {
  position: absolute;
  left: 13.4%;
  top: 17.7%;
  width: 73.4%;
  height: 59.6%;
  overflow: hidden;
  background: #eae0d0;
  clip-path: polygon(50% 0, 68% 5%, 84% 14%, 100% 29%, 100% 91%, 96% 97%, 86% 100%, 14% 100%, 4% 97%, 0 91%, 0 29%, 16% 14%, 32% 5%);
}
.map-clip iframe {
  position: absolute;
  top: -34%;
  left: -22%;
  width: 144%;
  height: 168%;
  border: 0;
  filter: saturate(.72) brightness(1.05) contrast(.93) sepia(.16) hue-rotate(-4deg);
}
.venue-name {
  position: absolute;
  left: 19%;
  right: 19%;
  top: 78.2%;
  bottom: 8.2%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--didone);
  font-weight: 500;
  font-size: clamp(12px, 3.65vw, 16px);
  color: var(--gold-2);
  pointer-events: none;
}
.addr {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(9.5px, 2.85vw, 12.5px);
  letter-spacing: .012em;
  color: var(--ink);
  margin: 6px 0 10px;
  line-height: 1.35;
}
.dir {
  display: block;
  width: clamp(190px, 58vw, 246px);
  line-height: 0;
  filter: drop-shadow(0 5px 11px rgba(130,104,74,.22));
}

.sub {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--mute);
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 280px;
}
#rsvpForm {
  width: min(100%, 300px);
  display: grid;
  gap: 10px;
}
.field-label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-2);
}
#rsvpForm input[type="text"] {
  width: 100%;
  border: 1px solid rgba(178,138,93,.28);
  background: rgba(251,247,240,.92);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  text-align: center;
}
@keyframes onAutoFillStart { from { opacity: 1; } to { opacity: 1; } }
#rsvpForm input:-webkit-autofill {
  animation-name: onAutoFillStart;
}
#rsvpForm input[type="text"]::placeholder {
  color: #b5a898;
  font-style: italic;
}
.choices { display: grid; gap: 8px; }
.choices label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
  border-radius: 12px;
  border: 1px solid rgba(155,131,96,.28);
  background: rgba(255,252,248,.55);
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.choices label:has(input:checked) {
  border-color: rgba(178,138,93,.3);
  background: rgba(178,138,93,.07);
  color: var(--ink);
}
.choices input { display: none; }
.choices i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.4px solid var(--accent);
  display: inline-grid;
  place-items: center;
}
.choices label:has(input:checked) i {
  border-color: var(--gold);
  box-shadow: 0 1px 3px rgba(114,99,81,.22);
}
.choices label:has(input:checked) i::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff, #e4cfb6 70%, #c9ab8c);
}
.stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
}
.stepper button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.2px solid rgba(178,138,93,.5);
  background: rgba(255,255,255,.3);
  color: var(--gold-2);
  cursor: pointer;
}
.stepper b {
  font-family: var(--didone);
  font-size: 26px;
  min-width: 20px;
  color: var(--ink);
}
.submit {
  margin: 8px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 36px;
  border-radius: 999px;
  border: 1.8px solid transparent;
  color: var(--gold-2);
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background:
    linear-gradient(166deg,#fff 0%,#fdfaf5 40%,#f2ebe0 100%) padding-box,
    linear-gradient(150deg,#e6cb94 0%,#b08a5e 40%,#dcc191 68%,#9b7a50 100%) border-box;
  box-shadow: 0 8px 18px rgba(130,104,74,.22), inset 0 0 0 2px rgba(255,255,255,.85);
}
.submit span { color: var(--gold); }
.thanks {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  margin-top: 12px;
}

.rsvp-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(72, 58, 42, .38);
  backdrop-filter: blur(8px);
}
.rsvp-pop[hidden] { display: none; }
.rsvp-pop-card {
  width: min(100%, 320px);
  text-align: center;
  padding: 28px 22px 22px;
  border-radius: 22px;
  border: 1.8px solid transparent;
  background:
    linear-gradient(166deg,#fffdf8 0%,#fbf6ee 42%,#f3eadc 100%) padding-box,
    linear-gradient(150deg,#e6cb94 0%,#b08a5e 40%,#dcc191 68%,#9b7a50 100%) border-box;
  box-shadow: 0 18px 40px rgba(90,60,20,.22), inset 0 0 0 2px rgba(255,255,255,.85);
}
.rsvp-pop-card .star {
  width: 22px;
  height: 22px;
  fill: var(--gold);
  margin-bottom: 10px;
}
.rsvp-pop-title {
  font-family: var(--didone);
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 8px;
}
.rsvp-pop-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--mute);
  margin: 0 0 18px;
}

.end-farewell {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 4.2vw, 22px);
  letter-spacing: .08em;
  color: var(--mute);
  margin: 0 0 10px;
}
.end-names {
  font-family: var(--didone);
  font-size: clamp(32px, 10vw, 48px);
  color: var(--ink);
  margin: 0 0 12px;
}
.end-meta {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 12px;
}

.music {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom, 0px));
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(178,138,93,.45);
  border-radius: 50%;
  background: rgba(255,253,248,.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(90,60,20,.12);
}
.scroll-nav {
  position: fixed;
  left: 50vw;
  right: auto;
  translate: -50% 0;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 120px);
  padding: 11px 20px;
  border: 1px solid rgba(178,138,93,.35);
  border-radius: 999px;
  background: rgba(255,250,245,.92);
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(90,60,20,.12);
  backdrop-filter: blur(8px);
}
.scroll-nav[hidden] { display: none; }
.scroll-nav.is-top #scrollNavIcon { transform: rotate(180deg); }
#scrollNavIcon { display: inline-block; transition: transform .25s ease; }
body.is-cover .scroll-nav,
body.is-cover .music { visibility: hidden; pointer-events: none; }
.music-bars { display: flex; gap: 3px; height: 14px; align-items: flex-end; }
.music-bars i { width: 3px; height: 6px; background: var(--gold); border-radius: 2px; }
.music.is-on .music-bars i { animation: eq .9s ease-in-out infinite; }
.music.is-on .music-bars i:nth-child(2) { animation-delay: .15s; }
.music.is-on .music-bars i:nth-child(3) { animation-delay: .3s; }
@keyframes eq { 50% { height: 14px; } }

@media (max-width: 767px) {
  :root { --vv-bottom: 64px; }
  .scroll-nav,
  .music {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom));
  }
}

@media (min-width: 768px) {
  .intro { box-shadow: none; }
}

.has-reveal .scene > * {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
}
.has-reveal .scene.is-inview > * {
  animation: sceneRise .95s cubic-bezier(.16,.84,.24,1) both;
}
.has-reveal .scene.is-inview > *:nth-child(1) { animation-delay: .04s; }
.has-reveal .scene.is-inview > *:nth-child(2) { animation-delay: .14s; }
.has-reveal .scene.is-inview > *:nth-child(3) { animation-delay: .24s; }
.has-reveal .scene.is-inview > *:nth-child(4) { animation-delay: .34s; }
.has-reveal .scene.is-inview > *:nth-child(5) { animation-delay: .44s; }
.has-reveal .scene.is-inview > *:nth-child(6) { animation-delay: .54s; }
.has-reveal .scene.is-inview > *:nth-child(7) { animation-delay: .64s; }

.has-reveal .scene-names.is-inview .couple {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.has-reveal .timeline li:not(.tl-star) {
  opacity: 0;
  transform: translateY(18px);
}
.has-reveal .scene.is-inview .timeline li:not(.tl-star) {
  animation: sceneRise .85s cubic-bezier(.16,.84,.24,1) both;
}
.has-reveal .scene.is-inview .timeline li:not(.tl-star):nth-child(1) { animation-delay: .16s; }
.has-reveal .scene.is-inview .timeline li:not(.tl-star):nth-child(3) { animation-delay: .32s; }
.has-reveal .scene.is-inview .timeline li:not(.tl-star):nth-child(5) { animation-delay: .48s; }

.has-reveal .count-hms > div,
.has-reveal .time-plaque,
.has-reveal .families > div {
  opacity: 0;
  transform: translateY(16px);
}
.has-reveal .scene.is-inview .count-hms > div,
.has-reveal .scene.is-inview .time-plaque,
.has-reveal .scene.is-inview .families > div {
  animation: sceneRise .8s cubic-bezier(.16,.84,.24,1) both;
}
.has-reveal .scene.is-inview .count-hms > div:nth-child(1),
.has-reveal .scene.is-inview .time-plaque:nth-child(1),
.has-reveal .scene.is-inview .families > div:nth-child(1) { animation-delay: .28s; }
.has-reveal .scene.is-inview .count-hms > div:nth-child(3),
.has-reveal .scene.is-inview .time-plaque:nth-child(2),
.has-reveal .scene.is-inview .families > div:nth-child(3) { animation-delay: .4s; }
.has-reveal .scene.is-inview .count-hms > div:nth-child(5) { animation-delay: .52s; }

.has-reveal .scene.is-inview .count-days {
  animation: countPop 1.05s .12s cubic-bezier(.16,.84,.24,1) both;
}

.has-reveal .scene.is-inview .date-frame {
  animation: sceneScale 1.05s .12s cubic-bezier(.16,.84,.24,1) both;
}
.has-reveal .scene.is-inview .map-frame {
  animation: mapIn .95s .16s cubic-bezier(.16,.84,.24,1) both;
}
.has-reveal .scene.is-inview .star.lg {
  animation: bloom 1.1s cubic-bezier(.19,1,.22,1) both;
}

@keyframes sceneRise {
  from { opacity: 0; transform: translateY(26px); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes countPop {
  from { opacity: 0; transform: scale(.78); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes sceneScale {
  from { opacity: 0; transform: scale(.92) translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes mapIn {
  from { opacity: 0; transform: scale(.96) translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: scale(1.08); filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .has-reveal .scene > *,
  .has-reveal .timeline li,
  .has-reveal .count-hms > div,
  .has-reveal .time-plaque,
  .has-reveal .families > div {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
