/* Consolidated site styles. */

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

html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

main {
  display: block;
  overflow: clip;
}

.section {
  isolation: isolate;
  overflow: hidden;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - clamp(2rem, 7vw, 6rem)));
  margin-inline: auto;
}

.section-head {
  min-width: 0;
}

.section-head > *,
.intro-grid > *,
.hero-grid > *,
.venue-grid > *,
.rsvp-grid > * {
  min-width: 0;
}

.section-title {
  max-width: 100%;
  text-wrap: balance;
}

.section-lead {
  line-height: 1.65;
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

.hero {
  min-height: clamp(640px, 100svh, 920px);
}

.hero-content {
  width: 100%;
  max-width: 760px;
}

.hero-actions {
  align-items: center;
}

.hero-actions .button {
  min-width: 170px;
}

.hero-prompt {
  white-space: nowrap;
  min-height: 70px;
}

.sound-button {
  min-height: 44px;
  white-space: nowrap;
}

.hero-orbit {
  pointer-events: none;
}

.hero-video,
.hero-shade {
  pointer-events: none;
}

.intro-copy {
  max-width: 760px;
}

.signature {
  line-height: 1.3;
}

.story-grid,
.icon-grid,
.detail-grid,
.gallery-grid {
  align-items: stretch;
}

.portrait,
.memory,
.icon-card,
.detail-card,
.event-card,
.rsvp-form {
  min-width: 0;
}

.portrait-caption,
.memory-caption {
  max-width: calc(100% - 2.5rem);
  overflow-wrap: anywhere;
}

.event-card h3,
.icon-card h3,
.detail-card h3 {
  overflow-wrap: anywhere;
}

.event-card p,
.icon-card p,
.detail-card p {
  overflow-wrap: break-word;
}

.timeline {
  width: 100%;
  padding-inline: 0;
}

.event {
  min-width: 0;
}

.event-card {
  min-height: 170px;
}

.carousel {
  width: 100%;
  contain: layout paint;
}

.carousel-track {
  will-change: transform;
}

.memory {
  overflow: hidden;
}

.memory img,
.memory video {
  object-position: center;
}

.carousel-controls {
  align-items: center;
}

.carousel-controls button {
  flex: 0 0 44px;
}

.venue-grid {
  min-width: 0;
}

.venue-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.venue-copy h2,
.venue-copy p {
  margin: 0;
}

.venue-copy .button {
  margin-top: 0.5rem;
}

.map {
  width: 100%;
  min-width: 0;
  display: block;
}

.rsvp-form {
  width: 100%;
  min-width: 0;
}

.field {
  min-width: 0;
}

.field label {
  line-height: 1.4;
}

.field input,
.field select,
.field textarea {
  min-height: 48px;
  line-height: 1.4;
}

.field textarea {
  min-height: 120px;
}

.form-message {
  min-height: 1.5em;
  margin: 0;
  line-height: 1.45;
}

.envelope-section,
.scratch-section,
.countdown-section,
.cards-section,
.closing {
  clear: both;
}

.envelope {
  margin-inline: auto;
}

.envelope-note {
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.scratch-message {
  line-height: 1.35;
}

.countdown-unit {
  min-width: 0;
}

.countdown-value {
  line-height: 1;
}

.icon-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.icon-card p {
  margin-top: auto;
  padding-top: 0.5rem;
}

.icon-card .big-icon {
  line-height: 1;
}

.footer {
  clear: both;
  position: relative;
  z-index: 2;
}

.footer .display {
  line-height: 0.9;
}

@media (min-width: 1200px) {
  .hero-content {
    padding-left: 2rem;
  }

  .story-grid {
    gap: 1.5rem;
  }

  .icon-grid {
    gap: 1.25rem;
  }

  .event-card {
    padding: 1.8rem 2rem;
  }
}

@media (max-width: 900px) {
  .section-head {
    align-items: start;
  }

  .section-head h2 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
  }

  .intro-grid {
    gap: 2.5rem;
  }

  .venue-grid,
  .rsvp-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .section {
    padding-block: clamp(4rem, 14vw, 6rem);
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-lead {
    font-size: 1rem;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-prompt {
    bottom: 1rem;
  }

  .sound-button {
    top: 1rem;
    right: 1rem;
  }

  .story-grid {
    gap: 1rem;
  }

  .portrait,
  .portrait:first-child {
    height: min(112vw, 430px);
  }

  .timeline {
    padding-left: 0;
  }

  .event-card {
    min-height: 0;
    padding: 1.25rem;
  }

  .event-card h3 {
    font-size: 1.7rem;
  }

  .event-card p {
    font-size: 0.98rem;
  }

  .memory {
    min-width: 100%;
    height: min(105vw, 390px);
  }

  .venue-copy .button {
    width: 100%;
  }

  .map {
    min-height: 290px;
  }

  .rsvp-form {
    padding: 1.25rem;
  }

  .envelope {
    transform: scale(0.92);
    transform-origin: top center;
    margin-bottom: -1.5rem;
  }
}

/* Single-line section headings requested for all viewport sizes. */
.cards-section .section-title,
.closing .section-title,
.scratch-section .section-title,
.envelope-section .section-title {
  white-space: nowrap !important;
  max-width: none !important;
  font-size: clamp(1.45rem, 5vw, 4.8rem) !important;
  letter-spacing: -.02em;
}
.cards-section .section-title br,
.closing .section-title br,
.scratch-section .section-title br,
.envelope-section .section-title br { display: none !important; }
.cards-section .section-title .accent,
.closing .section-title .accent,
.scratch-section .section-title .accent,
.envelope-section .section-title .accent {
  display: inline !important;
  width: auto !important;
  white-space: nowrap !important;
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 1.25rem);
  }

  .hero-content {
    padding-top: 7rem;
  }

  .display {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }

  .hero-date {
    font-size: 1rem;
  }

  .section-title {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .countdown-grid {
    gap: 0;
  }

  .countdown-unit {
    padding: 1rem 0.25rem;
  }

  .countdown-value {
    font-size: 2.35rem;
  }

  .countdown-label {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .envelope {
    transform: scale(0.82);
    margin-bottom: -3rem;
  }
}

:root {
  --ink: #2b1c2b;
  --plum: #47243f;
  --rose: #bc7079;
  --blush: #f3dfdc;
  --paper: #fbf7f2;
  --cream: #f7ede5;
  --muted: #786b70;
  --line: rgba(71, 36, 63, 0.15);
  --white: #fffdfa;
  --gold: #dfb978;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Newsreader, Georgia, serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin: auto;
}

.eyebrow {
  font:
    600 0.66rem/1.2 "DM Sans",
    sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
}

.display {
  font:
    400 clamp(4.5rem, 10vw, 10rem)/0.82 "DM Serif Display",
    serif;
  letter-spacing: -0.05em;
}

.display em,
.accent {
  color: var(--rose);
  font-style: italic;
}

.section {
  padding: clamp(5rem, 12vw, 10rem) 0;
}

.section-title {
  font:
    400 clamp(3rem, 6vw, 6rem)/0.88 "DM Serif Display",
    serif;
  letter-spacing: -0.04em;
}

.section-lead {
  max-width: 31rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.button {
  border: 1px solid var(--rose);
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  background: var(--rose);
  color: white;
  font:
    600 0.68rem "DM Sans",
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 0.25s,
    background 0.25s;
}

.button:hover {
  transform: translateY(-3px);
  background: #c98089;
}

.button.ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3.3rem;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--plum);
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.playing {
  opacity: 0.54;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(43, 28, 43, 0.96),
      rgba(43, 28, 43, 0.35) 65%,
      rgba(43, 28, 43, 0.58)
    ),
    linear-gradient(0deg, rgba(43, 28, 43, 0.8), transparent 55%);
}

.hero-orbit {
  position: absolute;
  width: 56vw;
  height: 56vw;
  right: -16vw;
  top: 12%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(255, 255, 255, 0.025),
    0 0 0 8rem rgba(255, 255, 255, 0.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 5rem;
}

.hero-content .eyebrow {
  color: #eab6b2;
  margin-bottom: 1.4rem;
}

.hero-date {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 2rem;
  color: #f4dcd8;
  font-size: 1.18rem;
}

.hero-date:before {
  content: "";
  width: 3.4rem;
  height: 1px;
  background: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2.3rem;
}

.hero-prompt {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  color: #f5d9d5;
  background: none;
  border: 0;
  font:
    600 0.62rem "DM Sans",
    sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-prompt-ring {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--gold);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 13px rgba(223, 185, 120, 0.08);
  }
}

.sound-button {
  position: absolute;
  z-index: 3;
  top: 1.4rem;
  right: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: rgba(43, 28, 43, 0.35);
  color: white;
  font:
    600 0.64rem "DM Sans",
    sans-serif;
  letter-spacing: 0.1em;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: 4rem;
}

.quote-mark {
  font: italic 12rem/0.6 "DM Serif Display";
  color: var(--rose);
  opacity: 0.35;
}

.intro-copy {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
}

.signature {
  margin-top: 1.5rem;
  font: italic 1.5rem "DM Serif Display";
  color: var(--rose);
}

.story {
  background: var(--paper);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.portrait {
  height: 560px;
  position: relative;
  overflow: hidden;
  background: var(--plum);
}

.portrait:first-child {
  margin-top: 4rem;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.portrait:hover img {
  transform: scale(1.05);
}

.portrait:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(43, 28, 43, 0.9));
}

.portrait-caption {
  position: absolute;
  z-index: 1;
  bottom: 1.5rem;
  left: 1.6rem;
  color: white;
}

.portrait-caption h3 {
  font: italic 2.4rem "DM Serif Display";
}

.portrait-caption p {
  color: #f3d9d7;
}

.events {
  background: var(--plum);
  color: white;
}

.events .section-lead {
  color: #dfc8c9;
}

.timeline {
  max-width: 880px;
  margin: auto;
  position: relative;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 7.3rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.event {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 2.5rem;
  padding-bottom: 2.6rem;
}

.event:last-child {
  padding-bottom: 0;
}

.event-date {
  text-align: right;
  color: #e9b0aa;
  font:
    600 0.68rem/1.4 "DM Sans",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.event-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 1.5rem 1.7rem;
}

.event-card:before {
  content: "";
  position: absolute;
  left: -2.95rem;
  top: 1.6rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--gold);
  background: var(--plum);
  border-radius: 50%;
}

.event-card h3 {
  font: italic 2rem "DM Serif Display";
}

.event-card p {
  color: #ecdada;
}

.event-meta {
  margin-top: 0.8rem;
  color: var(--gold) !important;
  font:
    600 0.66rem "DM Sans",
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  touch-action: pan-y;
}

.memory {
  min-width: calc(50% - 0.5rem);
  height: 390px;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--plum);
}

.memory img,
.memory video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory:after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(43, 28, 43, 0.9));
}

.memory-caption {
  position: absolute;
  z-index: 1;
  left: 1.4rem;
  bottom: 1.2rem;
  color: white;
  font: italic 1.5rem "DM Serif Display";
}

.carousel-controls {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--plum);
}

.venue {
  background: var(--paper);
}

.venue-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: stretch;
}

.venue-copy {
  padding: 2rem 0;
}

.venue-copy h2 {
  margin: 1rem 0;
}

.venue-copy p {
  color: var(--muted);
  font-size: 1.1rem;
}

.map {
  min-height: 380px;
  border: 0;
  border-radius: 1rem;
  filter: saturate(0.65) sepia(0.12);
  box-shadow: 0 12px 40px rgba(57, 27, 47, 0.12);
}

.rsvp {
  background: var(--blush);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.rsvp-copy h2 {
  margin: 1rem 0;
  font: italic 5rem/0.85 "DM Serif Display";
  color: var(--plum);
}

.rsvp-copy p {
  color: #694a59;
  font-size: 1.15rem;
  max-width: 25rem;
}

.rsvp-form {
  display: grid;
  gap: 1.15rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 18px 60px rgba(57, 27, 47, 0.12);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font:
    600 0.65rem "DM Sans",
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 2px 0 var(--rose);
}

.form-message {
  color: #6a4356;
}

.success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.success.show {
  display: block;
}

.success strong {
  font: italic 2.3rem "DM Serif Display";
  color: var(--plum);
}

.footer {
  background: var(--ink);
  color: #f5dedb;
  text-align: center;
  padding: 4rem 0;
}

.footer .display {
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: white;
}

.footer p {
  margin-top: 0.8rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  background: rgba(25, 13, 24, 0.9);
  padding: 1.5rem;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-height: 85vh;
  max-width: min(100%, 1000px);
  border-radius: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: none;
  color: white;
  font-size: 1.5rem;
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 2rem, 560px);
  }

  .hero-content {
    padding-top: 6rem;
  }

  .hero-orbit {
    width: 100vw;
    height: 100vw;
    right: -42vw;
  }

  .display {
    font-size: clamp(4rem, 19vw, 7rem);
  }

  .intro-grid,
  .venue-grid,
  .rsvp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quote-mark {
    font-size: 7rem;
  }

  .section-head {
    display: block;
  }

  .section-lead {
    margin-top: 1rem;
  }

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

  .portrait,
  .portrait:first-child {
    margin: 0;
    height: 430px;
  }

  .event {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-left: 2rem;
  }

  .event-date {
    text-align: left;
  }

  .timeline:before {
    left: 0.3rem;
  }

  .event-card:before {
    left: -2.05rem;
    top: 1.4rem;
  }

  .memory {
    min-width: 100%;
    height: 360px;
  }

  .rsvp-copy h2 {
    font-size: 4rem;
  }

  .map {
    min-height: 300px;
  }

  .hero-prompt {
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* Final caption alignment override. */
.story .portrait-caption {
  left: 50% !important;
  right: auto !important;
  width: min(90%, 28rem);
  max-width: none;
  text-align: center;
  transform: translateX(-50%);
}

.story .portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center !important;
}

