:root {
  color-scheme: dark;
  --mobile-width: 430px;
  --black: #000000;
  --ink: #070405;
  --wine: #8b0000;
  --red: #c1121f;
  --red-soft: rgba(193, 18, 31, 0.72);
  --metal: #c8b47e;
  --metal-soft: rgba(200, 180, 126, 0.62);
  --smoke: #d9d5cb;
  --muted: #b9afb0;
  --glass: rgba(10, 6, 8, 0.66);
  --glass-strong: rgba(10, 4, 7, 0.82);
  --border: rgba(200, 180, 126, 0.24);
  --border-red: rgba(193, 18, 31, 0.38);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  --title: "Cormorant Garamond", Georgia, serif;
  --body: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: var(--mobile-width);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  background: var(--black);
  color: #f5f0ea;
  font-family: var(--body);
  letter-spacing: 0;
  overflow-x: hidden;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.9), 0 0 70px rgba(139, 0, 0, 0.22);
}

body.is-menu-open {
  overflow: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

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

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

button {
  font: inherit;
}

.page-texture,
.smoke-layer,
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-texture {
  z-index: -3;
  opacity: 0.34;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.028) 0,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px,
      transparent 9px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(139, 0, 0, 0.075) 0,
      rgba(139, 0, 0, 0.075) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(135deg, #000 0%, #090406 46%, #130508 100%);
}

.smoke-layer {
  z-index: -2;
  opacity: 0.22;
  filter: blur(26px);
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.13) 22%, transparent 46%),
    linear-gradient(64deg, transparent 18%, rgba(139, 0, 0, 0.2) 42%, transparent 68%),
    linear-gradient(172deg, transparent 10%, rgba(255, 255, 255, 0.1) 48%, transparent 82%);
  animation: smokeDrift 22s ease-in-out infinite alternate;
}

.particles {
  z-index: 3;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(193, 18, 31, 0.88);
  box-shadow: 0 0 14px rgba(193, 18, 31, 0.76), 0 0 28px rgba(139, 0, 0, 0.44);
  opacity: 0;
  animation: particleFloat var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.topbar.is-scrolled,
.topbar.is-open {
  border-bottom: 1px solid rgba(200, 180, 126, 0.16);
  background: rgba(3, 0, 1, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  width: auto;
  max-width: calc(100vw - 92px);
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--metal);
  font-family: var(--title);
  font-size: clamp(1.18rem, 5vw, 1.72rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 26px rgba(193, 18, 31, 0.2);
}

.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  cursor: pointer;
}

.main-nav {
  position: fixed;
  inset: 78px 16px auto;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 1, 3, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.main-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.main-nav a {
  padding: 13px 14px;
  border-radius: 8px;
  color: #efe8df;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(193, 18, 31, 0.14);
  color: #fff;
  outline: none;
}

.language-switch {
  position: absolute;
  top: auto;
  bottom: 92px;
  right: 14px;
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.lang-option {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d8d0c8;
  cursor: pointer;
}

.lang-option.is-active {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.92), rgba(193, 18, 31, 0.72));
  color: #fff;
  box-shadow: 0 0 20px rgba(193, 18, 31, 0.38);
}

.music-toggle {
  position: absolute;
  top: auto;
  bottom: 36px;
  right: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  max-width: calc(100vw - 28px);
  padding: 0 16px;
  border: 1px solid var(--border-red);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  box-shadow: 0 0 24px rgba(193, 18, 31, 0.3);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.music-toggle:hover,
.music-toggle:focus-visible,
.music-toggle.is-playing {
  border-color: rgba(193, 18, 31, 0.76);
  box-shadow: 0 0 30px rgba(193, 18, 31, 0.48);
  transform: translateY(-2px);
  outline: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: block;
  padding: 0;
  background: #000;
  overflow: visible;
  isolation: isolate;
}

.hero-sequence {
  position: relative;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100svh;
}

.hero-video {
  z-index: 0;
  display: block;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: #000;
  filter: none;
}

.hero-shade {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.24) 0%,
    rgba(0, 0, 0, 0) 28%,
    rgba(0, 0, 0, 0) 76%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-sequence::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(200, 180, 126, 0.1);
  box-shadow: inset 0 0 86px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.hero-loader {
  position: absolute;
  left: clamp(18px, 5vw, 58px);
  right: clamp(18px, 5vw, 58px);
  bottom: 14px;
  z-index: 4;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.hero-loader span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--metal));
  box-shadow: 0 0 18px rgba(193, 18, 31, 0.72);
  transition: width 0.24s ease, opacity 0.24s ease;
}

