:root {
  color-scheme: light;
  --porcelain: #fffdf8;
  --ivory: #fff7e8;
  --paper: #fffaf0;
  --silk: #f5ead5;
  --red: #a7191d;
  --red-ink: #7e1115;
  --red-soft: rgba(167, 25, 29, 0.14);
  --gold: #c9952f;
  --gold-soft: #efd69b;
  --jade: #345a49;
  --ink: #2f241d;
  --muted: #806d61;
  --line: rgba(115, 46, 26, 0.16);
  --shadow: 0 22px 64px rgba(105, 54, 22, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: #f4eadc;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

body {
  min-height: 100svh;
  margin: 0;
  display: flex;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(164, 119, 70, 0.16), transparent 28%, transparent 72%, rgba(164, 119, 70, 0.16)),
    repeating-linear-gradient(135deg, #fffdf8 0 16px, #f5ead5 16px 17px, #fff9ef 17px 34px);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.is-preloading {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: 24px;
}

main > section {
  --cloud-shift: 0;
  --ornament-shift: 0;
  --photo-shift: 0;
  --section-drift: 0;
  --section-opacity: 1;
  --section-scale: 1;
  --section-tilt: 0;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  perspective: none;
}

.phone-shell {
  position: relative;
  width: min(430px, 100vw);
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -12%, rgba(201, 149, 47, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--porcelain), var(--ivory));
  box-shadow: 0 0 0 1px rgba(167, 25, 29, 0.08), 0 30px 90px rgba(86, 53, 27, 0.22);
  isolation: isolate;
}

.phone-shell::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 0;
  left: 50%;
  width: min(430px, 100vw);
  height: 100svh;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(167, 25, 29, 0.035) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, rgba(201, 149, 47, 0.045) 0 1px, transparent 1px 18px);
  background-size: 42px 42px, 42px 42px;
  opacity: 0.42;
}

.phone-shell::after {
  content: "";
  position: fixed;
  z-index: 1;
  top: 0;
  left: 50%;
  width: min(430px, 100vw);
  height: 100svh;
  transform: translateX(-50%);
  pointer-events: none;
  border-inline: 6px double rgba(167, 25, 29, 0.22);
  opacity: 0.7;
}

.floating-blessings {
  display: none;
}

.floating-blessings span {
  position: absolute;
  top: -18px;
  width: 9px;
  height: 15px;
  border-radius: 10px 10px 10px 2px;
  background: rgba(167, 25, 29, 0.22);
  box-shadow: 0 0 0 1px rgba(201, 149, 47, 0.16);
  transform: rotate(24deg);
  animation: blessingFloat 22s linear infinite;
}

.floating-blessings span:nth-child(1) {
  left: 12%;
  animation-delay: -1s;
}

.floating-blessings span:nth-child(2) {
  left: 28%;
  width: 7px;
  height: 12px;
  animation-delay: -7s;
  animation-duration: 15s;
}

.floating-blessings span:nth-child(3) {
  left: 48%;
  animation-delay: -4s;
  animation-duration: 18s;
}

.floating-blessings span:nth-child(4) {
  left: 66%;
  width: 8px;
  height: 13px;
  animation-delay: -10s;
  display: none;
}

.floating-blessings span:nth-child(5) {
  left: 82%;
  animation-delay: -5s;
  animation-duration: 16s;
  display: none;
}

.floating-blessings span:nth-child(6) {
  left: 38%;
  width: 6px;
  height: 11px;
  animation-delay: -12s;
  animation-duration: 19s;
  display: none;
}

.cover-section {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  padding: 10px 12px 34px;
  isolation: isolate;
  background: var(--porcelain);
  transform-style: preserve-3d;
}

.cover-media,
.cover-media img,
.cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-media img {
  object-fit: cover;
  object-position: center top;
  opacity: 0.24;
  filter: sepia(0.22) saturate(0.42) contrast(0.94) brightness(1.16);
  transform: scale(1.04);
}

.cover-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 253, 248, 0.38), rgba(255, 253, 248, 0.84) 46%, rgba(255, 249, 239, 0.98) 78%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.9), rgba(255, 253, 248, 0.54) 50%, rgba(255, 253, 248, 0.9));
}

.cover-section::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(167, 25, 29, 0.42);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 253, 248, 0.46),
    inset 0 0 0 5px rgba(201, 149, 47, 0.2);
}

.cover-section::after {
  content: none;
}

