@font-face {
  font-family: Bodoni;
  src: url('../../wedding/premium-cinematic/fonts/BodoniModa.ttf') format('truetype');
  font-display: swap
}

@font-face {
  font-family: Italianno;
  src: url('../../wedding/premium-cinematic/fonts/Italianno.ttf') format('truetype');
  font-display: swap
}

:root {
  --paper: #fbf5f0;
  --cream: #f7ede5;
  --blush: #f1dbe1;
  --rose: #8f455d;
  --ink: #513d42;
  --muted: #80666d;
  --gold: #a77d50;
  --line: #bfa18d66;
  --serif: Bodoni, Georgia, serif;
  --script: Italianno, 'Brush Script MT', cursive;
  color-scheme: only light
}

* {
  box-sizing: border-box
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 76px
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, serif;
  -webkit-font-smoothing: antialiased
}

body.menu-open {
  overflow: hidden
}

[hidden] {
  display: none !important
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent
}

button,
a {
  touch-action: manipulation
}

button {
  cursor: pointer
}

a {
  color: inherit
}

button {
  color: inherit
}

button:disabled {
  cursor: wait;
  opacity: .6
}

img {
  max-width: 100%;
  display: block
}

svg {
  display: block
}

h1,
h2,
h3,
p,
figure {
  margin: 0
}

h2 {
  font: 400 clamp(2.3rem, 5.3vw, 4rem)/1.12 var(--serif);
  text-wrap: balance
}

h3 {
  font: 400 1.35rem var(--serif)
}

p {
  line-height: 1.8
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 5px
}

::selection {
  background: var(--blush);
  color: var(--ink)
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0
}

.script {
  font: 400 4rem/1.1 var(--script)
}

.eyebrow {
  font: 400 .65rem/1.7 Arial, sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase
}

.fine {
  font: 400 .75rem/1.8 Arial, sans-serif;
  color: var(--muted)
}

.body-copy {
  font: 400 .95rem/1.95 Georgia, serif;
  color: var(--muted)
}

.button {
  min-height: 52px;
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rose);
  padding: 15px 25px;
  text-decoration: none;
  font: 400 .73rem/1.5 Arial, sans-serif;
  letter-spacing: .06em;
  color: var(--paper);
  background: var(--rose);
  transition: background .25s, transform .25s, box-shadow .25s;
  border-radius: 2px;
  position: relative;
  overflow: hidden
}

.button:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, #ffffff24 48%, transparent 75%);
  transform: translateX(-110%);
  transition: transform .7s
}

.button:hover:before {
  transform: translateX(110%)
}

.button:hover {
  background: #73364c;
  box-shadow: 0 8px 24px #8f455d22
}

.button:active {
  transform: scale(.98)
}

.button .icon {
  width: 19px;
  height: 19px
}

.text-button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  min-height: 44px;
  font: 400 .75rem/1.5 Arial, sans-serif
}

.round-button {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: transform .2s, background .2s
}

.round-button:hover {
  background: var(--blush);
  transform: translateY(-2px)
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 14px;
  background: var(--paper)
}

.skip-link:focus {
  top: 12px
}

.notice {
  text-align: center;
  padding: 24px;
  background: var(--cream)
}

.retry {
  display: block;
  margin: 24px auto
}

.butterfly {
  width: 70px;
  height: 56px;
  color: #bd8a82;
  filter: drop-shadow(0 5px 4px #945b6c22)
}

.section {
  position: relative;
  padding: 88px 24px
}

.section-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 .56rem/1.5 Arial, sans-serif;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 48px
}

.section-marker i {
  height: 1px;
  width: 36px;
  background: var(--line)
}

.ornament {
  width: 52px;
  height: 44px;
  margin: 0 auto 24px
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden
}

.sparkles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  background: #f7d8a3;
  border-radius: 50%;
  box-shadow: 0 0 9px 2px #f0c98e88;
  animation: twinkle var(--duration, 4s) ease-in-out infinite;
  animation-delay: var(--delay)
}

[tabindex="-1"]:focus {
  outline: none
}

.hero-sparkles {
  z-index: 1;
  opacity: .6
}

.lightbox-photo {
  overflow: hidden;
  max-width: 600px;
  margin: auto
}

.lightbox-photo.is-detail img {
  object-fit: cover;
  transform: scale(1.55)
}

/* Both scenes keep their layout. Only the fixed stationery scene is composited away. */
html[data-typeface="fallback"] {
  --serif: Georgia, serif;
  --script: 'Brush Script MT', cursive;
}

html[data-invitation-active="true"] {
  overflow: hidden;
}

#load-status {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
}

body[data-scene="error"] #load-status {
  position: relative;
  inset: auto;
}

body[data-scene="closed"] #experience {
  visibility: hidden;
  pointer-events: none;
}

