.celebrations-block,
.date-reveal,
.venue-section,
.story-section,
.message-block,
.carousel-section,
.countdown-copy {
  position: relative;
  isolation: isolate;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-size: auto, auto, cover !important;
  background-position: center, center, center 48% !important;
  background-blend-mode: normal, color, normal !important;
  background-attachment: scroll !important;
}

.relative.w-full:has(> .date-reveal) {
  padding-block: 0 !important;
  background: transparent !important;
}

.celebrations-block {
  padding-block: clamp(48px, 7vw, 72px);
  color: #233d4b;
  background-color: #8eafbe !important;
  background-image:
    radial-gradient(ellipse at 14% 12%, rgba(255, 247, 235, .2), transparent 48%),
    linear-gradient(#779eb1, #779eb1),
    url("./6.avif") !important;
}

.celebrations-block::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(80vw, 900px);
  aspect-ratio: 1.8;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(225, 160, 185, .2), transparent 68%);
  pointer-events: none;
}

.celebrations-block > .reveal-sequence > .reveal-step :is(h1, h2, h3, p, span) {
  color: #233d4b !important;
}

.celebrations-block > .reveal-sequence > .reveal-step {
  opacity: 1 !important;
  transform: none !important;
}

.celebrations-block > .reveal-sequence > .reveal-step p {
  color: #654d38 !important;
}

.event-card {
  color: #f7f5ef !important;
  border-color: rgba(245, 219, 224, .42) !important;
  box-shadow: 0 24px 70px rgba(31, 51, 65, .2), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
  transition: box-shadow .55s ease, border-color .45s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}

.celebrations-block .event-card :is(h1, h2, h3, p, span) {
  color: #f7f5ef !important;
}

