:root {
  --ivory: #fffaf1;
  --paper: #f3eadb;
  --paper-deep: #e9dcc8;
  --ink: #3e3230;
  --muted: #776a64;
  --gold: #b89145;
  --gold-light: #e4cc95;
  --sapphire: #31566d;
  --sapphire-dark: #1f3e50;
  --sapphire-soft: #dbe8ed;
  --rose: #844b60;
  --rose-dark: #5e3042;
  --rose-soft: #ecdde1;
  --shadow: rgba(61, 45, 38, 0.2);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

body.invitation-locked {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.invitation-shell {
  min-height: 100svh;
  overflow: clip;
}

.opening-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 250, 241, 0.46), rgba(255, 250, 241, 0.62)),
    url("/assets/envelope.webp") center / cover no-repeat;
  perspective: 1100px;
}

.opening-gate::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 5;
  border: 1px solid rgba(184, 145, 69, 0.72);
  border-radius: 42px 12px;
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.2),
    inset 0 0 80px rgba(255, 250, 241, 0.5);
  pointer-events: none;
}

.gate-panel {
  position: absolute;
  inset-block: 0;
  width: 50.25%;
  display: flex;
  align-items: flex-end;
  padding: max(44px, env(safe-area-inset-top)) 30px max(38px, env(safe-area-inset-bottom));
  transition: transform 2.35s cubic-bezier(0.74, 0.02, 0.18, 1) 0.6s;
  will-change: transform;
}

.gate-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.54;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.7), transparent 27%),
    linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.38) 50%, transparent 74%);
}

.gate-panel span {
  position: relative;
  z-index: 2;
  color: rgba(255, 250, 241, 0.86);
  font: 700 10px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gate-panel-sunnat {
  left: 0;
  justify-content: flex-start;
  background: linear-gradient(145deg, rgba(49, 86, 109, 0.92), rgba(31, 62, 80, 0.88));
  border-right: 1px solid rgba(228, 204, 149, 0.82);
  transform-origin: left center;
}

.gate-panel-nikoh {
  right: 0;
  justify-content: flex-end;
  background: linear-gradient(215deg, rgba(132, 75, 96, 0.92), rgba(94, 48, 66, 0.88));
  border-left: 1px solid rgba(228, 204, 149, 0.82);
  transform-origin: right center;
}

.is-opened .gate-panel-sunnat {
  transform: translateX(-108%) rotateY(-10deg);
}

.is-opened .gate-panel-nikoh {
  transform: translateX(108%) rotateY(10deg);
}

.gate-glow {
  position: absolute;
  z-index: 3;
  width: min(820px, 94vw);
  height: min(820px, 94vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 212, 0.78), rgba(255, 244, 212, 0.12) 52%, transparent 72%);
  filter: blur(4px);
  transition: transform 2.6s ease, opacity 2s ease;
}

.is-opened .gate-glow {
  opacity: 0;
  transform: scale(1.45);
}

.gate-card {
  position: relative;
  z-index: 10;
  width: min(610px, 84vw);
  padding: clamp(34px, 6vw, 56px) clamp(24px, 6vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 250, 241, 0.91);
  border: 1px solid rgba(228, 204, 149, 0.92);
  border-radius: 52px 12px;
  box-shadow:
    0 35px 90px rgba(42, 31, 27, 0.34),
    inset 0 0 0 7px rgba(184, 145, 69, 0.08);
  backdrop-filter: blur(14px);
}

.gate-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 145, 69, 0.3);
  border-radius: 41px 7px;
  pointer-events: none;
}

.is-opened .gate-card {
  animation: gateCardExit 2.2s cubic-bezier(0.56, 0.02, 0.3, 1) 0.45s forwards;
}

.gate-kicker,
.eyebrow {
  margin: 0;
  color: var(--gold);
  font: 700 clamp(9px, 2.2vw, 12px)/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.gate-monograms {
  width: min(340px, 70vw);
  margin: 26px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--gold);
}

.gate-monograms strong {
  padding-block: 10px;
  color: var(--sapphire);
  border-block: 1px solid rgba(184, 145, 69, 0.38);
  font-size: clamp(17px, 4vw, 24px);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.gate-monograms strong:last-child {
  color: var(--rose);
}

.gate-monograms i {
  font-size: 11px;
}

.gate-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 9vw, 68px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.03;
}