body[data-scene="closed"] .hero-content,
body[data-scene="opening"] .hero-content,
body[data-scene="closed"] .toolbar,
body[data-scene="opening"] .toolbar,
body[data-scene="closed"] .floating-controls,
body[data-scene="opening"] .floating-controls {
  opacity: 0;
}

.opening {
  position: fixed;
  inset: 0;
  block-size: 100dvh;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom));
  overflow-y: scroll;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: radial-gradient(ellipse at 50% 25%, #fffdf9, transparent 65%), linear-gradient(160deg, #fbf6f1, #f4e7e8);
  isolation: isolate;
}

.opening::-webkit-scrollbar {
  display: none;
}

body[data-scene="ready"] .opening {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-frame {
  position: absolute;
  inset: 18px;
  border: 1px solid #c5a4a333;
  pointer-events: none;
}

.opening-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  flex-shrink: 0;
}

.opening-heading .eyebrow {
  font-size: .55rem;
  letter-spacing: .22em;
  color: #8e6a70;
}

.opening-heading h1 {
  font-size: clamp(4.4rem, 15vw, 5.7rem);
  color: #98586b;
  margin: 5px 0 0;
  line-height: 1.05;
}

.opening-subtitle {
  font: 400 .52rem/1.6 Arial, sans-serif;
  letter-spacing: .35em;
  color: #9e7f75;
}

.envelope-stage {
  --stage-ratio: .74;
  --envelope-w: min(82vw, 42svh, 350px);
  width: var(--envelope-w);
  height: calc(var(--envelope-w) * var(--stage-ratio));
  position: relative;
  flex-shrink: 0;
  margin: 12px 0 19px;
}

.envelope {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1200 / 800;
  isolation: isolate;
}

.envelope-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid #dbbdc0;
  border-radius: 3px;
  background: linear-gradient(160deg, #faedee, #f2dce1);
  box-shadow: 0 12px 28px #7b566316;
}

.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1200 / 602;
  perspective: calc(var(--envelope-w) * 4);
  perspective-origin: 50% 0;
  pointer-events: none;
}

.envelope-flap-front {
  z-index: 4;
}

.envelope-flap-rear {
  z-index: 1;
  opacity: 0;
}