.date-reveal {
  padding-block: clamp(48px, 7vw, 72px) !important;
  color: #2b4338;
  background-color: #83aa95 !important;
  background-image:
    radial-gradient(ellipse at 84% 14%, rgba(255, 247, 232, .18), transparent 48%),
    linear-gradient(#69977b, #69977b),
    url("./6.avif") !important;
}

.date-reveal :is(h1, h2, h3, p, span) {
  color: #293f34 !important;
}

.date-reveal > div > :is(p, h1, h2, h3) {
  color: #34493b !important;
}

.venue-section {
  min-height: 400px !important;
  padding-block: clamp(48px, 7vw, 72px) !important;
  color: #4a303e;
  background-color: #c99eae !important;
  background-image:
    radial-gradient(ellipse at 16% 18%, rgba(255, 246, 239, .2), transparent 48%),
    linear-gradient(#b98499, #b98499),
    url("./6.avif") !important;
}

.venue-section :is(h1, h2, h3, p, span) {
  color: #49313d !important;
}

.venue-section > .relative.z-10 :is(h2, h3, p) {
  color: #49313d !important;
}

.venue-section::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(94, 55, 74, .3);
  box-shadow: inset 0 0 0 6px rgba(255, 246, 239, .08);
  pointer-events: none;
}

.story-section {
  padding-block: clamp(48px, 7vw, 72px) !important;
  color: #233d4b;
  background-color: #8eafbe !important;
  background-image:
    radial-gradient(ellipse at 82% 16%, rgba(255, 247, 235, .18), transparent 48%),
    linear-gradient(#779eb1, #779eb1),
    url("./6.avif") !important;
}

.story-section > .relative.z-10 :is(h2, h3, p) {
  color: #233d4b !important;
}

.message-block {
  color: #2b4338;
  background-color: #83aa95 !important;
  background-image:
    radial-gradient(ellipse at 14% 18%, rgba(255, 247, 232, .18), transparent 50%),
    linear-gradient(#69977b, #69977b),
    url("./6.avif") !important;
}

.message-block > div:first-child > img {
  filter: saturate(.78) brightness(.84);
}

.message-block :is(h1, h2, h3, p, span) {
  color: #293f34 !important;
}

.message-block [style*="linear-gradient(160deg"] {
  background: linear-gradient(145deg, rgba(222, 239, 230, .52), rgba(220, 230, 238, .44) 55%, rgba(244, 224, 233, .5)) !important;
}

.message-block > .relative.flex.flex-col.items-center,
.message-block > div:last-child > div {
  margin: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(255, 250, 239, .56);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(223, 239, 228, .92), rgba(202, 226, 211, .9));
  box-shadow: 0 18px 48px rgba(32, 59, 64, .2), inset 0 1px 0 rgba(255, 255, 255, .52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.carousel-section {
  border-top: 1px solid rgba(94, 55, 74, .25);
  border-bottom: 1px solid rgba(94, 55, 74, .25);
  color: #4a303e;
  background-color: #c99eae !important;
  background-image:
    radial-gradient(ellipse at 14% 18%, rgba(255, 246, 239, .2), transparent 46%),
    linear-gradient(#b98499, #b98499),
    url("./6.avif") !important;
}

.carousel-section :is(h1, h2, h3, p, span) {
  color: #49313d !important;
}

.countdown-copy {
  padding-block: clamp(48px, 7vw, 72px) !important;
  color: #233d4b;
  background-color: #8eafbe !important;
  background-image:
    radial-gradient(ellipse at 12% 20%, rgba(255, 247, 235, .18), transparent 48%),
    linear-gradient(#779eb1, #779eb1),
    url("./6.avif") !important;
}

.countdown-copy :is(h1, h2, h3, p, span) {
  color: #233d4b !important;
}

.env-outer {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(124, 184, 199, .17), transparent 34%),
    radial-gradient(ellipse at 16% 82%, rgba(111, 169, 148, .12), transparent 42%),
    radial-gradient(ellipse at 86% 18%, rgba(207, 151, 175, .12), transparent 42%),
    radial-gradient(ellipse at 50% 50%, #0a2030, #040e22) !important;
}

.env-outer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(157, 208, 215, .22), transparent 34%),
    radial-gradient(ellipse at 17% 82%, rgba(143, 196, 169, .15), transparent 43%),
    radial-gradient(ellipse at 84% 20%, rgba(226, 176, 194, .15), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.env-outer:has(.envelope.open)::before {
  opacity: 1;
}

.env-outer > .relative.z-10 {
  z-index: 1;
}

.envelope.open {
  animation: blueHorizonEnvelopeLift 1.85s cubic-bezier(.22, 1, .36, 1) both;
}

.env-bloom {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(224, 242, 237, .98) 0%, rgba(190, 225, 226, .97) 42%, rgba(224, 207, 220, .96) 100%) !important;
}

.env-bloom.expand {
  transition: clip-path 1.15s cubic-bezier(.22, 1, .36, 1), opacity 1.2s ease;
}

@keyframes blueHorizonEnvelopeLift {
  0% { transform: translateY(0) scale(1); }
  34% { transform: translateY(-10px) scale(1.035); }
  70% { transform: translateY(-5px) scale(1.02); }
  100% { transform: translateY(-12px) scale(1.04); }
}

@media (hover: hover) {
  .event-card:hover,
  .event-card:focus-within {
    border-color: rgba(255, 231, 222, .72) !important;
    box-shadow: 0 32px 86px rgba(31, 51, 65, .28), 0 0 34px rgba(217, 153, 179, .18), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
  }
}

@media (max-width: 640px) {
  .venue-section::before {
    inset: 10px;
  }

  .event-card {
    box-shadow: 0 18px 48px rgba(31, 51, 65, .2), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card,
  .env-outer::before {
    transition: none;
  }

  .envelope.open {
    animation: none;
  }

  .env-bloom.expand {
    transition: none;
  }
}

.event-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 242, 219, .52) !important;
  border-radius: 26px !important;
  box-shadow: 0 28px 72px rgba(24, 42, 55, .28), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 30;
  border: 1px solid rgba(255, 244, 224, .3);
  border-radius: 18px;
  pointer-events: none;
}

.story-section .os-row .rounded-2xl.flex-1 {
  border: 1px solid rgba(226, 205, 166, .42) !important;
  border-radius: 24px !important;
  background: linear-gradient(148deg, rgba(17, 54, 60, .95), rgba(9, 29, 45, .97)) !important;
  box-shadow: 0 24px 58px rgba(15, 39, 49, .24), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 {
  padding: clamp(24px, 3vw, 34px) !important;
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 > p:first-of-type {
  color: #b7d7d1 !important;
  letter-spacing: .24em;
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 > p:nth-of-type(2) {
  color: #e8c99b !important;
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 > h3 {
  color: #fff3de !important;
  font-size: clamp(1.6rem, 2.2vw, 2rem) !important;
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 > p:last-of-type {
  color: rgba(239, 242, 232, .84) !important;
  line-height: 1.75 !important;
}

.date-reveal .relative.rounded-full.overflow-hidden {
  border: 1px solid rgba(255, 247, 226, .78) !important;
  box-shadow: 0 0 0 6px rgba(235, 245, 231, .16), 0 16px 38px rgba(30, 55, 48, .24), inset 0 0 0 1px rgba(255, 255, 255, .24) !important;
  transition: box-shadow .45s ease, filter .45s ease !important;
}

.carousel-section > .relative.mx-auto.w-full.max-w-2xl {
  padding: 8px;
  border: 1px solid rgba(255, 245, 231, .62);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 248, 239, .4), rgba(206, 166, 181, .2));
  box-shadow: 0 28px 70px rgba(66, 42, 55, .22), inset 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-section > .relative.mx-auto.w-full.max-w-2xl > .overflow-hidden {
  border: 1px solid rgba(255, 248, 235, .58);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(55, 35, 46, .22);
}

.countdown-copy {
  position: absolute !important;
  top: 50%;
  left: 0;
  z-index: 5 !important;
  gap: clamp(18px, 2.6vw, 30px) !important;
  padding: clamp(30px, 4vw, 48px) 24px !important;
  transform: translateY(-50%);
  color: #f7f0e2;
  background: transparent !important;
  background-image: none !important;
}

.countdown-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 0;
  width: min(920px, calc(100% - 28px));
  transform: translateX(-50%);
  border: 1px solid rgba(231, 205, 157, .44);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(10, 31, 48, .84), rgba(18, 40, 56, .74));
  box-shadow: 0 30px 84px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.countdown-copy > * {
  position: relative;
  z-index: 1;
}

.countdown-copy > .reveal-step.pointer-events-none {
  position: absolute;
  bottom: -28px;
  left: 50%;
  z-index: 0;
  display: grid;
  width: 144px;
  height: 144px;
  transform: translateX(-50%);
  place-items: center;
  opacity: .58;
}

.countdown-copy > .reveal-step.pointer-events-none > svg {
  width: 144px;
  height: 144px;
}

.countdown-copy :is(h1, h2, h3, p, span) {
  color: #f7f0e2 !important;
}

.countdown-copy > div:first-child > p:first-child {
  color: #e7c994 !important;
}

.countdown-copy > div:nth-child(2) > div {
  border: 1px solid rgba(232, 207, 165, .5) !important;
  border-radius: 16px !important;
  background: rgba(8, 24, 40, .58) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.env-outer {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, .78), transparent 34%),
    radial-gradient(ellipse at 16% 82%, rgba(157, 197, 179, .32), transparent 42%),
    radial-gradient(ellipse at 86% 18%, rgba(217, 180, 193, .3), transparent 42%),
    linear-gradient(135deg, #edf2e8 0%, #d7e8e4 48%, #e8dfe4 100%) !important;
}

.env-outer::before {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .7), transparent 34%),
    radial-gradient(ellipse at 17% 82%, rgba(123, 177, 152, .22), transparent 43%),
    radial-gradient(ellipse at 84% 20%, rgba(199, 144, 164, .2), transparent 42%);
  opacity: .58;
}

.env-outer:has(.envelope.open)::before {
  opacity: 1;
}

.env-outer > .pointer-events-none.absolute.inset-0 {
  background-image:
    repeating-linear-gradient(0deg, rgba(47, 91, 87, .045) 0px, rgba(47, 91, 87, .045) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(47, 91, 87, .045) 0px, rgba(47, 91, 87, .045) 1px, transparent 1px, transparent 60px) !important;
}

.env-outer .mb-7 p:first-child {
  color: #637a70 !important;
}

.env-outer .mb-7 p:last-child {
  color: #315b59 !important;
}

.env-outer .mt-8 p {
  color: #526e68 !important;
}

.envelope:not(.open) {
  animation: blueHorizonEnvelopeFloat 5s ease-in-out infinite;
}

@keyframes blueHorizonEnvelopeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (hover: hover) {
  .event-card:hover,
  .event-card:focus-within {
    transform: translateY(-7px) scale(1.01);
  }

  .story-section .os-row .rounded-2xl.flex-1:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(247, 220, 174, .72) !important;
    box-shadow: 0 32px 72px rgba(12, 35, 45, .3), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
  }

  .date-reveal .relative.rounded-full.overflow-hidden:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 0 7px rgba(235, 245, 231, .23), 0 20px 46px rgba(30, 55, 48, .3), inset 0 0 0 1px rgba(255, 255, 255, .3) !important;
  }
}

@media (max-width: 640px) {
  .story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 {
    padding: 24px 20px !important;
  }

  .carousel-section > .relative.mx-auto.w-full.max-w-2xl {
    padding: 5px;
    border-radius: 24px;
  }

  .carousel-section > .relative.mx-auto.w-full.max-w-2xl > .overflow-hidden {
    border-radius: 18px;
  }

  .countdown-copy {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .countdown-copy::before {
    width: calc(100% - 20px);
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card,
  .story-section .os-row .rounded-2xl.flex-1,
  .date-reveal .relative.rounded-full.overflow-hidden {
    transition: none !important;
  }

  .envelope:not(.open) {
    animation: none;
  }
}

.env-outer {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, .92), transparent 34%),
    radial-gradient(ellipse at 15% 80%, rgba(169, 197, 179, .38), transparent 42%),
    radial-gradient(ellipse at 86% 16%, rgba(215, 183, 194, .36), transparent 44%),
    linear-gradient(135deg, #f3efe3 0%, #e4eee8 48%, #f0e5e6 100%) !important;
}

.env-outer::before {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, .82), transparent 36%),
    radial-gradient(ellipse at 12% 90%, rgba(180, 203, 184, .3), transparent 42%),
    radial-gradient(ellipse at 90% 12%, rgba(222, 187, 197, .28), transparent 44%);
  opacity: .8;
}

.env-outer [style*="repeating-linear-gradient"] {
  background-image: none !important;
}

.env-outer > .pointer-events-none.absolute.inset-0 {
  background-image: none !important;
}

.env-outer > .flex.flex-col.items-center.relative.z-10 {
  width: min(100% - 32px, 500px);
}

.env-outer .mb-7 {
  position: relative;
  margin-bottom: clamp(24px, 4vw, 38px) !important;
  padding-top: 84px;
}

.env-outer .mb-7::before,
.env-outer .mb-7::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 68px;
  height: 68px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
}

.env-outer .mb-7::before {
  border: 1px solid rgba(172, 137, 79, .46);
  background: linear-gradient(145deg, rgba(255, 252, 243, .82), rgba(233, 224, 202, .56));
  box-shadow: 0 8px 22px rgba(67, 82, 68, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.env-outer .mb-7::after {
  background: url("./ganesh.png") center / 43px 43px no-repeat;
  filter: sepia(1) saturate(1.35) hue-rotate(2deg) brightness(.77);
  opacity: .9;
}

.env-outer .mb-7 p:first-child {
  margin-bottom: 5px !important;
  color: #78877b !important;
  font-size: 9px !important;
  font-weight: 600;
  letter-spacing: .34em !important;
}

.env-outer .mb-7 p:last-child {
  color: #263f40 !important;
  font-size: clamp(32px, 4vw, 39px) !important;
  letter-spacing: .015em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .58);
}

.envelope {
  filter: drop-shadow(0 26px 26px rgba(38, 51, 45, .22));
  isolation: isolate;
}

.envelope .env-back {
  border: 1px solid rgba(203, 171, 112, .82);
  border-radius: 8px !important;
  background: linear-gradient(145deg, #254a4b 0%, #173b40 54%, #102e37 100%) !important;
  box-shadow: 0 22px 50px rgba(29, 48, 47, .24), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

.envelope .env-left-flap {
  background: linear-gradient(110deg, #244a4b, #1a3e42) !important;
}

.envelope .env-right-flap {
  background: linear-gradient(250deg, #244a4b, #1a3e42) !important;
}

.envelope .env-bottom-flap {
  background: linear-gradient(170deg, #1d4245, #13343c) !important;
}

.envelope .env-top-flap {
  background: linear-gradient(165deg, #315c59, #20464a) !important;
}

.envelope .env-card {
  border: 1px solid rgba(181, 145, 83, .72) !important;
  border-radius: 5px !important;
  outline: 1px solid rgba(255, 255, 255, .62);
  outline-offset: -6px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .96), transparent 72%),
    linear-gradient(145deg, #faf5e8, #e9e2d2) !important;
  box-shadow: 0 12px 28px rgba(14, 35, 38, .2) !important;
}

.envelope .env-card p {
  color: #526a60 !important;
}

.envelope .env-card p.font-cormorant_infant {
  color: #243f40 !important;
}

.envelope .wax-seal {
  border: 1px solid rgba(238, 210, 154, .86);
  background: radial-gradient(circle at 36% 30%, #a34a4e, #742f3a 58%, #4e2530) !important;
  box-shadow: 0 8px 16px rgba(44, 25, 30, .32), inset 0 1px 1px rgba(255, 244, 215, .44), 0 0 0 4px rgba(239, 223, 190, .56) !important;
}

.env-outer .mt-8 {
  margin-top: 28px !important;
}

.env-outer .mt-8 p {
  color: #586e64 !important;
  font-size: 12px !important;
  letter-spacing: .12em;
}

.event-card {
  --event-accent: #879d76;
  min-height: 430px !important;
  border: 1px solid rgba(179, 147, 92, .68) !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, #fbf7eb, #e8e4d7) !important;
  box-shadow: 0 24px 54px rgba(28, 48, 55, .22), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease !important;
}

.invite-events > .event-card:nth-child(2) {
  --event-accent: #b98548;
}

.invite-events > .event-card:nth-child(3) {
  --event-accent: #8c7899;
}

.event-card::after {
  inset: 9px;
  z-index: 4;
  border: 1px solid rgba(164, 133, 82, .44);
  border-radius: 20px;
}

.event-card-inner {
  min-height: 430px !important;
}

.event-card-face {
  min-height: 430px !important;
  overflow: hidden;
  padding: 38px 30px !important;
  color: #31484a !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .94), transparent 58%),
    linear-gradient(155deg, #fbf7ea, #e9e5d7) !important;
}

.event-card-face::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 15px;
  pointer-events: none;
}

.event-card-face > * {
  position: relative;
  z-index: 1;
}

.event-card-face :is(h1, h2, h3, p, span) {
  color: #344b4b !important;
}

.event-card-front > div:first-child > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(164, 133, 82, .56);
  border-radius: 50%;
  color: #85724c !important;
  font-size: 9px !important;
  letter-spacing: .12em !important;
}

.event-card-front > div:first-child > span:last-child {
  border-color: color-mix(in srgb, var(--event-accent) 46%, transparent) !important;
  background: color-mix(in srgb, var(--event-accent) 10%, white) !important;
  color: #66745f !important;
}

.event-card-front h3 {
  color: #273f42 !important;
  font-size: clamp(30px, 3.2vw, 38px) !important;
  letter-spacing: .07em;
}

.celebrations-block .event-card .event-card-face :is(h1, h2, h3, p, span) {
  color: #344b4b !important;
}

.event-card-back > div:first-child > :is(h3, p) {
  color: #32484a !important;
}

.event-card-back > div:first-child > p {
  color: #778477 !important;
}

.event-card-back > div:nth-child(2) {
  background: linear-gradient(90deg, transparent, var(--event-accent), transparent) !important;
}

.event-card-back > div:nth-child(3) > p {
  color: #4a605b !important;
  line-height: 1.65;
}

.event-card-back > div:nth-child(3) > p:first-child {
  color: #293f42 !important;
  font-size: 17px;
}

.date-reveal > .relative.z-10 {
  gap: clamp(24px, 4vw, 38px) !important;
}

.date-reveal > .relative.z-10 > p:first-child {
  color: #f5f0e3 !important;
  font-size: clamp(12px, 1.2vw, 14px) !important;
  letter-spacing: .42em !important;
  text-shadow: 0 2px 12px rgba(29, 62, 49, .24);
}

.date-reveal > .relative.z-10 > div:nth-child(2),
.date-reveal > .relative.z-10 > p:nth-of-type(2) {
  display: none !important;
}

.date-reveal .flex.flex-col.items-center.gap-3 > p {
  display: none !important;
}

.date-reveal .flex.flex-col.items-center.gap-3 {
  gap: 0 !important;
}

.date-reveal .relative.rounded-full.overflow-hidden {
  width: clamp(144px, 18vw, 188px) !important;
  height: clamp(144px, 18vw, 188px) !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 249, 232, .88) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #f8f2e3, #deebe2) !important;
  box-shadow: 0 0 0 5px rgba(238, 227, 197, .28), 0 14px 36px rgba(29, 61, 48, .24), inset 0 0 0 1px rgba(255, 255, 255, .85) !important;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease !important;
}

.date-reveal .relative.rounded-full.overflow-hidden::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(188, 151, 92, .55);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .16);
  pointer-events: none;
}

.date-reveal .relative.rounded-full.overflow-hidden > .absolute.inset-0.flex.flex-col.items-center.justify-center.text-center.rounded-full {
  border: 1px solid rgba(191, 157, 103, .34);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .95), rgba(238, 237, 220, .96) 58%, rgba(208, 228, 213, .98)) !important;
  color: #304c47 !important;
}

.date-reveal .relative.rounded-full.overflow-hidden > .absolute.inset-0.flex.flex-col.items-center.justify-center.text-center.rounded-full :is(span, p) {
  color: #304c47 !important;
}

.date-reveal .relative.rounded-full.overflow-hidden > .absolute.inset-0.flex.flex-col.items-center.justify-center.text-center.rounded-full :first-child {
  font-size: clamp(30px, 4vw, 42px) !important;
  letter-spacing: .02em;
}

.date-reveal .relative.rounded-full.overflow-hidden > .absolute.inset-0.rounded-full.overflow-hidden {
  overflow: hidden !important;
  border-radius: 50% !important;
}

.date-reveal .relative.rounded-full.overflow-hidden canvas {
  border-radius: 50%;
}

.date-reveal .flex.flex-wrap.items-start.justify-center {
  gap: clamp(22px, 4vw, 44px) !important;
}

@media (hover: hover) {
  .event-card:hover,
  .event-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 32px 64px rgba(28, 48, 55, .28), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
  }

  .date-reveal .relative.rounded-full.overflow-hidden:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 6px rgba(238, 227, 197, .36), 0 22px 44px rgba(29, 61, 48, .29), inset 0 0 0 1px rgba(255, 255, 255, .9) !important;
  }
}