.hero-loader.is-done {
  opacity: 0;
}

.hero-title-panel {
  position: relative;
  padding: clamp(62px, 10vw, 110px) 0 clamp(78px, 12vw, 140px);
  background:
    linear-gradient(180deg, #000 0%, rgba(12, 0, 4, 0.98) 42%, #000 100%),
    linear-gradient(90deg, rgba(139, 0, 0, 0.2), transparent, rgba(139, 0, 0, 0.2));
  overflow: hidden;
}

.hero-title-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 10px
    );
  opacity: 0.32;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 44px) 0 0;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--metal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  color: #fff7f0;
  font-family: var(--title);
  font-size: clamp(3rem, 13vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(139, 0, 0, 0.6),
    0 0 10px rgba(200, 180, 126, 0.3);
}

.hero-date,
.event-date-line {
  margin: 16px auto 0;
  color: #e4d7ca;
  font-size: clamp(0.98rem, 2.6vw, 1.28rem);
  font-weight: 600;
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  max-width: 100%;
  padding: 0 19px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: transform 0.6s ease;
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(110%);
}

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

.button-primary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--wine), var(--red));
  color: #fff;
  box-shadow: 0 0 26px rgba(193, 18, 31, 0.48), 0 18px 44px rgba(0, 0, 0, 0.44);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 0 36px rgba(193, 18, 31, 0.72), 0 22px 48px rgba(0, 0, 0, 0.52);
}

.button-ghost {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.42);
  color: #f4ede7;
  backdrop-filter: blur(14px);
}