.cover-ornaments {
  position: absolute;
  z-index: 3;
  inset: 24px;
  pointer-events: none;
}

.cover-ornaments span {
  position: absolute;
  width: 54px;
  height: 54px;
  border-color: rgba(167, 25, 29, 0.46);
}

.cover-ornaments span::before,
.cover-ornaments span::after {
  content: "";
  position: absolute;
  background: rgba(201, 149, 47, 0.42);
}

.cover-ornaments span::before {
  width: 22px;
  height: 1px;
}

.cover-ornaments span::after {
  width: 1px;
  height: 22px;
}

.cover-ornaments span:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.cover-ornaments span:nth-child(1)::before,
.cover-ornaments span:nth-child(1)::after {
  top: 10px;
  left: 10px;
}

.cover-ornaments span:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
  animation-delay: -1.2s;
}

.cover-ornaments span:nth-child(2)::before {
  top: 10px;
  right: 10px;
}

.cover-ornaments span:nth-child(2)::after {
  top: 10px;
  right: 10px;
}

.cover-ornaments span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
  animation-delay: -2.4s;
}

.cover-ornaments span:nth-child(3)::before {
  bottom: 10px;
  left: 10px;
}

.cover-ornaments span:nth-child(3)::after {
  bottom: 10px;
  left: 10px;
}

.cover-ornaments span:nth-child(4) {
  right: 0;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
  animation-delay: -3.6s;
}

.cover-ornaments span:nth-child(4)::before {
  right: 10px;
  bottom: 10px;
}

.cover-ornaments span:nth-child(4)::after {
  right: 10px;
  bottom: 10px;
}

.cover-gates {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cover-gates span {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(167, 25, 29, 0.1), transparent 26%),
    repeating-linear-gradient(45deg, rgba(167, 25, 29, 0.12) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 247, 232, 0.92));
  box-shadow: inset 0 0 0 1px rgba(167, 25, 29, 0.2);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.cover-gates span::before {
  content: "囍";
  position: absolute;
  top: 38%;
  color: rgba(167, 25, 29, 0.13);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  line-height: 1;
}

.cover-gates span:first-child::before {
  right: -3.2rem;
}

.cover-gates span:last-child {
  transform: translateX(0);
}

.cover-gates span:last-child::before {
  left: -3.2rem;
}

body.is-ready .cover-gates span:first-child {
  animation: gateOpenLeft 2.1s 180ms var(--ease) forwards;
}

body.is-ready .cover-gates span:last-child {
  animation: gateOpenRight 2.1s 180ms var(--ease) forwards;
}

body.is-preloading .cover-content,
body.is-preloading .scroll-cue {
  opacity: 0;
}

body.is-ready.is-preloading .cover-content {
  animation: cardFloatIn 720ms 420ms var(--ease) both;
}

body.is-preloading .primary-cta {
  pointer-events: none;
}

body.cover-curtain-closing .cover-gates,
body.cover-curtain-closed .cover-gates {
  z-index: 7;
}

body.cover-curtain-closing .cover-gates span,
body.cover-curtain-closed .cover-gates span,
body.cover-curtain-closed .cover-gates span:first-child,
body.cover-curtain-closed .cover-gates span:last-child {
  background:
    radial-gradient(circle at 50% 20%, rgba(167, 25, 29, 0.12), transparent 26%),
    repeating-linear-gradient(45deg, rgba(167, 25, 29, 0.13) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(255, 253, 248, 0.985), rgba(255, 247, 232, 0.975));
}

body.cover-curtain-closing .cover-gates span:first-child {
  animation: gateCloseLeft 900ms cubic-bezier(0.42, 0, 0.12, 1) forwards;
}

body.cover-curtain-closing .cover-gates span:last-child {
  animation: gateCloseRight 900ms cubic-bezier(0.42, 0, 0.12, 1) forwards;
}

body.cover-curtain-closed .cover-gates span,
body.cover-curtain-closed .cover-gates span:first-child,
body.cover-curtain-closed .cover-gates span:last-child {
  animation: none;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 360ms ease,
    transform 420ms var(--ease);
}

body.is-ready.is-preloading .cover-gates span,
body.cover-curtain-closing .cover-gates span {
  will-change: transform, opacity;
}

body.cover-curtain-closing .cover-gates span::before,
body.cover-curtain-closed .cover-gates span::before {
  color: rgba(167, 25, 29, 0.18);
}

