@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Manrope:wght@400;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap");

:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --ink: #1b1a1a;
  --muted: #6a6662;
  --accent: #d95273;
  --accent-2: #265e58;
  --accent-3: #efba63;
  --on-accent: #ffffff;
  --line: rgba(27, 26, 26, 0.14);
  --hero-overlay: linear-gradient(180deg, rgba(8, 8, 8, 0.08) 24%, rgba(8, 8, 8, 0.84) 100%);
  --gallery-bg: #202126;
  --gallery-ink: #ffffff;
  --display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --sans: "Manrope", "Aptos", "Segoe UI", Arial, sans-serif;
  --content: 1120px;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(15, 15, 15, 0.2);
}

html[data-demo-theme="azul"] {
  --bg: #edf3fb;
  --surface: #ffffff;
  --ink: #10213e;
  --muted: #5c6d86;
  --accent: #285fc8;
  --accent-2: #e98249;
  --accent-3: #f4c96c;
  --on-accent: #ffffff;
  --line: rgba(16, 33, 62, 0.16);
  --hero-overlay: linear-gradient(180deg, rgba(8, 24, 51, 0.04) 20%, rgba(7, 19, 44, 0.88) 100%);
  --gallery-bg: #0e203e;
}

html[data-demo-theme="floral"] {
  --bg: #fff4f7;
  --surface: #fffdfd;
  --ink: #482033;
  --muted: #7b5968;
  --accent: #df4c86;
  --accent-2: #39805f;
  --accent-3: #f0b955;
  --on-accent: #ffffff;
  --line: rgba(72, 32, 51, 0.14);
  --hero-overlay: linear-gradient(180deg, rgba(55, 16, 34, 0.03) 18%, rgba(49, 15, 30, 0.82) 100%);
  --gallery-bg: #3e1d2e;
}

html[data-demo-theme="violeta"] {
  --bg: #f7f2ff;
  --surface: #ffffff;
  --ink: #2d1944;
  --muted: #705f82;
  --accent: #7e52cf;
  --accent-2: #2f7770;
  --accent-3: #d6a031;
  --on-accent: #ffffff;
  --line: rgba(45, 25, 68, 0.15);
  --hero-overlay: linear-gradient(180deg, rgba(31, 15, 51, 0.03) 18%, rgba(31, 15, 51, 0.86) 100%);
  --gallery-bg: #28163d;
}

html[data-demo-theme="rose"] {
  --bg: #fff2ef;
  --surface: #fffdfb;
  --ink: #3a1d27;
  --muted: #745762;
  --accent: #d8586e;
  --accent-2: #2e6d65;
  --accent-3: #dca54a;
  --on-accent: #ffffff;
  --line: rgba(58, 29, 39, 0.15);
  --hero-overlay: linear-gradient(180deg, rgba(47, 18, 28, 0.03) 18%, rgba(47, 18, 28, 0.84) 100%);
  --gallery-bg: #321a22;
}

html[data-demo-theme="noir"] {
  --bg: #101114;
  --surface: #191b20;
  --ink: #f8f5f0;
  --muted: #bbb7b1;
  --accent: #ff4f9a;
  --accent-2: #d7ff48;
  --accent-3: #b7bdc9;
  --on-accent: #101114;
  --line: rgba(255, 255, 255, 0.15);
  --hero-overlay: linear-gradient(180deg, rgba(4, 4, 7, 0.08) 18%, rgba(4, 4, 7, 0.92) 100%);
  --gallery-bg: #090a0c;
}

html[data-demo-theme="wedding"] {
  --bg: #f2f6f2;
  --surface: #ffffff;
  --ink: #17221e;
  --muted: #5f7069;
  --accent: #2b715d;
  --accent-2: #df6570;
  --accent-3: #d0a951;
  --on-accent: #ffffff;
  --line: rgba(23, 34, 30, 0.15);
  --hero-overlay: linear-gradient(180deg, rgba(14, 31, 25, 0.02) 18%, rgba(14, 31, 25, 0.82) 100%);
  --gallery-bg: #172b25;
}

