:root {
  --plum: #583759;
  --plum-deep: #261728;
  --plum-dark: #160d18;
  --plum-soft: #765578;
  --gold: #c9a86a;
  --gold-bright: #e7d19e;
  --ivory: #f8f2ea;
  --paper: #fffaf4;
  --blush: #e7cdd8;
  --sage: #6f786a;
  --ink: #392834;
  --serif: "Cormorant Garamond", "Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --script: "Parisienne", "Segoe Script", cursive;
}

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

html {
  scroll-behavior: smooth;
  background: var(--plum-dark);
}

body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.gate-locked {
  height: 100dvh;
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--plum-deep);
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.floating-petals {
  position: fixed;
  inset: 0;
  z-index: 22;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.74;
  transition: opacity 800ms ease;
}

.petal {
  position: absolute;
  top: -5vh;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.45);
  background: linear-gradient(145deg, rgba(255, 249, 240, 0.95), rgba(224, 184, 199, 0.75));
  border-radius: 70% 20% 68% 26%;
  box-shadow: 0 0 8px rgba(231, 205, 216, 0.28);
  animation: petal-fall var(--duration) linear var(--delay) infinite;
}

@keyframes petal-fall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.78; }
  52% { transform: translate3d(var(--drift), 52vh, 0) rotate(190deg); }
  88% { opacity: 0.52; }
  100% { transform: translate3d(var(--drift), 108vh, 0) rotate(390deg); opacity: 0; }
}

.invitation-open .floating-petals {
  opacity: 0.28;
}

/* Opening gate */
.gate-scene {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  color: var(--ivory);
  background: var(--plum-dark);
  perspective: 1900px;
}

.gate-scene::before,
.gate-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gate-scene::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(22, 13, 24, 0.88), rgba(88, 55, 89, 0.2) 35%, rgba(88, 55, 89, 0.2) 65%, rgba(22, 13, 24, 0.88)),
    url("assets/faiqa-couple.webp") center 38% / cover no-repeat;
  filter: blur(14px) brightness(0.46) saturate(0.72);
  transform: scale(1.08);
  opacity: 0.82;
  transition: filter 2200ms ease, opacity 1800ms ease;
}

.gate-scene::after {
  z-index: 18;
  border: clamp(8px, 1.3vw, 18px) solid rgba(201, 168, 106, 0.12);
  box-shadow: inset 0 0 0 1px rgba(231, 209, 158, 0.38), inset 0 0 90px rgba(0, 0, 0, 0.7);
}

.gate-scene.is-open::before {
  filter: blur(8px) brightness(0.58) saturate(0.86);
  opacity: 0.92;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 40%, rgba(231, 209, 158, 0.13), transparent 44%),
    linear-gradient(90deg, rgba(22, 13, 24, 0.68), transparent 34%, transparent 66%, rgba(22, 13, 24, 0.68));
}

.hero-portrait {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  justify-content: center;
  margin: 0;
  opacity: 0.18;
  transform: scale(1.055);
  transition: opacity 1800ms ease 450ms, transform 2600ms cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}

.hero-portrait img {
  width: min(100%, 790px);
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.58);
}

.gate-scene.is-open .hero-portrait {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 10, 20, 0.58) 0%, transparent 26%, transparent 56%, rgba(18, 10, 20, 0.9) 100%),
    linear-gradient(90deg, rgba(18, 10, 20, 0.48), transparent 28%, transparent 72%, rgba(18, 10, 20, 0.48));
  opacity: 0.15;
  transition: opacity 1300ms ease 500ms;
}

.gate-scene.is-open .hero-shade {
  opacity: 1;
}

.door-stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 6;
  width: min(100vw, calc(100dvh * 0.667));
  min-width: 620px;
  transform: translateX(-50%);
  perspective: 1900px;
  transform-style: preserve-3d;
}

.gate-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.08%;
  overflow: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition:
    transform 2750ms cubic-bezier(0.76, 0, 0.18, 1),
    opacity 900ms ease 1850ms,
    filter 1500ms ease;
  filter: brightness(0.92) saturate(0.92);
}

.gate-door::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/faiqa-carved-gate.webp");
  background-repeat: no-repeat;
  background-size: 200% 100%;
}

.gate-door::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gate-door-left {
  left: 0;
  transform-origin: 0 50%;
  border-right: 1px solid rgba(231, 209, 158, 0.7);
  box-shadow: inset -18px 0 28px rgba(0, 0, 0, 0.32), 16px 0 38px rgba(0, 0, 0, 0.42);
}

.gate-door-left::before {
  background-position: left center;
}

.gate-door-left::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18));
}

.gate-door-right {
  right: 0;
  transform-origin: 100% 50%;
  border-left: 1px solid rgba(231, 209, 158, 0.7);
  box-shadow: inset 18px 0 28px rgba(0, 0, 0, 0.32), -16px 0 38px rgba(0, 0, 0, 0.42);
}

.gate-door-right::before {
  background-position: right center;
}

.gate-door-right::after {
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18));
}

.gate-scene.is-open .gate-door-left {
  transform: rotateY(-108deg) translateZ(1px);
  opacity: 0.3;
  filter: brightness(0.54) saturate(0.76);
}

.gate-scene.is-open .gate-door-right {
  transform: rotateY(108deg) translateZ(1px);
  opacity: 0.3;
  filter: brightness(0.54) saturate(0.76);
}

