/* Pinyon Script is bundled (assets/fonts) so it renders the same on every phone. */
@font-face {
  font-family: 'Pinyon Script';
  src: url(assets/fonts/PinyonScript-Regular.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #050102;
  --cream: #f6eef0;
  --muted: #b69aa8;
  --hot: #ff0099;
  --blush: #ffc5d3;
  --mimi: #ffdae9;
  --line: rgba(255, 197, 211, 0.24);
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  /* Helvetica where the device has it (iPhone, Mac); Arial-metric fallbacks elsewhere */
  --sans: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: max(1.25rem, env(safe-area-inset-left));
  --fi: 10px; /* inset of the border frame */
  --corner: calc(var(--fi) + 16px); /* distance from the screen edge for anything sitting in a corner */
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.is-loading body { opacity: 0; }
body { transition: opacity 1.4s var(--ease); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }

.script { font-family: var(--script); font-weight: 400; line-height: 1.05; }

.label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blush);
}

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

.link {
  padding: 0.7rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.link:active { color: var(--blush); }

/* ---------- atmosphere: photo layers + pink light ---------- */
.atmos { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--black); contain: layout paint; }
/* a second copy of the background, shown only in the strip outside the frame line, so scrolling content is hidden there */
.atmos--band {
  z-index: 30; pointer-events: none;
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, var(--fi) var(--fi), var(--fi) calc(100% - var(--fi)), calc(100% - var(--fi)) calc(100% - var(--fi)), calc(100% - var(--fi)) var(--fi), var(--fi) var(--fi));
}

.atmos__img {
  position: absolute; inset: -6%;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0; transition: opacity 1.2s ease;
}
.atmos__img--gate {
  background-image: url(assets/gate-bg.jpg);
  background-position: 50% 14%;
  filter: contrast(1.1) brightness(1.05);
  animation: drift 40s ease-in-out infinite alternate;
}
.atmos__img--party {
  background-image: url(assets/leopard.jpg);
  background-size: 520px; background-repeat: repeat;
  filter: grayscale(1) contrast(1.4) brightness(1.25);
  inset: -2%;
}
.atmos__img--admin {
  background-image: url(assets/admin-bg.jpg);
  background-position: 50% 25%;
  filter: contrast(1.05) brightness(0.85);
}
body[data-view='gate'] .atmos__img--gate { opacity: 1; }
body[data-view='party'] .atmos__img--party { opacity: 0.8; }
body[data-view='admin'] .atmos__img--admin { opacity: 0.5; }

@keyframes drift {
  from { transform: scale(1.02) translate3d(-1%, -0.5%, 0); }
  to { transform: scale(1.1) translate3d(1%, 1%, 0); }
}

.leaks { position: absolute; inset: -20%; }
.leak { position: absolute; border-radius: 50%; will-change: transform; }
.leak--a {
  width: 90vmax; height: 90vmax; left: -30vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(255, 0, 153, 0.42), transparent 62%);
  animation: leak1 22s ease-in-out infinite alternate;
}
.leak--b {
  width: 80vmax; height: 80vmax; right: -30vmax; top: 30%;
  background: radial-gradient(circle, rgba(255, 197, 211, 0.24), transparent 62%);
  animation: leak2 28s ease-in-out infinite alternate;
}
.leak--c {
  width: 70vmax; height: 70vmax; left: 10%; bottom: -35vmax;
  background: radial-gradient(circle, rgba(255, 0, 153, 0.3), transparent 62%);
  animation: leak1 26s ease-in-out infinite alternate-reverse;
}
@keyframes leak1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes leak2 { to { transform: translate3d(-16vmax, -8vmax, 0) scale(0.9); } }

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(5, 1, 2, 0.1) 30%, rgba(5, 1, 2, 0.85) 100%);
}

/* follows the finger, the mouse, or the tilt of the phone */
.glow {
  position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; will-change: transform;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 153, 0.3), rgba(255, 197, 211, 0.1) 38%, transparent 68%);
}

.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; /* above the transition, sheets and flash so they stay grainy too */
  opacity: 0.235;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-4%, 3%, 0); }
  50% { transform: translate3d(3%, -4%, 0); }
  75% { transform: translate3d(-3%, -2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.frame { position: fixed; inset: var(--fi); z-index: 35; pointer-events: none; border: 1px solid var(--line); }

main { position: relative; z-index: 2; }

/* ---------- sound toggle ---------- */
.mute {
  position: fixed; z-index: 50;
  right: calc(var(--corner) + env(safe-area-inset-right)); bottom: calc(var(--corner) + env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--mimi);
  background: rgba(5, 1, 2, 0.55);
  border: 1px solid rgba(255, 197, 211, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 22px rgba(255, 0, 153, 0.35);
  transition: transform 0.25s var(--ease), background-color 0.3s;
}
.mute:active { transform: scale(0.92); }
.mute__slash { opacity: 0; }
.mute.is-muted { color: var(--muted); box-shadow: none; }
.mute.is-muted .mute__slash { opacity: 1; }
.mute.is-muted .mute__wave { opacity: 0; }
.mute:not(.is-muted) .mute__wave { animation: wave 1.8s ease-in-out infinite; }
@keyframes wave { 50% { opacity: 0.3; } }

/* ---------- gate ---------- */
.gate {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end; justify-items: center; text-align: center;
  padding: calc(3rem + env(safe-area-inset-top)) 1.5rem calc(3.6rem + env(safe-area-inset-bottom));
}
.gate::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 1, 2, 0.94) 0%, rgba(5, 1, 2, 0.78) 38%, rgba(5, 1, 2, 0) 68%);
}
.gate__inner { position: relative; width: min(760px, 100%); }