html[data-demo-theme="birthday"] {
  --bg: #f4f6ff;
  --surface: #ffffff;
  --ink: #101630;
  --muted: #5d6580;
  --accent: #1c5cff;
  --accent-2: #f1297b;
  --accent-3: #f2bd3e;
  --on-accent: #ffffff;
  --line: rgba(16, 22, 48, 0.15);
  --hero-overlay: linear-gradient(180deg, rgba(5, 11, 44, 0.03) 18%, rgba(5, 11, 44, 0.87) 100%);
  --gallery-bg: #111834;
  --script: "Playfair Display", "Iowan Old Style", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body.is-locked,
body.lightbox-open {
  height: 100svh;
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

a {
  color: inherit;
}

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

svg {
  flex: 0 0 auto;
}

h1,
h2,
h3,
p,
blockquote,
figcaption {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  margin-bottom: 20px;
  font-size: 3.65rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 12000;
  transform: translateY(-180%);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
}

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

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 34;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.is-locked .fx-canvas {
  z-index: 9050;
}

.entry {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: #111;
  color: #fff;
  isolation: isolate;
  transition: opacity 620ms ease, visibility 620ms ease;
}

.entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--entry-image) center 28% / cover no-repeat;
  transform: scale(1.025);
  animation: entry-breathe 8s ease-in-out infinite alternate;
}

.entry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.04) 18%, rgba(8, 8, 8, 0.9) 100%);
}

.entry.is-dismissed {
  visibility: hidden;
  opacity: 0;
}

.entry-inner {
  width: min(100% - 32px, 720px);
  padding: 0 0 8svh;
  text-align: center;
}

.entry-label,
.section-label,
.demo-chip,
.topbar-badge,
.countdown-intro {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entry-title {
  margin: 10px 0 6px;
  font-family: var(--script);
  font-size: 6.6rem;
  font-weight: 400;
  line-height: 0.9;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

html[data-demo-theme="birthday"] .entry-title {
  font-weight: 600;
}

.entry-date {
  margin: 0 0 23px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  padding: 12px 18px;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg,
.topbar svg,
.icon-button svg,
.music-pill svg,
.timeline-symbol svg,
.gift-icon svg,
.mobile-dock svg,
.lightbox-arrow svg,
.lightbox-close svg,
.deck-expand svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-entry {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(14px);
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1500;
  display: grid;
  min-height: 58px;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 15, 18, 0.68);
  color: #fff;
  padding: 8px 16px;
  backdrop-filter: blur(18px);
}

.topbar-link,
.topbar-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.topbar-link {
  justify-self: start;
}

.topbar-cta {
  justify-self: end;
  border: 1px solid #25d366;
  border-radius: var(--radius);
  background: #25d366;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.24);
  color: #ffffff;
  padding: 7px 11px;
}

.whatsapp-icon {
  display: grid;
  place-items: center;
}

.whatsapp-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}

.topbar-badge {
  color: rgba(255, 255, 255, 0.68);
}

.music-pill {
  position: fixed;
  top: 75px;
  left: 16px;
  z-index: 1600;
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(14, 14, 17, 0.7);
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 7px 13px 7px 10px;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.music-note {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
}

.music-note svg {
  width: 17px;
  height: 17px;
}

.music-waves {
  display: flex;
  height: 18px;
  align-items: center;
  gap: 2px;
}

.music-waves i {
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.45;
}

.music-pill.is-playing .music-waves i {
  animation: sound-wave 680ms ease-in-out infinite alternate;
}

.music-pill.is-playing .music-waves i:nth-child(2) {
  animation-delay: 100ms;
}

.music-pill.is-playing .music-waves i:nth-child(3) {
  animation-delay: 200ms;
}

.music-pill.is-playing .music-waves i:nth-child(4) {
  animation-delay: 300ms;
}

.invite-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: end center;
  overflow: hidden;
  background: #151515 var(--hero-image) center 28% / cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.invite-hero::before,
.invite-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.invite-hero::before {
  background: var(--hero-overlay);
}

.invite-hero::after {
  top: auto;
  height: 34%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 5, 7, 0.09);
  backdrop-filter: blur(1px);
}

.hero-content {
  width: min(100% - 32px, 880px);
  align-self: end;
  margin: 0 auto;
  padding: 145px 0 185px;
  text-align: center;
}

.demo-chip {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  padding: 6px 10px;
  backdrop-filter: blur(12px);
}

.hero-kicker {
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
}

.hero-title {
  margin: 2px 0 9px;
  font-family: var(--script);
  font-size: 8rem;
  font-weight: 400;
  line-height: 0.9;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
}

html[data-demo-theme="birthday"] .hero-title {
  font-size: 6.4rem;
  font-weight: 600;
}

.hero-date {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero-countdown {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 32px), 800px);
  min-height: 126px;
  transform: translateX(-50%);
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(8, 9, 12, 0.35);
  padding: 18px 26px;
  backdrop-filter: blur(18px);
}

