:root {
  color-scheme: light;
  --cream: #fbf8f3;
  --cream-deep: #f5ede5;
  --rose: #e8cdd0;
  --rose-deep: #85515e;
  --lilac: #e8e0ed;
  --sky: #e3ebed;
  --sage: #e7e9de;
  --ink: #4b3d43;
  --muted: #6d5d63;
  --line: #ded1ce;
  --white: #fffdfb;
  --serif: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --page-width: 1320px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

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

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

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

a {
  color: inherit;
}

:is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

.page-shell {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  overflow: clip;
  background: var(--cream);
  box-shadow: 0 0 90px rgb(89 59 68 / 6%);
}

.status {
  padding: 2rem var(--gutter);
}

.section-space {
  padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
}

.eyebrow {
  color: var(--rose-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sparkle {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

.arrow-up {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1rem;
  height: 1rem;
}

.arrow-up::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
  content: "";
}

.arrow-up::after {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.2rem;
  margin-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
}

.header-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.header-brand img {
  width: clamp(5.4rem, 18vw, 7rem);
  height: auto;
}

.header-brand span,
.footer-brand > span {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
}

.header-note {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  font-style: italic;
  text-align: right;
  opacity: var(--note-opacity);
  transform: translate3d(0, var(--note-shift), 0);
  will-change: transform, opacity;
}

.opening {
  --cover-shift: 0px;
  --cover-scale: 1.065;
  --hero-shift: 0px;
  --hero-opacity: 1;
  --note-shift: 0px;
  --note-opacity: 1;
  --cue-shift: 0px;
  --cue-opacity: 1;
  --overlay-opacity: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #f6edf0, #e5dce8);
}

.opening-image {
  position: absolute;
  inset: -4% 0 auto;
  z-index: -2;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: 68% center;
  transform: translate3d(0, var(--cover-shift), 0) scale(var(--cover-scale));
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.opening::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(251 248 243 / 78%), rgb(251 248 243 / 46%) 47%, rgb(251 248 243 / 4%) 77%),
    linear-gradient(180deg, rgb(251 248 243 / 18%), transparent 52%, rgb(251 248 243 / 30%));
  opacity: var(--overlay-opacity);
  content: "";
  pointer-events: none;
  will-change: opacity;
}

.opening::after {
  position: absolute;
  inset: -2px;
  z-index: 5;
  background:
    radial-gradient(circle at 70% 25%, rgb(255 255 255 / 35%), transparent 28%),
    linear-gradient(155deg, #f9f1f4 0%, #eee2ea 52%, #f7efe9 100%);
  transform: translate3d(0, -102%, 0);
  content: "";
  pointer-events: none;
  will-change: transform;
}

.hero {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) clamp(5rem, 10vw, 8rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  min-width: 0;
  opacity: var(--hero-opacity);
  transform: translate3d(0, var(--hero-shift), 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.hero-eyebrow {
  margin-bottom: clamp(2.2rem, 6vw, 4rem);
}

.hero-lead {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-style: italic;
  line-height: 1.2;
}

.hero h1 {
  margin-block: 0.15rem 0.45rem;
  color: #6b4d59;
  font-size: clamp(5rem, 19vw, 11rem);
  font-style: italic;
  letter-spacing: -0.085em;
  line-height: 0.99;
}

.hero-subtitle {
  max-width: 28ch;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.38;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 27rem);
  margin: clamp(2rem, 5vw, 3rem) auto 1.4rem;
  color: var(--rose-deep);
}

.hero-rule .sparkle {
  width: 0.9rem;
  height: 0.9rem;
}

.hero-rule::before,
.hero-rule::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
}

.cover-note {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 7vw, 6rem);
  max-width: 16ch;
  color: #6b4d59;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  text-align: right;
  opacity: var(--note-opacity);
  transform: translate3d(0, var(--note-shift), 0);
  will-change: transform, opacity;
}

.scroll-cue {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-self: center;
  gap: 0.75rem;
  min-height: 44px;
  margin-bottom: clamp(4.4rem, 7vw, 6.5rem);
  color: #704e5b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  opacity: var(--cue-opacity);
  transform: translate3d(0, var(--cue-shift), 0);
  will-change: transform, opacity;
}

.scroll-cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 2rem;
  background: currentColor;
}

.scroll-cue-line::after {
  position: absolute;
  bottom: 0;
  left: -0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.story {
  position: relative;
  z-index: 3;
  margin-top: -clamp(3.5rem, 7vw, 6rem);
  overflow: clip;
  border-radius: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4.5rem) 0 0;
  background: var(--cream);
  box-shadow: 0 -16px 48px rgb(87 59 78 / 10%);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  min-height: 44px;
  border-bottom: 1px solid var(--rose-deep);
  color: #80545f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 200ms ease, gap 200ms ease;
}

.text-link:hover {
  gap: 2.1rem;
  color: var(--ink);
}

.ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 3.7rem;
  padding: 0.8rem var(--gutter);
  color: #795b67;
  background: #f0dfe0;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
}

.ribbon-sparkle,
.ribbon-message {
  display: none;
}

.ribbon-sparkle {
  width: 0.6rem;
  height: 0.6rem;
}

.intro {
  position: relative;
  text-align: center;
  background: var(--white);
}

.intro-ornament {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 1rem;
  color: var(--rose-deep);
}

.intro h2,
.section-heading h2,
.countdown h2,
.rsvp h2 {
  font-size: clamp(3.15rem, 7vw, 6rem);
  letter-spacing: -0.055em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.intro h2 {
  margin: 0.8rem auto 1.7rem;
}

.intro-message {
  max-width: 36ch;
  margin-inline: auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.5;
}

.intro-signature {
  margin-top: 1.8rem;
  color: #9c747e;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

.countdown {
  display: grid;
  gap: 2.8rem;
  align-items: center;
  background: radial-gradient(circle at 95% 0, rgb(255 255 255 / 42%), transparent 40%), var(--lilac);
}

.countdown h2 {
  max-width: 12ch;
  margin-block: 0.8rem 1rem;
}

.countdown-copy > p:last-child {
  color: var(--muted);
}

.countdown-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.5vw, 1rem);
}

.countdown-values > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: clamp(0.8rem, 2.2vw, 1.5rem) 0.25rem;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 6rem 6rem 0.45rem 0.45rem;
  background: rgb(255 253 251 / 56%);
  text-align: center;
}

.countdown-values strong {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.075em;
  line-height: 1.05;
}

.countdown-values span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-complete {
  font-family: var(--serif);
  font-size: 2rem;
}