.door-initial {
  position: absolute;
  top: 53%;
  z-index: 2;
  display: grid;
  width: clamp(52px, 7vh, 78px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold-bright);
  background:
    radial-gradient(circle, rgba(88, 55, 89, 0.94) 43%, rgba(38, 23, 40, 0.98) 45% 58%, rgba(201, 168, 106, 0.96) 60% 64%, rgba(38, 23, 40, 0.96) 66%);
  border: 1px solid rgba(255, 242, 210, 0.56);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.48), inset 0 0 12px rgba(231, 209, 158, 0.18);
  font-family: var(--serif);
  font-size: clamp(27px, 4vh, 44px);
  font-weight: 600;
  text-shadow: 0 1px 0 #fff1ce, 0 -2px 3px rgba(0, 0, 0, 0.66);
  transform: translateY(-50%);
}

.gate-door-left .door-initial { right: clamp(16px, 3.2vw, 42px); }
.gate-door-right .door-initial { left: clamp(16px, 3.2vw, 42px); }

.portal-outline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 7;
  width: min(100vw, calc(100dvh * 0.667));
  min-width: 620px;
  pointer-events: none;
  border-inline: 1px solid rgba(231, 209, 158, 0.48);
  box-shadow: 0 0 0 7px rgba(38, 23, 40, 0.62), 0 0 0 9px rgba(201, 168, 106, 0.26), 0 0 80px rgba(0, 0, 0, 0.78);
  transform: translateX(-50%);
  transition: opacity 1200ms ease 1750ms;
}

.portal-corner {
  position: absolute;
  top: clamp(14px, 2.4vh, 28px);
  width: 54px;
  height: 54px;
  border-top: 2px solid var(--gold);
}

.portal-corner::before,
.portal-corner::after {
  content: "";
  position: absolute;
  border-radius: 50% 0 50% 50%;
  border: 1px solid rgba(231, 209, 158, 0.72);
  transform: rotate(45deg);
}

.portal-corner::before { width: 16px; height: 24px; top: 8px; }
.portal-corner::after { width: 9px; height: 16px; top: 26px; }
.corner-left { left: 14px; border-left: 2px solid var(--gold); }
.corner-left::before { left: 8px; }
.corner-left::after { left: 27px; }
.corner-right { right: 14px; border-right: 2px solid var(--gold); transform: scaleX(-1); }
.corner-right::before { left: 8px; }
.corner-right::after { left: 27px; }

.gate-scene.is-open .portal-outline {
  opacity: 0.46;
}

.carved-plaque {
  position: absolute;
  top: clamp(22px, 4.3vh, 48px);
  left: 50%;
  z-index: 9;
  width: min(86vw, 510px);
  padding: 12px 26px 15px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(108, 74, 100, 0.98), rgba(54, 31, 52, 0.98)),
    var(--plum);
  border: 1px solid rgba(231, 209, 158, 0.72);
  border-radius: 58% 58% 22% 22% / 38% 38% 18% 18%;
  box-shadow:
    inset 0 2px 0 rgba(255, 245, 218, 0.2),
    inset 0 -7px 14px rgba(0, 0, 0, 0.38),
    0 0 0 5px rgba(38, 23, 40, 0.64),
    0 0 0 6px rgba(201, 168, 106, 0.44),
    0 14px 34px rgba(0, 0, 0, 0.48);
  transform: translateX(-50%);
  transition: opacity 900ms ease 250ms, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1) 250ms;
}

.carved-plaque::before,
.carved-plaque::after {
  content: "✦";
  position: absolute;
  top: 50%;
  color: rgba(231, 209, 158, 0.7);
  font-size: 10px;
  transform: translateY(-50%);
}

.carved-plaque::before { left: 12px; }
.carved-plaque::after { right: 12px; }

.carved-plaque small,
.carved-plaque span {
  display: block;
}