.flap-rotor {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.envelope-flap-front .flap-rotor {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flap-front,
.flap-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flap-front {
  object-fit: contain;
}

.flap-back {
  background: linear-gradient(180deg, #fff9f4, #f0dde2);
  mask-image: var(--flap-image);
  -webkit-mask-image: var(--flap-image);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.invitation-card {
  position: absolute;
  z-index: 2;
  width: 82%;
  aspect-ratio: 3 / 2;
  top: 7%;
  left: 9%;
  border: 1px solid #d6babe;
  border-radius: 2px;
  background: linear-gradient(135deg, #fffefa, #fff6f1);
  box-shadow: 0 5px 12px #805c6412;
}

.invitation-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid #dcc6bf80;
  pointer-events: none;
}

.letter-copy {
  position: absolute;
  inset: 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.letter-copy .eyebrow {
  font-size: max(6px, calc(var(--envelope-w) * .022));
  letter-spacing: .18em;
  color: #a27c7b;
}

.letter-copy .script {
  color: #98586b;
  font-size: calc(var(--envelope-w) * .17);
  line-height: 1.1;
}

.letter-line {
  height: 1px;
  width: 23px;
  background: #d2b2aa;
}

.letter-subtitle {
  font: italic max(7px, calc(var(--envelope-w) * .026))/1.4 Georgia, serif;
  color: #947477;
}

.ribbon-bow {
  position: absolute;
  z-index: 6;
  top: 18%;
  left: 28%;
  width: 44%;
  height: auto;
  transform-origin: 50% 40%;
}

.envelope-glint {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  mask-image: var(--pocket-image);
  -webkit-mask-image: var(--pocket-image);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.envelope-glint span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  opacity: 0;
  background: linear-gradient(100deg, transparent, #fffdf1, transparent);
}

body[data-scene="opening"] .flap-rotor,
body[data-scene="opening"] .invitation-card,
body[data-scene="opening"] .ribbon-bow {
  will-change: transform, opacity;
}

.opening-copy {
  position: relative;
  z-index: 7;
  text-align: center;
  max-width: 290px;
  flex-shrink: 0;
}

.opening-copy>p:first-child {
  font-size: .8rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.opening-copy .button {
  min-width: 238px;
}

.opening-copy .fine {
  font-size: .58rem;
  margin-top: 12px;
}

.opening-brand {
  position: relative;
  z-index: 2;
  font: 400 .45rem/1.7 Arial, sans-serif;
  letter-spacing: .13em;
  margin-top: 19px;
  flex-shrink: 0;
  color: #a08587;
}

.opening-brand span {
  padding: 0 6px;
}

.asset-butterfly {
  display: block;
  object-fit: contain;
  overflow: visible;
}

@media (max-height: 740px) {
  .opening {
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .opening-heading h1 {
    font-size: 4.2rem;
  }

  .envelope-stage {
    --envelope-w: min(80vw, 34svh, 300px);
    margin: 9px 0 13px;
  }

  .opening-copy>p:first-child {
    font-size: .76rem;
    margin-bottom: 12px;
  }

  .opening-brand {
    margin-top: 14px;
  }
}

@media (max-height: 610px) {
  .opening {
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .opening-heading h1 {
    font-size: 3.6rem;
  }

  .envelope-stage {
    --envelope-w: min(78vw, 31svh, 240px);
    margin: 7px 0 12px;
  }

  .opening-copy>p:first-child {
    font-size: .72rem;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  .opening-copy .fine {
    margin-top: 10px;
  }

  .opening-brand {
    margin-top: 12px;
    font-size: .42rem;
  }
}


.toolbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  color: #fff9f1
}

.monogram {
  font: 400 2rem var(--script);
  width: 43px;
  height: 43px;
  border: 1px solid currentColor;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  padding-top: 4px
}

.toolbar-label {
  font: 400 .56rem Arial, sans-serif;
  letter-spacing: .16em
}

.menu-toggle {
  margin-left: auto;
  background: #fbf5f0ee;
  border-color: #ffffff55;
  position: relative;
  z-index: 35;
  gap: 5px;
  align-content: center
}

.menu-toggle span {
  height: 1px;
  width: 18px;
  background: var(--ink);
  transition: transform .3s
}

.menu-toggle[aria-expanded=true] span:first-child {
  transform: translateY(3px) rotate(45deg)
}

.menu-toggle[aria-expanded=true] span:last-child {
  transform: translateY(-3px) rotate(-45deg)
}

.navigation {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #fbf5f0f9;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 70px 24px 30px;
  color: var(--ink)
}

.navigation>a {
  text-decoration: none;
  font: 400 clamp(1.7rem, 4vw, 2.8rem) var(--serif);
  min-height: 44px
}

.navigation>a:hover {
  color: var(--rose)
}

.navigation>.eyebrow {
  margin-bottom: 12px
}

.navigation .butterfly {
  width: 46px;
  height: 38px;
  margin-top: 8px
}

.menu-open .toolbar {
  position: fixed;
  z-index: 40
}

.menu-open .toolbar .monogram,
.menu-open .toolbar-label {
  visibility: hidden
}

.hero {
  min-height: 800px;
  height: 100svh;
  max-height: 1200px;
  position: relative;
  overflow: hidden;
  background: #443e30;
  color: #fff9f1
}

.hero-photo {
  position: absolute;
  inset: 0
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 50% 42%)
}

.photo-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #202c2466 0, #202c2400 23%, #2e203500 44%, #241b27aa 86%, #241b27bb)
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .13;
  background: radial-gradient(circle at 15% 20%, #f9e6d6 0, transparent 50%);
  pointer-events: none
}

.hero-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 76px;
  text-align: center;
  z-index: 2
}

.hero-content>.eyebrow {
  letter-spacing: .38em;
  font-size: .65rem
}

.hero-content .crown {
  margin: 13px auto 3px;
  width: 39px;
  height: 30px;
  color: #efd4a9
}

.hero-name {
  font-size: clamp(5.8rem, 22vw, 9rem);
  line-height: 1.15;
  text-shadow: 0 5px 25px #33202d22
}

.hero-subtitle {
  font-size: .9rem;
  font-style: italic;
  max-width: 240px;
  margin: 5px auto 24px;
  line-height: 1.6
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font: 400 .65rem Arial, sans-serif;
  letter-spacing: .2em
}

.hero-date span:nth-child(2) {
  padding: 8px 16px;
  border-left: 1px solid #fff7e977;
  border-right: 1px solid #fff7e977
}

.discover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 35px auto 0;
  text-decoration: none;
  font: 400 .51rem Arial, sans-serif;
  letter-spacing: .18em
}

.discover span {
  font: 400 1.5rem Georgia;
  animation: scroll-cue 2s infinite
}

.hero-butterfly {
  position: absolute;
  right: 7%;
  top: 14%;
  color: #f4dac2;
  width: 42px;
  height: 35px;
  transform: rotate(-18deg);
  animation: flutter 7s infinite;
  opacity: .65
}

.hero-edition {
  position: absolute;
  right: 16px;
  top: 40%;
  writing-mode: vertical-rl;
  font: 400 .5rem Arial, sans-serif;
  letter-spacing: .24em;
  color: #fff7e9bb
}

.hero:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -10%;
  width: 120%;
  height: 44px;
  background: var(--paper);
  border-radius: 50% 50% 0 0/100% 100% 0 0
}

.hero-orbit {
  position: absolute;
  inset: 100px 24px 42px;
  border: 1px solid #f5e3c238;
  border-radius: 50% 50% 2px 2px;
  pointer-events: none
}

/* Every chapter has its own composition and visual rhythm. */
.invitation {
  overflow: hidden;
  text-align: center;
  padding-bottom: 95px
}

.invitation .section-marker {
  text-align: left
}

.invitation-inner {
  max-width: 600px;
  margin: auto;
  position: relative;
  z-index: 1
}

.invitation h2 {
  margin: 17px 0 24px
}

.signature {
  font-size: 2.5rem;
  color: var(--rose);
  margin-top: 27px
}

.petal {
  position: absolute;
  width: 190px;
  height: 270px;
  border: 1px solid #c39a9a2b;
  border-radius: 100% 0 100% 0;
  transform: rotate(25deg);
  pointer-events: none
}

.petal-one {
  left: -140px;
  top: 150px;
  box-shadow: 14px 0 0 0 #f6e8e4
}

.petal-two {
  right: -160px;
  bottom: -30px;
  transform: rotate(195deg)
}

.countdown-section {
  text-align: center;
  background: var(--blush);
  padding: 67px 20px;
  overflow: hidden
}

.countdown-section:before,
.countdown-section:after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid #b78a8a33;
  border-radius: 50%;
  top: -100px;
  left: -120px
}

.countdown-section:after {
  left: auto;
  right: -170px;
  top: auto;
  bottom: -70px;
  width: 330px;
  height: 330px
}

.countdown-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 450px;
  margin: 17px auto 29px
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px
}

.countdown>div {
  min-width: 48px
}

.countdown span {
  font: 400 clamp(2rem, 7vw, 4rem)/1 var(--serif);
  font-variant-numeric: tabular-nums
}

.countdown small {
  display: block;
  font: 400 .47rem Arial, sans-serif;
  letter-spacing: .12em;
  margin-top: 12px
}

.countdown i {
  font: 400 1.6rem var(--serif);
  align-self: flex-start;
  margin-top: 2px;
  color: #ad7f82
}

.countdown-butterfly {
  position: absolute;
  right: 5%;
  top: -15px;
  width: 42px;
  transform: rotate(24deg)
}

.countdown-section .fine {
  margin-top: 16px
}

.details-layout {
  display: grid;
  gap: 45px;
  max-width: 980px;
  margin: auto
}

.details-layout>.reveal:first-child {
  text-align: center
}

.details h2 {
  margin: 16px 0 22px
}

.date-card {
  position: relative;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 150px 150px 2px 2px;
  width: min(100%, 330px);
  margin: auto;
  background: linear-gradient(145deg, #fffdf9, #f1e2dc);
  box-shadow: 0 20px 45px #987f6e0c;
  transform: rotate(2deg)
}

.date-card-inner {
  border: 1px solid var(--line);
  border-radius: 145px 145px 0 0;
  padding: 38px 22px 25px;
  text-align: center
}

.date-card .crown {
  margin: 0 auto 20px;
  width: 44px;
  height: 35px;
  color: var(--gold)
}

.date-number {
  font: 400 6rem/.95 var(--serif);
  display: block;
  color: var(--rose);
  margin: 16px 0 5px
}

.date-month {
  font: 400 1.7rem var(--serif)
}

.fine-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto 19px
}

.event-time {
  font: 400 1.65rem var(--serif);
  margin-bottom: 6px
}

.date-card .fine {
  font-size: .55rem;
  letter-spacing: .12em
}

.date-card .text-button {
  display: block;
  margin: 17px auto 0;
  font-size: .65rem
}

.date-card .text-button span {
  padding-left: 14px
}

.location {
  background: var(--cream);
  display: grid;
  gap: 42px
}

.location-art {
  max-width: 340px;
  width: 100%;
  height: 315px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: center;
  color: var(--gold);
  overflow: hidden
}

.garden-arch {
  position: absolute;
  inset: 8px 22px 0;
  border: 1px solid #b9977380;
  border-bottom: 0;
  border-radius: 160px 160px 0 0;
  background: radial-gradient(ellipse at 50% 90%, #dbb5ba88, transparent 65%)
}

.garden-arch:before,
.garden-arch:after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid #b9977355;
  border-bottom: 0;
  border-radius: 160px 160px 0 0
}

.garden-arch:after {
  inset: 25px 34px -40px;
  border-radius: 50%;
  transform: rotate(20deg);
  border-color: #b9977333
}

.location-art .icon {
  position: relative;
  width: 34px;
  height: 34px;
  margin: 18px auto
}

.location-art .script {
  position: relative;
  font-size: 3rem;
  line-height: 1.2;
  color: var(--rose)
}

.location-stars {
  position: relative;
  margin-top: 25px
}

.location-map {
  width: min(100%, 430px);
  margin: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 180px 180px 3px 3px;
  background: var(--paper);
  box-shadow: 0 16px 35px #634c4210;
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 330px;
  display: block;
  border: 0;
  border-radius: 170px 170px 1px 1px;
  background: var(--blush);
}

.map-caption {
  display: block;
  text-align: center;
  padding: 16px 8px 8px;
  font: 400 .53rem/1.7 Arial, sans-serif;
  letter-spacing: .18em;
  color: var(--gold);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.location-actions .button {
  padding-inline: 17px;
  gap: 12px;
}

.button-secondary {
  color: var(--rose);
  background: transparent;
}

.button-secondary:hover {
  color: var(--rose);
  background: var(--blush);
}

.gift-demo-note {
  margin-top: 18px;
}

@media (min-width: 700px) {
  .location-actions {
    justify-content: flex-start;
  }
}

.location-copy {
  max-width: 470px;
  margin: auto;
  text-align: center
}

.location-copy h2 {
  margin: 18px 0 20px
}

.location-copy .fine {
  margin: 15px 0 20px
}

.story {
  overflow: hidden;
  background: #674650;
  color: #fff3e8;
  text-align: center;
  padding-top: 95px;
  padding-bottom: 95px
}

.story-copy {
  max-width: 580px;
  margin: auto;
  position: relative;
  z-index: 1
}

.story .eyebrow {
  color: #e7c7b4
}

.story h2 {
  margin: 20px 0 28px
}

.story .body-copy {
  color: #e1cdd1
}

.story .ornament {
  color: #d3aa88;
  margin-top: 32px;
  margin-bottom: 0
}

.story-xv {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  font: 400 24rem/1 var(--serif);
  color: #a77d8420;
  white-space: nowrap
}

.section.gallery-section {
  overflow: hidden;
  padding-block: 50px;
}

.gallery-section .section-marker {
  margin-bottom: 32px;
}

.gallery-heading {
  text-align: center;
}

.gallery-heading h2 {
  margin: 14px 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 12px;
  margin: 28px auto 0;
  max-width: 740px;
  align-items: center;
}

.gallery-item {
  min-width: 0;
}

.gallery-item:first-child {
  transform: rotate(-2deg);
}

.gallery-item:nth-child(2) {
  transform: rotate(2deg);
  margin-top: 12px;
}

.gallery-item:nth-child(3) {
  transform: rotate(-2deg);
  margin-top: -12px;
}

.gallery-button {
  display: block;
  position: relative;
  background: #ecdbd3;
  border: 0;
  padding: 8px;
  width: 100%;
  box-shadow: 0 10px 30px #634c4214;
  overflow: hidden
}

.gallery-button img {
  width: 100%;
  height: clamp(128px, 25vw, 225px);
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform .8s;
  object-position: var(--position)
}

.gallery-item:first-child img {
  height: clamp(158px, 30vw, 270px)
}

.gallery-button .photo-detail {
  transform: scale(1.65)
}

.gallery-button:hover img {
  transform: scale(1.05)
}

.gallery-button:hover .photo-detail {
  transform: scale(1.75)
}

.gallery-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border: 1px solid #fff8ee77;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: #fbf5f0da;
  color: var(--ink);
  font-size: 1.2rem
}

.gallery-caption {
  font: 400 .54rem/1.6 Arial, sans-serif;
  letter-spacing: .04em;
  margin-top: 13px;
  color: var(--muted)
}

.gallery-hint {
  text-align: center;
  margin-top: 22px;
  font: 400 .64rem Arial, sans-serif;
  color: var(--muted)
}

.gallery-hint span {
  padding-left: 12px
}

.dress-section {
  background: #f0e1dc;
  display: grid;
  gap: 26px
}

.dress-illustration {
  position: relative;
  width: 230px;
  height: 220px;
  display: grid;
  place-items: center;
  margin: auto
}

.dress-halo {
  position: absolute;
  inset: 5px 15px;
  border: 1px solid #b4937366;
  border-radius: 50%
}

.dress-halo:after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid #b4937333;
  border-radius: 50%
}

.dress-illustration .icon {
  width: 100px;
  height: 150px;
  color: var(--rose);
  stroke-width: .7
}

.dress-star {
  position: absolute;
  right: 10px;
  top: 20px;
  font-size: 3rem;
  color: var(--gold)
}

.dress-copy {
  text-align: center;
  max-width: 460px;
  margin: auto
}

.dress-copy h2 {
  margin: 18px 0
}

.dress-code {
  font: 400 1.6rem var(--serif);
  color: var(--rose);
  margin: 22px 0 15px
}

.dress-colors {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 23px 0 13px
}

.dress-colors span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ffffff55
}

.dress-copy .fine {
  font-size: .65rem
}

.family {
  text-align: center
}

.family>div {
  max-width: 680px;
  margin: auto
}

.family h2 {
  margin: 17px 0 23px
}

.family .body-copy {
  max-width: 490px;
  margin: auto
}

.family-groups {
  display: grid;
  gap: 30px;
  margin-top: 40px
}

.family-group .eyebrow {
  font-size: .57rem
}

.family-group p:last-child {
  font: 400 2.1rem var(--script);
  margin-top: 10px;
  color: var(--rose)
}

.gifts {
  background: var(--cream)
}

.gift-heading {
  text-align: center;
  max-width: 580px;
  margin: auto
}

.gift-icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin: 0 auto 24px;
  stroke-width: .8
}