.cover-content {
  position: relative;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  min-height: calc(100svh - 44px);
  margin: 0;
  padding: 23px 18px 20px;
  border: 1px solid rgba(201, 149, 47, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(201, 149, 47, 0.13), transparent 34%),
    linear-gradient(90deg, transparent 0 18px, rgba(201, 149, 47, 0.055) 18px 19px, transparent 19px 38px),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(167, 25, 29, 0.025) 18px 19px),
    radial-gradient(circle at 50% 0, rgba(201, 149, 47, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(255, 249, 239, 0.92));
  color: var(--ink);
  text-align: center;
  box-shadow: 0 20px 52px rgba(84, 51, 28, 0.18);
  animation: none;
}

.cover-content > * {
  position: relative;
  z-index: 1;
}

.cover-premium-layer,
.paper-premium-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(0, calc(var(--ornament-shift, 0) * 1px), 0);
  transition: none;
}

.cover-premium-layer span,
.paper-premium-layer span,
.lotus-asset {
  position: absolute;
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.dragon-mark {
  top: 92px;
  width: 148px;
  height: 96px;
  color: rgba(167, 25, 29, 0.14);
  -webkit-mask-image: url("assets/ornaments/chinese-dragon.svg");
  mask-image: url("assets/ornaments/chinese-dragon.svg");
}

.dragon-mark.left {
  left: -68px;
  transform: rotate(-9deg);
}

.dragon-mark.right {
  right: -68px;
  transform: scaleX(-1) rotate(-9deg);
  animation-delay: -4s;
}

.lotus-watermark {
  left: 50%;
  bottom: 78px;
  width: 246px;
  height: 150px;
  color: rgba(201, 149, 47, 0.105);
  transform: translateX(-50%);
  -webkit-mask-image: url("assets/ornaments/lotus-vector.svg");
  mask-image: url("assets/ornaments/lotus-vector.svg");
}

.cover-content::before {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(167, 25, 29, 0.24);
  border-radius: 6px;
}

.cover-content::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border-radius: 6px;
  background:
    radial-gradient(18px 18px at 0 0, transparent 64%, rgba(167, 25, 29, 0.26) 66% 70%, transparent 72%),
    radial-gradient(18px 18px at 100% 0, transparent 64%, rgba(167, 25, 29, 0.26) 66% 70%, transparent 72%),
    radial-gradient(18px 18px at 0 100%, transparent 64%, rgba(167, 25, 29, 0.26) 66% 70%, transparent 72%),
    radial-gradient(18px 18px at 100% 100%, transparent 64%, rgba(167, 25, 29, 0.26) 66% 70%, transparent 72%);
  opacity: 0.8;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 15px;
  width: 22px;
  height: 34px;
  transform: translateX(-50%);
  border: 1px solid rgba(167, 25, 29, 0.32);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55);
  box-shadow: 0 8px 20px rgba(105, 54, 22, 0.14);
}

.scroll-cue::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--red);
}

body.invite-opened .scroll-cue {
  opacity: 0;
  transition: opacity 220ms ease;
}

.happiness-seal {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(201, 149, 47, 0.82);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(167, 25, 29, 0.94), rgba(126, 17, 21, 0.94)),
    var(--red);
  box-shadow: 0 12px 30px rgba(99, 34, 17, 0.22);
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.84rem;
  line-height: 1;
}

.couple-medallion {
  position: relative;
  width: min(212px, 72%);
  margin: 0 0 13px;
  padding: 7px;
  border: 1px solid rgba(201, 149, 47, 0.54);
  border-radius: 999px 999px 12px 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 247, 232, 0.7)),
    var(--paper);
  box-shadow: 0 12px 32px rgba(85, 52, 27, 0.14);
}

.couple-medallion::before,
.couple-medallion::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 25, 29, 0.36), transparent);
}

.couple-medallion::before {
  right: calc(100% + 8px);
}

.couple-medallion::after {
  left: calc(100% + 8px);
}

.couple-medallion img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  object-position: center 46%;
  border-radius: 999px 999px 10px 10px;
  filter: none;
}

.happiness-seal.small {
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  font-size: 1.78rem;
  text-shadow: none;
}