.gate__lead {
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  color: var(--cream);
  opacity: 0; animation: rise 1.2s var(--ease) 0.3s forwards;
}

/* glow sits on the wrapper so the reveal's clip edge never shows as a box */
.gate__title {
  margin: 0.4rem auto 0; width: min(100%, 680px);
  filter: drop-shadow(0 0 26px rgba(255, 0, 153, 0.6)) drop-shadow(0 0 2px rgba(255, 218, 233, 0.7));
}
.gate__title img {
  width: 100%;
  clip-path: inset(0 100% 0 0);
  animation: write 1.9s var(--ease) 0.9s forwards;
}
@keyframes write { to { clip-path: inset(-10% -5% -10% -5%); } }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.gate__form {
  margin-top: 1.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  opacity: 0; animation: rise 1.2s var(--ease) 2.4s forwards;
}

.gate__form input {
  width: min(420px, 100%);
  background: transparent; border: 0; outline: 0; border-radius: 0;
  border-bottom: 1px solid rgba(246, 238, 240, 0.45);
  padding: 0.8rem 0.25rem;
  text-align: center;
  font-family: var(--sans); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream);
  caret-color: var(--hot);
  background-image: linear-gradient(var(--hot), var(--hot));
  background-repeat: no-repeat; background-position: center bottom; background-size: 0 2px;
  transition: background-size 0.6s var(--ease);
}
.gate__form input::placeholder { color: rgba(246, 238, 240, 0.34); font-size: 0.86rem; letter-spacing: 0.2em; }
.gate__form input:focus { background-size: 100% 2px; }

.gate__error { min-height: 3em; max-width: 320px; font-size: 0.9rem; color: var(--mimi); }

.btn {
  position: relative; overflow: hidden;
  margin-top: 0.6rem; min-height: 56px; padding: 1rem 2.6rem;
  background: var(--hot);
  border: 1px solid var(--mimi);
  color: var(--black);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  box-shadow: 0 0 34px rgba(255, 0, 153, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.3s, opacity 0.3s;
}
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: sheen 4.5s var(--ease) 3.4s infinite;
}
.btn span { position: relative; z-index: 1; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; box-shadow: none; pointer-events: none; }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 140%; } }

.shake { opacity: 1; animation: shake 0.45s; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---------- party ---------- */
.party { position: relative; }
.party > *:not(.sparkles) { position: relative; z-index: 2; }

.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.sparkle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--mimi); box-shadow: 0 0 8px 2px rgba(255, 0, 153, 0.85);
  opacity: 0; animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 0.9; transform: scale(1.3); }
}

.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(1.2rem + env(safe-area-inset-top)) var(--corner) 0;
}
.party .bar { justify-content: flex-end; }