.countdown-intro {
  padding-right: 18px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.countdown-line {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: space-between;
}

.countdown-line > div {
  display: grid;
  width: 78px;
  min-width: 0;
  justify-items: center;
}

.countdown-line strong {
  font-family: var(--display);
  font-size: 2.45rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
}

.countdown-line span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown-line i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-3);
}

.section {
  padding: 108px 0;
}

.section-inner {
  width: min(100% - 36px, var(--content));
  margin: 0 auto;
}

.celebration-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.celebration-section > .section-inner {
  position: relative;
  z-index: 1;
}

.section-atmosphere {
  position: absolute;
  inset: -100px -12%;
  z-index: 0;
  background-position: 0% 50%;
  background-size: 160% 160%;
  pointer-events: none;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform, background-position;
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

.atmosphere-story {
  background-image:
    linear-gradient(122deg, color-mix(in srgb, var(--accent) 12%, transparent) 0 18%, transparent 42%),
    linear-gradient(305deg, color-mix(in srgb, var(--accent-3) 15%, transparent) 0 16%, transparent 39%),
    linear-gradient(90deg, transparent 0 58%, color-mix(in srgb, var(--accent-2) 8%, transparent) 78%, transparent 100%);
}

.atmosphere-details {
  background-image:
    linear-gradient(150deg, transparent 0 42%, color-mix(in srgb, var(--accent-3) 9%, transparent) 62%, transparent 82%),
    linear-gradient(35deg, color-mix(in srgb, var(--accent) 7%, transparent) 0 14%, transparent 40%);
}

.atmosphere-dress {
  background-image:
    linear-gradient(118deg, color-mix(in srgb, var(--accent-2) 10%, transparent) 0 20%, transparent 44%),
    linear-gradient(300deg, color-mix(in srgb, var(--accent) 12%, transparent) 0 18%, transparent 47%),
    linear-gradient(18deg, transparent 35%, color-mix(in srgb, var(--accent-3) 9%, transparent) 61%, transparent 78%);
}

.atmosphere-gift {
  opacity: 0.78;
  background-image:
    linear-gradient(112deg, rgba(255, 255, 255, 0.14) 0 15%, transparent 32%),
    linear-gradient(292deg, color-mix(in srgb, var(--accent-3) 22%, transparent) 0 14%, transparent 39%),
    linear-gradient(18deg, transparent 44%, rgba(255, 255, 255, 0.08) 62%, transparent 78%);
}

.section-label {
  margin-bottom: 12px;
  color: var(--accent);
}

.section-heading {
  max-width: 720px;
}

.section-heading > p:last-child,
.story-copy > p,
.gallery-copy > p,
.dress-copy > p,
.lead-copy > p,
.timeline-copy > p {
  color: var(--muted);
}

.story-section {
  background: var(--bg);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
  gap: clamp(54px, 8vw, 104px);
  align-items: center;
}

.story-celebration {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.story-accent {
  max-width: 7ch;
  color: var(--accent);
  font-family: var(--script);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.9;
}

.story-thread {
  position: relative;
  display: block;
  width: min(210px, 74%);
  height: 1px;
  margin-top: 28px;
  background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
}

.story-thread::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--accent-3);
}