.gift-heading h2 {
  margin: 18px 0 23px
}

.gift-options {
  max-width: 680px;
  margin: 35px auto 0;
  border-top: 1px solid var(--line)
}

.gift-option {
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  display: flex;
  align-items: center;
  gap: 16px
}

.gift-index {
  font: 400 .62rem Arial, sans-serif;
  color: var(--gold);
  flex-shrink: 0;
  width: 20px
}

.gift-option>div {
  flex: 1
}

.gift-option>span:last-child {
  font-size: 1.5rem;
  color: var(--gold)
}

.gift-option p {
  font: 400 .75rem/1.8 Arial, sans-serif;
  color: var(--muted);
  margin-top: 8px
}

.gift-option h3 {
  font-size: 1.35rem
}

.gift-option:is(details) {
  display: block
}

.gift-option summary {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  min-height: 44px;
  list-style: none;
  font: 400 1.35rem var(--serif)
}

.gift-option summary::-webkit-details-marker {
  display: none
}

.gift-option summary>span:nth-child(2) {
  flex: 1
}

.gift-option summary small {
  font: 400 .7rem/1.6 Arial, sans-serif;
  display: block;
  color: var(--muted);
  margin-top: 7px
}

.plus {
  font: 400 1.7rem var(--serif);
  color: var(--gold);
  transition: transform .3s
}