/* Centered Flexbox layout for the couple portraits. */
.story .story-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
}

.story .story-grid .portrait,
.story .story-grid .portrait:first-child,
.story .story-grid .portrait:nth-child(2) {
  flex: 0 1 clamp(280px, 38vw, 520px);
  width: clamp(280px, 38vw, 520px);
  height: clamp(460px, 44vw, 580px) !important;
  margin: 0;
}

.story .story-grid .portrait:first-child {
  transform: translateY(3rem) rotate(-2deg);
}

.story .story-grid .portrait:nth-child(2) {
  transform: translateY(-3rem) rotate(2deg);
}

.story .story-grid .portrait:first-child:hover {
  transform: translateY(1.8rem) rotate(-1deg) !important;
}

.story .story-grid .portrait:nth-child(2):hover {
  transform: translateY(-4.2rem) rotate(1deg) !important;
}

@media (max-width: 700px) {
  .story .story-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .story .story-grid .portrait,
  .story .story-grid .portrait:first-child,
  .story .story-grid .portrait:nth-child(2) {
    flex: 0 1 auto;
    width: min(100%, 360px);
    height: min(112vw, 500px) !important;
  }

  .story .story-grid .portrait:first-child,
  .story .story-grid .portrait:nth-child(2),
  .story .story-grid .portrait:first-child:hover,
  .story .story-grid .portrait:nth-child(2):hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story .story-grid .portrait:first-child,
  .story .story-grid .portrait:nth-child(2) {
    transform: none !important;
  }
}

@keyframes mobilePortraitReveal {
  from {
    opacity: 0;
    transform: translateX(-28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 700px) {
  .story .story-grid {
    position: relative;
    padding: 1rem 0 2rem;
  }

  .story .story-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(transparent, var(--gold), transparent);
    opacity: 0.5;
  }

  .story .story-grid .portrait,
  .story .story-grid .portrait:first-child,
  .story .story-grid .portrait:nth-child(2) {
    position: relative;
    z-index: 1;
    width: min(88vw, 360px);
    height: min(116vw, 500px) !important;
    border: 1px solid rgba(223, 185, 120, 0.5);
    box-shadow: 0 18px 42px rgba(71, 36, 63, 0.18);
    animation: mobilePortraitReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .story .story-grid .portrait:nth-child(2) {
    align-self: flex-end;
    animation-name: mobilePortraitRevealRight;
    animation-delay: 0.16s;
  }

  .story .story-grid .portrait:first-child {
    align-self: flex-start;
  }

  .story .story-grid .portrait:focus-within,
  .story .story-grid .portrait:active {
    transform: scale(1.015) !important;
    box-shadow: 0 24px 48px rgba(71, 36, 63, 0.26);
  }

  .story .story-grid .portrait-caption {
    bottom: 1.25rem;
    width: 84%;
    font-size: 0.95rem;
  }

  .story .story-grid .portrait-caption h3 {
    font-size: 2rem;
  }
}

@keyframes mobilePortraitRevealRight {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .story .story-grid .portrait,
  .story .story-grid .portrait:nth-child(2) {
    animation: none !important;
  }
}

/* Reference-inspired scratch ticket: paper texture, ticket edges, and reveal color shift. */
.scratch-card.readable-ticket {
  width: min(700px, calc(100vw - 2rem));
  height: 390px;
  border: 1px solid rgba(107, 54, 95, 0.72);
  border-radius: 1.7rem;
  overflow: visible;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(107, 54, 95, 0.12) 0 2px,
      transparent 2px 14px
    ),
    #f7e8d3;
  box-shadow: 0 24px 70px rgba(107, 54, 95, 0.2);
  transition:
    background 0.9s ease,
    box-shadow 0.9s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scratch-card.readable-ticket::before,
.scratch-card.readable-ticket::after {
  width: 34px;
  height: 34px;
  background: var(--paper);
  border: 1px solid rgba(107, 54, 95, 0.12);
  box-shadow: 0 0 0 5px #f7e8d3;
}

.scratch-card.readable-ticket::before {
  left: -17px;
}

.scratch-card.readable-ticket::after {
  right: -17px;
}

.scratch-card.readable-ticket canvas {
  border-radius: 1.7rem;
  cursor: grab;
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scratch-card.readable-ticket canvas:active {
  cursor: grabbing;
}

.scratch-card.readable-ticket .scratch-message {
  inset: 1rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(107, 54, 95, 0.38);
  border-radius: 1.1rem;
  color: #4b2348;
  text-align: center;
  background: linear-gradient(135deg, #174c4a 0%, #8e4d62 52%, #d39a54 100%);
}

.scratch-card.readable-ticket .scratch-message strong {
  color: #8e4d62;
  letter-spacing: 0.02em;
}

.scratch-card.readable-ticket.revealed {
  background:
    radial-gradient(
      circle at 22% 22%,
      rgba(255, 255, 255, 0.35),
      transparent 25%
    ),
    linear-gradient(135deg, #f2b880 0%, #d87578 48%, #6b365f 100%);
  box-shadow:
    0 0 0 7px rgba(223, 185, 120, 0.25),
    0 30px 85px rgba(107, 54, 95, 0.3);
  transform: translateY(-5px) rotate(-0.5deg);
}

.scratch-card.readable-ticket.revealed .scratch-message {
  border-color: rgba(255, 247, 229, 0.72);
  color: #fff7e5;
}

@media (max-width: 760px) {
  .scratch-card.readable-ticket {
    width: min(700px, calc(100vw - 1.5rem));
    height: min(62vw, 340px);
    min-height: 250px;
  }
}

.scratch-instruction {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  color: #4b2348;
  text-align: center;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.scratch-instruction em {
  font: italic clamp(2rem, 5vw, 3rem) "DM Serif Display";
}

.scratch-instruction span {
  font:
    700 0.68rem "DM Sans",
    sans-serif;
  letter-spacing: 0.16em;
}

.scratch-instruction b {
  margin-top: 1.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.68);
  font:
    700 0.66rem "DM Sans",
    sans-serif;
  letter-spacing: 0.14em;
}

.scratch-card.is-scratching .scratch-instruction,
.scratch-card.revealed .scratch-instruction {
  opacity: 0;
  transform: scale(0.96);
}

/* Reference ZIP scratch-card skin and interaction layers. */
.scratch-instruction {
  display: none !important;
}

.scratch-card.readable-ticket {
  width: min(560px, calc(100vw - 2rem));
  height: 310px;
  border-radius: 22px;
  background: linear-gradient(135deg, #5a294f 0%, #a94e6b 48%, #d58b75 100%);
  box-shadow: 0 24px 70px rgba(71, 36, 63, 0.25);
  transform: translateZ(0);
}

.scratch-card.readable-ticket:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 30px 85px rgba(71, 36, 63, 0.3);
}

.scratch-card.readable-ticket::before,
.scratch-card.readable-ticket::after {
  width: 30px;
  height: 30px;
  background: var(--cream);
}

.scratch-card.readable-ticket::before {
  left: -15px;
}

.scratch-card.readable-ticket::after {
  right: -15px;
}

.scratch-card.readable-ticket canvas {
  border-radius: 22px;
  cursor: crosshair;
}

.scratch-card.readable-ticket.revealed {
  background: linear-gradient(135deg, #d78b72, #bc6076 50%, #6b365f);
  box-shadow:
    0 0 0 6px rgba(223, 185, 120, 0.2),
    0 30px 90px rgba(71, 36, 63, 0.32);
}

@media (max-width: 760px) {
  .scratch-card.readable-ticket {
    width: min(560px, calc(100vw - 1.5rem));
    height: 270px;
  }
}

/* Editorial portrait layout: intentionally staggered on larger screens. */
.story-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
}

.story-grid .portrait {
  height: clamp(460px, 44vw, 580px);
  border-radius: 2.25rem 0.75rem 2.25rem 0.75rem;
  box-shadow: 0 18px 45px rgba(71, 36, 63, 0.14);
}

.story-grid .portrait:first-child {
  margin-top: clamp(2rem, 8vw, 7rem);
}

.story-grid .portrait:nth-child(2) {
  margin-top: 0;
  border-radius: 0.75rem 2.25rem 0.75rem 2.25rem;
}

.story-grid .portrait:first-child::after,
.story-grid .portrait:nth-child(2)::after {
  display: none;
}

.story-grid .portrait:first-child::before,
.story-grid .portrait:nth-child(2)::before {
  background: none;
  outline: 1px solid rgba(223, 185, 120, 0.46);
  outline-offset: -0.7rem;
}

.story-grid .portrait-caption {
  bottom: 1.5rem;
  background: transparent !important;
  text-shadow: 0 2px 14px rgba(43, 28, 43, 0.75);
}

.story .portrait,
.story .portrait:first-child,
.story .portrait:nth-child(2) {
  height: clamp(460px, 44vw, 580px) !important;
}

.story .portrait-caption {
  background: transparent !important;
  left: 50% !important;
  right: auto !important;
  width: min(90%, 28rem);
  max-width: none;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .story-grid .portrait,
  .story-grid .portrait:first-child,
  .story-grid .portrait:nth-child(2) {
    height: min(112vw, 500px);
    margin: 0;
  }

  .story .portrait,
  .story .portrait:first-child,
  .story .portrait:nth-child(2) {
    height: min(112vw, 500px) !important;
  }
}

/* expanded invitation experience */
.hero-video {
  z-index: 0;
}

.hero-shade {
  z-index: 1;
}

.hero-content,
.hero-prompt,
.sound-button {
  z-index: 4;
}

.hero-content {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero.playing .hero-content {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-copy,
.hero h1,
.hero-date,
.hero-actions {
  position: relative;
  z-index: 5;
  text-shadow: 0 2px 24px rgba(20, 8, 18, 0.5);
}

.envelope-section {
  background: var(--paper);
  text-align: center;
}

.envelope {
  width: min(440px, 88vw);
  height: 270px;
  margin: 2rem auto 0;
  position: relative;
  perspective: 900px;
  cursor: pointer;
}

.envelope-back {
  position: absolute;
  inset: 25px 0 0;
  background: #e9c5bb;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(71, 36, 63, 0.2);
}

.envelope-front {
  position: absolute;
  inset: 25px 0 0;
  background: linear-gradient(145deg, #f0cfc7, #d99791);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
  border-radius: 8px;
}

.envelope-flap {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 145px;
  background: #f4d8d1;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 3;
  border-radius: 8px;
}

.envelope-seal {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 110px;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rose);
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(71, 36, 63, 0.2);
  transition: opacity 0.3s;
}

.envelope.open .envelope-flap {
  transform: rotateX(180deg);
}

.envelope.open .envelope-seal {
  opacity: 0;
}

.envelope-note {
  position: absolute;
  z-index: 1;
  top: 42px;
  left: 8%;
  width: 84%;
  height: 180px;
  background: var(--white);
  padding: 2.2rem 1rem;
  color: var(--plum);
  transition: transform 0.8s 0.15s;
}

.envelope.open .envelope-note {
  transform: translateY(-95px);
}

.scratch-section,
.countdown-section,
.info-section {
  background: var(--cream);
}

.scratch-card {
  width: min(310px, 80vw);
  height: min(310px, 80vw);
  margin: 2rem auto;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: var(--plum);
  box-shadow: var(--shadow);
}

.scratch-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.scratch-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: white;
}

.scratch-message strong {
  display: block;
  font: italic 2rem "DM Serif Display";
  color: var(--gold);
}

.scratch-hint {
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.countdown-section {
  background: var(--plum);
  color: white;
  text-align: center;
}

.countdown-section .section-lead {
  color: #e5cccc;
  margin: 1rem auto 0;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 720px;
  margin: 3rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-unit {
  padding: 1.4rem 0.5rem;
}

.countdown-value {
  display: block;
  font: italic clamp(2.5rem, 6vw, 5rem) "DM Serif Display";
  color: var(--gold);
}

.countdown-label {
  font:
    600 0.62rem "DM Sans",
    sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e8c9c7;
}

.cards-section {
  background: var(--paper);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.icon-card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 1rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.icon-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.icon-card .big-icon {
  font-size: 2rem;
  color: var(--rose);
  margin-bottom: 1rem;
}

.icon-card h3 {
  font: italic 1.6rem "DM Serif Display";
  color: var(--plum);
  margin-bottom: 0.4rem;
}

.icon-card p {
  color: var(--muted);
}

.closing {
  background: var(--plum);
  color: white;
  text-align: center;
}

.closing .section-title {
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.closing p:not(.eyebrow) {
  max-width: 32rem;
  margin: 1.2rem auto;
  color: #e5cccc;
  font-size: 1.2rem;
}

@media (max-width: 760px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .envelope {
    height: 230px;
  }

  .envelope-note {
    height: 155px;
  }

  .envelope-flap {
    height: 125px;
  }

  .envelope-seal {
    top: 95px;
  }
}

.hero-content,
.hero-copy,
.hero-prompt,
.sound-button {
  z-index: 20 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-video {
  z-index: 0 !important;
}

.hero-shade {
  z-index: 1 !important;
}

.envelope.open .envelope-note {
  z-index: 5 !important;
  transform: translateY(-105px);
}

.hero-content {
  position: relative !important;
  display: block !important;
  color: #fff !important;
  isolation: isolate;
}

.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2rem -3rem;
  background: radial-gradient(
    ellipse at center,
    rgba(43, 28, 43, 0.55),
    transparent 72%
  );
  pointer-events: none;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-date,
.hero-content .hero-actions {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.hero-content .hero-actions {
  display: flex !important;
}

.hero-content h1 {
  color: #fff !important;
}

.hero-content .hero-date {
  color: #f4dcd8 !important;
}

.hero-content .button {
  position: relative;
  z-index: 2;
}

.hero-content {
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.hero.video-playing .hero-content {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.hero.video-playing .hero-prompt {
  opacity: 0;
  pointer-events: none;
}

.hero-shade {
  display: none !important;
}

.hero-video.playing {
  opacity: 1 !important;
}

.hero.video-playing .hero-content {
  transition: none !important;
}

.hero.video-playing .hero-prompt {
  transition: none !important;
}

.carousel-controls #prev {
  display: none;
}

.carousel-controls {
  justify-content: center;
}

.carousel-controls #prev {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.carousel-controls {
  justify-content: flex-start;
}

.scratch-card {
  width: min(440px, calc(100vw - 2rem));
  height: 250px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(71, 36, 63, 0.2);
  background: var(--plum);
  overflow: visible;
}

.scratch-card:before,
.scratch-card:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--cream);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.scratch-card:before {
  left: -12px;
}

.scratch-card:after {
  right: -12px;
}

.scratch-card canvas {
  border-radius: 18px;
  overflow: hidden;
}

.scratch-message {
  border: 1px dashed rgba(255, 255, 255, 0.32);
  inset: 12px;
  border-radius: 10px;
}

.scratch-message strong {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
}

.venue-gallery {
  background: var(--paper);
}

.venue-gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: 250px 250px;
  gap: 1rem;
}

.venue-photo {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--plum);
  cursor: pointer;
}

.venue-photo:first-child {
  grid-row: span 2;
}

.venue-photo:nth-child(4) {
  grid-column: span 2;
}

.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.4s;
}

.venue-photo:hover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.venue-photo:after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(43, 28, 43, 0.8));
  pointer-events: none;
}

.venue-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 0.9rem;
  color: #fff;
  font: italic 1.3rem "DM Serif Display";
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 760px) {
  .venue-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px 180px;
  }

  .venue-photo:first-child {
    grid-row: span 2;
  }

  .venue-photo:nth-child(4) {
    grid-column: span 2;
  }

  .venue-photo figcaption {
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .venue-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 210px);
  }

  .venue-photo:first-child,
  .venue-photo:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }
}

.section {
  position: relative;
}

.section > .float-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.22;
  color: var(--rose);
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.6rem, 3vw, 3rem);
  filter: drop-shadow(0 5px 8px rgba(71, 36, 63, 0.1));
  animation: floatDecor 8s ease-in-out infinite;
}

