* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #111;
  color: var(--ink, #242424);
}
body {
  overflow: hidden;
}
.lmb-experience {
  --paper: #f6f0e5;
  --paper2: #fffaf2;
  --ink: #272622;
  --accent: #a47b37;
  --accent2: #35465a;
  --line: color-mix(in srgb, var(--ink) 22%, transparent);
  position: fixed;
  inset: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: #111;
  overflow: hidden;
}
.lmb-experience button,
.lmb-experience input,
.lmb-experience select,
.lmb-experience textarea {
  font: inherit;
}
.lmb-experience [hidden] {
  display: none !important;
}
.opening-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 50% 38%,
    color-mix(in srgb, var(--paper) 20%, #13110f),
    #0d0c0b 72%
  );
  transition:
    opacity 0.75s ease,
    visibility 0.75s;
}
.opening-atmosphere {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: radial-gradient(
    circle at 50% 35%,
    var(--accent),
    transparent 34%
  );
}
.envelope-stage {
  position: relative;
  width: min(94vw, 760px);
  aspect-ratio: 14/9;
  filter: drop-shadow(0 28px 45px #000a);
  transform: translateY(-1vh);
  transition: transform 1s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.envelope-pocket,
.envelope-flap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.envelope-pocket {
  z-index: 3;
  transform-origin: center bottom;
  transition:
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.7s;
}
.envelope-flap {
  z-index: 5;
  transform-origin: 50% 40%;
  transition:
    transform 1.15s cubic-bezier(0.2, 0.65, 0.15, 1),
    opacity 0.85s;
}
.card-glimpse {
  position: absolute;
  z-index: 2;
  left: 13%;
  right: 13%;
  top: 15%;
  bottom: 13%;
  background: var(--card-image) center/cover;
  border-radius: 4px;
  box-shadow: 0 10px 26px #0007;
  transition: transform 1.3s cubic-bezier(0.2, 0.75, 0.2, 1);
  transform: scale(0.86);
}
.seal-wrap {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 58%;
  width: clamp(92px, 16vw, 132px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transition:
    transform 0.75s ease,
    opacity 0.55s;
}
.envelope-seal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px #0007);
}
.seal-trigger {
  position: absolute;
  inset: 12%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-shadow: 0 1px 2px #000;
  font-size: clamp(13px, 2.2vw, 17px);
  letter-spacing: 0.08em;
}
.seal-trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.seal-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(4vh, 24px);
  margin: 0;
  text-align: center;
  color: #fff9;
  font:
    500 11px/1.2 Arial,
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.phase-unsealing .seal-wrap {
  transform: translate(-50%, -50%) scale(0.88) rotate(-9deg);
  opacity: 0;
}
.phase-opening .envelope-flap,
.phase-revealing .envelope-flap,
.phase-open .envelope-flap {
  transform: translateY(-38%) scale(0.98);
  opacity: 0.05;
}
.phase-opening .envelope-pocket,
.phase-revealing .envelope-pocket,
.phase-open .envelope-pocket {
  transform: translateY(45%);
  opacity: 0.18;
}
.phase-opening .card-glimpse,
.phase-revealing .card-glimpse,
.phase-open .card-glimpse {
  transform: scale(1.12) translateY(-5%);
}
.phase-revealing .opening-screen,
.phase-open .opening-screen {
  opacity: 0;
  visibility: hidden;
}
.ambient-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.ambient-layer i {
  position: absolute;
  left: var(--x);
  top: -8%;
  display: block;
  opacity: 0.55;
  animation: ambient 12s linear infinite;
  animation-delay: var(--delay);
}
@keyframes ambient {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0);
    opacity: 0;
  }
  12% {
    opacity: 0.6;
  }
  100% {
    transform: translate3d(calc((var(--i) - 10) * 1.1px), 118vh, 0)
      rotate(520deg);
    opacity: 0.05;
  }
}
.invitation-scroll {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  scroll-behavior: smooth;
}
.hero-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 24px 72px;
  isolation: isolate;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image) center/cover no-repeat;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--paper) 12%, transparent);
}
.hero-copy {
  width: min(78vw, 590px);
  text-align: center;
  padding: 48px 22px;
  background: color-mix(in srgb, var(--paper2) 60%, transparent);
  backdrop-filter: blur(1.5px);
}
.eyebrow {
  margin: 0 0 16px;
  font:
    600 10px/1.2 Arial,
    sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-copy h1 {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: clamp(48px, 12vw, 92px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.04em;
}
.hero-copy h1 em {
  font-size: 0.34em;
  line-height: 1.6;
  color: var(--accent);
  font-style: italic;
}
.hero-copy h1 > span {
  display: block;
  width: 100%;
  max-width: 100%;
  justify-self: center;
  overflow: visible;
  white-space: nowrap;
  text-align: center;
}
.date-lockup {
  margin: 38px auto 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  text-transform: uppercase;
}
.date-lockup strong {
  font-size: 32px;
  font-weight: 400;
}
.date-lockup span {
  font:
    600 12px Arial,
    sans-serif;
  letter-spacing: 0.16em;
}
.date-lockup small {
  font:
    500 11px Arial,
    sans-serif;
  color: var(--accent2);
}
.start-time {
  margin-top: 12px;
  font:
    11px Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.start-time b {
  font-size: 17px;
  margin-left: 8px;
}
.scroll-cue {
  position: absolute;
  bottom: 22px;
  font:
    600 9px Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.scroll-cue i {
  display: block;
  font-style: normal;
  font-size: 18px;
  margin-top: 6px;
}
.content-section {
  padding: 88px 20px 120px;
  background: linear-gradient(var(--paper), var(--paper2));
  min-height: 100vh;
}
.intro-block,
.venue-block,
.module-card {
  width: min(100%, 680px);
  margin: 0 auto 88px;
  text-align: center;
}
.intro-block h2,
.venue-block h2,
.module-card h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 400;
  line-height: 1;
}
.intro-block p:not(.eyebrow),
.venue-block > p:not(.eyebrow),
.module-card > div,
.module-card > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.65;
}
.module-card,
.venue-block {
  padding: 38px 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper2) 82%, transparent);
}
.program-module ol {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  text-align: left;
}
.program-module li {
  display: grid;
  grid-template-columns: 28px 74px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.program-module li i {
  font-style: normal;
  color: var(--accent);
}
.program-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font: 18px/1 var(--font-display, Georgia, serif);
}
.program-icon.is-emoji {
  font: 16px/1 system-ui;
}
.map-frame {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 290px;
  border: 0;
  filter: saturate(0.68) contrast(0.95);
}
.map-frame a {
  display: block;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  font:
    600 10px Arial,
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.primary-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 22px;
  min-height: 54px;
  padding: 12px 22px;
  border: 0;
  background: var(--ink);
  color: var(--paper2);
  text-decoration: none;
  cursor: pointer;
}
.primary-button span {
  font:
    10px Arial,
    sans-serif;
  opacity: 0.75;
}
.primary-button b {
  font:
    600 11px Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.photo-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}