.details {
  background: var(--cream);
}

.section-heading {
  max-width: 40rem;
  margin: 0 auto clamp(2.2rem, 5vw, 4rem);
  text-align: center;
}

.section-heading h2 {
  margin-block: 0.65rem 0.85rem;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  gap: 1rem;
}

.detail-card {
  position: relative;
  min-width: 0;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid #ead9d6;
  border-radius: 50% 50% 0.7rem 0.7rem / 12% 12% 0.7rem 0.7rem;
  background: var(--white);
  text-align: center;
  box-shadow: 0 10px 34px rgb(92 55 69 / 4%);
}

.detail-card-place {
  background: #f3efed;
}

.detail-icon {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 auto 1.3rem;
  color: var(--rose-deep);
}

.pin-icon {
  position: relative;
  height: 1.6rem;
}

.pin-icon::before {
  position: absolute;
  top: 0;
  left: 0.1rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  content: "";
}

.pin-icon::after {
  position: absolute;
  top: 0.4rem;
  left: 0.5rem;
  width: 0.4rem;
  height: 0.4rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.detail-card h3 {
  margin-block: 0.55rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
}

.detail-card > p:last-child {
  color: var(--muted);
}

.map-section {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  background: linear-gradient(180deg, #f7f3ee, #eef0ed);
}

.map-section .section-heading {
  margin-bottom: clamp(0.8rem, 3vw, 2rem);
}

.map-frame-wrap {
  width: 100%;
  max-width: 72rem;
  height: clamp(16rem, 50vw, 26rem);
  min-width: 0;
  overflow: hidden;
  border: 0.6rem solid var(--white);
  border-radius: 1rem;
  background: var(--sky);
  box-shadow: 0 15px 38px rgb(92 55 69 / 8%);
}

.map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  width: min(100%, 32rem);
}

.map-links--single {
  grid-template-columns: minmax(0, 15rem);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  gap: 1.2rem;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 1px solid #bb8e99;
  border-radius: 3rem;
  color: #80545f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease;
}

.pill-link:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.gallery-section {
  background: linear-gradient(180deg, #f3efed, #f8f3ee);
}

.gallery-section--slider {
  padding-top: clamp(4.5rem, 7vw, 6rem);
}

.gallery-section--slider .section-heading {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gallery {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.gallery--slider {
  justify-items: center;
  gap: 1.2rem;
}

.slider-stage {
  position: relative;
  width: min(100%, 42rem);
  min-width: 0;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  border: 0.65rem solid var(--white);
  border-radius: 46% 46% 1rem 1rem / 9% 9% 1rem 1rem;
  background: #eee0e9;
  box-shadow: 0 22px 50px rgb(92 55 69 / 12%);
  touch-action: pan-y;
}

.slider-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(5%) scale(1.02);
  transition: opacity 850ms ease, transform 950ms cubic-bezier(.2, .7, .25, 1), visibility 0s 950ms;
  pointer-events: none;
}

.gallery--slider.is-reverse .slider-slide {
  transform: translateX(-5%) scale(1.02);
}

.slider-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  transition: opacity 850ms ease, transform 950ms cubic-bezier(.2, .7, .25, 1), visibility 0s;
}

.gallery--slider.is-reverse .slider-slide.is-active {
  transform: translateX(0) scale(1);
}

.slider-slide.is-exiting {
  z-index: 1;
  visibility: visible;
  transform: translateX(-5%) scale(.98);
}

.gallery--slider.is-reverse .slider-slide.is-exiting {
  transform: translateX(5%) scale(.98);
}

.slider-visual {
  position: absolute;
  inset: 0;
}

.slider-slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 3rem 1rem 1.1rem;
  color: var(--ink);
  background: linear-gradient(transparent, rgb(255 253 251 / 86%));
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: italic;
  text-align: center;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 3vw, 1.5rem);
  width: min(100%, 42rem);
}

.slider-arrow,
.slider-dot {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--rose-deep);
  background: transparent;
  cursor: pointer;
}

.slider-arrow {
  border: 1px solid #c6a8ad;
  border-radius: 50%;
  transition: background 200ms ease, transform 200ms ease;
}

.slider-arrow::before {
  width: 0.55rem;
  height: 0.55rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.slider-arrow--previous::before {
  transform: rotate(-135deg);
}

.slider-arrow:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.slider-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.slider-dot {
  min-width: 34px;
  border: 0;
}

.slider-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 2rem;
  background: #bba5ab;
  transition: width 300ms ease, background 300ms ease;
  content: "";
}

.slider-dot[aria-current="true"]::before {
  width: 18px;
  background: var(--rose-deep);
}

.memory-card {
  --tilt: 0deg;
  min-width: 0;
  padding: 0.7rem 0.7rem 1.25rem;
  background: var(--white);
  box-shadow: 0 14px 35px rgb(92 55 69 / 8%);
  transform: rotate(var(--tilt));
}

.memory-card:first-child {
  --tilt: -1deg;
}

.memory-card:nth-child(2) {
  --tilt: 1.5deg;
}

.memory-card:nth-child(3) {
  --tilt: -1deg;
}

.memory-visual,
.slider-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: linear-gradient(155deg, #eee0e9, #f5e6db);
}

.slider-visual {
  position: absolute;
  height: 100%;
  aspect-ratio: auto;
}

.memory-card:nth-child(2) .memory-visual,
.slider-slide:nth-child(2) .slider-visual { background: linear-gradient(150deg, #e1ebeb, #f5ebe2); }
.memory-card:nth-child(3) .memory-visual,
.slider-slide:nth-child(3) .slider-visual { background: linear-gradient(150deg, #eee8d9, #e6dfe9); }

.memory-visual::before,
.slider-visual::before {
  position: absolute;
  inset: 14% 18% 0;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  content: "";
}

.memory-visual::after,
.slider-visual::after {
  position: absolute;
  top: 37%;
  left: 37%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 251 237 / 73%);
  box-shadow: 0 0 35px rgb(255 252 234 / 90%);
  content: "";
}

.memory-visual img,
.slider-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 7s ease;
}

.slider-visual img {
  opacity: 0;
  transition: opacity 500ms ease, transform 7s ease;
}

.slider-visual img.is-loaded {
  opacity: 1;
}

.memory-card figcaption {
  padding: 1rem 0.55rem 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
}

.extras {
  display: grid;
  gap: 1rem;
  background: var(--white);
}

.extra-card {
  position: relative;
  min-width: 0;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 0.75rem;
  background: var(--sage);
}

.extra-card-gifts {
  background: #f4e9e9;
}

.extra-flower {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--rose-deep);
  opacity: 0.65;
}

.extra-card h2 {
  margin-block: 0.8rem 1rem;
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  letter-spacing: -0.05em;
}

.extra-card > p:not(.eyebrow) {
  max-width: 38ch;
  color: var(--muted);
}

.extra-card .text-link {
  margin-top: 1rem;
}

.rsvp {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 92% 85%, rgb(255 255 255 / 54%), transparent 29%), #efdfe1;
}