.section > .float-deco:nth-of-type(1) {
  top: 10%;
  right: 5%;
}

.section > .float-deco:nth-of-type(2) {
  bottom: 12%;
  left: 4%;
  font-size: clamp(1.3rem, 2.3vw, 2.2rem);
  color: var(--gold);
  animation-delay: -3s;
}

.section > .float-deco:nth-of-type(3) {
  top: 45%;
  right: 2%;
  font-size: 1.2rem;
  animation-delay: -5s;
}

@keyframes floatDecor {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }

  50% {
    transform: translate3d(10px, -18px, 0) rotate(12deg);
  }
}

.button,
.carousel-controls button,
.sound-button,
.hero-prompt {
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s,
    background 0.3s,
    color 0.3s;
}

.button:hover,
.carousel-controls button:hover,
.sound-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 25px rgba(71, 36, 63, 0.2);
}

.button:active,
.carousel-controls button:active {
  transform: translateY(-1px) scale(0.98);
}

a:not(.button) {
  position: relative;
  transition: color 0.25s;
}

a:not(.button):after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.2rem;
  height: 1px;
  background: currentColor;
  transition: right 0.3s ease;
}

a:not(.button):hover:after {
  right: 0;
}

.icon-card,
.portrait,
.memory,
.venue-photo,
.event-card {
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s;
}

.icon-card:hover,
.event-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(71, 36, 63, 0.14);
}

.portrait:hover,
.memory:hover,
.venue-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(71, 36, 63, 0.18);
}

.portrait img,
.memory img,
.memory video,
.venue-photo img {
  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.5s;
}

.portrait:hover img,
.memory:hover img,
.venue-photo:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.hero-actions .button:nth-child(2) {
  animation: buttonBreath 3.5s ease-in-out infinite;
}

@keyframes buttonBreath {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(188, 112, 121, 0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(188, 112, 121, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section > .float-deco,
  .hero-actions .button:nth-child(2) {
    animation: none !important;
  }

  .button,
  .icon-card,
  .portrait,
  .memory,
  .venue-photo,
  .event-card {
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .scratch-card {
    height: 220px;
    width: min(440px, calc(100vw - 2rem));
  }
}

.hero:not(.video-started):not(.video-ended) .hero-content,
.hero.video-started:not(.video-ended) .hero-content {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero:not(.video-ended) .hero-video {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero:not(.video-ended) .hero-prompt {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 2rem !important;
  transform: translateX(-50%) !important;
}

.hero.video-ended .hero-video {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero.video-ended .hero-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.hero.video-ended .hero-prompt {
  display: none !important;
}

.hero-video {
  transition:
    opacity 0.9s ease,
    filter 0.9s ease !important;
}

.hero.video-ended .hero-video {
  display: block !important;
  opacity: 0 !important;
  visibility: visible !important;
  filter: blur(4px) !important;
}

.hero-content {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem) !important;
  text-align: center !important;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.hero.video-ended .hero-content {
  transform: translateY(0) !important;
}

.hero-content .hero-date {
  justify-content: center !important;
}

.hero-content .hero-actions {
  justify-content: center !important;
}

.venue-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 260px);
  gap: 1rem;
}

.venue-gallery-grid .venue-photo,
.venue-gallery-grid .venue-photo:first-child,
.venue-gallery-grid .venue-photo:nth-child(4) {
  grid-column: auto;
  grid-row: auto;
}

.venue-gallery-grid .venue-photo img {
  object-position: center;
}

.venue-gallery-grid .venue-photo:nth-child(2) img {
  object-position: center 30%;
}

.venue-gallery-grid .venue-photo:nth-child(3) img {
  object-position: center 20%;
}

.venue-gallery-grid .venue-photo:nth-child(5) img {
  object-position: center 25%;
}

@media (max-width: 760px) {
  .venue-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 210px);
  }
}

@media (max-width: 420px) {
  .venue-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 210px);
  }
}

.venue-gallery-grid {
  display: grid !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

.venue-gallery-grid > .venue-photo {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.venue-gallery-grid > .venue-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.venue-gallery-grid {
  grid-template-columns: 1.15fr 0.82fr 1fr !important;
  grid-template-rows: 190px 240px 170px !important;
  gap: 1rem !important;
}

.venue-gallery-grid > .venue-photo:nth-child(1) {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}

.venue-gallery-grid > .venue-photo:nth-child(2) {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.venue-gallery-grid > .venue-photo:nth-child(3) {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
}

.venue-gallery-grid > .venue-photo:nth-child(4) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.venue-gallery-grid > .venue-photo:nth-child(5) {
  grid-column: 1 / span 2 !important;
  grid-row: 3 !important;
}

.venue-gallery-grid > .venue-photo:nth-child(6) {
  grid-column: 3 !important;
  grid-row: 3 !important;
}

.venue-gallery-grid > .venue-photo {
  transform: translateY(0);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.6s,
    filter 0.6s;
}

.venue-gallery-grid > .venue-photo:nth-child(2) {
  transform: translateY(14px);
}

.venue-gallery-grid > .venue-photo:nth-child(4) {
  transform: translateY(-10px);
}

.venue-gallery-grid > .venue-photo:nth-child(5) {
  transform: translateY(8px);
}

.venue-gallery-grid > .venue-photo:hover {
  transform: translateY(-8px) scale(1.025) rotate(-0.5deg) !important;
  z-index: 3;
  box-shadow: 0 24px 55px rgba(71, 36, 63, 0.25);
  filter: saturate(1.1);
}

@media (max-width: 760px) {
  .venue-gallery-grid {
    grid-template-columns: 1.05fr 0.95fr !important;
    grid-template-rows: 230px 180px 220px 170px !important;
  }

  .venue-gallery-grid > .venue-photo:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
  }

  .venue-gallery-grid > .venue-photo:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .venue-gallery-grid > .venue-photo:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .venue-gallery-grid > .venue-photo:nth-child(4) {
    grid-column: 1 / span 2 !important;
    grid-row: 3 !important;
  }

  .venue-gallery-grid > .venue-photo:nth-child(5) {
    grid-column: 1 !important;
    grid-row: 4 !important;
  }

  .venue-gallery-grid > .venue-photo:nth-child(6) {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }
}

@media (max-width: 420px) {
  .venue-gallery-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(6, 210px) !important;
  }

  .venue-gallery-grid > .venue-photo:nth-child(n) {
    grid-column: 1 !important;
    grid-row: auto !important;
    transform: none;
  }

  .venue-gallery-grid > .venue-photo:hover {
    transform: translateY(-5px) scale(1.015) !important;
  }
}

/* Temporary developer helper. Remove this block and its script when no longer needed. */
.dev-video-toggle {
  display: block;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  padding: 0.55rem 0.75rem;
  border: 1px dashed #bc7079;
  border-radius: 999px;
  background: #fffdfa;
  color: #47243f;
  font:
    600 0.65rem "DM Sans",
    sans-serif;
  cursor: pointer;
}

.section > .float-deco.tiny {
  font-size: 0.8rem;
  opacity: 0.34;
}

.section > .float-deco.small {
  font-size: 1.35rem;
  opacity: 0.3;
}

.section > .float-deco.medium {
  font-size: 2.25rem;
  opacity: 0.22;
}

.section > .float-deco.large {
  font-size: clamp(3.5rem, 7vw, 6rem);
  opacity: 0.12;
}

.section > .float-deco.gold {
  color: var(--gold);
}

.section > .float-deco.plum {
  color: var(--plum);
}

.section > .float-deco.cream {
  color: #f4cfc8;
}

.scratch-card {
  width: min(560px, calc(100vw - 2rem));
  height: 310px;
  border-radius: 22px;
  background: linear-gradient(135deg, #5a294f 0%, #a94e6b 48%, #d58b75 100%);
  box-shadow: 0 24px 70px rgba(71, 36, 63, 0.25);
  transform: translateZ(0);
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}

.scratch-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 30px 85px rgba(71, 36, 63, 0.3);
}

.scratch-card:before,
.scratch-card:after {
  background: var(--cream);
  width: 30px;
  height: 30px;
}

.scratch-card:before {
  left: -15px;
}

.scratch-card:after {
  right: -15px;
}

.scratch-card canvas {
  border-radius: 22px;
  cursor: crosshair;
}

.scratch-message {
  inset: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.14)
  );
  backdrop-filter: blur(2px);
}

.scratch-message strong {
  font-size: clamp(2rem, 6vw, 3.1rem);
  letter-spacing: 0.01em;
}

.scratch-message p:last-child {
  color: #f9d8c8;
}

.scratch-card.revealed {
  background: linear-gradient(135deg, #d78b72, #bc6076 50%, #6b365f);
  box-shadow:
    0 0 0 6px rgba(223, 185, 120, 0.2),
    0 30px 90px rgba(71, 36, 63, 0.32);
}

.scratch-card.revealed .scratch-message {
  border-color: var(--gold);
}

.confetti-burst {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: visible;
}

.confetti-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 20px;
  border-radius: 3px;
  background: var(--c);
  animation: confettiFly 1.5s cubic-bezier(0.15, 0.75, 0.25, 1) forwards;
  transform: rotate(var(--r));
}

.ribbon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 110px;
  border-radius: 50%;
  background: var(--c);
  animation: ribbonFly 1.7s ease-out forwards;
  transform-origin: top;
}

@keyframes confettiFly {
  to {
    translate: var(--x) var(--y);
    rotate: var(--spin);
    opacity: 0;
  }
}

@keyframes ribbonFly {
  to {
    translate: var(--x) var(--y);
    rotate: var(--spin);
    opacity: 0;
  }
}

.scratch-card.new-scratch {
  background: linear-gradient(
    120deg,
    #4d274e,
    #8f416d 35%,
    #d59a72 68%,
    #6a3b68
  );
  overflow: hidden;
}

.scratch-card.new-scratch:after {
  z-index: 10;
}

.scratch-card.new-scratch canvas {
  z-index: 4;
  transition:
    opacity 0.6s,
    transform 0.6s;
}

.scratch-card.new-scratch canvas:active {
  cursor: grabbing;
}

.scratch-shimmer {
  position: absolute;
  z-index: 5;
  inset: -40%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.32) 48%,
    transparent 54%
  );
  animation: foilSweep 4s ease-in-out infinite;
}

.scratch-progress {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 27px;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  pointer-events: none;
}

.scratch-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.25s;
}

.scratch-spark {
  position: absolute;
  z-index: 7;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff2c8;
  box-shadow: 0 0 14px #fff2c8;
  pointer-events: none;
  animation: sparkPop 0.6s ease-out forwards;
}

@keyframes foilSweep {
  0%,
  35% {
    transform: translateX(-25%) rotate(12deg);
  }

  70%,
  100% {
    transform: translateX(25%) rotate(12deg);
  }
}

@keyframes sparkPop {
  to {
    transform: translate(var(--sx), var(--sy)) scale(0);
    opacity: 0;
  }
}

.scratch-status {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #fff5df;
  font:
    600 0.62rem "DM Sans",
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(43, 28, 43, 0.35);
  pointer-events: none;
}

.scratch-card.revealed .scratch-status {
  color: var(--gold);
}

