:root {
  --bg: #f5f0e8;
  --bg-soft: #faf7f2;
  --bg-strong: #121212;
  --text: #171717;
  --text-soft: rgba(23, 23, 23, 0.72);
  --text-light: #f3ede2;
  --border: rgba(23, 23, 23, 0.12);
  --border-light: rgba(243, 237, 226, 0.18);
  --shadow: 0 28px 70px rgba(20, 20, 20, 0.12);
  --container: min(1180px, calc(100vw - 3rem));
  --section-space: clamp(5rem, 10vw, 8rem);
  --hero-offset: 0px;
  --card-radius: 1.6rem;
  --motion-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 205, 188, 0.42), transparent 40%),
    linear-gradient(180deg, #f8f5ef 0%, #f5f0e8 34%, #f2eee7 64%, #efe8de 100%);
  overflow-x: hidden;
}

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

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

body.is-opening .page {
  pointer-events: none;
}

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

button,
a {
  font: inherit;
}

.ambient-glow {
  position: fixed;
  z-index: 0;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.38;
}

.ambient-glow--top {
  top: -16rem;
  right: -8rem;
  background: rgba(210, 194, 171, 0.6);
}

.ambient-glow--bottom {
  bottom: -20rem;
  left: -10rem;
  background: rgba(130, 130, 130, 0.16);
}

.page {
  position: relative;
  z-index: 1;
}

.floating-controls {
  position: fixed;
  top: 1.4rem;
  right: min(1.5rem, 4vw);
  z-index: 40;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.control-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 12, 0.28);
  color: #f5f0e8;
  padding: 0.88rem 1.2rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.control-chip:hover,
.control-chip:focus-visible {
  background: rgba(12, 12, 12, 0.54);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  outline: none;
}

.control-chip:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.opening-overlay__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(15, 15, 15, 0.34);
  backdrop-filter: blur(8px);
}

.opening-envelope {
  position: relative;
  width: min(460px, calc(100vw - 2rem));
  aspect-ratio: 0.94;
  opacity: 0;
  transform: translateY(3rem) scale(0.88);
}

.opening-envelope__shadow {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 72%;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(16px);
  transform: translateX(-50%);
}

.opening-envelope__base,
.opening-envelope__flap,
.opening-letter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.opening-envelope__base {
  bottom: 8%;
  width: 86%;
  height: 55%;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(252, 248, 241, 0.98), rgba(239, 229, 215, 0.98));
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.opening-envelope__base::before,
.opening-envelope__base::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(180deg, rgba(230, 216, 198, 0.55), rgba(227, 209, 188, 0.72));
}

.opening-envelope__base::before {
  left: -6%;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.opening-envelope__base::after {
  right: -6%;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.opening-envelope__flap {
  top: 22%;
  width: 86%;
  height: 38%;
  transform-origin: 50% 0%;
  border-radius: 1.4rem 1.4rem 0 0;
  background: linear-gradient(180deg, rgba(247, 240, 230, 0.98), rgba(227, 212, 194, 0.98));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.opening-envelope__seal {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.38), transparent 32%),
    linear-gradient(180deg, #dbccc0, #bca99a);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}

.opening-envelope__seal::before {
  content: "N&A";
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: rgba(52, 40, 31, 0.82);
}

.opening-letter {
  bottom: 15%;
  width: 76%;
  min-height: 58%;
  padding: 1.8rem 1.6rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 236, 224, 0.98));
  border: 1px solid rgba(102, 88, 73, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%) translateY(30%);
  text-align: center;
}

.opening-letter::before,
.opening-letter::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 63, 49, 0.18), transparent);
}

.opening-letter::before {
  top: 1rem;
}

.opening-letter::after {
  bottom: 1rem;
}

.opening-letter__eyebrow,
.opening-letter__title {
  margin: 0;
}

.opening-letter__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(58, 45, 35, 0.55);
}

.opening-letter__title {
  margin-top: 1.25rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.94;
  color: rgba(34, 28, 22, 0.92);
}

body.is-opening .opening-overlay {
  visibility: visible;
  animation: overlayFade 1900ms var(--motion-spring) forwards;
}

body.is-opening .opening-envelope {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 440ms var(--motion-spring), opacity 440ms ease;
}

body.is-opening .opening-envelope__flap {
  animation: flapOpen 1100ms var(--motion-spring) forwards 180ms;
}