.kicker,
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-content .kicker {
  color: var(--red-ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 3.12rem;
  line-height: 0.92;
}

h1 i {
  color: var(--gold);
  font-size: 1.75rem;
  font-style: normal;
  line-height: 1.1;
}

h2 {
  color: var(--red-ink);
  font-size: 2.45rem;
  line-height: 1;
}

h3 {
  font-size: 1.24rem;
  line-height: 1.12;
}

.cover-note {
  max-width: 310px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.cover-date {
  display: block;
  margin-top: 14px;
  color: var(--red-ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auspicious-art {
  position: relative;
  width: min(254px, 86%);
  height: 62px;
  margin: 12px 0 0;
  color: rgba(126, 17, 21, 0.48);
}

.auspicious-art::before,
.auspicious-art::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 25, 29, 0.32), rgba(201, 149, 47, 0.48));
}

.auspicious-art::before {
  left: 0;
}

.auspicious-art::after {
  right: 0;
  transform: scaleX(-1);
}

.lotus-asset {
  left: 50%;
  top: 50%;
  width: 104px;
  height: 74px;
  color: rgba(201, 149, 47, 0.78);
  transform: translate(-50%, -50%);
  -webkit-mask-image: url("assets/ornaments/lotus-vector.svg");
  mask-image: url("assets/ornaments/lotus-vector.svg");
}

.primary-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.primary-cta {
  position: relative;
  min-width: 156px;
  margin-top: 14px;
  padding: 0 24px;
  border: 1px solid rgba(167, 25, 29, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(239, 214, 155, 0.6)),
    var(--porcelain);
  color: var(--red-ink);
  box-shadow: 0 12px 28px rgba(105, 54, 22, 0.16);
  overflow: hidden;
}

.primary-cta::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -58%;
  width: 42%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, 0.82), transparent);
  opacity: 0;
}

.primary-cta.is-opening {
  pointer-events: none;
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 8px 20px rgba(105, 54, 22, 0.14);
}

.primary-cta.is-opening::after {
  animation: ctaShine 760ms ease both;
}

.primary-cta:hover,
.primary-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.invite-section,
.schedule-section,
.countdown-section,
.memories-section,
.rsvp-section {
  position: relative;
  z-index: 2;
}

.invite-section {
  padding: 38px 18px 36px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 247, 232, 0.94)),
    var(--ivory);
}

.invite-section::before,
.schedule-section::before,
.countdown-section::before,
.memories-section::before,
.rsvp-section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 1;
  height: 64px;
  pointer-events: none;
  background:
    url("assets/ornaments/cloud-ruyi.svg") 18px 12px / 72px 46px no-repeat,
    url("assets/ornaments/cloud-ruyi.svg") 128px 7px / 92px 58px no-repeat,
    url("assets/ornaments/cloud-ruyi.svg") 258px 14px / 76px 48px no-repeat,
    url("assets/ornaments/cloud-ruyi.svg") 348px 5px / 100px 62px no-repeat;
  opacity: 0.17;
  filter: none;
}

.invite-section::after,
.schedule-section::after,
.countdown-section::after,
.memories-section::after,
.rsvp-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 18px 12px;
  pointer-events: none;
  border-inline: 1px solid rgba(201, 149, 47, 0.18);
  background:
    linear-gradient(rgba(167, 25, 29, 0.16), rgba(167, 25, 29, 0.16)) left 12px top / 1px 54px no-repeat,
    linear-gradient(rgba(201, 149, 47, 0.18), rgba(201, 149, 47, 0.18)) right 12px bottom / 1px 54px no-repeat;
  opacity: 0.8;
}

.paper-card,
.ceremony-panel,
.countdown-card,
.closing-card {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  animation: none;
}

.paper-card {
  padding: 42px 24px 32px;
  border: 1px solid rgba(201, 149, 47, 0.7);
  background:
    radial-gradient(circle at 50% 0, rgba(167, 25, 29, 0.06), transparent 34%),
    radial-gradient(circle at 100% 14%, rgba(201, 149, 47, 0.14), transparent 28%),
    radial-gradient(circle at 0 86%, rgba(167, 25, 29, 0.055), transparent 24%),
    radial-gradient(circle at 50% 58%, rgba(255, 253, 248, 0.82), transparent 42%),
    linear-gradient(90deg, transparent 0 10px, rgba(201, 149, 47, 0.08) 10px 11px, transparent 11px 22px),
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(167, 25, 29, 0.035) 17px 18px),
    repeating-linear-gradient(135deg, rgba(201, 149, 47, 0.035) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 250, 240, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
}