.gallery-module {
  width: calc(100% + 32px);
  margin-inline: -16px;
  padding-inline: 16px;
}
.photo-track {
  display: flex;
  transition: transform 0.55s ease;
}
.photo-track figure {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 3/4;
  background: #0001;
}
.photo-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper2) 90%, transparent);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 12px #0002;
}
.gallery-prev {
  left: 7px;
}
.gallery-next {
  right: 7px;
}
.gallery-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gallery-dots button {
  width: 5px;
  height: 5px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.25;
}
.gallery-dots button.active {
  opacity: 1;
}
.rsvp-module form {
  display: grid;
  gap: 14px;
  text-align: left;
  margin-top: 26px;
}
.rsvp-module label {
  display: grid;
  gap: 6px;
  font:
    600 10px Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rsvp-module input,
.rsvp-module select,
.rsvp-module textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper2);
  color: var(--ink);
  padding: 13px;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
}
.rsvp-module .consent span {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.rsvp-module .consent input {
  width: auto;
}
.lmb-honey {
  position: absolute !important;
  left: -9999px !important;
}
.ending-mark {
  text-align: center;
  color: var(--accent);
  font-size: 22px;
  letter-spacing: 0.2em;
}
.theme-cote-amalfitaine {
  font-family: "Fraunces", Georgia, serif;
}
.theme-cote-amalfitaine .hero-copy {
  clip-path: polygon(
    4% 0,
    96% 0,
    100% 5%,
    100% 95%,
    96% 100%,
    4% 100%,
    0 95%,
    0 5%
  );
}
.theme-cote-amalfitaine .ambient-layer i {
  width: 16px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: var(--accent2);
  box-shadow: 0 0 0 1px #fff5;
}
.theme-cote-amalfitaine .module-card {
  border-color: color-mix(in srgb, var(--accent2) 38%, transparent);
}
.theme-minuit-a-paris {
  font-family: "Cormorant Garamond", Georgia, serif;
}
.theme-minuit-a-paris .hero-copy {
  background: #f3ecdfd9;
  box-shadow: 0 0 0 1px #fff5;
}
.theme-minuit-a-paris .ambient-layer i {
  width: 1px;
  height: 36px;
  background: #fff;
  box-shadow: 0 0 9px #fff;
  animation-duration: 8s;
}
.theme-minuit-a-paris .module-card {
  box-shadow: 5px 5px 0 #111;
}
.theme-art-deco {
  font-family: "Marcellus", Georgia, serif;
}
.theme-art-deco .hero-copy {
  border: 1px solid var(--accent);
  outline: 5px double color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 8px;
}
.theme-art-deco .ambient-layer i {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation-duration: 14s;
}
.theme-art-deco .module-card {
  border: 3px double var(--accent);
}
.palette-signature {
  --paper: #f8f1e4;
  --paper2: #fffaf1;
  --ink: #24323a;
  --accent: #d7b23e;
  --accent2: #1f5a8a;
  --seal-initials: #174f7b;
  --seal-initials-shadow: rgba(255, 250, 241, 0.72);
}
.palette-azzurro {
  --paper: #eef5f7;
  --paper2: #fffdf7;
  --ink: #1d3444;
  --accent: #a98d3d;
  --accent2: #2e6f9e;
  --seal-initials: #245f89;
  --seal-initials-shadow: rgba(255, 253, 247, 0.72);
}
.palette-limone {
  --paper: #fbf4d9;
  --paper2: #fffdf3;
  --ink: #384334;
  --accent: #c8a51f;
  --accent2: #6c754a;
  --seal-initials: #59623d;
  --seal-initials-shadow: rgba(255, 253, 243, 0.76);
}

.fonts-mediterranean {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Lato", Arial, sans-serif;
}
.fonts-romantic {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", Arial, sans-serif;
}
.fonts-classic {
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lato", Arial, sans-serif;
}
.fonts-modern {
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Montserrat", Arial, sans-serif;
}
.theme-cote-amalfitaine {
  font-family: var(--font-body, "Lato", Arial, sans-serif);
}
.theme-cote-amalfitaine :is(h1, h2, h3, .ending-mark, .date-lockup strong, .start-time b, .seal-trigger span) {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
}
.palette-nocturne {
  --paper: #efe6d7;
  --paper2: #f7f1e8;
  --ink: #181716;
  --accent: #8d7c64;
  --accent2: #6b2737;
}
.palette-argent {
  --paper: #e9e7e2;
  --paper2: #f6f3ec;
  --ink: #242322;
  --accent: #888681;
  --accent2: #3d4a55;
}
.palette-bordeaux {
  --paper: #efe5df;
  --paper2: #faf3ed;
  --ink: #2a171a;
  --accent: #9a7863;
  --accent2: #6b2737;
}
.palette-classic {
  --paper: #f2e7d3;
  --paper2: #fcf4e6;
  --ink: #141310;
  --accent: #b4934d;
  --accent2: #173f37;
}
.palette-emerald {
  --paper: #eee7d8;
  --paper2: #f8f0e2;
  --ink: #14231f;
  --accent: #b08c43;
  --accent2: #173f37;
}
.palette-champagne {
  --paper: #f4eadc;
  --paper2: #fff7eb;
  --ink: #3a2d24;
  --accent: #c09d61;
  --accent2: #6f5742;
}
.reduced-motion * {
  animation: none !important;
  transition: none !important;
}
.reduced-motion .opening-screen {
  display: none;
}
.reduced-motion .invitation-scroll {
  z-index: 40;
}
.phase-closed .invitation-scroll,
.phase-unsealing .invitation-scroll,
.phase-opening .invitation-scroll {
  pointer-events: none;
}
@media (min-width: 900px) {
  .invitation-scroll {
    left: 50%;
    width: min(520px, 46vw);
    transform: translateX(-50%);
    box-shadow: 0 0 80px #0008;
  }
  .lmb-experience:before {
    content: "LMB INVITE";
    position: absolute;
    inset: auto auto 7vh 5vw;
    color: #fff5;
    font:
      500 10px Arial,
      sans-serif;
    letter-spacing: 0.32em;
  }
  .hero-copy {
    width: 82%;
  }
}
@media (max-width: 390px) {
  .hero-copy {
    width: 88vw;
    padding-inline: 16px;
  }
  .content-section {
    padding-inline: 14px;
  }
  .module-card,
  .venue-block {
    padding-inline: 18px;
  }
}
@supports not (color: color-mix(in srgb, #000, #fff)) {
  .opening-screen {
    background: #111;
  }
  .hero-copy {
    background: #f7f0e7dd;
  }
}

/* LMB envelope geometry contract — Jardin d'Eden 1024×1536 master. */
.lmb-experience {
  --seal-filter: grayscale(1) sepia(0.52) saturate(1.65) hue-rotate(350deg)
    brightness(0.82) contrast(1.08);
}
.palette-signature {
  --seal-filter: grayscale(1) sepia(0.72) saturate(2) hue-rotate(355deg)
    brightness(0.88) contrast(1.05);
}
.palette-azzurro {
  --seal-filter: grayscale(1) sepia(0.48) saturate(1.5) hue-rotate(155deg)
    brightness(0.82) contrast(1.05);
}
.palette-limone {
  --seal-filter: grayscale(1) sepia(0.65) saturate(1.55) hue-rotate(18deg)
    brightness(0.82) contrast(1.05);
}
.palette-nocturne {
  --seal-filter: grayscale(1) sepia(0.25) saturate(0.9) brightness(0.48)
    contrast(1.18);
}
.palette-argent {
  --seal-filter: grayscale(1) brightness(0.88) contrast(1.12);
}
.palette-bordeaux {
  --seal-filter: grayscale(1) sepia(0.55) saturate(2.2) hue-rotate(300deg)
    brightness(0.62) contrast(1.15);
}
.palette-classic {
  --seal-filter: grayscale(1) sepia(0.7) saturate(1.8) hue-rotate(355deg)
    brightness(0.78) contrast(1.12);
}
.palette-emerald {
  --seal-filter: grayscale(1) sepia(0.55) saturate(1.4) hue-rotate(76deg)
    brightness(0.58) contrast(1.12);
}
.palette-champagne {
  --seal-filter: grayscale(1) sepia(0.5) saturate(1.3) hue-rotate(350deg)
    brightness(0.9) contrast(1.05);
}
.envelope-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  filter: none;
  transform: none;
}
.envelope-pocket,
.envelope-flap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: none;
  transition: transform 1.85s cubic-bezier(0.48, 0, 0.18, 1);
}
.envelope-pocket {
  z-index: 3;
}
.envelope-flap {
  z-index: 5;
  transform-origin: center;
}
.seal-wrap {
  position: absolute;
  z-index: 8;
  inset: 0;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  opacity: 1;
  transform: none;
  transition:
    transform 1.85s cubic-bezier(0.48, 0, 0.18, 1),
    opacity 0.3s;
}
.envelope-seal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: var(--seal-filter) drop-shadow(0 9px 10px #0006);
  transform: translateY(3.7%) scale(0.585);
  transform-origin: 50.83% 51.82%;
}
.seal-trigger {
  inset: auto;
  left: 50%;
  top: 55.52%;
  width: min(18vw, 90px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--seal-initials, var(--accent2));
  text-shadow: 0 1px 1px var(--seal-initials-shadow, rgba(255,255,255,.7));
  font-size: clamp(12px, 2vw, 15px);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.seal-trigger span {
  display: block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  transform: scale(1.05);
  transform-origin: center;
}
.phase-unsealing .seal-wrap {
  transform: translateY(-4%);
  opacity: 0.72;
}
.phase-opening .envelope-flap,
.phase-opening .seal-wrap,
.phase-revealing .envelope-flap,
.phase-revealing .seal-wrap,
.phase-open .envelope-flap,
.phase-open .seal-wrap {
  transform: translateY(-108%);
  opacity: 1;
}
.phase-opening .envelope-pocket,
.phase-revealing .envelope-pocket,
.phase-open .envelope-pocket {
  transform: translateY(108%);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .envelope-pocket,
  .envelope-flap,
  .seal-wrap {
    transition-duration: 0.01ms !important;
  }
}
