:root {
  --ivory: #f7efe3;
  --paper: #fffaf1;
  --ink: #201b16;
  --muted: #75685c;
  --emerald: #102f29;
  --leaf: #416954;
  --gold: #c9a15a;
  --champagne: #f4d597;
  --blush: #c88982;
  --plum: #4b2b3b;
  --line: rgba(36, 33, 29, 0.14);
  --shadow: 0 28px 80px rgba(16, 47, 41, 0.18);
  --deep-shadow: 0 36px 110px rgba(9, 22, 19, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(200, 137, 130, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(65, 105, 84, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--ivory), #f2e5d7 52%, var(--paper));
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 161, 90, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 161, 90, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 28%, black, transparent 70%);
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #071512;
  transition: opacity 0.9s ease, visibility 0.9s ease, transform 1s ease;
}

.cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.cover-media,
.hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  animation: imageBreath 18s ease-in-out infinite alternate;
}

.cover-media::after,
.hero-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 12, 10, 0.1), rgba(6, 12, 10, 0.82)),
    radial-gradient(circle at 50% 36%, rgba(255, 250, 242, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(16, 47, 41, 0.52), transparent 34%, rgba(75, 43, 59, 0.32));
}

.sparkle-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.86;
}

.cover-content,
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  text-align: center;
  color: var(--paper);
  filter: drop-shadow(0 20px 54px rgba(0, 0, 0, 0.38));
}

.cover-content::before,
.hero-content::before {
  content: "";
  position: absolute;
  inset: -44px -28px;
  z-index: -1;
  border: 1px solid rgba(244, 213, 151, 0.24);
  border-radius: 50%;
  transform: rotate(-2deg);
  opacity: 0.78;
}

.monogram-seal,
.footer-monogram {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  border: 1px solid rgba(244, 213, 151, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 213, 151, 0.22), rgba(255, 250, 242, 0.04)),
    rgba(16, 47, 41, 0.22);
  color: var(--champagne);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  box-shadow:
    inset 0 0 0 8px rgba(255, 250, 242, 0.05),
    0 20px 58px rgba(0, 0, 0, 0.28);
}

.cover h1,
.hero h2 {
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 14vw, 9.5rem);
  font-weight: 400;
  line-height: 0.86;
  text-wrap: balance;
  background: linear-gradient(100deg, #fff8e8, var(--champagne) 45%, #ffffff 68%, #d5ad66);
  -webkit-background-clip: text;
  color: transparent;
}

.guest-line {
  margin: 0 auto 28px;
  max-width: 480px;
  color: rgba(255, 250, 242, 0.88);
  font-size: 1.05rem;
}

.site-shell.is-locked {
  height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 32px);
  background: rgba(255, 250, 241, 0.88);
  border-bottom: 1px solid rgba(36, 33, 29, 0.06);
  box-shadow: 0 18px 60px rgba(16, 47, 41, 0.08);
  backdrop-filter: blur(22px) saturate(1.2);
}

.topbar > a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 6px;
  font-size: 0.92rem;
  margin-left: auto;
  min-width: 0;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover {
  background: rgba(16, 47, 41, 0.08);
  color: var(--emerald);
}

.music-float,
.low-data-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 38px;
  border: 1px solid rgba(201, 161, 90, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--emerald);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(16, 47, 41, 0.1);
}

.music-float.is-playing,
.low-data-toggle.is-active {
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  color: #17120c;
}

body.invitation-opened {
  padding-bottom: 96px;
}

