:root {
  --night: #2b070c;
  --night-2: #460b12;
  --wine: #5c1017;
  --wine-ink: #7c1a22;
  --paper: #f9efe5;
  --paper-2: #f3e5d6;
  --paper-3: #ead8c5;
  --ink: #2b1613;
  --ink-soft: #6e5850;
  --cream: #f7ebdc;
  --cream-soft: rgba(247, 235, 220, .66);
  --gold: #c09a5b;
  --gold-ink: #a8803f;
  --gold-light: #d9b77d;
  --script: "Parisienne", "Cormorant Garamond", cursive;
  --velvet: radial-gradient(70% 45% at 50% 64%, rgba(255, 196, 128, .13), transparent 70%), radial-gradient(130% 95% at 50% 42%, #6c151c 0%, #430a11 52%, #1f0408 100%);
  --ivory: radial-gradient(120% 80% at 50% 38%, #fcf8f1 0%, #f4eadc 62%, #ebdcc8 100%);
  --line-dark: rgba(43, 22, 19, .14);
  --line-light: rgba(247, 235, 220, .16);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5.2vw, 72px);
  --top: calc(env(safe-area-inset-top) + 18px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

html.is-loading,
html.is-loading body,
html.is-playing,
html.is-playing body {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .35 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

em,
i {
  font-style: italic;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--wine);
  color: var(--cream);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:is(.invite__text, .family__names, .night__title, .night__venue, .count__title, .count__done, .mem__title, .drop__title, .wall__empty em, .lightbox__caption b, .outro__lead, .hero__night-date) {
  font-style: italic;
  font-weight: 500;
}

:is(.invite__text, .night__title, .count__title, .count__done, .mem__title, .outro__lead) em {
  font-weight: 400;
}

[data-lines]:has(> .textline-mask) {
  display: flex;
  flex-direction: column;
}

.textline-mask {
  margin: -.28em -.08em;
  padding: .28em .08em;
}

.names {
  --foil: linear-gradient(180deg, #fbe9b8 0%, #f2d595 30%, #ddb76e 47%, #bd8f4d 61%, #d6ae69 76%, #f1d99e 100%);
  --foil-base: #c79d58;
  --foil-depth: drop-shadow(0 .02em .05em rgba(20, 3, 6, .4));
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--foil-base);
  filter: var(--foil-depth);
}

.names__part {
  position: relative;
  display: inline-block;
  margin: -.2em -.24em;
  padding: .2em .24em;
  white-space: nowrap;
  color: var(--foil-base);
  -webkit-text-stroke: .02em var(--foil-base);
}

.names__part::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  padding: inherit;
  white-space: nowrap;
  background-image: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  pointer-events: none;
}

.loader__mark,
.memories-hero__names {
  --foil: linear-gradient(180deg, #a83a42 0%, #93272f 32%, #7a1a22 50%, #5e1118 64%, #7b1c24 80%, #97303a 100%);
  --foil-base: #74161e;
  --foil-depth: drop-shadow(0 .02em .04em rgba(92, 16, 23, .2));
}

.names__amp {
  font-style: normal;
  font-weight: 400;
}

.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.loader {
  display: none;
}

.is-motion .loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #f4eadc;
  background-image: var(--ivory);
  color: var(--wine-ink);
  clip-path: inset(0 0 0 0);
}

.loader__center {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.loader__date {
  color: var(--gold-ink);
  letter-spacing: .26em;
}

.loader__mark {
  margin: 0;
  font-size: clamp(3.6rem, 16vw, 6.8rem);
  white-space: nowrap;
  color: var(--wine-ink);
}

.loader__rule {
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: .35;
}

.loader__foot {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(env(safe-area-inset-bottom) + 28px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.loader__count b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.loader__count b::after {
  content: "%";
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--top) var(--pad) 14px;
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .3);
  pointer-events: none;
  transition: color .5s ease, transform .7s var(--ease);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--line-light);
  background: rgba(38, 6, 10, .9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .45s ease, background-color .5s ease, border-color .5s ease, box-shadow .5s ease;
}

.topbar.is-solid::before {
  opacity: 1;
}

.topbar.is-hidden {
  transform: translateY(-110%);
}

body[data-ui="light"] .topbar {
  color: var(--ink);
  text-shadow: none;
}

body[data-ui="light"] .topbar::before {
  border-bottom-color: var(--line-dark);
  background: rgba(249, 239, 229, .92);
  box-shadow: 0 12px 30px -16px rgba(43, 22, 19, .28);
}

.topbar a {
  pointer-events: auto;
  text-decoration: none;
}

.topbar__mark {
  padding: 10px 0;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar__mark i {
  margin: 0 .2em;
  font-style: normal;
  color: var(--gold);
}

.topbar__link {
  position: relative;
  padding: 10px 0;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.topbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(.35);
  transition: transform .5s var(--ease);
}

.topbar__link:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

.hero {
  position: relative;
  background: var(--night);
}

.hero__stage {
  position: relative;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  color: var(--cream);
  background: var(--night);
  background-image: var(--velvet);
}

.hero__media {
  position: absolute;
  inset: 0;
  container-type: size;
}

.hero__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100cqw, 56.25cqh);
  height: min(100cqh, 177.78cqw);
  margin-left: calc(min(100cqw, 56.25cqh) / -2);
  margin-top: calc(min(100cqh, 177.78cqw) / -2);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hero__canvas,
.hero__video,
.hero__final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video,
.hero__final {
  object-fit: cover;
}

.hero__canvas,
.hero__video,
.hero__seal,
.hero__tap,
.hero__chip {
  display: none;
}

.is-motion .hero__final {
  opacity: 0;
}

.hero__seal {
  position: absolute;
  left: 49.7%;
  top: 61.1%;
  width: 24%;
  aspect-ratio: 1;
  pointer-events: none;
}

.hero__seal i {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255, 228, 176, .95);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 196, 110, .55);
  transform: translate(-50%, -50%) scale(.7);
  animation: seal 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
}

.hero__seal i + i {
  animation-delay: 1.3s;
}

@keyframes seal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

.hero__tap {
  position: absolute;
  inset: 0;
  z-index: 4;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0 var(--pad) calc(env(safe-area-inset-bottom) + 28px);
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.hero__tap-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px 0 18px;
  border: 1px solid rgba(247, 235, 220, .26);
  border-radius: 999px;
  background: rgba(43, 7, 12, .4);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__tap-label svg,
.hero__chip svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__chip {
  position: absolute;
  z-index: 6;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(247, 235, 220, .26);
  border-radius: 999px;
  background: rgba(43, 7, 12, .4);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--cream);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero__chip--skip {
  right: var(--pad);
  bottom: calc(env(safe-area-inset-bottom) + 26px);
}

.hero__chip--replay {
  right: var(--pad);
  bottom: calc(env(safe-area-inset-bottom) + 26px);
  width: 44px;
  padding: 0;
}

.hero__chip[hidden] {
  display: none !important;
}

.js:not(.is-motion) .hero__final,
.no-js .hero__final {
  opacity: 1;
}

.js:not(.is-motion) .hero__cue,
.no-js .hero__cue {
  display: none;
}

.hero__copy {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 74px);
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 var(--pad);
  text-align: center;
  pointer-events: none;
}

.hero__eyebrow {
  color: var(--cream-soft);
}

.hero__names {
  margin: 0;
  font-size: clamp(3rem, 14vw, 4.6rem);
}

.hero__places {
  display: none;
}

.hero__cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 22px);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  pointer-events: none;
}

