:root {
  --powder: #b8d0da;
  --powder-light: #dce9ee;
  --powder-mid: #94b6c4;
  --powder-deep: #719bab;
  --ink: #304753;
  --ivory: #faf7f0;
  --beige: #dfd3c1;
  --brown: #6b4d3f;
  --line: rgba(48, 71, 83, .2);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Playfair Display", Georgia, serif;
  --shadow: 0 30px 80px rgba(49, 77, 89, .2);
  --toile: url("assets/toile-de-jouy.webp");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--powder);
  background-image: linear-gradient(rgba(184, 208, 218, .72), rgba(184, 208, 218, .72)), var(--toile);
  background-repeat: repeat;
  background-size: auto, 760px auto;
  background-blend-mode: normal, multiply;
  font: 500 20px/1.45 var(--serif);
}
body.locked { overflow: hidden; }
a { color: inherit; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
::selection { color: var(--ivory); background: var(--powder-deep); }

[hidden] { display: none !important; }
.opening {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background-color: var(--powder);
  background-image: linear-gradient(rgba(184,208,218,.86), rgba(184,208,218,.86)), var(--toile);
  background-size: auto, 680px auto;
  transition: opacity .9s cubic-bezier(.22,1,.36,1), visibility .9s cubic-bezier(.22,1,.36,1);
}
.opening::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(48,71,83,.2);
  pointer-events: none;
}
.opening.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.opening.is-skipped { transition: none; }
.opening__skip {
  position: absolute;
  top: 28px;
  right: 34px;
  z-index: 2;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(48,71,83,.45);
  background: none;
  font: 500 12px/1 var(--serif);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .45s ease, border-color .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.opening__skip:hover { color: var(--powder-deep); border-color: var(--powder-deep); transform: translateY(-2px); }
.opening__skip:active { transform: translateY(0) scale(.97); }
.opening__skip:focus-visible { outline: 2px solid var(--powder-deep); outline-offset: 5px; }
.opening__content { position: relative; z-index: 1; width: min(520px, 100%); text-align: center; }
.opening__content > .eyebrow { margin-bottom: 30px; font-size: clamp(27px, 3vw, 34px); letter-spacing: .025em; transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.opening__content h1 { max-width: 430px; margin: 38px auto 26px; font: 400 clamp(28px, 4vw, 40px)/1.12 var(--display); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.envelope {
  position: relative;
  width: min(360px, calc(100vw - 68px));
  aspect-ratio: 36 / 23;
  margin: 0 auto;
  perspective: 1100px;
}
.envelope::before,
.envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.envelope::before {
  background: #bfd4dc;
  clip-path: polygon(0 0, 50% 62%, 0 100%);
  filter: drop-shadow(1px 0 0 rgba(48,71,83,.18));
}
.envelope::after {
  background: #b3ccd6;
  clip-path: polygon(100% 0, 100% 100%, 50% 62%);
  filter: drop-shadow(-1px 0 0 rgba(48,71,83,.18));
}
.envelope__back {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(48,71,83,.18);
  background: #c8dbe2;
  box-shadow: 0 28px 60px rgba(49,77,89,.23);
}
.envelope__letter {
  position: absolute;
  inset: 18px 18px 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(48,71,83,.14);
  background: var(--ivory);
  font: 400 48px/1 var(--display);
  box-shadow: 0 8px 24px rgba(49,77,89,.12);
  transform: translateY(8px);
  transition: transform 1.75s cubic-bezier(.65,0,.35,1) .2s;
}
.envelope__letter i { color: var(--powder-deep); font-size: 58px; font-style: normal; }
.envelope__front {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #a9c4cf;
  clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%);
}
.envelope__flap {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #c5d9e0;
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  filter: drop-shadow(0 1px 0 rgba(48,71,83,.2));
  transform-origin: top;
  backface-visibility: hidden;
  transition: transform 1.55s cubic-bezier(.65,0,.35,1);
}
.envelope__seal {
  position: absolute;
  left: 50%;
  top: 61%;
  z-index: 6;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(250,247,240,.48);
  border-radius: 46% 54% 49% 51% / 52% 44% 56% 48%;
  color: var(--ivory);
  background: radial-gradient(circle at 38% 32%, #8db1bf 0 12%, var(--powder-deep) 48%, #5f8999 100%);
  box-shadow: 0 8px 20px rgba(48,71,83,.3), inset 0 0 0 3px rgba(250,247,240,.11);
  transform: translate(-50%,-50%);
  transition: opacity .95s cubic-bezier(.65,0,.35,1), transform .95s cubic-bezier(.65,0,.35,1);
  animation: wax-breathe 4.2s ease-in-out infinite;
}
.envelope__seal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(250,247,240,.48);
  border-radius: 50%;
}
.envelope__seal::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 4px;
  right: 8px;
  top: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  transform: rotate(35deg);
}
.envelope__seal span { position: relative; z-index: 1; font: 500 13px/1 var(--display); letter-spacing: .03em; }
@keyframes wax-breathe {
  0%, 100% { transform: translate(-50%,-50%) rotate(-2deg) scale(1); }
  50% { transform: translate(-50%,-50%) rotate(2deg) scale(1.055); }
}
.opening.is-opening .opening__content > .eyebrow { opacity: 0; transform: translateY(-7px); }
.opening.is-opening .opening__content h1,
.opening.is-opening .opening__button { opacity: 0; transform: translateY(10px); }
.opening.is-opening .envelope__flap { transform: rotateX(180deg); }
.opening.is-opening .envelope__letter { transform: translateY(-82px); }
.opening.is-opening .envelope__seal { opacity: 0; transform: translate(-50%,-50%) rotate(28deg) scale(.08); animation: none; }
.opening__button { min-width: 230px; font-size: 15px; }

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  width: min(1180px, calc(100% - 48px));
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  color: var(--ink);
}
.nav__monogram { text-decoration: none; font: 500 27px/1 var(--display); }
.nav__monogram span { padding: 0 3px; color: var(--powder-deep); font: 400 26px/1 var(--display); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font: 500 12px/1 var(--display); letter-spacing: .06em; text-decoration: none; }