.guest-concierge {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(960px, calc(100% - 32px));
  padding: 14px 16px 14px 18px;
  border: 1px solid rgba(201, 161, 90, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(247, 239, 227, 0.88)),
    var(--paper);
  box-shadow: 0 24px 70px rgba(16, 47, 41, 0.18);
  backdrop-filter: blur(22px) saturate(1.18);
  transform: translate(-50%, 130%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.invitation-opened .guest-concierge {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.guest-concierge-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.guest-concierge-copy span,
.guest-concierge-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.guest-concierge-copy strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-concierge-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.concierge-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(16, 47, 41, 0.12);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--emerald);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.concierge-action:hover {
  border-color: rgba(201, 161, 90, 0.5);
  background: rgba(244, 213, 151, 0.28);
}

.guest-toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 20;
  max-width: min(420px, calc(100% - 32px));
  border: 1px solid rgba(201, 161, 90, 0.36);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(16, 47, 41, 0.94);
  color: var(--paper);
  box-shadow: 0 20px 58px rgba(9, 22, 19, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

body.low-data-mode .sparkle-field,
body.low-data-mode .ambient,
body.low-data-mode .memory-montage {
  display: none;
}

body.low-data-mode .cover-media,
body.low-data-mode .hero-media {
  animation: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: -82px;
}

.hero-content p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: rgba(255, 250, 242, 0.88);
  font-size: clamp(1rem, 2.6vw, 1.22rem);
  line-height: 1.7;
  text-wrap: balance;
}

.invited-card {
  width: min(480px, 100%);
  margin: 0 auto 22px;
  padding: 14px 18px;
  border: 1px solid rgba(244, 213, 151, 0.34);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.invited-card span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.invited-card strong {
  display: block;
  color: var(--champagne);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
}

.invited-card em {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(244, 213, 151, 0.32);
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-action {
  background: linear-gradient(135deg, #f4d597, var(--gold) 48%, #8e6830);
  color: #17120c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.ghost-action {
  background: rgba(255, 250, 242, 0.1);
  border-color: rgba(255, 250, 242, 0.4);
  color: inherit;
}

.primary-action:hover,
.ghost-action:hover {
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 2;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  margin: 10px auto 0;
  background: linear-gradient(var(--champagne), transparent);
  animation: cueDrop 1.6s ease-in-out infinite;
}

.band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent),
    var(--paper);
}

section {
  padding: clamp(64px, 10vw, 116px) clamp(18px, 6vw, 76px);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading::after {
  content: "";
  display: block;
  width: 86px;
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.countdown h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.couple-grid,
.event-grid,
.gift-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.couple-card,
.event-card,
.gift-card,
.guide-card,
.rsvp-form,
.wish-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 242, 0.58)),
    rgba(255, 250, 242, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.couple-card {
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.couple-card::before,
.event-card::before,
.gift-card::before,
.guide-card::before,
.rsvp-form::before,
.wish-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(244, 213, 151, 0.28), transparent 32%, rgba(16, 47, 41, 0.1));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.couple-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 22px;
  filter: saturate(0.92) contrast(1.04);
}

.couple-card h3,
.event-card h3,
.gift-card h3,
.wish-panel h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 400;
}

.couple-card p,
.event-card p,
.gift-card p,
.guide-card p,
.timeline p,
.wish-item p {
  color: var(--muted);
  line-height: 1.7;
}

.countdown {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(244, 213, 151, 0.2), transparent 22rem),
    linear-gradient(135deg, #0a1d19, var(--emerald) 54%, var(--plum));
  color: var(--paper);
}

.countdown::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(244, 213, 151, 0.2);
  pointer-events: none;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown-grid div {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.countdown-grid strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.countdown-grid span {
  color: rgba(255, 250, 242, 0.72);
}

.event-card,
.gift-card,
.guide-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.event-card .ghost-action,
.gift-card .ghost-action {
  margin-top: 12px;
  border-color: var(--line);
  color: var(--emerald);
}

.calendar-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: -18px auto 32px;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.map-showcase {
  width: min(1080px, 100%);
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  overflow: hidden;
  border: 1px solid rgba(201, 161, 90, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 47, 41, 0.94), rgba(75, 43, 59, 0.78)),
    var(--emerald);
  box-shadow: var(--deep-shadow);
}

.map-copy {
  padding: clamp(24px, 5vw, 42px);
  color: var(--paper);
}

.map-copy h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
}

.map-copy p {
  color: rgba(255, 250, 242, 0.72);
  line-height: 1.7;
}

.map-showcase iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  filter: saturate(0.9) contrast(1.05);
}

.map-placeholder {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 380px;
  padding: clamp(24px, 5vw, 42px);
  background: rgba(255, 250, 242, 0.08);
  color: var(--paper);
}

.map-placeholder h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
}

.map-placeholder p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.72);
  line-height: 1.7;
}

.guest-guide {
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 213, 151, 0.16), transparent 24rem),
    linear-gradient(135deg, #f5e8dc, var(--paper));
}

.guide-card {
  min-height: 158px;
}

.smart-itinerary {
  background:
    radial-gradient(circle at 14% 8%, rgba(201, 161, 90, 0.16), transparent 24rem),
    linear-gradient(135deg, var(--paper), #f3e4d5);
}

.itinerary-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.itinerary-profile,
.itinerary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.76);
  box-shadow: var(--shadow);
}