.gate-date {
  margin: 20px 0 24px;
  color: var(--muted);
  font: 700 clamp(12px, 3vw, 16px)/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.18em;
}

.seal-button {
  appearance: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.seal-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  color: var(--ivory);
  background:
    radial-gradient(circle at 35% 27%, #d5b66c, #a67a30 65%, #80591f);
  border: 3px double rgba(255, 244, 212, 0.76);
  border-radius: 50%;
  box-shadow:
    0 14px 28px rgba(96, 65, 24, 0.3),
    0 0 0 7px rgba(184, 145, 69, 0.13);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.seal-ring b {
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
}

.seal-button:hover .seal-ring,
.seal-button:focus-visible .seal-ring {
  transform: translateY(-3px) scale(1.035);
  box-shadow:
    0 18px 36px rgba(96, 65, 24, 0.38),
    0 0 0 9px rgba(184, 145, 69, 0.14);
}

.seal-button:focus-visible {
  outline: 2px solid var(--sapphire);
  outline-offset: 8px;
  border-radius: 999px;
}

.seal-button small {
  color: var(--muted);
  font: 700 9px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-content {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1.25s ease 0.85s, transform 1.8s ease 0.55s;
}

.is-opened .site-content {
  opacity: 1;
  transform: none;
}

.gold-dust {
  position: fixed;
  z-index: 45;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gold-dust i {
  position: absolute;
  top: -20px;
  display: block;
  opacity: 0;
  background: radial-gradient(circle, #fff6d6, var(--gold) 62%, transparent 68%);
  border-radius: 50%;
  animation: dustFall linear infinite paused;
}

.is-opened .gold-dust i {
  opacity: 0.48;
  animation-play-state: running;
}

.music-control {
  position: fixed;
  z-index: 50;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  min-width: 92px;
  height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ivory);
  background: rgba(49, 86, 109, 0.9);
  border: 1px solid rgba(228, 204, 149, 0.74);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(31, 62, 80, 0.25);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.music-control.is-playing svg {
  animation: musicPulse 1.6s ease-in-out infinite;
}

.music-control span {
  font: 700 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
}

.hero-section,
.invitation-section,
.schedule-section,
.venues-section,
.final-section {
  position: relative;
  min-height: 100svh;
  padding: max(74px, env(safe-area-inset-top)) 22px max(68px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-section {
  color: var(--ink);
  background: var(--ivory) url("/assets/hero-arch.webp") center / cover no-repeat;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.58), rgba(255, 250, 241, 0.1) 52%, rgba(255, 250, 241, 0.48)),
    radial-gradient(ellipse at center, rgba(255, 250, 241, 0.38), transparent 65%);
}

.hero-inner,
.section-inner {
  position: relative;
  z-index: 3;
  width: min(900px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-inner.narrow {
  width: min(680px, 90vw);
}

.bismillah {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(20px, 4.6vw, 32px);
  font-style: italic;
  text-shadow: 0 1px 16px rgba(255, 250, 241, 0.92);
}

.hero-events {
  width: min(870px, 92vw);
  margin-top: clamp(22px, 5vh, 48px);
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
}

.hero-event {
  min-height: 305px;
  padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(184, 145, 69, 0.48);
  box-shadow:
    0 24px 65px rgba(61, 45, 38, 0.18),
    inset 0 0 0 6px rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.hero-event-sunnat {
  color: var(--sapphire-dark);
  border-radius: 56px 10px;
}

.hero-event-nikoh {
  color: var(--rose-dark);
  border-radius: 10px 56px;
}

.hero-event span {
  margin-bottom: 22px;
  color: var(--gold);
  font: 700 10px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-event h2 {
  margin: 0;
  font-size: clamp(38px, 7.5vw, 69px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.hero-event i {
  margin: 9px 0;
  color: var(--gold);
  font-size: clamp(23px, 4vw, 34px);
}

.hero-jewel {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ivory);
  background: var(--gold);
  border: 1px solid var(--gold-light);
  transform: rotate(45deg);
  box-shadow: 0 9px 26px rgba(96, 65, 24, 0.28);
  font-size: 10px;
}

.hero-jewel::first-letter {
  transform: rotate(-45deg);
}

.hero-date-card {
  margin-top: 28px;
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid rgba(184, 145, 69, 0.58);
  border-radius: 999px;
  box-shadow: 0 13px 32px rgba(61, 45, 38, 0.13);
  backdrop-filter: blur(10px);
}

.hero-date-card svg {
  color: var(--gold);
}

.hero-date-card strong {
  font: 700 clamp(12px, 3vw, 15px)/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
}

.scroll-cue {
  width: 48px;
  height: 48px;
  margin-top: 25px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(184, 145, 69, 0.6);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(61, 45, 38, 0.1);
  animation: cueFloat 2s ease-in-out infinite;
}

.invitation-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.46), rgba(255, 250, 241, 0.72)),
    url("/assets/swan-water-v2.webp") center / cover no-repeat;
}

.section-frame {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(184, 145, 69, 0.64);
  border-radius: 46px 10px;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.script-title {
  margin: 0;
  color: var(--rose-dark);
  font-size: clamp(42px, 10vw, 76px);
  font-style: italic;
  line-height: 1.05;
  text-shadow: 0 2px 22px rgba(255, 250, 241, 0.9);
}

.gold-rule {
  width: min(390px, 76vw);
  margin: 22px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gold);
}

.gold-rule i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.gold-rule i:last-child {
  transform: rotate(180deg);
}

.gold-rule b {
  font-size: 11px;
}

.invitation-copy {
  position: relative;
  padding: clamp(28px, 5.5vw, 46px);
  color: #493b38;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(184, 145, 69, 0.54);
  border-radius: 44px 10px;
  box-shadow:
    0 28px 68px rgba(61, 45, 38, 0.18),
    inset 0 0 0 7px rgba(184, 145, 69, 0.06);
  backdrop-filter: blur(12px);
}

.invitation-copy::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(184, 145, 69, 0.22);
  border-radius: 33px 6px;
  pointer-events: none;
}

.invitation-copy p {
  margin: 0;
  font-size: clamp(18px, 4.2vw, 25px);
  line-height: 1.72;
}

.invitation-copy .salaam {
  margin-bottom: 18px;
  color: var(--sapphire-dark);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.07em;
}

.invitation-copy strong {
  color: var(--rose-dark);
}

.blessing {
  margin: 25px 0 0;
  color: var(--sapphire-dark);
  font-size: clamp(21px, 4.8vw, 31px);
  font-style: italic;
  text-shadow: 0 2px 16px rgba(255, 250, 241, 0.94);
}

.schedule-section {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(132, 75, 96, 0.12), transparent 34%),
    linear-gradient(145deg, #f8f1e6, #e7ebe9 52%, #f1e1e3);
}

.section-heading {
  margin: 17px 0 0;
  color: var(--ink);
  font-size: clamp(38px, 8vw, 65px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.countdown {
  width: min(680px, 92vw);
  min-height: 117px;
  margin-top: 31px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid rgba(184, 145, 69, 0.46);
  border-radius: 34px 9px;
  box-shadow: 0 20px 52px rgba(61, 45, 38, 0.13);
  backdrop-filter: blur(12px);
}

.countdown > div {
  padding: 20px 6px;
  border-right: 1px solid rgba(184, 145, 69, 0.22);
}

.countdown > div:last-child {
  border-right: 0;
}

.countdown strong {
  display: block;
  color: var(--sapphire-dark);
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font: 700 9px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.celebration-started {
  grid-column: 1 / -1;
  align-self: center;
  margin: 0;
  color: var(--rose-dark);
  font-size: clamp(26px, 6vw, 43px);
  font-style: italic;
}

.schedule-grid {
  width: min(820px, 92vw);
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.schedule-card {
  position: relative;
  padding: 31px 24px 29px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 250, 241, 0.81);
  border: 1px solid rgba(184, 145, 69, 0.44);
  box-shadow: 0 22px 55px rgba(61, 45, 38, 0.14);
  backdrop-filter: blur(11px);
}

.schedule-card-sunnat {
  border-radius: 42px 8px;
}

.schedule-card-nikoh {
  border-radius: 8px 42px;
}

.schedule-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(184, 145, 69, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.schedule-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--ivory);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(61, 45, 38, 0.2);
}

.schedule-card-sunnat .schedule-icon {
  background: var(--sapphire);
}

.schedule-card-nikoh .schedule-icon {
  background: var(--rose);
}

.schedule-card p {
  margin: 17px 0 0;
  color: var(--gold);
  font: 700 10px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.schedule-card time {
  margin-top: 9px;
  color: var(--ink);
  font-size: clamp(42px, 8vw, 60px);
  line-height: 1;
}

.schedule-card h3 {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 4.2vw, 30px);
  font-style: italic;
  font-weight: 400;
}

.schedule-card > span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
}

.venues-section {
  position: relative;
  background:
    radial-gradient(circle at 12% 12%, rgba(219, 232, 237, 0.82), transparent 33%),
    radial-gradient(circle at 88% 88%, rgba(236, 221, 225, 0.76), transparent 34%),
    linear-gradient(145deg, #fbf6ed, #eee4d4 58%, #f7efe7);
}

.venues-intro {
  width: min(640px, 88vw);
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 3.5vw, 20px);
  line-height: 1.62;
}

.venue-grid {
  width: min(1050px, 94vw);
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.venue-card {
  position: relative;
  padding: 12px 12px 31px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(184, 145, 69, 0.56);
  box-shadow:
    0 28px 70px rgba(61, 45, 38, 0.18),
    inset 0 0 0 6px rgba(184, 145, 69, 0.05);
  backdrop-filter: blur(12px);
}

.venue-card-sunnat {
  border-radius: 48px 10px;
}

.venue-card-nikoh {
  border-radius: 10px 48px;
}

.venue-media {
  position: relative;
  width: 100%;
  height: clamp(420px, 56vw, 590px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(49, 86, 109, 0.18), rgba(132, 75, 96, 0.16)),
    var(--paper-deep);
  border: 1px solid rgba(184, 145, 69, 0.42);
}

.venue-card-sunnat .venue-media {
  border-radius: 38px 6px 24px 6px;
}

.venue-card-nikoh .venue-media {
  border-radius: 6px 38px 6px 24px;
}

.venue-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--ivory);
  border: 0;
}

.venue-source {
  width: fit-content;
  margin: 16px auto 0;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: rgba(243, 234, 219, 0.7);
  border: 1px solid rgba(184, 145, 69, 0.26);
  border-radius: 999px;
  font: 700 9px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.07em;
}

.venue-source svg {
  color: var(--rose);
}

.venue-event {
  margin: 20px 0 0;
  color: var(--gold);
  font: 700 10px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.venue-card h3 {
  margin: 11px 0 0;
  font-size: clamp(35px, 6vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.venue-card-sunnat h3 {
  color: var(--sapphire-dark);
}

.venue-card-nikoh h3 {
  color: var(--rose-dark);
}

.venue-type {
  margin: 8px 0 0;
  color: var(--gold);
  font-size: clamp(20px, 4vw, 28px);
  font-style: italic;
}

.venue-card address {
  margin: 16px auto 0;
  max-width: 340px;
  color: var(--ink);
  font-size: clamp(17px, 3.7vw, 22px);
  font-style: normal;
  line-height: 1.5;
}

.venue-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.map-button,
.source-button,
.share-button {
  min-height: 50px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  text-decoration: none;
  font: 700 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-button {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--sapphire), var(--sapphire-dark));
  border: 1px solid rgba(228, 204, 149, 0.66);
  box-shadow: 0 12px 28px rgba(31, 62, 80, 0.22);
}

.venue-card-nikoh .map-button {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 12px 28px rgba(94, 48, 66, 0.22);
}

.source-button {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid rgba(184, 145, 69, 0.5);
}

.map-button:hover,
.source-button:hover,
.share-button:hover,
.map-button:focus-visible,
.source-button:focus-visible,
.share-button:focus-visible {
  transform: translateY(-2px);
}

.map-button:focus-visible,
.source-button:focus-visible,
.share-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.final-section {
  color: var(--ink);
  background: var(--ivory) url("/assets/hero-arch.webp") center / cover no-repeat;
}

.final-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.56), rgba(255, 250, 241, 0.2) 50%, rgba(255, 250, 241, 0.58)),
    radial-gradient(ellipse at center, rgba(255, 250, 241, 0.48), transparent 68%);
}

.final-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 6.6vw, 52px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 0 2px 18px rgba(255, 250, 241, 0.92);
}

.final-date {
  margin: 27px 0 0;
  color: var(--gold);
  font: 700 12px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.final-times {
  margin-top: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(14px, 3.2vw, 18px);
}

.final-times i {
  color: var(--gold);
  font-size: 8px;
}

.share-button {
  margin-top: 27px;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--sapphire), var(--rose-dark));
  border: 1px solid rgba(228, 204, 149, 0.72);
  box-shadow: 0 15px 34px rgba(61, 45, 38, 0.24);
}

.final-monogram {
  margin: 31px 0 0;
  color: var(--sapphire-dark);
  font-size: clamp(25px, 5.5vw, 40px);
  font-style: italic;
  letter-spacing: 0.1em;
}

.final-monogram i {
  margin-inline: 8px;
  color: var(--gold);
  font-size: 9px;
}

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: 13px 19px;
  color: var(--ivory);
  background: rgba(31, 62, 80, 0.94);
  border: 1px solid rgba(228, 204, 149, 0.6);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(31, 62, 80, 0.28);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  font: 700 11px/1.3 Arial, Helvetica, sans-serif;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes gateCardExit {
  0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  45% { opacity: 0.9; transform: translateY(-5px) scale(1.04); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-34px) scale(0.87); filter: blur(9px); }
}

@keyframes dustFall {
  0% { transform: translate3d(0, -3vh, 0) rotate(0deg); }
  45% { transform: translate3d(var(--dust-drift), 50vh, 0) rotate(140deg); }
  100% { transform: translate3d(calc(var(--dust-drift) * -0.35), 105vh, 0) rotate(320deg); }
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes cueFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@media (max-width: 720px) {
  .gate-panel {
    padding-inline: 15px;
  }

  .gate-panel span {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .hero-events {
    grid-template-columns: 1fr 27px 1fr;
    gap: 7px;
  }

  .hero-event {
    min-height: 270px;
    padding-inline: 10px;
  }

  .hero-event h2 {
    font-size: clamp(32px, 10.5vw, 49px);
  }

  .hero-jewel {
    width: 29px;
    height: 29px;
    font-size: 7px;
  }

  .schedule-grid {
    gap: 12px;
  }

  .schedule-card {
    padding-inline: 13px;
  }
}

@media (max-width: 820px) {
  .venue-grid {
    width: min(520px, 92vw);
    grid-template-columns: 1fr;
  }

  .venue-media {
    height: min(610px, 118vw);
  }
}

@media (max-width: 490px) {
  .opening-gate::before,
  .section-frame {
    inset: 12px;
  }

  .gate-card {
    width: 88vw;
    padding-inline: 20px;
  }

  .gate-card h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .gate-monograms {
    gap: 10px;
  }

  .seal-ring {
    width: 86px;
    height: 86px;
  }

  .hero-section,
  .invitation-section,
  .schedule-section,
  .venues-section,
  .final-section {
    padding-inline: 13px;
  }

  .hero-events {
    width: 96vw;
  }

  .hero-event {
    min-height: 250px;
    padding-block: 26px;
  }

  .hero-event span {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .hero-event h2 {
    font-size: clamp(29px, 9.5vw, 42px);
  }

  .invitation-copy {
    padding-inline: 24px;
  }

  .countdown {
    border-radius: 25px 7px;
  }

  .countdown > div {
    padding-inline: 2px;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
    width: min(430px, 90vw);
  }

  .schedule-card {
    padding: 27px 22px;
  }

  .venue-grid {
    width: min(455px, 92vw);
    grid-template-columns: 1fr;
  }

  .venue-media {
    height: 560px;
  }

  .venue-card {
    padding-inline: 9px;
  }

  .venue-actions {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 14px;
  }

  .map-button,
  .source-button {
    width: 100%;
  }
}

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

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

  .gold-dust {
    display: none;
  }
}

/* Cloudflare Pages static-export behavior */
.gate-complete .opening-gate {
  display: none;
}

.music-control[hidden] {
  display: none;
}

.music-symbol {
  font-size: 20px;
  line-height: 1;
}

.music-control.is-playing .music-symbol {
  animation: musicPulse 1.6s ease-in-out infinite;
}

.schedule-icon > span {
  font-size: 29px;
  line-height: 1;
}

.scroll-cue {
  font-size: 28px;
  line-height: 1;
}