.carved-plaque small {
  margin-bottom: 2px;
  color: rgba(231, 209, 158, 0.7);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.carved-plaque span {
  color: #b8965c;
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 0 rgba(255, 239, 197, 0.34), 0 -2px 2px rgba(17, 8, 18, 0.95), 1px 0 1px rgba(17, 8, 18, 0.66);
}

.gate-scene.is-open .carved-plaque {
  opacity: 0;
  transform: translate(-50%, -24px) scale(0.96);
}

.gate-control {
  position: absolute;
  left: 50%;
  bottom: clamp(38px, 8vh, 88px);
  z-index: 11;
  display: grid;
  justify-items: center;
  width: min(92vw, 430px);
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 700ms ease, transform 1000ms cubic-bezier(0.22, 1, 0.36, 1), visibility 700ms;
}

.gate-control p {
  margin: 54px 0 0;
  color: rgba(248, 242, 234, 0.82);
  font-family: var(--serif);
  font-size: clamp(15px, 2.2vw, 20px);
  font-style: italic;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.wax-seal {
  position: relative;
  display: grid;
  width: clamp(92px, 13vh, 126px);
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  color: var(--gold-bright);
  background:
    radial-gradient(circle at 38% 30%, rgba(143, 94, 127, 0.96), var(--plum) 39%, #3b213c 74%, #2a172b 100%);
  border: 1px solid rgba(231, 209, 158, 0.84);
  border-radius: 50%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.56), inset 0 0 0 7px rgba(37, 20, 38, 0.38), inset 0 0 0 9px rgba(201, 168, 106, 0.48);
  cursor: pointer;
  transition: transform 280ms ease, box-shadow 280ms ease, filter 280ms ease;
}

.wax-seal:hover {
  transform: translateY(-4px) scale(1.025);
  filter: brightness(1.08);
  box-shadow: 0 17px 44px rgba(0, 0, 0, 0.62), 0 0 28px rgba(201, 168, 106, 0.18), inset 0 0 0 7px rgba(37, 20, 38, 0.38), inset 0 0 0 9px rgba(201, 168, 106, 0.56);
}

.wax-seal:focus-visible,
.enter-button:focus-visible,
.journey-dot:focus-visible,
.auto-journey:focus-visible,
.begin-journey:focus-visible,
.contact-card a:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.seal-edge {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(231, 209, 158, 0.52);
  border-radius: 50%;
  animation: seal-turn 24s linear infinite;
}

@keyframes seal-turn { to { transform: rotate(360deg); } }

.seal-monogram {
  font-family: var(--serif);
  font-size: clamp(29px, 4.2vh, 43px);
  font-weight: 600;
  letter-spacing: -0.05em;
  text-shadow: 0 1px 0 #fff2ce, 0 -2px 2px rgba(0, 0, 0, 0.64);
}

.seal-action {
  position: absolute;
  top: calc(100% + 32px);
  min-width: 180px;
  color: var(--ivory);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.gate-scene.is-open .gate-control {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 24px) scale(0.92);
}

.reveal-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  padding: 94px 24px clamp(76px, 8vh, 102px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1150ms ease 1450ms, transform 1500ms cubic-bezier(0.22, 1, 0.36, 1) 1350ms;
}

.gate-scene.is-open .reveal-copy {
  opacity: 1;
  transform: translateY(0);
}

.hero-blessing {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 8px 16px 9px;
  color: var(--ivory);
  background: linear-gradient(135deg, rgba(38, 23, 40, 0.86), rgba(88, 55, 89, 0.78));
  border: 1px solid rgba(231, 209, 158, 0.62);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(10, 4, 12, 0.3), inset 0 0 0 1px rgba(248, 242, 234, 0.06);
  font-family: var(--serif);
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.reveal-copy h1 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.93;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.9);
}

.reveal-copy h1 span,
.reveal-copy h1 em {
  display: block;
}

.reveal-copy h1 span {
  font-size: clamp(31px, 4.6vw, 63px);
}

.reveal-copy h1 em {
  margin: 3px 0 0;
  color: var(--gold-bright);
  font-family: var(--script);
  font-size: clamp(27px, 3.8vw, 47px);
  font-weight: 400;
}

.hero-rule,
.fine-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-rule {
  width: min(340px, 72vw);
  margin: 10px auto 3px;
}

.hero-rule i,
.fine-rule i {
  display: block;
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, currentColor);
}

.hero-rule i:last-child,
.fine-rule i:last-child {
  background: linear-gradient(90deg, currentColor, transparent);
}