.hero-down-link {
  position: absolute;
  bottom: 36px;
  left: 50%;
  z-index: 7;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(200, 180, 126, 0.42);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  color: #fff7ef;
  box-shadow: 0 0 28px rgba(193, 18, 31, 0.42), 0 14px 34px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  animation: downPulse 1.8s ease-in-out infinite;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.hero-down-link:hover,
.hero-down-link:focus-visible {
  transform: translateX(-50%) translateY(-3px);
  border-color: rgba(193, 18, 31, 0.78);
  box-shadow: 0 0 36px rgba(193, 18, 31, 0.62), 0 18px 42px rgba(0, 0, 0, 0.58);
  outline: none;
}

.section {
  position: relative;
  padding: clamp(76px, 12vw, 140px) 0;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(139, 0, 0, 0.09), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-inner.narrow {
  width: min(820px, calc(100% - 32px));
  text-align: center;
}

.split-layout {
  display: grid;
  gap: 34px;
  align-items: center;
}

.copy-block h2,
.section-heading h2,
.thanks-section h2 {
  margin: 0;
  color: #fff8ef;
  font-family: var(--title);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
}

.copy-block p,
.thanks-section p,
.location-section p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.parents-container {
  margin: 28px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--border-red);
  background: rgba(193, 18, 31, 0.03);
  border-radius: 0 8px 8px 0;
  box-shadow: inset 8px 0 16px rgba(193, 18, 31, 0.01);
}

.parents-names {
  margin: 0 0 6px;
  color: var(--metal);
  font-family: var(--title);
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.parents-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.godparents-container {
  margin: 20px 0 28px;
  padding: 16px 20px;
  border-left: 2px solid var(--metal);
  background: rgba(200, 180, 126, 0.03);
  border-radius: 0 8px 8px 0;
  box-shadow: inset 8px 0 16px rgba(200, 180, 126, 0.01);
}

.godparents-label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.godparents-names {
  margin: 0 0 4px;
  color: #fff7f0;
  font-family: var(--title);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.godparents-names:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.portrait-panel {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(139, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-panel::before,
.portrait-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(200, 180, 126, 0.18);
  border-radius: 8px;
}

.portrait-panel::after {
  inset: 34px;
  border-color: rgba(193, 18, 31, 0.22);
}

.monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 247, 237, 0.12);
  font-family: var(--title);
  font-size: clamp(7rem, 24vw, 16rem);
  font-weight: 700;
  text-shadow: 0 0 42px rgba(193, 18, 31, 0.3);
}

.rose-stem {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 2;
  width: 3px;
  height: 270px;
  transform: translateX(-50%) rotate(-7deg);
  background: linear-gradient(180deg, rgba(95, 111, 75, 0.72), rgba(32, 51, 35, 0.45));
  box-shadow: 0 0 18px rgba(193, 18, 31, 0.24);
}

.rose-head {
  position: absolute;
  left: 50%;
  top: -34px;
  width: 78px;
  height: 78px;
  transform: translateX(-50%);
  border-radius: 50% 50% 44% 44%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 32%),
    repeating-conic-gradient(from 20deg, #220006 0 12deg, #8b0000 12deg 28deg, #2f0007 28deg 44deg);
  box-shadow: 0 0 36px rgba(139, 0, 0, 0.72), inset 0 0 24px rgba(0, 0, 0, 0.72);
}

.rose-leaf {
  position: absolute;
  width: 58px;
  height: 24px;
  border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg, rgba(75, 96, 63, 0.82), rgba(12, 30, 20, 0.62));
}

.rose-leaf-left {
  left: -56px;
  top: 118px;
  transform: rotate(-28deg);
}

.rose-leaf-right {
  right: -54px;
  top: 172px;
  transform: rotate(202deg);
}

.quote-section {
  background: rgba(5, 0, 2, 0.78);
}

.quote-mark {
  color: var(--red);
  font-size: 2rem;
  text-shadow: 0 0 24px rgba(193, 18, 31, 0.76);
}

blockquote {
  margin: 18px 0 0;
  color: #fbefe4;
  font-family: var(--title);
  font-size: clamp(2rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
}

.signature {
  margin: 24px 0 0;
  color: var(--metal);
  font-family: var(--title);
  font-size: 2rem;
}

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

.countdown-item {
  display: grid;
  min-height: 126px;
  place-items: center;
  padding: 18px 8px;
  border: 1px solid var(--border-red);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 2, 5, 0.82), rgba(0, 0, 0, 0.64));
  box-shadow: 0 0 28px rgba(193, 18, 31, 0.2);
}

.countdown-number {
  color: #fff;
  font-family: var(--title);
  font-size: clamp(2.75rem, 12vw, 6rem);
  font-weight: 700;
  line-height: 0.88;
  text-shadow: 0 0 26px rgba(193, 18, 31, 0.58);
}

.countdown-label {
  color: var(--metal);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-date-line,
.countdown-status {
  text-align: center;
}

.countdown-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--metal);
  font-weight: 700;
}

.location-layout {
  align-items: stretch;
}

.address-line {
  color: #fff;
  font-weight: 700;
}

.map-frame {
  min-height: 370px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 370px;
  border: 0;
  filter: grayscale(1) invert(0.88) contrast(1.08) saturate(0.6);
}

.dress-grid,
.gallery-grid {
  display: grid;
  gap: 14px;
}

.dress-item {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.dress-item i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(200, 180, 126, 0.24);
  border-radius: 8px;
  color: var(--red);
  text-shadow: 0 0 18px rgba(193, 18, 31, 0.72);
}

.dress-item h3,
.timeline-item h3 {
  margin: 0 0 10px;
  color: #fff7ef;
  font-family: var(--title);
  font-size: 1.75rem;
  line-height: 1;
}

.dress-item p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.horse-panel {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(139, 0, 0, 0.25), rgba(0, 0, 0, 0.62));
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.horse-panel::before,
.horse-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(200, 180, 126, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.horse-panel::after {
  inset: 34px;
  border-color: rgba(193, 18, 31, 0.22);
}

.horse-silhouette {
  color: rgba(255, 247, 237, 0.08);
  font-size: 9rem;
  filter: drop-shadow(0 0 40px rgba(193, 18, 31, 0.4));
  animation: horsePulse 3s ease-in-out infinite alternate;
}

.show-badge {
  position: absolute;
  bottom: 48px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--metal);
  font-family: var(--title);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(193, 18, 31, 0.28);
}