/* chrome disco ball swinging from the top of the page */
.disco {
  position: absolute; z-index: 4; top: -2px; left: calc(var(--corner) - 8px);
  width: clamp(84px, 24vw, 150px); height: auto;
  transform-origin: 50% 0;
  animation: swing 6s ease-in-out infinite;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
@keyframes swing { 0%, 100% { transform: rotate(-4.5deg); } 50% { transform: rotate(4.5deg); } }

.bar__who { display: flex; align-items: center; gap: 1.2rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }

.hero {
  min-height: 86vh; min-height: 86svh;
  display: grid; place-items: center; text-align: center;
  padding: 6rem 1.25rem 4.5rem; position: relative;
}
.hero__eyebrow { opacity: 0; animation: rise 1.2s var(--ease) 0.3s forwards; }
.hero__title {
  margin: 1.4rem auto 1.6rem; width: min(100%, 860px);
  filter: drop-shadow(0 0 30px rgba(255, 0, 153, 0.6)) drop-shadow(0 0 2px rgba(255, 218, 233, 0.7));
}
.hero__title img {
  width: 100%;
  clip-path: inset(0 100% 0 0);
  animation: write 2s var(--ease) 0.7s forwards, flicker 8s linear 4s infinite;
}
@keyframes flicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20% { opacity: 0.78; }
  63% { opacity: 0.88; }
}
.hero__date {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: clamp(1.05rem, 4.6vw, 1.7rem);
  opacity: 0; animation: rise 1.2s var(--ease) 2s forwards;
}
.cue { position: absolute; bottom: calc(1.8rem + env(safe-area-inset-bottom)); left: 50%; width: 2px; height: 54px; background: rgba(255, 218, 233, 0.22); overflow: hidden; }
.cue span { position: absolute; left: 0; top: -40%; width: 2px; height: 40%; background: linear-gradient(to bottom, rgba(255, 218, 233, 0), #ffdae9 60%, #fff0f5); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

.ribbon {
  background: var(--hot); color: var(--black);
  transform: rotate(-1.8deg) scale(1.05);
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(255, 218, 233, 0.8);
  box-shadow: 0 0 60px rgba(255, 0, 153, 0.5);
  margin: 1rem 0 3.5rem;
}
.ribbon__track { display: inline-flex; animation: marquee 34s linear infinite; }
.ribbon__item {
  display: inline-flex; align-items: center; gap: 1.8rem; padding: 1rem 1rem 1rem 0;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
}
.ribbon__item i { width: 6px; height: 6px; border-radius: 50%; background: var(--black); }
@keyframes marquee { to { transform: translateX(-50%); } }

.details { display: grid; grid-template-columns: 1fr; gap: 0.4rem; }
.fact { padding: 1.6rem 1.25rem; text-align: center; }
.fact .label { margin-bottom: 1.1rem; }
.big { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(1.35rem, 6vw, 2.1rem); line-height: 1.2; }
.sub { margin-top: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-size: 1rem; }

.locked {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-top: 1.2rem; padding: 0.85rem 1.1rem;
  border: 1px dashed rgba(255, 197, 211, 0.5);
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--cream); text-align: left;
}
.locked svg { flex: none; color: var(--hot); animation: nudge 3s ease-in-out infinite; }
@keyframes nudge { 0%, 90%, 100% { transform: none; } 94% { transform: rotate(-12deg); } 97% { transform: rotate(10deg); } }

/* address + map: the stand-in is blurred behind the lock, and the blur lifts once the guest RSVPs yes */
.venue { position: relative; margin: 1.4rem auto 0; max-width: 460px; border: 1px solid rgba(255, 197, 211, 0.4); box-shadow: 0 0 50px rgba(255, 0, 153, 0.2); overflow: hidden; }
.venue__art { position: relative; aspect-ratio: 820 / 460; background: #14040c; }
.venue__art > * { transition: filter 1.1s var(--ease), transform 1.1s var(--ease); }
.venue__map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue__pin { position: absolute; left: 50%; top: 36%; width: 11%; translate: -42% -86%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }
.venue__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 1, 2, 0.9), rgba(5, 1, 2, 0) 62%); pointer-events: none; }
.venue__addr {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.1rem 1rem 1rem;
  font-style: normal; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.86rem; font-weight: 600; line-height: 1.7; text-align: center;
  text-shadow: 0 2px 10px #000;
}
.venue__addr span { display: block; }
.venue.is-locked .venue__map, .venue.is-locked .venue__pin, .venue.is-locked .venue__addr { filter: blur(7px); transform: scale(1.06); }
.venue.is-locked .venue__art { user-select: none; -webkit-user-select: none; }
.venue__lock {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1rem 1.4rem; text-align: center;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; line-height: 1.7;
  background: radial-gradient(ellipse at center, rgba(5, 1, 2, 0.62), rgba(5, 1, 2, 0.2) 80%);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.venue__lock svg { color: var(--hot); filter: drop-shadow(0 0 8px rgba(255, 0, 153, 0.8)); animation: nudge 3s ease-in-out infinite; }
.venue:not(.is-locked) .venue__lock { opacity: 0; visibility: hidden; pointer-events: none; }
.venue.no-map .venue__map, .venue.no-map .venue__pin { display: none; }
.maplink { display: inline-block; margin-top: 1rem; padding: 0.7rem 0; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blush); text-decoration: underline; text-underline-offset: 4px; }

.notes { display: grid; grid-template-columns: 1fr; margin-top: 0.4rem; }
.note { padding: 1rem 1.25rem; text-align: center; }
.note .label { display: block; margin-bottom: 0.4rem; color: var(--muted); }
.note p { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; }

/* ---------- dress code + outfit inspo ---------- */
.look { padding: 0; overflow: hidden; }
.look__head { text-align: center; position: relative; }
.look__word {
  margin-top: 0.4rem;
  padding-top: 0.2rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1;
  font-size: clamp(2.6rem, 15.5vw, 5.4rem);
  color: var(--mimi);
  transform: rotate(-4deg);
  text-shadow: 0 0 40px rgba(255, 0, 153, 0.65), 0 4px 18px rgba(0, 0, 0, 0.7);
}