.story-copy {
  max-width: 680px;
}

.story-copy h2 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5.3vw, 5rem);
  line-height: 1.02;
}

.story-copy blockquote {
  margin: 34px 0 0;
  color: var(--ink);
  font-family: var(--script);
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  font-style: normal;
  line-height: 1.18;
  padding-left: 0;
}

.details-section {
  background: var(--surface);
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 90px;
  align-items: start;
}

.details-heading {
  position: sticky;
  top: 100px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 28px;
  width: 1px;
  background: var(--line);
}

.timeline-moment {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 24px;
  padding: 0 0 50px;
}

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

.timeline-symbol {
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}

.timeline-copy {
  padding-top: 2px;
}

.timeline-time {
  display: inline-block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-copy h3 {
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 500;
}

.timeline-copy p {
  margin: 4px 0 0;
}

.timeline-place {
  color: var(--ink) !important;
  font-weight: 700;
}

.timeline-route {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 15px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.timeline-route svg {
  width: 17px;
  height: 17px;
}

.timeline-route:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--on-accent);
}

.gallery-section {
  position: relative;
  overflow: hidden;
  background: var(--gallery-bg);
  color: var(--gallery-ink);
}

.gallery-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(360px, 1fr);
  gap: 84px;
  align-items: center;
}

.gallery-copy > p {
  color: rgba(255, 255, 255, 0.68);
}

.gallery-copy .section-label {
  color: var(--accent-3);
}

.deck-controls {
  display: inline-grid;
  grid-template-columns: 44px auto 44px;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.deck-count {
  min-width: 64px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
}

.deck-stage {
  position: relative;
  min-height: 650px;
  touch-action: pan-y;
}

.deck-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76%, 410px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  background: #171719;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  cursor: default;
  padding: 0;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 260ms ease;
}

.deck-card.is-top {
  cursor: zoom-in;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  opacity: 0;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease;
}

.deck-card.is-top:hover .deck-expand,
.deck-card.is-top:focus-visible .deck-expand {
  opacity: 1;
}

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

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  gap: 18px;
  align-items: center;
  background: rgba(7, 8, 11, 0.78);
  opacity: 0;
  padding: 24px;
  backdrop-filter: blur(18px);
  transition: opacity 220ms ease;
}

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

.lightbox-figure {
  display: grid;
  width: 100%;
  height: calc(100svh - 48px);
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 11px;
  margin: 0;
  place-items: center;
  touch-action: pan-y;
}

.lightbox-figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.48));
}

.lightbox-figure figcaption {
  min-width: 68px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
}

.lightbox-arrow,
.lightbox-close {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.lightbox-prev {
  justify-self: end;
}

.dress-section {
  background: var(--bg);
}

.dress-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(500px, 1fr);
  gap: clamp(50px, 8vw, 100px);
  align-items: center;
}

.dress-copy h2 {
  max-width: 12ch;
}

.dress-reserved {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.dress-reserved-label {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.dress-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 18px;
  margin-top: 13px;
}

.dress-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.dress-swatch i {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--swatch-color);
  box-shadow: 0 0 0 1px var(--line);
}

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

.dress-look {
  min-width: 0;
  margin: 0;
}

.dress-image {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 4;
  min-height: 390px;
  place-items: end center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 15%, var(--surface)) 0 24%, transparent 48%),
    linear-gradient(320deg, color-mix(in srgb, var(--accent-3) 16%, var(--surface)) 0 22%, var(--surface) 58%);
}

.dress-image::after {
  content: "";
  position: absolute;
  right: 13%;
  bottom: 7%;
  left: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
}

.dress-image img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 91%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 18px rgba(16, 18, 24, 0.18));
}