.itinerary-profile {
  align-self: start;
  position: sticky;
  top: 104px;
  padding: 28px;
  overflow: hidden;
}

.itinerary-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(16, 47, 41, 0.12), transparent 46%, rgba(201, 161, 90, 0.16));
  pointer-events: none;
}

.itinerary-profile h3 {
  position: relative;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
}

.itinerary-profile span {
  position: relative;
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(201, 161, 90, 0.34);
  border-radius: 999px;
  color: var(--emerald);
  font-weight: 800;
}

.itinerary-profile p:not(.eyebrow) {
  position: relative;
  color: var(--muted);
  line-height: 1.7;
}

.itinerary-list {
  display: grid;
  gap: 14px;
}

.itinerary-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
}

.itinerary-item > span {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--emerald), var(--plum));
  color: var(--champagne);
  font-weight: 900;
  text-align: center;
}

.itinerary-item h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 400;
}

.itinerary-item p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story {
  background:
    radial-gradient(circle at 76% 12%, rgba(244, 213, 151, 0.18), transparent 24rem),
    linear-gradient(135deg, #081511, var(--emerald) 48%, var(--plum));
  color: var(--paper);
  overflow: hidden;
}

.story .section-heading p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.72);
}

.timeline {
  display: grid;
  gap: clamp(28px, 6vw, 64px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  min-height: 460px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(244, 213, 151, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.12), rgba(255, 250, 242, 0.04)),
    rgba(7, 17, 14, 0.18);
  box-shadow: var(--deep-shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 14, 0.62), rgba(7, 17, 14, 0.12)),
    var(--story-image);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  transform: scale(1.08);
  pointer-events: none;
}

.timeline-item span {
  display: block;
  margin: 0 0 10px;
  color: var(--champagne);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.85;
  font-weight: 400;
}

.timeline-item:nth-child(even) .cinematic-media {
  order: 2;
}

.cinematic-media,
.cinematic-copy {
  position: relative;
  z-index: 1;
}

.cinematic-media {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(244, 213, 151, 0.26);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.cinematic-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
  transform: scale(1.04);
  transition: transform 1s ease, filter 1s ease;
}

.timeline-item.is-visible .cinematic-media img {
  transform: scale(1);
  filter: saturate(1.04) contrast(1.04);
}

.cinematic-copy {
  padding: clamp(10px, 2vw, 26px);
}

.cinematic-copy .eyebrow {
  color: var(--gold);
}

.cinematic-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 250, 242, 0.76);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.8;
}

.timeline-item:nth-child(even) {
  grid-template-columns: minmax(280px, 1.08fr) minmax(260px, 0.92fr);
}

.timeline-item:nth-child(even) .cinematic-copy {
  order: 1;
}

.timeline-item:nth-child(even) .cinematic-media {
  order: 2;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  bottom: -40px;
  width: 1px;
  background: linear-gradient(transparent, rgba(244, 213, 151, 0.32), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.timeline-item h3 {
  margin: 0 0 14px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

.gallery-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.82fr 1.08fr;
  grid-auto-rows: 230px;
  gap: 14px;
  perspective: 1000px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--deep-shadow);
  transition: transform 0.45s ease, filter 0.45s ease;
  cursor: zoom-in;
}

.gallery-grid img:nth-child(2) {
  grid-row: span 2;
}

.gallery-grid img:nth-child(5) {
  grid-column: span 2;
}

.gallery-grid img:hover {
  transform: translateY(-6px) rotateX(1.5deg);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-grid img:first-child {
  grid-row: span 2;
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.gallery-load {
  border-color: var(--line);
  color: var(--emerald);
}

.rsvp-layout {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.rsvp-form,
.wish-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(201, 161, 90, 0.8);
  box-shadow: 0 0 0 4px rgba(201, 161, 90, 0.14);
}

textarea {
  resize: vertical;
}

.wish-list {
  display: grid;
  gap: 14px;
  max-height: 460px;
  overflow: auto;
  padding-right: 8px;
}

.wish-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 241, 231, 0.58);
}

.wish-item span {
  display: block;
  margin-top: 4px;
  color: var(--leaf);
  font-size: 0.9rem;
}

.footer {
  padding: 72px 18px 42px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(244, 213, 151, 0.18), transparent 24rem),
    linear-gradient(135deg, #081511, var(--emerald));
  color: var(--paper);
}

.footer-monogram {
  width: 92px;
  height: 92px;
}

.footer a {
  color: var(--gold);
  font-weight: 800;
}

.qris-image {
  width: min(190px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 16px 0 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: rgba(7, 17, 14, 0.86);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(20px);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1060px, 100%);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--deep-shadow);
}

