:root {
  --cream: #fbf4e6;
  --paper: #fffaf1;
  --paper-2: #f7ecd8;
  --gold: #b8893b;
  --gold-deep: #94681f;
  --gold-light: #e7c77f;
  --gold-pale: #f3e3bd;
  --maroon: #8e1b3d;
  --maroon-deep: #6b0f2b;
  --navy: #1f3170;
  --ink: #3b2a1e;
  --ink-soft: #6a5546;
  --shadow: 0 18px 40px -18px rgba(94, 60, 20, 0.35);
  --font-script: "Great Vibes", "Dancing Script", cursive;
  --font-hand: "Dancing Script", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-caps: "Cinzel", "Times New Roman", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(231, 199, 127, 0.18), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(142, 27, 61, 0.05), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(31, 49, 112, 0.04), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.42 0 0 0 0 0.25 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1600px;
}

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.7), transparent 60%),
    repeating-linear-gradient(45deg, rgba(184, 137, 59, 0.05) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(184, 137, 59, 0.05) 0 2px, transparent 2px 22px);
  transition: transform 1.8s var(--ease-out), filter 1.8s ease;
  will-change: transform;
}

.door--left {
  left: 0;
  transform-origin: left center;
  box-shadow: inset -12px 0 30px -18px rgba(94, 60, 20, 0.45);
}

.door--right {
  right: 0;
  transform-origin: right center;
  box-shadow: inset 12px 0 30px -18px rgba(94, 60, 20, 0.45);
}

.door__frame {
  position: absolute;
  inset: clamp(10px, 2.2vw, 22px);
  border: 1.5px solid var(--gold);
  pointer-events: none;
}

.door__frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 137, 59, 0.5);
}

.door--left .door__frame {
  right: -2px;
  border-right: 0;
}

.door--left .door__frame::after {
  right: -2px;
  border-right: 0;
}

.door--right .door__frame {
  left: -2px;
  border-left: 0;
}

.door--right .door__frame::after {
  left: -2px;
  border-left: 0;
}

.door__garland {
  --gw: min(clamp(560px, 100vw, 900px), 130vh);
  position: absolute;
  width: var(--gw);
  pointer-events: none;
}

.door__garland svg,
.garland svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.door--left .door__garland {
  right: calc(var(--gw) / -2);
}

.door--right .door__garland {
  left: calc(var(--gw) / -2);
}

.door__garland--top {
  top: clamp(4px, 1.2vw, 14px);
}

.door__garland--bottom {
  bottom: clamp(4px, 1.2vw, 14px);
}

.door__garland--bottom svg,
.garland--flip svg,
.garland--bottom svg {
  transform: scaleY(-1);
}

.intro__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
}

.intro__invited {
  margin: 0 0 0.25rem;
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  color: var(--maroon);
  opacity: 0;
  animation: fadeUp 1s 0.4s var(--ease-out) forwards;
}

.intro__to {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeUp 1s 0.55s var(--ease-out) forwards;
}

.intro__names {
  margin: 0 0 1.75rem;
  font-family: var(--font-caps);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.2rem);
  color: var(--navy);
  opacity: 0;
  animation: fadeUp 1s 0.7s var(--ease-out) forwards;
}

.intro__names .amp {
  font-family: var(--font-script);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.6em;
  color: var(--gold);
  vertical-align: -0.15em;
  margin: 0 0.15em 0 -0.15em;
}

.intro__hint {
  margin: 1.5rem 0 0;
  font-family: var(--font-hand);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--maroon);
  opacity: 0;
  animation: fadeUp 1s 1s var(--ease-out) forwards, breathe 2.4s 2s ease-in-out infinite;
}

.emblem {
  position: relative;
  width: clamp(110px, 26vw, 150px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  opacity: 0;
  animation: emblemIn 1.1s 0.9s var(--ease-out) forwards;
  -webkit-tap-highlight-color: transparent;
}

.emblem::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 137, 59, 0.6);
  animation: ripple 2.4s 2s ease-out infinite;
}