.slide { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 105px 24px; }
.eyebrow { margin: 0; font: 500 13px/1.3 var(--display); letter-spacing: .07em; }
.script { font: 500 italic 27px/1.25 var(--serif); }

.arch-card {
  position: relative;
  width: min(760px, 100%);
  padding: 108px 80px 72px;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(125deg, #fffdf8, var(--ivory) 58%, #eee7dc);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 280px 280px 14px 14px;
  box-shadow: inset 0 0 0 2px rgba(48,71,83,.13), var(--shadow);
}
.arch-card--blue {
  color: var(--ivory);
  background-color: var(--powder-deep);
  background-image: linear-gradient(rgba(113,155,171,.79), rgba(113,155,171,.79)), var(--toile);
  background-size: auto, 640px auto;
  background-blend-mode: normal, multiply;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.3), var(--shadow);
}

.hero { min-height: 100svh; overflow: hidden; padding-top: 76px; }
.hero-card {
  position: relative;
  width: min(700px, calc(100% - 28px));
  height: min(850px, calc(100svh - 100px));
  min-height: 650px;
  margin: 0;
  overflow: hidden;
  background-color: var(--ivory);
  background-image: linear-gradient(rgba(250,247,240,.94), rgba(250,247,240,.98)), var(--toile);
  background-size: auto, 620px auto;
  border: 10px solid rgba(250,247,240,.82);
  border-radius: 350px 350px 18px 18px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(48,71,83,.2);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 1px solid rgba(113,155,171,.5);
  border-radius: inherit;
  pointer-events: none;
}
.hero-card__top-lily {
  position: absolute;
  top: -3%;
  left: -3%;
  z-index: 2;
  width: 50%;
  height: 50%;
  object-fit: contain;
  object-position: left top;
  pointer-events: none;
  opacity: .88;
  transform: rotate(180deg);
}
.hero-card__corner-lily {
  position: absolute;
  right: 1%;
  bottom: 1%;
  z-index: 2;
  width: 46%;
  height: 48%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  opacity: .78;
}
.hero__content { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 60px 82px; text-align: center; }
.hero__content .eyebrow { margin-bottom: 42px; font-size: clamp(23px, 3.1vw, 32px); line-height: 1.08; letter-spacing: .015em; }
.hero__names { position: relative; width: 100%; }
.hero__ampersand { position: absolute; left: 67%; top: 52%; z-index: 0; color: #a9c9d6; font: 400 255px/.5 var(--display); opacity: .62; transform: translate(-50%,-50%); }
.hero h1 { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; margin: 0; color: var(--ink); font: 400 clamp(70px, 9vw, 105px)/.72 var(--display); letter-spacing: -.05em; }
.hero h1 span { display: block; }
.hero h1 span:first-child { transform: translateX(-10%); }
.hero h1 span:last-child { transform: translateX(9%); }
.hero__rule { width: 180px; height: 1px; margin: 55px 0 20px; background: var(--line); }
.hero__quote { margin: 0; font: 500 21px/1.35 var(--serif); }
.hero__date { margin: 34px 0 0; font: 500 29px/1 var(--display); letter-spacing: .07em; }
.scroll-cue { position: absolute; z-index: 7; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(48,71,83,.42); border-radius: 50%; background: rgba(250,247,240,.58); }
.scroll-cue span { width: 8px; height: 8px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-2px) rotate(45deg); }