.dress-image-woman img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-position: center;
  padding: 34px 8px;
}

.dress-image-man img {
  height: 94%;
}

.dress-look figcaption {
  display: grid;
  gap: 2px;
  padding: 15px 4px 0;
  text-align: center;
}

.dress-look figcaption strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
}

.dress-look figcaption span {
  color: var(--muted);
  font-size: 0.74rem;
}

.gift-section {
  background:
    linear-gradient(128deg, color-mix(in srgb, var(--gallery-bg) 88%, #000) 0 42%, color-mix(in srgb, var(--accent) 68%, #16131a) 100%);
  color: #ffffff;
  padding: 100px 0;
}

.save-note-section {
  position: relative;
  overflow: hidden;
  background: var(--gallery-bg);
  color: #fff;
  text-align: center;
}

.save-note-card {
  position: relative;
  padding: 18px clamp(0px, 5vw, 56px);
}

.save-note-card::before,
.save-note-card::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(32rem, 78%);
  height: 1px;
  background: currentColor;
  opacity: 0.24;
  transform: translateX(-50%);
}

.save-note-card::before {
  top: -22px;
}

.save-note-card::after {
  bottom: -22px;
}

.save-note-card .section-label {
  color: var(--accent-3);
}

.save-note-card h2 {
  max-width: 12ch;
  margin: 0.8rem auto 1rem;
  font-family: var(--script);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
}

.save-note-card > p:not(.section-label) {
  max-width: 38rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
}

.save-note-card > strong {
  display: block;
  margin-top: 28px;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.gift-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 680px);
  gap: clamp(32px, 6vw, 74px);
  align-items: center;
  justify-content: center;
}

.gift-keepsake {
  position: relative;
  display: grid;
  width: 190px;
  height: 170px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.gift-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: var(--accent-3);
}

.gift-icon svg {
  width: 34px;
  height: 34px;
}

.gift-ribbon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
}

.gift-layout .section-label,
.gift-layout p {
  color: inherit;
}

.gift-layout h2 {
  margin-bottom: 12px;
  font-family: var(--script);
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.gift-layout p:last-child {
  margin-bottom: 0;
  opacity: 0.82;
}

.gift-signature {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent-3);
  font-family: var(--display);
  font-size: 0.82rem;
  font-style: italic;
}

.lead-section {
  background: var(--surface);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(380px, 1fr);
  gap: 70px;
  align-items: start;
}

.lead-copy {
  position: sticky;
  top: 102px;
}

.demo-disclaimer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.84rem;
}

.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 27px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: var(--surface);
  padding: 11px 12px;
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.demo-form .button {
  grid-column: 1 / -1;
  width: 100%;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 42px 0 100px;
}

.footer-inner {
  display: flex;
  width: min(100% - 36px, var(--content));
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto;
}

.footer-inner strong {
  font-family: var(--display);
  font-size: 1.2rem;
}