@media (max-width: 640px) {
  .env-outer .mb-7 {
    padding-top: 76px;
  }

  .env-outer .mb-7::before,
  .env-outer .mb-7::after {
    width: 60px;
    height: 60px;
  }

  .env-outer .mb-7::after {
    background-size: 38px 38px;
  }

  .envelope {
    max-width: calc(100vw - 56px);
  }

  .event-card,
  .event-card-inner,
  .event-card-face {
    min-height: 400px !important;
  }

  .event-card-face {
    padding: 34px 24px !important;
  }

  .date-reveal .relative.rounded-full.overflow-hidden {
    width: clamp(118px, 36vw, 148px) !important;
    height: clamp(118px, 36vw, 148px) !important;
  }

  .date-reveal .flex.flex-wrap.items-start.justify-center {
    gap: 22px 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card,
  .date-reveal .relative.rounded-full.overflow-hidden,
  .env-outer::before {
    transition: none !important;
  }

  .envelope:not(.open) {
    animation: none;
  }
}

#app {
  overflow-x: clip;
}

.invitation-section .invite-copy > p:nth-of-type(-n + 3),
.invitation-section .invite-copy > div:first-of-type {
  display: none !important;
}

/* Rose, ivory, and gold details; section grounds remain untouched. */
.envelope {
  filter: drop-shadow(0 26px 32px rgba(111, 44, 66, .28));
}