.invitation__card { text-align: center; }
.guest-title { display: table; min-width: 260px; margin: 0 auto 38px; padding: 4px 8px; outline: 0; font: 400 clamp(48px, 7vw, 76px)/.98 var(--display); text-align: center; white-space: pre-line; }
.invitation__text { max-width: 590px; margin: 0 auto 48px; font-size: 22px; line-height: 1.42; }
.calendar-heading { display: flex; justify-content: space-between; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 500 28px/1 var(--display); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 13px 5px; text-align: center; }
.calendar b { color: var(--powder-deep); font: 500 12px/30px var(--display); }
.calendar span, .calendar i { position: relative; min-height: 30px; font-style: normal; }
.ring-date { z-index: 1; display: grid; place-items: center; color: var(--ink); font-weight: 600; }
.ring-date > span { z-index: 2; min-height: auto; line-height: 30px; }
.ring-date svg { position: absolute; left: 50%; top: 50%; z-index: 1; width: 58px; height: 67px; overflow: visible; fill: none; stroke: var(--powder-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: translate(-50%,-65.2%) rotate(35deg); transform-origin: 50% 65.2%; }
.ring-date svg path, .ring-date svg circle { fill: none; }
.ring-date svg circle:last-child { fill: var(--powder-deep); stroke: none; }
.invitation__signature { margin: 42px 0 0; color: var(--powder-deep); font: 500 italic 29px/1.2 var(--serif); }

.program__card { width: min(880px, 100%); padding-inline: clamp(28px, 7vw, 84px); }
.section-heading { text-align: center; }
.section-heading .eyebrow { margin-bottom: 18px; color: var(--ivory); }
.section-heading h2 { margin: 0; font: 400 clamp(50px, 7vw, 78px)/1 var(--display); }
.timeline { position: relative; margin: 66px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 105px 72px 1fr; gap: 22px; align-items: start; min-height: 190px; }
.timeline li:not(.is-last-visible)::after { content: ""; position: absolute; left: calc(105px + 22px + 32px); top: 32px; z-index: 0; width: 1px; height: 100%; background: rgba(255,255,255,.45); pointer-events: none; }
.timeline__time { padding-top: 17px; font: 500 29px/1 var(--display); text-align: right; }
.timeline__marker { position: relative; z-index: 2; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; background: var(--powder-deep); }
.timeline__marker svg { width: 38px; fill: none; stroke: var(--ivory); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.timeline__marker .timeline__icon--rings { width: 43px; }
.timeline__marker .timeline__icon--cutlery { width: 34px; }
.timeline__content { padding: 8px 0 32px; border-bottom: 1px solid rgba(255,255,255,.28); }
.timeline li.is-last-visible .timeline__content { border-bottom: 0; }
.timeline h3 { margin: 0 0 9px; font: 400 34px/1 var(--display); }
.timeline__content p { margin: 0 0 4px; font-size: 19px; }
.location-link { display: block; margin: 0; padding: 4px 0; border: 0; color: white; background: transparent; font: 500 18px/1.4 var(--serif); text-align: left; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 4px; transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1), text-decoration-color .45s ease; }
.location-link span { display: inline-block; margin-left: 4px; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.location-link:hover { opacity: .82; transform: translateX(3px); text-decoration-color: white; }
.location-link:hover span { transform: translate(3px,-3px); }
.location-link:active { transform: translateX(1px) scale(.985); }
.location-link:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }

.details { padding-block: 125px; }
.details__grid { width: min(1120px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.details .arch-card { width: 100%; padding: 102px 48px 60px; text-align: center; }
.details h2, .contacts h2 { margin: 17px 0 28px; font: 400 clamp(49px, 6vw, 69px)/.9 var(--display); }
.details h2 em { color: var(--powder-deep); font-family: inherit; font-style: normal; font-weight: 400; }
.palette-card__label { font-size: 21px; letter-spacing: .055em; }
.palette-group { margin-top: 37px; }
.palette-group h3 { margin: 0 0 16px; font: 500 18px/1.25 var(--display); }
.palette { display: flex; justify-content: center; gap: 9px; }
.palette span { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 50%; background: var(--swatch); border: 1px solid rgba(48,71,83,.14); box-shadow: 0 7px 18px rgba(48,71,83,.12); }
.palette--men span { width: 64px; height: 64px; }
.wishes-card { display: flex; flex-direction: column; justify-content: center; }
.wishes-card > p:not(.eyebrow,.script) { margin: 0 auto 30px; font-size: 22px; line-height: 1.45; }
.wishes-card__label { font-size: 24px; letter-spacing: .035em; }
.wishes-card .script { margin: 8px 0 0; color: var(--powder-deep); }

.contacts { min-height: auto; padding-bottom: 68px; }
.contacts__card { width: min(720px, 100%); padding-block: 110px 72px; text-align: center; }
.contacts__eyebrow { margin-bottom: 4px; font-size: clamp(23px, 3vw, 29px); letter-spacing: .035em; }
.contacts__card > p:not(.eyebrow,.contacts__names) { max-width: 530px; margin: 0 auto 30px; font-size: 21px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 28px; border: 1px solid transparent; color: var(--ivory); background: var(--powder-deep); text-decoration: none; font: 500 14px/1 var(--display); transition: color .48s ease, background-color .48s ease, border-color .48s ease, box-shadow .48s ease, opacity .48s ease, transform .48s cubic-bezier(.22,1,.36,1); }
.button:hover { background: #5f899a; box-shadow: 0 10px 24px rgba(48,71,83,.18); transform: translateY(-3px); }
.button:active { box-shadow: 0 4px 12px rgba(48,71,83,.14); transform: translateY(0) scale(.985); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.button:disabled { cursor: default; opacity: .72; }
.contacts__actions { width: min(570px, 100%); display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 auto; }
.contact-button { min-width: 0; padding-inline: 18px; font-size: 13px; }
.contacts__names { margin: 40px 0 0; color: var(--powder-deep); font: 400 29px/1 var(--display); }
.contacts__names i { font-family: inherit; font-style: normal; }

.countdown { min-height: auto; padding-top: 68px; }
.countdown__card { width: min(820px, 100%); padding: 115px 58px 70px; text-align: center; }
.countdown__card > .script { margin: 0 0 45px; color: white; font: 400 32px/1.25 var(--display); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.countdown__grid div { position: relative; }
.countdown__grid div:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.36); }
.countdown__grid strong { display: block; font: 400 clamp(42px, 7vw, 68px)/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown__grid span { font: 500 12px/1 var(--serif); opacity: .8; }
.countdown__names { margin-top: 58px; font: 400 38px/1 var(--display); }
.countdown__names i { font-family: inherit; font-style: normal; }

.footer { padding: 85px 24px; color: var(--ink); background: rgba(220,233,238,.92); text-align: center; }
.footer > p:nth-child(2) { margin: 22px 0 0; font: 400 29px/1 var(--display); }
.footer a { display: inline-block; margin-top: 34px; font: 500 13px/1 var(--display); }

.map-modal[hidden] { display: none; }
.map-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow-y: auto; padding: 24px; }
.map-modal__backdrop { position: absolute; inset: 0; background: rgba(48,71,83,.7); backdrop-filter: blur(9px); }
.map-modal__card {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100svh - 48px);
  overflow: visible;
  padding: 82px 54px 48px;
  border: 8px solid rgba(220,233,238,.72);
  border-radius: 300px 300px 14px 14px;
  color: var(--ink);
  background: var(--ivory);
  box-shadow: 0 36px 100px rgba(25,45,54,.38);
  text-align: center;
}
.map-modal__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}
.map-modal__close {
  position: absolute;
  top: 27px;
  right: 27px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(250,247,240,.84);
  font: 400 30px/1 var(--display);
  transition: color .45s ease, background-color .45s ease, border-color .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.map-modal__close:hover { color: white; background: var(--powder-deep); transform: rotate(90deg); }
.map-modal__close:active { transform: rotate(90deg) scale(.92); }
.map-modal__close:focus-visible { outline: 2px solid var(--powder-deep); outline-offset: 4px; }
.map-modal__pin {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: var(--ivory);
  background: var(--powder-deep);
  box-shadow: 0 12px 28px rgba(48,71,83,.2);
}
.map-modal__pin svg { width: 38px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.map-modal__card > .eyebrow { margin-bottom: 14px; color: var(--powder-deep); }
.map-modal__card h2 { max-width: 510px; margin: 0 auto; font: 400 clamp(36px, 5vw, 54px)/.95 var(--display); }
.map-modal__address { max-width: 470px; margin: 24px auto 34px; font-size: 19px; }
.map-modal__actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
.map-modal__route { width: 100%; min-height: 58px; padding-inline: 20px; font-size: 13px; }
.map-modal__hint { margin: 19px 0 0; color: var(--powder-deep); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.05s cubic-bezier(.22,1,.36,1), transform 1.05s cubic-bezier(.22,1,.36,1); }
.reveal h1,
.reveal h2,
.reveal > .eyebrow { opacity: 0; transform: translateY(18px); transition: opacity 1.2s cubic-bezier(.22,1,.36,1) .18s, transform 1.2s cubic-bezier(.22,1,.36,1) .18s; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-visible h1,
.reveal.is-visible h2,
.reveal.is-visible > .eyebrow { opacity: 1; transform: none; }

@media (max-width: 800px) {
  body { background-size: auto, 570px auto; }
  .nav { width: 100%; height: 62px; padding: 0 18px; background: linear-gradient(rgba(184,208,218,.98), rgba(184,208,218,.86) 64%, transparent); }
  .nav__links { display: none; }
  .slide { min-height: auto; padding: 76px 18px; }
  .hero-card__top-lily { top: -3%; left: -3%; width: 56%; height: 48%; }
  .hero-card__corner-lily { right: 1%; bottom: 1%; width: 52%; height: 46%; }
  .hero { min-height: 100svh; padding-top: 66px; }
  .hero-card { width: calc(100% - 8px); height: calc(100svh - 90px); min-height: 650px; border-width: 7px; border-radius: 50vw 50vw 12px 12px; }
  .hero-card::before { inset: 6px; }
  .hero__content { padding: 92px 38px 76px; transform: none; }
  .hero-card__triple-lily { right: -5%; bottom: 0; width: 68%; height: 38%; }
  .hero h1 { font-size: clamp(61px, 18vw, 84px); }
  .hero__ampersand { left: 69%; font-size: 190px; }
  .hero__rule { width: 145px; margin: 43px 0 18px; }
  .hero__quote { font-size: 19px; }
  .hero__date { margin-top: 27px; font-size: 23px; }
  .arch-card { padding: 88px 26px 54px; border-radius: 170px 170px 10px 10px; }
  .invitation { padding-block: 76px; }
  .invitation__text { font-size: 19px; }
  .calendar { gap-block: 11px; }
  .program__card { padding-inline: 18px; }
  .timeline { margin-top: 53px; }
.timeline li { grid-template-columns: 58px 52px 1fr; gap: 8px; min-height: 185px; }
.timeline li:not(.is-last-visible)::after { left: calc(58px + 8px + 24px); top: 24px; }
  .timeline__time { padding-top: 13px; font-size: 20px; }
  .timeline__marker { width: 48px; height: 48px; }
  .timeline__marker svg { width: 32px; }
  .timeline__content { padding-top: 7px; }
  .timeline h3 { font-size: 28px; }
  .timeline__content p, .location-link { font-size: 16px; }
  .details { padding-block: 76px; }
  .details__grid { grid-template-columns: 1fr; max-width: 620px; gap: 66px; }
  .details .arch-card { padding: 86px 28px 54px; }
  .details h2, .contacts h2 { margin-block: 14px 24px; font-size: 51px; }
  .wishes-card > p:not(.eyebrow,.script) { font-size: 20px; }
  .wishes-card__label { font-size: 22px; }
  .contacts__card > p:not(.eyebrow,.contacts__names) { font-size: 19px; }
  .contacts__card { padding-inline: 28px; }
  .countdown__card { padding-inline: 22px; }
  .countdown__card > .script { font-size: 27px; }
  .countdown__grid strong { font-size: 43px; }
}

@media (max-width: 430px) {
  .hero__content { padding: 86px 27px 68px; }
  .hero__content .eyebrow { font-size: 21px; }
  .hero h1 { font-size: 63px; }
  .hero__ampersand { left: 70%; font-size: 168px; }
  .hero__quote { font-size: 17px; }
  .guest-title { min-width: auto; font-size: 46px; }
  .calendar-heading { font-size: 23px; }
  .calendar { gap: 10px 1px; font-size: 17px; }
  .invitation__signature { font-size: 23px; }
  .section-heading h2 { font-size: 46px; }
.timeline li { grid-template-columns: 48px 45px 1fr; gap: 6px; }
.timeline li:not(.is-last-visible)::after { left: calc(48px + 6px + 21px); top: 21px; }
  .timeline__time { font-size: 17px; }
  .timeline__marker { width: 42px; height: 42px; }
  .timeline__marker svg { width: 29px; }
  .timeline h3 { font-size: 25px; }
  .timeline__content p, .location-link { font-size: 15px; line-height: 1.4; }
  .palette-group h3 { font-size: 16px; }
  .palette { gap: 6px; }
  .palette span { width: 44px; height: 44px; }
  .palette--men span { width: 50px; height: 50px; }
  .countdown__grid strong { font-size: 35px; }
  .countdown__grid span { font-size: 10px; }
  .map-modal { padding: 14px; }
  .map-modal__card { padding: 72px 24px 36px; border-width: 6px; border-radius: 180px 180px 10px 10px; }
  .map-modal__close { top: 18px; right: 18px; width: 40px; height: 40px; }
  .map-modal__pin { width: 60px; height: 60px; margin-bottom: 18px; }
  .map-modal__card h2 { font-size: 39px; }
  .map-modal__address { margin-block: 18px 26px; font-size: 16px; }
  .map-modal__actions { grid-template-columns: 1fr; gap: 9px; }
}

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