:root {
  --ink: #1d2420;
  --wine: #173f35;
  --rose: #8d5a6b;
  --gold: #c49a48;
  --cream: #fbf5ea;
  --paper: #fffdf7;
  --sage: #6f8069;
  --teal: #385d68;
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Cormorant Upright", Georgia, serif;
  --couple-font: "Cormorant Garamond", Georgia, serif;
  --shadow: 0 28px 80px rgba(19, 43, 37, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 214, 175, 0.32), transparent 20rem),
    radial-gradient(circle at 85% 18%, rgba(15, 107, 112, 0.18), transparent 25rem),
    linear-gradient(145deg, #fff8ee 0%, #f8d9d6 42%, #f4eee3 100%);
  font-family: var(--body-font);
  overflow-x: clip;
}

button,
input,
textarea {
  font: inherit;
}

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

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

main {
  position: relative;
  z-index: 1;
}

.petal-field,
.light-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
  overflow: clip;
  contain: paint;
}

.petal {
  position: absolute;
  top: -4rem;
  width: var(--size);
  height: calc(var(--size) * 1.45);
  border-radius: 75% 0 75% 0;
  background: linear-gradient(135deg, rgba(255, 168, 176, 0.95), rgba(255, 232, 205, 0.75));
  opacity: var(--opacity);
  transform: translate3d(var(--x), -10vh, 0) rotate(var(--rotate));
  animation: petal-fall var(--duration) linear var(--delay) infinite;
}

.spark {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(196, 154, 72, 0.78);
  animation: spark-pop 650ms ease-out forwards;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  max-width: 100%;
  padding: 5rem clamp(1rem, 4vw, 5rem) 7rem;
  place-items: center;
  overflow-x: clip;
  /* background removed so the standalone <img> is the single photo (no duplicate) */
  background-image: none;
}


.hero-image {
  position: relative;
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(1.1);
}

.hero-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  overflow: clip;
  contain: paint;
}

.mandap {
  position: absolute;
  bottom: -2rem;
  width: min(54rem, 92vw);
  height: 24rem;
  opacity: 0.32;
}

.mandap span {
  position: absolute;
  bottom: 0;
  width: 0.7rem;
  height: 15rem;
  border-radius: 999px;
  background: linear-gradient(var(--gold), var(--wine));
}

.mandap span:nth-child(1) {
  left: 12%;
}

.mandap span:nth-child(2) {
  left: 31%;
}

.mandap span:nth-child(3) {
  right: 31%;
}

.mandap span:nth-child(4) {
  right: 12%;
}

.canopy {
  position: absolute;
  left: 4%;
  top: 5rem;
  width: 92%;
  height: 5.2rem;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(90deg, var(--wine), var(--rose), var(--gold));
  clip-path: polygon(0 100%, 8% 0, 92% 0, 100% 100%);
}

.lamp {
  position: absolute;
  top: 11rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 195, 0.9), rgba(215, 168, 79, 0.28) 54%, transparent 68%);
}

.lamp-left {
  left: 18%;
}

.lamp-right {
  right: 18%;
}

.invite-shell {
  position: relative;
  width: min(48rem, 100%);
  perspective: 1200px;
}

.envelope {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: min(28rem, 86vw);
  aspect-ratio: 1.58;
  border: 0;
  border-radius: 0.9rem;
  background:
    linear-gradient(32deg, transparent 49.5%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    linear-gradient(148deg, transparent 49.5%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    linear-gradient(180deg, #ead7ba, #8d5a6b);
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: transform 800ms cubic-bezier(.2, .8, .2, 1), opacity 400ms ease, visibility 400ms ease;
}

.envelope:hover,
.envelope:focus-visible {
  transform: translate(-50%, -53%) rotateX(7deg) rotateZ(-1deg);
}

.envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 0.9rem 0.9rem 1.5rem 1.5rem;
  background: linear-gradient(155deg, #f4e7d2 0 50%, transparent 50%);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: top;
  transition: transform 850ms cubic-bezier(.22, 1, .36, 1);
}

.envelope-card {
  position: absolute;
  inset: 18% 12% auto;
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem;
  border-radius: 0.55rem;
  background: var(--paper);
  color: var(--wine);
  box-shadow: 0 18px 45px rgba(98, 29, 44, 0.16);
  transition: transform 850ms cubic-bezier(.22, 1, .36, 1);
}

.envelope-names {
  font-family: "Tangerine", Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 3.3rem);
  line-height: 0.9;
  font-weight: 700;
  display: block;
}


.envelope-card small {
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.envelope-card strong {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 6vw, 3.3rem);
  line-height: 0.9;
}

.wax-seal {
  position: absolute;
  left: 50%;
  bottom: 19%;
  display: grid;
  width: 4.5rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fff8ee;
  background: radial-gradient(circle at 35% 28%, #8d5a6b, var(--wine));
  font-family: "Ballet", cursive;
  font-size: 1.45rem;
  font-weight: 400;
  transform: translateX(-50%);
  font-optical-sizing: auto;
  font-style: normal;
}

.invite-shell.is-open .envelope {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -86%) rotateX(40deg) scale(0.88);
}

.invite-shell.is-open .envelope-flap {
  transform: rotateX(168deg);
}

.invite-shell.is-open .envelope-card {
  transform: translateY(-48%);
}

.invitation-panel {
  position: relative;
  z-index: 2;
  min-height: 33rem;
  padding: clamp(2rem, 6vw, 4.8rem);
  border: 1px solid rgba(98, 29, 44, 0.16);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 154, 72, 0.16), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(251, 245, 234, 0.94));
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateY(2rem) scale(0.96);
  opacity: 0.12;
  transition: transform 900ms cubic-bezier(.22, 1, .36, 1), opacity 600ms ease;
}