.hero__cue i {
  position: relative;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: rgba(247, 235, 220, .22);
}

.hero__cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--cream);
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  to {
    top: 100%;
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
}

.hero__aside {
  display: none;
}

.is-motion .hero__stage {
  z-index: 5;
}

.invite {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
}

.invite__inner {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(14px, 2.6vh, 26px);
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(env(safe-area-inset-top) + 76px) var(--pad) 56px;
  text-align: center;
}

.invite__crest {
  width: min(68vw, 400px);
  height: auto;
  mix-blend-mode: multiply;
  opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent), linear-gradient(180deg, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent), linear-gradient(180deg, #000 72%, transparent);
  mask-composite: intersect;
}

.invite__eyebrow {
  color: var(--wine-ink);
}

.invite__text {
  max-width: 17ch;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 9.6vw, 6rem);
  line-height: 1.04;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.invite__text .w {
  display: inline-block;
}

.is-motion .invite__text .w {
  opacity: .13;
}

.families {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 640px);
  margin-top: clamp(8px, 2vh, 20px);
  padding-top: clamp(16px, 2.6vh, 26px);
  border-top: 1px solid var(--line-dark);
}

.families::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(16px, 2.6vh, 26px);
  bottom: 0;
  width: 1px;
  background: var(--line-dark);
}

