@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Fraunces:opsz,wght@9..144,700;9..144,900&family=Italianno&display=swap");

:root {
  --ink: #361b14;
  --cream: #fff6dc;
  --paper: #e7c28e;
  --paper-dark: #bd854c;
  --red: #d83b2d;
  --yellow: #f8c51c;
  --teal: #08a89d;
  --blue: #274c9b;
  --green: #4f9f3f;
  --wood: #6f2d16;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #29140d;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 8%, #754524 0, transparent 33%),
    linear-gradient(135deg, #160c08, #472014 48%, #160c08);
}

button { font: inherit; }

.invitation {
  position: relative;
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #733618;
  box-shadow: 0 0 70px #0f0706;
  isolation: isolate;
}

.welcome, .details {
  position: absolute;
  inset: 0;
  min-height: 100dvh;
  overflow: hidden;
}

.welcome {
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  padding: max(92px, 13vh) 22px max(66px, 8vh);
  color: white;
  background:
    linear-gradient(#0003, #0001 48%, #0005),
    repeating-linear-gradient(90deg, transparent 0 19px, #3d160b55 20px 22px),
    linear-gradient(110deg, #3f1c0d, #8c461f 35%, #4c1f0e 70%, #7b3518);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}

.welcome::before, .welcome::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: repeating-linear-gradient(0deg, #3f160b 0 4px, #8a4620 5px 16px, #4b1d0f 17px 20px);
  box-shadow: 0 3px 12px #160703aa;
}

.welcome::before { inset: 0 0 auto; height: 52px; }
.welcome::after { inset: auto 0 0; height: 42px; }

.capiz {
  position: absolute;
  inset: 52px 0 42px;
  opacity: .24;
  background-image:
    linear-gradient(#1b0e08 2px, transparent 2px),
    linear-gradient(90deg, #1b0e08 2px, transparent 2px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000, transparent 40%, transparent 60%, #000);
}

.welcome__copy { position: relative; z-index: 2; top: 14px; text-align: center; text-shadow: 0 3px 12px #1e0b08; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700; }
.welcome__copy .eyebrow { font-family: "Italianno", cursive; font-size: clamp(3.4rem, 18vw, 5.7rem); line-height: .65; text-transform: none; letter-spacing: 0; font-weight: 400; }
.welcome__copy h1 { margin: 0; font: 900 clamp(3.2rem, 17vw, 5.6rem)/.82 "Fraunces", Georgia, serif; transform: rotate(-2deg); }
.welcome__copy > p:last-child { margin: 14px 0 0; font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; }

.bunting { position: absolute; z-index: 5; left: -5%; width: 110%; display: flex; justify-content: space-around; pointer-events: none; filter: drop-shadow(0 5px 4px #0007); }
.bunting::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: #2d160e; transform: rotate(-2deg); }
.bunting--back { top: 48px; transform: rotate(3deg); }
.bunting--front { bottom: 32px; transform: rotate(-2deg); }
.bunting i { width: 0; height: 0; border-left: clamp(20px, 7vw, 32px) solid transparent; border-right: clamp(20px, 7vw, 32px) solid transparent; border-top: clamp(55px, 18vw, 82px) solid var(--red); transform-origin: top; }
.bunting i:nth-child(2n) { border-top-color: var(--yellow); transform: translateY(4px) rotate(3deg); }
.bunting i:nth-child(3n) { border-top-color: var(--teal); transform: rotate(-4deg); }
.bunting i:nth-child(5n) { border-top-color: #fff2d1; }
.bunting--front i { border-left-width: 26px; border-right-width: 26px; border-top-width: 58px; }

.envelope-shell {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: min(calc(100vw - 44px), 490px);
  aspect-ratio: 1.479;
  margin: 20px auto 0;
  perspective: 900px;
}

.envelope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 20px 16px #1b0907aa);
  -webkit-tap-highlight-color: transparent;
}

.envelope__letter {
  position: absolute;
  inset: 7% 9% 10%;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  border: 2px solid #d5ac72;
  border-radius: 5px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 42%, #fffdf3 0 24%, transparent 25%),
    repeating-conic-gradient(from 0deg at 50% 44%, #f8c51c20 0 10deg, transparent 10deg 20deg),
    var(--cream);
  box-shadow: 0 4px 12px #42200faa;
  transform: rotate(3.6deg) scale(.92);
  transition: transform .8s .2s cubic-bezier(.2,.8,.2,1), box-shadow .8s .2s;
}
.envelope__letter::before,
.envelope__letter::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  background: repeating-linear-gradient(to bottom, var(--red) 0 16px, var(--yellow) 16px 32px, var(--teal) 32px 48px);
}
.envelope__letter::before { left: 0; }
.envelope__letter::after { right: 0; }
.envelope__letter-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px 10px 3px;
  line-height: 1;
}
.envelope__portrait {
  background-image: url("assets/christon-portrait.png");
  background-repeat: no-repeat;
  background-size: 126%;
  background-position: center;
}
.envelope__portrait {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(30vw, 145px);
  aspect-ratio: 1;
  margin-left: 14px;
  border: 3px solid #0d5d4e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #b97435, 0 7px 13px #4c2c1855;
}
.envelope__letter b {
  color: var(--ink);
  font: 900 clamp(1.75rem, 9.5vw, 3.2rem)/.82 "Fraunces", Georgia, serif;
  letter-spacing: -.06em;
}
.envelope__letter small {
  margin-top: 4px;
  color: var(--teal);
  font: 400 clamp(1.85rem, 9.5vw, 3.15rem)/.9 "Italianno", cursive;
}
.envelope__image {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(8.2% 5.3%, 94.5% 11.6%, 91.2% 94.3%, 5.5% 87.5%);
  transform-origin: 50% 70%;
  transition: transform .75s cubic-bezier(.2,.8,.2,1), opacity .45s .2s;
}
.envelope:active .envelope__image { transform: scale(.97); }
.envelope:focus-visible { outline: 4px solid var(--yellow); outline-offset: 8px; }

.read-details {
  position: absolute;
  z-index: 7;
  left: 68%;
  top: 31.5%;
  min-width: 134px;
  min-height: 40px;
  padding: 9px 16px 10px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: var(--red);
  box-shadow: 0 5px 0 #92271f, 0 9px 18px #36140b55;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 18px) rotate(3.6deg) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .4s ease;
}
.invitation.is-card-open .read-details {
  opacity: 1;
  transform: translate(-50%, 0) rotate(3.6deg) scale(1);
  pointer-events: auto;
}
.read-details:active { transform: translate(-50%, 3px) rotate(3.6deg) scale(.98); box-shadow: 0 2px 0 #92271f; }
.read-details:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.tap-hint { position: relative; z-index: 4; align-self: end; text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 700; text-shadow: 0 2px 5px #000; white-space: nowrap; transform: translateY(-34px); }
.tap-hint span { display: block; margin-bottom: 2px; font-size: 1.4rem; animation: point 1.3s ease-in-out infinite; }
.tap-hint p { margin: 0; }
.invitation.is-opening .tap-hint { opacity: 0; pointer-events: none; transition: opacity .25s ease; }

.invitation.is-opening .envelope__letter {
  transform: translateY(-47%) rotate(3.6deg) scale(.96);
  box-shadow: 0 18px 30px #2d100aaa;
}
.invitation.is-opening .envelope__image { opacity: .15; transform: translateY(18%) rotateX(-18deg) scale(.96); }
.invitation.is-open .welcome { opacity: 0; transform: translateY(4%) scale(1.04); pointer-events: none; }

.details {
  z-index: -1;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--cream);
  background:
    linear-gradient(#090502a8, #090502c2),
    url("assets/loading-weave-bg.png") center / cover no-repeat;
  opacity: 0;
  transform: scale(.97);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2,.8,.2,1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.details::-webkit-scrollbar { display: none; width: 0; height: 0; }

.map-screen {
  position: absolute;
  z-index: 18;
  inset: 0;
  min-height: 100dvh;
  padding: 108px 20px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  color: white;
  background:
    linear-gradient(#0003, #0006),
    repeating-linear-gradient(90deg, transparent 0 19px, #3d160b55 20px 22px),
    linear-gradient(110deg, #3f1c0d, #8c461f 35%, #4c1f0e 70%, #7b3518);
  opacity: 0;
  transform: translateX(105%);
  pointer-events: none;
  transition: opacity .35s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  scrollbar-width: none;
}
.map-screen::-webkit-scrollbar { display: none; }
.invitation.is-map-open .map-screen { opacity: 1; transform: translateX(0); pointer-events: auto; }
.map-screen__close {
  position: absolute;
  z-index: 6;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 4px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #361b14dd;
  box-shadow: 0 5px 12px #0006;
  font-size: 1.65rem;
  cursor: pointer;
}
.map-screen__bunting {
  position: absolute;
  z-index: 2;
  top: 42px;
  left: -4%;
  width: 108%;
  display: flex;
  justify-content: space-around;
  filter: drop-shadow(0 5px 4px #0007);
}
.map-screen__bunting::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: #2d160e;
  transform: rotate(-2deg);
}
.map-screen__bunting i {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 63px solid var(--red);
}
.map-screen__bunting i:nth-child(2n) { border-top-color: var(--yellow); transform: translateY(4px) rotate(3deg); }
.map-screen__bunting i:nth-child(3n) { border-top-color: var(--teal); transform: rotate(-4deg); }
.map-screen__bunting i:nth-child(5n) { border-top-color: #fff2d1; }
.map-screen__inner { position: relative; z-index: 3; width: 100%; max-width: 450px; margin: auto; text-align: center; }
.map-screen__heading { margin-bottom: 20px; text-shadow: 0 4px 10px #000b; }
.map-screen__heading span { display: block; font: 400 clamp(3.2rem, 17vw, 5rem)/.7 "Italianno", cursive; }
.map-screen__heading h2 { margin: 0; font: 900 clamp(3.4rem, 18vw, 5.3rem)/.78 "Fraunces", Georgia, serif; transform: rotate(-2deg); }
.map-screen__heading p { margin: 16px 0 0; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.map-screen__frame {
  position: relative;
  padding: 7px;
  overflow: hidden;
  border: 4px solid #f8c51c;
  border-radius: 22px;
  background: #fff6dc;
  box-shadow: 0 12px 0 #6f2b1d, 0 22px 35px #0008;
}
.map-screen__frame iframe { display: block; width: 100%; height: min(52dvh, 430px); min-height: 330px; border: 0; border-radius: 13px; }
.inkbar-promo {
  margin-top: 34px;
  padding: 0 8px;
  color: white;
  text-align: center;
  text-shadow: 0 3px 8px #000b;
}
.inkbar-promo h3 {
  margin: 0;
  color: white;
  font: 900 clamp(1.05rem, 5vw, 1.35rem)/1.05 "Fraunces", Georgia, serif;
}
.inkbar-promo > p {
  margin: 11px auto 16px;
  max-width: 330px;
  font-size: .78rem;
  line-height: 1.4;
}
.inkbar-promo > p strong { color: var(--yellow); }
.inkbar-promo__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 2vw, 10px);
  width: 100%;
}
.inkbar-promo__links a {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 0;
  color: white;
  font-size: clamp(.62rem, 2.5vw, .76rem);
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
.inkbar-promo__links svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  fill: currentColor;
}
.inkbar-promo__links .instagram-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.inkbar-promo__links .instagram-icon__dot {
  fill: currentColor;
  stroke: none;
}
.inkbar-promo__links a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.map-screen__back {
  display: inline-block;
  margin: 25px 0 0;
  padding: 12px 23px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: var(--red);
  box-shadow: 0 5px 0 #92271f, 0 9px 18px #0005;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.map-screen__back:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.invitation.is-open .details { z-index: 5; opacity: 1; transform: none; }

.jeepney-loader {
  position: absolute;
  z-index: 12;
  inset: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 26px;
  color: var(--ink);
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility 0s .22s;
}
.invitation.is-loading .jeepney-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s ease;
}
.jeepney-loader__sun {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 145vw;
  aspect-ratio: 1;
  border-radius: 50%;
  display: none;
  background: repeating-conic-gradient(var(--yellow) 0 8deg, transparent 8deg 16deg);
  transform: translateX(-50%);
}
.jeepney-loader__destination {
  position: absolute;
  z-index: 4;
  top: max(52px, 8vh);
  left: 12px;
  right: 12px;
  text-align: center;
  text-shadow: 0 3px 0 #fff, 0 7px 14px #6e3a1e28;
}
.jeepney-loader__destination span {
  display: block;
  margin-bottom: -2px;
  color: var(--ink);
  font: 400 clamp(3.7rem, 19vw, 6rem)/.72 "Italianno", cursive;
  letter-spacing: 0;
  transform: rotate(-2deg);
}
.jeepney-loader__destination strong {
  display: block;
  color: var(--red);
  font: 900 clamp(2rem, 10.2vw, 3.4rem)/.86 "Fraunces", Georgia, serif;
  letter-spacing: -.06em;
  transform: rotate(-2.5deg);
}
.jeepney-loader__road {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  height: 72px;
  overflow: hidden;
  border-block: 5px solid #2c2825;
  background: #635f5a;
}
.jeepney-loader__road::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 31px;
  width: 300%;
  height: 7px;
  background: repeating-linear-gradient(90deg, white 0 44px, transparent 44px 80px);
  animation: roadMove .72s linear infinite;
}
.jeepney-loader__road span {
  position: absolute;
  top: -13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px #2f7f34;
}
.jeepney-loader__road span:nth-child(1) { left: 7%; }
.jeepney-loader__road span:nth-child(2) { left: 32%; }
.jeepney-loader__road span:nth-child(3) { left: 67%; }
.jeepney-loader__road span:nth-child(4) { left: 91%; }
.jeepney-loader__farewell {
  position: absolute;
  z-index: 4;
  top: calc(58% + 82px);
  left: 18px;
  right: 18px;
  margin: 0;
  color: var(--ink);
  text-align: center;
  font: 900 clamp(1.1rem, 5.2vw, 1.55rem)/1.15 "Fraunces", Georgia, serif;
  letter-spacing: -.025em;
}
.jeepney-loader__vehicle {
  position: absolute;
  z-index: 2;
  left: 0;
  top: calc(58% - min(48vw, 210px) + 14px);
  width: min(78vw, 385px);
  animation: none;
}
.invitation.is-loading .jeepney-loader__vehicle { animation: jeepneyDrive 3.2s cubic-bezier(.22,.72,.24,1) both; }
.jeepney-loader__vehicle img {
  display: block;
  width: 100%;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 7px #3a1b0a50);
  animation: jeepneyBounce .23s ease-in-out infinite alternate;
}
.jeepney-loader__vehicle img.is-cutout { mix-blend-mode: normal; }
.sunburst { position: absolute; width: 155vw; aspect-ratio: 1; left: 50%; top: -18vw; transform: translateX(-50%); opacity: .12; background: repeating-conic-gradient(var(--yellow) 0 9deg, transparent 9deg 18deg); border-radius: 50%; }
.details__inner { position: relative; z-index: 2; width: 100%; max-width: 520px; min-height: calc(100dvh - 74px); margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.details__inner > :not(.celebrant-banner):not(.christon-photo-collage):not(.venue-banner):not(.venue-jeepney) { max-width: calc(100% - 44px); }
.details .sunburst { display: none; }
.scroll-cue {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 13px 8px 15px;
  border: 1px solid #ffffff80;
  border-radius: 999px;
  color: white;
  background: #2b140ddd;
  box-shadow: 0 7px 20px #0007;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.scroll-cue i {
  color: var(--yellow);
  font-size: 1rem;
  font-style: normal;
  animation: scrollCueBounce 1.15s ease-in-out infinite;
}
.scroll-cue.is-hidden { opacity: 0; transform: translate(-50%, 12px); }
@keyframes scrollCueBounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
.details .details-title {
  position: relative;
  width: calc(100% - 30px);
  margin: -12px auto 12px;
  padding: 0 8px 16px;
  color: white;
  text-align: center;
  text-shadow: 0 4px 9px #000d;
}
.details-title strong,
.details-title span,
.details-title small { position: relative; z-index: 2; display: block; }
.details-title strong {
  font: 400 clamp(4.3rem, 22vw, 6.6rem)/.68 "Italianno", cursive;
  letter-spacing: 0;
  transform: rotate(-2deg);
}
.details-title span {
  margin-top: 2px;
  font: 900 clamp(2.2rem, 9.3vw, 3.25rem)/.82 "Fraunces", Georgia, serif;
  letter-spacing: -.05em;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.details-title small {
  width: max-content;
  margin: 15px auto 0;
  padding: 0;
  color: white;
  background: transparent;
  border-radius: 0;
  font: 700 clamp(.7rem, 3.2vw, .9rem)/1 "DM Sans", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.fiesta-side-decoration {
  position: absolute;
  z-index: 1;
  top: 225px;
  width: min(62vw, 300px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(-8px 10px 9px #0006);
}
.fiesta-side-decoration--right {
  right: -20px;
  transform: translateX(58%) rotate(-2deg);
}
.fiesta-side-decoration--left {
  top: 330px;
  left: -20px;
  width: min(62vw, 300px);
  filter: drop-shadow(8px 10px 9px #0006);
  transform: translateX(-53%) rotate(-2deg);
}

.celebrant-banner {
  position: relative;
  left: auto;
  align-self: center;
  width: 100%;
  max-width: none;
  aspect-ratio: 1.4;
  margin: 0 0 12px;
  overflow: hidden;
  background: transparent;
  transform: none;
}
.celebrant-banner img {
  position: absolute;
  left: 53%;
  top: 50%;
  display: block;
  width: 170%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 12px 10px #0008);
  transform: translate(-50%, -50%);
}
.details.is-hero-entering .celebrant-banner {
  animation: heroFrameArrival 1s cubic-bezier(.16, .84, .28, 1) both;
}
.details.is-hero-entering .celebrant-banner img {
  animation: heroImageArrival 1.15s cubic-bezier(.16, .84, .28, 1) both;
}

@keyframes heroFrameArrival {
  0% { opacity: 0; transform: translateY(-28px) scale(.92); }
  65% { opacity: 1; transform: translateY(3px) scale(1.015); }
  100% { opacity: 1; transform: none; }
}
@keyframes heroImageArrival {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.2) rotate(-2deg); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(.98) rotate(.5deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

.jeepney { position: relative; width: 224px; height: 90px; margin: 14px 0 13px; transform: rotate(-2deg); filter: drop-shadow(0 8px 4px #6d421c33); }
.jeepney__body { position: absolute; inset: 14px 0 8px; display: flex; align-items: center; justify-content: center; border: 5px solid var(--ink); border-radius: 42px 18px 10px 13px; color: #fff; background: linear-gradient(to bottom, var(--red) 0 44%, var(--yellow) 45% 64%, var(--teal) 65%); box-shadow: inset 0 -5px #166c68; }
.jeepney__body::before { content: ""; width: 66px; height: 29px; position: absolute; left: 18px; top: 3px; border: 3px solid var(--ink); border-radius: 18px 4px 4px 5px; background: #bde9e9; }
.jeepney__body b { margin: 1px 0 0 53px; padding: 2px 5px; border: 2px solid var(--ink); background: #fff6dc; color: var(--ink); font-size: .63rem; letter-spacing: .08em; }
.jeepney__body i { display: grid; place-items: center; width: 29px; height: 29px; margin-left: 6px; border: 3px solid white; border-radius: 50%; font: 900 1rem "Fraunces", serif; background: var(--red); }
.jeepney__flag { position: absolute; right: -3px; top: 0; z-index: 2; padding: 3px 7px; border: 2px solid var(--ink); border-radius: 3px; color: var(--ink); background: var(--yellow); font-size: .55rem; font-weight: 900; transform: rotate(5deg); }
.jeepney__wheel { position: absolute; bottom: 0; z-index: 3; width: 25px; height: 25px; border: 6px solid var(--ink); border-radius: 50%; background: #aaa; }
.jeepney__wheel--left { left: 38px; } .jeepney__wheel--right { right: 26px; }

.intro {
  width: calc(100% - 44px);
  max-width: 430px;
  margin: 2px auto 18px;
  padding: 14px 15px 13px;
  border: 4px solid #b98726;
  border-radius: 20px;
  color: #17120f;
  background: linear-gradient(#fffdf8, #eeeae1);
  box-shadow: 0 6px 0 #6b441b55, 0 10px 22px #0004;
  font: 800 clamp(.67rem, 3.25vw, .88rem)/1.22 "DM Sans", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: none;
}
.music-player {
  position: relative;
  z-index: 3;
  width: calc(100% - 72px);
  max-width: 360px;
  margin: 12px auto 22px;
  padding: 13px 14px 12px;
  overflow: visible;
  border: 3px solid #f6d45d;
  border-radius: 21px;
  background: linear-gradient(125deg, #e63f30 0 42%, #0a9f99 42% 72%, #2450a1 72%);
  box-shadow: 0 7px 0 #6f2b1d, 0 13px 25px #0006;
}
.music-player__side-art {
  position: absolute;
  z-index: 4;
  top: -44px;
  right: -20px;
  width: min(62vw, 300px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 7px 7px #0005);
  transform: translateX(64%) rotate(-2deg);
}
.music-player::before,
.music-player::after {
  position: absolute;
  color: #f8d85d;
  font: 900 1.25rem/1 Georgia, serif;
  opacity: .45;
}
.music-player::before { content: "♫"; right: 69px; top: 7px; transform: rotate(-13deg); }
.music-player::after { content: "♪"; right: 10px; bottom: 7px; transform: rotate(12deg); }
.music-player__toggle {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  color: white;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.music-player__vinyl {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 3px solid #15100e;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #211b19 0 4px, #38302d 5px 7px);
  box-shadow: 0 5px 10px #0006;
}
.music-player__vinyl::before {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 8px var(--red);
}
.music-player__vinyl i { position: relative; z-index: 2; color: white; font: 900 .8rem Georgia, serif; }
.music-player.is-playing .music-player__vinyl { animation: vinylSpin 2.2s linear infinite; }
.music-player__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding-left: 3px;
  border-radius: 50%;
  color: var(--ink);
  background: #f7cd3e;
  box-shadow: 0 3px 0 #a66c19;
  font-size: .95rem;
}
.music-player.is-playing .music-player__icon { padding-left: 0; }
.music-player__copy { min-width: 0; }
.music-player__copy small {
  display: block;
  margin-bottom: 2px;
  color: #fff0a6;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.music-player__copy strong {
  display: block;
  overflow: hidden;
  font-size: .8rem;
  text-overflow: ellipsis;
  text-shadow: 0 2px 5px #0007;
  white-space: nowrap;
}
.music-player__equalizer {
  height: 14px;
  display: flex;
  align-items: end;
  gap: 3px;
  margin-top: 6px;
}
.music-player__equalizer i { width: 4px; height: 4px; border-radius: 3px; background: #f8d85d; }
.music-player.is-playing .music-player__equalizer i { animation: equalizer .48s ease-in-out infinite alternate; }
.music-player.is-playing .music-player__equalizer i:nth-child(2) { animation-delay: -.31s; }
.music-player.is-playing .music-player__equalizer i:nth-child(3) { animation-delay: -.16s; }
.music-player.is-playing .music-player__equalizer i:nth-child(4) { animation-delay: -.4s; }
.music-player.is-playing .music-player__equalizer i:nth-child(5) { animation-delay: -.24s; }
.music-player__progress {
  position: relative;
  z-index: 2;
  height: 4px;
  margin: 10px 2px 0;
  overflow: hidden;
  border-radius: 99px;
  background: #ffffff45;
}
.music-player__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, var(--yellow));
  transition: width .15s linear;
}
.music-player__toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }

.christon-photo-collage {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  aspect-ratio: 0.876;
  margin: 14px 0 0;
  overflow: hidden;
  pointer-events: none;
}
.christon-photo-collage img {
  display: block;
  width: 150%;
  max-width: none;
  height: auto;
  transform: translate(-33%, -20%);
}

.venue-banner {
  position: relative;
  z-index: 5;
  display: flex;
  width: calc(100% - 94px);
  max-width: 385px;
  aspect-ratio: 996 / 428;
  margin: -6px auto 22px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 17px 13px;
  color: #080808;
  background: url("assets/venue-banner-frame.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 8px #0005);
  text-transform: uppercase;
}
.venue-banner h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 6.8vw, 2rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.035em;
}
.venue-banner h3 span,
.venue-banner h3 strong { display: block; }
.venue-banner h3 span {
  color: white;
  text-shadow: 0 4px 0 #111;
}
.venue-banner h3 strong {
  margin-top: 5px;
  color: #ffc524;
  text-shadow: 0 4px 0 #111;
}
.venue-banner p {
  margin: 9px 0 0;
  font: 900 clamp(.56rem, 2.75vw, .76rem)/1.05 "DM Sans", sans-serif;
  letter-spacing: .14em;
}

.venue-jeepney {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: 108%;
  max-width: 540px;
  margin: -36px auto 0;
  cursor: pointer;
  filter: drop-shadow(0 10px 9px #0007);
  -webkit-tap-highlight-color: transparent;
}
.venue-jeepney:focus-visible {
  border-radius: 20px;
  outline: 4px solid var(--yellow);
  outline-offset: 5px;
}
.venue-jeepney::after {
  content: "Tap to view map";
  position: absolute;
  z-index: 5;
  top: 7%;
  right: 14%;
  padding: 7px 11px;
  border: 2px solid white;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 4px 0 #a66c19, 0 8px 15px #0005;
  font-size: clamp(.56rem, 2.5vw, .7rem);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: mapTapPulse 1.45s ease-in-out infinite;
  transition: opacity .2s ease;
}
.venue-jeepney.is-revealed:not(.is-driving) > img:first-child {
  animation: jeepClickableBounce 1.8s ease-in-out infinite;
}
.venue-jeepney.is-driving {
  pointer-events: none;
}
.venue-jeepney.is-driving::after { opacity: 0; animation: none; }
.venue-jeepney.is-driving > img:first-child {
  animation: jeepDriveForward .85s cubic-bezier(.45, 0, .85, .4) forwards;
}
.venue-jeepney img {
  display: block;
  width: 100%;
  height: auto;
}
.venue-jeepney img.venue-jeepney__fans {
  position: absolute;
  z-index: 2;
  left: -48%;
  bottom: -8%;
  width: 82%;
  pointer-events: none;
  filter: drop-shadow(0 5px 5px #0005);
}

@keyframes jeepDriveForward {
  0% { transform: translateX(0) rotate(0); }
  18% { transform: translateX(-4%) rotate(-1.5deg); }
  34% { transform: translateX(1%) rotate(1deg); }
  100% { transform: translateX(115vw) rotate(1deg); }
}
@keyframes jeepClickableBounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-5px) rotate(-.7deg); }
  60% { transform: translateY(-2px) rotate(.5deg); }
}
@keyframes mapTapPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
.design-credit {
  position: relative;
  z-index: 4;
  width: calc(100% - 44px);
  margin: -10px 22px max(12px, env(safe-area-inset-bottom));
  color: #fff;
  font: 600 .72rem/1.2 "DM Sans", sans-serif;
  letter-spacing: .12em;
  text-align: right;
  text-shadow: 0 2px 5px #000b;
}
.design-credit a {
  color: inherit;
  text-decoration: none;
}
.design-credit strong {
  color: var(--yellow);
  font-weight: 900;
}
.design-credit a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.screen-credit {
  z-index: 9;
  margin: 0;
  color: white;
  font: 600 .65rem/1.2 "DM Sans", sans-serif;
  letter-spacing: .1em;
  text-align: right;
  text-shadow: 0 2px 5px #000b;
}
.screen-credit a { color: inherit; text-decoration: none; }
.screen-credit strong { color: var(--yellow); font-weight: 900; }
.screen-credit a:focus-visible { border-radius: 4px; outline: 2px solid var(--yellow); outline-offset: 4px; }
.screen-credit--welcome,
.screen-credit--loader { position: absolute; right: 14px; bottom: max(8px, env(safe-area-inset-bottom)); }
.screen-credit--loader {
  z-index: 20;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffffd9;
  text-shadow: none;
}
.screen-credit--loader strong { color: var(--red); }
.screen-credit--map { margin: 24px 4px 0; }

/* Scroll-triggered invitation reveals. These activate only when JavaScript is ready. */
.scroll-effects-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(34px) scale(.97);
  transition:
    opacity .75s ease var(--reveal-delay, 0ms),
    transform .85s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.scroll-effects-ready .scroll-reveal.reveal-from-left {
  transform: translateX(-34px) rotate(-1.5deg);
}
.scroll-effects-ready .scroll-reveal.reveal-from-right {
  transform: translateX(34px) rotate(1.5deg);
}
.scroll-effects-ready .scroll-reveal.reveal-pop {
  transform: translateY(22px) scale(.88) rotate(-2deg);
}
.scroll-effects-ready .scroll-reveal.is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.party-countdown {
  position: relative;
  z-index: 3;
  width: calc(100% - 30px);
  max-width: 450px;
  margin: 0 auto 24px;
  padding-top: 64px;
  text-align: center;
}
.party-countdown__date {
  position: relative;
  width: calc(100% + 22px);
  margin-left: -11px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border: 4px solid #b68222;
  border-radius: 15px;
  color: #17120f;
  background: #f4f1eb;
  box-shadow: 0 6px 13px #0005;
}
.party-countdown__date > span {
  position: relative;
  z-index: 3;
  flex: 0 0 29%;
  padding: 0 2px;
  font: 900 clamp(.8rem, 3.8vw, 1.1rem)/1 "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 72, "wght" 900;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.party-countdown__leaf {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  background: transparent;
  filter: drop-shadow(0 7px 5px #0005);
  transform: translate(-50%, -50%) rotate(3deg);
}
.party-countdown__leaf img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.party-countdown__leaf small { font: 900 .78rem/1 "Fraunces", serif; text-transform: uppercase; }
.party-countdown__leaf strong { font: 900 4.15rem/.8 "Fraunces", serif; }
.party-countdown__leaf em { font: 900 1rem/1 "Fraunces", serif; font-style: normal; }
.party-countdown__clock {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 2px;
  margin: 19px 12px 0;
  padding: 18px 9px 14px;
  border: 5px solid #bd8d1f;
  border-radius: 7px 20px 8px 18px;
  color: #17120f;
  background:
    repeating-linear-gradient(0deg, #d7af42 0 22px, #f2d87c 23px 25px, #9b7223 26px 29px) left 2px top / 10px 100% no-repeat,
    repeating-linear-gradient(0deg, #d7af42 0 22px, #f2d87c 23px 25px, #9b7223 26px 29px) right 2px top / 10px 100% no-repeat,
    linear-gradient(90deg, transparent 49%, #dedbd235 50% 51%, transparent 52%),
    linear-gradient(#fffefb, #e9e7e1);
  box-shadow: inset 0 0 18px #806f4b18, 0 8px 15px #0005;
}
.party-countdown__clock::before,
.party-countdown__clock::after {
  content: "✦";
  position: absolute;
  z-index: 4;
  width: 112px;
  height: 15px;
  display: flex;
  align-items: center;
  color: #72511b;
  border: 2px solid #9b7223;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #d7af42 0 22px, #f2d87c 23px 25px, #c3942b 26px 29px);
  box-shadow: 0 2px 3px #0004;
  font-size: .78rem;
}
.party-countdown__clock::before {
  left: -25px;
  top: -14px;
  justify-content: flex-start;
  padding-left: 7px;
  transform: rotate(1deg);
}
.party-countdown__clock::after {
  right: -25px;
  bottom: -13px;
  justify-content: flex-end;
  padding-right: 7px;
  transform: rotate(-1deg);
}
.party-countdown__clock {
  aspect-ratio: 1109 / 398;
  padding: 25px 33px 21px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.party-countdown__clock::before,
.party-countdown__clock::after { display: none; }
.party-countdown__frame-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: normal;
  pointer-events: none;
}
.party-countdown__frame-art.is-cutout { mix-blend-mode: normal; }
.party-countdown__clock > span,
.party-countdown__clock > i { position: relative; z-index: 2; }
.party-countdown__clock > span { align-self: center; }
.party-countdown__clock > i { align-self: center; margin-top: -10px; }
.party-countdown__clock span { min-width: 0; }
.party-countdown__clock b { display: block; font: 900 clamp(1.5rem, 8.5vw, 2.8rem)/1 "Fraunces", serif; }
.party-countdown__clock small { display: block; margin-top: 7px; font-size: .5rem; font-weight: 900; text-transform: uppercase; }
.party-countdown__clock i { margin-top: -10px; font: 900 1.8rem/1 "Fraunces", serif; font-style: normal; }
.party-countdown__seconds b { color: var(--red); }
.party-countdown > p { margin: 13px 0 0; color: white; font: 400 clamp(.84rem, 4.1vw, 1.08rem)/1.08 "Fraunces", serif; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 3px 8px #000; }
.date-card { width: 100%; padding: 14px 18px 17px; border: 2px solid #d6ad72; border-radius: 18px; background: #fffdf5cc; box-shadow: 0 10px 35px #8d5d2730; }
.date-card__month { margin: 0 0 8px; color: var(--red); text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; font-weight: 900; }
.date-card__date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-block: 1px solid #dfcaa6; }
.date-card__date span { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 700; }
.date-card__date strong { padding: 0 18px 4px; color: var(--ink); font: 900 4.3rem/1 "Fraunces", serif; }
.date-card__meta { display: grid; gap: 5px; margin-top: 12px; text-align: left; }
.date-card__meta p { display: grid; grid-template-columns: 22px 50px 1fr; margin: 0; color: #765a4e; font-size: .76rem; }
.date-card__meta p > span { color: var(--teal); font-weight: 900; }
.date-card__meta b { color: var(--ink); }

.actions { width: 100%; margin-top: 17px; }
.primary-button { width: 100%; min-height: 52px; border: 0; border-radius: 999px; color: white; background: var(--red); box-shadow: 0 6px 0 #9b241b, 0 12px 25px #bd372d45; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; }
.primary-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #9b241b; }
.primary-button:focus-visible, .text-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.text-button { margin-top: 16px; padding: 6px 10px; border: 0; color: #fff5db; background: transparent; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-note { margin: auto 0 0; padding-top: 23px; color: #f5ddb8; text-transform: uppercase; letter-spacing: .16em; font-size: .62rem; font-weight: 700; }

.confetti { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -24px; width: var(--piece-width, 10px); height: var(--piece-height, 18px); animation: fall var(--duration) var(--delay) ease-in forwards; border-radius: var(--piece-radius, 2px); background: var(--color); box-shadow: 0 2px 2px #0002; transform: rotate(var(--rotation)); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 99px; color: white; background: #23130eee; box-shadow: 0 8px 30px #0006; font-size: .78rem; font-weight: 700; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes point { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes fall { to { top: 110%; transform: translateX(var(--drift)) rotate(720deg); } }
@keyframes roadMove { to { transform: translateX(80px); } }
@keyframes jeepneyDrive {
  0% { transform: translateX(-110%) scale(.86); }
  25% { transform: translateX(-25%) scale(.92); }
  70% { transform: translateX(20%) scale(1); }
  100% { transform: translateX(145%) scale(.9); }
}
@keyframes jeepneyBounce { to { transform: translateY(-5px) rotate(-.7deg); } }
@keyframes vinylSpin { to { transform: rotate(360deg); } }
@keyframes equalizer { to { height: 14px; } }

@media (min-width: 521px) {
  body { padding: 24px 0; }
  .invitation { min-height: calc(100dvh - 48px); border-radius: 28px; }
  .welcome, .details { min-height: calc(100dvh - 48px); }
  .details__inner { min-height: calc(100dvh - 120px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scroll-effects-ready .scroll-reveal { opacity: 1; transform: none; }
}