.scratch-card.readable-ticket {
  background: linear-gradient(135deg, #4b2348 0%, #76345d 48%, #ba5968 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.scratch-card.readable-ticket.revealed {
  background: linear-gradient(135deg, #174c4a 0%, #8e4d62 52%, #d39a54 100%);
  box-shadow:
    0 0 0 7px rgba(223, 185, 120, 0.22),
    0 28px 80px rgba(23, 76, 74, 0.3);
}

.scratch-card.readable-ticket .scratch-status {
  color: #3d2140;
  text-shadow: none;
  background: #f6e8cf;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
}

.scratch-card.readable-ticket.revealed .scratch-status {
  color: #fff7e5;
  background: rgba(23, 76, 74, 0.65);
}

@media (max-width: 760px) {
  .scratch-card {
    height: 270px;
    width: min(560px, calc(100vw - 1.5rem));
  }
}

.section-title,
.display {
  margin: 0;
  max-width: 100%;
  text-wrap: balance;
}

/* Final scratch-ticket theme: readable foil before scratching, jewel tones after. */
.scratch-card.readable-ticket {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf0 0%, #f5e5c8 52%, #ead0a3 100%);
  border: 1px solid rgba(91, 43, 67, 0.28);
  box-shadow: 0 22px 55px rgba(68, 37, 52, 0.18);
  transition:
    background 0.65s ease,
    box-shadow 0.65s ease,
    transform 0.35s ease;
}

.scratch-card.readable-ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 13px,
    rgba(255, 255, 255, 0.58) 14px 16px,
    transparent 17px 29px
  );
  mix-blend-mode: soft-light;
}

.scratch-card.readable-ticket .scratch-message {
  z-index: 1;
  color: #40203a;
  text-shadow: none;
}

.scratch-card.readable-ticket .scratch-message strong,
.scratch-card.readable-ticket .scratch-message p {
  color: #40203a;
}

.scratch-card.readable-ticket canvas {
  z-index: 3;
  border-radius: inherit;
  cursor: grab;
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.scratch-card.readable-ticket canvas:active {
  cursor: grabbing;
}

.scratch-card.readable-ticket.revealed {
  background: linear-gradient(
    135deg,
    #174c4a 0%,
    #482b50 42%,
    #c05b61 72%,
    #d39a54 100%
  );
  box-shadow:
    0 0 0 7px rgba(211, 154, 84, 0.18),
    0 28px 80px rgba(23, 76, 74, 0.3);
}

.scratch-card.readable-ticket.revealed .scratch-message,
.scratch-card.readable-ticket.revealed .scratch-message strong,
.scratch-card.readable-ticket.revealed .scratch-message p {
  color: #fffaf0;
}

.scratch-card.readable-ticket.revealed .scratch-message strong {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.25);
}

.section-title .accent,
.display em {
  display: inline-block;
  white-space: nowrap;
}

.section-head {
  align-items: flex-end;
}

.section-head > div {
  flex: 0 1 auto;
}

.section-head .section-lead {
  flex: 0 1 31rem;
  margin: 0;
}

.section-lead {
  margin: 0;
  line-height: 1.7;
  text-wrap: pretty;
}

.intro-copy,
.venue-copy,
.rsvp-copy {
  line-height: 1.55;
}

.intro-copy p,
.venue-copy p,
.rsvp-copy p {
  max-width: 42rem;
  margin: 0;
}

.venue-copy p,
.rsvp-copy p {
  line-height: 1.7;
}

.event-card h3,
.icon-card h3,
.detail-card h3,
.portrait-caption h3,
.memory-caption {
  margin: 0 0 0.55rem;
  line-height: 1.05;
  text-wrap: balance;
}

.event-card p,
.icon-card p,
.detail-card p,
.portrait-caption p,
.memory-caption {
  margin: 0;
  line-height: 1.6;
  text-wrap: pretty;
}

.eyebrow {
  line-height: 1.35;
  margin: 0 0 0.8rem;
}

.hero-content .hero-date {
  margin: 2rem 0 0;
  line-height: 1.4;
}

.hero-actions {
  margin-top: 2.3rem;
}

.rsvp-copy h2 {
  margin: 1rem 0 1.2rem;
  line-height: 0.9;
}

.form-message {
  margin: 0;
  min-height: 1.5em;
}

.success p {
  margin: 0.6rem 0 0;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .section-head {
    align-items: flex-start;
  }

  .section-head .section-lead {
    margin-top: 1rem;
  }

  .section-title,
  .display {
    max-width: 100%;
  }

  .intro-copy p,
  .venue-copy p,
  .rsvp-copy p {
    max-width: none;
  }

  .section-lead {
    line-height: 1.6;
  }

  .event-card h3,
  .icon-card h3,
  .detail-card h3 {
    line-height: 1.1;
  }
}

.section > .float-deco.hero-bloom {
  font-size: clamp(5rem, 12vw, 11rem);
  opacity: 0.08;
  line-height: 1;
}

.section > .float-deco.giant-bloom {
  font-size: clamp(7rem, 18vw, 15rem);
  opacity: 0.055;
  line-height: 1;
}

.section > .float-deco.flower-a {
  font-family: "DM Serif Display", serif;
}

.section > .float-deco.flower-b {
  font-family: Georgia, serif;
  font-style: italic;
}

.section > .float-deco.flower-c {
  font-family: "Newsreader", serif;
}

.freelanso-watermark {
  position: fixed;
  left: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
  z-index: 18;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(71, 36, 63, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.76);
  backdrop-filter: blur(12px);
  color: var(--plum);
  font:
    600 0.55rem "DM Sans",
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(71, 36, 63, 0.12);
  animation: watermarkFloat 4s ease-in-out infinite;
}

/* Restore the full decorative floral treatment in the normal experience. */
.hero .mala {
  display: flex !important;
}

.hero .hero-random-flower,
.hero > .float-deco {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.freelanso-watermark span {
  color: var(--rose);
  animation: watermarkShine 3s linear infinite;
}

@keyframes watermarkFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes watermarkShine {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
    color: var(--gold);
  }
}

.footer {
  overflow: hidden;
  position: relative;
}

.footer-deco {
  position: absolute;
  pointer-events: none;
  color: #e5a3a0;
  opacity: 0.2;
  font: 4rem "DM Serif Display";
  animation: floatDecor 7s ease-in-out infinite;
}

.footer-deco.left {
  left: 4%;
  top: 20%;
}

.footer-deco.right {
  right: 5%;
  bottom: 15%;
}

@media (max-width: 520px) {
  .freelanso-watermark {
    left: 0.5rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0.5rem));
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }
}

/* Single-frame memory carousel: one equal-sized image per view. */
.memories .carousel {
  width: min(100%, 46rem);
  margin-inline: auto;
  padding: .5rem 0 1.25rem;
}
.memories .carousel-track {
  width: 100%;
  gap: 0;
  margin: 0;
}
.memories .memory,
.memories .memory.is-active {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  transform: none;
  opacity: 1;
  border-radius: 1.25rem;
}
.memories .memory:not(.is-active) { pointer-events: none; }
.memories .memory img { object-fit: cover; }
.memories .carousel-controls { margin-top: .4rem; }
.memories .carousel-controls button { font-size: 1.35rem; }
.memories .carousel-dots { gap: .4rem; }
.memories .carousel-dot {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--plum);
  font: 600 .72rem/1 "DM Sans", sans-serif;
  background: transparent;
  border: 1px solid rgba(84, 43, 70, .22);
}
.memories .carousel-dot.is-active {
  width: 2rem;
  color: #fff;
  background: var(--plum);
}
@media (max-width: 700px) {
  .memories .carousel { width: 100%; }
  .memories .memory,
  .memories .memory.is-active { aspect-ratio: 4 / 3; }
}

/* Memory carousel: one stable, responsive visual system. */
.memories .carousel {
  --memory-gap: clamp(0.75rem, 2vw, 1.25rem);
  --memory-width: clamp(15rem, 31vw, 25rem);
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0.25rem 1.5rem;
  isolation: isolate;
}
.memories .carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--memory-gap);
  width: max-content;
  margin: 0 auto;
  transform: translate3d(0, 0, 0);
  transition: transform 650ms cubic-bezier(.22, .8, .22, 1);
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
}
.memories .memory {
  position: relative;
  flex: 0 0 var(--memory-width);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(84, 43, 70, .15);
  border-radius: 1.25rem;
  background: #eadbd4;
  box-shadow: 0 12px 28px rgba(71, 36, 63, .09);
  transform: translateY(0) scale(.92);
  opacity: .58;
  transition: transform 650ms cubic-bezier(.22, .8, .22, 1), opacity 450ms ease, box-shadow 450ms ease;
}
.memories .memory.is-active {
  z-index: 2;
  transform: translateY(-.35rem) scale(1);
  opacity: 1;
  box-shadow: 0 22px 46px rgba(71, 36, 63, .2);
}
.memories .memory img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.memories .memory::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(35, 18, 38, .68)); pointer-events: none; }
.memories .memory-caption { position: absolute; z-index: 1; right: 1rem; bottom: 1rem; left: 1rem; color: #fff; font: italic 1.2rem/1.1 "DM Serif Display", Georgia, serif; text-shadow: 0 2px 10px rgba(35,18,38,.35); }
.memories .carousel-controls { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: .25rem; }
.memories .carousel-controls button { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--plum); cursor: pointer; font-size: 1.15rem; transition: transform .25s ease, background .25s ease, color .25s ease; }
.memories .carousel-controls button:hover, .memories .carousel-controls button:focus-visible { background: var(--plum); color: #fff; transform: translateY(-2px); outline: none; }
.memories .carousel-dots { display: flex; align-items: center; gap: .45rem; margin: 0 .3rem; }
.memories .carousel-dot { width: .45rem; height: .45rem; padding: 0; border: 0; border-radius: 999px; background: rgba(84,43,70,.25); cursor: pointer; transition: width .3s ease, background .3s ease; }
.memories .carousel-dot.is-active { width: 1.35rem; background: var(--rose); }
@media (max-width: 700px) {
  .memories .carousel { padding-inline: 0; }
  .memories .carousel-track { margin: 0; }
  .memories .memory { --memory-width: min(78vw, 22rem); }
  .memories .memory:not(.is-active) { opacity: .38; }
}
@media (prefers-reduced-motion: reduce) {
  .memories .carousel-track, .memories .memory, .memories .carousel-dot { transition-duration: .01ms; }
}

/* Final decoration restore: keep every floral layer visible in the normal page. */
.section .mala,
.footer .mala,
.hero .mala {
  display: flex !important;
  visibility: visible !important;
  opacity: 0.62 !important;
}

.section > .float-deco,
.hero > .float-deco,
.hero-random-flower {
  display: block !important;
  visibility: visible !important;
  opacity: 0.28 !important;
}

.float-deco.randomized {
  opacity: var(--float-opacity, 0.28) !important;
}

.footer .display {
  background: linear-gradient(
    110deg,
    #fff 20%,
    #e5a3a0 40%,
    #dfb978 52%,
    #fff 70%
  );
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: footerShimmer 5s linear infinite;
  transition:
    letter-spacing 0.35s,
    transform 0.35s;
}

.footer .display:hover {
  letter-spacing: 0.08em;
  transform: scale(1.04);
}

@keyframes footerShimmer {
  to {
    background-position: 220% center;
  }
}

.footer p:not(.eyebrow) {
  transition:
    color 0.3s,
    letter-spacing 0.3s,
    transform 0.3s;
}

.footer p:not(.eyebrow):hover {
  color: #fff;
  letter-spacing: 0.08em;
  transform: translateY(-2px);
}

.hero-date,
.event-meta,
.countdown-label {
  transition:
    color 0.3s,
    letter-spacing 0.3s,
    transform 0.3s;
  cursor: default;
}

.hero-date:hover {
  color: #fff;
  letter-spacing: 0.11em;
  transform: translateX(5px);
}

.event-meta:hover {
  color: #fff !important;
  letter-spacing: 0.16em;
  transform: translateX(4px);
}

.countdown-unit:hover .countdown-value {
  color: #fff;
  transform: translateY(-4px) scale(1.06);
}

.countdown-value {
  transition:
    color 0.3s,
    transform 0.3s;
}

.eyebrow {
  transition:
    color 0.3s,
    letter-spacing 0.3s;
}

.eyebrow:hover {
  color: var(--gold);
  letter-spacing: 0.3em;
}

@media (prefers-reduced-motion: reduce) {
  .footer .display {
    animation: none;
  }

  .footer .display:hover,
  .footer p:not(.eyebrow):hover,
  .hero-date:hover,
  .event-meta:hover {
    transform: none;
    letter-spacing: inherit;
  }
}

.venue-photo,
.memory {
  isolation: isolate;
  transform: translateZ(0);
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.55s,
    filter 0.55s;
}

.venue-photo:before,
.memory:before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -60% -30%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.28) 49%,
    transparent 58%
  );
  transform: translateX(-65%) rotate(8deg);
  transition: transform 0.8s;
}

.venue-photo:hover:before,
.memory:hover:before {
  transform: translateX(65%) rotate(8deg);
}

.venue-photo:hover,
.memory:hover {
  transform: translateY(-9px) rotate(-0.7deg) scale(1.015);
  filter: saturate(1.12);
  box-shadow: 0 24px 55px rgba(71, 36, 63, 0.24);
}

.venue-photo figcaption,
.memory-caption {
  transition:
    transform 0.45s,
    letter-spacing 0.45s,
    color 0.45s;
}

.venue-photo:hover figcaption,
.memory:hover .memory-caption {
  transform: translateY(-6px);
  letter-spacing: 0.04em;
  color: #fff8e7;
}

.venue-photo:after,
.memory:after {
  transition: opacity 0.45s;
}

.venue-photo:hover:after,
.memory:hover:after {
  opacity: 0.75;
}

.gallery-grid .gallery-large,
.gallery-stack img {
  transition:
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.5s,
    box-shadow 0.5s;
}

.gallery-grid .gallery-large:hover,
.gallery-stack img:hover {
  transform: scale(1.035);
  filter: saturate(1.13) contrast(1.03);
  box-shadow: 0 18px 45px rgba(71, 36, 63, 0.2);
}