.lightbox-frame {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.lightbox-frame figcaption {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: min(760px, 100%);
  color: rgba(255, 250, 242, 0.76);
  font-weight: 800;
  text-align: center;
}

.lightbox-frame figcaption strong {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.08;
}

.lightbox-frame figcaption span {
  color: rgba(255, 250, 242, 0.58);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 242, 0.3);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.1);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lightbox-nav {
  min-width: 108px;
  min-height: 48px;
  border: 1px solid rgba(255, 250, 242, 0.3);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.1);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.story-progress {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.story-progress i {
  display: block;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.24);
}

.story-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--champagne), var(--gold));
}

.story-progress i.is-done span {
  width: 100%;
}

.lightbox.is-story-playing .story-progress i.is-active span {
  animation: storyProgress 3.6s linear forwards;
}

.story-toggle {
  position: absolute;
  top: 66px;
  right: 18px;
  z-index: 2;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 242, 0.3);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.1);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.memory-montage {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #071512;
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.memory-montage.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.montage-track,
.montage-vignette {
  position: absolute;
  inset: 0;
}

.montage-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.08) translateX(var(--x)) rotate(var(--r));
  animation: montageFlash var(--duration, 2600ms) ease-in-out both;
  animation-delay: var(--delay);
}

.montage-frame.is-flash {
  animation-name: montageBlink;
  animation-timing-function: steps(1, end);
}

.montage-frame.is-hold {
  animation-name: montageHold;
}

.montage-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.montage-vignette {
  background:
    linear-gradient(180deg, rgba(6, 12, 10, 0.1), rgba(6, 12, 10, 0.82)),
    radial-gradient(circle at center, transparent 24%, rgba(7, 17, 14, 0.56) 74%);
}

.montage-copy {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 32px));
  text-align: center;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.44));
}

.montage-copy h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  text-wrap: balance;
}

.montage-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
}

.montage-skip {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.1);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.guest-builder {
  width: min(1080px, calc(100% - 32px));
  margin: 28px auto 0;
}

.builder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.builder-header h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
}

.builder-header p:not(.eyebrow),
.builder-status {
  color: var(--muted);
}

.builder-controls {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin-top: 22px;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.guest-table-wrap {
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.guest-table th,
.guest-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.guest-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
}

.guest-table td:has(.primary-action),
.guest-table td:has(.ghost-action) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(16, 47, 41, 0.08), rgba(201, 161, 90, 0.16)),
    var(--paper);
}

.qa-hero h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
}

.qa-actions,
.qa-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.qa-actions {
  justify-content: flex-end;
}

.qa-checklist {
  display: grid;
  gap: 12px;
}

.qa-item {
  border: 1px solid rgba(32, 27, 22, 0.12);
  border-left-width: 6px;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.72);
}

.qa-item h3 {
  margin: 6px 0;
  font-size: 1.1rem;
}

.qa-item p {
  margin: 0;
  color: var(--muted);
}

.qa-item small {
  display: block;
  margin-top: 8px;
  color: var(--text);
}

.qa-pass {
  border-left-color: #2f7d55;
}

.qa-warn {
  border-left-color: #c7922c;
}

.qa-fail {
  border-left-color: #b74343;
}

.qa-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(16, 47, 41, 0.08);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.qa-pass .qa-badge {
  background: rgba(47, 125, 85, 0.12);
  color: #1d5f3f;
}

.qa-warn .qa-badge {
  background: rgba(199, 146, 44, 0.14);
  color: #815814;
}

.qa-fail .qa-badge {
  background: rgba(183, 67, 67, 0.12);
  color: #8d2525;
}

.qa-link {
  display: grid;
  gap: 4px;
  flex: 1 1 280px;
  min-width: 0;
  border: 1px solid rgba(32, 27, 22, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.48);
  color: inherit;
  text-decoration: none;
}

.qa-link span {
  color: var(--muted);
  font-size: 0.82rem;
}

.qa-link strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.theme-preset-card {
  display: grid;
  gap: 10px;
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-preset-card:hover,
.theme-preset-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(201, 161, 90, 0.78);
  box-shadow: 0 16px 32px rgba(16, 47, 41, 0.12);
}