.gift-option[open] .plus {
  transform: rotate(45deg)
}

.bank-details {
  padding: 14px 0 0 36px
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px
}

.copy-row>span {
  overflow-wrap: anywhere;
  font: 400 .85rem/1.8 Arial, sans-serif;
  user-select: all
}

.copy-row .text-button {
  margin-left: auto;
  font-size: .66rem
}

.copy-status {
  max-width: 680px;
  margin: 15px auto 0;
  min-height: 22px
}

.rsvp {
  background: radial-gradient(ellipse at 10% 10%, #fff9ee, transparent 70%), var(--blush);
  display: grid;
  gap: 40px
}

.rsvp-heading {
  position: relative;
  text-align: center;
  max-width: 510px;
  margin: auto
}

.rsvp-heading h2 {
  margin: 18px 0 24px
}

.rsvp-heading .fine {
  margin-top: 20px;
  max-width: 290px;
  margin-inline: auto
}

.rsvp-butterfly {
  width: 51px;
  height: 42px;
  margin: 28px auto 0;
  transform: rotate(-18deg)
}

.rsvp-form {
  max-width: 480px;
  width: 100%;
  margin: auto;
  padding: 28px 24px;
  background: #fffaf477;
  border: 1px solid #b58d8d44
}

.rsvp-form>label,
.rsvp-form legend {
  font: 400 .72rem/1.6 Arial, sans-serif;
  display: block;
  margin-bottom: 10px
}

.rsvp-form label>span {
  color: var(--muted);
  font-size: .65rem
}

.rsvp-form input:not([type=radio]),
.rsvp-form select,
.rsvp-form textarea {
  background: #fffaf0aa;
  border: 0;
  border-bottom: 1px solid #bd979d;
  padding: 13px 10px;
  border-radius: 0;
  min-height: 47px;
  font: 400 .85rem/1.6 Georgia, serif;
  width: 100%;
  margin-bottom: 25px;
  color: var(--ink)
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 80px
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: #876b72;
  opacity: 1
}

.rsvp-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 25px;
  display: grid;
  gap: 7px
}