.envelope .env-back {
  border-color: rgba(215, 177, 115, .9);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 224, 214, .18), transparent 58%),
    linear-gradient(145deg, #823448 0%, #68283d 54%, #4f2036 100%) !important;
  box-shadow: 0 24px 54px rgba(95, 37, 57, .3), inset 0 1px 0 rgba(255, 246, 232, .18) !important;
}

.envelope .env-left-flap,
.envelope .env-right-flap {
  background: linear-gradient(125deg, #873b4e, #652a40) !important;
}

.envelope .env-bottom-flap {
  background: linear-gradient(165deg, #713044, #502239) !important;
}

.envelope .env-top-flap {
  background: linear-gradient(165deg, #9a4c5d, #743449) !important;
}

.envelope .env-card {
  border-color: rgba(190, 133, 111, .74) !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .98), transparent 70%),
    radial-gradient(ellipse at 100% 100%, rgba(222, 169, 169, .2), transparent 56%),
    linear-gradient(145deg, #fff9ee, #f3e7df) !important;
  box-shadow: 0 14px 32px rgba(76, 35, 44, .22) !important;
}

.envelope .env-card p,
.envelope .env-card p.font-cormorant_infant {
  color: #633746 !important;
}

.envelope .wax-seal {
  border-color: rgba(255, 224, 183, .9);
  background: radial-gradient(circle at 34% 26%, #d17d84, #983e56 58%, #68283f) !important;
  box-shadow: 0 9px 18px rgba(67, 25, 39, .32), inset 0 1px 2px rgba(255, 242, 222, .5), 0 0 0 4px rgba(249, 235, 212, .72) !important;
}

.env-outer .mb-7 p:last-child {
  color: #6a3545 !important;
}

.event-card {
  --event-accent: #b66b7c;
  border-color: rgba(181, 125, 112, .68) !important;
  border-radius: 30px !important;
  background: linear-gradient(145deg, #fffaf0, #f0e2dd) !important;
  box-shadow: 0 26px 58px rgba(63, 48, 57, .2), inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

.invite-events > .event-card:nth-child(2) {
  --event-accent: #c28a55;
}

.invite-events > .event-card:nth-child(3) {
  --event-accent: #946278;
}

.event-card::after {
  inset: 8px;
  border-color: rgba(174, 116, 113, .48);
  border-radius: 22px;
}

.event-card-face {
  background:
    radial-gradient(circle at 50% 14%, transparent 0 35px, rgba(174, 105, 121, .24) 36px 37px, transparent 38px),
    radial-gradient(circle at 50% 14%, rgba(224, 172, 180, .28), transparent 58px),
    radial-gradient(ellipse at 92% 3%, rgba(222, 162, 171, .26), transparent 38%),
    radial-gradient(ellipse at 8% 100%, rgba(211, 176, 127, .19), transparent 42%),
    linear-gradient(150deg, #fffaf0 0%, #f8eee5 55%, #eee1dc 100%) !important;
}

.event-card-face::before {
  border-color: rgba(177, 127, 105, .52);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .28);
}

.event-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, .56) 49%, transparent 64%);
  opacity: 0;
  transform: translateX(-75%);
  pointer-events: none;
}

.event-card:hover .event-card-face::after,
.event-card:focus-within .event-card-face::after {
  opacity: .8;
  transform: translateX(75%);
  transition: opacity .35s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}

.event-card-front > div:first-child > span:first-child {
  border-color: color-mix(in srgb, var(--event-accent) 62%, #d8c29a) !important;
  background: radial-gradient(circle at 35% 25%, #fffdf7, #eacbd0) !important;
  color: #7a4650 !important;
  box-shadow: 0 0 0 4px rgba(182, 107, 124, .1), 0 6px 16px rgba(127, 73, 82, .16), inset 0 1px 0 #fff !important;
  animation: blueHorizonBadgeBreathe 5s ease-in-out infinite;
}

.event-card-front > div:first-child > span:last-child {
  border-color: color-mix(in srgb, var(--event-accent) 62%, transparent) !important;
  background: color-mix(in srgb, var(--event-accent) 18%, white) !important;
  color: #784b54 !important;
  letter-spacing: .15em;
}

.event-card-front h3 {
  color: #573544 !important;
}

.event-card-back > div:nth-child(2) {
  background: linear-gradient(90deg, transparent, var(--event-accent), #d7b47a, transparent) !important;
}

.event-card-back > div:nth-child(3) > p {
  color: #65515a !important;
}

.story-section .os-row .rounded-2xl.flex-1 {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(177, 125, 121, .46) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(229, 180, 183, .42), transparent 44%),
    radial-gradient(ellipse at 0% 100%, rgba(222, 194, 154, .22), transparent 48%),
    linear-gradient(145deg, rgba(255, 250, 239, .98), rgba(241, 226, 221, .97)) !important;
  box-shadow: 0 24px 56px rgba(69, 45, 54, .2), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), border-color .45s ease, box-shadow .45s ease !important;
}

.story-section .os-row .rounded-2xl.flex-1::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(175, 125, 113, .28);
  border-radius: 18px;
  pointer-events: none;
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 > p:first-of-type {
  color: #8d5a65 !important;
  letter-spacing: .22em;
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 > p:nth-of-type(2) {
  color: #aa7a58 !important;
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 > h3 {
  color: #523747 !important;
  font-size: clamp(1.65rem, 2.4vw, 2.1rem) !important;
  letter-spacing: .015em;
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 > p:last-of-type {
  color: #685962 !important;
  line-height: 1.8 !important;
}

.message-block > .relative.flex.flex-col.items-center,
.message-block > div:last-child > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(174, 119, 122, .52);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(228, 176, 181, .3), transparent 44%),
    linear-gradient(145deg, rgba(255, 250, 241, .97), rgba(242, 227, 222, .96)) !important;
  box-shadow: 0 26px 62px rgba(76, 43, 58, .2), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.message-block > .relative.flex.flex-col.items-center::before,
.message-block > div:last-child > div::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(178, 126, 112, .32);
  border-radius: 19px;
  pointer-events: none;
}

.message-block > .relative.flex.flex-col.items-center::after,
.message-block > div:last-child > div::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, .48) 48%, transparent 66%);
  transform: translateX(-110%);
  animation: blueHorizonLetterSheen 11s ease-in-out infinite;
  pointer-events: none;
}

.message-block :is(h1, h2, h3, p, span) {
  color: #583b4a !important;
}

.message-block [style*="linear-gradient(160deg"] {
  background: linear-gradient(145deg, rgba(255, 250, 240, .5), rgba(243, 224, 224, .52) 55%, rgba(238, 230, 219, .48)) !important;
}

@keyframes blueHorizonLetterSheen {
  0%, 62% { transform: translateX(-110%); opacity: 0; }
  70% { opacity: .8; }
  91%, 100% { transform: translateX(110%); opacity: 0; }
}

@keyframes blueHorizonBadgeBreathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.06; }
}

