:root {
  --ink: #1a2744;
  --muted: #5c6b86;
  --line: rgba(26, 39, 68, 0.12);
  --bg: #fff9f2;
  --surface: #ffffff;
  --red: #e53935;
  --red-deep: #c62828;
  --blue: #1e88e5;
  --blue-deep: #0d47a1;
  --yellow: #ffc107;
  --green: #43a047;
  --purple: #7e57c2;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(26, 39, 68, 0.12);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.bm {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

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

/* ——— Living background ——— */
.bm-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 8%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 193, 7, 0.4), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 5%, rgba(30, 136, 229, 0.26), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(229, 57, 53, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(126, 87, 194, 0.14), transparent 50%),
    linear-gradient(180deg, #fffefb 0%, #fff4e4 38%, #eef6ff 100%);
}

.bm-blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  filter: blur(1px);
  opacity: 0.62;
  animation: bm-morph 14s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(26, 39, 68, 0.08);
}

.bm-blob--1 {
  width: 200px;
  height: 150px;
  top: 10%;
  left: 3%;
  background: linear-gradient(135deg, #ffc107, #ff9800);
}

.bm-blob--2 {
  width: 160px;
  height: 120px;
  top: 14%;
  right: 4%;
  background: linear-gradient(135deg, #42a5f5, #7e57c2);
  animation-delay: -3s;
}

.bm-blob--3 {
  width: 130px;
  height: 100px;
  bottom: 22%;
  left: 6%;
  background: linear-gradient(135deg, #ef5350, #ec407a);
  animation-delay: -6s;
}

.bm-blob--4 {
  width: 170px;
  height: 130px;
  bottom: 10%;
  right: 8%;
  background: linear-gradient(135deg, #66bb6a, #26c6da);
  animation-delay: -9s;
}

.bm-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px rgba(255, 193, 7, 0.7);
  animation: bm-twinkle 3.2s ease-in-out infinite;
}

.bm-spark--1 {
  top: 22%;
  left: 18%;
  background: #ffc107;
}

.bm-spark--2 {
  top: 28%;
  right: 20%;
  animation-delay: -1.1s;
  box-shadow: 0 0 12px 4px rgba(66, 165, 245, 0.7);
  background: #42a5f5;
}

.bm-spark--3 {
  bottom: 30%;
  left: 48%;
  animation-delay: -2s;
  box-shadow: 0 0 12px 4px rgba(239, 83, 80, 0.7);
  background: #ef5350;
}

@keyframes bm-twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

.bm-shine {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg at 50% 30%, transparent 0deg, rgba(255, 255, 255, 0.4) 40deg, transparent 80deg);
  animation: bm-spin 28s linear infinite;
  opacity: 0.45;
}

@keyframes bm-morph {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  }
  33% {
    transform: translate(18px, -22px) rotate(8deg) scale(1.08);
    border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
  }
  66% {
    transform: translate(-12px, 14px) rotate(-6deg) scale(0.95);
    border-radius: 50% 50% 45% 55% / 40% 60% 50% 50%;
  }
}

@keyframes bm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ——— Nav ——— */
.bm-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0 0;
  padding-top: max(1.15rem, env(safe-area-inset-top, 0px));
}

.bm-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s, opacity 0.2s;
  min-width: 0;
  flex: 1 1 auto;
}

.bm-nav__back:hover {
  color: var(--ink);
  opacity: 0.92;
}

.bm-nav__back-arrow {
  flex: 0 0 auto;
  line-height: 1;
}

.bm-nav__meg {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(18, 8, 42, 0.16);
}