.attendance-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 0;
  font: 400 .8rem Arial, sans-serif
}

.attendance-option input {
  accent-color: var(--rose);
  width: 17px;
  height: 17px
}

.rsvp-form .button {
  width: 100%;
  padding-inline: 15px
}

.rsvp-form .fine {
  margin-top: 15px;
  font-size: .65rem;
  text-align: center
}

.closing {
  text-align: center;
  padding: 100px 26px 40px;
  overflow: hidden
}

.closing-butterfly {
  width: 65px;
  height: 54px;
  margin: 0 auto 32px;
  animation: flutter 9s infinite
}

.closing-text {
  font: 400 clamp(1.75rem, 4vw, 2.5rem)/1.4 var(--serif);
  max-width: 610px;
  margin: 0 auto 30px;
  text-wrap: balance
}

.closing-name {
  font-size: 5.5rem;
  color: var(--rose);
  margin-top: 4px
}

.closing-xv {
  font: 400 .55rem Arial, sans-serif;
  letter-spacing: .33em
}

.footer-rule {
  width: 38px;
  height: 1px;
  background: var(--gold);
  margin: 45px auto 30px
}

.ibento-credit {
  position: relative;
  text-decoration: none;
  font: 400 .65rem Arial, sans-serif;
  letter-spacing: .17em
}

