/* Pastel Storybook Theme */
:root {
  --cream: #fff8f0;
  --peach: #faead7;
  --ink: #4a342c;
  --ink-soft: #6d5045;
  --rose: #984452;
  --wheat: #edd58d;
  --blush: #f4a9a8;
  --line: #cdab8e;
  --frame: min(100vw, calc(100svh * .5625));
  /* How far the crest reaches above the scene. The hero grows by this so the
     crest clears the fold, and anything anchored to the fold adds it back. */
  --crest: 3.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Outranks any display a class sets, so [hidden] always hides */
[hidden] { display: none !important; }

body {
  font-family: 'Quicksand', system-ui, sans-serif;
  /* Matches the cover surround, which shows either side of the column on desktop */
  background-color: #241812;
  color: var(--ink);
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

/* Hidden without display:none, which would break the <use> references */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Cover */
#cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  background-color: #241812;
}

.cv-stage {
  position: relative;
  width: var(--frame);
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(36, 24, 18, .55);
}

.cv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 1.6s ease, transform 1.6s ease;
}

.cv-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(46, 28, 22, .58), rgba(46, 28, 22, 0) 42%),
    linear-gradient(rgba(46, 28, 22, 0) 46%, rgba(46, 28, 22, .68));
  transition: opacity .8s ease;
}

.cv-head, .cv-foot {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 1.6rem;
  text-align: center;
  color: #fff;
  transition: opacity .6s ease, transform .6s ease;
}

.cv-head { top: 3.4rem; }
.cv-foot { bottom: 3rem; }

.cv-eyebrow {
  font-size: .74rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .92;
  text-shadow: 0 1px 6px rgba(36, 24, 18, .6);
}

.cv-names {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 10vw, 2.9rem);
  line-height: 1.15;
  margin-top: .5rem;
  text-shadow: 0 2px 14px rgba(36, 24, 18, .55);
}

.cv-amp { color: var(--wheat); font-weight: 400; }

.cv-date {
  margin-top: .55rem;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-shadow: 0 1px 8px rgba(36, 24, 18, .6);
}

.cv-to {
  font-size: .74rem;
  letter-spacing: .1em;
  opacity: .9;
  text-shadow: 0 1px 6px rgba(36, 24, 18, .7);
}

.cv-guest {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.22rem;
  font-weight: 500;
  margin-top: .3rem;
  text-shadow: 0 2px 10px rgba(36, 24, 18, .6);
}

.cv-btn {
  margin-top: 1.5rem;
  padding: .85rem 2.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: .98rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(36, 24, 18, .38);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cv-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(36, 24, 18, .45); }

#cover.playing .cv-veil { opacity: 0; }

#cover.playing .cv-head,
#cover.playing .cv-foot {
  opacity: 0;
  transform: translateY(.6rem);
  pointer-events: none;
}

.cv-skip {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  padding: .5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 24, 18, .5);
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  animation: cv-skip-in .5s ease 1.6s forwards;
}

/* Another animation, not a plain declaration: an animated value outranks one */
.cv-skip.going {
  animation: cv-skip-out .34s ease forwards;
  pointer-events: none;
}

@keyframes cv-skip-in { to { opacity: 1; } }

/* from is explicit: replacing the entrance animation drops the value it was
   holding, so an implicit from would resolve to the base opacity of 0 */
@keyframes cv-skip-out {
  from { opacity: 1; scale: 1; }
  to { opacity: 0; scale: .8; }
}

/* The clip goes soft and the page arrives over it, so the two never cut */
#cover.settling { z-index: 0; }
#cover.settling .cv-video {
  filter: blur(22px) saturate(1.15) brightness(.9);
  transform: scale(1.12);
}
#cover.settling .cv-veil { opacity: 0; }

/* Hero */
#content {
  position: relative;
  z-index: 1;
  /* Same column as the cover stage, so the page never widens past the clip */
  width: var(--frame);
  margin: 0 auto;
  /* Stickers hang past this edge on purpose. clip rather than hidden, so the
     column trims them without becoming a scroll container. */
  overflow: clip;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.arrived #content { opacity: 1; }

.hero {
  position: relative;
  min-height: calc(100svh + var(--crest));
  display: flex;
  align-items: center;
  justify-content: center;
  /* The extra height is all padding below, so the card stays where it was */
  padding: 5rem 1.4rem calc(4rem + var(--crest));
}