.doodle { position: relative; width: min(320px, 86%); height: 150px; margin: 3.4rem auto 0.2rem; color: var(--mimi); text-align: left; }
.doodle__note { position: absolute; left: 0; top: 0; font-size: 2.9rem; rotate: -5deg; text-shadow: 0 0 24px rgba(255, 0, 153, 0.6); white-space: nowrap; }
.doodle__line { position: absolute; left: 1%; top: 3.7rem; width: 58%; height: auto; }
.doodle__arrow { position: absolute; left: 46%; top: 3.4rem; width: 96px; height: auto; filter: drop-shadow(0 0 8px rgba(255, 0, 153, 0.55)); }
.doodle__arrow path, .doodle__line path { stroke-dasharray: 1.01; stroke-dashoffset: 1.01; }
.doodle.in .doodle__line path { animation: draw 0.9s var(--ease) 0.3s forwards; }
.doodle.in .doodle__arrow path { animation: draw 1.5s var(--ease) 0.7s forwards; }
.doodle.in .doodle__arrow .doodle__head { animation-duration: 0.5s; animation-delay: 2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.doodle__spark { position: absolute; width: 20px; color: var(--hot); filter: drop-shadow(0 0 6px rgba(255, 0, 153, 0.8)); animation: twinkle 3s ease-in-out infinite; }
.doodle__spark--a { left: 72%; top: 0.3rem; }
.doodle__spark--b { left: 86%; top: 2.2rem; width: 14px; animation-delay: 1.2s; }

.collage {
  position: relative; width: min(100% - 2.5rem, 520px); margin: 0 auto;
  aspect-ratio: 390 / 790;
}
.pic {
  position: absolute; margin: 0;
  left: var(--l); top: var(--t); width: var(--w); z-index: var(--z);
  rotate: calc(var(--r) + var(--sr, 0deg));
  will-change: translate;
}
.pic__btn { position: relative; display: block; width: 100%; padding: 0; }
.pic img { width: 100%; height: auto; }

/* cut-outs: black and white with a slightly mis-registered pink print edge */
.pic--cut img {
  filter: grayscale(1) contrast(1.12) drop-shadow(-3px 0 0 rgba(255, 0, 153, 0.7)) drop-shadow(3px 0 0 rgba(255, 218, 233, 0.6)) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
}
/* photos: taped-up polaroids, black and white with a pink wash */
.pic--photo .pic__btn {
  padding: 4.5% 4.5% 15%;
  background: var(--mimi);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 0, 153, 0.3);
}
.pic--photo img { filter: grayscale(1) contrast(1.15) brightness(0.98); }
.pic--photo .pic__btn::after {
  content: ''; position: absolute; inset: 4.5% 4.5% 15%;
  background: var(--hot); mix-blend-mode: soft-light; opacity: 0.55; pointer-events: none;
}
.pic--photo:not(.pic--pinned)::before {
  content: ''; position: absolute; z-index: 2; top: -3.5%; left: 50%; width: 34%; height: 8%;
  translate: -50% 0; rotate: -5deg;
  background: rgba(255, 197, 211, 0.72); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
/* this one is held up with a chrome safety pin instead of tape */
.pic__safety { position: absolute; z-index: 3; top: -9%; right: -9%; width: 52%; rotate: 28deg; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55)); pointer-events: none; }
.pic--pinned img.pic__safety { width: 52%; }

.pic.snap .pic__btn { animation: snap 0.5s var(--ease); }
.pic--cut.snap img { animation: develop-cut 1.6s ease-out; }
.pic--photo.snap img { animation: develop-photo 1.6s ease-out; }
@keyframes snap { 0% { transform: scale(1); } 20% { transform: scale(1.06) rotate(-1deg); } 100% { transform: scale(1); } }
@keyframes develop-cut {
  0%, 15% { filter: grayscale(0) contrast(1.05) drop-shadow(-3px 0 0 rgba(255, 0, 153, 0.7)) drop-shadow(3px 0 0 rgba(255, 218, 233, 0.6)) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55)); }
  100% { filter: grayscale(1) contrast(1.12) drop-shadow(-3px 0 0 rgba(255, 0, 153, 0.7)) drop-shadow(3px 0 0 rgba(255, 218, 233, 0.6)) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55)); }
}
@keyframes develop-photo {
  0%, 15% { filter: grayscale(0) contrast(1.05) brightness(1); }
  100% { filter: grayscale(1) contrast(1.15) brightness(0.98); }
}

/* sits in the middle of the collage; taps pass straight through to the pics underneath */
.flashme {
  position: absolute; z-index: 9; left: 50%; top: 40%; translate: -50% -50%; rotate: -6deg;
  padding: 0.55rem 0.95rem; background: var(--hot); color: var(--black);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 30px rgba(255, 0, 153, 0.55), 0 6px 14px rgba(0, 0, 0, 0.5);
  pointer-events: none; animation: bob 3.6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: -50% calc(-50% - 5px); } }