.paper-card::before,
.ceremony-panel::before,
.countdown-card::before,
.closing-card::before {
  content: "";
  position: absolute;
  inset: 11px;
  pointer-events: none;
  border: 1px solid rgba(167, 25, 29, 0.24);
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px rgba(201, 149, 47, 0.08);
}

.paper-card::after {
  content: "囍";
  position: absolute;
  top: 18px;
  right: 16px;
  color: rgba(167, 25, 29, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7.2rem;
  line-height: 1;
}

.paper-card > *,
.ceremony-panel > *,
.countdown-card > *,
.closing-card > * {
  position: relative;
  z-index: 1;
}

.paper-card > .paper-premium-layer {
  z-index: 0;
}

.paper-dragon {
  top: 7px;
  left: -44px;
  width: 164px;
  height: 104px;
  color: rgba(167, 25, 29, 0.105);
  transform: rotate(-7deg);
  -webkit-mask-image: url("assets/ornaments/chinese-dragon.svg");
  mask-image: url("assets/ornaments/chinese-dragon.svg");
}

.paper-cranes {
  top: 92px;
  right: -36px;
  width: 156px;
  height: 164px;
  color: transparent;
  background: url("assets/ornaments/crane-openclipart.svg") center / contain no-repeat;
  filter: sepia(0.42) saturate(0.64) hue-rotate(314deg) brightness(1.08);
  mix-blend-mode: multiply;
  -webkit-mask-image: none;
  mask-image: none;
}

.paper-lotus {
  left: 50%;
  bottom: -34px;
  width: 240px;
  height: 176px;
  color: rgba(201, 149, 47, 0.1);
  transform: translateX(-50%);
  -webkit-mask-image: url("assets/ornaments/lotus-vector.svg");
  mask-image: url("assets/ornaments/lotus-vector.svg");
}

.paper-card h2 {
  margin-top: 10px;
  font-size: 2.42rem;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding: 18px 0 14px;
  border-block: 1px solid rgba(167, 25, 29, 0.12);
}

.family-block {
  display: grid;
  gap: 3px;
}

.family-block span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.family-block strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.24;
  text-transform: uppercase;
}

.family-block p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  line-height: 1.28;
  text-transform: uppercase;
}

.family-line {
  max-width: 300px;
  margin: 22px auto 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.paper-photo {
  position: relative;
  margin: 22px auto 4px;
  width: min(286px, 92%);
  padding: 6px;
  border: 1px solid rgba(201, 149, 47, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 247, 232, 0.72)),
    rgba(255, 253, 248, 0.82);
  box-shadow: 0 14px 32px rgba(105, 54, 22, 0.12);
}

.paper-photo::before {
  content: "";
  position: absolute;
  inset: -13px 22px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 25, 29, 0.22), rgba(201, 149, 47, 0.42), transparent);
}

.paper-photo::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(255, 247, 232, 0.1)),
    linear-gradient(90deg, rgba(167, 25, 29, 0.04), transparent 26%, transparent 74%, rgba(201, 149, 47, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.34);
}

.paper-photo img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 6px;
  filter: sepia(0.04) saturate(0.98) contrast(1.04) brightness(1.02);
  transform: none;
  transition: none;
}

.name-pair {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
}

.name-pair strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.28rem;
  font-weight: 500;
  line-height: 1;
}

.name-pair span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.formal-names {
  gap: 7px;
  margin-top: 24px;
}

.formal-names strong {
  color: #8e352c;
  font-size: clamp(2.04rem, 10.8vw, 3rem);
  font-style: italic;
  line-height: 0.98;
  text-transform: capitalize;
}

.formal-names i {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-style: italic;
  line-height: 1;
}

.ceremony-time,
.lunar-date,
.reception-message {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  line-height: 1.42;
  text-transform: uppercase;
}

.lunar-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.ceremony-time strong {
  color: var(--red-ink);
  font-weight: 800;
}

.ornament-line {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: center;
  gap: 10px;
  margin: 22px auto;
  color: var(--red);
}

.ornament-line span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 25, 29, 0.34), rgba(201, 149, 47, 0.56), transparent);
}

.ornament-line i {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  color: var(--red);
}