/* Cut like one of the stickers: cream fill inside a thick white die line */
.hero-card {
  position: relative;
  width: min(100%, 21rem);
  /* Top pad clears the 7.43rem sticker hanging 4.4rem above the edge */
  padding: 4.8rem 1.6rem 2.2rem;
  text-align: center;
  border-radius: 2.4rem;
  background: var(--cream);
  border: 7px solid #fff;
  box-shadow: 0 20px 50px rgba(36, 24, 18, .34);
  opacity: 0;
  transform: translateY(1.8rem) scale(.94);
  transition:
    transform .85s cubic-bezier(.32, 1.42, .5, 1) .3s,
    opacity .6s ease .3s;
}

body.arrived .hero-card { opacity: 1; transform: none; }

/* Lands after the card has settled, so it reads as being stuck on */
.hero-sticker {
  position: absolute;
  left: 50%;
  top: -4.4rem;
  width: 8.2rem;
  translate: -50% 0;
  transform-origin: 50% 100%;
  pointer-events: none;
  opacity: 0;
  scale: .72;
  transition:
    scale .6s cubic-bezier(.3, 1.7, .5, 1) .85s,
    opacity .3s ease .85s;
}

body.arrived .hero-sticker { opacity: 1; scale: 1; }

.hero-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rose);
}

.hero-names {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  line-height: 1.15;
  margin-top: .45rem;
}

.amp { color: var(--rose); font-weight: 400; }

.hero-date {
  margin-top: .5rem;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cd {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
  margin: 1.4rem 0;
}

.cd-tile {
  padding: .65rem .2rem .55rem;
  border-radius: 1rem;
  background: var(--peach);
  box-shadow: inset 0 -3px 0 rgba(74, 52, 44, .1);
}

.cd-val {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
}

.cd-lbl {
  display: block;
  margin-top: .28rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-btn {
  display: inline-block;
  padding: .78rem 1.8rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(152, 68, 82, .38);
  transition: transform .18s ease;
}

.hero-btn:hover { transform: translateY(-2px); }

/* Arrives last, once there is nothing else left to look at */
.scroll-cue {
  position: absolute;
  left: 50%;
  /* Anchored to the fold, not to the hero's grown bottom edge */
  bottom: calc(2.2rem + var(--crest));
  translate: -50% 0;
  width: 1.65rem;
  height: 2.75rem;
  border: 2.5px solid rgba(255, 248, 240, .92);
  border-radius: 999px;
  /* Carries its own edge, since the blurred clip behind it is not a fixed tone */
  filter: drop-shadow(0 2px 7px rgba(36, 24, 18, .55));
  opacity: 0;
  transition: opacity .6s ease 1.5s;
}

body.arrived .scroll-cue { opacity: 1; }

.cue-wheel {
  position: absolute;
  left: 50%;
  top: .45rem;
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: rgba(255, 248, 240, .95);
  translate: -50% 0;
}

body.arrived .cue-wheel { animation: cue-roll 1.9s ease-in-out 2.1s infinite; }

@keyframes cue-roll {
  0% { translate: -50% 0; opacity: 0; }
  22% { opacity: 1; }
  70% { translate: -50% 1.1rem; opacity: 0; }
  100% { translate: -50% 1.1rem; opacity: 0; }
}

/* Sections */
.sec {
  position: relative;
  /* A stacking context that outlives the reveal transform, so children parked
     at z-index -1 stay above the section background instead of under it */
  isolation: isolate;
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity .8s ease, transform .8s ease;
}

.sec.in { opacity: 1; transform: none; }

/* One continuous ground for the whole scroll. Stops are proportions of the
   scene, so dusk keeps giving way to paper however long the page grows. */
.scene {
  position: relative;
  background: linear-gradient(
    #e8dcea 0%,
    #f6d5cb 6%,
    #fbe3c2 13%,
    var(--cream) 21%,
    var(--peach) 31%,
    #f7e4ec 42%,
    #e9f4ee 52%,
    #ddf0f2 60%,
    var(--cream) 71%,
    #fbe8cf 82%,
    #f3d3c8 91%,
    #e6d5e4 100%);
}

/* Clipping sits here rather than on the scene, so the crest can break out */
.scene-bits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* Salam & kutipan */
.sec-quote { padding: 5.5rem 1.4rem 5rem; }

/* A tiling bumped edge whose lower half is solid, so the seam cannot show
   through however the column is sized. Both tile edges meet at y=26. */
.scene-crest {
  position: absolute;
  left: 0;
  right: 0;
  top: -3.2rem;
  height: 3.4rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath fill='%23e8dcea' d='M0 40V26q6 0 10-8 6-12 16-10 8 2 12 12 4 6 10 6t10-8q6-14 18-10 8 3 14 12 6 6 14 6t12-4q2 4 4 4v14z'/%3E%3C/svg%3E")
    repeat-x bottom / 7.5rem 3.4rem;
  pointer-events: none;
}

/* Colour comes in per instance, since what reads against dusk is not what
   reads against paper */
.bit {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  opacity: var(--o, 1);
  color: var(--bc, #fff);
  animation: bit-drift var(--t, 8s) ease-in-out var(--d, 0s) infinite;
}

.bit svg { width: 100%; height: auto; display: block; }

@keyframes bit-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: .4rem -.8rem; }
}

.qt-inner {
  position: relative;
  max-width: 23rem;
  margin: 0 auto;
  text-align: center;
}

.qt-greeting {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

/* Same die-cut cut as the hero card, so the two read as one set */
.qt-card {
  position: relative;
  margin-top: 5.4rem;
  /* Top pad clears the 8.56rem sticker hanging 5.2rem above the edge */
  padding: 4.8rem 1.5rem 2rem;
  border-radius: 2.2rem;
  background: var(--cream);
  border: 7px solid #fff;
  box-shadow: 0 16px 38px rgba(36, 24, 18, .18);
}

.qt-sticker {
  position: absolute;
  left: 50%;
  top: -5.2rem;
  width: 7.4rem;
  translate: -50% 0;
  pointer-events: none;
}

.qt-original {
  font-family: 'Amiri', serif;
  font-size: 1.45rem;
  line-height: 2.1;
  color: var(--ink);
}

.qt-trans {
  margin-top: 1rem;
  font-size: .92rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--ink-soft);
}

.qt-trans::before { content: '\201C'; }
.qt-trans::after { content: '\201D'; }

.qt-source {
  margin-top: .9rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
}

/* Shared section headings */
.sec-eyebrow {
  position: relative;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rose);
  text-align: center;
}

.sec-title {
  position: relative;
  margin-top: .45rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.25;
  text-align: center;
}

.sec-note {
  position: relative;
  max-width: 22rem;
  margin: .8rem auto 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
}

/* Mempelai */
.sec-couple { padding: 3rem 1.4rem 5rem; }

.cp-pair { position: relative; margin-top: 5.6rem; }

.cp-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.8rem;
  border-radius: 2.2rem;
  background: var(--cream);
  border: 7px solid #fff;
  box-shadow: 0 14px 32px rgba(74, 52, 44, .14);
  text-align: center;
}