.theme-preset-card.is-active {
  background: rgba(255, 250, 241, 0.86);
}

.theme-preset-card strong {
  font-size: 1rem;
}

.theme-preset-card small {
  color: var(--muted);
  line-height: 1.45;
}

.theme-preset-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.theme-preset-swatches i {
  display: block;
  min-height: 28px;
  border: 1px solid rgba(32, 27, 22, 0.12);
  border-radius: 6px;
}

.palette-recommendations {
  display: grid;
  gap: 10px;
  margin: 10px 0 22px;
}

.palette-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.palette-card span {
  display: flex;
  gap: 6px;
}

.palette-card i {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.editor-hint {
  color: var(--muted);
  line-height: 1.6;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 17, 14, 0.72);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(18px);
}

.qr-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.qr-card {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--deep-shadow);
  text-align: center;
}

.qr-card h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.qr-card canvas {
  margin: 0 auto 16px;
}

.checkin-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.editor-auth-screen {
  display: none;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 213, 151, 0.2), transparent 24rem),
    linear-gradient(135deg, #071512, var(--emerald) 58%, var(--plum));
}

.editor-auth-card {
  width: min(460px, 100%);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid rgba(244, 213, 151, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.94);
  box-shadow: var(--deep-shadow);
}

.editor-auth-card h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.editor-auth-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.auth-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--plum);
  font-weight: 800;
}

body.editor-locked {
  min-height: 100vh;
  overflow: auto;
}

body.editor-locked .editor-auth-screen {
  display: grid;
}

body.editor-locked .editor-shell,
body.editor-locked .qr-modal {
  display: none;
}

body.staff-locked {
  min-height: 100vh;
  overflow: auto;
}

body.staff-locked .editor-auth-screen {
  display: grid;
}

body.staff-locked .admin-shell,
body.staff-locked .checkin-shell {
  display: none;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.editor-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 400;
}

.admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.editor-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  min-width: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.stat-card,
.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 400;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.master-controls {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1.1fr) minmax(200px, 0.7fr);
  gap: 14px;
  margin: 18px 0;
}

.dashboard-status {
  margin: -8px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
}

.category-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card strong {
  display: inline-block;
  margin-right: 6px;
  font-size: 1.7rem;
}

.category-card span {
  display: inline-block;
  margin-right: 16px;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  min-width: 112px;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(117, 104, 92, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge.is-good {
  border-color: rgba(65, 105, 84, 0.34);
  background: rgba(65, 105, 84, 0.12);
  color: var(--emerald);
}

.status-badge.is-bad {
  border-color: rgba(200, 137, 130, 0.38);
  background: rgba(200, 137, 130, 0.14);
  color: var(--plum);
}

.status-badge.is-waiting {
  border-color: rgba(201, 161, 90, 0.36);
  background: rgba(244, 213, 151, 0.18);
  color: #7a5722;
}

.checkin-panel {
  margin: 28px 0;
}

.checkin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
}

.checkin-result h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
}

.checkin-result mark {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(201, 137, 130, 0.18);
  color: var(--plum);
  font-weight: 800;
}

.checkin-alert {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.76);
}

.checkin-alert strong {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.checkin-alert span,
.last-checkin {
  color: var(--muted);
  line-height: 1.6;
}

.checkin-alert.is-success {
  border-color: rgba(65, 105, 84, 0.34);
  background: rgba(65, 105, 84, 0.12);
  color: var(--emerald);
}

.checkin-alert.is-duplicate {
  border-color: rgba(200, 137, 130, 0.38);
  background: rgba(200, 137, 130, 0.14);
  color: var(--plum);
}

.scanner-video {
  display: block;
  width: min(520px, 100%);
  max-height: 360px;
  margin-top: 18px;
  border-radius: 8px;
  background: #071512;
}

.signature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.44fr);
  gap: 34px;
  align-items: center;
  background:
    radial-gradient(circle at 82% 38%, rgba(244, 213, 151, 0.18), transparent 22rem),
    linear-gradient(135deg, var(--paper), #f1dfcf);
}

.signature-copy {
  width: min(780px, 100%);
}

.signature-copy h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

.signature-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.signature-copy .personal-note {
  max-width: 620px;
  margin: 0 0 16px;
  color: var(--emerald);
  font-size: 1.08rem;
  line-height: 1.8;
}

.personal-note strong {
  color: var(--plum);
}

.category-note,
.quota-note {
  color: var(--leaf);
  line-height: 1.7;
}