.rsvp-decoration {
  position: absolute;
  top: -5rem;
  right: -1rem;
  width: 17rem;
  height: 17rem;
  color: rgb(255 255 255 / 46%);
  pointer-events: none;
}

.rsvp-copy,
.rsvp-form {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.rsvp h2 {
  max-width: 10ch;
  margin-block: 0.8rem 1.3rem;
}

.rsvp-copy > p:last-child {
  max-width: 38ch;
  color: var(--muted);
}

.rsvp-form {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.35rem, 4vw, 2.7rem);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 0.9rem;
  background: rgb(255 253 251 / 86%);
  box-shadow: 0 18px 42px rgb(112 77 91 / 10%);
}

.rsvp-form label {
  margin-top: 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rsvp-form label:first-child {
  margin-top: 0;
}

.optional {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.rsvp-form :is(input, select, textarea) {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d9c9c9;
  border-radius: 0.35rem;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
}

.rsvp-form :is(input, textarea)::placeholder {
  color: #96878b;
}

.rsvp-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.rsvp-form :is(input, select):disabled {
  color: var(--muted);
  background: #f2eeee;
}

.rsvp-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 52px;
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 0.35rem;
  color: var(--white);
  background: #825b69;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease;
}

.rsvp-button:hover {
  background: #684753;
  transform: translateY(-2px);
}

.rsvp-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.closing {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  padding-block: clamp(5rem, 10vw, 9rem);
  background: radial-gradient(circle at 50% 15%, rgb(255 255 255 / 75%), transparent 38%), var(--lilac);
  text-align: center;
}

.closing-star {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--rose-deep);
}

.closing p {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  font-style: italic;
  letter-spacing: -0.05em;
  line-height: 1.14;
}

.closing-rule {
  display: block;
  width: min(11rem, 45vw);
  height: 1px;
  margin-top: 0.6rem;
  background: var(--rose-deep);
}

.footer {
  display: grid;
  gap: 1.2rem;
  align-items: end;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
  background: #f8f2ed;
}

.footer-event p:last-child {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-style: italic;
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 0.3rem;
}

.footer-brand img {
  width: 7.2rem;
  height: auto;
}