/* Behind the card rather than on it: these two stickers are tall portraits,
   and perching them on top would cover the photo */
.cp-peek {
  position: absolute;
  z-index: -1;
  top: -4.6rem;
  right: -.6rem;
  left: auto;
  width: 5.6rem;
  pointer-events: none;
}

.cp-pair .cp-card:last-of-type .cp-peek { left: -.6rem; right: auto; }

.cp-corner {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  opacity: .5;
}

.cp-corner-a { top: .9rem; left: 1rem; color: var(--wheat); }
.cp-corner-b { bottom: 1rem; right: 1.1rem; width: 1.3rem; height: 1.3rem; color: var(--blush); }

.cp-stage {
  position: relative;
  width: 10.5rem;
  margin: 0 auto 1.9rem;
}

/* A shape for the portrait to sit on, rather than floating on flat card */
.cp-blob {
  position: absolute;
  inset: -1.2rem -1.5rem -.4rem;
  border-radius: 46% 54% 40% 40% / 44% 44% 34% 34%;
  background: #f7dcc9;
  rotate: -3deg;
}

.cp-photo {
  position: relative;
  height: 13rem;
  border-radius: 5.25rem 5.25rem 1.5rem 1.5rem;
  overflow: hidden;
  border: 4px solid #fff;
  background: var(--peach);
}

.cp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Straddles the foot of the arch, tying the portrait to the text below it */
.cp-role {
  position: absolute;
  left: 50%;
  bottom: -.85rem;
  translate: -50% 0;
  padding: .34rem .95rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(152, 68, 82, .3);
}

.cp-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
}