.ibento-credit span {
  display: block;
  font: 400 .7rem Georgia, serif;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 10px
}

.demo-note {
  font: 400 .56rem/1.7 Arial, sans-serif;
  color: var(--muted);
  margin-top: 25px;
  padding-bottom: 40px
}

.floating-controls {
  position: fixed;
  inset: auto 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  pointer-events: none
}

.floating-controls>* {
  pointer-events: auto
}

.audio-toggle {
  color: var(--rose);
  background: #fbf5f0ed;
  box-shadow: 0 5px 20px #513d4210;
  width: 44px;
  height: 44px
}

.audio-toggle .icon {
  width: 19px;
  height: 19px
}

.audio-bars {
  display: none;
  gap: 3px;
  align-items: center;
  height: 20px
}

.audio-bars i {
  height: 12px;
  width: 2px;
  background: var(--rose);
  animation: audio-bars 1s infinite alternate
}

.audio-bars i:nth-child(2) {
  animation-delay: -.5s;
  height: 19px
}

.audio-bars i:nth-child(3) {
  animation-delay: -.7s;
  height: 8px
}

.audio-toggle[aria-pressed=true] .icon {
  display: none
}

.audio-toggle[aria-pressed=true] .audio-bars {
  display: flex
}

.floating-rsvp {
  text-decoration: none;
  font: 400 .65rem Arial, sans-serif;
  background: #fbf5f0ed;
  padding: 15px 19px;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 5px 20px #513d4210
}

.floating-rsvp span {
  padding-left: 16px
}

.audio-status {
  position: fixed;
  left: 16px;
  bottom: 72px;
  z-index: 22;
  font: 400 .65rem/1.7 Arial, sans-serif;
  max-width: 245px;
  background: var(--paper);
  box-shadow: 0 5px 20px #513d4210
}

.audio-status:not(:empty) {
  padding: 10px 15px;
  border: 1px solid var(--line)
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100svh;
  max-height: 100svh;
  border: 0;
  background: #2e252bf5;
  color: var(--paper);
  padding: 72px 20px 24px;
  margin: 0;
  overflow: auto
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center
}

.lightbox::backdrop {
  background: #2e252b
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  color: var(--paper);
  border-color: #fff7ee55;
  font-size: 2rem
}

.lightbox figure {
  max-width: 800px;
  width: 100%;
  min-height: 0
}

.lightbox figure img {
  width: 100%;
  height: calc(100svh - 210px);
  object-fit: contain
}

.lightbox figcaption {
  text-align: center;
  font: 400 .7rem/1.6 Arial, sans-serif;
  padding: 15px;
  color: #e1cdd1
}

.lightbox-navigation {
  display: flex;
  gap: 30px;
  align-items: center;
  font: 400 .7rem Arial, sans-serif
}

.lightbox-navigation .round-button {
  background: transparent;
  color: var(--paper);
  border-color: #fff7ee55
}

.lightbox-navigation .round-button:hover {
  background: #ffffff22
}

.hero-photo img {
  height: calc(100% + 48px);
  margin-top: -24px;
  translate: 0 var(--hero-drift, 0px)
}

