/* Serambi — original editorial composition, botanical motion lives on separate layers. */
@font-face {
  font-family: Amiri;
  src: url('assets/amiri.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  
  --ink: #493c2e;
  --paper: #f4efdf;
  --muted: #77715c;
  --line: #b3a482;
  --deep: #343d2e;
  --column: clamp(480px, 42vw, 650px);
}
body { background: #343d2e; }
.invitation-column { background: var(--paper); box-shadow: -10px 0 55px #18201620; }
.button { background: var(--deep); border-color: var(--deep); border-radius: 0; padding: 13px 25px; letter-spacing: .7px; }
.button:hover { background: #535b3e; }
.button-light { background: var(--paper); color: var(--deep); border-color: var(--paper); }
.eyebrow { font-size: 11px; letter-spacing: 2.5px; }
.section-title { font: italic 49px/1.08 var(--serif); letter-spacing: -1.8px; margin: 15px 0 24px; }
.section-index { display: block; font-size: 10px; letter-spacing: 2.1px; margin-bottom: 36px; opacity: .75; }
.editorial-divider { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 25px auto; width: 130px; font-size: 18px; font-family: var(--serif); }
.editorial-divider::before, .editorial-divider::after { content: ''; height: 1px; flex: 1; background: currentColor; opacity: .4; }
.wind-scene { position: relative; isolation: isolate; }
.botanical-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.branch-place { position: absolute; pointer-events: none; }
.wind-branch { display: block; width: 100%; height: auto; transform-origin: 53% 97%; pointer-events: none; backface-visibility: hidden; }
/* User-supplied orchid sprays mix with the fine jasmine stems. */
.orchid-spray .wind-branch { filter: saturate(.72) sepia(.1); }
.orchid-top-left .wind-branch, .arch-floral--left .wind-branch { transform-origin: 2% 3%; }
.orchid-top-right .wind-branch, .arch-floral--right .wind-branch { transform-origin: 98% 2%; }
.orchid-root-left .wind-branch, .wind-branch.orchid-portrait, .arch-flank--left .wind-branch { transform-origin: 3% 97%; }
.orchid-root-right .wind-branch, .arch-flank--right .wind-branch { transform-origin: 97% 98%; }
.orchid-top-left { width: min(29%, 30svh); top: 25px; left: 25px; }
.orchid-top-right { width: min(25%, 27svh); top: 25px; right: 25px; }
.branch-left { width: 38%; left: -15%; bottom: -12%; transform: rotate(18deg); }
.branch-right { width: 35%; right: -13%; bottom: -9%; transform: scaleX(-1) rotate(15deg); }
.branch-under-left { width: 34%; left: -8%; bottom: -17%; transform: rotate(-26deg); }
.branch-under-right { width: 32%; right: -7%; bottom: -16%; transform: scaleX(-1) rotate(-31deg); }
.desktop-scene { position: fixed; background: #343d2e; }
.desktop-scene::after { display: none; }
.desktop-art { position: absolute; inset: 28px 28px 104px; overflow: hidden; background: #f7f0df; }
/* Keep the entire portrait illustration visible, including the veranda and courtyard. */
.garden-painting { width: 100%; height: 109%; object-fit: contain; object-position: center bottom; }
.desktop-art::after { content: ''; position: absolute; inset: 12px; border: 1px solid #78694a70; pointer-events: none; }
.desktop-heading { top: 9%; left: 48px; right: 48px; }
.desktop-heading .eyebrow { font-size: 10px; letter-spacing: 3px; }
.desktop-heading h1 { font: 400 clamp(66px, 6.7vw, 114px)/1.1 var(--serif); letter-spacing: -5px; text-shadow: none; margin: 17px 0 13px; }
.desktop-heading h1 span { font: italic .72em var(--serif); margin: 0 2px; }
.desktop-proverb { font: italic 23px/1.4 var(--serif); margin: 12px 0 17px; }
.desktop-date { font: 12px var(--sans); letter-spacing: 4px; }
.desktop-footer { bottom: 33px; left: 37px; right: 37px; color: #e3ddc6; font-size: 9px; letter-spacing: 1.6px; gap: 15px; }
.desktop-footer .footer-monogram { font: 25px var(--serif); white-space: nowrap; }
.footer-monogram i { font-size: 18px; }
.desktop-footer>span:last-child { font: 10px var(--sans); letter-spacing: 1px; }
.desktop-botanicals { bottom: 103px; }
.desktop-botanicals .branch-left { width: min(37%, 32svh); bottom: -8%; left: -5%; }
.desktop-botanicals .branch-right { width: min(36%, 31svh); bottom: -9%; right: -5%; }
.desktop-botanicals .branch-under-left { width: min(30%, 26svh); bottom: -13%; left: 3%; }
.desktop-botanicals .branch-under-right { width: min(29%, 25svh); bottom: -12%; right: 3%; }
.desktop-botanicals .orchid-root-left { width: min(38%, 39svh); bottom: -3%; left: 0; transform: rotate(-5deg); }
.desktop-botanicals .orchid-root-right { width: min(37%, 38svh); bottom: -3%; right: 0; transform: rotate(4deg); }
.cover { position: fixed; background: var(--paper); height: 100svh; min-height: 0; overflow: auto; padding: 64px 20px 28px; }
.cover::before { content: ''; position: absolute; inset: 18px; border: 1px solid #a3916b66; pointer-events: none; }
.cover-folio { position: absolute; top: 30px; left: 35px; right: 35px; display: flex; align-items: center; justify-content: space-between; font-size: 9px; letter-spacing: 1.7px; }
.cover-folio>span:first-child { font: 18px var(--serif); }
.cover-content { width: 100%; padding: 14px 14px 0; margin: 0; z-index: 1; }
.cover .eyebrow { font-size: 10px; letter-spacing: 2px; }
.cover-names { display: flex; align-items: baseline; justify-content: center; gap: 10px; font: 64px/1.1 var(--serif); letter-spacing: -3.5px; margin: 13px 0 18px; }
.cover-names>span { display: inline; }
.cover-names small { font: italic 37px var(--serif); display: inline; margin: 0; }
.cover-vignette { position: relative; width: min(440px, calc(100% - 48px)); height: auto; aspect-ratio: 4 / 3; margin: 18px auto 38px; }
.vignette-window { position: absolute; inset: 0; border-radius: 50% 50% 3px 3px; overflow: hidden; outline: 1px solid #a7976a; outline-offset: 7px; background: #eee8d7; }
.vignette-art { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
/* Keep the free flower silhouette, but trim stems at the picture's baseline. */
.vignette-botanicals { position: absolute; inset: 0; clip-path: inset(-100% -100% 0 -100%); pointer-events: none; }
.vignette-left { width: 40%; left: -13%; bottom: -4%; transform: rotate(-22deg); z-index: 1; }
.vignette-right { width: 38%; right: -11%; bottom: -4%; transform: scaleX(-1) rotate(-24deg); z-index: 1; }
.cover-vignette .orchid-root-left { width: 47%; left: -2%; bottom: -3%; transform: rotate(-4deg); z-index: 2; }
.cover-vignette .orchid-root-right { width: 45%; right: -2%; bottom: -3%; transform: rotate(4deg); z-index: 2; }
.vignette-seal { position: absolute; right: -2%; bottom: -5%; width: clamp(50px, 16%, 68px); height: auto; aspect-ratio: 1; display: grid; place-content: center; border-radius: 50%; border: 1px solid #b09e70; outline: 3px solid var(--paper); background: #615132; color: #f5ecd3; font: 20px var(--serif); grid-auto-flow: column; gap: 2px; transform: rotate(-12deg); z-index: 3; overflow: hidden; transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease; cursor: pointer; }
.vignette-seal:hover { transform: rotate(-6deg) scale(1.08); box-shadow: 0 6px 16px #32281959; }
.vignette-seal:active { transform: rotate(-12deg) scale(0.96); }
.vignette-seal i { font-size: 14px; align-self: center; }
.vignette-seal::after, .centerpiece-seal::after {
  content: ''; position: absolute; top: -60%; left: -150%; width: 200%; height: 220%;
  background: linear-gradient(115deg, transparent 20%, rgba(255,235,180,.35) 45%, rgba(255,255,255,.6) 50%, rgba(255,235,180,.35) 55%, transparent 80%);
  transform: rotate(25deg); pointer-events: none;
  animation: sealSheen 6s infinite ease-in-out;
}
@keyframes sealSheen {
  0%, 75% { transform: translateX(0) rotate(25deg); opacity: 0; }
  80% { opacity: 1; }
  92% { transform: translateX(180%) rotate(25deg); opacity: 1; }
  93%, 100% { transform: translateX(180%) rotate(25deg); opacity: 0; }
}
.cover-date { font: 12px var(--sans); letter-spacing: 2.8px; }
.guest-block {
  position: relative;
  width: min(100%, 360px);
  margin: 25px auto 18px;
  padding: 20px 16px 17px;
  border: 1px solid #b3a48280;
  background: #fffaf040;
  font-size: 11px;
  text-align: center;
}
.guest-ornament {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  background: var(--paper);
  color: #89764f;
  font: 20px/1 var(--serif);
}
.guest-salutation { color: var(--muted); font-size: 10px; letter-spacing: .4px; }
.guest-block #guest-name {
  color: var(--deep);
  font: 400 clamp(24px, 5.8vw, 29px)/1.3 var(--serif);
  margin: 9px 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.guest-message { color: var(--muted); font: italic 13px/1.6 var(--serif); margin: 0; }
.cover-note { font: italic 13px/1.5 var(--serif); margin: 15px auto 0; max-width: 280px; }
.cover .button { font-size: 12px; min-height: 45px; }
.hero { background: #2c3429; min-height: 720px; height: 100svh; padding: 82px 45px 270px; color: var(--paper); }
.hero-topline { position: absolute; left: 30px; right: 30px; top: 25px; display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.hero-topline span:first-child { font: 24px var(--serif); }
.hero-topline span:last-child { font-size: 9px; letter-spacing: 2px; }
.hero-photo { object-position: center 30%; }
.hero-shade { background: linear-gradient(180deg,transparent 43%,#2c342920 54%,#2c3429 72%); pointer-events: none; }
.hero-content { position: absolute; bottom: 88px; left: 20px; right: 20px; z-index: 4; }
.hero-divider { width: 130px; margin: 0 auto 10px; opacity: .85; filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(.9); }
.hero-divider img { display: block; width: 100%; height: auto; }
.hero-content .names-inline { font: 64px/1.08 var(--serif); letter-spacing: -2.5px; margin: 8px 0 12px; }
.hero-content .names-inline span { font-style: italic; }
.hero-date { font: 12.5px var(--sans); letter-spacing: 3px; }
.hero-location { font: italic 19px var(--serif); margin-top: 8px; }
.hero-botanicals .branch-left { width: 44%; bottom: 10%; left: -8%; opacity: .75; }
.hero-botanicals .branch-right { width: 41%; bottom: 7%; right: -8%; opacity: .75; }
.hero-botanicals .branch-under-left { width: 34%; bottom: 9%; left: -5%; opacity: .7; }
.hero-botanicals .branch-under-right { width: 32%; bottom: 7%; right: -5%; opacity: .7; }
.hero-botanicals .orchid-top-left, .hero-botanicals .orchid-top-right { display: none; }
.hero-botanicals .orchid-root-left { width: 40%; bottom: 7%; left: -8%; transform: rotate(-8deg); }
.hero-botanicals .orchid-root-right { width: 39%; bottom: 7%; right: -8%; transform: rotate(7deg); }
.scroll-cue { display: none; }
.opening { background: var(--paper); padding: 85px 38px 105px; min-height: 660px; display: block; overflow: hidden; }
.opening>div.reveal { position: relative; z-index: 3; }
.opening .section-title { font: italic 51px/1.05 var(--serif); letter-spacing: -2px; }
.opening blockquote { font: 30px/1.3 var(--serif); margin: 30px 0; }
.opening blockquote br { display: none; }
.opening .proverb { font-family: var(--script); font-size: 34px; }
.quran-verse { margin: 0; }
.opening .verse-arabic {
  font: 400 clamp(27px, 4.5vw, 32px)/2.15 Amiri, 'Traditional Arabic', serif;
  letter-spacing: normal;
  word-spacing: normal;
  margin: 28px 0 20px;
  text-align: center;
  overflow-wrap: normal;
}
.verse-source { font: 16px/1.6 var(--sans); text-decoration: none; border-bottom: 1px solid #a3916b66; padding-bottom: 4px; }
.verse-source:hover { border-color: currentColor; }
.opening .verse-label { font: 10px/1.6 var(--sans); letter-spacing: 2px; margin: 28px 0 10px; color: var(--muted); }
.opening .verse-meaning { font: 16px/1.9 var(--sans); text-wrap: pretty; }
.quote-botanicals .branch-left { width: 42%; opacity: .24; bottom: -8%; left: -18%; }

.countdown-section { background: #343d2e; padding: 75px 30px; }
.countdown-section::before { inset: 15px; border-color: #d9d2b338; }
.countdown-section::after { display: none; }
.countdown-section .section-title { font: italic 48px/1.1 var(--serif); }
.countdown strong { font-size: 52px; }
.countdown>div { border-top: 0; border-bottom: 0; border-right: 1px solid #d9d2b340; }
.countdown>div:last-child { border-right: 0; }
.events { padding: 75px 35px; background: #f4efdf; }
.events header { margin-bottom: 40px; }
.event-card { background: transparent; border: 0; border-top: 1px solid var(--line); outline: 0; box-shadow: none; margin: 0; padding: 40px 15px 45px; }
.event-card:last-of-type { border-bottom: 1px solid var(--line); }
.event-icon { width: 25px; height: 25px; }
.event-card h3 { font: italic 43px var(--serif); margin-top: 8px; }
.event-date { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: 12px; }
.event-date>span { font: 15px/1.5 var(--sans); }
.event-date>span:first-child { text-align: right; }
.event-date>span:last-child { text-align: left; }
.event-date strong { font-size: 70px; margin: 0; }
.card-rule { margin: 22px auto; width: 26px; }
.event-time { margin-top: 8px; }
.event-sessions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}
.session-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.session-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #ded7c199;
  border: 1px solid #baa88866;
  color: var(--ink);
  font-weight: 600;
}
.event-card .button { background: transparent; color: var(--ink); border-color: #a39678; }
.event-card .button:hover { background: #e4ddc7; }
.story { padding: 70px 38px; background: #e8e4d3; }
.timeline { margin-left: 10px; }
.timeline article { padding-left: 35px; }
.story-number { background: #e8e4d3; border-radius: 0; }
.gallery-section { padding: 70px 24px; }
.gallery-section .section-title { font: italic 47px/1.1 var(--serif); }

/* Dynamic Gallery Slider & Responsive Layout */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 24px;
}
.gallery-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y pinch-zoom;
}
.gallery-track {
  display: flex;
  width: 100%;
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1);
  align-items: start;
}
.gallery-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 4px 2px 8px;
}

/* Compact masonry keeps mixed orientations together within each album page.
   The two-column grid remains usable before JavaScript measures the photos. */
.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  padding: 6px 5px 10px;
}
.gallery-grid.is-packed {
  grid-auto-rows: 1px;
  row-gap: 0;
}
.gallery-grid.count-1 {
  grid-template-columns: minmax(0, 1fr);
  width: 78%;
  max-width: 280px;
  margin-inline: auto;
}
.gallery-grid.has-single-landscape { width: 100%; max-width: none; }
.gallery-grid > :nth-child(4n + 1) { transform: rotate(-2deg); }
.gallery-grid > :nth-child(4n + 2) { transform: rotate(2deg); }
.gallery-grid > :nth-child(4n + 3) { transform: rotate(1.5deg); }
.gallery-grid > :nth-child(4n + 4) { transform: rotate(-1.8deg); }

/* Gallery Item: Polaroid / Keepsake physical photo frame */
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  border: 6px solid #fffdf8;
  border-bottom-width: 15px; /* Authentic physical photo margin */
  box-shadow: 0 8px 22px #3828151c, 0 1px 4px #38281510;
  background: #fffdf8;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: transform .3s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow .3s ease;
}

/* True portrait proportion: 2/3 (matches 1025x1535 with zero cropping) */
.gallery-item.is-portrait {
  aspect-ratio: var(--photo-aspect, 2/3);
}
/* True landscape proportion: 3/2 (matches 1535x1025 with zero cropping) */
.gallery-item.is-landscape {
  aspect-ratio: var(--photo-aspect, 3/2);
}

/* Translucent washi tape accents on scrapbook cards */
.gallery-slide[data-page="1"] .gallery-grid.count-4 > :nth-child(1)::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 22px;
  transform: rotate(-3deg);
  width: 36px;
  height: 13px;
  background: #f5eedab3;
  border-left: 2px dashed #ded4bdcc;
  border-right: 2px dashed #ded4bdcc;
  box-shadow: 0 1px 3px #00000010;
  backdrop-filter: blur(2px);
  z-index: 4;
  pointer-events: none;
}
.gallery-slide[data-page="1"] .gallery-grid.count-4 > :nth-child(4)::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 22px;
  transform: rotate(4deg);
  width: 36px;
  height: 13px;
  background: #f5eedab3;
  border-left: 2px dashed #ded4bdcc;
  border-right: 2px dashed #ded4bdcc;
  box-shadow: 0 1px 3px #00000010;
  backdrop-filter: blur(2px);
  z-index: 4;
  pointer-events: none;
}

/* Keep hover from pulling a photo out of the opening stack. */
.gallery-grid.is-spreading .gallery-item { transition: none; }

/* Tactile hover & focus lift */
.gallery-item:focus-visible {
  transform: rotate(0deg) scale(1.035) !important;
  box-shadow: 0 16px 36px #38281530, 0 3px 8px #38281518;
  outline: 2px solid #b59b6c;
  outline-offset: 3px;
  z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-grid:not(.is-spreading) .gallery-item:hover {
    transform: rotate(0deg) scale(1.035) !important;
    box-shadow: 0 16px 36px #38281530, 0 3px 8px #38281518;
    z-index: 10;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: sepia(.06) saturate(.98);
  transition: transform .4s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}

/* Cue overlay on the 4th photo when 5+ photos exist */
.gallery-slide-cue {
  position: absolute;
  inset: auto 8px 8px auto;
  background: #251d14e0;
  color: #fffaf0;
  padding: 6px 12px;
  border-radius: 20px;
  font: 11px/1.3 var(--sans);
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  border: 1px solid #ffffff33;
  box-shadow: 0 4px 12px #0005;
  pointer-events: none;
  animation: cueFloat 2.4s ease-in-out infinite;
}
.gallery-slide-cue .cue-arrow {
  color: #e2c88d;
  font-weight: 600;
}
@keyframes cueFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Navigation bar below the gallery */
.gallery-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 8px 12px;
  background: #faf4e588;
  border: 1px solid #c9bda577;
  border-radius: 30px;
  backdrop-filter: blur(8px);
}

.gallery-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bba88688;
  background: #fffdf8;
  color: var(--ink);
  font: 500 12px/1 var(--sans);
  letter-spacing: .8px;
  padding: 9px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease, opacity .2s ease;
  box-shadow: 0 2px 6px #0000000d;
}
.gallery-nav-btn .icon {
  width: 14px;
  height: 14px;
}
.gallery-nav-btn:hover:not(:disabled) {
  background: #f2e9d2;
  border-color: #8c7857;
  transform: translateY(-1px);
}
.gallery-nav-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Pulsing effect on "Slide ke kanan" button */
.gallery-nav-btn.pulse-hint {
  background: #49392b;
  color: #fffaf0;
  border-color: #725942;
  animation: nextPulse 2.8s infinite;
}
.gallery-nav-btn.pulse-hint:hover {
  background: #372a1e;
}
@keyframes nextPulse {
  0%, 100% { box-shadow: 0 0 0 0 #8c734b40; }
  50% { box-shadow: 0 0 0 8px #8c734b00; }
}

/* Pagination indicator & dots */
.gallery-slide-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.gallery-slide-text {
  font: italic 13px/1 var(--serif);
  color: #6d5b45;
  letter-spacing: 1px;
}
.gallery-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #8c7857;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all .25s ease;
}
.gallery-dot.active {
  background: #503d2b;
  width: 18px;
  border-radius: 10px;
}

.gallery-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted, #725e46);
  font-style: italic;
  text-align: center;
  letter-spacing: .3px;
}

/* Lightbox framing matching the Serambi classical aesthetic */
#lightbox::backdrop { background: #14120ff5; backdrop-filter: blur(8px); }
#lightbox figure { margin: 20px auto; max-width: min(92vw, 720px); display: flex; flex-direction: column; align-items: center; }
#lightbox img { border: 5px solid #fffaf0; box-shadow: 0 12px 45px #000c; border-radius: 2px; max-height: 75vh; }
#lightbox figcaption { font: italic 16px/1.4 var(--serif); color: #f0e6d2; margin-top: 14px; letter-spacing: 1.5px; }
#lightbox button { display: grid; place-items: center; padding: 0; line-height: 1; background: #27211acc; border: 1px solid #d4c5a566; color: #fbf7ee; backdrop-filter: blur(6px); transition: background .2s ease, border-color .2s ease, transform .15s ease; }
#lightbox button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#lightbox button:hover { background: #45372bcc; border-color: #f0e2c5; transform: scale(1.05); }
.gift-section { background: #ddd6bf; border: 0; padding: 65px 35px; }
.rsvp-section { padding-top: 75px; }
input, select, textarea { background: #fffcf366; border-color: #b6ad91; }
.closing { background: #e8e4d3; padding: 65px 30px 335px; overflow: hidden; }
.closing::after { content: ''; position: absolute; left: 0; right: 0; bottom: 65px; height: 230px; background: url('assets/serambi-garden.webp') center 78%/cover; opacity: .75; -webkit-mask-image: linear-gradient(transparent,#000 45%); mask-image: linear-gradient(transparent,#000 45%); z-index: -1; }
.closing>div.reveal { position: relative; z-index: 3; }
.closing .names-inline { font: 48px var(--serif); letter-spacing: -1px; }
.closing-credit { bottom: 104px; font-size: 9px; z-index: 3; padding: 8px; background: #f4efdfc9; }
.closing-botanicals .branch-left { width: 41%; bottom: 80px; }
.closing-botanicals .branch-right { width: 41%; bottom: 85px; }
.closing-botanicals .branch-under-left { bottom: 68px; }
.closing-botanicals .branch-under-right { bottom: 70px; }
.closing-botanicals .orchid-root-left { width: 49%; bottom: 72px; left: -7%; transform: rotate(-5deg); }
.closing-botanicals .orchid-root-right { width: 47%; bottom: 74px; right: -7%; transform: rotate(5deg); }
/* ========================================================
   Redesigned Luxury Bottom Navigation Bar
   ======================================================== */
.bottom-nav[hidden] {
  display: none !important;
}

.bottom-nav {
  position: fixed;
  bottom: 22px;
  right: calc(var(--column) / 2);
  transform: translateX(50%);
  width: min(440px, calc(var(--column) - 40px));
  height: 64px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background: rgba(250, 246, 236, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(187, 165, 127, 0.45);
  border-radius: 36px;
  box-shadow:
    0 14px 34px -4px rgba(44, 34, 21, 0.16),
    0 3px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  animation: navFloatIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes navFloatIn {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }
}

.bottom-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 4px 2px 6px;
  text-decoration: none;
  color: #7d725f;
  border-radius: 22px;
  gap: 3px;
  cursor: pointer;
  transition:
    color 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.bottom-nav a .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    stroke 0.25s ease,
    filter 0.25s ease;
}

.bottom-nav a span {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.8px;
  transition:
    color 0.25s ease,
    font-weight 0.2s ease;
}

@media (hover: hover) {
  .bottom-nav a:hover {
    color: #433626;
  }
  .bottom-nav a:hover .icon {
    transform: translateY(-2px);
  }
}

.bottom-nav a.active {
  color: #3f4e34;
}

.bottom-nav a.active span {
  font-weight: 600;
  color: #34402a;
}

.bottom-nav a.active .icon {
  transform: translateY(-2px) scale(1.08);
  stroke: #3f4e34;
  filter: drop-shadow(0 2px 4px rgba(63, 78, 52, 0.25));
}

.bottom-nav a.active::before {
  content: '';
  position: absolute;
  inset: 4px 2px;
  border-radius: 18px;
  background: rgba(80, 93, 67, 0.09);
  border: 1px solid rgba(187, 165, 127, 0.3);
  z-index: -1;
  animation: pillPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pillPop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.bottom-nav a.active:after {
  display: none !important;
}

.nav-indicator {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #445439, #8c7950);
  box-shadow: 0 0 6px rgba(187, 165, 127, 0.9), 0 1px 2px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s ease;
  will-change: transform;
}
.music-toggle { z-index: 40; background: #343d2ee8; transition: bottom .3s, right .3s, opacity .3s; }
.ambient-toggle { position: fixed; z-index: 40; right: 18px; bottom: 145px; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #b7aa85; border-radius: 50%; color: var(--ink); background: #f4efdfef; transition: bottom .3s, right .3s, opacity .3s; }
.ambient-toggle .icon { width: 19px; height: 19px; }
.ambient-toggle[aria-pressed="false"] { opacity: .65; }
.is-closed .ambient-toggle { bottom: 24px; right: 25px; }
.is-closed .music-toggle { bottom: 24px; right: 72px; }

@media(min-width:1600px) {
  .cover-names { font-size: 78px; }
  .desktop-heading { top: 10%; }
  .hero-photo { max-width: 410px; margin: auto; }
}
@media(max-width:1100px) and (min-width:761px) {
  :root { --column: 460px; }
  .desktop-art { inset: 18px 18px 100px; }
  .desktop-heading { top: 10%; left: 35px; right: 35px; }
  .desktop-heading h1 { font-size: 65px; letter-spacing: -3px; }
  .desktop-heading .eyebrow { letter-spacing: 1.5px; }
  .desktop-proverb { font-size: 20px; }
  .desktop-footer { left: 25px; right: 25px; }
  .desktop-footer>span:last-child { display: none; }
}
@media(max-width:760px) {
  :root { --column: 100%; }
  .cover { width: 100%; max-width: 520px; padding: 60px 16px 24px; }
  .cover-content { margin: 0; padding: 13px 12px 0; }
  .cover-names { font-size: 61px; margin: 14px 0 23px; }
  .guest-block { margin-top: 24px; }
  .cover-folio { left: 30px; right: 30px; font-size: 8px; }
  .cover::before { inset: 15px; }
  .hero { padding: 80px 35px 270px; min-height: 690px; }
  .hero-content .names-inline { font-size: 61px; }
  .opening { padding: 70px 32px 90px; }
  .opening .section-title { font-size: 46px; }
  .opening blockquote { font-size: 27px; }
  .ambient-toggle { right: max(16px,calc((100vw - 490px)/2)); bottom: 139px; }
  .is-closed .ambient-toggle { right: max(23px,calc((100vw - 474px)/2)); bottom: 24px; width: 32px; height: 32px; }
  .is-closed .music-toggle { right: calc(max(23px,calc((100vw - 474px)/2)) + 40px); bottom: 24px; width: 32px; height: 32px; }
}
@media(max-width:360px) {
  .bottom-nav { width: calc(100% - 16px); height: 56px; padding: 2px 4px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav a { height: 48px; }
  .bottom-nav a .icon { width: 17px; height: 17px; }
  .bottom-nav a span { font-size: 8.5px; letter-spacing: 0.2px; }
  .cover-names { font-size: 52px; gap: 6px; }
  .cover-names small { font-size: 31px; }
  .section-title, .couple .section-title { font-size: 43px; }
  .event-date { grid-template-columns: 1fr 62px 1fr; gap: 7px; }
  .event-date>span { font-size: 13px; }
  .event-date strong { font-size: 61px; }
  .events { padding-inline: 25px; }
  .cover-folio { font-size: 7px; letter-spacing: 1px; }
  .cover-note { font-size: 12px; max-width: 225px; }
}
@media(max-height:740px) {
  .cover { align-items: flex-start; padding-top: 52px; }
  .cover-content { padding-top: 0; }
  .cover-names { font-size: 58px; margin: 8px 0 14px; }
  .cover .eyebrow { font-size: 9.5px; }
  .guest-block { margin: 16px auto 14px; }
  .cover-note { display: block; margin-top: 10px; font-size: 11px; }
  .desktop-heading h1 { font-size: 65px; }
  .desktop-heading { top: 8%; }
  .desktop-proverb { font-size: 19px; margin: 7px 0 12px; }
}
@media(max-height:620px) {
  .cover { padding-top: 42px; }
  .cover-names { font-size: 50px; margin: 6px 0 10px; }
  .guest-block { margin: 12px auto 10px; }
}

/* Hero frame stage holds the arched photo and hugging floral decorations */
.hero-frame-stage {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 410px;
  margin: auto;
  z-index: 2;
}

.hero-slideshow {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 180px 180px 0 0;
  overflow: hidden;
  border: 1px solid #e4d9b966;
  outline: 1px solid #e4d9b940;
  outline-offset: 7px;
  box-shadow: 0 16px 45px #00000055;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.hero-arch-garland {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.hero-arch-garland .arch-floral {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px #00000055) saturate(.78) sepia(.1);
}
.hero-arch-garland .arch-floral--left {
  top: -24px;
  left: -28px;
  width: clamp(110px, 34%, 150px);
}
.hero-arch-garland .arch-floral--right {
  top: -24px;
  right: -28px;
  width: clamp(110px, 34%, 150px);
}

.hero-arch-garland .arch-flank {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px #00000045) saturate(.75) sepia(.1);
}
.hero-arch-garland .arch-flank--left {
  top: 95px;
  left: -34px;
  width: clamp(100px, 29%, 130px);
}
.hero-arch-garland .arch-flank--right {
  top: 95px;
  right: -34px;
  width: clamp(100px, 29%, 130px);
}

.hero-arch-crest {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  background: #252e22;
  border: 1px solid #d8ca9f;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  font: 10px/1 var(--sans);
  letter-spacing: 2.2px;
  color: #f7f1df;
  white-space: nowrap;
  pointer-events: none;
}
.hero-photo-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  filter: sepia(.28) saturate(.7);
  transform: translateZ(0);
  pointer-events: none;
}
.hero-slideshow .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  opacity: 0;
  object-fit: cover;
  object-position: center 30%;
  transform-origin: 50% 35%;
  filter: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  image-rendering: auto;
  pointer-events: auto;
  transition: none !important;
}
.hero-slideshow .hero-photo.is-current { opacity: 1; }
.photo-selectors { position: absolute; left: 0; right: 0; top: 16px; z-index: 4; display: flex; justify-content: center; }
.photo-selectors button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.photo-selectors button::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f4efdf80; border: 1px solid #f4efdf; box-shadow: 0 1px 4px #0008; }
.photo-selectors button[aria-pressed="true"]::after { background: #f4efdf; }
.photo-selectors button:focus-visible { outline: 2px solid #f4efdf; outline-offset: -5px; }
.falling-leaves { position: fixed; top: 0; right: 0; bottom: 0; width: var(--column); overflow: hidden; pointer-events: none; z-index: 31; contain: strict; }
.falling-leaf { position: absolute; top: 0; left: 0; width: 22px; height: auto; opacity: 0; filter: saturate(.7); }
@media(max-width:760px) { .falling-leaves { width: min(100%, 520px); right: auto; left: 50%; transform: translateX(-50%); } }
@media(prefers-reduced-motion:reduce) { .falling-leaves { display: none; } }

/* ScrollTrigger controls the gallery transforms without hover interpolation. */
.gallery-item img { transition: none; filter: sepia(.08) saturate(.98); }
.gallery-item:hover img { transform: none; }


/* The ceremony and reception sit inside botanical stationery frames. */
.events { position: relative; isolation: isolate; overflow: hidden; padding-top: 96px; padding-bottom: 65px; background: #eee9d9; }
.event-canopy { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.event-canopy .event-canopy-left { width: 155px; top: -18px; left: -30px; opacity: .75; }
.event-canopy .event-canopy-right { width: 145px; top: -10px; right: -30px; opacity: .7; }
.events > .section-index { margin-bottom: 30px; }
.events header { position: relative; margin-bottom: 42px; }
.events .event-card { position: relative; isolation: isolate; margin: 0 0 28px; padding: 48px 25px 58px; border: 1px solid #b5a781; border-radius: 130px 130px 8px 8px; background: #faf6e9; box-shadow: 0 12px 28px #493c2e08; }
.events .event-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid #b5a78166; border-radius: 122px 122px 3px 3px; pointer-events: none; z-index: -1; }
.events .event-card:last-of-type { background: #e5e7da; border-bottom: 1px solid #b5a781; }
.event-florals { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1; }
.event-florals .event-bloom-left { width: min(39%, 155px); bottom: -12px; left: -18px; opacity: .9; }
.event-florals .event-bloom-right { width: min(37%, 148px); bottom: -16px; right: -20px; opacity: .85; }
.events .event-icon {
  display: block;
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 14px;
  margin: 0 auto 18px;
  border: 1px solid #b5a781;
  border-radius: 50%;
  color: #f4efdf;
  background: #515d43;
}
.events .event-card h3 {
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}
.events .event-sub {
  font: italic 18px/1.3 var(--serif);
  color: #515d43;
  margin: -6px 0 16px;
  letter-spacing: 0.5px;
}
.events .event-date strong {
  color: #515d43;
}
.events .card-rule {
  width: 52px;
  height: 1px;
  background: #a89b75;
  margin: 22px auto 20px;
}
.events .event-card h4 {
  font: 23px/1.35 var(--serif);
  margin: 0 0 6px;
  color: #2e261a;
}
.venue-address {
  font-size: 13.5px;
  line-height: 1.65;
  color: #574b3a;
  max-width: 320px;
  margin: 0 auto;
}
.card-action {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.card-action .button {
  background: #faf6e9;
  border-color: #a39678;
  position: relative;
  margin: 0;
}
.card-action .button:hover {
  background: #e4ddc7;
}
#event-reception {
  background: #e7eadc;
  border-bottom: 1px solid #b5a781;
}
#event-reception .card-action .button {
  background: #e7eadc;
  border-color: #929d84;
}
#event-reception .card-action .button:hover {
  background: #d8decd;
}
.event-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}
.event-qr-box .qr-link {
  display: block;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #b5a781;
  border-radius: 12px;
  box-shadow: 0 4px 14px #48392512;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
  text-decoration: none;
}
.event-qr-box .qr-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #48392520;
}
.event-qr-box .qr-image {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  background: #ffffff;
}
.event-qr-box .qr-caption {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #716450;
}
@media(max-width:360px) {
  .events { padding-left: 18px; padding-right: 18px; }
  .events .event-card { padding-left: 15px; padding-right: 15px; }
  .events .event-date { grid-template-columns: 1fr 65px 1fr; gap: 7px; }
  .event-canopy .event-canopy-left { width: 130px; }
  .event-canopy .event-canopy-right { width: 120px; }
}

/* ==========================================================================
   Sang Mempelai (The Couple) — Serambi Royal Stationery Edition
   ========================================================================== */
.couple {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 85px 22px 85px;
  background: #ede8d8 url('assets/paper.webp') center/400px;
  color: var(--ink);
  text-align: center;
}
.couple > .section-index {
  margin-bottom: 20px;
}
.couple header {
  position: relative;
  z-index: 3;
  margin-bottom: 38px;
}
.couple .section-title {
  font-size: clamp(45px, 9.5vw, 56px);
  margin: 10px 0 14px;
}
.couple-divider-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px auto 16px;
}
.couple-ornament-divider {
  width: 170px;
  height: auto;
  opacity: .85;
  filter: drop-shadow(0 1px 2px #493c2e15);
}
.couple-lead {
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 320px;
  margin: 0 auto;
}

/* Background botanical ambiance */
.couple-botanicals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.couple-branch-top-left {
  width: min(34%, 180px);
  top: -15px;
  left: -25px;
  opacity: .85;
}
.couple-branch-top-right {
  width: min(32%, 170px);
  top: -10px;
  right: -25px;
  opacity: .85;
}

/* Profile Cards Container */
.couple-profiles {
  position: relative;
  z-index: 3;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Stationery Card for Groom & Bride */
.person-card-frame {
  position: relative;
  isolation: isolate;
  background: #faf7ee;
  border: 1px solid #c8baa0;
  border-radius: 170px 170px 18px 18px;
  padding: 38px 24px 42px;
  box-shadow: 0 16px 40px #343d2e12, 0 2px 8px #343d2e08;
  transition: transform .4s ease, box-shadow .4s ease;
}
.person-card-frame::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid #c8baa066;
  border-radius: 162px 162px 12px 12px;
  pointer-events: none;
}
.person-card-frame::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed #c8baa038;
  border-radius: 156px 156px 8px 8px;
  pointer-events: none;
}

/* Role Badge */
.person-role-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 5px 16px;
  background: #f1ebd8;
  border: 1px solid #d2c5a8;
  border-radius: 20px;
}
.person-role-tag .profile-label {
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 500;
  color: #635740;
  margin: 0;
}
.person-role-tag .role-gem {
  font-size: 8px;
  color: #a4916a;
}

/* Portrait Stage & Framing — Royal Arch Passe-Partout */
.portrait-stage {
  position: relative;
  width: min(235px, 80%);
  margin: 0 auto 26px;
  padding: 6px;
  background: #fdfbf7;
  border: 1px solid #c4b596;
  border-radius: 125px 125px 10px 10px;
  box-shadow: 0 14px 34px #261f171c;
}
.portrait-stage .portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 119px 119px 5px 5px;
  overflow: hidden;
  border: 1px solid #bba886;
  background: #e7dfcb;
  margin: 0;
  padding: 0;
}
.portrait-stage .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: sepia(.08) saturate(.98);
  transition: transform .7s ease;
}
.person-card-frame:hover .portrait img {
  transform: scale(1.03);
}
.portrait-inner-frame {
  position: absolute;
  inset: 5px;
  border: 1px solid #ffffff55;
  border-radius: 114px 114px 2px 2px;
  pointer-events: none;
}

/* Person Information */
.person-info {
  position: relative;
}
.person-nick {
  font: 56px/1.15 var(--script);
  color: #433626;
  margin: 0 0 6px;
  text-shadow: 0 1px 2px #fff6;
}
.person-info .full-name {
  font: 24px/1.3 var(--serif);
  letter-spacing: .5px;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 500;
}
.person-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 16px;
  width: 120px;
}
.person-rule span {
  flex: 1;
  height: 1px;
  background: #c3b596;
}
.person-rule i {
  font-style: normal;
  font-size: 9px;
  color: #a4916a;
}
.parents-intro {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7b7460;
  margin: 0 0 5px;
}
.couple .parents {
  font: 14px/1.85 var(--sans);
  color: #493c2e;
  margin: 0;
  padding: 0;
  border: 0;
}
.couple .parents strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: #3b2f20;
}

/* Centerpiece between Groom and Bride */
.couple-centerpiece {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 6px 0 10px;
  z-index: 4;
}
.centerpiece-graphic {
  position: relative;
  display: grid;
  place-items: center;
}
.centerpiece-bouquet {
  width: 98px;
  height: auto;
  opacity: .9;
  filter: drop-shadow(0 4px 10px #3428171f);
}
.centerpiece-seal {
  position: absolute;
  top: calc(38.5% - 22px);
  left: calc(45% - 22px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #505d43;
  color: #f7f3e6;
  border: 1px solid #bba57f;
  outline: 3px solid #faf7ee;
  box-shadow: 0 4px 12px #261f1725;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.centerpiece-amp {
  font-size: 26px;
  line-height: 1;
  font-style: italic;
  margin-top: -2px;
}
.centerpiece-quote {
  font: italic 13px/1.6 var(--serif);
  letter-spacing: 2px;
  color: #6d644f;
  margin-top: 10px;
}

@media(max-width:360px) {
  .couple { padding-left: 14px; padding-right: 14px; }
  .person-card-frame { padding: 32px 16px 36px; border-radius: 140px 140px 14px 14px; }
  .portrait-stage { width: min(205px, 82%); }
  .person-nick { font-size: 48px; }
  .person-info .full-name { font-size: 21px; }
}

/* Motion keeps decorative pivots separate from layout and entrance transforms. */
body.is-opening { overflow: hidden; }
.is-opening #cover { pointer-events: none; }
.centerpiece-bouquet { transform-origin: 50% 90%; }
.couple-branch-top-left .wind-branch { transform-origin: 2% 3%; }
.couple-branch-top-right .wind-branch { transform-origin: 98% 2%; }
.timeline { border-left-color: transparent; --story-progress: 0; }
.timeline::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, #b19b77, #72573b);
  transform-origin: top; transform: scaleY(var(--story-progress));
  will-change: transform;
}
.story-number {
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .3s, border-color .3s, box-shadow .3s, color .3s;
}
.timeline article.is-active .story-number {
  border-color: #615132; background: #fbf7ee; color: #3b2c1b;
  box-shadow: 0 0 0 4px #b19b7735, 0 3px 8px #0000001a;
  transform: scale(1.1); font-weight: 600;
}
.countdown > div {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease, border-color .3s ease;
}
.countdown > div:hover {
  transform: translateY(-2px); background: rgba(255,255,255,.04);
}
.countdown strong {
  display: inline-block; will-change: transform, opacity;
}
html[data-ambient-motion="paused"] .scroll-cue i::after,
html[data-ambient-motion="paused"] .music-toggle { animation-play-state: paused; }

/* Phone layouts follow document flow, including with the browser toolbar open. */
@media(max-width:760px) {
  .cover { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; height: 100svh; padding: 30px 25px 68px; gap: 25px; }
  .cover-folio { position: relative; inset: auto; flex: 0 0 auto; gap: 10px; font-size: 8px; letter-spacing: 1px; min-height: 23px; }
  .cover-folio > span:nth-child(2) { text-align: center; }
  .cover-content { flex: 0 0 auto; width: 100%; margin: auto 0; padding: 0; }
  .cover .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
  .cover-names { font-size: clamp(42px, 12vw, 62px); gap: 7px; letter-spacing: -2px; margin: 12px 0 24px; white-space: nowrap; }
  .cover-names small { font-size: .6em; }
  .cover-vignette { width: min(360px, calc(100% - 42px)); margin: 18px auto 30px; }
  .cover-date { font-size: 12px; letter-spacing: 2px; }
  .cover .guest-block { margin: 20px auto 16px; }
  .cover-note { display: block; font-size: 13px; margin-top: 15px; }
  .hero { height: auto; min-height: 100svh; padding: 20px 20px calc(108px + env(safe-area-inset-bottom, 0px)); }
  .hero-topline { position: relative; inset: auto; gap: 14px; margin-bottom: 22px; }
  .hero-topline span:first-child { font-size: 22px; white-space: nowrap; }
  .hero-topline span:last-child { font-size: 8px; letter-spacing: 1.2px; text-align: right; }
  .hero-frame-stage { width: 78%; max-width: 380px; height: clamp(230px, calc(100svh - 310px), 520px); margin: 0 auto; }
  .hero-content { position: relative; inset: auto; margin: -4px auto 0; padding: 0; width: 100%; }
  .hero-divider { width: 105px; margin-bottom: 4px; }
  .hero-content .eyebrow { font-size: 10px; letter-spacing: 2px; }
  .hero-content .names-inline { font-size: clamp(34px, 10.5vw, 55px); letter-spacing: -1.7px; line-height: 1.15; white-space: nowrap; margin: 4px 0 6px; }
  .hero-content .names-inline span { margin: 0 3px; }
  .hero-date { font-size: 12px; letter-spacing: 2.4px; }
  .hero-location { font-size: 17px; margin-top: 3px; }
  .hero .scroll-cue { display: none; }
  .hero .scroll-cue i { display: none; }
  .hero-arch-garland .arch-floral--right { width: clamp(80px, 35%, 125px); top: -15px; right: -20px; }
  .hero-botanicals .branch-left { width: 60%; left: -24%; bottom: 12%; opacity: .9; }
  .hero-botanicals .branch-right { width: 58%; right: -23%; bottom: 12%; opacity: .9; }
  .hero-botanicals .orchid-root-left, .hero-botanicals .orchid-root-right { width: 43%; opacity: .9; bottom: 0; }
  .bottom-nav {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 24px));
    height: 60px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 3px 6px;
    border-radius: 32px;
    animation-name: navFloatInMobile;
  }
  @keyframes navFloatInMobile {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
  .bottom-nav a {
    min-width: 0;
    flex: 1;
    height: 52px;
    padding: 3px 2px 5px;
    border-radius: 20px;
    gap: 2px;
  }
  .bottom-nav a .icon {
    width: 19px;
    height: 19px;
  }
  .bottom-nav a span {
    font-size: 9.5px;
    letter-spacing: 0.5px;
  }
  .bottom-nav a.active::before {
    inset: 3px 2px;
    border-radius: 18px;
  }
  .nav-indicator {
    bottom: 5px;
  }
  .music-toggle, .ambient-toggle { width: 38px; height: 38px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .music-toggle { right: max(16px, calc((100vw - 488px)/2)); }
  .ambient-toggle { right: max(16px, calc((100vw - 488px)/2)); bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
  .is-closed .ambient-toggle { right: max(23px, calc((100vw - 474px)/2)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .is-closed .music-toggle { right: calc(max(23px, calc((100vw - 474px)/2)) + 40px); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 32px; height: 32px; }
}

@media(max-width:760px) and (max-height:620px) {
  .hero .scroll-cue { display: none; }
}

@media(max-width:760px) {
  .hero-slideshow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: linear-gradient(transparent, #2c3429); z-index: 3; pointer-events: none; }
}

/* Wish list scrollable card container & side slide-in animation */
.wish-list-wrapper {
  margin-top: 26px;
  position: relative;
  text-align: left;
}

.wish-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 8px 4px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.wish-count-badge {
  font-weight: 600;
  color: #4a3a2a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .03em;
}
.wish-count-badge::before {
  content: "✦";
  color: #b79758;
  font-size: 12px;
}

.wish-scroll-hint {
  font-size: 11px;
  color: #8c7352;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.wish-list {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px;
  background: #fbf7ee;
  border: 1px solid #d4c2a5;
  border-radius: 8px;
  box-shadow: inset 0 2px 6px rgba(70, 50, 25, 0.05), 0 4px 14px rgba(60, 45, 25, 0.03);
  scrollbar-width: thin;
  scrollbar-color: #b69c73 transparent;
  scroll-behavior: smooth;
  position: relative;
}
.wish-list::-webkit-scrollbar {
  width: 6px;
}
.wish-list::-webkit-scrollbar-track {
  background: rgba(220, 205, 180, 0.2);
  border-radius: 10px;
}
.wish-list::-webkit-scrollbar-thumb {
  background: #c3ae8e;
  border-radius: 10px;
}
.wish-list::-webkit-scrollbar-thumb:hover {
  background: #9d825c;
}

.wish-item {
  padding: 15px 16px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #e3d5be;
  border-left: 4px solid #b79758;
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(70, 50, 25, 0.05);
  text-align: left;
  position: relative;
  opacity: 0;
  transform: translateX(-72px) scale(0.95);
  filter: blur(2px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.68s cubic-bezier(0.2, 1.15, 0.35, 1), filter 0.6s ease, box-shadow 0.25s ease;
  transition-delay: var(--item-delay, 0s);
  will-change: transform, opacity, filter;
}
.wish-item:last-child {
  margin-bottom: 0;
}
.wish-item.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}
.wish-item:hover {
  box-shadow: 0 5px 14px rgba(70, 50, 25, 0.09);
  border-color: #cbba9d;
  border-left-color: #9d7d42;
}

.wish-item .wish-avatar {
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.34, 1.45, 0.64, 1);
  transition-delay: calc(var(--item-delay, 0s) + 0.12s);
}
.wish-item.is-visible .wish-avatar {
  transform: scale(1);
}

.wish-header { display: flex; align-items: center; gap: 11px; }
.wish-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #f4e8d3, #e5cfac);
  border: 1px solid #c8b392;
  color: #4a341e; font: 600 15px/1 var(--serif);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(70, 50, 25, 0.08);
}
.wish-meta h3 { font: 600 16px/1.3 var(--serif); letter-spacing: .4px; margin: 0; color: #2e261d; }
.wish-meta time { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.wish-item p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 9px;
  color: #3e372e;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
}

@media (max-width: 600px) {
  .wish-list { max-height: 330px; padding: 12px 10px; }
  .wish-item { padding: 13px 14px; transform: translateX(-50px) scale(0.96); }
  .wish-item p { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .wish-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .wish-item .wish-avatar {
    transform: none !important;
    transition: none !important;
  }
}

/* Keep the invitation cover within the viewport; artwork yields space to the guest and action. */
.cover {
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: max(24px, env(safe-area-inset-top)) 30px max(64px, env(safe-area-inset-bottom));
  gap: clamp(8px, 2svh, 18px);
}
.cover .cover-folio {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  min-height: 20px;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 1.3px;
}
.cover .cover-content {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  justify-items: center;
  align-items: center;
  gap: clamp(8px, 1.8svh, 16px);
}
.cover .eyebrow { margin: 0; font-size: 9px; letter-spacing: 1.6px; }
.cover .cover-names {
  margin: 0;
  font-size: clamp(32px, min(7svh, 11vw), 62px);
  line-height: 1.05;
  letter-spacing: -2px;
  gap: 7px;
  white-space: nowrap;
}
.cover .cover-names small { font-size: .6em; }
.cover .cover-vignette {
  width: min(400px, calc(100% - 32px), 48svh);
  height: 100%;
  max-height: 38svh;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  align-self: center;
}
.cover .vignette-seal { width: clamp(36px, 7svh, 56px); font-size: 16px; }
.cover .cover-date { margin: 0; font-size: 10px; letter-spacing: 2px; }
.cover .guest-block {
  width: min(100%, 340px);
  margin: 4px 0 0;
  padding: 13px 12px 10px;
  background: transparent;
  border-inline: 0;
  border-bottom: 0;
}
.cover .guest-salutation { margin: 0; font-size: 10px; }
.cover .guest-block #guest-name {
  margin: 5px 0;
  font-size: clamp(20px, 3.3svh, 27px);
  line-height: 1.15;
}
.cover .guest-message { font-size: 12px; line-height: 1.4; }
.cover #open-invitation { min-height: 44px; padding: 11px 24px; margin: 0; }
.cover .cover-note { display: none; }
@media (max-height: 650px) {
  .cover { padding-top: 18px; padding-bottom: 58px; gap: 8px; }
  .cover .cover-content { gap: 8px; }
  .cover .guest-message { display: none; }
  .cover .cover-vignette { max-height: 32svh; }
  .cover .guest-block { padding-top: 10px; padding-bottom: 0; }
}
@media (max-height: 430px) {
  .cover .cover-vignette, .cover .eyebrow { display: none; }
  .cover .cover-content { grid-template-rows: auto auto auto auto; align-content: center; }
  .cover .cover-names { font-size: 32px; }
  .cover .cover-folio { min-height: 16px; }
}