.hero-rule b {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 4px 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.hero-dates time {
  padding: 5px 10px;
  white-space: nowrap;
  background: rgba(38, 23, 40, 0.66);
  border: 1px solid rgba(231, 209, 158, 0.48);
  border-radius: 3px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}

.hero-dates span { color: var(--gold-bright); }

.enter-button {
  position: absolute;
  left: clamp(24px, 3vw, 54px);
  bottom: clamp(22px, 3vh, 34px);
  z-index: 12;
  padding: 10px 15px;
  color: var(--ivory);
  background: rgba(38, 23, 40, 0.64);
  border: 1px solid rgba(231, 209, 158, 0.62);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease, background 200ms ease;
}

.gate-scene.is-open .enter-button[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.enter-button:hover { background: rgba(88, 55, 89, 0.88); }

/* Chapter navigation */
.journey-nav {
  position: fixed;
  top: 50%;
  right: 20px;
  z-index: 60;
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: 17px 11px 12px;
  color: var(--gold-bright);
  background: rgba(38, 23, 40, 0.9);
  border: 1px solid rgba(201, 168, 106, 0.4);
  border-radius: 28px;
  box-shadow: 0 12px 38px rgba(24, 10, 22, 0.28);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translate(18px, -50%);
  transition: opacity 700ms ease, transform 700ms ease;
}

.invitation-open .journey-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.journey-line {
  position: absolute;
  top: 31px;
  bottom: 62px;
  left: 50%;
  z-index: -1;
  width: 1px;
  background: rgba(231, 209, 158, 0.22);
  transform: translateX(-50%);
}

.journey-line span {
  display: block;
  width: 100%;
  height: var(--progress, 0%);
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(231, 209, 158, 0.55);
  transition: height 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-dot {
  position: relative;
  display: grid;
  width: 29px;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  color: rgba(248, 242, 234, 0.64);
  background: var(--plum-deep);
  border: 1px solid rgba(201, 168, 106, 0.42);
  border-radius: 50%;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.journey-dot span {
  font-family: var(--serif);
  font-size: 10px;
}

.journey-dot small {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  padding: 5px 8px;
  color: var(--ivory);
  background: rgba(38, 23, 40, 0.92);
  border: 1px solid rgba(201, 168, 106, 0.32);
  border-radius: 8px;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.journey-dot:hover small,
.journey-dot:focus-visible small {
  opacity: 1;
  transform: translate(0, -50%);
}

.journey-dot.is-active {
  color: var(--plum-deep);
  background: var(--gold-bright);
  transform: scale(1.13);
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.15), 0 0 14px rgba(231, 209, 158, 0.24);
}

.auto-journey {
  padding: 6px 7px;
  color: rgba(248, 242, 234, 0.76);
  background: transparent;
  border: 0;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.auto-journey b { color: var(--gold-bright); font-weight: 600; }
.auto-journey:disabled { opacity: 0.42; cursor: default; }

/* Shared invitation sections */
main {
  position: relative;
  z-index: 2;
  overflow: clip;
  background: var(--ivory);
}

.chapter {
  position: relative;
  min-height: 100svh;
  scroll-margin-top: 0;
  isolation: isolate;
}

.section-kicker,
.event-chapter,
.event-overline,
.detail-block small,
.contact-card small {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.section-kicker {
  margin: 0;
  color: var(--plum-soft);
  font-size: 10px;
  font-weight: 600;
}

.fine-rule {
  width: min(330px, 78%);
  margin: 17px auto;
  color: rgba(88, 55, 89, 0.48);
}

.fine-rule b {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
}

.revealable {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 950ms ease, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.revealable.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Invitation */
.welcome-section {
  display: grid;
  min-height: max(100svh, 760px);
  padding: clamp(68px, 8vw, 110px) clamp(22px, 6vw, 78px);
  place-items: center;
  background:
    linear-gradient(rgba(248, 242, 234, 0.96), rgba(248, 242, 234, 0.97)),
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(88, 55, 89, 0.025) 24px 25px);
}

.paper-glow {
  position: absolute;
  inset: 10% 18%;
  z-index: -1;
  background: radial-gradient(circle, rgba(231, 205, 216, 0.42), transparent 66%);
  filter: blur(16px);
}

.welcome-card {
  position: relative;
  width: min(100%, 820px);
  padding: clamp(46px, 7vw, 84px) clamp(24px, 8vw, 96px) clamp(42px, 6vw, 72px);
  overflow: hidden;
  text-align: center;
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(201, 168, 106, 0.64);
  border-radius: 48% 48% 18px 18px / 12% 12% 18px 18px;
  box-shadow: 0 30px 90px rgba(75, 45, 70, 0.12), inset 0 0 0 8px rgba(201, 168, 106, 0.05), inset 0 0 0 9px rgba(88, 55, 89, 0.06);
}

.welcome-card::before,
.welcome-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(201, 168, 106, 0.32);
  border-radius: 50%;
}

.welcome-card::before { top: -62px; left: -62px; }
.welcome-card::after { right: -62px; bottom: -62px; }

.fj-crest {
  position: relative;
  display: grid;
  width: 76px;
  aspect-ratio: 1;
  margin: 14px auto 6px;
  place-items: center;
  color: var(--plum);
  border: 1px solid rgba(201, 168, 106, 0.9);
  border-radius: 50% 50% 46% 46%;
}

.fj-crest::before,
.fj-crest::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(88, 55, 89, 0.2);
  border-radius: inherit;
  transform: rotate(45deg);
}

.fj-crest::after {
  inset: -8px 26px 56px;
  width: 22px;
  height: 29px;
  background: linear-gradient(145deg, var(--blush), var(--plum-soft));
  border: 0;
  border-radius: 70% 18% 64% 22%;
  transform: rotate(42deg);
}

.fj-crest span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.08em;
}

.hosts {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(23px, 3.5vw, 36px);
  font-weight: 600;
  line-height: 1.15;
}

.request-copy {
  margin: 12px 0 10px;
  color: #675363;
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.42;
}

.bride-name,
.groom-name {
  margin: 0;
  color: var(--plum-deep);
  font-family: var(--serif);
  font-size: clamp(37px, 6vw, 66px);
  font-weight: 500;
  line-height: 0.98;
}

.weds-script {
  margin: 5px 0 -2px;
  color: var(--plum-soft);
  font-family: var(--script);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.celebration-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  width: min(100%, 430px);
  margin: clamp(25px, 4vw, 38px) auto 28px;
}

.celebration-dates div {
  display: grid;
  flex: 1 1 0;
  gap: 7px;
  min-width: 0;
  padding: 13px clamp(9px, 2vw, 17px) 11px;
  background: linear-gradient(145deg, rgba(88, 55, 89, 0.085), rgba(231, 205, 216, 0.2));
  border: 1px solid rgba(201, 168, 106, 0.62);
  border-radius: 13px;
  box-shadow: 0 10px 26px rgba(88, 55, 89, 0.1), inset 0 0 0 4px rgba(255, 255, 255, 0.32);
}

.celebration-dates time {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 8px;
  justify-content: center;
  align-items: center;
  color: var(--plum);
  font-family: var(--serif);
  line-height: 0.9;
}

.celebration-dates time span {
  grid-row: 1 / 3;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(43px, 6vw, 62px);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.celebration-dates time b {
  align-self: end;
  color: var(--plum);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.celebration-dates time em {
  align-self: start;
  margin-top: 3px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.celebration-dates small {
  margin-top: 2px;
  color: var(--plum);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.celebration-dates > i {
  width: 1px;
  height: 68px;
  background: linear-gradient(transparent, var(--gold), transparent);
}

.begin-journey {
  padding: 12px 22px;
  color: var(--ivory);
  background: var(--plum);
  border: 1px solid var(--plum);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(88, 55, 89, 0.16);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.begin-journey:hover {
  color: var(--plum);
  background: transparent;
  transform: translateY(-2px);
}

/* CSS tulips */
.tulip-spray {
  position: absolute;
  bottom: -14px;
  z-index: -1;
  width: clamp(150px, 21vw, 300px);
  height: clamp(270px, 38vw, 480px);
  opacity: 0.62;
  pointer-events: none;
}

.tulip-spray-left { left: -16px; }
.tulip-spray-right { right: -16px; transform: scaleX(-1); }

.tulip {
  position: absolute;
  bottom: 0;
  width: 44px;
  height: 100%;
  transform-origin: bottom center;
}

.tulip::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 21px;
  width: 2px;
  height: 76%;
  background: linear-gradient(var(--sage), #9ba090);
  border-radius: 2px;
  transform: rotate(-5deg);
  transform-origin: bottom;
}

.tulip::after {
  content: "";
  position: absolute;
  bottom: 28%;
  left: 5px;
  width: 26px;
  height: 66px;
  background: rgba(111, 120, 106, 0.7);
  border-radius: 95% 5% 90% 10%;
  transform: rotate(-27deg);
  transform-origin: bottom right;
}

.tulip i,
.tulip b,
.tulip em {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 29px;
  height: 42px;
  background: linear-gradient(145deg, #f7e9e6, var(--blush) 58%, #bb829d);
  border-radius: 80% 18% 70% 26%;
  box-shadow: inset -5px -5px 10px rgba(88, 55, 89, 0.1);
  transform-origin: bottom center;
}

.tulip i { transform: translateX(-68%) rotate(-20deg); }
.tulip b { z-index: 2; transform: translateX(-50%) rotate(2deg); }
.tulip em { transform: translateX(-31%) rotate(22deg) scaleX(-1); }
.tulip-one { left: 12%; transform: rotate(-12deg); }
.tulip-two { left: 41%; bottom: -8%; height: 88%; transform: rotate(2deg) scale(0.9); }
.tulip-three { left: 69%; bottom: -3%; height: 74%; transform: rotate(15deg) scale(0.82); }

/* Events */
.events-journey {
  --event-progress: 0%;
  position: relative;
  background: var(--paper);
}

.event-spine {
  position: absolute;
  left: 50%;
  z-index: 6;
  width: 1px;
  background: rgba(88, 55, 89, 0.16);
  pointer-events: none;
}

.event-spine span {
  display: block;
  width: 100%;
  height: var(--event-progress);
  background: linear-gradient(var(--gold), var(--plum));
  box-shadow: 0 0 10px rgba(201, 168, 106, 0.24);
}

.event-section {
  display: grid;
  min-height: max(100svh, 780px);
  padding: clamp(86px, 9vw, 128px) clamp(70px, 7vw, 130px);
  place-items: center;
  overflow: hidden;
}

.mehndi-section {
  background:
    radial-gradient(circle at 17% 20%, rgba(231, 205, 216, 0.33), transparent 25%),
    linear-gradient(135deg, #fdf7ef, #f4e9e7 62%, #f8f2ea);
}

.barat-section {
  background:
    radial-gradient(circle at 82% 20%, rgba(201, 168, 106, 0.11), transparent 27%),
    linear-gradient(135deg, #f5ece6, #fffaf4 58%, #eee1e6);
}

.event-number {
  position: absolute;
  top: 4%;
  right: 5%;
  z-index: -1;
  color: rgba(88, 55, 89, 0.045);
  font-family: var(--serif);
  font-size: clamp(140px, 22vw, 330px);
  font-weight: 600;
  line-height: 1;
}

.timeline-node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  display: grid;
  width: 43px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--plum);
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(248, 242, 234, 0.72), 0 7px 24px rgba(88, 55, 89, 0.13);
  transform: translate(-50%, -50%);
  transition: color 400ms ease, background 400ms ease;
}

.timeline-node span {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.timeline-node.is-passed {
  color: var(--ivory);
  background: var(--plum);
}

.event-layout {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(330px, 1fr);
  gap: clamp(76px, 9vw, 146px);
  align-items: center;
  width: min(100%, 1160px);
  opacity: 0.38;
  filter: blur(3px);
  transform: scale(0.985);
  transition: opacity 900ms ease 800ms, filter 900ms ease 800ms, transform 1400ms cubic-bezier(0.22, 1, 0.36, 1) 680ms;
}

.event-section.is-revealed .event-layout {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.event-visual {
  position: relative;
  margin: 0;
}

.image-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 9px;
  background: var(--paper);
  border: 1px solid rgba(201, 168, 106, 0.72);
  border-radius: 48% 48% 18px 18px / 13% 13% 18px 18px;
  box-shadow: 0 30px 70px rgba(88, 55, 89, 0.18), inset 0 0 0 4px rgba(201, 168, 106, 0.07);
}

.image-frame::before {
  content: "FJ";
  position: absolute;
  top: -18px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 47px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold-bright);
  background: var(--plum);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold), 0 6px 16px rgba(38, 23, 40, 0.22);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.05em;
  transform: translateX(-50%);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 48% 48% 12px 12px / 12% 12% 12px 12px;
}

.event-visual figcaption {
  margin-top: 16px;
  color: var(--plum-soft);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.15em;
  text-align: center;
}

.event-card {
  position: relative;
  padding: clamp(32px, 5vw, 58px);
  text-align: center;
  background: rgba(255, 250, 244, 0.78);
  border: 1px solid rgba(201, 168, 106, 0.48);
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(88, 55, 89, 0.1), inset 0 0 0 7px rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
}

.event-card::before,
.event-card::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  border-color: rgba(201, 168, 106, 0.62);
  border-style: solid;
}

.event-card::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
  border-radius: 10px 0 0;
}

.event-card::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 10px;
}

.event-chapter {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
}

.event-overline {
  margin: 0 0 7px;
  color: #786574;
  font-family: var(--serif);
  font-size: clamp(13px, 1.4vw, 16px);
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
}

.event-card h2 {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(50px, 7vw, 82px);
  font-weight: 500;
  line-height: 0.9;
}

.event-date {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 9px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 126px;
  margin: 15px auto 17px;
  padding: 9px 17px 10px;
  color: var(--ivory);
  background: linear-gradient(145deg, var(--plum-deep), var(--plum));
  border: 1px solid rgba(201, 168, 106, 0.88);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(88, 55, 89, 0.22), inset 0 0 0 3px rgba(231, 209, 158, 0.08);
  font-family: var(--serif);
  line-height: 0.9;
}

.event-date span {
  grid-row: 1 / 3;
  color: var(--gold-bright);
  font-size: 39px;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.event-date b {
  align-self: end;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-date em {
  align-self: start;
  margin-top: 3px;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.detail-block {
  padding: 2px 0 8px;
}

.detail-block small,
.contact-card small {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.detail-block > small {
  color: #84683d;
}

.contact-card > small {
  color: var(--gold-bright);
}

.detail-block strong {
  display: block;
  color: var(--plum-deep);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 600;
}

.detail-block p {
  margin: 7px 0 0;
  color: #6c5968;
  font-family: var(--serif);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.45;
}

.barat-venue {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.32);
}

.barat-venue strong {
  font-size: clamp(22px, 2.7vw, 29px);
  line-height: 1.08;
}

.event-note {
  width: min(100%, 410px);
  margin: 24px auto 0;
  color: #7a6875;
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 18px);
  font-style: italic;
  line-height: 1.55;
}

.schedule {
  display: grid;
  width: min(100%, 370px);
  margin: 8px auto 0;
  border-block: 1px solid rgba(201, 168, 106, 0.36);
}

.schedule div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 4px;
}

.schedule div + div {
  border-top: 1px solid rgba(88, 55, 89, 0.09);
}

.schedule span {
  color: #6a5666;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.schedule strong {
  color: var(--plum);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.event-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 12;
  width: 50.2%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 7% 15%, rgba(0, 0, 0, 0.08) 22%, transparent 34% 44%, rgba(255, 255, 255, 0.045) 53%, transparent 67% 77%, rgba(0, 0, 0, 0.1) 86%, transparent),
    linear-gradient(180deg, #704b6b, var(--plum) 38%, #3e263f);
  box-shadow: inset 0 0 52px rgba(0, 0, 0, 0.2);
  transition: transform 1800ms cubic-bezier(0.76, 0, 0.24, 1), opacity 700ms ease 1150ms;
}

.event-curtain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(231, 209, 158, 0.055) 40px 41px);
}

.curtain-left {
  left: 0;
  border-right: 1px solid rgba(231, 209, 158, 0.62);
  transform-origin: left center;
}

.curtain-right {
  right: 0;
  border-left: 1px solid rgba(231, 209, 158, 0.62);
  transform-origin: right center;
}

.event-section.is-revealed .curtain-left {
  transform: translateX(-102%) skewX(-1.5deg);
  opacity: 0.22;
}

.event-section.is-revealed .curtain-right {
  transform: translateX(102%) skewX(1.5deg);
  opacity: 0.22;
}

.curtain-crown {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 13;
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold-bright);
  background: var(--plum-deep);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(38, 23, 40, 0.9), 0 0 0 9px rgba(201, 168, 106, 0.5), 0 14px 35px rgba(0, 0, 0, 0.32);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.08em;
  transform: translate(-50%, -50%);
  transition: opacity 550ms ease 700ms, transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 480ms;
}

.event-section.is-revealed .curtain-crown {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(22deg);
}

/* Closing */
.closing-section {
  display: grid;
  min-height: max(100svh, 680px);
  padding: clamp(82px, 10vw, 132px) 24px;
  place-items: center;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 36%, rgba(180, 130, 166, 0.26), transparent 35%),
    linear-gradient(145deg, #241326, var(--plum) 48%, #2c192e);
}

.closing-section::before {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: -1;
  border: 1px solid rgba(201, 168, 106, 0.38);
  border-radius: 48% 48% 18px 18px / 14% 14% 18px 18px;
}

.closing-halo {
  position: absolute;
  top: 9%;
  left: 50%;
  z-index: -1;
  width: min(78vw, 720px);
  height: 74%;
  border: 1px solid rgba(231, 209, 158, 0.18);
  border-radius: 50% 50% 22% 22% / 18% 18% 10% 10%;
  box-shadow: inset 0 0 80px rgba(231, 209, 158, 0.04), 0 0 80px rgba(0, 0, 0, 0.13);
  transform: translateX(-50%);
}

.closing-card {
  width: min(100%, 780px);
  text-align: center;
}

.fj-crest.light {
  color: var(--gold-bright);
  border-color: rgba(231, 209, 158, 0.82);
}

.fj-crest.light::before { border-color: rgba(248, 242, 234, 0.18); }
.closing-card .section-kicker { margin-top: 24px; color: var(--gold-bright); }

.closing-card h2 {
  margin: 13px 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(41px, 6.2vw, 73px);
  font-weight: 500;
  line-height: 0.98;
}

.fine-rule.light { color: rgba(231, 209, 158, 0.42); }
.fine-rule.light b { color: var(--gold-bright); }

.closing-names {
  margin: 0;
  color: rgba(248, 242, 234, 0.82);
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 29px);
}

.closing-names em {
  margin: 0 6px;
  color: var(--gold-bright);
  font-family: var(--script);
  font-size: 1.22em;
}

.contact-card {
  width: min(100%, 390px);
  margin: clamp(30px, 5vw, 48px) auto 0;
  padding: 22px 24px;
  background: rgba(248, 242, 234, 0.065);
  border: 1px solid rgba(231, 209, 158, 0.4);
  border-radius: 14px;
  box-shadow: inset 0 0 0 6px rgba(248, 242, 234, 0.025), 0 18px 45px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}

.contact-card strong,
.contact-card a {
  display: block;
}

.contact-card strong {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.contact-card a {
  width: fit-content;
  margin: 7px auto 0;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.contact-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

.closing-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 11px;
  margin: 28px 0 0;
  color: rgba(248, 242, 234, 0.82);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.closing-dates time {
  padding: 6px 11px;
  white-space: nowrap;
  background: rgba(248, 242, 234, 0.06);
  border: 1px solid rgba(231, 209, 158, 0.32);
  border-radius: 4px;
}

.closing-dates span { color: var(--gold-bright); }

.closing-tulips {
  position: absolute;
  bottom: -80px;
  width: min(29vw, 380px);
  height: 430px;
  opacity: 0.21;
  background:
    radial-gradient(ellipse at 33% 24%, var(--blush) 0 6%, transparent 6.5%),
    radial-gradient(ellipse at 58% 14%, var(--gold-bright) 0 5%, transparent 5.5%),
    radial-gradient(ellipse at 78% 30%, var(--blush) 0 6%, transparent 6.5%),
    linear-gradient(73deg, transparent 49.5%, var(--sage) 50% 50.5%, transparent 51%),
    linear-gradient(88deg, transparent 49.5%, var(--sage) 50% 50.5%, transparent 51%),
    linear-gradient(105deg, transparent 49.5%, var(--sage) 50% 50.5%, transparent 51%);
  filter: blur(0.2px);
}

.closing-tulips-left { left: -4%; transform: rotate(-8deg); }
.closing-tulips-right { right: -4%; transform: scaleX(-1) rotate(-8deg); }

/* Responsive refinements */
@media (min-width: 681px) and (max-height: 800px) {
  .welcome-section {
    min-height: 100svh;
    padding-block: 34px;
  }

  .welcome-card {
    padding-top: 28px;
    padding-bottom: 27px;
  }

  .welcome-card .fj-crest {
    width: 61px;
    margin-top: 8px;
  }

  .welcome-card .fine-rule { margin-block: 10px; }
  .hosts { font-size: 29px; }
  .request-copy { margin-block: 7px; font-size: 18px; }
  .bride-name,
  .groom-name { font-size: 49px; }
  .weds-script { font-size: 38px; }
  .celebration-dates { margin-block: 20px 17px; }
  .celebration-dates span { font-size: 46px; }

  .event-section {
    min-height: 100svh;
    padding-block: 48px;
  }

  .event-layout { width: min(100%, 1050px); }
  .event-visual { width: min(100%, 370px); justify-self: center; }
  .event-card { padding: 32px 42px; }
  .event-card h2 { font-size: 62px; }
  .event-card .fine-rule { margin-block: 12px; }
  .event-note { margin-top: 15px; }
}

@media (max-width: 1100px) {
  .event-section { padding-inline: 74px; }
  .event-layout { gap: 76px; }
}

@media (max-width: 880px) {
  .event-section {
    min-height: auto;
    padding: 108px 70px 122px;
  }

  .event-layout {
    grid-template-columns: 1fr;
    gap: 46px;
    width: min(100%, 590px);
  }

  .event-layout.image-right .event-visual { order: -1; }
  .event-spine { left: 34px; }
  .timeline-node { top: 50%; left: 34px; }
  .event-number { top: 2%; right: 2%; }
  .event-visual { width: min(100%, 440px); margin-inline: auto; }
}

@media (max-width: 680px) {
  .gate-scene { min-height: 540px; }

  .door-stage,
  .portal-outline {
    width: calc(100dvh * 0.667);
    min-width: 100vw;
  }

  .gate-scene::after { border-width: 6px; }
  .portal-outline { box-shadow: 0 0 0 4px rgba(38, 23, 40, 0.55), 0 0 0 5px rgba(201, 168, 106, 0.28); }
  .carved-plaque { top: max(20px, env(safe-area-inset-top)); padding: 10px 23px 12px; }
  .carved-plaque span { font-size: clamp(21px, 7vw, 29px); }
  .carved-plaque small { font-size: 7px; letter-spacing: 0.2em; }
  .gate-control { bottom: max(64px, calc(48px + env(safe-area-inset-bottom))); }
  .gate-control p { margin-top: 47px; font-size: 15px; }
  .seal-action { top: calc(100% + 26px); }
  .hero-portrait img { width: 100%; }
  .reveal-copy { padding: 86px 15px max(132px, calc(120px + env(safe-area-inset-bottom))); }
  .reveal-copy h1 span { font-size: clamp(29px, 9.3vw, 39px); }
  .reveal-copy h1 em { font-size: 31px; }
  .hero-blessing {
    padding: 8px 14px 9px;
    font-size: 13px;
    letter-spacing: 0.07em;
  }
  .hero-dates { gap: 5px 7px; }
  .hero-dates time { padding: 4px 7px; }
  .enter-button { right: auto; left: 50%; bottom: max(78px, calc(68px + env(safe-area-inset-bottom))); transform: translate(-50%, 12px); }
  .gate-scene.is-open .enter-button[aria-hidden="false"] { transform: translate(-50%, 0); }

  .journey-nav {
    top: auto;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: flex;
    justify-content: space-around;
    gap: 4px;
    padding: 9px 10px;
    border-radius: 18px;
    transform: translateY(18px);
  }

  .invitation-open .journey-nav { transform: translateY(0); }

  .journey-line {
    top: 23px;
    right: 58px;
    bottom: auto;
    left: 23px;
    width: auto;
    height: 1px;
    transform: none;
  }

  .journey-line span {
    width: var(--progress, 0%);
    height: 100%;
    transition-property: width;
  }

  .journey-dot { width: 29px; flex: 0 0 29px; }
  .journey-dot small { display: none; }
  .auto-journey { width: 44px; padding: 5px 0; }

  .welcome-section {
    min-height: max(100svh, 720px);
    padding: 68px 17px 104px;
  }

  .welcome-card {
    padding: 46px 19px 42px;
    border-radius: 46% 46% 16px 16px / 7% 7% 16px 16px;
  }

  .request-copy br { display: none; }
  .bride-name,
  .groom-name { font-size: clamp(34px, 11.5vw, 48px); }
  .hosts { font-size: 25px; }
  .request-copy { font-size: 17px; }
  .celebration-dates {
    gap: 9px;
    margin-block: 24px 25px;
  }
  .celebration-dates div { padding: 11px 7px 10px; }
  .celebration-dates time { column-gap: 6px; }
  .celebration-dates time span { font-size: clamp(38px, 12vw, 48px); }
  .celebration-dates time b { font-size: 14px; }
  .celebration-dates time em { font-size: 8px; }
  .celebration-dates > i { height: 62px; }
  .tulip-spray { width: 146px; height: 260px; opacity: 0.4; }
  .tulip-spray-left { left: -54px; }
  .tulip-spray-right { right: -54px; }

  .event-section { padding: 96px 20px 124px 62px; }
  .event-spine { left: 28px; }
  .timeline-node { left: 28px; width: 37px; }
  .event-layout { gap: 38px; }
  .event-card { padding: 36px 20px; }
  .event-card h2 { font-size: clamp(51px, 18vw, 70px); }
  .event-date { margin-block: 13px 15px; }
  .event-overline { font-size: 14px; }
  .image-frame { padding: 7px; }
  .event-note { font-size: 16px; }

  .closing-section { padding: 96px 23px 126px; }
  .closing-section::before { inset: 12px; }
  .closing-halo { width: 88vw; }
  .closing-card h2 { font-size: clamp(38px, 11vw, 54px); }
  .closing-names { font-size: 21px; }
  .closing-dates { font-size: 13px; }
  .closing-tulips { width: 54vw; opacity: 0.14; }
}

@media (max-width: 390px) {
  .wax-seal { width: 92px; }
  .gate-control p { font-size: 14px; }
  .door-initial { width: 48px; font-size: 25px; }
  .gate-door-left .door-initial { right: 12px; }
  .gate-door-right .door-initial { left: 12px; }
  .hero-dates { font-size: 12px; }
  .celebration-dates { gap: 16px; }
  .celebration-dates div { min-width: 0; }
  .event-section { padding-left: 56px; }
  .event-spine,
  .timeline-node { left: 25px; }
  .schedule strong { font-size: 20px; }
}

@media (max-height: 650px) and (orientation: landscape) {
  .carved-plaque { top: 15px; padding-block: 8px 10px; }
  .gate-control { bottom: 30px; }
  .wax-seal { width: 82px; }
  .gate-control p { display: none; }
  .seal-action { top: calc(100% + 17px); }
  .reveal-copy { padding-bottom: 52px; }
  .reveal-copy h1 span { font-size: 34px; }
  .reveal-copy h1 em { font-size: 28px; }
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

.skip-motion *,
.skip-motion *::before,
.skip-motion *::after {
  transition-duration: 1ms !important;
  transition-delay: 0ms !important;
  animation-duration: 1ms !important;
}

@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;
    transition-delay: 0ms !important;
  }

  .floating-petals { display: none; }
}