/* Progressive motion: text remains visible when any enhancement fails. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 1.05s, transform 1.2s cubic-bezier(.2, .65, .2, 1)
}

.motion-ready .reveal.is-pending {
  opacity: 0;
  transform: translateY(28px)
}

.gallery-item.reveal.is-pending {
  transform: translateY(28px) rotate(0)
}

@keyframes intro-in {
  from {
    opacity: 0;
    transform: translateY(18px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes flutter {

  0%,
  100% {
    translate: 0 0;
    rotate: -10deg;
    scale: 1
  }

  40% {
    translate: 8px -15px;
    rotate: 7deg;
    scale: .88 1
  }

  70% {
    translate: -6px -7px;
    rotate: -5deg;
    scale: 1
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: .15;
    transform: scale(.6)
  }

  50% {
    opacity: .8;
    transform: scale(1.2)
  }
}

@keyframes scroll-cue {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(6px)
  }
}

@keyframes audio-bars {
  to {
    transform: scaleY(.4)
  }
}

@media(min-width:700px) {
  .section {
    padding: 110px 7%
  }

  .section-marker {
    margin-bottom: 60px
  }

  .hero {
    min-height: 760px
  }

  .hero-content {
    left: 8%;
    right: 55%;
    bottom: 24%;
    color: var(--ink)
  }

  .hero-photo {
    left: 46%
  }

  .photo-veil {
    background: linear-gradient(90deg, #fbf5f033, transparent 20%)
  }

  .hero {
    background: var(--paper)
  }

  .hero-orbit {
    inset: 105px 54% 110px 5%;
    border-color: var(--line)
  }

  .hero .toolbar {
    color: var(--ink)
  }

  .hero-name {
    font-size: clamp(6rem, 10vw, 10rem);
    text-shadow: none
  }

  .hero-content .eyebrow {
    font-size: .6rem
  }

  .hero-subtitle {
    max-width: 220px;
    font-size: 1rem
  }

  .hero-content .crown {
    color: var(--gold)
  }

  .hero-date span:nth-child(2) {
    border-color: var(--line)
  }

  .hero:after {
    height: 0
  }

  .hero-butterfly {
    left: 38%;
    top: 23%;
    color: var(--gold);
    width: 65px
  }

  .hero-edition {
    right: 22px;
    top: 45%
  }

  .hero-grain {
    background: radial-gradient(ellipse at 0 100%, #e1b8c54d, transparent 60%);
    opacity: 1
  }

  .toolbar {
    color: var(--ink);
    padding: 25px 5%
  }

  .toolbar-label {
    color: var(--muted)
  }

  .details-layout {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center
  }

  .details-layout>.reveal:first-child {
    text-align: left
  }

  .date-card {
    transform: rotate(4deg)
  }

  .location {
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
  }

  .location-copy {
    text-align: left
  }

  .story {
    padding-block: 130px
  }

  .story-xv {
    font-size: 36rem;
    top: -20%
  }

  .dress-section {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px
  }

  .dress-copy {
    text-align: left
  }

  .dress-colors {
    justify-content: flex-start
  }

  .dress-illustration {
    width: 290px;
    height: 290px
  }

  .dress-illustration .icon {
    width: 125px;
    height: 180px
  }

  .dress-halo {
    inset: 5px
  }

  .family-groups {
    grid-template-columns: 1fr 1fr;
    gap: 40px
  }

  .family-group:first-child {
    border-right: 1px solid var(--line)
  }

  .rsvp {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px
  }

  .rsvp-heading {
    text-align: left
  }

  .rsvp-heading .fine {
    margin-left: 0
  }

  .rsvp-butterfly {
    margin-left: 0
  }

  .rsvp-form {
    padding: 35px
  }

  .closing {
    padding-top: 120px;
    padding-bottom: 40px
  }

  .floating-controls {
    inset: auto 24px 24px
  }
}

@media(min-width:1200px) {
  #experience {
    max-width: 1600px;
    margin: auto;
    position: relative;
    box-shadow: 0 0 80px #74504d0a
  }

  .hero-content {
    left: 7%;
    right: 57%
  }

  .hero-name {
    font-size: 10rem
  }

  .hero-subtitle {
    max-width: 290px
  }

  .hero-content .eyebrow {
    font-size: .72rem
  }

  .invitation {
    padding-block: 110px 125px
  }

  .rsvp,
  .dress-section,
  .location {
    padding-inline: max(7%, calc((100% - 1080px)/2))
  }
}

@media(max-width:359px) {
  .section {
    padding-inline: 20px
  }

  .countdown {
    gap: 6px
  }

  .countdown>div {
    min-width: 43px
  }

  .countdown small {
    font-size: .42rem
  }

  .countdown span {
    font-size: 1.9rem
  }

  .rsvp-form {
    padding-inline: 18px
  }

  .hero {
    min-height: 680px
  }

  .hero-content {
    bottom: 65px
  }

  .hero-name {
    font-size: 5.7rem
  }
}

@media(max-height:740px) and (max-width:699px) {

  .hero-content {
    bottom: 65px
  }

  .hero {
    min-height: 680px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important
  }

  .motion-ready .reveal.is-pending {
    opacity: 1;
    transform: none
  }

  .hero-name {
    clip-path: none !important
  }
}

/* Vector controls avoid platform emoji substitution, including Safari iOS. */
.discover span,
.floating-rsvp {
  display: inline-flex;
  align-items: center;
}

.discover span .icon {
  width: 20px;
  height: 20px;
}

.text-button .icon,
.gallery-hint .icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.floating-rsvp .icon {
  width: 14px;
  height: 14px;
}

.gallery-zoom .icon {
  width: 15px;
  height: 15px;
}

.gallery-button {
  padding: 5px;
}

.gallery-zoom {
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
}

.gallery-caption {
  margin-top: 10px;
  font-size: .52rem;
}

.location-stars {
  display: flex;
  gap: 13px;
}

.location-stars .icon {
  width: 15px;
  height: 15px;
  margin: 0;
}

.dress-star .icon {
  width: 40px;
  height: 40px;
}

.plus .icon {
  width: 18px;
  height: 18px;
}

@media (min-width:700px) {
  .gallery {
    gap: 22px;
  }

  .gallery-caption {
    font-size: .62rem;
  }
}