@keyframes blueHorizonScrollReveal {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  .celebrations-block .event-card,
  .story-section .os-row .rounded-2xl.flex-1 {
    animation: blueHorizonScrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 4% entry 42%;
  }

  .celebrations-block .event-card:nth-child(2),
  .story-section .os-row:nth-child(even) .rounded-2xl.flex-1 {
    animation-range: entry 8% entry 48%;
  }
}

@media (hover: hover) {
  .story-section .os-row .rounded-2xl.flex-1:hover {
    transform: translateY(-7px) !important;
    border-color: rgba(180, 108, 124, .72) !important;
    box-shadow: 0 34px 72px rgba(69, 45, 54, .26), 0 0 30px rgba(206, 132, 145, .14), inset 0 1px 0 #fff !important;
  }

  .message-block > .relative.flex.flex-col.items-center:hover,
  .message-block > div:last-child > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 72px rgba(76, 43, 58, .25), inset 0 1px 0 #fff;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease;
  }
}

@media (max-width: 640px) {
  .event-card-face {
    padding: 34px 24px !important;
  }

  .story-section .os-row .rounded-2xl.flex-1 {
    border-radius: 22px !important;
  }

  .message-block > .relative.flex.flex-col.items-center,
  .message-block > div:last-child > div {
    border-radius: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .message-block > .relative.flex.flex-col.items-center::after,
  .message-block > div:last-child > div::after {
    animation: none;
  }

  .celebrations-block .event-card,
  .story-section .os-row .rounded-2xl.flex-1 {
    animation: none !important;
    opacity: 1;
    translate: none;
  }
}

.story-section .os-row .rounded-2xl.flex-1 > .px-7.py-7 {
  position: relative;
  z-index: 1;
}

.story-section .relative.flex.flex-col.gap-16.py-6 {
  counter-reset: blue-horizon-story;
}

.story-section .os-row {
  counter-increment: blue-horizon-story;
}

.story-section .os-row .rounded-2xl.flex-1::before {
  content: counter(blue-horizon-story, decimal-leading-zero);
  position: absolute;
  right: 20px;
  bottom: -15px;
  z-index: 0;
  color: rgba(159, 93, 109, .11);
  font-family: "Cormorant Upright", serif;
  font-size: clamp(76px, 8vw, 108px);
  line-height: 1;
  letter-spacing: -.08em;
  pointer-events: none;
}

.message-block > div:last-child > div:first-child :is(h1, h2, h3)::before {
  content: "♡";
  display: block;
  margin: 0 auto 14px;
  color: #b66b7c;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  text-shadow: 0 4px 18px rgba(182, 107, 124, .24);
  transform-origin: center;
  animation: blueHorizonHeartPulse 3.8s ease-in-out infinite;
}

.message-block > div:last-child > div:first-child {
  background:
    radial-gradient(circle at 50% 29%, rgba(228, 176, 181, .2), transparent 25%),
    radial-gradient(ellipse at 100% 0%, rgba(228, 176, 181, .3), transparent 44%),
    linear-gradient(145deg, rgba(255, 250, 241, .97), rgba(242, 227, 222, .96)) !important;
}

@keyframes blueHorizonHeartPulse {
  0%, 100% { opacity: .72; scale: .96; }
  50% { opacity: 1; scale: 1.08; }
}

@supports (animation-timeline: view()) {
  .message-block > .relative.flex.flex-col.items-center,
  .message-block > div:last-child > div {
    animation: blueHorizonScrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 4% entry 42%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card-front::before,
  .event-card-front > div:first-child > span:first-child {
    animation: none;
  }

  .message-block > div:last-child > div:first-child :is(h1, h2, h3)::before {
    animation: none;
  }
}

.date-reveal {
  position: relative;
}

.date-reveal::before,
.date-reveal::after {
  position: absolute;
  z-index: 0;
  color: rgba(255, 239, 239, .72);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  animation: blueHorizonDateHearts 9s ease-in-out infinite;
}

.date-reveal::before {
  content: "♡";
  top: 24%;
  left: 8%;
  text-shadow:
    21vw 90px 0 rgba(255, 239, 239, .54),
    45vw 18px 0 rgba(255, 239, 239, .46),
    69vw 115px 0 rgba(255, 239, 239, .58);
}

.date-reveal::after {
  content: "♡";
  right: 12%;
  bottom: 20%;
  text-shadow:
    -24vw -62px 0 rgba(255, 239, 239, .42),
    -48vw 14px 0 rgba(255, 239, 239, .5),
    -68vw -88px 0 rgba(255, 239, 239, .44);
  animation-delay: -4.5s;
}

@keyframes blueHorizonDateHearts {
  0%, 100% { opacity: .24; transform: translate3d(0, 0, 0) rotate(-8deg); }
  50% { opacity: .72; transform: translate3d(8px, -15px, 0) rotate(8deg); }
}

.date-reveal .relative.rounded-full.overflow-hidden {
  width: clamp(128px, 16vw, 168px) !important;
  height: clamp(128px, 16vw, 168px) !important;
}

.date-reveal .flex.flex-wrap.items-start.justify-center {
  gap: clamp(18px, 3vw, 30px) !important;
}

.venue-section > .relative.z-10 {
  box-sizing: border-box;
  width: min(780px, calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 42px);
  border: 1px solid rgba(255, 250, 244, .88);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 249, 242, .96), rgba(250, 237, 236, .93));
  box-shadow: 0 22px 58px rgba(76, 43, 58, .2), inset 0 1px 0 #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.venue-section > .relative.z-10 :is(h1, h2, h3) {
  color: #482b3a !important;
  text-wrap: balance;
}