.emblem__wax {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 47% 53% 50% 50% / 52% 48% 53% 47%;
  background:
    radial-gradient(circle at 32% 28%, #c43a5e 0%, transparent 38%),
    radial-gradient(circle at 70% 75%, #5a0a22 0%, transparent 50%),
    radial-gradient(circle, #9b1d43 0%, #7a1232 70%, #5f0c26 100%);
  box-shadow:
    0 14px 28px -8px rgba(90, 10, 34, 0.55),
    inset 0 -6px 12px rgba(0, 0, 0, 0.3),
    inset 0 6px 10px rgba(255, 180, 200, 0.25);
  transition: transform 0.4s var(--ease-out);
}

.emblem:hover .emblem__wax {
  transform: scale(1.05) rotate(-4deg);
}

.emblem__ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 2px solid rgba(243, 220, 155, 0.75);
  box-shadow: inset 0 0 0 4px rgba(90, 10, 34, 0.35), 0 0 0 1px rgba(90, 10, 34, 0.4);
}

.emblem__letter {
  position: relative;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 1.2rem + 2.2vw, 2.3rem);
  line-height: 1.2;
  white-space: nowrap;
  color: #ecc978;
  text-shadow: 0 1px 1px rgba(60, 0, 15, 0.6), 0 0 10px rgba(246, 225, 166, 0.25);
}

.intro__burst {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  pointer-events: none;
}

.burst-dot {
  position: absolute;
  width: var(--s, 8px);
  height: var(--s, 8px);
  margin: calc(var(--s, 8px) / -2);
  border-radius: 50%;
  background: var(--c, var(--gold));
  animation: burst 1.3s var(--ease-out) forwards;
}

.burst-dot--petal {
  border-radius: 80% 0 80% 0;
}

.intro.is-opening .emblem__wax {
  animation: emblemCrack 0.7s var(--ease-out) forwards;
}

.intro.is-opening .emblem::before,
.intro.is-opening .intro__hint {
  animation: none;
  opacity: 0;
}

.intro.is-opening .intro__content {
  opacity: 0;
  transform: scale(0.9);
  transition-delay: 0.45s;
}

.intro.is-open .door--left {
  transform: translateX(-102%) rotateY(18deg);
}

.intro.is-open .door--right {
  transform: translateX(102%) rotateY(-18deg);
}

.intro.is-open {
  pointer-events: none;
}

.intro.is-gone {
  display: none;
}

.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
}

.fab-group {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

body.is-opened .fab-group {
  opacity: 1;
  transform: none;
}

.fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(184, 137, 59, 0.6);
  background: rgba(255, 250, 241, 0.92);
  color: var(--maroon);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.fab:hover {
  transform: translateY(-2px) scale(1.05);
}

.fab[hidden] {
  display: none;
}

.fab .icon--off {
  display: none;
}

.fab[aria-pressed="false"] .icon--on {
  display: none;
}

.fab[aria-pressed="false"] .icon--off {
  display: block;
}

.fab__wave {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ripple 2s ease-out infinite;
}

.fab[aria-pressed="false"] .fab__wave {
  display: none;
}

.fab[aria-pressed="true"] .icon--on {
  animation: spinSlow 6s linear infinite;
}

main {
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

.garland {
  width: min(100%, 900px);
  margin: 0 auto;
  pointer-events: none;
}

.garland__sway {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: sway 7s ease-in-out infinite;
}

.garland--mini {
  width: 88%;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.25rem 6rem;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 2vw, 22px);
  border: 1.5px solid rgba(184, 137, 59, 0.75);
  pointer-events: none;
}

.hero::after {
  inset: calc(clamp(10px, 2vw, 22px) + 6px);
  border-width: 1px;
  border-color: rgba(184, 137, 59, 0.4);
}

.hero .garland--top {
  position: relative;
  z-index: 1;
  margin-top: clamp(14px, 2.4vw, 28px);
  --hw: max(min(100%, 820px, 110vh), 540px);
  width: var(--hw);
  max-width: none;
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: calc((100% - var(--hw)) / 2);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin-top: 0.75rem;
  margin-bottom: auto;
}

.hero .hero__garland-bottom {
  display: none;
}

@media (orientation: portrait) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .hero__inner {
    margin-block: auto;
    padding-block: 0.5rem;
  }

  .hero .scroll-cue {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
  }
}