.count { position: relative; text-align: center; padding: 1.6rem 0 0; }
.count__grid { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 640px; margin-inline: auto; }
.count__grid div { padding: 0.5rem 0; }
.count__grid div + div { border-left: 1px solid var(--line); }
.count__grid b { display: block; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2rem, 9vw, 3.8rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.count__grid span { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }

.pres { padding-top: 4.5rem; }
.pres__card {
  position: relative; overflow: hidden; text-align: center;
  padding: 3rem 1.25rem;
  border: 1px solid rgba(255, 197, 211, 0.45);
  background:
    linear-gradient(rgba(5, 1, 2, 0.55), rgba(5, 1, 2, 0.82)),
    url(assets/pres-bg.jpg) center 28% / cover;
  box-shadow: 0 0 80px rgba(255, 0, 153, 0.28), inset 0 0 80px rgba(0, 0, 0, 0.6);
}
.pres__card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 150, 210, 0.2) 50%, transparent 60%);
  transform: translateX(-100%); animation: scan 7s ease-in-out 1s infinite;
}
@keyframes scan { 55%, 100% { transform: translateX(100%); } }
.pres__title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(2rem, 9.5vw, 3.4rem); line-height: 1.05; color: var(--mimi); margin: 0.9rem 0 1.8rem; text-shadow: 0 0 36px rgba(255, 0, 153, 0.6); }
.pres__grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; max-width: 720px; margin-inline: auto; }
.pres__grid .label { color: var(--muted); margin-bottom: 0.5rem; }
.pres__grid p { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.25rem; }
.pres__grid address { font-style: normal; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.92rem; line-height: 1.9; margin-top: 0.6rem; }
.pres__grid address span { display: block; }

/* ---------- rsvp ---------- */
.rsvp { text-align: center; padding: 4rem 0 0; }
.portrait { position: relative; width: min(60vw, 280px); margin: 0 auto 2.4rem; }
.portrait__img { width: 100%; }
.portrait__heart {
  position: absolute; z-index: 3; width: 46%; right: -10%; bottom: -5%; rotate: 12deg;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55));
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 50% { translate: 0 -9px; rotate: 6deg; } }