body.is-opening .opening-envelope__seal {
  animation: sealFade 460ms ease forwards 200ms;
}

body.is-opening .opening-letter {
  animation: letterLift 1650ms var(--motion-spring) forwards 340ms;
}

body.is-opening .hero__content {
  animation: heroRetreat 1350ms var(--motion-spring) forwards;
}

body.is-opening .hero__frame {
  animation: frameDissolve 1350ms ease forwards;
}

body.is-opening .hero__overlay {
  animation: heroShade 1400ms ease forwards;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: clip;
}

.hero__media,
.hero__overlay,
.hero__frame {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 40%;
  transform: translateY(calc(var(--hero-offset) * 1px)) scale(1.06);
  transform-origin: center;
  will-change: transform;
  animation: heroBreath 18s ease-in-out infinite alternate;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.12) 18%, rgba(10, 10, 10, 0.52) 100%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.22) 72%);
}

.hero__frame {
  inset: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(58rem, calc(100vw - 3rem));
  text-align: center;
  color: #ffffff;
  padding: 6rem 0;
}

.hero__eyebrow,
.section-marker,
.section-title {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero__names,
.final__names,
.hosts__names,
.venue-card__name,
.calendar-card__month,
.opening-letter__title {
  font-family: "Cormorant Garamond", serif;
}

.hero__names {
  margin: 0;
  font-size: clamp(4rem, 14vw, 8.8rem);
  line-height: 0.88;
  font-weight: 600;
  text-wrap: balance;
}

.hero__names span {
  font-weight: 400;
  opacity: 0.85;
}

.hero__message {
  margin: 1.75rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}

.hero__button,
.venue-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hero__button {
  position: relative;
  overflow: hidden;
  margin-top: 2.25rem;
  background: rgba(247, 243, 236, 0.92);
  color: #141414;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding-inline: 1.9rem;
}

.hero__button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -28%;
  width: 38%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-220%) rotate(20deg);
  animation: buttonSweep 4.8s ease-in-out infinite 1.8s;
}

.hero__button:hover,
.hero__button:focus-visible,
.venue-card__button:hover,
.venue-card__button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.hero__button:hover,
.hero__button:focus-visible {
  background: #ffffff;
}

.section {
  position: relative;
  padding: var(--section-space) 0;
}

.section--light {
  background: transparent;
}

.section--dark {
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.98), rgba(27, 27, 27, 0.98));
  color: var(--text-light);
}

.section--editorial {
  padding-top: clamp(4.5rem, 8vw, 7rem);
}

.section--final {
  background:
    radial-gradient(circle at top, rgba(175, 175, 175, 0.12), transparent 42%),
    linear-gradient(180deg, #111111 0%, #181818 100%);
  color: var(--text-light);
}

.section__inner {
  width: var(--container);
  margin: 0 auto;
}

.section__inner--narrow {
  width: min(760px, calc(100vw - 3rem));
}

.section-marker {
  margin-bottom: 1.15rem;
  font-size: 0.76rem;
  color: rgba(23, 23, 23, 0.5);
}

.section-marker--light {
  color: rgba(243, 237, 226, 0.5);
}

.section-title {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(23, 23, 23, 0.54);
}

.section-title--light {
  color: rgba(243, 237, 226, 0.6);
}

.intro__text,
.final__title,
.final__message,
.venue__lead {
  text-wrap: balance;
}

.intro__text {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.35;
  color: var(--text);
}

.story {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.story__header {
  max-width: 38rem;
  opacity: 0;
  transform: translateY(22px);
  transition: transform 1000ms var(--motion-spring), opacity 1000ms ease;
}

.story__lead {
  margin: 1.25rem 0 0;
  max-width: 30rem;
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 1.02rem;
  text-wrap: balance;
}

.story__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.story__grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(2.6rem, 5vw, 3.2rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 23, 23, 0.1), rgba(23, 23, 23, 0.26), rgba(23, 23, 23, 0.1));
}

.story__item {
  position: relative;
  padding: 0 0.25rem;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 900ms var(--motion-spring), opacity 900ms ease;
}

.story__item::before {
  content: "";
  position: absolute;
  top: clamp(2.2rem, 5vw, 2.85rem);
  left: 0.25rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #e4d8c8, #c8b39a);
  box-shadow: 0 0 0 0.3rem rgba(245, 240, 232, 1);
}