.family {
  display: grid;
  gap: 8px;
  padding: 0 10px;
}

.family__title {
  color: var(--wine-ink);
  font-size: .64rem;
}

.family__names {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  line-height: 1.15;
  text-wrap: balance;
}

.family__names span {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nights {
  position: relative;
  background: var(--paper);
}

.nights__pin {
  position: relative;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
}

.nights__track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.night {
  position: relative;
  flex: none;
  width: 100vw;
  height: 100%;
  overflow: hidden;
}

.night--henna {
  background: var(--wine);
  color: var(--cream);
}

.night--wedding {
  background: var(--paper-2);
  color: var(--ink);
}

.night__inner {
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100%;
  padding: calc(env(safe-area-inset-top) + 74px) var(--pad) calc(env(safe-area-inset-bottom) + 64px);
}

.night__index span {
  opacity: .5;
}

.night__date {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 6px;
}

.night__day {
  font-family: var(--serif);
  font-size: clamp(9rem, 50vw, 34rem);
  line-height: .74;
  letter-spacing: -.05em;
  will-change: transform;
}

.night__month {
  padding-bottom: .6em;
  line-height: 1.7;
  opacity: .8;
}

.night__body {
  display: grid;
  align-content: end;
  gap: clamp(16px, 2.6vh, 28px);
}

.night__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 15vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.02em;
}

.night__title em {
  color: var(--gold);
}

.night--wedding .night__title em,
.night--wedding .night__time {
  color: var(--wine-ink);
}

.night__meta {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
}

.night__row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: baseline;
}

.night__row dt {
  opacity: .62;
}

.night__row dd {
  margin: 0;
}

.night__time {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold);
}

.night__venue {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.15;
}

.night__address {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  line-height: 1.5;
  opacity: .72;
}

.night__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.night__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 999px;
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.night__links a::after {
  content: "↗";
  font-size: 1.05em;
  letter-spacing: 0;
}

.night__links li:first-child a {
  border-color: transparent;
  background: var(--cream);
  color: var(--wine);
}

.night--wedding .night__links li:first-child a {
  background: var(--wine);
  color: var(--cream);
}

.nights__bar {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(env(safe-area-inset-bottom) + 28px);
  height: 1px;
  background: rgba(192, 154, 91, .3);
}

.nights__bar i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}

.count {
  position: relative;
  padding: clamp(110px, 18vh, 200px) var(--pad) clamp(90px, 14vh, 160px);
  background: var(--night);
  background-image: var(--velvet);
  color: var(--cream);
  text-align: center;
}

.count > .eyebrow {
  color: var(--cream-soft);
}

.count__title {
  margin: 14px 0 clamp(40px, 7vh, 72px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 12vw, 7rem);
  line-height: .95;
  letter-spacing: -.02em;
}

.count__title em,
.count__done em {
  color: var(--gold);
}

.count__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line-light);
}

.count__cell {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vh, 30px) 6px;
  border-bottom: 1px solid var(--line-light);
}

.count__cell:nth-child(odd) {
  border-right: 1px solid var(--line-light);
}

.count__cell .eyebrow {
  color: var(--cream-soft);
}

.count__num {
  font-family: var(--serif);
  font-size: clamp(4.4rem, 22vw, 10rem);
  line-height: .9;
  font-variant-numeric: lining-nums tabular-nums;
}