@media (orientation: portrait) and (max-height: 699px) {
  .hero .garland--top {
    --hw: max(min(100%, 820px, 110svh), 440px);
    margin-top: 10px;
  }
}

@media (orientation: portrait) and (min-height: 700px) {
  .hero {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .hero .hero__garland-bottom {
    display: block;
    position: relative;
    z-index: 1;
    --hw: max(min(100%, 820px, 110svh), 540px);
    width: var(--hw);
    max-width: none;
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: calc((100% - var(--hw)) / 2);
    margin-bottom: clamp(14px, 2.4vw, 28px);
    opacity: 0.9;
  }

  .hero .scroll-cue {
    margin-bottom: 0;
  }
}

@media (orientation: portrait) and (max-width: 600px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.1rem, 2svh - 0.7rem, 1.1rem);
    margin-block: auto;
    padding-block: 0.25rem;
  }

  .hero .quote p {
    font-size: clamp(1rem, 0.3rem + 2.1svh, 1.6rem);
  }

  .hero .gold-divider {
    margin-block: clamp(0.35rem, 3.4svh - 1.3rem, 1.8rem);
  }

  .hero .names {
    font-size: clamp(2.6rem, 0.1rem + 7svh, 5.4rem);
    margin-block: clamp(0.1rem, 2.4svh - 0.9rem, 1.2rem);
  }

  .hero .names {
    flex-direction: column;
    line-height: 1;
  }

  .hero .names__amp {
    margin-block: -0.12em;
  }

  .hero .invite-line {
    max-width: 30ch;
    line-height: 1.5;
  }

  .hero__date {
    margin-top: clamp(0.4rem, 4svh - 1.7rem, 2rem);
  }

  .hero .hero__garland-bottom {
    --hw: max(min(100%, 820px, 110svh), 440px);
  }
}

.quote {
  margin: 0 auto;
  max-width: 34ch;
}

.quote p {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.35;
  color: var(--navy);
}

.quote cite {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.quote cite::before {
  content: "\2014\00a0";
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(320px, 80%);
  margin: 1.25rem auto;
  color: var(--gold);
}

.gold-divider::before,
.gold-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 70%, var(--gold));
}

.gold-divider::after {
  background: linear-gradient(-90deg, transparent, var(--gold) 70%, var(--gold));
}

.gold-divider svg {
  width: 44px;
  height: 16px;
  flex-shrink: 0;
}

.eyebrow,
.invite-line {
  margin: 0;
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
  font-size: clamp(0.82rem, 0.72rem + 0.5vw, 1.1rem);
}

.names {
  margin: 0.4rem 0 0.6rem;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.4rem, 2rem + 7vw, 7.2rem);
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.25em;
}