.rsvp__title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1.9rem, 9vw, 3.4rem); line-height: 1.05; margin: 1rem 0 2.2rem; color: var(--cream); }
.rsvp__choices { display: flex; flex-direction: column; gap: 0.9rem; max-width: 420px; margin-inline: auto; }
.choice {
  position: relative; overflow: hidden;
  min-height: 62px; padding: 1.1rem 2rem;
  border: 1px solid var(--blush);
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600;
  transition: transform 0.25s var(--ease), background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.choice span { position: relative; z-index: 1; }
.choice--yes { background: rgba(255, 0, 153, 0.18); color: var(--mimi); }
.choice--no { border-color: rgba(246, 238, 240, 0.3); color: var(--muted); }
.choice:active { transform: scale(0.97); }
.choice--yes.on { background: var(--hot); color: var(--black); font-weight: 700; box-shadow: 0 0 40px rgba(255, 0, 153, 0.55); }
.choice--no.on { background: rgba(246, 238, 240, 0.12); color: var(--cream); border-color: var(--cream); }
.choice.busy { pointer-events: none; opacity: 0.6; }

.rsvp__status { min-height: 3.2rem; margin-top: 1.8rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; font-size: 0.8rem; line-height: 1.8; }

/* after replying: the status, then a small box to change your mind */
.rsvp__done { max-width: 420px; margin-inline: auto; animation: rise 0.7s var(--ease) both; }
.rsvp__done .rsvp__status { min-height: 0; margin: 0 0 1.4rem; font-weight: 700; font-size: clamp(1.05rem, 4.6vw, 1.35rem); letter-spacing: 0.1em; color: var(--mimi); text-shadow: 0 0 24px rgba(255, 0, 153, 0.5); }
.rsvp__yes { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; margin-bottom: 1.4rem; }
.calendar {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem; width: 100%;
  padding: 1rem 1.4rem; background: var(--hot); color: var(--black); text-decoration: none;
  box-shadow: 0 0 34px rgba(255, 0, 153, 0.45); transition: transform 0.25s var(--ease);
}
.calendar:active { transform: scale(0.97); }
.calendar__main { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.calendar__note { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.78; }
.choice--nvm { width: 100%; min-height: 54px; padding: 0.95rem 1.4rem; border-color: rgba(246, 238, 240, 0.3); color: var(--muted); font-size: 0.7rem; }
.plusone { max-width: 34ch; margin: 3rem auto 0; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em; line-height: 2; text-transform: uppercase; color: var(--muted); }

/* "What's your excuse?" */
.excuse { max-width: 520px; margin: 2rem auto 0; text-align: left; animation: rise 0.7s var(--ease) both; }
.excuse__title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(1.3rem, 6vw, 1.8rem); color: var(--hot); text-align: center; text-shadow: 0 0 24px rgba(255, 0, 153, 0.5); }
.excuse__hint { margin: 0.5rem 0 1.3rem; text-align: center; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem; color: var(--muted); }
.excuse textarea {
  display: block; width: 100%; min-height: 9rem; resize: vertical;
  padding: 1rem 1.1rem; border-radius: 0;
  background: rgba(5, 1, 2, 0.6); border: 1px solid rgba(255, 0, 153, 0.6); outline: 0;
  font: inherit; font-size: 1rem; line-height: 1.6; color: var(--cream); caret-color: var(--hot);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.excuse textarea::placeholder { color: rgba(246, 238, 240, 0.3); }
.excuse textarea:focus { border-color: var(--hot); box-shadow: 0 0 30px rgba(255, 0, 153, 0.3); }
.excuse__count { margin-top: 0.7rem; text-align: right; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.66rem; color: var(--muted); }
.excuse__count.ok { color: var(--hot); }
.excuse .btn { display: block; width: 100%; margin-top: 1rem; }
.excuse .link { display: block; margin: 0.6rem auto 0; }
.excuse__error { min-height: 1.5em; margin-top: 0.8rem; text-align: center; font-size: 0.85rem; color: var(--mimi); }

/* ---------- name confirmation sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; align-items: end; padding: 0; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(5, 1, 2, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.3s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet__panel {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto;
  padding: 2.4rem 1.4rem calc(1.6rem + env(safe-area-inset-bottom));
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 0, 153, 0.28), transparent 65%),
    #0d0309;
  border: 1px solid rgba(255, 197, 211, 0.55);
  box-shadow: 0 0 80px rgba(255, 0, 153, 0.35);
  animation: sheet-up 0.55s var(--ease) both;
}
@keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
.sheet__title { margin-top: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(1.5rem, 7vw, 2rem); color: var(--mimi); text-shadow: 0 0 26px rgba(255, 0, 153, 0.55); }
.sheet__text { margin: 0.6rem auto 1.6rem; max-width: 30ch; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; line-height: 1.8; color: var(--muted); }
.sheet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; text-align: left; }
.sheet__row label { display: block; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blush); }
.sheet__row input {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.7rem 0.15rem; border-radius: 0;
  background: transparent; border: 0; outline: 0; border-bottom: 1px solid rgba(246, 238, 240, 0.45);
  font-family: var(--sans); font-weight: 500; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); caret-color: var(--hot);
  background-image: linear-gradient(var(--hot), var(--hot));
  background-repeat: no-repeat; background-position: center bottom; background-size: 0 2px;
  transition: background-size 0.5s var(--ease);
}
.sheet__row input:focus { background-size: 100% 2px; }
.sheet__error { min-height: 1.6em; margin-top: 0.9rem; font-size: 0.85rem; color: var(--mimi); }
.sheet__panel .btn { width: 100%; margin-top: 0.4rem; padding-inline: 1rem; }
.sheet__panel .link { margin-top: 0.4rem; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 0 1.5rem calc(4.5rem + env(safe-area-inset-bottom)); }
/* the wavy chrome frame with a photo of Mimi behind it */
.foot__frame { position: relative; width: min(66vw, 280px); margin: 0 auto 2.4rem; rotate: -3deg; aspect-ratio: 431 / 567; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.6)); }
.foot__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); -webkit-mask: url(assets/frame-fill.png) center / 100% 100% no-repeat; mask: url(assets/frame-fill.png) center / 100% 100% no-repeat; }
.foot__frame::before { content: ''; position: absolute; inset: 0; z-index: 1; -webkit-mask: url(assets/frame-fill.png) center / 100% 100% no-repeat; mask: url(assets/frame-fill.png) center / 100% 100% no-repeat; background: var(--hot); mix-blend-mode: soft-light; opacity: 0.6; pointer-events: none; }
.foot__chrome { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.foot .label { color: var(--muted); }
.foot__x { font-size: 4.2rem; color: var(--mimi); margin-top: 0.8rem; text-shadow: 0 0 30px rgba(255, 0, 153, 0.6); }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- admin ---------- */
.admin { min-height: 100vh; padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
.admin__inner { position: relative; }
.admin .bar { position: relative; padding-inline: 0; padding-top: calc(1.6rem + env(safe-area-inset-top)); }
@media (max-width: 1120px) { .admin .bar { padding-inline: calc(var(--corner) - 1.25rem); } }
.badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 1rem; border: 1px solid #fff;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700;
  color: var(--black); background: #fff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.3);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #e5112f; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }

.admin__head { text-align: center; padding: 3rem 0 2.5rem; }
.admin__title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(2rem, 9.5vw, 3.6rem); line-height: 1.05; color: var(--mimi); margin-top: 1rem; text-shadow: 0 0 40px rgba(255, 0, 153, 0.55); }
.admin__meta { margin-top: 1rem; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--line); background: rgba(5, 1, 2, 0.6); }
.stat { padding: 1.8rem 1rem; text-align: center; }
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stat b { display: block; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: 1.1; }
.stat span { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.stat--yes b { color: var(--hot); text-shadow: 0 0 24px rgba(255, 0, 153, 0.5); }

.admin__copy { margin-top: 2rem; text-align: center; }
.admin__copy .btn { margin-top: 0; width: min(100%, 360px); }
.admin__copy .btn.done { background: var(--mimi); box-shadow: 0 0 34px rgba(255, 218, 233, 0.5); }
.admin__hint { margin-top: 0.8rem; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* add a guest */
.addguest { margin-top: 2.2rem; border: 1px solid var(--line); background: rgba(5, 1, 2, 0.6); }
.addguest__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0.9rem 1.2rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mimi);
}
.addguest__toggle i { position: relative; width: 14px; height: 14px; }
.addguest__toggle i::before, .addguest__toggle i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--hot); transition: transform 0.3s var(--ease); }
.addguest__toggle i::after { transform: rotate(90deg); }
.addguest__toggle[aria-expanded='true'] i::after { transform: rotate(0); }
.addguest__form { padding: 0.2rem 1.2rem 1.4rem; animation: rise 0.6s var(--ease) both; }
.addguest__lead { margin-bottom: 1.2rem; font-size: 0.64rem; letter-spacing: 0.18em; line-height: 1.9; text-transform: uppercase; color: var(--muted); }
.field { display: block; margin-bottom: 1.1rem; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blush); }
.field input {
  display: block; width: 100%; margin-top: 0.2rem; padding: 0.7rem 0.1rem; border-radius: 0;
  background: transparent; border: 0; outline: 0; border-bottom: 1px solid rgba(246, 238, 240, 0.4);
  font-family: var(--sans); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--cream); caret-color: var(--hot);
  background-image: linear-gradient(var(--hot), var(--hot)); background-repeat: no-repeat; background-position: center bottom; background-size: 0 2px;
  transition: background-size 0.5s var(--ease);
}
.field input:focus { background-size: 100% 2px; }
.field input::placeholder { color: rgba(246, 238, 240, 0.3); text-transform: none; letter-spacing: 0.04em; }
.seg { border: 0; margin: 0 0 1.2rem; min-width: 0; }
.seg legend { margin-bottom: 0.55rem; padding: 0; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blush); }
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg legend { flex: 0 0 100%; }
.seg label { position: relative; flex: 1 1 0; min-width: 5.5rem; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; min-height: 48px; padding: 0.5rem 0.6rem; border: 1px solid var(--line); text-align: center;
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.seg input:checked + span { background: var(--hot); border-color: var(--hot); color: var(--black); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--mimi); outline-offset: 2px; }
.addguest__msg { min-height: 1.6em; margin: 0.2rem 0 0.6rem; font-size: 0.82rem; color: var(--mimi); }
.addguest__msg.err { color: #ff9ab8; }
.addguest__form .btn { width: 100%; margin-top: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 2rem 0 1.2rem; }
.filters button {
  min-height: 44px; padding: 0.65rem 1.1rem; border: 1px solid var(--line);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  transition: background-color 0.3s, color 0.3s;
}
.filters button:active { transform: scale(0.97); }
.filters button.on { background: var(--hot); border-color: var(--hot); color: var(--black); font-weight: 700; }

.guests { list-style: none; }
.guest {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.7rem 0.8rem;
  padding: 1.3rem 0.25rem; border-bottom: 1px solid var(--line);
}
.guests.anim .guest { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.guest__name { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1rem, 4.4vw, 1.3rem); overflow-wrap: anywhere; }
.guest__meta { display: block; margin-top: 0.25rem; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.pill {
  padding: 0.55rem 0.9rem; border: 1px solid var(--line);
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap;
}
.pill--yes { background: var(--hot); border-color: var(--hot); color: var(--black); font-weight: 700; box-shadow: 0 0 22px rgba(255, 0, 153, 0.45); }
.pill--no { color: var(--muted); border-color: rgba(246, 238, 240, 0.25); text-decoration: line-through; text-decoration-color: rgba(246, 238, 240, 0.4); }
.pill--none { color: var(--blush); border-style: dashed; border-color: rgba(255, 197, 211, 0.6); }
.guest__excuse {
  grid-column: 1 / -1; margin-top: 0.2rem; padding: 0.95rem 1.1rem;
  border-left: 2px solid var(--hot); background: rgba(255, 0, 153, 0.1);
  font-size: 0.98rem; line-height: 1.6; overflow-wrap: anywhere;
}
.guest__excuse span { display: block; margin-bottom: 0.4rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--hot); }
.guests__empty { padding: 3rem 0; text-align: center; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; color: var(--muted); }

/* ---------- effects ---------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: all; }
.foil { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }

.flashfx { position: fixed; inset: 0; z-index: 55; pointer-events: none; background: #fff; opacity: 0; }
.flashfx.pop { animation: flash 0.55s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 0.92; } 100% { opacity: 0; } }

/* ---------- larger screens ---------- */
@media (min-width: 760px) {
  .wrap { width: min(1080px, 100% - 3rem); }
  .details { grid-template-columns: 1fr 1fr; }
  .fact { padding: 3.2rem 2rem; }
  .notes { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .look__word { font-size: clamp(3.6rem, 7vw, 6rem); }
  .doodle { width: 340px; height: 160px; }
  .collage { width: min(100% - 3rem, 940px); aspect-ratio: 940 / 560; }
  .pic { left: var(--dl); top: var(--dt); width: var(--dw); rotate: calc(var(--dr) + var(--sr, 0deg)); }
  .pres__card { padding: 4.5rem 1.5rem; }
  .pres__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
  .rsvp__choices { flex-direction: row; max-width: none; justify-content: center; }
  .choice { min-width: 250px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(n) { border-top: 0; border-left: 0; }
  .stat + .stat { border-left: 1px solid var(--line); }
  :root { --fi: 14px; }
  .sheet { align-items: center; padding: 1rem; }
  .sheet__panel { padding-top: 3.6rem; }
}

@media (min-width: 900px) {
  .atmos__img--gate { background-size: auto 118%; background-position: 80% 24%; }
  .gate { align-items: center; justify-items: start; padding-inline: 7vw; }
  .gate::before { background: linear-gradient(to right, rgba(5, 1, 2, 0.92) 0%, rgba(5, 1, 2, 0.7) 42%, rgba(5, 1, 2, 0) 66%); }
  .gate__inner { width: min(620px, 50vw); }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .gate__lead, .gate__form, .hero__eyebrow, .hero__date { opacity: 1; }
  .gate__title img, .hero__title img { clip-path: none; }
  .doodle__arrow path, .doodle__line path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}

/* remove a guest */
.trash { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -0.5rem; color: var(--muted); transition: color 0.25s, transform 0.25s var(--ease); }
.trash:active { transform: scale(0.9); color: var(--hot); }

/* pushpin on the balcony polaroid (the tape is dropped on this one) */
.pic--pushed::before { display: none; }
.pic img.pic__push { position: absolute; z-index: 3; top: -2.5%; left: 50%; width: 9%; translate: -50% -34%; rotate: 14deg; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); pointer-events: none; }

/* balloons: one per spot, never more than a couple on screen */
.portrait__balloon { position: absolute; height: auto; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5)); }
@keyframes bob-balloon { 0%, 100% { translate: 0 0; } 50% { translate: 4px -14px; } }
.portrait__balloon { z-index: 2; left: -4%; top: 8%; width: 30%; rotate: -12deg; animation: bob-balloon 8s ease-in-out infinite reverse; }
.portrait__img { position: relative; z-index: 1; }
.foot { position: relative; }
.foot__sign { position: relative; display: inline-block; }
.foot__kiss { position: absolute; left: 104%; top: 30%; width: 46px; height: auto; rotate: 14deg; opacity: 0.92; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)); pointer-events: none; }