@keyframes horsePulse {
  0% {
    transform: scale(0.96);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.04);
    opacity: 0.95;
    color: rgba(200, 180, 126, 0.12);
  }
}

.karaoke-panel {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(139, 0, 0, 0.25), rgba(0, 0, 0, 0.62));
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.karaoke-panel::before,
.karaoke-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(200, 180, 126, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.karaoke-panel::after {
  inset: 34px;
  border-color: rgba(193, 18, 31, 0.22);
}

.microphone-silhouette {
  color: rgba(255, 247, 237, 0.08);
  font-size: 9rem;
  filter: drop-shadow(0 0 40px rgba(193, 18, 31, 0.4));
  animation: micPulse 3s ease-in-out infinite alternate;
}

.karaoke-badge {
  position: absolute;
  bottom: 48px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--metal);
  font-family: var(--title);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(193, 18, 31, 0.28);
}

@keyframes micPulse {
  0% {
    transform: scale(0.95) rotate(-6deg);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.05) rotate(6deg);
    opacity: 0.95;
    color: rgba(200, 180, 126, 0.12);
  }
}

.gallery-grid {
  grid-template-columns: 1fr;
}

.gallery-card {
  position: relative;
  min-height: 300px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72)),
    linear-gradient(140deg, rgba(139, 0, 0, 0.84), rgba(7, 0, 2, 0.92) 58%, rgba(200, 180, 126, 0.22));
  background-position: center;
  background-size: cover;
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(200, 180, 126, 0.18);
  border-radius: 8px;
  transform: scale(0.98);
  opacity: 0.86;
  transition: transform 0.32s ease, border-color 0.32s ease;
}

.gallery-card::after {
  content: attr(data-monogram);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--title);
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 700;
}

.gallery-card span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: block;
  color: #fff9ef;
  font-family: var(--title);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

.gallery-card:hover::before,
.gallery-card:focus-visible::before {
  transform: scale(1);
  border-color: rgba(193, 18, 31, 0.62);
}

.gallery-card:hover,
.gallery-card:focus-visible {
  outline: none;
  box-shadow: 0 0 38px rgba(193, 18, 31, 0.34), var(--shadow);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(193, 18, 31, 0.74), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 4, 7, 0.72);
  backdrop-filter: blur(16px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 34px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--metal);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(193, 18, 31, 0.72);
}

.timeline-item time {
  align-self: start;
  padding-left: 22px;
  color: var(--metal);
  font-family: var(--title);
  font-size: 1.35rem;
  font-weight: 700;
}

.rsvp-button {
  margin-top: 14px;
}

.candle-stage {
  position: relative;
  min-height: 350px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.46)),
    linear-gradient(140deg, rgba(139, 0, 0, 0.14), rgba(0, 0, 0, 0.78));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.candle-stage::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 70px;
  height: 1px;
  background: rgba(200, 180, 126, 0.24);
  z-index: 1;
}

.candle-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(255, 140, 60, 0.09) 0%, rgba(193, 18, 31, 0.04) 45%, transparent 80%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  animation: stageGlow 4.5s ease-in-out infinite alternate;
}

.candle {
  position: absolute;
  bottom: 70px;
  width: 52px;
  height: 150px;
  border: 1px solid rgba(200, 180, 126, 0.22);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg, #2a0508, #100102 45%, #52090d);
  box-shadow: inset 10px 0 20px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.42);
  z-index: 2;
}

.candle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  border-radius: 8px 8px 0 0;
  background: radial-gradient(ellipse at top, rgba(255, 176, 69, 0.55) 0%, rgba(193, 18, 31, 0.16) 75%, transparent 100%);
  filter: blur(1.5px);
  pointer-events: none;
  animation: waxGlow 2s ease-in-out infinite alternate;
}

.candle-one {
  left: 26%;
  height: 178px;
}

.candle-two {
  left: 50%;
  height: 226px;
  transform: translateX(-50%);
}