.count__done {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.6rem);
}

.memories {
  position: relative;
  background: var(--paper);
  color: var(--ink);
}

.mem {
  padding: clamp(100px, 15vh, 170px) var(--pad) clamp(80px, 12vh, 140px);
}

.mem__head {
  display: grid;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto clamp(30px, 5vh, 56px);
}

.mem__head .eyebrow {
  color: var(--wine-ink);
}

.mem__title {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 17vw, 10rem);
  line-height: .88;
  letter-spacing: -.025em;
}

.mem__title em {
  color: var(--wine-ink);
}

.mem__lead {
  max-width: 42ch;
  margin: 0;
  font-size: 1.04rem;
  color: var(--ink-soft);
}

.uploader {
  display: grid;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto clamp(40px, 7vh, 72px);
}

.drop {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 30px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: rgba(255, 255, 255, .42);
  text-align: center;
  cursor: pointer;
  transition: background-color .35s ease, border-color .35s ease, transform .35s var(--ease);
}

.drop:hover,
.drop.is-over {
  border-color: rgba(124, 26, 34, .45);
  background: rgba(124, 26, 34, .045);
}

.drop.is-over {
  transform: scale(.99);
}

.drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);
  transition: transform .5s var(--ease);
}

.drop:hover .drop__icon {
  transform: rotate(90deg);
}

.drop__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.drop__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6.4vw, 2.2rem);
  line-height: 1.1;
}

.drop__hint {
  font-size: .84rem;
  color: var(--ink-soft);
}

.drop__desk {
  display: none;
}

.uploader__side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.field {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line-dark);
  transition: border-color .3s ease;
}

.field:focus-within {
  border-color: var(--wine-ink);
}

.field__label {
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wine-ink);
}

.field__input {
  width: 100%;
  min-height: 44px;
  padding: 4px 0 8px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
}

.field__input::placeholder {
  color: rgba(110, 88, 80, .55);
}

.queue {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.queue:empty {
  display: none;
}

.queue__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
}

.queue__thumb {
  position: relative;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-3);
}

.queue__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue__thumb svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  fill: var(--wine-ink);
}

.queue__info {
  min-width: 0;
}

.queue__name {
  display: block;
  overflow: hidden;
  font-weight: 600;
  font-size: .86rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.queue__state {
  display: block;
  font-size: .78rem;
  color: var(--ink-soft);
}

.queue__item.is-error .queue__state {
  color: #a3262a;
}

.queue__item.is-done .queue__state {
  color: #3d6b3f;
}

.queue__bar {
  position: relative;
  height: 2px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-dark);
}

.queue__bar i {
  position: absolute;
  inset: 0;
  background: var(--wine);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .25s linear;
}

.queue__remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.queue__remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s ease, opacity .3s ease;
}

.pill svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--ease);
}

.pill:hover svg {
  transform: translateX(4px);
}

.pill:active {
  transform: scale(.98);
}

.pill:disabled {
  opacity: .35;
  cursor: default;
}

.pill--wine {
  background: var(--wine);
  color: var(--cream);
}

.pill--cream {
  background: var(--cream);
  color: var(--night);
}

.pill--line {
  border-color: var(--line-light);
  color: var(--cream);
}

.uploader__status {
  min-height: 1.5em;
  margin: 0;
  font-size: .9rem;
  color: var(--ink-soft);
}

.wall {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 14px);
  max-width: 1280px;
  margin: 0 auto;
}

.wall__col {
  display: grid;
  flex: 1;
  gap: clamp(8px, 1.2vw, 14px);
  min-width: 0;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 1);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--paper-3);
  cursor: zoom-in;
}

.tile img,
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .8s ease, transform 1.4s var(--ease);
}

.tile.is-ready img,
.tile.is-ready video {
  opacity: 1;
  transform: none;
}

.tile.is-new {
  animation: tile-in 1s var(--ease);
}

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.tile__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(43, 7, 12, .58);
  box-shadow: 0 0 0 1px rgba(247, 235, 220, .25);
  color: var(--cream);
}