.cp-native {
  margin-top: .3rem;
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.cp-kin {
  margin-top: 1.1rem;
  padding: .85rem 1rem;
  border-radius: 1.2rem;
  background: var(--peach);
}

.cp-kin-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
}

.cp-kin-names {
  margin-top: .4rem;
  font-size: .86rem;
  line-height: 1.7;
  font-weight: 600;
}

.cp-ig {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  margin-top: 1.1rem;
  padding: .42rem 1.05rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  color: var(--rose);
  text-decoration: none;
}

.cp-ig svg { width: .95rem; height: .95rem; }

/* The gap between the two cards is the one piece of open ground in this
   section, so the divider carries the ornament rather than a lone glyph */
.cp-amp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 2.6rem 0 5.2rem;
}

.cp-thread {
  flex: 1 1 auto;
  max-width: 4.5rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 11px);
}

.cp-amp svg { display: block; }
.cp-amp-heart { width: 2.1rem; height: 2.1rem; color: var(--blush); }
.cp-amp-leaf { width: 1.1rem; height: 1.1rem; color: #8fbf9a; rotate: -22deg; }
.cp-amp-flower { width: 1.2rem; height: 1.2rem; color: #f0aec2; }

/* Below the peeking stickers, which sit at -1, so nothing crosses in front
   of a character. Both still paint above the section background. */
.cp-strew {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* Measured from the section's foot, since the cards above are of unknown height */
.cp-strew .bit-foot { top: auto; bottom: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  .cv-video, .cv-veil, .cv-head, .cv-foot, .cv-btn,
  #content, .hero-card, .hero-sticker, .hero-btn, .scroll-cue, .sec,
  .stick, .btn { transition: none; }
  body.arrived .cue-wheel { animation: none; }
  .bit, .orb, .sun { animation: none; }
  .cv-skip { animation: none; opacity: 1; }
  #disc.spinning { animation: none; }
}

/* Stickers scattered along the scroll, alternating sides */
.stick {
  position: absolute;
  top: -1.6rem;
  width: var(--sw);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  scale: .7;
  transition:
    scale .55s cubic-bezier(.3, 1.7, .5, 1) .25s,
    opacity .35s ease .25s;
}

.stick-l { left: -1.2rem; rotate: -7deg; transform-origin: 0 100%; }
.stick-r { right: -1.2rem; rotate: 7deg; transform-origin: 100% 100%; }
.sec.in .stick { opacity: 1; scale: 1; }

.btn {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .72rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--rose); color: #fff; box-shadow: 0 6px 16px rgba(152, 68, 82, .3); }
.btn-soft { background: var(--peach); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(74, 52, 44, .12); }

/* Turut mengundang: a loose scatter of chips, not a list */
.sec-invited { padding: 4.5rem 1.4rem 4rem; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.6rem;
}

.chip {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--cream);
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(74, 52, 44, .1);
  font-size: .82rem;
  font-weight: 700;
  rotate: var(--tilt);
}

/* Acara: ticket stubs with a punched edge and a tear line */
.sec-events { padding: 4.5rem 1.4rem 4rem; }

.tkt {
  position: relative;
  margin-top: 1.6rem;
  border-radius: 1.5rem;
  background: var(--cream);
  border: 3px solid #fff;
  box-shadow: 0 14px 30px rgba(74, 52, 44, .14);
  overflow: hidden;
  text-align: left;
}

.tkt-top {
  padding: 1.4rem 1.3rem 1.2rem;
  background: var(--peach);
  text-align: center;
}

.tkt-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
}

.tkt-native {
  margin-top: .25rem;
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* Two punched holes with a dashed rule strung between them */
.tkt-tear {
  position: relative;
  display: block;
  height: 0;
  border-top: 2px dashed var(--line);
}

.tkt-tear::before,
.tkt-tear::after {
  content: '';
  position: absolute;
  top: -.7rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: inset 0 -2px 0 rgba(74, 52, 44, .08);
}

.tkt-tear::before { left: -.7rem; }
.tkt-tear::after { right: -.7rem; }

.tkt-body { padding: 1.4rem 1.3rem 1.5rem; }

.tkt-row {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-bottom: .65rem;
  font-size: .86rem;
  line-height: 1.55;
}

.ic { width: 1.05rem; height: 1.05rem; flex: none; margin-top: .12rem; color: var(--rose); }
.tkt-body .btn { display: block; text-align: center; }

/* Susunan acara: a zig-zag down a dashed spine */
.sec-rundown { padding: 4.5rem 1.4rem 4rem; }

.zig {
  position: relative;
  list-style: none;
  margin-top: 1.8rem;
}

.zig::before {
  content: '';
  position: absolute;
  left: 50%;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  translate: -50% 0;
  background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 13px);
}

.zig-row {
  position: relative;
  width: 50%;
  padding: 0 1.2rem 1.4rem 0;
  text-align: right;
}

.zig-row:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 1.4rem 1.2rem;
  text-align: left;
}