.candle-three {
  right: 26%;
  height: 138px;
}

.wick {
  position: absolute;
  left: 50%;
  top: -12px;
  width: 2px;
  height: 16px;
  transform: translateX(-50%);
  background: #1b0b07;
}

.flame {
  position: absolute;
  left: 50%;
  top: -48px;
  width: 26px;
  height: 44px;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #ffffff 0%, #fff7c8 25%, #ffb045 55%, #c1121f 85%, #0d1b3e 100%);
  transform-origin: 50% 92%;
}

.candle-one .flame {
  animation: flameFlickerOne 1.8s ease-in-out infinite;
}

.candle-two .flame {
  animation: flameFlickerTwo 2.2s ease-in-out infinite;
}

.candle-three .flame {
  animation: flameFlickerThree 1.5s ease-in-out infinite;
}

.thanks-section {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(139, 0, 0, 0.16));
}

.thanks-section p {
  margin-left: auto;
  margin-right: auto;
}

.final-mark {
  margin-top: 30px;
  color: var(--metal);
  font-family: var(--title);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  cursor: pointer;
}

.lightbox-art {
  width: min(760px, 92vw);
  height: min(72vh, 780px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.7)),
    linear-gradient(140deg, rgba(139, 0, 0, 0.9), rgba(0, 0, 0, 0.86));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.lightbox p {
  margin: 18px 0 0;
  color: #fff6ec;
  font-family: var(--title);
  font-size: 2rem;
  text-align: center;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 65;
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: var(--red);
  border-color: rgba(200, 180, 126, 0.62);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 15px rgba(193, 18, 31, 0.52);
  outline: none;
}

@media (max-width: 680px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (min-width: 680px) {
  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (min-width: 920px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 10px 12px;
    font-size: 0.74rem;
  }

  .split-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
    gap: clamp(36px, 7vw, 82px);
  }

  .location-layout {
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  }

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

  .language-switch {
    top: auto;
    bottom: 92px;
    right: 22px;
  }

  .music-toggle {
    top: auto;
    bottom: 36px;
    right: 22px;
  }
}

@media (max-width: 430px) {
  .hero-actions .button {
    width: 100%;
  }

  .countdown-item {
    min-height: 112px;
  }

  .timeline-item {
    grid-template-columns: 68px 1fr;
    gap: 12px;
    padding: 18px;
  }

  .timeline-item time {
    font-size: 1.14rem;
  }

  .dress-item {
    padding: 22px;
  }
}

.topbar {
  left: 50%;
  right: auto;
  width: min(100vw, var(--mobile-width));
  transform: translateX(-50%);
}

.menu-toggle {
  display: grid;
}

.main-nav {
  position: fixed;
  top: 78px;
  left: 50%;
  right: auto;
  width: min(calc(100vw - 32px), calc(var(--mobile-width) - 32px));
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 1, 3, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -12px);
  pointer-events: none;
}

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

.main-nav a {
  padding: 13px 14px;
  font-size: 0.86rem;
}

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

.gallery-grid,
.dress-grid,
.split-layout,
.location-layout {
  grid-template-columns: 1fr;
  gap: 34px;
}

.gallery-grid {
  grid-template-columns: 1fr;
}

.hero-actions .button {
  width: 100%;
}

.countdown-item {
  min-height: 112px;
}

.timeline-item {
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding: 18px;
}

.timeline-item time {
  font-size: 1.14rem;
}

.dress-item {
  padding: 22px;
}

.language-switch {
  right: 14px;
}

.music-toggle {
  right: 14px;
}

@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;
  }

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

@keyframes smokeDrift {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
  100% {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 110vh, 0) scale(0.7);
  }
  12% {
    opacity: 0.68;
  }
  88% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -12vh, 0) scale(1.1);
  }
}