.footer-brand small {
  color: var(--muted);
  font-size: 0.77rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #80545f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-social a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

@media (min-width: 700px) {
  .ribbon {
    justify-content: space-around;
  }

  .ribbon-sparkle {
    display: inline-block;
  }

  .ribbon-message {
    display: inline;
  }

  .countdown {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

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

  .gallery {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
  }

  .gallery--slider {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }

  .slider-stage {
    aspect-ratio: 16 / 10;
  }

  .memory-card:first-child {
    grid-row: span 2;
  }

  .memory-card:first-child .memory-visual {
    aspect-ratio: 4 / 5.4;
  }

  .memory-card:not(:first-child) .memory-visual {
    aspect-ratio: 4 / 2.1;
  }

  .memory-card:nth-child(2) {
    margin-top: 2rem;
  }

  .memory-card:nth-child(3) {
    margin-top: 0;
  }

  .rsvp {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .footer {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .footer-social {
    grid-column: 2;
  }
}

@media (max-width: 360px) {
  .header-note {
    max-width: 11ch;
    line-height: 1.25;
  }

  .ribbon {
    font-size: 0.56rem;
  }
}

@media (max-width: 699px) {
  .opening-image {
    object-position: 54% center;
  }

  .opening::before {
    background: linear-gradient(180deg, rgb(251 248 243 / 45%), rgb(251 248 243 / 28%) 48%, rgb(251 248 243 / 9%) 100%);
  }

  .hero {
    align-items: flex-start;
    padding-block: clamp(3rem, 10vh, 6rem) 5rem;
  }

  .cover-note {
    display: none;
  }
}


@media (max-width: 699px) and (max-height: 680px) {
  .site-header {
    min-height: 4.6rem;
  }

  .hero {
    padding-block: clamp(1.25rem, 4svh, 2rem) 1rem;
  }

  .hero-eyebrow {
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 19vw, 5rem);
  }

  .hero-rule {
    margin-block: 1.15rem 0.75rem;
  }

  .scroll-cue {
    gap: 0.4rem;
    margin-bottom: 3rem;
  }

  .scroll-cue-line {
    height: 1.25rem;
  }

  .story {
    margin-top: -2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .opening::after {
    animation: cover-curtain 1.45s cubic-bezier(.72, 0, .18, 1) 100ms both;
  }

  .opening-image {
    animation: cover-settle 1.55s cubic-bezier(.2, .7, .25, 1) 180ms both;
  }

  .hero-copy > * {
    animation: cover-text 920ms cubic-bezier(.16, .8, .24, 1) both;
  }

  .hero-copy > :nth-child(1) { animation-delay: 520ms; }
  .hero-copy > :nth-child(2) { animation-delay: 640ms; }
  .hero-copy > :nth-child(3) { animation-delay: 760ms; }
  .hero-copy > :nth-child(4) { animation-delay: 900ms; }
  .hero-copy > :nth-child(5) { animation-delay: 1030ms; }
  .hero-copy > :nth-child(6) { animation-delay: 1120ms; }

  .hero-rule::before,
  .hero-rule::after {
    transform: scaleX(0);
    animation: rule-open 800ms ease-out 1080ms forwards;
  }

  .cover-note,
  .scroll-cue {
    animation: cover-text 900ms ease-out 1180ms both;
  }

  .scroll-cue-line {
    animation: cue-drift 2.8s ease-in-out infinite;
  }

  .motion-ready [data-reveal] :is(.section-heading h2, .intro h2, .countdown h2, .rsvp h2) {
    clip-path: inset(-0.14em -0.12em 100% -0.12em);
    transform: translateY(20px);
    transition: clip-path 900ms cubic-bezier(.2, .7, .25, 1), transform 900ms cubic-bezier(.2, .7, .25, 1);
  }

  .motion-ready [data-reveal].is-visible :is(.section-heading h2, .intro h2, .countdown h2, .rsvp h2) {
    clip-path: inset(-0.14em -0.12em -0.22em -0.12em);
    transform: translateY(0);
  }

  .motion-ready :is(.intro, .countdown, .details, .gallery-section, .map-section, .rsvp) .eyebrow,
  .motion-ready :is(.intro, .countdown, .details, .gallery-section, .map-section, .rsvp) .section-heading > p:last-child,
  .motion-ready .intro-message,
  .motion-ready .intro-signature,
  .motion-ready .countdown-copy > p:last-child,
  .motion-ready .rsvp-copy > p:last-child {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 700ms ease, transform 700ms ease;
  }

  .motion-ready :is(.intro, .countdown, .details, .gallery-section, .map-section, .rsvp).is-visible .eyebrow,
  .motion-ready :is(.intro, .countdown, .details, .gallery-section, .map-section, .rsvp).is-visible .section-heading > p:last-child,
  .motion-ready .intro.is-visible .intro-message,
  .motion-ready .intro.is-visible .intro-signature,
  .motion-ready .countdown.is-visible .countdown-copy > p:last-child,
  .motion-ready .rsvp.is-visible .rsvp-copy > p:last-child {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready .intro-message,
  .motion-ready .section-heading > p:last-child,
  .motion-ready .countdown-copy > p:last-child,
  .motion-ready .rsvp-copy > p:last-child {
    transition-delay: 180ms;
  }

  .motion-ready .detail-card,
  .motion-ready .extra-card,
  .motion-ready .rsvp-form {
    opacity: 0;
    transform: translateY(30px) scale(.97);
    transition: opacity 850ms ease, transform 850ms cubic-bezier(.2, .7, .25, 1);
  }

  .motion-ready .is-visible .detail-card,
  .motion-ready .is-visible .extra-card,
  .motion-ready .rsvp.is-visible .rsvp-form {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .motion-ready .detail-card:nth-child(2),
  .motion-ready .extra-card:nth-child(2) { transition-delay: 140ms; }

  .motion-ready .countdown-values > div {
    opacity: 0;
    transform: translateY(20px) scale(.92);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .25, 1);
  }

  .motion-ready .countdown.is-visible .countdown-values > div {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .motion-ready .countdown-values > div:nth-child(2) { transition-delay: 100ms; }
  .motion-ready .countdown-values > div:nth-child(3) { transition-delay: 200ms; }

  .motion-ready .gallery-section .memory-card {
    opacity: 0;
    transform: translateY(38px) rotate(var(--tilt)) scale(.95);
    transition: opacity 850ms ease, transform 850ms cubic-bezier(.2, .7, .25, 1);
  }

  .motion-ready .gallery-section.is-visible .memory-card {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt)) scale(1);
  }

  .gallery-section.is-visible .memory-visual img {
    transform: scale(1.035);
  }

  .slider-slide.is-active .slider-visual img {
    transform: scale(1.035);
  }

  .motion-ready .gallery-section .slider-stage,
  .motion-ready .gallery-section .slider-controls {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2, .7, .25, 1);
  }

  .motion-ready .gallery-section.is-visible .slider-stage,
  .motion-ready .gallery-section.is-visible .slider-controls {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready .gallery-section .slider-controls {
    transition-delay: 150ms;
  }

  .motion-ready .memory-card:nth-child(2) { transition-delay: 140ms; }
  .motion-ready .memory-card:nth-child(3) { transition-delay: 280ms; }

  .motion-ready .map-frame-wrap {
    clip-path: inset(0 0 100% 0 round 1rem);
    transition: clip-path 1.1s cubic-bezier(.2, .7, .25, 1);
  }

  .motion-ready .map-section.is-visible .map-frame-wrap {
    clip-path: inset(0 0 0 0 round 1rem);
  }

  .motion-ready .closing-star,
  .motion-ready .closing p {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 900ms ease, transform 900ms ease;
  }

  .motion-ready .closing.is-visible .closing-star,
  .motion-ready .closing.is-visible p {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready .closing p { transition-delay: 160ms; }
  .motion-ready .closing-rule { transform: scaleX(0); transition: transform 900ms ease 420ms; }
  .motion-ready .closing.is-visible .closing-rule { transform: scaleX(1); }

  @keyframes cover-curtain {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -102%, 0); }
  }

  @keyframes cover-text {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
  }

  @keyframes cover-settle {
    from { opacity: .35; }
    to { opacity: 1; }
  }

  @keyframes cue-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }

  @keyframes rule-open {
    to { transform: scaleX(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening::after {
    transform: translate3d(0, -102%, 0);
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   PREMIUM DREAMY POLISH · IBENTO
   Keeps the existing structure but elevates composition,
   motion and typography without adding external libraries.
   ========================================================= */

/* Headings should never be browser-hyphenated (important on iPhone/Safari). */
h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

/* --- Immersive cover --------------------------------------------------- */
.opening {
  --hero-card-scale: 1;
  --hero-card-rotate: 0deg;
  --orb-a-shift: 0px;
  --orb-b-shift: 0px;
  --ambient-x: 0px;
  --ambient-y: 0px;
  background:
    radial-gradient(circle at 16% 14%, rgb(255 255 255 / 76%), transparent 28%),
    linear-gradient(145deg, #f8eff2 0%, #eee4ee 47%, #f7eee5 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgb(133 81 94 / 13%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  will-change: transform;
}

.hero::before {
  top: clamp(-7rem, -8vw, -3rem);
  right: clamp(-8rem, -8vw, -3rem);
  width: clamp(17rem, 43vw, 36rem);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 36% 34%, rgb(255 255 255 / 52%) 0 4%, transparent 5%),
    radial-gradient(circle at 50% 50%, rgb(232 205 208 / 24%), rgb(255 253 251 / 14%) 62%, transparent 63%);
  box-shadow: inset 0 0 80px rgb(255 255 255 / 20%);
  transform: translate3d(var(--ambient-x), calc(var(--orb-a-shift) + var(--ambient-y)), 0) rotate(-8deg);
}

.hero::after {
  right: clamp(1.5rem, 9vw, 8rem);
  bottom: clamp(2rem, 6vw, 5rem);
  width: clamp(4.75rem, 11vw, 8.5rem);
  aspect-ratio: 1;
  background: radial-gradient(circle at 34% 32%, rgb(255 255 255 / 65%), rgb(216 199 218 / 24%) 52%, transparent 54%);
  transform: translate3d(calc(var(--ambient-x) * -.45), var(--orb-b-shift), 0);
}

.hero-copy {
  width: min(100%, 39rem);
  padding: clamp(1.3rem, 3.8vw, 3rem) clamp(1.15rem, 4vw, 3.15rem) clamp(1.45rem, 4vw, 3.25rem);
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(4.5rem, 9vw, 8.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background:
    linear-gradient(145deg, rgb(255 253 251 / 75%), rgb(255 249 249 / 42%)),
    radial-gradient(circle at 100% 0, rgb(232 205 208 / 24%), transparent 44%);
  box-shadow:
    0 24px 70px rgb(87 59 78 / 9%),
    inset 0 1px 0 rgb(255 255 255 / 70%);
  opacity: var(--hero-opacity);
  transform: translate3d(0, var(--hero-shift), 0) rotate(var(--hero-card-rotate)) scale(var(--hero-card-scale));
  transform-origin: 35% 65%;
}

.hero-copy::before {
  position: absolute;
  top: clamp(1rem, 3vw, 1.7rem);
  right: clamp(1rem, 3vw, 1.8rem);
  width: 0.7rem;
  height: 0.7rem;
  color: #a56b79;
  background: currentColor;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  content: "";
}

.hero-eyebrow {
  max-width: 31ch;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.hero-lead {
  color: #775f68;
  font-size: clamp(1.35rem, 3.7vw, 2rem);
}

.hero h1 {
  margin-block: 0.05rem 0.55rem;
  font-size: clamp(4.8rem, 17vw, 10.5rem);
  letter-spacing: -0.09em;
  text-shadow: 0 12px 30px rgb(95 67 77 / 8%);
}

.hero-subtitle {
  max-width: 25ch;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  line-height: 1.42;
}

.hero-rule {
  width: min(100%, 24rem);
  margin: clamp(1.65rem, 4vw, 2.5rem) 0 1rem;
}

.hero-rule::before,
.hero-rule::after {
  background: linear-gradient(90deg, transparent, rgb(133 81 94 / 35%), transparent);
}

.hero-date {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 2.8rem;
  padding: 0.62rem 1rem;
  border: 1px solid rgb(133 81 94 / 16%);
  border-radius: 999px;
  color: #624c54;
  background: rgb(255 253 251 / 58%);
  font-size: clamp(0.98rem, 2.5vw, 1.22rem);
  line-height: 1.25;
  text-wrap: balance;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%);
}

/* Give all sections a little more visual depth without becoming busy. */
.intro,
.details,
.countdown,
.gallery-section,
.map-section,
.extras,
.rsvp,
.closing {
  position: relative;
  isolation: isolate;
}

.intro::after,
.details::after,
.gallery-section::after,
.rsvp::after {
  position: absolute;
  z-index: -1;
  width: clamp(8rem, 22vw, 18rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(232 205 208 / 16%), transparent 68%);
  content: "";
  pointer-events: none;
}

.intro::after { top: 8%; right: -8%; }
.details::after { bottom: 2%; left: -10%; }
.gallery-section::after { top: 20%; right: -10%; }
.rsvp::after { top: 8%; left: -8%; }

/* Typography safety + more intentional section headings. */
.intro h2,
.section-heading h2,
.countdown h2,
.rsvp h2 {
  letter-spacing: -0.06em;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.rsvp-copy {
  min-width: 0;
}

.rsvp h2 {
  max-width: none;
  font-size: clamp(2.3rem, 10.7vw, 5.9rem);
  white-space: nowrap;
}

/* Small premium interactions. */
.detail-card,
.extra-card,
.map-frame-wrap,
.rsvp-form,
.slider-stage {
  box-shadow: 0 20px 48px rgb(87 59 78 / 5%);
}

.pill-link,
.rsvp-button,
.text-link {
  position: relative;
  overflow: hidden;
}

.pill-link::before,
.rsvp-button::before {
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 42%), transparent);
  transform: skewX(-18deg) translateX(-250%);
  content: "";
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .pill-link:hover::before,
  .rsvp-button:hover::before {
    transform: skewX(-18deg) translateX(620%);
    transition: transform 850ms cubic-bezier(.2, .7, .25, 1);
  }

  .detail-card:hover,
  .extra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgb(87 59 78 / 9%);
  }
}

/* Motion language: each element moves differently, but from the same soft rhythm. */
@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: ambient-orbit-a 9s ease-in-out infinite alternate;
  }

  .hero::after {
    animation: ambient-orbit-b 7.5s ease-in-out infinite alternate;
  }

  .hero-copy::before,
  .intro-ornament,
  .detail-icon,
  .extra-flower,
  .rsvp-decoration,
  .closing-star {
    animation: premium-twinkle 3.8s ease-in-out infinite;
  }

  .detail-card,
  .extra-card {
    transition: transform 500ms cubic-bezier(.2, .7, .25, 1), box-shadow 500ms ease;
  }

  .motion-ready .details .detail-card:first-child {
    transform: translate3d(-22px, 28px, 0) rotate(-1.4deg) scale(.965);
  }

  .motion-ready .details .detail-card:nth-child(2) {
    transform: translate3d(22px, 28px, 0) rotate(1.4deg) scale(.965);
  }

  .motion-ready .details.is-visible .detail-card,
  .motion-ready .extras.is-visible .extra-card {
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }

  .motion-ready .extras .extra-card:first-child {
    transform: translate3d(-18px, 30px, 0) rotate(-1deg) scale(.965);
  }

  .motion-ready .extras .extra-card:nth-child(2) {
    transform: translate3d(18px, 30px, 0) rotate(1deg) scale(.965);
  }

  .motion-ready .map-links .pill-link {
    opacity: 0;
    transform: translateY(14px) scale(.96);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .7, .25, 1);
  }

  .motion-ready .map-section.is-visible .map-links .pill-link {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .motion-ready .map-section.is-visible .map-links .pill-link:nth-child(2) {
    transition-delay: 110ms;
  }

  .motion-ready .rsvp-form label,
  .motion-ready .rsvp-form input,
  .motion-ready .rsvp-form select,
  .motion-ready .rsvp-form textarea,
  .motion-ready .rsvp-form button,
  .motion-ready .rsvp-form .rsvp-note {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .7, .25, 1);
  }

  .motion-ready .rsvp.is-visible .rsvp-form :is(label, input, select, textarea, button, .rsvp-note) {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready .rsvp.is-visible .rsvp-form label:nth-of-type(1) { transition-delay: 120ms; }
  .motion-ready .rsvp.is-visible .rsvp-form input:nth-of-type(1) { transition-delay: 180ms; }
  .motion-ready .rsvp.is-visible .rsvp-form label:nth-of-type(2) { transition-delay: 220ms; }
  .motion-ready .rsvp.is-visible .rsvp-form select { transition-delay: 270ms; }
  .motion-ready .rsvp.is-visible .rsvp-form label:nth-of-type(3) { transition-delay: 320ms; }
  .motion-ready .rsvp.is-visible .rsvp-form input:nth-of-type(2) { transition-delay: 370ms; }
  .motion-ready .rsvp.is-visible .rsvp-form label:nth-of-type(4) { transition-delay: 420ms; }
  .motion-ready .rsvp.is-visible .rsvp-form textarea { transition-delay: 470ms; }
  .motion-ready .rsvp.is-visible .rsvp-form button { transition-delay: 540ms; }
  .motion-ready .rsvp.is-visible .rsvp-form .rsvp-note { transition-delay: 600ms; }

  .countdown-values > div:nth-child(1) { animation: soft-breathe 5.4s ease-in-out infinite; }
  .countdown-values > div:nth-child(2) { animation: soft-breathe 5.4s ease-in-out 600ms infinite; }
  .countdown-values > div:nth-child(3) { animation: soft-breathe 5.4s ease-in-out 1200ms infinite; }

  .slider-slide.is-active .slider-visual img {
    animation: slider-ken-burns 7s ease-out both;
  }

  @keyframes ambient-orbit-a {
    from { margin: 0; }
    to { margin: 0; transform: translate3d(calc(var(--ambient-x) + 8px), calc(var(--orb-a-shift) + var(--ambient-y) - 10px), 0) rotate(-4deg); }
  }

  @keyframes ambient-orbit-b {
    from { margin: 0; }
    to { margin: 0; transform: translate3d(calc(var(--ambient-x) * -.45 - 7px), calc(var(--orb-b-shift) + 9px), 0); }
  }

  @keyframes premium-twinkle {
    0%, 100% { opacity: .62; transform: rotate(0deg) scale(.9); }
    50% { opacity: 1; transform: rotate(15deg) scale(1.12); }
  }

  @keyframes soft-breathe {
    0%, 100% { box-shadow: 0 14px 36px rgb(87 59 78 / 3%); }
    50% { box-shadow: 0 22px 48px rgb(87 59 78 / 9%); }
  }

  @keyframes slider-ken-burns {
    from { transform: scale(1.018); }
    to { transform: scale(1.065); }
  }
}

/* Mobile is intentionally composed, not merely shrunk. */
@media (max-width: 699px) {
  .hero {
    align-items: center;
    padding: clamp(2.7rem, 8svh, 5rem) var(--gutter) clamp(5.6rem, 12svh, 7rem);
  }

  .hero-copy {
    width: 100%;
    padding: 1.35rem 1.2rem 1.55rem;
    border-radius: 1.55rem 1.55rem 4.7rem 1.55rem;
    background:
      linear-gradient(150deg, rgb(255 253 251 / 79%), rgb(255 249 249 / 48%)),
      radial-gradient(circle at 100% 0, rgb(232 205 208 / 20%), transparent 44%);
  }

  .hero h1 {
    font-size: clamp(4.45rem, 19vw, 6.6rem);
  }

  .hero-subtitle {
    max-width: 24ch;
  }

  .hero-date {
    max-width: 100%;
    padding-inline: 0.85rem;
    font-size: clamp(0.95rem, 4vw, 1.08rem);
  }

  .hero::before {
    top: -4.5rem;
    right: -7rem;
    width: 18rem;
  }

  .hero::after {
    right: 1rem;
    bottom: 4rem;
    width: 4.6rem;
  }

  .rsvp h2 {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
    letter-spacing: -0.055em;
  }
}

@media (max-width: 360px) {
  .hero-copy {
    padding-inline: 1rem;
  }

  .rsvp h2 {
    font-size: clamp(2.05rem, 10.7vw, 2.6rem);
  }
}


/* =========================================================
   IBENTO BABY SHOWER PREMIUM — POLISH V3
   Softer typography, Great Vibes signature name, safer RSVP,
   refined hero composition and a richer unified motion language.
   ========================================================= */

:root {
  --serif: "Cormorant Garamond", "Baskerville", Georgia, serif;
  --script: "Great Vibes", "Snell Roundhand", "Segoe Script", cursive;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --ink: #514149;
  --muted: #7a6870;
  --rose-deep: #8d5968;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Hero: softer, less boxed, more luxurious ---------- */
.hero {
  isolation: isolate;
}

.hero-copy {
  width: min(100%, 38rem);
  padding: clamp(1.55rem, 3.6vw, 2.8rem) clamp(1.35rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: clamp(1.8rem, 3vw, 2.8rem);
  background:
    linear-gradient(145deg, rgb(255 253 251 / 69%), rgb(255 249 250 / 48%)),
    radial-gradient(circle at 88% 8%, rgb(232 205 208 / 19%), transparent 40%);
  box-shadow:
    0 28px 80px rgb(87 59 78 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 84%);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
  backdrop-filter: blur(14px) saturate(112%);
}

.hero-copy::after {
  position: absolute;
  right: clamp(1.4rem, 4vw, 3rem);
  bottom: clamp(1.1rem, 2.5vw, 1.8rem);
  width: clamp(3.5rem, 8vw, 6rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(141 89 104 / 42%));
  content: "";
  pointer-events: none;
}

.hero-eyebrow {
  max-width: 34ch;
  margin-bottom: clamp(1.15rem, 2.7vw, 1.7rem);
  font-size: clamp(0.66rem, 1vw, 0.78rem);
  letter-spacing: 0.22em;
}

.hero-lead {
  color: #826974;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  margin-block: clamp(0.15rem, 1vw, 0.45rem) clamp(0.35rem, 1.5vw, 0.8rem);
  color: #875665;
  font-family: var(--script);
  font-size: clamp(6rem, 14vw, 10.5rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow: 0 15px 36px rgb(95 67 77 / 8%);
}

.hero-subtitle {
  max-width: 27ch;
  color: #6e5a63;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.32;
}

.hero-date {
  min-height: auto;
  padding: 0.6rem 0.95rem;
  border-color: rgb(141 89 104 / 13%);
  color: #67525b;
  background: rgb(255 253 251 / 54%);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.22rem);
  letter-spacing: 0;
  box-shadow: 0 8px 25px rgb(92 55 69 / 3%), inset 0 1px 0 rgb(255 255 255 / 80%);
}

/* Keep the floating phrase legible above the decorative orb. */
.cover-note {
  z-index: 4;
  right: clamp(2rem, 5vw, 5rem);
  bottom: clamp(2.5rem, 6vw, 5rem);
  max-width: 14ch;
  padding: 0.85rem 1.05rem;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 999px;
  color: #765865;
  background: rgb(255 253 251 / 57%);
  box-shadow: 0 15px 45px rgb(87 59 78 / 7%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--serif);
  line-height: 1.2;
}

/* Decorative spheres stay behind all copy and never steal readability. */
.hero::before,
.hero::after {
  z-index: -1;
  opacity: 0.72;
}

/* ---------- Softer typography throughout ---------- */
.intro h2,
.section-heading h2,
.countdown h2,
.extra-card h2,
.closing p,
.footer-event p:last-child {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.section-heading h2,
.intro h2,
.countdown h2 {
  line-height: 0.98;
}

.section-heading > p:last-child,
.intro-message,
.countdown-copy > p:last-child,
.rsvp-copy > p:last-child,
.detail-card > p:last-child,
.extra-card > p:not(.eyebrow) {
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.65;
}

/* ---------- RSVP: never clip/hyphenate "¿Nos acompañas?" ---------- */
.rsvp {
  overflow: clip;
  background:
    radial-gradient(circle at 91% 82%, rgb(255 255 255 / 66%), transparent 31%),
    radial-gradient(circle at 3% 10%, rgb(255 255 255 / 34%), transparent 25%),
    linear-gradient(135deg, #f2e2e5, #eddde1 55%, #f6eaeb);
}

.rsvp-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}

.rsvp h2 {
  width: min(100%, 8.8ch);
  max-width: 8.8ch;
  margin-block: 0.75rem 1.3rem;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 5.4vw, 5.6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: balance;
}

.rsvp-decoration {
  z-index: 0;
  top: -4rem;
  right: -3rem;
  width: clamp(12rem, 23vw, 19rem);
  height: clamp(12rem, 23vw, 19rem);
  opacity: 0.42;
}

.rsvp-form {
  border-radius: 1.25rem;
  background: rgb(255 253 251 / 89%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rsvp-form :is(input, select, textarea) {
  border-radius: 0.75rem;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}

.rsvp-form :is(input, select, textarea):focus {
  border-color: rgb(141 89 104 / 55%);
  background: #fffdfc;
  box-shadow: 0 0 0 4px rgb(141 89 104 / 8%);
  transform: translateY(-1px);
  outline: none;
}

.rsvp-button {
  border-radius: 999px;
  padding-inline: 1.35rem;
  box-shadow: 0 13px 30px rgb(130 91 105 / 18%);
}

/* ---------- Richer visual rhythm between sections ---------- */
.section-heading {
  position: relative;
}

.section-heading::after,
.intro::before,
.countdown-copy::after,
.rsvp-copy::after {
  display: block;
  width: clamp(3rem, 8vw, 5rem);
  height: 1px;
  margin-top: 1.35rem;
  background: linear-gradient(90deg, rgb(141 89 104 / 48%), transparent);
  content: "";
  transform-origin: left center;
}

.intro::before {
  position: absolute;
  top: clamp(3rem, 8vw, 6rem);
  right: var(--gutter);
  margin: 0;
}

.detail-card,
.extra-card,
.rsvp-form,
.slider-stage,
.map-frame-wrap {
  border-color: rgb(141 89 104 / 10%);
}

.detail-card h3 {
  font-family: var(--serif);
  font-weight: 500;
}

.countdown-values strong {
  font-family: var(--serif);
  font-weight: 500;
}

/* ---------- Desktop composition ---------- */
@media (min-width: 700px) {
  .hero {
    padding-inline: clamp(4rem, 7vw, 7rem);
  }

  .hero-copy {
    width: min(48%, 39rem);
    min-width: 32rem;
  }

  .rsvp {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .rsvp-copy {
    align-self: center;
    padding-right: clamp(1rem, 3vw, 3rem);
  }

  .rsvp h2 {
    width: min(100%, 8ch);
    max-width: 8ch;
  }
}

/* ---------- Mobile polishing ---------- */
@media (max-width: 699px) {
  .hero-copy {
    width: 100%;
    padding: 1.35rem 1.2rem 1.65rem;
    border-radius: 1.75rem;
    background: linear-gradient(145deg, rgb(255 253 251 / 67%), rgb(255 249 250 / 46%));
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
  }

  .hero h1 {
    font-size: clamp(5.8rem, 29vw, 8.4rem);
  }

  .hero-lead {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .hero-subtitle {
    font-size: clamp(1.22rem, 5.6vw, 1.6rem);
  }

  .hero-date {
    white-space: normal;
    text-align: left;
  }

  .rsvp h2 {
    width: min(100%, 8.5ch);
    max-width: 8.5ch;
    font-size: clamp(3.2rem, 15.8vw, 4.55rem);
    line-height: 0.94;
  }

  .rsvp-decoration {
    right: -6rem;
    opacity: 0.28;
  }
}

/* ---------- Premium motion: richer, but still coherent ---------- */
@media (prefers-reduced-motion: no-preference) {
  .opening {
    background-size: 130% 130%;
    animation: premium-bg-drift 14s ease-in-out infinite alternate;
  }

  .hero h1 {
    animation-name: cover-text, signature-glow;
    animation-duration: 920ms, 5.8s;
    animation-timing-function: cubic-bezier(.16,.8,.24,1), ease-in-out;
    animation-delay: 760ms, 1.8s;
    animation-fill-mode: both, both;
    animation-iteration-count: 1, infinite;
  }

  .cover-note {
    animation-name: cover-text, note-float;
    animation-duration: 900ms, 4.8s;
    animation-timing-function: ease-out, ease-in-out;
    animation-delay: 1180ms, 2.2s;
    animation-fill-mode: both, both;
    animation-iteration-count: 1, infinite;
  }

  .motion-ready [data-reveal] .section-heading::after,
  .motion-ready .intro::before,
  .motion-ready .countdown-copy::after,
  .motion-ready .rsvp-copy::after {
    transform: scaleX(0);
    opacity: 0;
    transition: transform 900ms cubic-bezier(.2,.7,.25,1) 280ms, opacity 500ms ease 280ms;
  }

  .motion-ready [data-reveal].is-visible .section-heading::after,
  .motion-ready .intro.is-visible::before,
  .motion-ready .countdown.is-visible .countdown-copy::after,
  .motion-ready .rsvp.is-visible .rsvp-copy::after {
    transform: scaleX(1);
    opacity: 1;
  }

  .motion-ready .detail-card :is(.detail-icon, .eyebrow, h3, p:last-child),
  .motion-ready .extra-card :is(.extra-flower, .eyebrow, h2, p, .text-link) {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 620ms ease, transform 720ms cubic-bezier(.2,.7,.25,1);
  }

  .motion-ready .details.is-visible .detail-card :is(.detail-icon, .eyebrow, h3, p:last-child),
  .motion-ready .extras.is-visible .extra-card :is(.extra-flower, .eyebrow, h2, p, .text-link) {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready .details.is-visible .detail-card .eyebrow,
  .motion-ready .extras.is-visible .extra-card .eyebrow { transition-delay: 100ms; }
  .motion-ready .details.is-visible .detail-card h3,
  .motion-ready .extras.is-visible .extra-card h2 { transition-delay: 180ms; }
  .motion-ready .details.is-visible .detail-card p:last-child,
  .motion-ready .extras.is-visible .extra-card p { transition-delay: 260ms; }
  .motion-ready .extras.is-visible .extra-card .text-link { transition-delay: 330ms; }

  .slider-stage {
    transition: box-shadow 500ms ease, transform 600ms cubic-bezier(.2,.7,.25,1);
  }

  @media (hover: hover) and (pointer: fine) {
    .slider-stage:hover {
      transform: translateY(-4px) scale(1.006);
      box-shadow: 0 30px 70px rgb(87 59 78 / 12%);
    }
  }

  .map-frame-wrap iframe {
    transition: transform 6s ease;
  }

  .map-section.is-visible .map-frame-wrap iframe {
    transform: scale(1.012);
  }

  .rsvp {
    background-size: 140% 140%;
    animation: rsvp-atmosphere 12s ease-in-out infinite alternate;
  }

  .rsvp-decoration {
    animation: premium-orbit-soft 7s ease-in-out infinite alternate;
  }

  @keyframes premium-bg-drift {
    from { background-position: 0% 20%; }
    to { background-position: 100% 80%; }
  }

  @keyframes signature-glow {
    0%, 100% { text-shadow: 0 15px 36px rgb(95 67 77 / 7%); }
    50% { text-shadow: 0 18px 42px rgb(141 89 104 / 15%); }
  }

  @keyframes note-float {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -7px; }
  }

  @keyframes rsvp-atmosphere {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
  }

  @keyframes premium-orbit-soft {
    from { transform: rotate(-7deg) scale(.94); opacity: .32; }
    to { transform: rotate(8deg) scale(1.04); opacity: .52; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .cover-note,
  .opening,
  .rsvp,
  .rsvp-decoration {
    animation: none !important;
  }
}

/* =========================================================
   IBENTO · PREMIUM DREAMY V4 · precision fixes
   - Great Vibes name no longer collides with lead text
   - date/time pill centered
   - removes accidental decorative hairlines
   - RSVP heading cannot hyphenate or clip
   ========================================================= */

/* Remove the extra decorative hairlines that were appearing as stray lines. */
.hero-copy::after,
.section-heading::after,
.intro::before,
.countdown-copy::after,
.rsvp-copy::after {
  display: none !important;
  content: none !important;
}

/* Keep the intentional hero divider with the sparkle; remove only stray lines. */
.hero-rule {
  margin-top: clamp(1.5rem, 3.5vw, 2.15rem);
  margin-bottom: clamp(1rem, 2.4vw, 1.35rem);
}

/* More breathing room between the label, script name and subtitle. */
.hero-lead {
  margin-bottom: clamp(0.45rem, 1.2vw, 0.8rem);
}

.hero h1 {
  position: relative;
  z-index: 2;
  margin-top: clamp(0.45rem, 1.4vw, 0.9rem);
  margin-bottom: clamp(0.7rem, 1.6vw, 1.15rem);
  padding-top: 0.13em;
  font-size: clamp(5.35rem, 12.5vw, 9.25rem);
  line-height: 0.95;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  margin-top: 0.1rem;
}

/* Date/time should feel intentional and centered inside the hero card. */
.hero-date {
  display: flex;
  width: fit-content;
  max-width: min(100%, 31rem);
  margin-inline: auto;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

/* Never let the RSVP title get clipped or hyphenated. */
.rsvp,
.rsvp-copy,
.rsvp h2 {
  overflow: visible;
}

.rsvp h2 {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: balance;
}

@media (min-width: 700px) {
  .hero-copy {
    overflow: visible;
  }

  .hero h1 {
    font-size: clamp(7rem, 10vw, 9.4rem);
  }

  .rsvp h2 {
    font-size: clamp(3.45rem, 4.7vw, 5.15rem);
    line-height: 0.96;
  }
}

@media (max-width: 699px) {
  .hero-copy {
    padding-top: 1.45rem;
    padding-bottom: 1.8rem;
  }

  .hero-lead {
    margin-bottom: 0.6rem;
  }

  .hero h1 {
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    padding-top: 0.15em;
    font-size: clamp(5.25rem, 25vw, 7.2rem);
    line-height: 0.94;
  }

  .hero-subtitle {
    font-size: clamp(1.17rem, 5.15vw, 1.48rem);
    line-height: 1.38;
  }

  .hero-date {
    max-width: 100%;
    padding-inline: 0.9rem;
    font-size: clamp(0.95rem, 4.15vw, 1.08rem);
  }

  .rsvp h2 {
    font-size: clamp(2.95rem, 14vw, 4.2rem);
    line-height: 0.98;
  }
}

/* =========================================================
   IBENTO · PREMIUM DREAMY V5 · centered honoree name
   ========================================================= */
.hero h1 {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}


/* =========================================================
   IBENTO — MOBILE INTRO PERFORMANCE / SMOOTH SCROLL POLISH
   Keep the premium motion while avoiding costly live blur
   during touch scrolling on mobile browsers.
   ========================================================= */
@media (max-width: 699px), (pointer: coarse) {
  .hero-copy {
    /* Backdrop blur is expensive while the whole hero is transforming. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background:
      linear-gradient(145deg, rgb(255 253 251 / 88%), rgb(255 249 250 / 72%)),
      radial-gradient(circle at 88% 8%, rgb(232 205 208 / 18%), transparent 40%);
  }

  .opening-image,
  .hero-copy,
  .hero::before,
  .hero::after,
  .cover-note,
  .scroll-cue {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
  }

  .opening-image {
    /* Keep all scroll-linked work on the compositor. */
    transform: translate3d(0, var(--cover-shift), 0) scale(var(--cover-scale));
  }
}