.names__part,
.names__amp {
  display: inline-block;
  padding: 0.1em 0.18em 0.15em;
  background: linear-gradient(110deg, var(--maroon-deep) 0%, var(--maroon) 40%, #c4506f 50%, var(--maroon) 60%, var(--maroon-deep) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  clip-path: inset(0 100% 0 0);
  filter: drop-shadow(0 2px 6px rgba(142, 27, 61, 0.12));
}

.names__amp {
  font-size: 0.7em;
  background-image: linear-gradient(110deg, var(--gold-deep), var(--gold) 45%, #f6e1a6 50%, var(--gold) 55%, var(--gold-deep));
  clip-path: none;
  opacity: 0;
  transform: scale(0.4) rotate(-20deg);
}

body.is-opened .names__part--bride {
  animation: write 1.6s 0.4s var(--ease-out) forwards, shimmer 5s 2.5s ease-in-out infinite;
}

body.is-opened .names__amp {
  animation: popIn 0.9s 1.6s var(--ease-out) forwards, shimmer 5s 2.8s ease-in-out infinite;
}

body.is-opened .names__part--groom {
  animation: write 1.6s 1.9s var(--ease-out) forwards, shimmer 5s 4s ease-in-out infinite;
}

.hero__date {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  margin-top: 1.6rem;
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.72rem, 0.65rem + 0.35vw, 0.95rem);
  color: var(--ink-soft);
}

.hero__date > span:not(.hero__date-main),
.hero__date > a {
  padding: 0.35rem 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  min-width: 6.5em;
}

.hero__date > a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero__date > a:hover,
.hero__date > a:focus-visible {
  color: var(--maroon);
}

.hero__date-main {
  font-size: 1.9em;
  letter-spacing: 0.06em;
  color: var(--maroon);
  line-height: 1;
}

.hero__place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.4rem 0 0;
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.78rem, 0.7rem + 0.4vw, 1rem);
  color: var(--ink-soft);
}

.hero__place strong {
  font-weight: 600;
  color: var(--maroon);
}

.hero__rule {
  width: clamp(36px, 10vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero__rule--flip {
  background: linear-gradient(-90deg, transparent, var(--gold));
}

.hero__teaser {
  display: inline-block;
  max-width: 30ch;
  margin-top: 0.9rem;
  font-style: italic;
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.4;
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: rgba(184, 137, 59, 0.45);
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.hero__teaser:hover,
.hero__teaser:focus-visible {
  color: var(--maroon);
}

body:not(.date-revealed) .after-reveal,
body.date-revealed .before-reveal {
  display: none !important;
}

body.date-revealed .countdown.after-reveal,
body.date-revealed .footer__date.after-reveal {
  animation: fadeUp 0.9s var(--ease-out) both;
}

.countdown__locked {
  margin: 1.4rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
}

.event__locked {
  font-style: italic;
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-color: rgba(184, 137, 59, 0.6);
  text-underline-offset: 3px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transform: translateX(-50%);
  text-decoration: none;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  opacity: 0;
  transition: opacity 1s 3s ease;
}

body.is-opened .scroll-cue {
  opacity: 1;
}

.scroll-cue__mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-cue__mouse span {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--maroon);
  animation: scrollDot 1.8s ease-in-out infinite;
}

.section {
  position: relative;
  padding: var(--section-pad) 1.25rem;
  text-align: center;
}

.section-title {
  margin: 0;
  font-family: var(--font-caps);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.2rem);
  color: var(--maroon);
}

.section-sub {
  margin: 0.4rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
}

.script-title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
  line-height: 1.15;
  color: var(--gold-deep);
  text-shadow: 0 2px 10px rgba(184, 137, 59, 0.2);
}

.couple__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1080px;
  margin: 2rem auto 0;
}

.couple__art {
  position: relative;
  justify-self: center;
  width: min(78vw, 360px);
}

.arch {
  position: relative;
  padding: 10px;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 45%, var(--gold-pale));
  box-shadow: var(--shadow);
}

.arch::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 250, 241, 0.8);
  pointer-events: none;
  z-index: 2;
}

.arch__inner {
  position: relative;
  aspect-ratio: 5 / 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18% 8% 6%;
  border-radius: 999px 999px 12px 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95), transparent 55%),
    repeating-linear-gradient(45deg, rgba(184, 137, 59, 0.06) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-45deg, rgba(184, 137, 59, 0.06) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, #fffaf1, #f6e9d2);
  overflow: hidden;
}