@keyframes downPulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes flameFlickerOne {
  0% {
    transform: translateX(-50%) rotate(-3.5deg) scaleY(0.95) scaleX(1.05);
    box-shadow: 0 0 16px rgba(255, 247, 200, 0.76), 0 -4px 22px rgba(255, 176, 69, 0.82), 0 -10px 38px rgba(193, 18, 31, 0.62);
  }
  15% {
    transform: translateX(-50%) rotate(-1deg) scaleY(1.06) scaleX(0.94);
    box-shadow: 0 0 20px rgba(255, 247, 200, 0.84), 0 -6px 26px rgba(255, 176, 69, 0.94), 0 -12px 42px rgba(193, 18, 31, 0.72);
  }
  30% {
    transform: translateX(-50%) rotate(-4.2deg) scaleY(0.91) scaleX(1.09);
    box-shadow: 0 0 14px rgba(255, 247, 200, 0.72), 0 -3px 19px rgba(255, 176, 69, 0.78), 0 -9px 35px rgba(193, 18, 31, 0.58);
  }
  45% {
    transform: translateX(-50%) rotate(-2deg) scaleY(1.03) scaleX(0.97);
    box-shadow: 0 0 22px rgba(255, 247, 200, 0.88), 0 -7px 28px rgba(255, 176, 69, 0.96), 0 -13px 45px rgba(193, 18, 31, 0.76);
  }
  60% {
    transform: translateX(-50%) rotate(-3.8deg) scaleY(0.96) scaleX(1.04);
    box-shadow: 0 0 17px rgba(255, 247, 200, 0.78), 0 -5px 23px rgba(255, 176, 69, 0.84), 0 -11px 39px rgba(193, 18, 31, 0.65);
  }
  75% {
    transform: translateX(-50%) rotate(-0.5deg) scaleY(1.09) scaleX(0.91);
    box-shadow: 0 0 24px rgba(255, 247, 200, 0.92), 0 -8px 32px rgba(255, 176, 69, 0.98), 0 -15px 48px rgba(193, 18, 31, 0.82);
  }
  90% {
    transform: translateX(-50%) rotate(-3deg) scaleY(0.93) scaleX(1.07);
    box-shadow: 0 0 15px rgba(255, 247, 200, 0.74), 0 -4px 21px rgba(255, 176, 69, 0.8), 0 -10px 36px rgba(193, 18, 31, 0.6);
  }
  100% {
    transform: translateX(-50%) rotate(-3.5deg) scaleY(0.95) scaleX(1.05);
    box-shadow: 0 0 16px rgba(255, 247, 200, 0.76), 0 -4px 22px rgba(255, 176, 69, 0.82), 0 -10px 38px rgba(193, 18, 31, 0.62);
  }
}

@keyframes flameFlickerTwo {
  0% {
    transform: translateX(-50%) rotate(-1deg) scaleY(1) scaleX(1);
    box-shadow: 0 0 18px rgba(255, 247, 200, 0.8), 0 -5px 24px rgba(255, 176, 69, 0.86), 0 -11px 40px rgba(193, 18, 31, 0.68);
  }
  15% {
    transform: translateX(-50%) rotate(1.2deg) scaleY(1.06) scaleX(0.94);
    box-shadow: 0 0 22px rgba(255, 247, 200, 0.88), 0 -7px 28px rgba(255, 176, 69, 0.92), 0 -13px 44px rgba(193, 18, 31, 0.74);
  }
  30% {
    transform: translateX(-50%) rotate(-1.5deg) scaleY(0.92) scaleX(1.08);
    box-shadow: 0 0 15px rgba(255, 247, 200, 0.74), 0 -4px 20px rgba(255, 176, 69, 0.8), 0 -9px 36px rgba(193, 18, 31, 0.6);
  }
  45% {
    transform: translateX(-50%) rotate(0.8deg) scaleY(1.03) scaleX(0.97);
    box-shadow: 0 0 20px rgba(255, 247, 200, 0.84), 0 -6px 26px rgba(255, 176, 69, 0.89), 0 -12px 41px rgba(193, 18, 31, 0.7);
  }
  60% {
    transform: translateX(-50%) rotate(-1.2deg) scaleY(0.97) scaleX(1.03);
    box-shadow: 0 0 16px rgba(255, 247, 200, 0.78), 0 -5px 23px rgba(255, 176, 69, 0.83), 0 -10px 38px rgba(193, 18, 31, 0.64);
  }
  75% {
    transform: translateX(-50%) rotate(1.6deg) scaleY(1.07) scaleX(0.93);
    box-shadow: 0 0 25px rgba(255, 247, 200, 0.94), 0 -8px 32px rgba(255, 176, 69, 0.96), 0 -15px 47px rgba(193, 18, 31, 0.8);
  }
  90% {
    transform: translateX(-50%) rotate(-0.6deg) scaleY(0.95) scaleX(1.05);
    box-shadow: 0 0 17px rgba(255, 247, 200, 0.76), 0 -4px 21px rgba(255, 176, 69, 0.82), 0 -10px 37px rgba(193, 18, 31, 0.62);
  }
  100% {
    transform: translateX(-50%) rotate(-1deg) scaleY(1) scaleX(1);
    box-shadow: 0 0 18px rgba(255, 247, 200, 0.8), 0 -5px 24px rgba(255, 176, 69, 0.86), 0 -11px 40px rgba(193, 18, 31, 0.68);
  }
}