.tile__play svg {
  width: 18px;
  height: 18px;
  margin-left: 3px;
  fill: currentColor;
}

.tile__by {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(20, 6, 5, .62));
  color: var(--cream);
  font-size: .78rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transition: opacity .35s ease;
}

.wall__empty,
.wall__error {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 0;
  font-size: 1rem;
  text-align: center;
  color: var(--ink-soft);
}

.wall__empty em {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--ink);
}

.wall__sentinel {
  height: 1px;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(16, 5, 4, .97);
  color: var(--cream);
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: rgba(16, 5, 4, .6);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: 1fr auto;
}

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: calc(env(safe-area-inset-top) + 64px) 12px 8px;
  touch-action: pan-y;
}

.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 12px var(--pad) calc(env(safe-area-inset-bottom) + 18px);
}

.lightbox__caption {
  margin: 0;
  font-size: .95rem;
}

.lightbox__caption b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
}

.lightbox__caption small {
  display: block;
  margin-top: 4px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.lightbox__count {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream-soft);
  font-variant-numeric: tabular-nums;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: rgba(43, 7, 12, .5);
  color: var(--cream);
  cursor: pointer;
}

.lightbox__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__btn--close {
  top: calc(env(safe-area-inset-top) + 12px);
  right: 12px;
}

.lightbox__btn--prev,
.lightbox__btn--next {
  top: 50%;
  margin-top: -24px;
  display: none;
}

.lightbox__btn--prev {
  left: 18px;
}

.lightbox__btn--next {
  right: 18px;
}

.outro {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vh, 30px);
  padding: clamp(110px, 18vh, 200px) var(--pad) calc(env(safe-area-inset-bottom) + 40px);
  background: var(--night);
  background-image: var(--velvet);
  color: var(--cream);
  text-align: center;
}

.outro__lead {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 12vw, 8rem);
  line-height: .98;
  letter-spacing: -.02em;
}

.outro__lead em {
  color: var(--gold);
}

.outro__sign {
  margin: 0;
  font-size: clamp(2.8rem, 12vw, 4.4rem);
  color: var(--gold-light);
}

.outro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.outro__fine {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: clamp(50px, 10vh, 110px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 22px);
  z-index: 95;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--night);
  color: var(--cream);
  font-size: .9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.page-memories {
  background: var(--paper);
}

.page-memories .topbar,
.topbar--static {
  position: absolute;
  color: var(--ink);
  text-shadow: none;
}

.memories-hero {
  display: grid;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 96px) var(--pad) 0;
  text-align: center;
  background: var(--paper);
}

.memories-hero .eyebrow {
  color: var(--wine-ink);
}

.memories-hero__names {
  justify-self: center;
  margin: 0;
  font-size: clamp(3.4rem, 15vw, 6.5rem);
  line-height: 1.15;
  color: var(--wine-ink);
}

.memories-hero__text {
  max-width: 40ch;
  margin: 0 auto;
  color: var(--ink-soft);
}

.page-memories .mem {
  padding-top: 48px;
}

.is-motion .hero__video,
.is-motion .hero__seal {
  display: block;
}

.is-motion .hero__tap {
  display: flex;
}

.is-motion .hero__chip {
  display: inline-flex;
}

.is-motion .hero__cue {
  display: none;
}

.is-motion .hero.is-done .hero__cue {
  display: grid;
}