.arch__inner::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px 999px 8px 8px;
  border: 1px solid rgba(184, 137, 59, 0.45);
  pointer-events: none;
}

.arch__inner .garland--mini:first-child {
  margin-top: -6%;
}

.monogram {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  line-height: 1;
}

.monogram__letter {
  font-size: clamp(5rem, 3.6rem + 6vw, 7.5rem);
  background: linear-gradient(160deg, var(--maroon-deep), var(--maroon) 55%, #c4506f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0.2em 0.32em 0.25em;
  margin: -0.2em -0.24em -0.25em;
  opacity: 0;
}

.monogram__letter--a {
  transform: translate(-30px, -10px);
}

.monogram__letter--b {
  transform: translate(30px, 10px);
}

.monogram__amp {
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  color: var(--gold);
  margin: 0 -0.05em;
  opacity: 0;
  transform: scale(0.3) rotate(-30deg);
}

.is-visible .monogram__letter {
  animation: letterIn 1.4s 0.3s var(--ease-out) forwards;
}

.is-visible .monogram__letter--b {
  animation-delay: 0.6s;
}

.is-visible .monogram__amp {
  animation: popIn 1s 1.2s var(--ease-out) forwards;
}

.monogram__rings {
  width: 58px;
  margin-top: -0.4rem;
  fill: none;
  stroke: url(#goldGrad);
  stroke-width: 2;
  stroke-linejoin: round;
}

.monogram__rings circle {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
}

.is-visible .monogram__rings circle {
  animation: drawRing 1.4s 0.9s var(--ease-out) forwards;
}

.is-visible .monogram__rings circle + circle {
  animation-delay: 1.15s;
}

.arch__tagline {
  margin: 0.4rem 0 0;
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  color: var(--navy);
}

.arch__tagline .dot {
  margin: 0 0.4em;
  color: var(--gold);
}

.arch__date {
  margin: 0.2rem 0 0;
  font-family: var(--font-caps);
  letter-spacing: 0.22em;
  font-size: 0.9rem;
  color: var(--gold-deep);
}

.arch__hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arch__hearts span {
  position: absolute;
  bottom: -20px;
  width: 12px;
  height: 12px;
  background: rgba(196, 80, 111, 0.35);
  clip-path: path("M6 11.5C6 11.5 0 7.6 0 3.6 0 1.6 1.5 0 3.3 0 4.5 0 5.4.7 6 1.7 6.6.7 7.5 0 8.7 0 10.5 0 12 1.6 12 3.6 12 7.6 6 11.5 6 11.5Z");
  animation: floatHeart 9s linear infinite;
}

.arch__hearts span:nth-child(1) { left: 14%; animation-delay: 0s; }
.arch__hearts span:nth-child(2) { left: 32%; animation-delay: 3s; transform: scale(0.7); }
.arch__hearts span:nth-child(3) { left: 50%; animation-delay: 6s; }
.arch__hearts span:nth-child(4) { left: 66%; animation-delay: 1.5s; transform: scale(0.8); }
.arch__hearts span:nth-child(5) { left: 80%; animation-delay: 4.5s; }
.arch__hearts span:nth-child(6) { left: 24%; animation-delay: 7.5s; background: rgba(184, 137, 59, 0.4); }

.arch__shine {
  position: absolute;
  inset: 10px;
  border-radius: 999px 999px 12px 12px;
  overflow: hidden;
  pointer-events: none;
}

.arch__shine::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-15deg);
  animation: shine 6s 1s ease-in-out infinite;
}

.sparkle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 2.6s ease-in-out infinite;
}

.sparkle--1 {
  top: 8%;
  right: -6%;
}

.sparkle--2 {
  bottom: 18%;
  left: -8%;
  width: 14px;
  height: 14px;
  animation-delay: 0.9s;
}

.sparkle--3 {
  top: 40%;
  right: -10%;
  width: 10px;
  height: 10px;
  animation-delay: 1.15s;
}