/* panel photo wrapper - extend to edges of invitation-panel */
/* panel photo wrapper - basic layout */
/* panel photo wrapper - fill the entire invitation panel */
.panel-photo-wrap {
  position: relative;
  display: block;
  width: calc(100% + clamp(4rem, 12vw, 9.6rem));
  text-align: center;
  margin: 0 0 1rem;
  z-index: 3;
  margin-left: calc(-1 * clamp(2rem, 6vw, 4.8rem));
  margin-right: calc(-1 * clamp(2rem, 6vw, 4.8rem));
  margin-top: calc(-1 * clamp(2rem, 6vw, 4.8rem));
}

.panel-photo-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.05rem;
  left: 0;
  height: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(
    to bottom,
    rgba(251, 245, 234, 0),
    rgba(251, 245, 234, 0.58) 72%,
    rgba(251, 245, 234, 0.86) 100%
  );
  pointer-events: none;
}



/* Adjust photo margins for mobile */
@media (max-width: 560px) {
  .panel-photo-wrap {
    width: calc(100% + clamp(1.8rem, 10vw, 3rem));
    margin-left: calc(-1 * clamp(0.9rem, 5vw, 1.5rem));
    margin-right: calc(-1 * clamp(0.9rem, 5vw, 1.5rem));
    margin-top: calc(-1 * clamp(2rem, 8vw, 3rem));
  }

  .panel-photo-outside {
    width: 100%;
  }
}




/* make the photo fill the wrapper completely */
.panel-photo-outside {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(19, 43, 37, 0.12);
  border: none;
  background-color: transparent;
  padding: 0;

  /* Soft edge fade into the invitation paper */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0 93%, rgba(0,0,0,0.72) 98%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0 93%, rgba(0,0,0,0.72) 98%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;

  /* Softer, more natural blending */
  mix-blend-mode: overlay;
  opacity: 0.92;
}

.invite-shell.is-open .invitation-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-family: "Cormorant Upright", serif;
  --font-size:0.72 rem;
  font-size: clamp(1.2rem, 1vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow2 {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-family: "Cormorant Upright", serif;
  --font-size:0.72 rem;
  font-size: clamp(1.2rem, 1vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
 }

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
  font-family: "Cormorant Upright", serif;
  font-size:1em;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: light;
  letter-spacing:0.05em;

}



h1 {
  color: #7d3345;
  font-family: "Tangerine", Georgia, serif;
  font-size: clamp(3.2rem, 9.5vw, 6.9rem);
  font-weight: 100;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
  margin: 0.25rem 0;
  color: #8b6767;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  font-style: italic;
  font-family: "Tangerine", Georgia, serif;
  font-weight: 100;
}


h1 .name-line {
  max-width: 100%;
  color: #8b6767;
  font-family: "Tangerine", Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 5.9rem);
  font-weight: 100;
  font-style: normal;
  line-height: 0.88;
}

h2 {
  color: var(--wine);
  font-size: clamp(2.6rem, 7vw, 5rem);
}

h3 {
  color: var(--wine);
  font-size: clamp(2rem, 5vw, 3.8rem);
  --text-transform: uppercase;
  font-size: clamp(1.35rem, 3.5vw, 2.4rem);
}

.date-line {
  margin: 1.3rem 0 2rem;
  -- color: #425149;
  font-weight: 100;
  font-family (var(--body-font));
  font-size: clamp(1.5rem, 1.5vw, 2.25rem);
  color: #8b6767
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 auto 2rem;
}

.countdown span {
  display: grid;
  min-height: 5.7rem;
  place-items: center;
  padding: 0.8rem 0.4rem;
  border: 1px solid rgba(98, 29, 44, 0.14);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.55);
}

.countdown strong {
  color: var(--wine);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
}