.quota-note {
  margin: -4px 0 16px;
  font-size: 0.92rem;
  font-weight: 800;
}

.signature-date {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid rgba(201, 161, 90, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(16, 47, 41, 0.92), rgba(75, 43, 59, 0.84)),
    var(--emerald);
  color: var(--champagne);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  box-shadow: var(--deep-shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

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

@keyframes imageBreath {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.11);
  }
}

@keyframes cueDrop {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.45;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes montageFlash {
  0% {
    opacity: 0;
    transform: scale(1.12) translateX(var(--x)) rotate(var(--r));
  }

  9%,
  34% {
    opacity: 1;
  }

  48% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: scale(1.02) translateX(0) rotate(0deg);
  }
}

@keyframes montageBlink {
  0%,
  100% {
    opacity: 0;
  }

  12%,
  88% {
    opacity: 1;
    transform: scale(1.08) translateX(var(--x)) rotate(var(--r));
  }
}

@keyframes montageHold {
  0% {
    opacity: 0;
    transform: scale(1.1) translateX(var(--x)) rotate(var(--r));
  }

  12%,
  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.02) translateX(0) rotate(0deg);
  }
}

@keyframes storyProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 0;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .topbar > a {
    order: 1;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-left: 0;
    scrollbar-width: thin;
  }

  .music-float,
  .low-data-toggle {
    order: 2;
    min-width: 62px;
    min-height: 36px;
    font-size: 0.84rem;
  }

  .couple-grid,
  .event-grid,
  .gift-grid,
  .guide-grid,
  .itinerary-shell,
  .countdown,
  .rsvp-layout,
  .signature-panel,
  .map-showcase {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: -72px;
  }

  .cover-content::before,
  .hero-content::before {
    inset: -26px -8px;
  }

  .monogram-seal {
    width: 68px;
    height: 68px;
  }

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

  .timeline-item,
  .timeline-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
  }

  .timeline-item::after {
    display: none;
  }

  .timeline-item:nth-child(even) .cinematic-copy,
  .timeline-item:nth-child(even) .cinematic-media {
    order: initial;
  }

  .cinematic-media,
  .cinematic-media img {
    min-height: 280px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-grid img:first-child,
  .gallery-grid img:nth-child(2),
  .gallery-grid img:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .signature-date {
    min-height: 190px;
  }

  .map-showcase iframe {
    min-height: 300px;
  }

  .itinerary-profile {
    position: relative;
    top: auto;
  }

  .itinerary-item {
    grid-template-columns: 1fr;
  }

  .builder-header,
  .builder-controls,
  .color-grid,
  .theme-preset-grid,
  .master-controls {
    display: block;
  }

  .editor-header,
  .dashboard-section-head {
    display: block;
  }

  .admin-links {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .dashboard-grid,
  .checkin-stats,
  .category-summary {
    grid-template-columns: 1fr;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 74px 14px 18px;
  }

  .lightbox-nav {
    min-width: auto;
  }

  .story-toggle {
    top: auto;
    right: 14px;
    bottom: 14px;
  }

  .lightbox-prev {
    order: 2;
  }

  .lightbox-frame {
    order: 1;
  }

  .lightbox-next {
    order: 3;
  }

  .montage-skip {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cover h1,
  .hero h2 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .hero-actions,
  .calendar-actions,
  .event-actions,
  .builder-actions,
  .dashboard-actions,
  .qa-actions,
  .admin-links {
    align-items: stretch;
  }

  .guest-concierge {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 14px;
  }

  .guest-concierge-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .concierge-action {
    min-width: 0;
    padding: 0 10px;
  }

  .guest-toast {
    bottom: 154px;
    border-radius: 12px;
    text-align: center;
  }

  .hero-actions .primary-action,
  .hero-actions .ghost-action,
  .calendar-actions .primary-action,
  .calendar-actions .ghost-action,
  .event-actions .ghost-action,
  .builder-actions .primary-action,
  .builder-actions .ghost-action,
  .dashboard-actions .primary-action,
  .dashboard-actions .ghost-action,
  .qa-actions .primary-action,
  .qa-actions .ghost-action {
    width: 100%;
  }

  .editor-panel,
  .event-card,
  .gift-card,
  .guide-card,
  .rsvp-form,
  .wish-panel,
  .itinerary-profile,
  .itinerary-item {
    padding: 18px;
  }

  .qa-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-table {
    min-width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