.lightbox.open img {
  animation: galleryPop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes galleryPop {
  from {
    opacity: 0;
    transform: scale(0.88) rotate(-2deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .venue-photo,
  .memory,
  .venue-photo:before,
  .memory:before,
  .gallery-grid .gallery-large,
  .gallery-stack img {
    transition: none !important;
  }

  .lightbox.open img {
    animation: none;
  }
}

.cursor-orb {
  position: fixed;
  z-index: 30;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(188, 112, 121, 0.7);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s,
    height 0.25s,
    background 0.25s;
  display: none;
}

.cursor-orb.active {
  width: 48px;
  height: 48px;
  background: rgba(223, 185, 120, 0.12);
}

.interactive-text {
  transition:
    color 0.3s,
    transform 0.3s,
    letter-spacing 0.3s;
  text-wrap: pretty;
}

.interactive-text:hover {
  color: var(--rose);
  transform: translateY(-2px);
  letter-spacing: 0.015em;
}

.section-title .accent {
  transition:
    color 0.3s,
    text-shadow 0.3s,
    letter-spacing 0.3s;
}

.section-title:hover .accent {
  text-shadow: 0 8px 22px rgba(188, 112, 121, 0.25);
  letter-spacing: 0.03em;
}

.date-interactive {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.date-interactive:after {
  content: "✦";
  font-size: 0.65em;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px) rotate(-30deg);
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.date-interactive:hover:after {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

.interactive-card {
  will-change: transform;
  transform-style: preserve-3d;
}

.button {
  position: relative;
  overflow: hidden;
}

.button:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.6s;
}

.button:hover:before {
  transform: translateX(120%);
}

.button span,
.button {
  isolation: isolate;
}

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

.scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (pointer: fine) {
  .cursor-orb {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-orb {
    display: none;
  }

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

  .button:before {
    display: none;
  }
}

.story .portrait {
  opacity: 0;
  clip-path: inset(12% 8% 0 8% round 18px);
  transform: translateY(45px) scale(0.96);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    clip-path 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s;
}

.story .portrait.motion-in {
  opacity: 1;
  clip-path: inset(0 round 18px);
  transform: none;
}

.story .portrait:nth-child(2) {
  transition-delay: 0.16s;
}

.story .portrait img {
  transform: scale(1.12);
  transition:
    transform 1.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.8s;
}

.story .portrait.motion-in img {
  transform: scale(1);
  filter: saturate(1.08);
}

.intro .quote-mark {
  opacity: 0;
  transform: translateY(30px) rotate(-18deg) scale(0.7);
  transition:
    opacity 0.9s,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.intro.quote-in .quote-mark {
  opacity: 0.35;
  transform: none;
}

.intro .intro-copy {
  opacity: 0;
  transform: translateX(35px);
  transition:
    opacity 0.9s 0.18s,
    transform 0.9s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.intro.quote-in .intro-copy {
  opacity: 1;
  transform: none;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-date,
.hero-content .hero-actions {
  opacity: 0;
  transform: translateY(24px);
  animation: heroTextIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-content h1 {
  animation-delay: 0.12s;
}

.hero-content .hero-date {
  animation-delay: 0.24s;
}

.hero-content .hero-actions {
  animation-delay: 0.38s;
}

@keyframes heroTextIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-prompt {
  transition:
    transform 0.3s,
    filter 0.3s;
}

.hero-prompt:hover {
  transform: translateX(-50%) translateY(-7px) scale(1.06);
  filter: drop-shadow(0 8px 18px rgba(223, 185, 120, 0.35));
}

.hero-prompt-ring {
  animation:
    pulse 2.4s infinite,
    ringSpin 7s linear infinite;
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

.button,
.nav a,
a:not(.button) {
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s,
    letter-spacing 0.3s,
    box-shadow 0.3s;
}

.button:hover {
  letter-spacing: 0.19em;
  box-shadow: 0 14px 32px rgba(71, 36, 63, 0.24);
}

.button:active {
  transform: scale(0.95) !important;
}

.nav a:hover,
a:not(.button):hover {
  letter-spacing: 0.04em;
}

.nav a:after,
a:not(.button):after {
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
}

.nav a:hover:after,
a:not(.button):hover:after {
  transform: scaleX(1);
  right: 0;
}

.motion-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  animation: sparkFloat 1s ease-out forwards;
}

@keyframes sparkFloat {
  to {
    transform: translate(var(--sx), var(--sy)) scale(0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story .portrait,
  .intro .quote-mark,
  .intro .intro-copy,
  .hero-content > * {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none;
    transition: none;
  }

  .hero-prompt-ring {
    animation: none;
  }
}

.intro .quote-mark {
  opacity: 0.24 !important;
  visibility: visible;
  display: block;
  transform: none;
}

.intro.quote-in .quote-mark {
  opacity: 0.42 !important;
  animation: quoteDrift 5s ease-in-out infinite;
}

@keyframes quoteDrift {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

.intro .intro-copy {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.intro.quote-in .intro-copy {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.story,
.story-grid {
  overflow: hidden !important;
}

.story .wrap {
  overflow: visible !important;
}

.story-grid {
  padding: 1rem 0.25rem 2rem;
}

.story .portrait {
  overflow: hidden;
  z-index: 1;
}

.story .portrait-caption {
  bottom: 1.6rem;
  max-width: calc(100% - 3rem);
  z-index: 3;
}

.story .float-deco {
  z-index: 4;
}

.story .portrait-caption {
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  width: auto;
  overflow: visible;
  line-height: 1.35;
}

.story .portrait-caption h3 {
  display: block;
  margin: 0 0 0.35rem;
  line-height: 1.05;
  white-space: nowrap;
}

.story .portrait-caption p {
  display: block;
  max-width: 28rem;
  line-height: 1.5;
  white-space: normal;
  overflow: visible;
}

.story .portrait img {
  object-position: center center;
}

.story-grid {
  position: relative;
  z-index: 2;
}

.story .portrait {
  min-height: 560px;
  height: auto;
  aspect-ratio: 4/5;
}

.story .portrait-caption {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5rem 1.6rem 1.6rem;
  background: linear-gradient(transparent, rgba(43, 28, 43, 0.94) 48%);
  max-width: none;
}

.story .portrait-caption h3,
.story .portrait-caption p {
  position: relative;
  z-index: 2;
}

.story .portrait-caption p {
  max-width: 34rem;
}

.story .portrait img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.story .portrait:after {
  z-index: 0;
}

.story-grid {
  gap: 1.25rem;
}

@media (max-width: 760px) {
  .story .portrait,
  .story .portrait:first-child {
    min-height: 430px;
    height: auto;
    aspect-ratio: 4/5;
  }

  .story .portrait-caption {
    padding: 4rem 1.25rem 1.3rem;
  }

  .story .portrait-caption h3 {
    font-size: 2rem;
  }

  .story .portrait-caption p {
    font-size: 0.98rem;
    line-height: 1.5;
  }
}

.story .portrait-caption.interactive-text {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 5rem 1.6rem 1.6rem !important;
  display: block !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 6 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

.story .portrait-caption.interactive-text h3 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 0.5rem !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  overflow: visible !important;
}

.story .portrait-caption.interactive-text p {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  line-height: 1.55 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
}

.story .portrait-caption.interactive-text:hover {
  transform: none !important;
  letter-spacing: normal !important;
  color: inherit !important;
}

.story .portrait-caption.interactive-text:hover h3,
.story .portrait-caption.interactive-text:hover p {
  transform: none !important;
  letter-spacing: normal !important;
}

@media (max-width: 760px) {
  .story .portrait-caption.interactive-text {
    padding: 4.5rem 1.25rem 1.35rem !important;
  }

  .story .portrait-caption.interactive-text h3 {
    font-size: 2rem !important;
  }

  .story .portrait-caption.interactive-text p {
    font-size: 0.98rem !important;
    line-height: 1.5 !important;
  }
}

.intro .quote-mark {
  animation: none !important;
  transform-origin: center center;
  will-change: transform, opacity;
  filter: drop-shadow(0 12px 15px rgba(188, 112, 121, 0.18));
}

.intro .quote-mark.quote-bloom {
  animation:
    quoteBloom 1.35s cubic-bezier(0.16, 1.2, 0.3, 1) forwards,
    quoteHover 6s 1.35s ease-in-out infinite !important;
}

@keyframes quoteBloom {
  0% {
    opacity: 0;
    transform: translate3d(-35px, 28px, 0) rotate(-28deg) scale(0.35);
    filter: blur(8px);
  }

  60% {
    opacity: 0.5;
    transform: translate3d(6px, -5px, 0) rotate(7deg) scale(1.12);
    filter: blur(0);
  }

  100% {
    opacity: 0.42;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes quoteHover {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro .quote-mark.quote-bloom {
    animation: none !important;
    opacity: 0.42 !important;
    transform: none !important;
    filter: none !important;
  }
}

.intro .quote-mark.quote-bloom {
  opacity: 0.42 !important;
  visibility: visible !important;
  animation: quoteVisibleDrift 6s ease-in-out infinite !important;
}

@keyframes quoteVisibleDrift {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg) scale(1);
  }

  50% {
    transform: translateY(-12px) rotate(3deg) scale(1.04);
  }
}

.intro .quote-mark,
.intro .quote-mark.quote-bloom {
  animation: none !important;
  transform: none !important;
  transition: none !important;
  opacity: 0.42 !important;
  visibility: visible !important;
}

.story .portrait-caption.interactive-text {
  text-align: center !important;
}

.story .portrait-caption.interactive-text h3,
.story .portrait-caption.interactive-text p {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.story .portrait-caption.interactive-text,
.story .portrait-caption.interactive-text:hover {
  color: #fff7ed !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  letter-spacing: normal !important;
  pointer-events: none !important;
}

.story .portrait:hover .portrait-caption.interactive-text {
  color: #f4c978 !important;
  text-shadow: 0 0 18px rgba(244, 201, 120, 0.35) !important;
}

.story .portrait:hover .portrait-caption.interactive-text h3 {
  color: #ffe7a8 !important;
}

.story .portrait:hover .portrait-caption.interactive-text p {
  color: #fff7ed !important;
}

.story .portrait.interactive-card:hover {
  transform: translateY(-6px) !important;
}

.story .portrait.interactive-card:hover img {
  transform: scale(1.05) !important;
}

.portrait {
  overflow: hidden;
  isolation: isolate;
}

.portrait img {
  transform: scale(1.04);
  filter: saturate(0.9);
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s,
    clip-path 1s;
}

.portrait:hover img {
  transform: scale(1.12) translateX(1%);
  filter: saturate(1.18) contrast(1.04);
}

.story .portrait:nth-child(2):hover img {
  transform: scale(1.12) translateX(-1%);
  filter: saturate(1.12) sepia(0.08);
}

.memory {
  isolation: isolate;
}

.memory img,
.memory video {
  transform: scale(1.03);
  filter: saturate(0.92);
  transition:
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s;
}

.memory:hover img,
.memory:hover video {
  transform: scale(1.13) rotate(1.2deg);
  filter: saturate(1.25) contrast(1.05);
}

.memory:nth-child(even):hover img,
.memory:nth-child(even):hover video {
  transform: scale(1.13) rotate(-1.2deg);
}

.memory-caption {
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s;
}

.memory:hover .memory-caption {
  transform: translateY(-12px) scale(1.04);
  color: #ffe7a8;
}

.venue-photo {
  isolation: isolate;
  overflow: hidden;
}

.venue-photo img {
  transform: scale(1.04);
  filter: saturate(0.88) brightness(0.96);
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s;
}

.venue-photo:hover img {
  transform: scale(1.16);
  filter: saturate(1.3) brightness(1.04);
}

.venue-photo:nth-child(2):hover img {
  transform: scale(1.14) rotate(2deg);
}

.venue-photo:nth-child(3):hover img {
  transform: scale(1.14) rotate(-2deg);
}

.venue-photo figcaption {
  transition:
    transform 0.55s,
    color 0.4s;
}

.venue-photo:hover figcaption {
  transform: translateX(8px) translateY(-6px);
  color: #ffe7a8;
}

.gallery-grid img {
  transform: scale(1.02);
  filter: saturate(0.9);
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s,
    box-shadow 0.8s;
}

.gallery-grid img:hover {
  transform: scale(1.08) rotate(0.8deg);
  filter: saturate(1.2) contrast(1.04);
  box-shadow: 0 24px 60px rgba(71, 36, 63, 0.24);
}

.gallery-stack img:nth-child(2):hover {
  transform: scale(1.08) rotate(-0.8deg);
}

@media (prefers-reduced-motion: reduce) {
  .portrait img,
  .memory img,
  .memory video,
  .venue-photo img,
  .gallery-grid img {
    transition: none !important;
    transform: none !important;
  }

  .portrait:hover img,
  .memory:hover img,
  .memory:hover video,
  .venue-photo:hover img,
  .gallery-grid img:hover {
    filter: none;
  }
}

.intro {
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(188, 112, 121, 0.13),
      transparent 28%
    ),
    linear-gradient(135deg, #fbf4ec 0%, #f3dfdc 100%);
}

.story {
  background:
    radial-gradient(
      circle at 90% 12%,
      rgba(223, 185, 120, 0.14),
      transparent 24%
    ),
    #fffaf5;
}

.events {
  background:
    radial-gradient(
      circle at 8% 88%,
      rgba(188, 112, 121, 0.2),
      transparent 25%
    ),
    linear-gradient(135deg, #45213f, #63304e);
}

.memories {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(223, 185, 120, 0.18),
      transparent 26%
    ),
    linear-gradient(135deg, #f8e9df, #f3d9d7);
}

.venue {
  background:
    radial-gradient(
      circle at 15% 80%,
      rgba(188, 112, 121, 0.1),
      transparent 25%
    ),
    #fbf7f2;
}

.rsvp {
  background:
    radial-gradient(
      circle at 88% 14%,
      rgba(255, 255, 255, 0.45),
      transparent 25%
    ),
    linear-gradient(135deg, #f2d8d5, #edc4c5);
}

.envelope-section {
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(223, 185, 120, 0.16),
      transparent 32%
    ),
    #fffaf5;
}

.scratch-section {
  background: linear-gradient(135deg, #f7e6dc, #f0d5d5);
}

.countdown-section {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(188, 112, 121, 0.22),
      transparent 36%
    ),
    linear-gradient(135deg, #321b35, #542548);
}

.cards-section {
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(223, 185, 120, 0.12),
      transparent 25%
    ),
    #fffaf5;
}

.venue-gallery {
  background: linear-gradient(135deg, #f7e9df, #f5dede);
}

.closing {
  background:
    radial-gradient(circle at 50% 0, rgba(223, 185, 120, 0.2), transparent 28%),
    linear-gradient(135deg, #3b1d38, #642b50);
}

.footer {
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(188, 112, 121, 0.18),
      transparent 25%
    ),
    #241526;
}

.intro,
.story,
.events,
.memories,
.venue,
.rsvp,
.envelope-section,
.scratch-section,
.countdown-section,
.cards-section,
.venue-gallery,
.closing,
.footer {
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: cover;
}

.section .mala {
  position: absolute;
  z-index: 0;
  top: 8%;
  bottom: 8%;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  pointer-events: none;
  opacity: 0.42;
  filter: drop-shadow(0 6px 8px rgba(71, 36, 63, 0.1));
}

.section .mala.left {
  left: 1.2%;
}

.section .mala.right {
  right: 1.2%;
}

.mala:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  border-left: 2px dotted currentColor;
  opacity: 0.45;
}

.mala-flower {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--rose);
  font: 1.35rem "DM Serif Display";
  text-shadow: 0 2px 5px rgba(71, 36, 63, 0.16);
}

.mala-flower:nth-child(odd) {
  color: var(--gold);
  transform: translateX(-8px) rotate(-12deg);
}

.mala-flower:nth-child(even) {
  transform: translateX(8px) rotate(12deg);
}

.events .mala,
.countdown-section .mala,
.closing .mala,
.footer .mala {
  color: #e5a3a0;
}

.events .mala-flower,
.countdown-section .mala-flower,
.closing .mala-flower,
.footer .mala-flower {
  background: #542548;
  color: #dfb978;
}

.mala-flower:after {
  content: "•";
  position: absolute;
  bottom: -17px;
  color: var(--gold);
  font-size: 0.8rem;
}

.mala-flower:last-child:after {
  display: none;
}

@media (max-width: 900px) {
  .section .mala {
    width: 46px;
    opacity: 0.3;
  }

  .mala-flower {
    width: 23px;
    height: 23px;
    font-size: 1rem;
  }

  .section .mala.left {
    left: 0.3%;
  }

  .section .mala.right {
    right: 0.3%;
  }
}

@media (max-width: 560px) {
  .section .mala {
    width: 25px;
    opacity: 0.2;
  }

  .mala-flower {
    width: 18px;
    height: 18px;
    font-size: 0.72rem;
  }

  .mala-flower:nth-child(odd),
  .mala-flower:nth-child(even) {
    transform: none;
  }

  .section .mala.left {
    left: -2px;
  }

  .section .mala.right {
    right: -2px;
  }
}

.section .mala,
.footer .mala {
  z-index: 3 !important;
  opacity: 0.62 !important;
  visibility: visible !important;
}

.hero .mala {
  z-index: 3 !important;
  color: #e5a3a0 !important;
  opacity: 0.58 !important;
}

.hero .mala-flower {
  background: rgba(71, 36, 63, 0.72) !important;
  color: #f4c978 !important;
}

.hero .mala.left {
  left: 1.5%;
}

.hero .mala.right {
  right: 1.5%;
}

.hero .mala {
  display: none !important;
}

.hero-random-flower {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  font-family: "DM Serif Display", serif;
  animation: heroFlowerFloat var(--dur) ease-in-out infinite;
  opacity: var(--op);
  color: var(--flower);
  font-size: var(--size);
  transform: rotate(var(--rot));
}

@keyframes heroFlowerFloat {
  0%,
  100% {
    translate: 0 0 rotate(var(--rot));
  }

  50% {
    translate: var(--dx) var(--dy) rotate(calc(var(--rot) + 16deg));
  }
}

.float-deco {
  z-index: 3 !important;
  pointer-events: none;
  line-height: 1;
  will-change: transform;
}

.float-deco.giant-bloom {
  font-size: clamp(6rem, 15vw, 13rem) !important;
  opacity: 0.08 !important;
}

.float-deco.hero-bloom {
  font-size: clamp(4rem, 10vw, 9rem) !important;
  opacity: 0.11 !important;
}

.float-deco.flower-a {
  font-family: "DM Serif Display", serif;
}

.float-deco.flower-b {
  font-family: Georgia, serif;
  font-style: italic;
}

.float-deco.flower-c {
  font-family: "Newsreader", serif;
}

.float-deco.cream {
  color: #f4cfc8 !important;
}

.float-deco.gold {
  color: #dfb978 !important;
}

.float-deco.plum {
  color: #7d4768 !important;
}

.float-deco.randomized {
  animation: floatDecorRandom var(--float-duration, 8s) ease-in-out infinite !important;
  top: var(--float-top) !important;
  left: var(--float-left) !important;
  right: auto !important;
  font-size: var(--float-size) !important;
  opacity: var(--float-opacity) !important;
  transform: rotate(var(--float-rotation)) !important;
}

@keyframes floatDecorRandom {
  0%,
  100% {
    translate: 0 0 rotate(var(--float-rotation));
  }

  50% {
    translate: var(--float-x) var(--float-y)
      rotate(calc(var(--float-rotation) + 12deg));
  }
}

.footer {
  padding: 2.4rem 0 2rem !important;
  min-height: 0 !important;
}

.footer .wrap {
  padding-block: 0;
}

.footer .display {
  margin: 0.45rem 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.82;
}

.footer p {
  margin-top: 0.45rem;
  line-height: 1.35;
}

.footer .eyebrow {
  margin-bottom: 0.25rem;
}

.footer .mala {
  top: 12%;
  bottom: 12%;
  transform: scale(0.68);
  opacity: 0.25 !important;
}

.footer .footer-deco {
  transform: scale(0.65);
  opacity: 0.12;
}

.footer .freelanso-watermark {
  transform: scale(0.9);
}

.footer .mala {
  display: none !important;
}

.body-hero-locked {
  overflow: hidden !important;
  height: 100% !important;
}

.body-hero-locked main {
  pointer-events: none;
}

.body-hero-locked .hero {
  pointer-events: auto;
}

.html-hero-locked,
.html-hero-locked body {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none !important;
}

.html-hero-locked body {
  position: fixed;
  width: 100%;
  inset: 0;
}

.hero:not(.video-ended) .hero-content {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero.video-ended .hero-content {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  animation: heroContentReveal 0.9s ease both;
}

@keyframes heroContentReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero.video-ended .hero-video {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero.video-ended .hero-content {
  background: linear-gradient(
    90deg,
    rgba(43, 28, 43, 0.7),
    rgba(43, 28, 43, 0.2)
  );
  padding: 2rem;
  border-radius: 1rem;
}

.hero.video-ended .hero-prompt {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.hero.video-ended .hero-prompt-ring {
  animation: none;
}

.hero.video-ended .hero-prompt {
  color: #fff;
}

@media (max-width: 560px) {
  .footer {
    padding: 2rem 0 1.7rem !important;
  }

  .footer .display {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .footer .mala {
    transform: scale(0.5);
  }
}

.hero:not(.video-started):not(.video-ended) .hero-content,
.hero.video-started:not(.video-ended) .hero-content {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero.video-ended .hero-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.hero.video-ended .hero-shade {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: linear-gradient(
    135deg,
    rgba(43, 28, 43, 0.94),
    rgba(71, 36, 63, 0.82)
  ) !important;
  z-index: 2 !important;
}

.hero.video-ended .hero-video {
  z-index: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero.video-ended {
  background: var(--plum) !important;
}

.hero.video-ended .hero-video {
  display: none !important;
}

.hero.video-ended .hero-shade {
  background: linear-gradient(
    135deg,
    #47243f 0%,
    #63304e 55%,
    #2b1c2b 100%
  ) !important;
  opacity: 1 !important;
}

.hero:not(.video-ended) .hero-random-flower,
.hero:not(.video-ended) > .float-deco {
  display: none !important;
}

.hero.video-ended .hero-random-flower,
.hero.video-ended > .float-deco {
  display: block !important;
}

.hero:not(.video-ended) .hero-orbit,
.hero:not(.video-ended) .float-deco,
.hero:not(.video-ended) .hero-random-flower,
.hero:not(.video-ended) .mala {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.hero.video-ended .hero-orbit,
.hero.video-ended .float-deco,
.hero.video-ended .hero-random-flower {
  visibility: visible !important;
}

.hero:not(.video-ended)
  > *:not(.hero-video):not(.hero-prompt):not(.sound-button):not(
    .dev-video-toggle
  ) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.hero:not(.video-ended) > .hero-prompt,
.hero:not(.video-ended) > .sound-button,
.hero:not(.video-ended) > .dev-video-toggle {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Keep content visible when optional reveal/video state is unavailable. */
.scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
}

.reveal {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.portrait-caption {
  left: 50% !important;
  right: auto !important;
  width: min(90%, 28rem);
  text-align: center;
  transform: translateX(-50%);
}

.hero:not(.video-ended) > .hero-content,
.hero.video-playing > .hero-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Stable gallery layout: each card owns its grid cell and keeps a consistent gap. */
.venue-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(240px, 300px);
  grid-template-rows: none !important;
  gap: clamp(1rem, 2vw, 1.5rem) !important;
  align-items: stretch;
}

.venue-photo,
.venue-photo:first-child,
.venue-photo:nth-child(4) {
  grid-row: auto !important;
  grid-column: auto !important;
  min-width: 0;
  min-height: 0;
}

.venue-photo img {
  display: block;
  min-width: 0;
  min-height: 100%;
}

@media (max-width: 760px) {
  .venue-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 220px;
  }
}

@media (max-width: 420px) {
  .venue-gallery-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: 230px;
  }
}

/* Bride and groom portrait motion treatment. */
.story-grid .portrait {
  isolation: isolate;
  transform: translateZ(0);
  transition:
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.65s ease;
}

.story-grid .portrait::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.3) 48%,
    transparent 72%
  );
  transform: translateX(-125%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-grid .portrait img {
  transform: scale(1.01);
  transition:
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.9s ease;
}

.story-grid .portrait:hover {
  transform: translateY(-12px) rotate(-0.7deg) !important;
  box-shadow: 0 26px 55px rgba(71, 36, 63, 0.24);
}

.story-grid .portrait:nth-child(even):hover {
  transform: translateY(-12px) rotate(0.7deg) !important;
}

.story-grid .portrait:hover::before {
  transform: translateX(125%);
}

.story-grid .portrait:hover img {
  transform: scale(1.1);
  filter: saturate(1.12) contrast(1.03);
}

.story-grid .portrait-caption {
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    text-shadow 0.55s ease;
}

.story-grid .portrait:hover .portrait-caption {
  transform: translateX(-50%) translateY(-8px);
  text-shadow: 0 5px 18px rgba(43, 28, 43, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .story-grid .portrait,
  .story-grid .portrait::before,
  .story-grid .portrait img,
  .story-grid .portrait-caption {
    transition: none !important;
  }

  .story-grid .portrait:hover,
  .story-grid .portrait:nth-child(even):hover,
  .story-grid .portrait:hover img,
  .story-grid .portrait:hover .portrait-caption {
    transform: none !important;
  }
}

.freelanso-watermark {
  display: block !important;
  position: fixed !important;
  left: 1rem !important;
  right: auto !important;
  bottom: max(1rem, env(safe-area-inset-bottom, 1rem)) !important;
  z-index: 100 !important;
}

@media (max-width: 520px) {
  .freelanso-watermark {
    left: 0.5rem !important;
    right: auto !important;
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0.5rem)) !important;
  }
}

/* Final single-frame carousel overrides. */
.memories .carousel { width: min(100%, 46rem); margin-inline: auto; padding: .5rem 0 1.25rem; }
.memories .carousel-track { width: 100%; gap: 0; margin: 0; }
.memories .memory, .memories .memory.is-active { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 10; transform: none; opacity: 1; border-radius: 1.25rem; }
.memories .memory:not(.is-active) { pointer-events: none; }
.memories .memory img { object-fit: cover; }
.memories .carousel-controls { margin-top: .4rem; }
.memories .carousel-dot { width: 2rem; height: 2rem; display: grid; place-items: center; color: var(--plum); font: 600 .72rem/1 "DM Sans", sans-serif; background: transparent; border: 1px solid rgba(84, 43, 70, .22); }
.memories .carousel-dot.is-active { width: 2rem; color: #fff; background: var(--plum); }
@media (max-width: 700px) { .memories .carousel { width: 100%; } .memories .memory, .memories .memory.is-active { aspect-ratio: 4 / 3; } }

/* Stable final presentation: no blur, gradient veil, scale differences, or empty pills. */
.memories .carousel { overflow: hidden; }
.memories .carousel-track { align-items: stretch; }
.memories .memory,
.memories .memory.is-active {
  height: clamp(15rem, 52vw, 31rem);
  min-height: 15rem;
  aspect-ratio: auto;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 16px 34px rgba(71, 36, 63, .14);
}
.memories .memory::after { display: none !important; }
.memories .memory img { filter: none !important; transform: none !important; }
.memories .memory-caption { display: none; }
.memories .carousel-dot,
.memories .carousel-dot.is-active {
  width: .55rem !important;
  height: .55rem !important;
  min-width: .55rem;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
  background: rgba(84, 43, 70, .28) !important;
  transform: none !important;
  transition: transform .3s ease, background .3s ease;
}
.memories .carousel-dot.is-active { background: var(--rose) !important; transform: scale(1.35) !important; }
.memories .carousel-controls button { flex: 0 0 2.75rem; }
@keyframes memoryImageEnter { from { opacity: .45; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
.memories .memory.is-active img { animation: memoryImageEnter .55s cubic-bezier(.22, .8, .22, 1); }
@media (max-width: 700px) { .memories .memory, .memories .memory.is-active { height: min(68vw, 25rem); min-height: 13rem; } }
@media (prefers-reduced-motion: reduce) { .memories .memory.is-active img { animation: none; } }

/* Screenshot fix: remove inherited panel treatment and normalize controls. */
.memories .carousel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.memories .carousel-track { background: transparent !important; }
.memories .memory,
.memories .memory.is-active {
  border-radius: 1.25rem !important;
  background: transparent !important;
  box-shadow: 0 16px 34px rgba(71, 36, 63, .14) !important;
}
.memories .memory::before,
.memories .memory::after { display: none !important; content: none !important; }
.memories .carousel-controls {
  min-height: 2.75rem;
  gap: .85rem !important;
  margin-top: 1rem !important;
}
.memories .carousel-controls > button {
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-width: 2.75rem !important;
  flex: 0 0 2.75rem !important;
}
.memories .carousel-dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .6rem !important;
  margin: 0 .35rem !important;
}
.memories .carousel-dot,
.memories .carousel-dot.is-active {
  display: block !important;
  width: .5rem !important;
  height: .5rem !important;
  min-width: .5rem !important;
  min-height: .5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(84, 43, 70, .3) !important;
  color: transparent !important;
  font-size: 0 !important;
  transform: none !important;
}
.memories .carousel-dot.is-active { background: var(--plum) !important; transform: scale(1.35) !important; }

/* One-slide-only mode: stack all cards in one frame and crossfade the active card. */
.memories .carousel {
  overflow: hidden !important;
  height: clamp(15rem, 52vw, 31rem) !important;
}
.memories .carousel-track {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  transition: none !important;
}
.memories .memory,
.memories .memory.is-active {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  transform: scale(1.025) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .55s ease, transform .7s cubic-bezier(.22, .8, .22, 1), visibility 0s linear .55s !important;
}
.memories .memory.is-active {
  z-index: 2 !important;
  transform: scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition-delay: 0s !important;
}
@media (max-width: 700px) {
  .memories .carousel { height: min(68vw, 25rem) !important; min-height: 13rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .memories .memory, .memories .memory.is-active { transition: opacity .01ms !important; }
}

/* Mobile control rail: keep every control inside the viewport. */
.memories .carousel-controls {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-inline: .25rem !important;
  overflow: hidden !important;
}
.memories .carousel-dots {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}
@media (max-width: 520px) {
  .memories .carousel-controls { gap: .45rem !important; padding-inline: 0 !important; }
  .memories .carousel-controls > button { width: 2.35rem !important; height: 2.35rem !important; min-width: 2.35rem !important; flex-basis: 2.35rem !important; }
  .memories .carousel-dots { flex: 0 0 auto !important; width: auto !important; max-width: none !important; gap: .35rem !important; margin-inline: .1rem !important; overflow: visible !important; }
  .memories .carousel-dot, .memories .carousel-dot.is-active { width: .42rem !important; height: .42rem !important; min-width: .42rem !important; min-height: .42rem !important; }
}

/* Never clip the complete indicator set. */
.memories .carousel-controls { overflow: visible !important; }
.memories .carousel-dots { flex: 0 0 auto !important; width: auto !important; max-width: none !important; overflow: visible !important; }
.memories .carousel-dot, .memories .carousel-dot.is-active { flex: 0 0 .5rem !important; }

/* Creative transition: a restrained rose-gold silk reveal on each active image. */
.memories .memory.is-active::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 3 !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(112deg, transparent 30%, rgba(255, 236, 218, .46) 48%, rgba(188, 112, 121, .16) 53%, transparent 70%);
  transform: translateX(-115%);
  animation: memorySilkSweep 1.15s cubic-bezier(.2, .72, .24, 1) both;
}
.memories .memory.is-active img {
  animation: memoryImageSettle .85s cubic-bezier(.2, .8, .22, 1) both !important;
}
.memories .memory.is-active .memory-caption {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(0) !important;
  display: block !important;
  z-index: 4 !important;
  animation: memoryCaptionRiseCentered .65s .18s cubic-bezier(.2, .8, .22, 1) both !important;
}
@keyframes memoryCaptionRiseCentered {
  0% { opacity: 0; transform: translateX(-50%) translateY(.7rem); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes memorySilkSweep {
  0% { opacity: 0; transform: translateX(-115%); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(115%); }
}
@keyframes memoryImageSettle {
  0% { opacity: .72; transform: scale(1.07); filter: saturate(.82); }
  100% { opacity: 1; transform: scale(1); filter: saturate(1); }
}
@keyframes memoryCaptionRise {
  0% { opacity: 0; transform: translateY(.7rem); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .memories .memory.is-active::before,
  .memories .memory.is-active img,
  .memories .memory.is-active .memory-caption { animation: none !important; }
}

/* Gallery interaction: contained depth, frame shimmer, and pointer glow. */
.memories .memory.is-active {
  --mx: 50%;
  --my: 50%;
  transition: transform .35s cubic-bezier(.2, .8, .22, 1), box-shadow .35s ease !important;
}
.memories .memory.is-active::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background: radial-gradient(circle 9rem at var(--mx) var(--my), rgba(255, 230, 208, .24), transparent 68%);
  opacity: 0;
  transition: opacity .35s ease;
}
.memories .memory.is-active:hover {
  transform: perspective(900px) rotateX(1deg) rotateY(-1deg) translateY(-.25rem) !important;
  box-shadow: 0 24px 44px rgba(71, 36, 63, .2), 0 0 0 1px rgba(188, 112, 121, .26) !important;
}
.memories .memory.is-active:hover::after { opacity: 1; }
.memories .memory.is-active:hover img { transform: scale(1.025) !important; transition: transform .55s cubic-bezier(.2, .8, .22, 1); }
@media (hover: none), (pointer: coarse) {
  .memories .memory.is-active:hover { transform: none !important; }
  .memories .memory.is-active:hover img { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .memories .memory.is-active,
  .memories .memory.is-active img { transition: none !important; }
  .memories .memory.is-active:hover { transform: none !important; }
}

/* Story gallery hover treatment: creative, contained, and layout-safe. */
.story-grid .portrait {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .45s cubic-bezier(.2, .8, .22, 1), box-shadow .45s ease;
}
.story-grid .portrait::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 28%, rgba(255, 235, 216, .48) 47%, transparent 64%);
  transform: translateX(-125%);
  opacity: 0;
}
.story-grid .portrait:hover {
  transform: translateY(-8px) rotate(-.35deg) !important;
  box-shadow: 0 24px 48px rgba(71, 36, 63, .2) !important;
}
.story-grid .portrait:nth-child(even):hover { transform: translateY(-8px) rotate(.35deg) !important; }
.story-grid .portrait:hover::after { opacity: 1; animation: portraitShine .9s cubic-bezier(.2, .75, .25, 1) both; }
.story-grid .portrait img {
  transform: scale(1.015);
  transition: transform .8s cubic-bezier(.2, .8, .22, 1), filter .55s ease;
}
.story-grid .portrait:hover img { transform: scale(1.08); filter: saturate(1.12) contrast(1.03); }
.story-grid .portrait-caption { transition: transform .5s cubic-bezier(.2, .8, .22, 1), opacity .4s ease; }
.story-grid .portrait:hover .portrait-caption { transform: translateY(-6px); }
@keyframes portraitShine { 0% { transform: translateX(-125%); } 100% { transform: translateX(125%); } }
@media (hover: none), (pointer: coarse) {
  .story-grid .portrait:hover,
  .story-grid .portrait:nth-child(even):hover { transform: none !important; }
  .story-grid .portrait:hover img { transform: scale(1.015); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story-grid .portrait,
  .story-grid .portrait::after,
  .story-grid .portrait img,
  .story-grid .portrait-caption { transition: none !important; animation: none !important; }
  .story-grid .portrait:hover,
  .story-grid .portrait:nth-child(even):hover { transform: none !important; }
}

/* Venue gallery cards: contained creative hover treatment. */
.venue-gallery-grid .venue-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .45s cubic-bezier(.2, .8, .22, 1), box-shadow .45s ease;
}
.venue-gallery-grid .venue-photo::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 28%, rgba(255, 235, 216, .46) 48%, transparent 66%);
  transform: translateX(-125%);
  opacity: 0;
}
.venue-gallery-grid .venue-photo:hover {
  transform: translateY(-8px) rotate(-.35deg) !important;
  box-shadow: 0 24px 48px rgba(71, 36, 63, .2) !important;
}
.venue-gallery-grid .venue-photo:nth-child(even):hover { transform: translateY(-8px) rotate(.35deg) !important; }
.venue-gallery-grid .venue-photo:hover::after { opacity: 1; animation: venuePhotoShine .9s cubic-bezier(.2, .75, .25, 1) both; }
.venue-gallery-grid .venue-photo img {
  transform: scale(1.015);
  transition: transform .8s cubic-bezier(.2, .8, .22, 1), filter .55s ease;
}
.venue-gallery-grid .venue-photo:hover img { transform: scale(1.08); filter: saturate(1.12) contrast(1.03); }
.venue-gallery-grid .venue-photo figcaption { transition: transform .5s cubic-bezier(.2, .8, .22, 1), opacity .4s ease; }
.venue-gallery-grid .venue-photo:hover figcaption { transform: translateY(-6px); }
@keyframes venuePhotoShine { 0% { transform: translateX(-125%); } 100% { transform: translateX(125%); } }
@media (hover: none), (pointer: coarse) {
  .venue-gallery-grid .venue-photo:hover,
  .venue-gallery-grid .venue-photo:nth-child(even):hover { transform: none !important; }
  .venue-gallery-grid .venue-photo:hover img { transform: scale(1.015); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .venue-gallery-grid .venue-photo,
  .venue-gallery-grid .venue-photo::after,
  .venue-gallery-grid .venue-photo img,
  .venue-gallery-grid .venue-photo figcaption { transition: none !important; animation: none !important; }
  .venue-gallery-grid .venue-photo:hover,
  .venue-gallery-grid .venue-photo:nth-child(even):hover { transform: none !important; }
}

/* Envelope pre-open interaction: floating paper, glowing seal, and opening cue. */
.envelope:not(.open) {
  transform: translateY(0) rotate(0deg);
  animation: envelopeFloat 4.8s ease-in-out infinite;
  transition: transform .4s cubic-bezier(.2, .8, .22, 1), box-shadow .4s ease, filter .4s ease;
  cursor: pointer;
}
.envelope:not(.open)::before {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 1rem;
  border: 1px solid rgba(255, 229, 202, .45);
  border-radius: inherit;
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.envelope:not(.open):hover,
.envelope:not(.open):focus-visible {
  transform: translateY(-10px) rotate(-1deg) scale(1.015);
  box-shadow: 0 24px 48px rgba(71, 36, 63, .25), 0 0 0 1px rgba(188, 112, 121, .28);
  filter: saturate(1.05);
  outline: none;
  animation-play-state: paused;
}
.envelope:not(.open):hover::before,
.envelope:not(.open):focus-visible::before { opacity: 1; transform: scale(1); }
.envelope:not(.open) .envelope-seal {
  animation: sealGlow 2.2s ease-in-out infinite;
  transition: transform .35s ease, box-shadow .35s ease;
}
.envelope:not(.open):hover .envelope-seal,
.envelope:not(.open):focus-visible .envelope-seal { transform: translate(-50%, -50%) scale(1.12) rotate(-8deg); }
.envelope.is-opening { animation: envelopeOpenCue .7s cubic-bezier(.2, .8, .22, 1) both !important; }
@keyframes envelopeFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(.35deg); } }
@keyframes sealGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(188, 112, 121, .2); } 50% { box-shadow: 0 0 0 .55rem rgba(188, 112, 121, .08); } }
@keyframes envelopeOpenCue { 0% { transform: scale(1); } 45% { transform: scale(1.035) rotate(-1deg); } 100% { transform: scale(1); } }
@media (hover: none), (pointer: coarse) { .envelope:not(.open):hover { transform: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  .envelope:not(.open), .envelope:not(.open) .envelope-seal, .envelope.is-opening { animation: none !important; transition: none !important; }
}

/* Envelope paper preview: visible as a soft inset card, never as a white square. */
.envelope:not(.open)::before { display: none !important; }
.envelope-note {
  top: 43px !important;
  left: 12% !important;
  width: 76% !important;
  height: 158px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(126, 76, 86, .16) !important;
  border-radius: 5px !important;
  background: linear-gradient(145deg, #fffaf0, #f7e7d8) !important;
  box-shadow: 0 8px 18px rgba(71, 36, 63, .12) !important;
  padding: 1.6rem .9rem !important;
  transform: translateY(10px) scale(.94) !important;
}
.envelope.open .envelope-note { transform: translateY(-95px) scale(1) !important; }
.envelope-note::before {
  content: "✦  ROHIT & KRITIKA  ✦";
  display: block;
  margin-bottom: .55rem;
  color: var(--rose);
  font: 600 .58rem/1 "DM Sans", sans-serif;
  letter-spacing: .12em;
}
.envelope-note .eyebrow { display: none; }
.envelope-note p:not(.eyebrow) { margin: 0; font: italic 1rem/1.35 "DM Serif Display", Georgia, serif; }

/* Remove the hover rectangle completely; the envelope is the only hover surface. */
.envelope::before,
.envelope::after,
.envelope:not(.open)::before,
.envelope:not(.open)::after {
  display: none !important;
  content: none !important;
}
.envelope,
.envelope:hover,
.envelope:focus,
.envelope:focus-visible {
  outline: none !important;
  border: 0 !important;
  background: transparent !important;
}

/* Keep every pre-open layer inside the envelope silhouette. */
.envelope {
  overflow: hidden !important;
  border-radius: 8px !important;
}
.envelope-note {
  z-index: 1 !important;
  background: linear-gradient(145deg, #fffaf0, #f7e7d8) !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* The note must be allowed to rise above the envelope when opened. */
.envelope { overflow: visible !important; }
.envelope:not(.open) .envelope-note { z-index: 1 !important; }
.envelope.open .envelope-note {
  z-index: 10 !important;
  transform: translateY(-105px) scale(1) !important;
  box-shadow: 0 18px 34px rgba(71, 36, 63, .18) !important;
}
.envelope.open .envelope-front { z-index: 2 !important; }
.envelope.open .envelope-flap { z-index: 3 !important; }
.envelope.open .envelope-seal { z-index: 4 !important; }

/* Desktop venue layout: keep the title copy above and clear of the map. */
@media (min-width: 901px) {
  .venue-grid {
    grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr) !important;
    align-items: center !important;
    gap: clamp(2.5rem, 5vw, 5rem) !important;
    overflow: visible !important;
  }
  .venue-copy {
    position: relative !important;
    z-index: 3 !important;
    min-width: 0 !important;
    padding: 2rem 0 !important;
  }
  .venue-copy .section-title {
    position: relative !important;
    z-index: 4 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
  }
  .venue-copy .accent { white-space: nowrap !important; }
  .venue .map {
    position: relative !important;
    z-index: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* Restore portrait names above the gallery image and decoration layers. */
.story-grid .portrait-caption {
  display: block !important;
  position: absolute !important;
  z-index: 10 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff7ed !important;
  pointer-events: none !important;
}
.story-grid .portrait-caption h3,
.story-grid .portrait-caption p {
  position: relative !important;
  z-index: 11 !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.story-grid .portrait-caption h3 {
  width: max-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  font-size: clamp(1.25rem, 5vw, 2.2rem) !important;
  line-height: 1 !important;
}
.story-grid .portrait-caption {
  transform: translateX(-50%) translateY(0) !important;
  transition: transform .5s cubic-bezier(.2, .8, .22, 1), text-shadow .5s ease, opacity .5s ease !important;
}
.story-grid .portrait:hover .portrait-caption {
  transform: translateX(-50%) translateY(-12px) !important;
  text-shadow: 0 5px 18px rgba(255, 231, 168, .35) !important;
}
.story-grid .portrait:hover .portrait-caption h3 {
  letter-spacing: .035em !important;
  transform: scale(1.04) !important;
  transition: transform .5s cubic-bezier(.2, .8, .22, 1), letter-spacing .5s ease !important;
}
@media (max-width: 700px) {
  .story-grid .portrait-caption h3 {
    font-size: clamp(1.55rem, 7vw, 2.5rem) !important;
    line-height: 1 !important;
  }
}

/* Venue title and décor: preserve two clean lines without decoration overlap. */
.venue-copy {
  position: relative !important;
  z-index: 20 !important;
  isolation: isolate;
}
.venue-copy .section-title {
  position: relative !important;
  z-index: 21 !important;
  max-width: 8ch !important;
  line-height: .98 !important;
  white-space: normal !important;
}
.venue-copy .section-title .accent {
  display: block !important;
  white-space: nowrap !important;
}
.venue-copy .section-title {
  font-size: 0 !important;
  max-width: 100% !important;
}
.venue-copy .section-title::after {
  content: "The\A Rosewood\A Palace.";
  display: block;
  white-space: pre;
  color: var(--plum);
  font: 400 clamp(2.7rem, 5vw, 5.8rem)/.92 "DM Serif Display", Georgia, serif;
}
.venue-copy .section-title::first-line { color: var(--plum); }
.venue-copy .section-title .accent { display: none !important; }
.venue .mala,
.venue .rk-floral-rail,
.venue .rk-float-flower {
  display: none !important;
  pointer-events: none !important;
}
@media (max-width: 900px) {
  .venue-copy .section-title { max-width: 8ch !important; }
}

/* Global responsive text safety: content above décor at every viewport size. */
html, body { max-width: 100%; overflow-x: hidden !important; }
main section, footer { position: relative; isolation: isolate; }
main section > .wrap, footer > .wrap,
main section .section-head, main section .venue-grid,
main section .rsvp-grid, main section .story-grid,
main section .event-grid, main section .carousel,
main section .venue-copy, main section form { position: relative; z-index: 3; }
.section-title, .display, h1, h2, h3, h4, p, a, button, label {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
.section-title, .display, h1, h2 { text-wrap: balance; }
.section-title { font-size: clamp(2.25rem, 5.2vw, 5.8rem); line-height: .98; }
.section-lead, main section p:not(.eyebrow) { text-wrap: pretty; }
.accent { max-width: 100%; }

/* Decorative rails/flowers sit behind all readable content and stay subtle. */
main section .mala,
main section .rk-floral-rail,
main section .rk-float-flower,
main section .rk-hero-flower,
main section::before,
main section::after {
  z-index: 0 !important;
  opacity: .18 !important;
  pointer-events: none !important;
}
main section > .wrap,
main section .section-head,
main section .venue-grid,
main section .rsvp-grid,
main section .story-grid,
main section .event-grid,
main section .carousel,
main section .venue-copy,
main section form { isolation: isolate; }
@media (max-width: 700px) {
  .section-title, .display, h1, h2 { font-size: clamp(2rem, 10vw, 3.8rem); }
  .wrap { width: min(100%, calc(100% - 2rem)); }
  main section .mala, main section .rk-floral-rail, main section .rk-float-flower { opacity: .12 !important; }
}
@media (prefers-reduced-motion: reduce) {
  main section .mala, main section .rk-floral-rail, main section .rk-float-flower { animation: none !important; }
}

/* Memory header: keep the title and supporting copy in separate responsive columns. */
.memories .section-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .75fr) !important;
  align-items: end !important;
  gap: clamp(1.5rem, 5vw, 5rem) !important;
}
.memories .section-head > * { min-width: 0 !important; position: relative; z-index: 4; }
.memories .section-head .section-lead { margin: 0 !important; }
@media (max-width: 760px) {
  .memories .section-head { grid-template-columns: 1fr !important; gap: 1rem !important; }
}

/* Final décor stacking: subtle background-only decoration, never over text. */
main section .mala,
main section .rk-floral-rail,
main section .rk-float-flower,
main section .rk-hero-flower { z-index: 0 !important; opacity: .12 !important; }
main section > .wrap,
main section > .wrap *:not(.mala):not(.rk-floral-rail):not(.rk-float-flower):not(.rk-hero-flower) { position: relative; z-index: 2; }

/* Venue-specific hard separation: floral rails can never paint over the copy. */
.venue { isolation: isolate !important; }
.venue .rk-floral-rail,
.venue .rk-float-flower,
.venue .mala,
.venue .mala-flower {
  position: absolute !important;
  z-index: -1 !important;
  opacity: .07 !important;
  pointer-events: none !important;
}
.venue .wrap,
.venue .venue-copy,
.venue .venue-copy * {
  position: relative !important;
  z-index: 10 !important;
}
.venue .venue-copy {
  background: rgba(251, 247, 242, .94) !important;
  border-radius: .5rem;
}
.venue > .rk-floral-rail,
.venue > .rk-float-flower,
.venue > .mala,
.venue > .rk-hero-flower { display: none !important; }

/* Global decoration layer: every section's flowers stay behind readable content. */
main section,
footer { isolation: isolate !important; }
main section .mala,
main section .mala *,
main section .rk-floral-rail,
main section .rk-floral-rail *,
main section .rk-float-flower,
main section .rk-hero-flower,
footer .mala,
footer .mala *,
footer .rk-floral-rail,
footer .rk-floral-rail *,
footer .rk-float-flower,
footer .rk-hero-flower {
  z-index: 0 !important;
  opacity: .06 !important;
  pointer-events: none !important;
}
main section > .wrap,
footer > .wrap,
main section > .wrap *:not(.mala):not(.mala *):not(.rk-floral-rail):not(.rk-floral-rail *):not(.rk-float-flower):not(.rk-hero-flower) {
  position: relative;
  z-index: 5 !important;
}

/* Tablet and mobile headings: keep accent spans on their own clean line. */
@media (max-width: 1024px) {
  .section-title > span,
  .section-title .accent,
  h1 > span,
  h2 > span,
  h3 > span { display: block !important; width: 100%; }
  .section-title, h1, h2, h3 { line-height: 1 !important; text-wrap: balance !important; }
}

/* Carousel caption safety: keep text fully visible inside the image frame. */
.memories .memory-caption {
  position: absolute !important;
  z-index: 12 !important;
  display: block !important;
  right: auto !important;
  bottom: clamp(1.75rem, 7vw, 2.75rem) !important;
  left: 50% !important;
  width: max-content !important;
  max-width: calc(100% - 2rem) !important;
  box-sizing: border-box !important;
  padding: .65rem clamp(1.25rem, 7vw, 2.25rem) !important;
  border-radius: .75rem !important;
  background: rgba(62, 29, 55, .78) !important;
  box-shadow: 0 8px 20px rgba(35, 18, 38, .16) !important;
  backdrop-filter: blur(5px);
  transform: translateX(-50%);
  margin: 0 !important;
  text-align: center !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  overflow: hidden !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  line-height: 1.15 !important;
  text-wrap: pretty !important;
}
@media (max-width: 520px) {
  .memories .memory-caption { position: absolute !important; font-size: clamp(.95rem, 4.8vw, 1.25rem) !important; max-width: calc(100% - 1.5rem) !important; padding: .65rem 1.5rem !important; bottom: 3rem !important; }
}

/* Stacked carousel safety: only the active slide may paint or receive hover. */
.memories .memory:not(.is-active),
.memories .memory:not(.is-active) * {
  z-index: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.memories .memory.is-active { z-index: 10 !important; visibility: visible !important; opacity: 1 !important; }
.memories .memory.is-active * { visibility: visible !important; }

/* Adaptive Memories heading: one line when wide, two lines when constrained. */
.memories .section-title {
  white-space: nowrap !important;
  max-width: none !important;
}
.memories .section-title br { display: none !important; }
.memories .section-title .accent { display: inline !important; width: auto !important; white-space: nowrap !important; }
@media (max-width: 760px) {
  .memories .section-title { white-space: normal !important; }
  .memories .section-title br { display: block !important; }
  .memories .section-title .accent { display: inline !important; }
}

/* Mobile heading lines: no mid-word wrapping or clipped accent spans. */
@media (max-width: 700px) {
  .section-title,
  .section-title > span,
  .section-title .accent,
  h1, h2, h3,
  h1 > span, h2 > span, h3 > span {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }
  .section-title > span,
  .section-title .accent,
  h1 > span, h2 > span, h3 > span {
    display: inline !important;
    width: auto !important;
  }
  .section-title { font-size: clamp(1.65rem, 8.5vw, 3.2rem) !important; letter-spacing: -.025em; }
  .venue-copy .section-title { width: 100% !important; max-width: 100% !important; }
  .venue-copy .section-title::after { content: "The Rosewood Palace." !important; font-size: clamp(1.35rem, 7.5vw, 3.8rem) !important; line-height: 1 !important; white-space: nowrap !important; }
  .rsvp-copy h2 { max-width: 100% !important; font-size: 0 !important; line-height: 1 !important; white-space: nowrap !important; }
  .rsvp-copy h2 br { display: none !important; }
.rsvp-copy h2::after { content: "Kindly respond."; display: inline-block; font: 400 clamp(1.8rem, 10vw, 4.25rem)/1 "DM Serif Display", Georgia, serif; white-space: nowrap; }
}

/* Raised decoration layer: visible above backgrounds, still below all content. */
main section .mala,
main section .mala *,
main section .rk-floral-rail,
main section .rk-floral-rail *,
main section .rk-float-flower,
main section .rk-hero-flower,
footer .mala,
footer .mala *,
footer .rk-floral-rail,
footer .rk-floral-rail *,
footer .rk-float-flower,
footer .rk-hero-flower { z-index: 1 !important; }

/* User-selected decoration level: layer 3, below content layer 5. */
main section .mala,
main section .mala *,
main section .rk-floral-rail,
main section .rk-floral-rail *,
main section .rk-float-flower,
main section .rk-hero-flower,
footer .mala,
footer .mala *,
footer .rk-floral-rail,
footer .rk-floral-rail *,
footer .rk-float-flower,
footer .rk-hero-flower { z-index: 3 !important; }

/* Desktop only: move decorations one layer back. */
@media (min-width: 901px) {
  main section .mala,
  main section .mala *,
  main section .rk-floral-rail,
  main section .rk-floral-rail *,
  main section .rk-float-flower,
  main section .rk-hero-flower,
  footer .mala,
  footer .mala *,
  footer .rk-floral-rail,
  footer .rk-floral-rail *,
  footer .rk-float-flower,
  footer .rk-hero-flower { z-index: 2 !important; }
}

/* Final single-line heading override for the requested sections. */
.cards-section .section-title,
.closing .section-title,
.scratch-section .section-title,
.envelope-section .section-title { white-space: nowrap !important; max-width: none !important; font-size: clamp(1.45rem, 5vw, 4.8rem) !important; }
.cards-section .section-title br,
.closing .section-title br,
.scratch-section .section-title br,
.envelope-section .section-title br { display: none !important; }
.cards-section .section-title .accent,
.closing .section-title .accent,
.scratch-section .section-title .accent,
.envelope-section .section-title .accent { display: inline !important; width: auto !important; white-space: nowrap !important; }

/* Tablet Memories layout: give the heading the full row. */
@media (min-width: 761px) and (max-width: 1024px) {
  .memories .section-head {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .memories .section-head .section-title { width: 100% !important; font-size: clamp(2.8rem, 7vw, 5rem) !important; }
  .memories .section-head .section-lead { width: min(100%, 42rem) !important; }
}