.footer-inner p {
  max-width: 660px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner a {
  align-self: start;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 800;
}

.mobile-dock {
  position: fixed;
  right: 50%;
  bottom: 14px;
  z-index: 1450;
  display: none;
  transform: translate(50%, 18px);
  grid-template-columns: repeat(4, 52px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.8);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  padding: 5px;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.is-dock-visible .mobile-dock {
  transform: translate(50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-dock a {
  display: grid;
  width: 52px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1700;
  display: inline-flex;
  min-height: 54px;
  transform: translateY(18px);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(11, 95, 45, 0.34);
  opacity: 0;
  padding: 10px 17px 10px 13px;
  pointer-events: none;
  font-size: 0.82rem;
  font-weight: 800;
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 180ms ease;
}

body.invitation-open .floating-whatsapp {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(11, 95, 45, 0.42);
}

.floating-whatsapp .whatsapp-icon svg {
  width: 27px;
  height: 27px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 12000;
  max-width: min(92vw, 430px);
  transform: translate(-50%, 16px);
  border-radius: var(--radius);
  background: #111318;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

.hero-countdown.reveal {
  transform: translate(-50%, 20px);
}

.hero-countdown.reveal.is-visible {
  transform: translate(-50%, 0);
}

html[data-demo-theme="noir"] .details-section,
html[data-demo-theme="noir"] .lead-section {
  background: #15171b;
}

html[data-demo-theme="noir"] .timeline-symbol,
html[data-demo-theme="noir"] .field input,
html[data-demo-theme="noir"] .field select,
html[data-demo-theme="noir"] .field textarea {
  background: #191b20;
}

html[data-demo-theme="noir"] .gift-section {
  background: linear-gradient(128deg, #090a0c 0 45%, #281522 100%);
  color: #ffffff;
}

@keyframes sound-wave {
  from { height: 4px; opacity: 0.45; }
  to { height: 16px; opacity: 1; }
}

@keyframes atmosphere-drift {
  from { background-position: 0% 42%; }
  to { background-position: 100% 58%; }
}

@keyframes entry-breathe {
  from { transform: scale(1.025); }
  to { transform: scale(1.075); }
}

@media (min-width: 1000px) {
  .invite-hero {
    background-position: center top;
  }
}

@media (max-width: 960px) {
  h2 {
    font-size: 3.15rem;
  }

  .story-layout,
  .details-layout,
  .gallery-layout,
  .lead-layout {
    gap: 54px;
  }

  .story-layout {
    grid-template-columns: 210px 1fr;
  }

  .details-layout {
    grid-template-columns: minmax(250px, 0.65fr) 1fr;
  }

  .gallery-layout {
    grid-template-columns: minmax(250px, 0.62fr) minmax(330px, 1fr);
  }

  .dress-layout {
    grid-template-columns: minmax(240px, 0.68fr) minmax(420px, 1fr);
    gap: 34px;
  }

  .dress-image {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
    line-height: 1.7;
  }

  .section {
    padding: 82px 0;
  }

  h2 {
    font-size: 2.9rem;
  }

  .topbar {
    min-height: 56px;
    padding: 7px 10px;
  }

  .topbar-link span,
  .topbar-cta-label {
    display: none;
  }

  .topbar-link,
  .topbar-cta {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    padding: 0;
  }

  .music-pill {
    top: 68px;
    left: 10px;
    font-size: 0.76rem;
  }

  .entry-title {
    font-size: 5rem;
  }

  .hero-content {
    padding: 130px 0 190px;
  }

  .hero-title {
    font-size: 5.6rem;
  }

  html[data-demo-theme="birthday"] .hero-title {
    font-size: 4.55rem;
  }

  .hero-countdown {
    min-height: 122px;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 13px 14px 16px;
  }

  .countdown-intro {
    padding-right: 0;
  }

  .countdown-line > div {
    width: 62px;
  }

  .countdown-line strong {
    font-size: 2rem;
  }

  .story-layout,
  .details-layout,
  .gallery-layout,
  .dress-layout,
  .lead-layout {
    grid-template-columns: 1fr;
  }

  .story-layout,
  .details-layout,
  .lead-layout {
    gap: 40px;
  }

  .story-celebration {
    min-height: 220px;
  }

  .story-accent {
    max-width: 10ch;
    font-size: clamp(3.65rem, 13vw, 5rem);
  }

  .details-heading,
  .lead-copy {
    position: static;
  }

  .gallery-layout {
    gap: 24px;
  }

  .deck-stage {
    min-height: 590px;
  }

  .deck-card {
    width: min(78%, 380px);
  }

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

  .lightbox-figure {
    height: calc(100svh - 28px);
  }

  .lightbox-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .dress-showcase {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .dress-image {
    min-height: 380px;
  }

  .gift-layout {
    grid-template-columns: 150px 1fr;
    gap: 28px;
  }

  .gift-keepsake {
    width: 145px;
    height: 145px;
  }

  .gift-layout h2 {
    font-size: 3.6rem;
  }

  .section-label {
    font-size: 0.78rem;
  }

  .timeline-time {
    font-size: 0.82rem;
  }

  .timeline-route {
    font-size: 0.84rem;
  }

  .dress-reserved-label,
  .dress-swatch {
    font-size: 0.84rem;
  }

  .field label,
  .form-note {
    font-size: 0.84rem;
  }

  .mobile-dock {
    display: grid;
  }

  body.invitation-open .floating-whatsapp {
    right: 12px;
    bottom: 82px;
    min-height: 52px;
    transform: translateY(18px);
    opacity: 0;
    font-size: 0.78rem;
    padding: 9px 14px 9px 11px;
    pointer-events: none;
  }

  body.invitation-open.is-dock-visible .floating-whatsapp {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .footer {
    padding-bottom: 104px;
  }
}

@media (max-width: 520px) {
  .section-inner,
  .footer-inner {
    width: calc(100% - 24px);
  }

  .section {
    padding: 72px 0;
  }

  h2 {
    font-size: 2.65rem;
  }

  .topbar-badge {
    max-width: 150px;
    font-size: 0.62rem;
    text-align: center;
  }

  .music-pill {
    min-height: 40px;
    padding: 6px 11px 6px 8px;
  }

  .entry-inner {
    width: calc(100% - 24px);
    padding-bottom: 7svh;
  }

  .entry-title {
    font-size: 4.45rem;
  }

  .entry-date {
    font-size: 0.88rem;
  }

  .invite-hero {
    background-position: center 24%;
  }

  .hero-content {
    width: calc(100% - 24px);
    padding-bottom: 184px;
  }

  .demo-chip {
    font-size: 0.7rem;
  }

  .hero-kicker {
    margin-top: 20px;
  }

  .hero-title {
    font-size: 4.8rem;
  }

  html[data-demo-theme="birthday"] .hero-title {
    font-size: 3.65rem;
  }

  .hero-date {
    font-size: 0.88rem;
  }

  .hero-countdown {
    bottom: 15px;
    width: calc(100% - 24px);
  }

  .countdown-line {
    grid-template-columns: repeat(7, minmax(0, auto));
  }

  .countdown-line > div {
    width: 55px;
  }

  .countdown-line strong {
    font-size: 1.72rem;
  }

  .countdown-line span {
    font-size: 0.62rem;
  }

  .gallery-section::before {
    display: none;
  }

  .story-copy blockquote {
    font-size: 1.7rem;
  }

  .timeline-moment {
    grid-template-columns: 50px 1fr;
    gap: 17px;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-symbol {
    width: 50px;
    height: 50px;
  }

  .timeline-copy h3 {
    font-size: 1.58rem;
  }

  .deck-stage {
    min-height: 510px;
  }

  .deck-card {
    width: min(78%, 320px);
    border-width: 6px;
  }

  .deck-expand {
    opacity: 1;
  }

  .dress-showcase {
    gap: 10px;
  }

  .dress-image {
    min-height: 300px;
  }

  .dress-look figcaption strong {
    font-size: 1.24rem;
  }

  .dress-look figcaption span {
    font-size: 0.76rem;
  }

  .gift-section {
    padding: 66px 0;
  }

  .gift-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gift-keepsake {
    width: 150px;
    height: 130px;
    justify-self: center;
  }

  .demo-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .field-full,
  .form-note,
  .demo-form .button {
    grid-column: auto;
  }

  .footer-inner {
    display: grid;
  }

  .mobile-dock {
    grid-template-columns: repeat(4, 48px);
  }

  .mobile-dock a {
    width: 48px;
  }
}

@media (max-width: 365px) {
  .entry-title {
    font-size: 3.8rem;
  }

  .hero-title {
    font-size: 4.05rem;
  }

  html[data-demo-theme="birthday"] .hero-title {
    font-size: 3.15rem;
  }

  .countdown-line > div {
    width: 48px;
  }

  .countdown-line strong {
    font-size: 1.5rem;
  }

  .deck-stage {
    min-height: 470px;
  }
}

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

  .fx-canvas {
    display: none;
  }
}