.bm-nav__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.bm-nav__capsules {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.bm-nav__partner {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 5;
  display: block;
  width: min(185px, 38vw);
  max-width: 42vw;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.bm-nav__login {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(26, 39, 68, 0.12);
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(26, 39, 68, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.bm-nav__login:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 136, 229, 0.4);
  box-shadow: 0 12px 28px rgba(30, 136, 229, 0.14);
}

.bm-nav__pill {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--red), #ff7043);
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(229, 57, 53, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.bm-nav__pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(229, 57, 53, 0.45);
}

/* ——— Hero (natural flow, no locked viewport) ——— */
.bm-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
}

.bm-hero__inner {
  width: min(880px, 100%);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  padding-inline: 0.15rem;
  animation: bm-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bm-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bm-logo {
  display: block;
  width: min(480px, 88%);
  height: auto;
  margin: 0 auto 0.85rem;
  filter:
    drop-shadow(0 8px 12px rgba(26, 39, 68, 0.12))
    drop-shadow(0 28px 48px rgba(229, 57, 53, 0.18))
    drop-shadow(0 40px 70px rgba(30, 136, 229, 0.14));
  animation: bm-logo-in 1s cubic-bezier(0.22, 1, 0.36, 1) both, bm-float 5.5s ease-in-out 1.1s infinite;
}

@keyframes bm-logo-in {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(36px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bm-hero__chip {
  margin: 0 0 0.75rem;
  padding: 0.45rem 1.05rem;
  max-width: min(100%, 34rem);
  border-radius: 999px;
  font-size: clamp(0.68rem, 2.6vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 136, 229, 0.2);
  box-shadow: 0 8px 22px rgba(30, 136, 229, 0.1);
  backdrop-filter: blur(10px);
  line-height: 1.35;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bm-hero__cursive {
  margin: 0.35rem 0 0.75rem;
  padding: 0.55em 0.35em 0.6em;
  width: 100%;
  max-width: 100%;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.05rem, 7vw, 4.35rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
  background: linear-gradient(
    105deg,
    #e53935 0%,
    #ff6f3c 22%,
    #ec407a 48%,
    #7e57c2 72%,
    #1e88e5 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  filter: drop-shadow(0 10px 22px rgba(229, 57, 53, 0.22));
  animation: bm-cursive-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both, bm-shimmer 7s linear 1s infinite;
}

@keyframes bm-cursive-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bm-hero__title {
  margin: 0;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.bm-hero__title em {
  font-style: normal;
  background: linear-gradient(105deg, var(--red) 0%, #ff7043 35%, var(--blue) 70%, var(--purple) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bm-shimmer 5s linear infinite;
}

@keyframes bm-shimmer {
  to {
    background-position: 200% center;
  }
}

.bm-hero__lead {
  margin: 1.1rem auto 0;
  max-width: 42ch;
  width: 100%;
  padding-inline: 0.25rem;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 500;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.bm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.bm-hero__cta .bm-btn {
  flex: 1 1 auto;
  min-width: min(100%, 11.5rem);
  max-width: 100%;
}

/* Marquee */
.bm-marquee {
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
  overflow: hidden;
  border-block: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.35), rgba(30, 136, 229, 0.35), transparent) 1;
  background: linear-gradient(90deg, rgba(255, 248, 225, 0.7), rgba(255, 255, 255, 0.75), rgba(232, 244, 255, 0.7));
  backdrop-filter: blur(10px);
}

.bm-marquee__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0.95rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-deep);
  animation: bm-marquee 28s linear infinite;
}

.bm-marquee__track span:nth-child(odd) {
  background: linear-gradient(90deg, var(--red), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes bm-marquee {
  to {
    transform: translateX(-50%);
  }
}

.bm-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.bm-btn--primary {
  color: #fff;
  background: linear-gradient(120deg, #c62828, #e53935 40%, #ff7043);
  box-shadow: 0 14px 36px rgba(229, 57, 53, 0.38);
}

.bm-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.bm-btn--primary:hover::after {
  transform: translateX(120%);
}

.bm-btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 44px rgba(229, 57, 53, 0.48);
}

.bm-btn--primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.bm-btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(26, 39, 68, 0.06);
}

.bm-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 39, 68, 0.28);
}

.bm-btn--wide {
  min-width: min(200px, 100%);
}

/* Details */
.bm-details {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.bm-detail {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1.25rem 1.15rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(26, 39, 68, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: bm-rise 0.7s ease both;
}

.bm-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.bm-detail--s1::before {
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.bm-detail--s2::before {
  background: linear-gradient(90deg, var(--yellow), #ff7043);
}

.bm-detail--where::before {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.bm-detail:nth-child(2) {
  animation-delay: 0.08s;
}
.bm-detail:nth-child(3) {
  animation-delay: 0.16s;
}
.bm-detail:nth-child(4) {
  animation-delay: 0.24s;
}

.bm-detail:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(26, 39, 68, 0.14);
}

.bm-detail span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.bm-detail--s1 span {
  color: var(--blue-deep);
}
.bm-detail--s2 span {
  color: #ef6c00;
}
.bm-detail--where span {
  color: var(--green);
}

.bm-detail strong {
  font-family: var(--display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* RSVP section */
.bm-rsvp {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 2.75rem auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1.35rem;
  align-items: stretch;
}

.bm-rsvp__side {
  position: relative;
  overflow: hidden;
  padding: 2.15rem 1.7rem;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 193, 7, 0.45), transparent 42%),
    radial-gradient(circle at 92% 78%, rgba(66, 165, 245, 0.42), transparent 44%),
    radial-gradient(circle at 50% 110%, rgba(236, 64, 122, 0.28), transparent 40%),
    linear-gradient(155deg, #0d47a1 0%, #1565c0 38%, #c62828 100%);
  box-shadow: 0 32px 70px rgba(13, 71, 161, 0.3);
  animation: bm-rise 0.7s ease both;
}

.bm-rsvp__side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.bm-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.bm-rsvp__side h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.bm-rsvp__side h2 span {
  color: #ffeb3b;
}

.bm-rsvp__copy {
  margin: 1rem 0 0;
  line-height: 1.55;
  opacity: 0.92;
  font-weight: 500;
}

.bm-venue {
  display: block;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.92;
}

.bm-venue strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.bm-side-art {
  position: absolute;
  right: -20px;
  bottom: -20px;
  display: flex;
  gap: 10px;
  opacity: 0.35;
}

.bm-side-art span {
  width: 54px;
  height: 70px;
  border-radius: 50% 50% 45% 55%;
  background: #ffc107;
  animation: bm-morph 10s ease-in-out infinite;
}

.bm-side-art span:nth-child(2) {
  background: #66bb6a;
  animation-delay: -2s;
  height: 58px;
}

.bm-side-art span:nth-child(3) {
  background: #ef5350;
  animation-delay: -4s;
  height: 64px;
}

/* Form */
.bm-form {
  position: relative;
  overflow: hidden;
  padding: 1.9rem 1.65rem 1.7rem;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 248, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 28px 64px rgba(26, 39, 68, 0.12),
    0 0 0 1px rgba(229, 57, 53, 0.04);
  backdrop-filter: blur(20px) saturate(150%);
  animation: bm-rise 0.75s ease both;
}

.bm-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #c62828, #ff7043, #ec407a, #7e57c2, #1e88e5);
}

.bm-form__head {
  margin: 0 0 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
}

.bm-form__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #c62828, #1e88e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bm-form__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.bm-form__lead {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
  max-width: 36ch;
}

.bm-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
  margin-bottom: 0.95rem;
}

.bm-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.bm-field label,
.bm-label,
.bm-slots legend {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #243355;
}

.bm-field label span,
.bm-field label em,
.bm-slots legend em {
  text-transform: none;
  letter-spacing: 0;
  font-style: normal;
}

.bm-field label em,
.bm-slots legend em {
  color: var(--red);
}

.bm-field label span {
  color: var(--muted);
  font-weight: 600;
}

.bm-field input,
.bm-field textarea,
.bm-select__trigger {
  width: 100%;
  border: 1.5px solid rgba(26, 39, 68, 0.12);
  border-radius: 16px;
  padding: 0.88rem 1.05rem;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  color: #1a2744;
  background: linear-gradient(180deg, #fff, #fffaf6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 16px rgba(26, 39, 68, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bm-field input::placeholder,
.bm-field textarea::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.bm-field input:hover,
.bm-field textarea:hover,
.bm-select__trigger:hover {
  border-color: rgba(30, 136, 229, 0.35);
}

.bm-field input:focus,
.bm-field textarea:focus,
.bm-select.is-open .bm-select__trigger,
.bm-select__trigger:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.18), 0 10px 24px rgba(30, 136, 229, 0.1);
  transform: translateY(-1px);
}

.bm-field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

/* Custom select — matches SaaS dropdown UI */
.bm-select {
  position: relative;
}

.bm-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.bm-select__value.is-placeholder {
  color: #64748b;
}

.bm-select__chevron {
  flex-shrink: 0;
  color: #334155;
  transition: transform 0.18s ease;
}

.bm-select.is-open .bm-select__chevron {
  transform: rotate(180deg);
}

.bm-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(26, 39, 68, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  max-height: 260px;
  overflow: auto;
  backdrop-filter: blur(12px);
}

.bm-select__menu[hidden] {
  display: none;
}

.bm-select__menu li {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.bm-select__menu li:hover,
.bm-select__menu li.is-active {
  background: linear-gradient(120deg, #c62828, #e53935 50%, #ff7043);
  color: #fff;
}

.bm-select__menu li[aria-selected="true"] {
  background: linear-gradient(120deg, #0d47a1, #1e88e5);
  color: #fff;
}

.bm-slots {
  margin: 0.65rem 0 1.15rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px dashed rgba(26, 39, 68, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.65), rgba(240, 247, 255, 0.55));
}

.bm-slots__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.65rem;
}

.bm-slot {
  cursor: pointer;
}

.bm-slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bm-slot span {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.1rem;
  border-radius: 18px;
  border: 1.5px solid rgba(26, 39, 68, 0.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(26, 39, 68, 0.05);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.bm-slot span b {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.bm-slot span strong {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.bm-slot:hover span {
  transform: translateY(-3px);
  border-color: rgba(30, 136, 229, 0.4);
  box-shadow: 0 14px 28px rgba(30, 136, 229, 0.12);
}

.bm-slot input:checked + span {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, var(--red), #ec407a, var(--blue), var(--purple)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 16px 34px rgba(229, 57, 53, 0.18);
  transform: translateY(-3px);
}

.bm-error {
  margin: 0;
  min-height: 1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-deep);
}

.bm-honeypot {
  position: absolute !important;
  left: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bm-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(26, 39, 68, 0.08);
}

.bm-form__actions .bm-btn--primary {
  flex: 1 1 200px;
}

/* Toast */
.bm-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.28s, opacity 0.28s;
}

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

.bm-toast.is-error {
  background: #8e0000;
}

/* Footer */
.bm-foot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem 2.5rem;
}

.bm-foot img {
  width: 100px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 8px 16px rgba(26, 39, 68, 0.12));
}

.bm-foot p {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Success page reuse */
.bm-success {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.bm-success__card {
  width: min(460px, 100%);
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: bm-rise 0.7s ease both;
}

.bm-success__card .bm-logo {
  width: min(240px, 78%);
  margin-bottom: 0.5rem;
  animation: bm-logo-in 0.8s ease both;
}

.bm-success__icon {
  width: 64px;
  height: 64px;
  margin: 0.6rem auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 12px 28px rgba(67, 160, 71, 0.35);
}

.bm-success__card h1 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
}

.bm-success__card > p {
  color: var(--muted);
  line-height: 1.55;
}

.bm-success__meta {
  margin: 1.2rem 0 1.35rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8ec, #f0f7ff);
  text-align: left;
}

.bm-success__meta div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.bm-success__meta span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.bm-success__meta strong {
  text-align: right;
  font-weight: 700;
}

.bm-success__pdf-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(67, 160, 71, 0.1);
  border: 1px solid rgba(67, 160, 71, 0.28);
  color: #2e7d32;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.bm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .bm-details {
    grid-template-columns: 1fr 1fr;
  }

  .bm-rsvp {
    grid-template-columns: 1fr;
  }

  .bm-blob {
    opacity: 0.35;
    transform: scale(0.7);
  }

  .bm-form__actions .bm-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .bm-details,
  .bm-form__row,
  .bm-slots__grid {
    grid-template-columns: 1fr;
  }

  .bm-nav {
    width: calc(100% - 1.25rem);
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bm-nav__actions {
    max-width: min(100%, 58vw);
  }

  .bm-nav__capsules {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .bm-nav__pill {
    padding: 0.55rem 0.9rem;
    font-size: 0.72rem;
  }

  .bm-nav__login {
    padding: 0.55rem 0.85rem;
    font-size: 0.72rem;
  }

  .bm-nav__partner {
    width: min(92px, 26vw);
    top: calc(100% + 0.25rem);
  }

  .bm-hero {
    padding: 4.75rem 0.7rem 1.75rem;
  }

  .bm-details,
  .bm-rsvp {
    width: calc(100% - 1.25rem);
    margin-inline: auto;
  }

  .bm-form {
    padding: 1.35rem 1rem 1.25rem;
    border-radius: 22px;
  }

  .bm-form__title {
    font-size: 1.3rem;
  }

  .bm-form__lead {
    max-width: none;
  }

  .bm-rsvp__side {
    padding: 1.45rem 1.15rem;
    border-radius: 22px;
  }

  .bm-slots {
    padding: 0.85rem;
  }

  .bm-logo {
    width: min(300px, 88%);
  }

  .bm-hero__cursive {
    font-size: clamp(1.85rem, 8.5vw, 2.65rem);
    line-height: 1.55;
    padding: 0.55em 0.2em 0.6em;
  }

  .bm-hero__title {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    line-height: 1.15;
  }

  .bm-hero__lead {
    font-size: 0.94rem;
  }

  .bm-hero__cta .bm-btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .bm-btn {
    min-height: 46px;
    padding: 0.7rem 1.1rem;
    font-size: 0.88rem;
  }

  .bm-field input,
  .bm-field textarea,
  .bm-select__trigger {
    font-size: 16px;
    min-height: 48px;
  }

  .bm-marquee__track {
    font-size: 0.9rem;
  }

  .bm-success__meta div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .bm-success__meta strong {
    text-align: left;
  }

  .bm-actions .bm-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 380px) {
  .bm-hero__chip {
    border-radius: 16px;
    padding: 0.45rem 0.75rem;
  }

  .bm-hero__cursive {
    font-size: clamp(1.65rem, 9vw, 2.1rem);
  }

  .bm-detail {
    padding: 1rem 0.9rem;
  }

  .bm-nav__back {
    font-size: 0.78rem;
    gap: 0.3rem;
  }

  .bm-nav__meg {
    width: 36px;
    height: 36px;
  }

  .bm-nav__partner {
    width: min(76px, 24vw);
  }

  .bm-hero {
    padding-top: 4.1rem;
  }

  .bm-nav__login,
  .bm-nav__pill {
    padding: 0.5rem 0.72rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .bm-hero {
    padding-block: 1rem 1.5rem;
  }

  .bm-logo {
    width: min(240px, 42vw);
  }

  .bm-blob {
    display: none;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .bm-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .bm-slots__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bm-custom-section {
  margin: 1.1rem 0 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.bm-custom-heading {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.bm-hint {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.bm-privacy {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ——— Access code gate ——— */
body.bm--gated:not(.bm--unlocked) {
  overflow: hidden;
}

body.bm--gated:not(.bm--unlocked) > :not(.bm-gate) {
  visibility: hidden;
  pointer-events: none;
}

.bm-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(255, 193, 7, 0.32), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 10%, rgba(30, 136, 229, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(229, 57, 53, 0.16), transparent 50%),
    linear-gradient(165deg, #fffefb 0%, #fff4e4 42%, #e8f1ff 100%);
  visibility: visible !important;
  pointer-events: auto !important;
}

.bm-gate[hidden] {
  display: none !important;
}

.bm-gate__panel {
  width: min(420px, 100%);
  padding: 1.75rem 1.45rem 1.5rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 70px rgba(26, 39, 68, 0.16);
  backdrop-filter: blur(18px);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: bm-gate-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.bm-gate__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.15rem;
  right: 1.15rem;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #e53935, #ff7043, #ffc107, #43a047, #1e88e5, #7e57c2);
}

@keyframes bm-gate-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bm-gate__logo {
  width: min(168px, 58%);
  height: auto;
  margin: 0.15rem auto 0.85rem;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(229, 57, 53, 0.18));
}

.bm-gate__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.bm-gate__panel h1 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bm-gate__lead {
  margin: 0.55rem auto 0;
  max-width: 32ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.bm-gate__form {
  margin-top: 1.25rem;
  text-align: left;
}

.bm-gate__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.bm-gate__input {
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1.5px solid rgba(26, 39, 68, 0.14);
  background: #fff;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(26, 39, 68, 0.06);
}

.bm-gate__input:focus {
  outline: none;
  border-color: rgba(229, 57, 53, 0.45);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
}

.bm-gate__error {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #b71c1c;
  line-height: 1.4;
}

.bm-gate__btn {
  width: 100%;
  margin-top: 0.95rem;
  min-height: 52px;
  border: none;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, #c62828, #e53935 40%, #ff7043);
  box-shadow: 0 14px 32px rgba(229, 57, 53, 0.3);
  transition: transform 0.2s, filter 0.2s;
}

.bm-gate__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.bm-gate__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.bm-gate__foot {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.bm-gate__foot a {
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

.bm-gate__foot a:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .bm-gate__panel {
    padding: 1.45rem 1.1rem 1.25rem;
    border-radius: 26px;
  }

  .bm-gate__input {
    letter-spacing: 0.28em;
    font-size: 1.3rem;
  }
}