.story__year,
.story__text {
  margin: 0;
}

.story__year {
  padding-left: 1.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--text);
}

.story__text {
  margin-top: 1.4rem;
  padding: 1.35rem 1.2rem 1.25rem;
  min-height: 8.4rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 34px rgba(20, 20, 20, 0.08);
  color: var(--text-soft);
  line-height: 1.75;
  text-wrap: balance;
}

.story.is-visible .story__item {
  opacity: 1;
  transform: translateY(0);
}

.story.is-visible .story__item:nth-child(2) {
  transition-delay: 90ms;
}

.story.is-visible .story__item:nth-child(3) {
  transition-delay: 180ms;
}

.story.is-visible .story__item:nth-child(4) {
  transition-delay: 270ms;
}

.date {
  overflow: hidden;
}

.date__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.date__display {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.4vw, 1.5rem);
  flex-wrap: wrap;
}

.date__unit,
.date__separator {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.8rem, 12vw, 9rem);
  line-height: 0.95;
}

.date__unit {
  color: #f9f4ea;
  transform: translateY(28px);
  opacity: 0;
  transition: transform 800ms var(--motion-spring), opacity 800ms ease;
}

.date.is-visible .date__unit {
  transform: translateY(0);
  opacity: 1;
}

.date__separator {
  color: rgba(243, 237, 226, 0.28);
}

.date__full,
.date__time {
  margin: 1rem 0 0;
  color: rgba(243, 237, 226, 0.8);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  letter-spacing: 0.04em;
}

.date__time {
  color: rgba(243, 237, 226, 0.56);
}

.calendar-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(30px) rotate(-3deg);
  opacity: 0;
  transition: transform 900ms var(--motion-spring), opacity 900ms ease;
}

.date.is-visible .calendar-card {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
  transition-delay: 120ms;
}

.calendar-card::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--card-radius) - 0.5rem);
  pointer-events: none;
}

.calendar-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.calendar-card__month,
.calendar-card__note {
  margin: 0;
}

.calendar-card__month {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  color: #fffaf2;
}

.calendar-card__note {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 237, 226, 0.48);
}

.calendar-card__weekdays,
.calendar-card__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.calendar-card__weekdays {
  margin-top: 1rem;
}

.calendar__weekday {
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 237, 226, 0.52);
}

.calendar-card__grid {
  margin-top: 0.85rem;
}

.calendar__day {
  position: relative;
  min-height: 3rem;
  display: grid;
  place-items: center;
  font-size: 0.96rem;
  border-radius: 0.9rem;
  color: rgba(243, 237, 226, 0.92);
  background: rgba(255, 255, 255, 0.03);
}

.calendar__day.is-empty {
  background: transparent;
  color: transparent;
}

.calendar__day-number {
  position: relative;
  z-index: 1;
}

.calendar__day.is-highlight {
  background: transparent;
}

.calendar__heart {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -52%);
  z-index: 0;
  font-size: 2rem;
  line-height: 1;
  color: rgba(231, 180, 188, 0.96);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.18));
}

.date.is-visible .calendar__heart {
  animation: heartBeat 2.8s ease-in-out infinite 0.6s;
}

.venue__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.venue__lead {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-soft);
}

.venue-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  min-height: 19rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.venue-card::after {
  content: "";
  position: absolute;
  inset: -20% 58% -20% -30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-180%) rotate(18deg);
  transition: transform 1s var(--motion-spring);
}

.venue.is-visible .venue-card::after {
  transform: translateX(210%) rotate(18deg);
}

.venue-card__line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(23, 23, 23, 0.26) 26%, rgba(23, 23, 23, 0.26) 74%, transparent 100%);
  margin-bottom: 1.75rem;
}