@keyframes flameFlickerThree {
  0% {
    transform: translateX(-50%) rotate(1deg) scaleY(0.96) scaleX(1.04);
    box-shadow: 0 0 15px rgba(255, 247, 200, 0.74), 0 -4px 20px rgba(255, 176, 69, 0.8), 0 -10px 36px rgba(193, 18, 31, 0.6);
  }
  15% {
    transform: translateX(-50%) rotate(3.2deg) scaleY(1.04) scaleX(0.96);
    box-shadow: 0 0 19px rgba(255, 247, 200, 0.82), 0 -6px 25px rgba(255, 176, 69, 0.88), 0 -12px 41px rgba(193, 18, 31, 0.7);
  }
  30% {
    transform: translateX(-50%) rotate(0.5deg) scaleY(0.91) scaleX(1.07);
    box-shadow: 0 0 13px rgba(255, 247, 200, 0.7), 0 -3px 18px rgba(255, 176, 69, 0.76), 0 -9px 34px rgba(193, 18, 31, 0.56);
  }
  45% {
    transform: translateX(-50%) rotate(2.8deg) scaleY(1.02) scaleX(0.98);
    box-shadow: 0 0 21px rgba(255, 247, 200, 0.86), 0 -7px 27px rgba(255, 176, 69, 0.92), 0 -13px 44px rgba(193, 18, 31, 0.74);
  }
  60% {
    transform: translateX(-50%) rotate(0.8deg) scaleY(0.95) scaleX(1.05);
    box-shadow: 0 0 16px rgba(255, 247, 200, 0.76), 0 -5px 22px rgba(255, 176, 69, 0.82), 0 -11px 38px rgba(193, 18, 31, 0.62);
  }
  75% {
    transform: translateX(-50%) rotate(3.6deg) scaleY(1.09) scaleX(0.91);
    box-shadow: 0 0 24px rgba(255, 247, 200, 0.92), 0 -8px 31px rgba(255, 176, 69, 0.97), 0 -15px 47px rgba(193, 18, 31, 0.8);
  }
  90% {
    transform: translateX(-50%) rotate(1.5deg) scaleY(0.93) scaleX(1.06);
    box-shadow: 0 0 14px rgba(255, 247, 200, 0.72), 0 -4px 19px rgba(255, 176, 69, 0.78), 0 -10px 35px rgba(193, 18, 31, 0.58);
  }
  100% {
    transform: translateX(-50%) rotate(1deg) scaleY(0.96) scaleX(1.04);
    box-shadow: 0 0 15px rgba(255, 247, 200, 0.74), 0 -4px 20px rgba(255, 176, 69, 0.8), 0 -10px 36px rgba(193, 18, 31, 0.6);
  }
}

@keyframes stageGlow {
  0% {
    opacity: 0.65;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
}

@keyframes waxGlow {
  0% {
    opacity: 0.55;
    filter: blur(1.5px) brightness(0.9);
  }
  50% {
    opacity: 0.9;
    filter: blur(1.2px) brightness(1.1);
  }
  100% {
    opacity: 0.7;
    filter: blur(1.4px) brightness(1);
  }
}