.venue-section > .relative.z-10 h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem) !important;
  line-height: 1.12 !important;
}

.venue-section > .relative.z-10 :is(p, span) {
  color: #593c4c !important;
  line-height: 1.7;
}

.message-block > .relative.flex.flex-col.items-center,
.message-block > div:last-child > div:first-child {
  padding: clamp(30px, 5vw, 48px) !important;
}

.message-block > .relative.flex.flex-col.items-center :is(h1, h2, h3),
.message-block > div:last-child > div:first-child :is(h1, h2, h3) {
  font-family: "Cormorant Upright", Georgia, serif;
  letter-spacing: .035em;
  text-wrap: balance;
}

.message-block > .relative.flex.flex-col.items-center p,
.message-block > div:last-child > div:first-child p {
  max-width: 42ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.9 !important;
}

.message-block > div:last-child > div:first-child :is(h1, h2, h3) {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(182, 107, 124, .3);
}

.relative:has(> .countdown-copy) {
  height: auto !important;
  min-height: clamp(420px, 42vw, 520px) !important;
  overflow: hidden;
  background: #102b3b !important;
}

.relative:has(> .countdown-copy) > .absolute.inset-0.z-0 img[src$="60.png"] {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.countdown-copy::before {
  display: none !important;
}

.countdown-copy > div:nth-child(2) > div {
  min-width: 0;
  min-height: 78px;
  padding: 12px 8px !important;
}

@media (max-width: 640px) {
  .date-reveal .relative.rounded-full.overflow-hidden {
    width: clamp(110px, 33vw, 126px) !important;
    height: clamp(110px, 33vw, 126px) !important;
  }

  .date-reveal .flex.flex-wrap.items-start.justify-center {
    gap: 18px 14px !important;
  }

  .message-block > .relative.flex.flex-col.items-center,
  .message-block > div:last-child > div:first-child {
    padding: 28px 22px !important;
  }

  .relative:has(> .countdown-copy) {
    min-height: 520px !important;
  }

  .countdown-copy {
    gap: 16px !important;
    padding: 28px 18px !important;
  }

  .countdown-copy > div:nth-child(2) {
    display: grid !important;
    width: min(100%, 360px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  .countdown-copy > div:nth-child(2) > div {
    min-height: 76px;
    padding: 12px 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .date-reveal::before,
  .date-reveal::after {
    animation: none;
  }
}

.countdown-copy > div:nth-child(2) > div {
  min-height: 0 !important;
  padding: 2px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.countdown-copy .countdown-box {
  width: auto !important;
  height: 54px !important;
  min-height: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.countdown-copy > div:nth-child(2) > div > span {
  color: #f0d7a3 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}