.venue-card__name {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.venue-card__address {
  margin: 1rem 0 2rem;
  max-width: 20rem;
  color: var(--text-soft);
  line-height: 1.75;
}

.venue-card__button {
  width: fit-content;
  color: #141414;
  border-color: rgba(23, 23, 23, 0.18);
  background: transparent;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.venue-card__button:hover,
.venue-card__button:focus-visible {
  background: #141414;
  border-color: #141414;
  color: #f3ede2;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.editorial__main {
  position: relative;
  padding-top: 3rem;
}

.editorial__main::before {
  content: "";
  position: absolute;
  inset: 0 10% 10% 0;
  border: 1px solid rgba(23, 23, 23, 0.09);
  z-index: -1;
}

.editorial__main img,
.editorial__accent img,
.closing-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial__main img {
  aspect-ratio: 0.82;
  box-shadow: var(--shadow);
}

.editorial__aside {
  display: grid;
  gap: 1.5rem;
}

.editorial__quote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.96;
  color: #171717;
}

.editorial__accent {
  margin-left: auto;
  width: min(100%, 19rem);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 22px 44px rgba(20, 20, 20, 0.1);
}

.editorial__accent img {
  aspect-ratio: 1 / 1.18;
}

.editorial__film {
  position: relative;
  margin-left: auto;
  width: min(100%, 22rem);
  padding: 0.9rem;
  border-radius: calc(var(--card-radius) + 0.1rem);
  background:
    linear-gradient(180deg, rgba(19, 19, 19, 0.98), rgba(42, 42, 42, 0.94)),
    rgba(20, 20, 20, 0.94);
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 26px 48px rgba(20, 20, 20, 0.16);
  overflow: hidden;
}

.editorial__film::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--card-radius) - 0.3rem);
  pointer-events: none;
}

.editorial__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72svh, 34rem);
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--card-radius) - 0.3rem);
  filter: saturate(0.92) contrast(1.03);
  background: #111111;
}

.hosts__line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-light) 18%, var(--border-light) 82%, transparent 100%);
}

.hosts__names {
  margin: 2rem 0;
  text-align: center;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
  color: #f9f4ea;
}

.closing-photo__frame {
  margin-left: auto;
  width: min(100%, 920px);
  overflow: hidden;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.closing-photo__frame img {
  aspect-ratio: 1.34;
  transform: scale(1.06);
  transition: transform 1400ms var(--motion-spring);
}

.closing-photo.is-visible .closing-photo__frame img {
  transform: scale(1.14);
}

.final {
  min-height: 54svh;
  display: grid;
  place-items: center;
}

.final__title,
.final__message {
  margin: 0;
  text-align: center;
}

.final__title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: rgba(243, 237, 226, 0.84);
}

.final__names {
  margin: 1rem 0;
  text-align: center;
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 0.98;
  color: #ffffff;
}

.final__message {
  max-width: 28rem;
  margin-inline: auto;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
  color: rgba(243, 237, 226, 0.76);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 950ms ease, transform 950ms var(--motion-spring);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro__text,
.venue__intro > *,
.venue-card,
.editorial__main,
.editorial__quote,
.editorial__accent,
.hosts__line,
.hosts__names,
.closing-photo__frame,
.final__title,
.final__names,
.final__message,
.calendar-card__header,
.calendar-card__weekdays,
.calendar-card__grid {
  transition:
    opacity 1000ms ease,
    transform 1000ms var(--motion-spring);
}

.editorial__main,
.editorial__accent,
.editorial__film,
.closing-photo__frame {
  transform: translateY(26px) scale(0.98);
  opacity: 0;
}

.editorial__quote,
.final__title,
.final__names,
.final__message,
.hosts__names,
.intro__text {
  transform: translateY(24px);
  opacity: 0;
}

.venue__intro > *,
.venue-card,
.hosts__line,
.calendar-card__header,
.calendar-card__weekdays,
.calendar-card__grid {
  transform: translateY(22px);
  opacity: 0;
}

.reveal.is-visible .intro__text,
.reveal.is-visible .story__header,
.reveal.is-visible .venue__intro > *,
.reveal.is-visible .venue-card,
.reveal.is-visible .editorial__main,
.reveal.is-visible .editorial__quote,
.reveal.is-visible .editorial__accent,
.reveal.is-visible .editorial__film,
.reveal.is-visible .hosts__line,
.reveal.is-visible .hosts__names,
.reveal.is-visible .closing-photo__frame,
.reveal.is-visible .final__title,
.reveal.is-visible .final__names,
.reveal.is-visible .final__message,
.reveal.is-visible .calendar-card__header,
.reveal.is-visible .calendar-card__weekdays,
.reveal.is-visible .calendar-card__grid {
  transform: none;
  opacity: 1;
}

.reveal.is-visible .calendar-card__weekdays {
  transition-delay: 120ms;
}

.reveal.is-visible .calendar-card__grid,
.reveal.is-visible .venue-card,
.reveal.is-visible .editorial__accent,
.reveal.is-visible .editorial__film,
.reveal.is-visible .final__message {
  transition-delay: 180ms;
}

.reveal.is-visible .hosts__names,
.reveal.is-visible .final__names {
  transition-delay: 120ms;
}

@keyframes overlayFade {
  0% {
    opacity: 0;
  }

  10%,
  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes flapOpen {
  0% {
    transform: translateX(-50%) rotateX(0deg);
  }

  100% {
    transform: translateX(-50%) rotateX(-175deg);
  }
}

@keyframes sealFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -56%) scale(0.86);
  }
}