.countdown small {
  color: #5b665f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions,
.event-tabs,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.primary-action,
.secondary-action,
.map-link,
.submit-btn,
.event-tab {
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.primary-action,
.secondary-action,
.map-link,
.submit-btn {
  display: inline-grid;
  place-items: center;
  padding: 0 1.25rem;
}

.primary-action,
.submit-btn {
  color: var(--paper);
  background: var(--wine);
}

.secondary-action,
.map-link {
  color: var(--wine);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(98, 29, 44, 0.18);
}

.section-dock {
  position: sticky;
  top: 0.7rem;
  z-index: 5;
  display: flex;
  width: min(35rem, calc(100% - 1.5rem));
  margin: -4.5rem auto 4rem;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 14px 40px rgba(62, 21, 28, 0.13);
  backdrop-filter: blur(18px);
}

.section-dock a {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 0.6rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.section-dock a.is-active {
  color: var(--paper);
  background: var(--wine);
}

.our-story-section,
.invitation-section,
.events-section,
.gallery-section,
.rsvp-section {
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.our-story-card,
.invitation-copy {
  width: min(46rem, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid rgba(98, 29, 44, 0.13);
  border-radius: 0.8rem;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 20px 60px rgba(54, 20, 25, 0.12);
  backdrop-filter: blur(16px);
  text-align: center;
}

.our-story-card {
  font-family: "Tangerine", Georgia, serif;
}

.invitation-copy {
  font-family: "Cormorant Upright", Georgia, serif;
}

.our-story-card h3 {
  margin-bottom: 1rem;
  font-family: "Tangerine", Georgia, serif;
  font-size: clamp(3rem, 8vw, 4.6rem);
  text-transform: none;
}

.our-story-card p,
.invitation-copy p {
  margin: 0;
  color: #425149;
  line-height: 1.55;
}

.our-story-card p {
  font-size: clamp(1.15rem, 1.8vw, 2.5rem);
}

.invitation-copy p {
  font-size: clamp(1rem, 1.5vw, 2.35rem);
}

.our-story-card p + p,
.invitation-copy p + p {
  margin-top: 1rem;
}

.invitation-copy .invitation-signoff {
  color: var(--wine);
  font-weight: 700;
}

.section-heading {
  margin-bottom: 1.5 rem;
}

.event-layout,
.rsvp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: stretch;
}

.event-tabs {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.event-tab {
  padding: 0 1.1rem;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(98, 29, 44, 0.16);
}

.event-tab.is-active {
  color: var(--paper);
  background: var(--teal);
}

.event-detail,
.rsvp-form {
  border: 1px solid rgba(98, 29, 44, 0.13);
  border-radius: 0.8rem;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 20px 60px rgba(54, 20, 25, 0.12);
  backdrop-filter: blur(16px);
}

.event-detail {
  display: grid;
  grid-column: 1 / -1;
  align-content: start;
  min-height: 10rem;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.event-detail h3 {
  font-size: clamp(1.35rem, 3.5vw, 2.4rem);
  text-transform: uppercase;
}

.event-kicker {
  margin: 0 0 0.7rem;
  font-size: clamp(0.8rem, 1vw, 0.8rem);

}

.event-detail p:not(.event-kicker) {
  color: #425149;
  font-weight: 300;
}

.gallery-stage {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 28rem) 3.25rem;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.gallery-track {
  position: relative;
  justify-self: center;
  width: min(100%, calc(min(72vh, 46rem) * var(--gallery-aspect, 0.75)), 34rem);
  aspect-ratio: var(--gallery-aspect, 0.75);
  min-height: 0;
  touch-action: pan-y;
  transition: width 350ms ease;
  user-select: none;
}

.memory-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #fffaf2;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(2rem) scale(0.97);
  transition: opacity 350ms ease, transform 500ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.memory-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.memory-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #fffaf2;
}

.memory-visual {
  min-height: 19rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82) 0 0.35rem, transparent 0.4rem 100%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.72) 0 0.42rem, transparent 0.48rem 100%),
    linear-gradient(140deg, var(--wine), var(--rose) 45%, var(--gold));
}

.visual-two {
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.8) 0 0.4rem, transparent 0.48rem 100%),
    linear-gradient(140deg, var(--teal), #83a383 45%, #f0c36f);
}

.visual-three {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0 0.38rem, transparent 0.45rem 100%),
    linear-gradient(140deg, #2c3146, #8d5a6b 48%, #f7dfb8);
}

.memory-visual::before,
.memory-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.memory-slide figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem;
}

.memory-slide strong {
  color: var(--wine);
  font-family: var(--heading-font);
  font-size: 2rem;
  line-height: 1;
}

.memory-slide span {
  color: #425149;
}