.invite-message {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.date-block {
  display: grid;
  justify-items: center;
  margin: 22px 0 12px;
  padding: 18px 0 20px;
  border-block: 1px solid rgba(167, 25, 29, 0.15);
  background:
    radial-gradient(circle at 18% 50%, rgba(201, 149, 47, 0.11), transparent 20%),
    radial-gradient(circle at 82% 50%, rgba(167, 25, 29, 0.06), transparent 22%);
}

.date-block strong {
  color: var(--red-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 0.92;
}

.date-block span {
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  text-align: left;
}

.detail-list div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.detail-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--red-ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.schedule-section {
  padding: 32px 18px 34px;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.86), rgba(255, 253, 248, 0.9)),
    var(--ivory);
}

.ceremony-panel {
  padding: 36px 22px 30px;
  border: 1px solid rgba(201, 149, 47, 0.64);
  background:
    radial-gradient(circle at 0 0, rgba(167, 25, 29, 0.09), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(201, 149, 47, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 250, 240, 0.98));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.eyebrow.light {
  color: var(--red-ink);
}

.ceremony-panel h2 {
  margin-top: 12px;
  font-size: 2.28rem;
}

.invitee-line {
  width: 78%;
  margin: 18px auto 8px;
  border-top: 2px dotted rgba(47, 36, 29, 0.5);
}

.venue-block {
  display: grid;
  gap: 5px;
  margin: 20px 0 18px;
  text-align: center;
}

.venue-block span,
.venue-block em {
  color: #8e352c;
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.venue-block strong {
  color: #8e352c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.52rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.venue-block p {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.large-date {
  margin: 12px 0 0;
  color: #9a4438;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.58rem, 12.8vw, 3.05rem);
  font-weight: 700;
  line-height: 0.95;
  white-space: nowrap;
}

.reception-message {
  max-width: 310px;
  margin-inline: auto;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.timeline article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(167, 25, 29, 0.14);
}

.timeline article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline time {
  color: var(--red-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  line-height: 1.1;
}

.timeline h3 {
  color: var(--ink);
}

.timeline p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.countdown-section {
  padding: 30px 18px 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 247, 232, 0.88));
}

.countdown-card {
  padding: 28px 18px 22px;
  border: 1px solid rgba(201, 149, 47, 0.54);
  background:
    repeating-linear-gradient(135deg, transparent 0 15px, rgba(201, 149, 47, 0.045) 15px 16px),
    rgba(255, 253, 248, 0.9);
  text-align: center;
  box-shadow: 0 16px 38px rgba(100, 45, 20, 0.1);
}

.countdown-card::after,
.closing-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: currentColor;
  color: rgba(201, 149, 47, 0.08);
  -webkit-mask: url("assets/ornaments/lotus-vector.svg") center / contain no-repeat;
  mask: url("assets/ornaments/lotus-vector.svg") center / contain no-repeat;
}

.countdown-card::after {
  right: -24px;
  bottom: -38px;
  width: 150px;
  height: 108px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.countdown-grid div {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 10px 4px;
  border: 1px solid rgba(167, 25, 29, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(167, 25, 29, 0.07), transparent 54%),
    #fffdf8;
}

.countdown-grid div:nth-child(2) {
  animation-delay: -1s;
}

.countdown-grid div:nth-child(3) {
  animation-delay: -2s;
}

.countdown-grid div:nth-child(4) {
  animation-delay: -3s;
}

.countdown-grid strong {
  color: var(--red-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 500;
  line-height: 1;
}

.countdown-grid span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memories-section {
  padding: 38px 18px 44px;
  background:
    radial-gradient(circle at 50% 4%, rgba(201, 149, 47, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 247, 232, 0.9), rgba(255, 253, 248, 0.94));
  content-visibility: auto;
  contain-intrinsic-size: 980px;
}

.section-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
  text-align: center;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: 2.1rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 318px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
}

.memory-masonry {
  position: relative;
  z-index: 2;
  columns: 2;
  column-gap: 10px;
}

.memory-tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 6px;
  break-inside: avoid;
  border: 1px solid rgba(201, 149, 47, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 247, 232, 0.76)),
    var(--paper);
  box-shadow: 0 12px 26px rgba(62, 31, 18, 0.13);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.memory-tile::before,
.memory-tile::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 6px;
}