@media (max-width: 999px) {
  .hero__stage {
    height: 100vh;
    height: 100svh;
  }

  .hero__copy {
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nights__pin {
    height: auto;
  }

  .nights__track {
    flex-direction: column;
    width: 100%;
  }

  .night {
    width: 100%;
    height: auto;
  }

  .night__inner {
    padding-top: 92px;
    padding-bottom: 76px;
  }

  .night__body {
    margin-top: 34px;
  }

  .nights__bar {
    display: none;
  }
}

.js:not(.is-motion) .nights__pin {
  height: auto;
}

.js:not(.is-motion) .nights__track,
.no-js .nights__track {
  flex-direction: column;
  width: 100%;
}

.js:not(.is-motion) .night,
.no-js .night {
  width: 100%;
  min-height: 100svh;
}

.js:not(.is-motion) .nights__bar,
.no-js .nights__bar {
  display: none;
}

@media (hover: hover) {
  .tile:hover .tile__by {
    opacity: 1;
  }

  .night__links a:hover {
    background: currentColor;
  }

  .night--henna .night__links a:hover {
    color: var(--wine);
    background: var(--cream);
  }

  .night--wedding .night__links a:hover {
    color: var(--cream);
    background: var(--wine);
  }
}

@media (min-width: 700px) {
  .drop__desk {
    display: inline;
  }

  .lightbox__btn--prev,
  .lightbox__btn--next {
    display: grid;
  }

  .lightbox__stage {
    padding: 72px 90px 8px;
  }

  .count__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .count__cell {
    border-right: 1px solid var(--line-light);
  }

  .count__cell:last-child {
    border-right: 0;
  }

  .count__num {
    font-size: clamp(4.6rem, 11vw, 10rem);
  }
}

@media (min-width: 1000px) {
  .hero__media {
    left: 38%;
  }

  .hero__frame {
    width: min(100cqw, 52.9cqh);
    height: min(94cqh, 177.78cqw);
    margin-left: calc(min(100cqw, 52.9cqh) / -2);
    margin-top: calc(min(94cqh, 177.78cqw) / -2);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-composite: intersect;
  }

  .hero__copy {
    inset: 0 auto 0 var(--pad);
    width: 44vw;
    justify-items: start;
    align-content: center;
    gap: 22px;
    padding: 0;
    text-align: left;
  }

  .hero__names {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 0 -.04em;
    font-size: min(10vw, 12rem);
    line-height: .86;
  }

  .hero__names .names__part + .names__part {
    padding-left: .74em;
  }

  .is-motion .hero__canvas {
    display: block;
  }

  .is-motion .hero__video,
  .is-motion .hero__seal,
  .is-motion .hero__tap,
  .is-motion .hero__chip {
    display: none;
  }

  .is-motion .hero__cue {
    display: grid;
  }

  .hero__places {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cream-soft);
  }

  .hero__places span {
    width: 34px;
    height: 1px;
    background: currentColor;
  }

  .hero__aside {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--pad);
    pointer-events: none;
  }

  .hero__night {
    display: grid;
    gap: 10px;
    opacity: 0;
  }

  .hero__night--2 {
    text-align: right;
  }

  .hero__night-date {
    font-family: var(--serif);
    font-size: clamp(3rem, 4.4vw, 5.4rem);
    line-height: .9;
    letter-spacing: -.02em;
  }

  .hero__night .eyebrow {
    color: var(--gold);
  }

  .invite__inner {
    gap: clamp(10px, 2vh, 22px);
    padding-top: 84px;
    padding-bottom: 40px;
  }

  .invite__crest {
    width: min(24vw, 34vh, 400px);
  }

  .invite__text {
    max-width: 25ch;
    font-size: min(4.8vw, 8vh);
  }

  .families {
    width: min(100%, 760px);
  }

  .family__title {
    font-size: .72rem;
  }

  .night__inner {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 5vw;
    padding-top: 110px;
    padding-bottom: 96px;
  }

  .night__index {
    grid-column: 1 / -1;
  }

  .night__date {
    align-self: end;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .night__day {
    font-size: min(36vw, 64vh);
  }

  .night__month {
    padding: 0 0 0 .4em;
  }

  .night__body {
    align-self: end;
  }

  .night__title {
    font-size: clamp(5rem, 8vw, 9rem);
  }

  .night__venue {
    font-size: 1.8rem;
  }

  .night__address {
    font-size: .92rem;
  }

  .mem__head {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 40px;
  }

  .mem__lead {
    justify-self: end;
    font-size: 1.1rem;
  }

  .uploader {
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
  }

  .drop {
    min-height: 300px;
  }

  .outro__actions .pill {
    min-width: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