.gallery-control {
  position: relative;
  display: grid;
  width: 3.25rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(98, 29, 44, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 30px rgba(54, 20, 25, 0.12);
  cursor: pointer;
}

.gallery-control::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-bottom: 0.18rem solid var(--wine);
  border-left: 0.18rem solid var(--wine);
  transform: rotate(45deg);
}

.gallery-control.next::before {
  transform: rotate(225deg);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.gallery-dots button {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(98, 29, 44, 0.28);
  cursor: pointer;
}

.gallery-dots button.is-active {
  width: 2rem;
  background: var(--wine);
}

.rsvp-form {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.rsvp-form {
  display: grid;
  grid-column: 1 / -1;
  gap: 1rem;
}

.rsvp-form label,
fieldset {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: var(--wine);
  font-weight: 800;
}

fieldset {
  padding: 0;
  border: 0;
}

legend {
  padding: 0 0 0.45rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(98, 29, 44, 0.18);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  outline: 0;
}

input:not([type="range"]),
textarea {
  min-height: 3rem;
  padding: 0.85rem 0.9rem;
}

textarea {
  resize: vertical;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  color: rgba(29, 36, 32, 0.68);
  font-family: Georgia, serif;
  font-size: 0.4rem;
  line-height: 1.45;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.25rem rgba(15, 107, 112, 0.13);
}

.choice-row {
  justify-content: flex-start;
}

.choice-row label {
  display: block;
  cursor: pointer;
}

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row span {
  display: grid;
  min-width: 5.2rem;
  min-height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(98, 29, 44, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.choice-row input:checked + span {
  color: var(--paper);
  background: var(--teal);
}

input[type="range"] {
  accent-color: var(--wine);
}

.guest-readout {
  color: #425149;
  font-weight: 700;
}

.submit-btn {
  width: 100%;
  border: 0;
}

.form-message {
  min-height: 1.4rem;
  margin: 0;
  color: var(--sage);
  font-weight: 800;
}

.rsvp-modal__details {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  text-align: left;
}

.rsvp-modal__details div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(98, 29, 44, 0.12);
}

.rsvp-modal__details div[hidden] {
  display: none;
}

.rsvp-modal__details dt {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-modal__details dd {
  margin: 0;
  color: var(--wine);
  font-size: 1.2rem;
  font-weight: 600;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 36, 32, 0.48);
  backdrop-filter: blur(10px);
}

.video-modal__dialog {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(100%, 31rem);
  padding: clamp(1.35rem, 5vw, 2.1rem);
  border: 1px solid rgba(98, 29, 44, 0.14);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 175, 0.28), transparent 18rem),
    rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.video-modal__dialog h2 {
  font-size: clamp(2.25rem, 8vw, 3.6rem);
}

.video-modal__copy {
  margin: 0;
  color: #425149;
  line-height: 1.6;
}

.video-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.video-modal__actions .is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.video-modal__actions .secondary-action {
  width: 100%;
  border-color: rgba(98, 29, 44, 0.18);
}

.video-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 63, 53, 0.08);
  cursor: pointer;
}

.video-modal__close::before,
.video-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 0.12rem;
  border-radius: 999px;
  background: var(--wine);
}

.video-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.video-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes petal-fall {
  to {
    transform: translate3d(calc(var(--x) + var(--drift)), 110vh, 0) rotate(calc(var(--rotate) + 540deg));
  }
}

@keyframes spark-pop {
  from {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 92vh;
    padding: 3.5rem 0.5rem 5rem;
  }

  .invite-shell {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .invitation-panel {
    min-height: 31rem;
    width: 100%;
    padding-inline: clamp(0.9rem, 5vw, 1.5rem);
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4.15rem);
    font-weight: 100;
  }

  h1 .name-line {
    font-size: clamp(2.5rem, 13vw, 4.15rem);
    font-weight: 100;
  }

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

  .section-dock {
    width: calc(100% - 0.75rem);
    max-width: none;
    margin-bottom: 2rem;
  }

  .section-dock a {
    padding-inline: 0.35rem;
    font-size: 0.82rem;
  }

  .section-heading {
    text-align: center;
  }

  .our-story-section,
  .invitation-section,
  .events-section,
  .gallery-section,
  .rsvp-section {
    width: calc(100% - 1rem);
    max-width: none;
    padding: 3.5rem 0;
  }

  .invitation-text-section {
    width: calc(100% - 1rem);
    max-width: none;
    padding: 3.5rem 0;
  }

  .event-layout,
  .rsvp-grid {
    grid-template-columns: 1fr;
  }

  .event-tabs,
  .choice-row {
    justify-content: center;
  }

  .event-detail,
  .rsvp-form {
    width: 100%;
    text-align: center;
  }

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

  .gallery-control {
    display: none;
  }

  .gallery-track {
    width: min(100%, 27rem);
  }

  .video-modal__actions {
    grid-template-columns: 1fr;
  }
}

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