.memory-tile::before {
  z-index: 2;
  inset: 11px;
  border: 1px solid rgba(255, 253, 248, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(167, 25, 29, 0.12),
    inset 0 0 0 4px rgba(201, 149, 47, 0.08);
}

.memory-tile::after {
  z-index: 3;
  inset: 6px;
  background:
    linear-gradient(rgba(201, 149, 47, 0.72), rgba(201, 149, 47, 0.72)) left 7px top 7px / 24px 1px no-repeat,
    linear-gradient(rgba(201, 149, 47, 0.72), rgba(201, 149, 47, 0.72)) left 7px top 7px / 1px 24px no-repeat,
    linear-gradient(rgba(167, 25, 29, 0.38), rgba(167, 25, 29, 0.38)) right 7px bottom 7px / 24px 1px no-repeat,
    linear-gradient(rgba(167, 25, 29, 0.38), rgba(167, 25, 29, 0.38)) right 7px bottom 7px / 1px 24px no-repeat;
}

.memory-tile img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  filter: saturate(0.94) contrast(1.03) brightness(1.01);
}

.tile-ornament {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  width: 56px;
  height: 34px;
  background: rgba(255, 253, 248, 0.78);
  -webkit-mask: url("assets/ornaments/cloud-ruyi.svg") center / contain no-repeat;
  mask: url("assets/ornaments/cloud-ruyi.svg") center / contain no-repeat;
  opacity: 0.82;
}

.memory-caption {
  position: absolute;
  z-index: 4;
  right: 6px;
  bottom: 6px;
  left: 6px;
  padding: 24px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(47, 36, 29, 0.64));
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem;
  line-height: 1.18;
  text-shadow: 0 1px 8px rgba(47, 36, 29, 0.5);
}

.memory-tile:focus-visible {
  outline: 2px solid rgba(167, 25, 29, 0.68);
  outline-offset: 3px;
}

.rsvp-section {
  padding: 34px 18px 38px;
  background:
    radial-gradient(circle at 50% 0, rgba(201, 149, 47, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 247, 232, 0.92));
}

.closing-card {
  padding: 34px 22px 28px;
  border: 1px solid rgba(201, 149, 47, 0.64);
  background:
    radial-gradient(circle at 50% 0, rgba(167, 25, 29, 0.06), transparent 38%),
    rgba(255, 253, 248, 0.94);
  text-align: center;
  box-shadow: var(--shadow);
}

.closing-card::after {
  left: -34px;
  bottom: -46px;
  width: 174px;
  height: 126px;
  color: rgba(167, 25, 29, 0.075);
}

.closing-card h2 {
  margin-top: 8px;
  font-size: 2.1rem;
}

.closing-card p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
}

.action-row {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.button {
  width: 100%;
  padding: 0 20px;
  border: 1px solid rgba(167, 25, 29, 0.34);
  background: rgba(255, 253, 248, 0.72);
  color: var(--red-ink);
}

.button.primary {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(239, 214, 155, 0.64)),
    var(--porcelain);
}

.button.outline {
  background: rgba(255, 253, 248, 0.62);
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(430px, 100vw);
  display: grid;
  place-items: center;
  padding: 18px 0;
  transform: translateX(-50%);
  background: rgba(47, 36, 29, 0.72);
  opacity: 0;
  transition: opacity 180ms ease;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox.is-open {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(342px, calc(100% - 34px));
  max-height: 90svh;
  padding: 10px;
  border: 1px solid rgba(201, 149, 47, 0.74);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(201, 149, 47, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 247, 232, 0.98));
  box-shadow: 0 28px 84px rgba(20, 12, 8, 0.42);
}

.lightbox-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(167, 25, 29, 0.22);
  border-radius: 6px;
}

.lightbox-media {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
}

.lightbox-media img {
  width: 100%;
  max-height: 72svh;
  object-fit: contain;
  border: 1px solid rgba(201, 149, 47, 0.48);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.8);
}

.lightbox-media figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--red-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.2;
}

.lightbox-media small {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 25, 29, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(239, 214, 155, 0.72)),
    var(--porcelain);
  color: var(--red-ink);
  box-shadow: 0 10px 24px rgba(47, 36, 29, 0.18);
}