.parents {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.parent-card {
  width: min(100%, 420px);
  padding: 1.6rem 1.4rem;
  background: rgba(255, 250, 241, 0.75);
  border: 1px solid rgba(184, 137, 59, 0.45);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
}

.parent-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 137, 59, 0.25);
  border-radius: 10px;
  pointer-events: none;
}

.parent-card__name {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
  line-height: 1.1;
  color: var(--maroon);
}

.parent-card__label {
  margin: 0.4rem 0 0.2rem;
  font-family: var(--font-caps);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.parent-card__parents {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--navy);
  font-weight: 500;
}

.parents__heart {
  width: 40px;
  height: 40px;
  color: var(--maroon);
}

.parents__heart svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  animation: heartbeat 1.6s ease-in-out infinite;
}

.paper-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.95), rgba(247, 236, 216, 0.9));
  border: 1px solid rgba(184, 137, 59, 0.55);
  border-radius: 6px;
  box-shadow: var(--shadow), inset 0 0 60px rgba(231, 199, 127, 0.18);
}

.paper-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 137, 59, 0.35);
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.corner::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.corner--tl {
  top: 14px;
  left: 14px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.corner--tr {
  top: 14px;
  right: 14px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.corner--bl {
  bottom: 14px;
  left: 14px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.corner--br {
  bottom: 14px;
  right: 14px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.corner--tl::after,
.corner--bl::after {
  left: -4.5px;
}

.corner--tr::after,
.corner--br::after {
  right: -4.5px;
}

.corner--tl::after,
.corner--tr::after {
  top: -4.5px;
}

.corner--bl::after,
.corner--br::after {
  bottom: -4.5px;
}

.scratch {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  width: min(72vw, 280px);
  aspect-ratio: 13 / 12;
  margin: 1.5rem auto 0.5rem;
  filter: drop-shadow(0 12px 18px rgba(60, 25, 5, 0.25));
}

.scratch__shape {
  position: absolute;
  inset: 0;
  clip-path: url(#heartClip);
  background: radial-gradient(circle at 50% 35%, #fffaf1, #f6e7c8 70%);
}

.scratch__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 18% 14% 28%;
  text-align: center;
  color: var(--ink);
}

.scratch__day {
  font-family: var(--font-caps);
  font-size: clamp(0.66rem, 0.58rem + 0.35vw, 0.8rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.scratch__date {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.8rem + 3.6vw, 3.6rem);
  line-height: 1;
  color: var(--maroon);
}

.scratch__month {
  font-family: var(--font-caps);
  font-size: clamp(0.74rem, 0.66rem + 0.4vw, 0.92rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scratch__time {
  margin-top: 0.1rem;
  font-style: italic;
  color: var(--ink-soft);
}

.scratch__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.8s ease;
}

.scratch.is-revealed .scratch__canvas {
  opacity: 0;
  pointer-events: none;
}

.scratch.is-revealed .scratch__content {
  animation: pulseIn 0.9s var(--ease-out);
}

.scratch__outline {
  position: absolute;
  inset: -1px;
  pointer-events: none;
}

.scratch__outline svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scratch__outline path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 6 5;
  animation: dash 18s linear infinite;
}

.link-btn {
  margin-top: 0.4rem;
  border: 0;
  background: none;
  padding: 0.3rem 0.5rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-btn[hidden] {
  display: none;
}

.save-date__after {
  min-height: 1.5em;
  margin: 0.4rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  color: var(--maroon);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.save-date__after.is-shown {
  opacity: 1;
  transform: none;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-top: 1.6rem;
}

.countdown__item {
  position: relative;
  padding: clamp(0.7rem, 2vw, 1.1rem) 0.25rem;
  border: 1px solid rgba(184, 137, 59, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.countdown__item::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(184, 137, 59, 0.2);
  border-radius: 7px;
  pointer-events: none;
}

.countdown__num {
  display: block;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.5rem);
  line-height: 1.1;
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
}

.countdown__num.is-tick {
  animation: tick 0.5s var(--ease-out);
}

.countdown__label {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-caps);
  font-size: clamp(0.58rem, 0.5rem + 0.35vw, 0.78rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

@media (max-width: 520px) {
  .countdown {
    gap: 0.45rem;
  }

  .countdown__item {
    padding-inline: 0.45rem;
  }

  .countdown__label {
    font-size: clamp(0.5rem, 0.36rem + 0.7vw, 0.62rem);
    letter-spacing: 0.06em;
    text-indent: 0.06em;
  }
}

.countdown__done {
  margin: 1rem 0 0;
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--maroon);
}

.timeline {
  position: relative;
  list-style: none;
  margin: 2.5rem auto 0;
  padding: 0;
  max-width: 1000px;
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
}

.timeline::before,
.timeline__progress {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34px;
  width: 2px;
  background: rgba(184, 137, 59, 0.25);
}

.timeline__progress {
  background: linear-gradient(var(--gold-light), var(--gold), var(--maroon));
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  text-align: left;
}

.event__medal {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px rgba(184, 137, 59, 0.4), var(--shadow);
  color: var(--maroon);
}

.event__medal::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(184, 137, 59, 0.6);
  animation: spinSlow 24s linear infinite;
}

.event__medal svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event__card {
  position: relative;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid rgba(184, 137, 59, 0.45);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.event__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -22px rgba(94, 60, 20, 0.45);
}

.event__card::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -8px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-left: 1px solid rgba(184, 137, 59, 0.45);
  border-bottom: 1px solid rgba(184, 137, 59, 0.45);
  transform: rotate(45deg);
}

.event__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
}

.event__row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.3rem 0;
  color: var(--navy);
}

.event__row .icon {
  margin-top: 0.2em;
  color: var(--maroon);
}

.event__row strong {
  font-weight: 600;
}

.event__venue {
  display: block;
  font-weight: 600;
}

.event__addr {
  display: block;
  color: var(--ink-soft);
}

.event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-family: var(--font-caps);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn--gold {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-color: var(--gold-deep);
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 50%, #cfa257);
  box-shadow: 0 10px 22px -10px rgba(148, 104, 31, 0.8);
}

.btn--gold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
}

.btn--ghost {
  color: var(--gold-deep);
  background: rgba(255, 250, 241, 0.7);
}

.btn--ghost:hover {
  background: var(--gold);
  color: #fff;
}

.btn--small {
  padding: 0.5rem 0.95rem;
  min-height: 40px;
  font-size: 0.68rem;
}

.rsvp__phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(184, 137, 59, 0.6);
  background: rgba(255, 255, 255, 0.6);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.phone-link:hover {
  background: var(--maroon);
  color: #fff;
}

.rsvp-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  padding: 0;
  font-family: var(--font-caps);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.field legend {
  margin-bottom: 0.4rem;
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
}

.field input[type="text"],
.field input[type="number"],
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(184, 137, 59, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(142, 27, 61, 0.15);
}

.field textarea {
  resize: vertical;
}

.field__error {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: #b0122f;
}

.field-row {
  display: grid;
  gap: 1rem;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.field label.choice {
  position: relative;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

#heroNames:focus {
  outline: none;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 137, 59, 0.55);
  background: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.choice input:checked + span {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}

.rsvp-form .btn--gold {
  justify-self: center;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.footer {
  position: relative;
  padding: var(--section-pad) 1.25rem 0;
  text-align: center;
  overflow: hidden;
}

.footer__script {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem);
  line-height: 1.1;
  color: var(--maroon);
}

.footer__names {
  margin: 0.6rem 0 0;
  font-family: var(--font-caps);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
}

.footer__date {
  margin: 0.2rem 0 0;
  font-family: var(--font-caps);
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}

.footer__thanks {
  max-width: 36ch;
  margin: 1rem auto 0;
  font-style: italic;
  color: var(--ink-soft);
}

.footer .garland--bottom {
  margin-top: 1.5rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 130;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--maroon-deep);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.toast.is-shown {
  transform: translate(-50%, 0);
  opacity: 1;
}

.confetti-piece {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: var(--w, 8px);
  height: var(--h, 12px);
  background: var(--c);
  border-radius: 2px;
  pointer-events: none;
  animation: confetti var(--d, 2.4s) cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(4px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal--zoom {
  transform: scale(0.88);
}

.reveal--left {
  transform: translateX(-50px);
}

.reveal--right {
  transform: translateX(50px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 140px;
    align-items: start;
  }

  .parents {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }

  .parents__heart {
    align-self: center;
  }
}

@media (min-width: 900px) {
  .couple__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .parents {
    grid-template-columns: 1fr;
  }

  .timeline::before,
  .timeline__progress {
    left: 50%;
    transform-origin: top;
    margin-left: -1px;
  }

  .event {
    grid-template-columns: 1fr 90px 1fr;
    gap: 1.6rem;
  }

  .event__medal {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 84px;
    height: 84px;
  }

  .event__medal svg {
    width: 42px;
    height: 42px;
  }

  .event__card {
    grid-row: 1;
    grid-column: 3;
  }

  .event:nth-child(even) .event__card {
    grid-column: 1;
    text-align: right;
  }

  .event:nth-child(even) .event__row {
    flex-direction: row-reverse;
  }

  .event:nth-child(even) .event__actions {
    justify-content: flex-end;
  }

  .event:nth-child(even) .event__card::before {
    left: auto;
    right: -8px;
    border-left: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(184, 137, 59, 0.45);
    border-top: 1px solid rgba(184, 137, 59, 0.45);
  }

  .event:nth-child(odd) .event__card.reveal {
    transform: translateX(60px);
  }

  .event:nth-child(even) .event__card.reveal {
    transform: translateX(-60px);
  }

  .event .event__card.reveal.is-visible {
    transform: none;
  }

  .event .event__card.reveal.is-visible:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 380px) {
  .hero__date > a,
  .hero__date > span:not(.hero__date-main) {
    min-width: 0;
  }

  .hero__date {
    letter-spacing: 0.1em;
  }

  .event {
    grid-template-columns: 56px 1fr;
    gap: 0.8rem;
  }

  .event__medal {
    width: 56px;
    height: 56px;
  }

  .event__medal svg {
    width: 28px;
    height: 28px;
  }

  .timeline::before,
  .timeline__progress {
    left: 27px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero .garland--top {
    --hw: min(70%, 640px);
  }

  .hero {
    padding-bottom: 5rem;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-0.6deg);
  }
  50% {
    transform: rotate(0.6deg);
  }
}

@keyframes letterIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drawRing {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(-520px) rotate(40deg);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes emblemIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-30deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes emblemCrack {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.88) rotate(-6deg);
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes burst {
  0% {
    transform: translate(0, 0) scale(1) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.2) rotate(var(--r, 180deg));
    opacity: 0;
  }
}

@keyframes write {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-20deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.12) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes shimmer {
  0%,
  60% {
    background-position: 100% 0;
  }
  100% {
    background-position: -150% 0;
  }
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@keyframes shine {
  0%,
  65% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(0.4) rotate(0);
    opacity: 0.3;
  }
  50% {
    transform: scale(1) rotate(90deg);
    opacity: 1;
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.18);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes pulseIn {
  0% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: none;
  }
}

@keyframes tick {
  0% {
    transform: translateY(-40%);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

@keyframes confetti {
  0% {
    transform: translate(var(--sx), var(--sy)) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--sx) + var(--dx)), calc(var(--sy) + var(--dy))) rotate(var(--r));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .names__part,
  .names__amp {
    clip-path: none;
    opacity: 1;
    transform: none;
  }

  .petals {
    display: none;
  }
}