.addguest__mode { display: block; margin: -0.2rem 0 1.2rem; padding: 0.5rem 0; color: var(--blush); text-decoration: underline; text-underline-offset: 4px; }
.field textarea {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.8rem; border-radius: 0; resize: vertical;
  background: rgba(5, 1, 2, 0.6); border: 1px solid rgba(255, 197, 211, 0.35); outline: 0;
  font-family: var(--sans); font-size: 1rem; line-height: 1.6; letter-spacing: 0.02em; color: var(--cream); caret-color: var(--hot);
}
.field textarea:focus { border-color: var(--hot); }
.field textarea::placeholder { color: rgba(246, 238, 240, 0.3); }

.sheet__panel { overflow: hidden; }

/* lace edge: a soft pink divider made from a seamless repeating tile, faded at both ends */
.lace-edge { height: 70px; margin: 4.5rem 0; filter: drop-shadow(0 0 12px rgba(255, 0, 153, 0.4)); pointer-events: none; }
.lace-edge::before {
  content: ''; display: block; height: 100%;
  background: url(assets/lace-tile.png) repeat-x center / auto 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.lace-edge--flip { scale: -1 1; margin-bottom: 5.2rem; }
.lace-edge--flip::before { background-position: 37% center; }

/* black lily resting on the bottom-left corner of the framed photo */
.foot__lily { position: absolute; z-index: 3; left: -21%; bottom: -8%; width: 48%; height: auto; rotate: -8deg; pointer-events: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 6px rgba(255, 197, 211, 0.35)); }

/* admin: pres address */
.presbox { margin-top: 2.2rem; padding: 1.2rem; border: 1px solid var(--line); background: rgba(5, 1, 2, 0.6); }
.presbox__title { margin-bottom: 1rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mimi); }
.presbox__addr { font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; line-height: 1.8; }
.presbox__addr span { display: block; }
.presbox__hint { margin-top: 0.6rem; font-size: 0.62rem; letter-spacing: 0.2em; line-height: 1.8; text-transform: uppercase; color: var(--muted); }
.presbox__edit { margin-top: 0.4rem; color: var(--blush); text-decoration: underline; text-underline-offset: 4px; }
.presbox form .btn { width: 100%; margin-top: 0; }
.presbox form .link { display: block; margin: 0.6rem auto 0; }
.presbox .field { margin-bottom: 0.6rem; }