.lightbox-close {
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.28rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 36px;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav.prev {
  left: 6px;
}

.lightbox-nav.next {
  right: 6px;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid rgba(255, 253, 248, 0.9);
  outline-offset: 2px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
  transform-origin: center 18%;
}

.motion-ready .reveal {
  opacity: 1;
  filter: none;
  transform: none;
}

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

main > section.is-current .reveal.is-visible {
  transition-duration: 0ms;
}

.motion-ready .reveal > :not(.cover-premium-layer):not(.paper-premium-layer),
.motion-ready .timeline article,
.motion-ready .detail-list > div,
.motion-ready .countdown-grid > div,
.motion-ready .memory-pair > img {
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
  transition-delay: 0ms;
}

.motion-ready .reveal.is-visible > :not(.cover-premium-layer):not(.paper-premium-layer),
.motion-ready .reveal.is-visible .timeline article,
.motion-ready .reveal.is-visible .detail-list > div,
.motion-ready .reveal.is-visible .countdown-grid > div,
.motion-ready .memory-pair > img.is-visible,
.motion-ready .reveal.is-visible + .memory-pair > img {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.motion-ready .feature-photo.reveal.is-visible > img {
  opacity: 1;
  filter: none;
  transform: none;
}

.motion-ready .feature-photo.reveal > img {
  opacity: 1;
  filter: none;
  transform: none;
}

@keyframes silkDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 52px 52px, -52px 52px, 42px 42px, -42px 42px;
  }
}

@keyframes blessingFloat {
  0% {
    transform: translate3d(0, -24px, 0) rotate(24deg);
    opacity: 0;
  }
  12% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(38px, 108svh, 0) rotate(244deg);
    opacity: 0;
  }
}

@keyframes gateOpenLeft {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(-96%, 0, 0);
    opacity: 0.24;
  }
}

@keyframes gateOpenRight {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(96%, 0, 0);
    opacity: 0.24;
  }
}

@keyframes gateCloseLeft {
  0% {
    transform: translate3d(-96%, 0, 0);
    opacity: 0.24;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes gateCloseRight {
  0% {
    transform: translate3d(96%, 0, 0);
    opacity: 0.24;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes coverBreath {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.09) translateY(-12px);
  }
}

@keyframes ctaShine {
  0% {
    left: -58%;
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    left: 116%;
    opacity: 0;
  }
}

@keyframes cueDrop {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 13px);
    opacity: 0;
  }
}

@keyframes vellumGlow {
  0%,
  100% {
    opacity: 0.96;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes sidePatternBreath {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.92;
  }
}

@keyframes frameGlow {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 3px rgba(255, 253, 248, 0.46),
      inset 0 0 0 5px rgba(201, 149, 47, 0.18);
  }
  50% {
    box-shadow:
      inset 0 0 0 3px rgba(255, 253, 248, 0.62),
      inset 0 0 0 5px rgba(167, 25, 29, 0.16);
  }
}

@keyframes cornerBreath {
  0%,
  100% {
    opacity: 0.54;
    transform: scale(1);
  }
  50% {
    opacity: 0.96;
    transform: scale(1.05);
  }
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sealPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 30px rgba(99, 34, 17, 0.22);
  }
  50% {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 18px 38px rgba(99, 34, 17, 0.3);
  }
}

@keyframes medallionFloat {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 12px 32px rgba(85, 52, 27, 0.14);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(167, 25, 29, 0.14);
  }
}

@keyframes dragonDrift {
  0%,
  100% {
    opacity: 0.46;
    translate: 0 0;
  }
  50% {
    opacity: 0.72;
    translate: 0 -5px;
  }
}

@keyframes ornamentGlow {
  0%,
  100% {
    opacity: 0.54;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes craneFloat {
  0%,
  100% {
    opacity: 0.18;
    translate: 0 0;
  }
  50% {
    opacity: 0.3;
    translate: -6px -4px;
  }
}

@keyframes lotusBloom {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px) scale(1.025);
  }
}

@keyframes ctaBreath {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(105, 54, 22, 0.16);
  }
  50% {
    box-shadow: 0 16px 34px rgba(167, 25, 29, 0.16);
  }
}

@keyframes cloudDrift {
  from {
    background-position: 18px 12px, 128px 7px, 258px 14px, 348px 5px;
  }
  to {
    background-position: 34px 12px, 112px 9px, 274px 12px, 332px 7px;
  }
}

@keyframes borderShimmer {
  0%,
  100% {
    border-color: rgba(167, 25, 29, 0.2);
  }
  50% {
    border-color: rgba(201, 149, 47, 0.52);
  }
}

@keyframes tinySeal {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

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

@keyframes photoFrameGlow {
  0%,
  100% {
    box-shadow: 0 20px 48px rgba(62, 31, 18, 0.18);
  }
  50% {
    box-shadow: 0 24px 58px rgba(167, 25, 29, 0.16);
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 3.12rem;
  }

  .paper-card {
    padding-inline: 20px;
  }

  .countdown-grid {
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