.zig-time {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: .78rem;
  font-weight: 500;
}

.zig-dot {
  position: absolute;
  top: .5rem;
  right: -.42rem;
  width: .84rem;
  height: .84rem;
  border-radius: 50%;
  background: var(--blush);
  border: 3px solid var(--cream);
}

.zig-row:nth-child(even) .zig-dot { right: auto; left: -.42rem; }

.zig-desc {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Dress code: overlapping wobbly blobs rather than neat swatches */
.sec-dress { padding: 4.5rem 1.4rem 4.5rem; }

.blobs {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

.blob {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  background: var(--c);
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(74, 52, 44, .16);
  margin-left: -1rem;
  rotate: calc(var(--i) * 7deg - 10deg);
}

.blob:first-child { margin-left: 0; }

/* Kisah kami: polaroids strung down a wandering trail */
.sec-story { padding: 4.5rem 1.4rem 4rem; }

.trail { position: relative; margin-top: 2rem; }

.trail::before {
  content: '';
  position: absolute;
  left: 1.6rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: repeating-linear-gradient(var(--line) 0 7px, transparent 7px 15px);
}

.trail-stop {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 2.2rem;
  text-align: left;
}

.trail-stop:last-child { margin-bottom: 0; }

.pola {
  position: relative;
  padding: .6rem .6rem 2.1rem;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 10px 24px rgba(74, 52, 44, .18);
  rotate: var(--tilt);
}

.pola img {
  width: 100%;
  height: 9.5rem;
  object-fit: cover;
  display: block;
  border-radius: .25rem;
}

.pola-stamp {
  position: absolute;
  left: 50%;
  bottom: .55rem;
  translate: -50% 0;
  font-family: 'Fredoka', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--rose);
  letter-spacing: .1em;
}

.trail-text { margin-top: .9rem; }

.trail-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
}