@keyframes letterLift {
  0% {
    transform: translateX(-50%) translateY(30%) scale(0.96);
  }

  34% {
    transform: translateX(-50%) translateY(-8%) scale(1);
  }

  76% {
    transform: translateX(-50%) translateY(-20%) scale(1.08);
  }

  100% {
    transform: translateX(-50%) translateY(-8%) scale(2.4);
    opacity: 0.04;
    filter: blur(1px);
  }
}

@keyframes heroRetreat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-28px) scale(0.96);
  }
}

@keyframes frameDissolve {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

@keyframes heroShade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.25;
  }
}

@keyframes heroBreath {
  0% {
    transform: translateY(calc(var(--hero-offset) * 1px)) scale(1.06);
  }

  100% {
    transform: translateY(calc(var(--hero-offset) * 1px - 10px)) scale(1.11);
  }
}

@keyframes heartBeat {
  0%,
  100% {
    transform: translate(-50%, -52%) scale(1);
  }

  26% {
    transform: translate(-50%, -52%) scale(1.12);
  }

  46% {
    transform: translate(-50%, -52%) scale(0.96);
  }

  62% {
    transform: translate(-50%, -52%) scale(1.08);
  }
}

@keyframes buttonSweep {
  0%,
  72%,
  100% {
    transform: translateX(-220%) rotate(20deg);
  }

  22% {
    transform: translateX(320%) rotate(20deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .date__unit,
  .closing-photo__frame img,
  .reveal,
  .hero__button::after,
  .calendar__heart {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  body.is-opening .opening-overlay,
  body.is-opening .opening-envelope__flap,
  body.is-opening .opening-envelope__seal,
  body.is-opening .opening-letter,
  body.is-opening .hero__content,
  body.is-opening .hero__frame,
  body.is-opening .hero__overlay {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .date__layout,
  .venue__layout,
  .editorial {
    grid-template-columns: 1fr;
  }

  .story__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial__aside {
    grid-template-columns: 1fr minmax(180px, 260px);
    align-items: end;
  }

  .closing-photo__frame {
    width: 100%;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 1.5rem, 100%);
    --section-space: 4.5rem;
  }

  .floating-controls {
    left: 0.75rem;
    right: 0.75rem;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .control-chip {
    padding: 0.82rem 1rem;
    font-size: 0.68rem;
  }

  .hero__frame {
    inset: 0.75rem;
  }

  .hero__content {
    padding: 7.5rem 0 5rem;
  }

  .hero__media {
    background-position: center 30%;
  }

  .hero__message {
    line-height: 1.7;
  }

  .date__display {
    gap: 0.45rem;
  }

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

  .story__grid::before {
    left: 0.25rem;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.1), rgba(23, 23, 23, 0.26), rgba(23, 23, 23, 0.1));
  }

  .story__item {
    padding-left: 1.2rem;
  }

  .story__item::before {
    left: -0.15rem;
    top: 1rem;
  }

  .story__year {
    padding-left: 0.9rem;
  }

  .story__text {
    min-height: auto;
  }

  .date__separator {
    font-size: clamp(2.4rem, 8vw, 3rem);
  }

  .calendar-card {
    padding: 1.35rem 1.15rem 1.2rem;
  }

  .calendar__day {
    min-height: 2.7rem;
    border-radius: 0.75rem;
  }

  .calendar__heart {
    font-size: 1.75rem;
  }

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

  .editorial__accent {
    margin-left: 0;
    width: min(100%, 16rem);
  }

  .editorial__film {
    margin-left: 0;
    width: 100%;
  }

  .venue-card {
    min-height: auto;
  }

  .closing-photo__frame img {
    aspect-ratio: 0.78;
  }
}