.trail-body {
  margin-top: .3rem;
  font-size: .85rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Galeri: taped snaps, deliberately off-square */
.sec-gallery { padding: 4.5rem 1.4rem 4.5rem; }

.scrap {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem .9rem;
  margin-top: 2.2rem;
}

.snap {
  position: relative;
  padding: .45rem .45rem 1.1rem;
  background: #fff;
  border-radius: .4rem;
  box-shadow: 0 10px 22px rgba(74, 52, 44, .16);
  rotate: var(--tilt);
}

.snap:first-child { grid-column: span 2; }
.snap img { width: 100%; height: 8.5rem; object-fit: cover; display: block; border-radius: .2rem; }
.snap:first-child img { height: 12rem; }

.tape {
  position: absolute;
  top: -.6rem;
  left: 50%;
  width: 3.4rem;
  height: 1.2rem;
  translate: -50% 0;
  rotate: -4deg;
  background: rgba(237, 213, 141, .72);
  border-left: 2px dotted rgba(255, 255, 255, .6);
  border-right: 2px dotted rgba(255, 255, 255, .6);
}

/* Saksikan: the stream sits in a screen, the filter in a phone */
.sec-share { padding: 4.5rem 1.4rem 4rem; }

.screen {
  position: relative;
  margin-top: 2rem;
  border-radius: 1.4rem;
  background: var(--cream);
  border: 5px solid #fff;
  box-shadow: 0 14px 32px rgba(74, 52, 44, .16);
  overflow: hidden;
}

.screen-glass {
  display: grid;
  place-items: center;
  gap: .5rem;
  padding: 2.2rem 1rem;
  background: linear-gradient(150deg, #3d2c34, #6b4a52);
  color: #fff;
}

.screen-icon { width: 2.4rem; height: 2.4rem; }

.screen-cat {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .92;
}

.screen-foot { padding: 1.3rem 1.2rem 1.5rem; }

.screen-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
}

.screen-desc {
  margin-top: .4rem;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.screen-stand {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4.5rem;
  height: .4rem;
  translate: -50% 0;
  border-radius: .3rem .3rem 0 0;
  background: var(--line);
}

.screen-phone { border-radius: 2rem; border-width: 7px; }
.screen-phone .screen-glass { background: linear-gradient(150deg, #7a4a63, #a66277); }

/* Amplop: a card with its flap folded down over the top */
.sec-gift { padding: 4.5rem 1.4rem 4rem; }

.amplop {
  position: relative;
  margin-top: 2.4rem;
  padding: 2.6rem 1.3rem 1.6rem;
  border-radius: 1.3rem;
  background: var(--cream);
  border: 3px solid #fff;
  box-shadow: 0 14px 30px rgba(74, 52, 44, .14);
  overflow: hidden;
}

.amplop-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.6rem;
  background: var(--peach);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.amplop-mark {
  position: absolute;
  top: .5rem;
  left: 50%;
  width: 1.3rem;
  height: 1.3rem;
  translate: -50% 0;
  color: var(--rose);
  opacity: .75;
}

.amplop-bank {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
}

.amplop-no {
  margin-top: .3rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: .04em;
}

.amplop-name { font-size: 1.1rem; }
.amplop-holder { margin-top: .35rem; font-size: .82rem; color: var(--ink-soft); }
.amplop-addr { margin-top: .4rem; font-size: .88rem; line-height: 1.6; }

/* Wishlist: gift tags on string */
.sec-registry { padding: 4.5rem 1.4rem 4rem; }

.tags {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem .9rem;
  margin-top: 2.2rem;
}

.tag {
  position: relative;
  padding: 1.5rem .7rem .9rem;
  border-radius: .5rem 1.6rem .9rem .9rem;
  background: var(--cream);
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(74, 52, 44, .13);
  rotate: var(--tilt);
}

.tag-hole {
  position: absolute;
  top: .55rem;
  right: .7rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: inset 0 0 0 2px var(--line);
}

.tag-photo {
  height: 5.6rem;
  border-radius: .6rem;
  overflow: hidden;
  background: var(--peach);
}

.tag-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag-name { margin-top: .5rem; font-size: .8rem; font-weight: 700; line-height: 1.4; }

.tag-link {
  display: inline-block;
  margin-top: .3rem;
  font-size: .74rem;
  font-weight: 700;
  color: var(--rose);
  text-decoration: none;
}

/* Forms */
.sec-rsvp, .sec-wishes { padding: 4.5rem 1.4rem 4rem; }

.reply {
  margin-top: 1.8rem;
  padding: 1.5rem 1.3rem 1.6rem;
  border-radius: 1.5rem;
  background: var(--cream);
  border: 3px dashed var(--line);
  text-align: left;
}

.fld { display: block; margin-bottom: .9rem; }

.fld-lbl {
  display: block;
  margin-bottom: .3rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.reply input,
.reply select,
.reply textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 2px solid var(--line);
  border-radius: .9rem;
  background: #fff;
  font-family: inherit;
  font-size: .9rem;
  color: var(--ink);
}

.reply input:focus,
.reply select:focus,
.reply textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }

.reply textarea { resize: vertical; }
.reply .btn { width: 100%; }

.form-msg { margin-top: .7rem; font-size: .82rem; font-weight: 600; color: #4f6a3c; }
.form-msg.is-error { color: var(--rose); }
.closed { margin-top: 1.4rem; font-size: .88rem; font-weight: 600; line-height: 1.6; }

/* Ucapan: speech bubbles with a tail, alternating sides */
.bubbles { list-style: none; margin-top: 1.8rem; }

.bub {
  position: relative;
  margin-bottom: 1.1rem;
  padding: .9rem 1.1rem;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 8px 18px rgba(74, 52, 44, .12);
  text-align: left;
}

.bub::after {
  content: '';
  position: absolute;
  bottom: -.5rem;
  left: 1.6rem;
  width: 1rem;
  height: 1rem;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.bub:nth-child(even) { background: var(--peach); margin-left: 1.4rem; }
.bub:nth-child(even)::after { left: auto; right: 1.6rem; clip-path: polygon(0 0, 100% 0, 100% 100%); }

.bub-name { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: .95rem; }
.bub-msg { margin-top: .25rem; font-size: .85rem; line-height: 1.6; color: var(--ink-soft); }

/* Kartu tamu: a pass torn across the middle */
.sec-guestcard { padding: 4.5rem 1.4rem 4rem; }

.pass {
  margin-top: 2rem;
  border-radius: 1.5rem;
  background: var(--cream);
  border: 3px solid #fff;
  box-shadow: 0 16px 34px rgba(74, 52, 44, .18);
  overflow: hidden;
}

.pass-top { padding: 1.5rem 1.2rem 1.3rem; background: var(--rose); color: #fff; }

.pass-lbl {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .92;
}

.pass-name { margin-top: .3rem; font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 1.35rem; }
.pass-code { margin-top: .15rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; opacity: .9; }

.pass-vip {
  display: inline-block;
  margin-top: .6rem;
  padding: .26rem .8rem;
  border-radius: 999px;
  background: var(--wheat);
  color: #4a342c;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pass-perf {
  position: relative;
  display: block;
  height: 0;
  border-top: 2px dashed var(--line);
}

.pass-perf::before,
.pass-perf::after {
  content: '';
  position: absolute;
  top: -.65rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--peach);
}

.pass-perf::before { left: -.65rem; }
.pass-perf::after { right: -.65rem; }

.pass-qr { padding: 1.5rem 1.2rem 1.6rem; }

.pass-qr img {
  width: 10rem;
  display: block;
  margin: 0 auto;
  padding: .6rem;
  border-radius: .9rem;
  background: #fff;
}

.pass-note { margin-top: .9rem; font-size: .78rem; line-height: 1.6; color: var(--ink-soft); }

/* Penutup */
.sec-footer { padding: 4rem 1.4rem 5rem; text-align: center; }

.ft-sticker { width: 9rem; margin: 0 auto 1.2rem; display: block; }

.ft-message {
  font-size: .9rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.ft-names {
  margin-top: .35rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
}

.ft-families { margin-top: .7rem; font-size: .82rem; line-height: 1.7; color: var(--ink-soft); }

.ft-tag {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .42rem 1.1rem;
  border-radius: 999px;
  background: var(--cream);
  border: 2px solid #fff;
  font-size: .82rem;
  font-weight: 700;
  color: var(--rose);
}

.ft-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-top: 1.8rem;
}

.ft-nav a {
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.ft-credit { margin-top: 1.6rem; font-size: .74rem; color: var(--ink-soft); }
.ft-credit a { color: var(--rose); }

/* Music */
#disc {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(152, 68, 82, .4);
  display: grid;
  place-items: center;
}

#disc svg { width: 1.25rem; height: 1.25rem; }
#disc.spinning { animation: disc-spin 4s linear infinite; }

@keyframes disc-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

/* Backdrop masses: soft, oversized and slow, purely for depth. Every one is
   lighter than the ground it sits on, so text over them never loses contrast. */
.orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  border-radius: 44% 56% 52% 48% / 50% 44% 56% 50%;
  background: var(--oc);
  filter: blur(6px);
  animation: orb-turn 34s ease-in-out infinite;
}

.orb:nth-of-type(even) { animation-duration: 46s; animation-direction: reverse; }

@keyframes orb-turn {
  0%, 100% { rotate: 0deg; translate: 0 0; }
  50% { rotate: 14deg; translate: 1.2rem -1.6rem; }
}

.sun {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--oc);
  filter: blur(2px);
  animation: bit-drift 18s ease-in-out infinite;
}

/* Horizons: a tinted band with a wavy top, so the ground reads in layers */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--wy);
  height: 4rem;
  background-repeat: repeat-x;
  background-position: bottom;
}

.wave-a {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 44' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.5' d='M0 44V28q10 0 18-9t22-9 20 10 18 4 16-12 24 1 22 15v16z'/%3E%3C/svg%3E");
  background-size: 12rem 4rem;
}

.wave-b {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 44' preserveAspectRatio='none'%3E%3Cpath fill='%23fff3e2' fill-opacity='.55' d='M0 44V30q12 4 20-6t20-2 16 8 20-14 24 6 20 8v14z'/%3E%3C/svg%3E");
  background-size: 15rem 4rem;
}

/* Ground either side of the column: a blurred, dimmed copy of the section
   photo in view. Blur and dimming are baked into the bitmap, so no filter runs
   here. Below 4:5 the column fills the width and there is no ground to light. */
.ambient { display: none; }

@media (min-aspect-ratio: 3 / 5) {
  .ambient {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
  }

  .ambient div {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease;
  }

  .ambient .on { opacity: 1; }

  #cover { background-color: transparent; }
  #content { box-shadow: 0 0 90px rgba(20, 12, 9, .6); }
}
