:root {
  --bg: #faf8f2;
  --text: #1e1a14;
  --accent: #c9a84c;
  --accent-dark: #9a7c2e;
  --card: #ffffff;
  --border: #e6d9b8;
  --dune-red: #8b2c2c;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  scrollbar-width: none;
  margin-right: -20px;
  overflow-x: hidden;
}

body.loading-active {
  overflow: hidden;
}

body.loading-active .cd-player {
  display: none;
}

body::-webkit-scrollbar {
  display: none;
}

.container {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
}

.letter-seal-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 99;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.letter-seal-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.letter-seal-screen.is-opening {
  pointer-events: none;
}

.letter-seal-screen__paper {
  width: 100%;
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.9rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  text-align: center;
  background: url("assets/paper.webp");
  background-size: cover;
  background-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), inset 0 18px 45px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.letter-seal-screen__paper::after {
  inset: auto auto 28px 28px;
  width: 140px;
  height: 140px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.16), transparent 68%);
  filter: blur(4px);
}

.letter-seal-screen__eyebrow {
  margin: 0;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(91, 64, 20, 0.78);
}

.letter-seal-screen__brand {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 1;
  color: #7e621c;
  letter-spacing: 0.1em;
}

.letter-seal-screen__invite-label {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(91, 64, 20, 0.75);
}

.letter-seal-screen__eyebrow,
.letter-seal-screen__brand,
.letter-seal-screen__invite-label {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.letter-seal-screen.is-opening .letter-seal-screen__eyebrow,
.letter-seal-screen.is-opening .letter-seal-screen__brand,
.letter-seal-screen.is-opening .letter-seal-screen__guest-name,
.letter-seal-screen.is-opening .letter-seal-screen__invite-label {
  opacity: 0;
  transform: translateY(-14px);
}

.letter-seal-screen__guest-name {
  margin: 0;
  max-width: 24ch;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.1;
  color: #5d4310;
}

.paper-fold {
  --fold-h: clamp(150px, 24vw, 220px);
  width: 100%;
  height: var(--fold-h);
  margin-top: 1.25rem;
  position: relative;
  transition: transform 4s cubic-bezier(0.22, 0, .8, 1);
}

.paper-fold::before,
.paper-fold::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  opacity: 0.55;
}

.paper-fold::before {
  left: 0;
  background: linear-gradient(
    15deg,
    rgba(255, 255, 255, 0) 34%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(189, 168, 130, 0.9) 60%,
    rgba(189, 168, 130, 0) 60%
  );
  clip-path: polygon(0% 0%, calc(var(--fold-h) * tan(75deg)) 100%, 0% 100%);
}

.paper-fold::after {
  right: 0;
  background: linear-gradient(
    -15deg,
    rgba(255, 255, 255, 0) 34%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(189, 168, 130, 0.85) 60%,
    rgba(189, 168, 130, 0) 60%
  );
  clip-path: polygon(100% 0%, calc(100% - var(--fold-h) * tan(75deg)) 100%, 100% 100%);
}

.letter-seal-screen__seal-button {
  margin-top: calc(clamp(150px, 24vw, 220px) * -0.7);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 4s cubic-bezier(0.22, 0, .8, 1), filter 0.25s ease;
  animation: pulse 2.5s infinite ease-in-out;
  position: relative;
  z-index: 2;
}

.letter-seal-screen.is-opening .letter-seal-screen__seal-button {
  animation: none;
}

.letter-seal-screen.is-unsealing .paper-fold,
.letter-seal-screen.is-unsealing .letter-seal-screen__seal-button {
  transform: translateY(-800px);
}

.letter-seal-screen__seal-button:hover,
.letter-seal-screen__seal-button:focus-visible {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 16px 24px rgba(125, 87, 20, 0.26));
}

.letter-seal-screen__seal-button:focus-visible {
  outline: 2px solid rgba(154, 124, 46, 0.72);
  outline-offset: 6px;
  border-radius: 999px;
}

.letter-seal-screen__seal-button img {
  display: block;
  width: clamp(112px, 24vw, 14vw);
  height: auto;
}

.letter-seal-screen__hint {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(91, 64, 20, 0.82);
  opacity: 0;
  animation: revealHint 0.45s ease 5s forwards;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.invitation {
  position: relative;
  z-index: 1;
  padding-block: 3.5rem 4rem;
  padding-top: 200px;
}

.invitation__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.invitation__card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: #fff;
}

.invitation__icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.75rem;
  color: var(--accent);
}

.invitation__icon svg {
  width: 100%;
  height: 100%;
}

.invitation__card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
}

.invitation__card p {
  margin: 0.2rem 0;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* ── Save-the-date card ── */
.std-card {
  display: flex;
  position: relative;
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.9);

  background-image: url("assets/paper.webp");
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.std-card__strip {
  position: absolute;
  top: 0;
  left: 30px;
  width: 148px;
  flex-shrink: 0;
  align-self: stretch;
  background-color: #f5f0e8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem 1.25rem 3.5rem;
  gap: 1.1rem;
  box-shadow: 2px 3px 1px 2px rgba(0, 0, 0, 0.3);
}

.std-card__seal {
  width: 100px;
  height: 100px;
  align-self: center;
}

.std-card__seal img {
  width: 100%;
  height: 100%;
  display: block;
}

.std-card__save-text {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.05;
  color: #1e1a14;
  list-style: none;
  text-align: center;
  align-self: center;
}

.std-card__save-text span {
  display: block;
}

.std-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 2rem 1.8rem;
}

.std-card__date-block {
  width: fit-content;
  float: inline-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.std-card__date-block--right {
  padding-left: 20px;
  margin-left: 20px;
  border-left: 2px solid var(--accent-dark);
}
.std-card__date-block span {
  font-family: "Playfair Display", serif;
  font-size: clamp(4.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
}

.std-card__info {
  text-align: center;
}

.std-card__for {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: .92rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.std-card__names {
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--accent-dark);
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.std-card__names-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 0 0.65rem;
}

.std-card__botanic {
  width: 62px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.9;
}

.std-card__botanic--left {
  transform: scaleX(-1) rotate(-10deg);
}

.std-card__botanic--right {
  transform: rotate(-10deg);
}

.std-card__names-wrap .std-card__names {
  margin: 0;
}

.std-card__together-image {
  width: 100%;
  height: 100%;
  margin-top: -20px;
  margin-bottom: 1.5rem;
}

.std-card__together-image img {
  width: 200px;
  object-fit: cover;
}

.std-card__title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 1.5rem 0 0.18rem;
  font-weight: 500;
  line-height: 1.5;
}

.std-card__detail {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--accent-dark);
  margin: 0.18rem 0;
  font-weight: 500;
  line-height: 1.5;
}

.std-card__dash {
  color: var(--accent-dark);
  margin: 0.65rem 0 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.std-card__tagline {
  font-family: "Be Vietnam Pro", sans-serif;
  font-style: italic;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  margin: 0;
}

.std-card__cta {
  display: flex;
  justify-content: center;
  padding: 1.25rem 0 0.5rem;
}

.std-card__event-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.std-card__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border: 1.5px solid var(--accent-dark);
  border-radius: 2rem;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.std-card__action-btn svg {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
}

.std-card__action-btn:hover {
  background-color: var(--accent-dark);
  color: #fff;
}

.invitation__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 680px;
  margin-inline: auto;
}

/* ── Timeline section ── */
.timeline {
  position: relative;
  z-index: 1;
  padding-block: 4rem 4.5rem;
  padding-bottom: 200px;
}

.timeline__container {
  width: min(100% - 2rem, 680px);
  margin-inline: auto;
  padding: 2.75rem 2.5rem 3rem;
  background: rgba(255, 255, 255, 0.9);

  background-image: url("assets/paper.webp");
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.timeline__eyebrow {
  margin: 0 0 1.8rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(30, 26, 20, 0.72);
}

.timeline__heading {
  text-align: left;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 3rem;
  line-height: 1.28;
}

.timeline__heading span {
  display: block;
}

.dress-code__swatches {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dress-code__swatches img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.timeline__schedule {
  position: relative;
  display: grid;
  gap: 1.7rem;
  margin-bottom: 3rem;
}

.timeline__schedule::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 154px;
  width: 1px;
  background: rgba(30, 26, 20, 0.32);
}

.timeline__item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 2.1rem;
  align-items: center;
}

.timeline__time {
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: right;
}

.timeline__event {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding-left: 1.45rem;
}

.timeline__icon {
  width: 80px;
  height: auto;
  display: block;
  justify-self: center;
}

.timeline__marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(30, 26, 20, 0.36);
  position: relative;
  justify-self: center;
  box-shadow: 0 0 0 6px rgba(233, 228, 222, 0.92);
}

.timeline__marker::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(30, 26, 20, 0.12);
}

.timeline__marker--accent {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline__marker--accent::after {
  background: rgba(255, 255, 255, 0.36);
}

.timeline__label {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0;
  line-height: 1.3;
}

/* Our-love-story entrance animations */
.our-love-story__heading,
.story-moment__marker,
.story-moment .story-slider,
.story-moment .story-note {
  opacity: 0;
}

.story-year-group {
  position: relative;
  padding-top: 6rem;
}

.our-love-story.is-visible .our-love-story__heading {
  animation: fadeDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}

.story-year-group.is-visible .story-moment__marker {
  animation: fadeDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}

.story-year-group.is-visible .story-slider {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.story-year-group.is-visible .story-note {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.our-love-story {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
  background: #fcfaf5;
  overflow: hidden;
}

.our-love-story::before,
.our-love-story::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(168, 195, 204, 0.18) 0%, transparent 72%);
  pointer-events: none;
}

.our-love-story::before {
  top: 80px;
  left: -140px;
}

.our-love-story::after {
  right: -140px;
  bottom: 40px;
}

.our-love-story__container {
  position: relative;
}

.our-love-story__eyebrow {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(30, 26, 20, 0.6);
}

.our-love-story__heading {
  margin: 0 0 3.5rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--text);
}

.our-love-story__timeline {
  position: relative;
  display: grid;
}

.our-love-story__timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(30, 26, 20, 0.16);
}

.story-moment {
  position: relative;
  margin-bottom: 6rem;
}

.story-moment__marker {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.5rem;
  background: none;
  border: none;
  box-shadow: none;
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  white-space: nowrap;
}

.story-moment__marker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/botanic3.webp") center / contain no-repeat;
  opacity: 0.8;
  z-index: -1;
}

.story-moment__decor {
  position: absolute;
  top: 0;
  left: 50%;
  transform: rotate(45deg);
}

.story-moment__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(100%, 560px);
  margin: 0 auto;
}

.story-moment:nth-child(4n + 2) .story-note,
.story-moment:nth-child(4n + 3) .story-note {
  background: var(--bg);
}

.story-slider {
  position: relative;
}

.story-slider__viewport {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(30, 26, 20, 0.06);
  box-shadow: 0 24px 50px rgba(50, 39, 24, 0.15);
}

.story-slider__track {
  display: flex;
  transition: transform 0.45s ease;
}

.story-slider__slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
}

.story-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-slider__button {
  position: absolute;
  bottom: -22px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: rgba(30, 26, 20, 0.82);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 16px 40px rgba(30, 26, 20, 0.14),
    inset 0 0 0 1px rgba(201, 168, 76, 0.35);
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.story-slider__button::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  pointer-events: none;
}

.story-slider__button:hover,
.story-slider__button:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    0 20px 44px rgba(30, 26, 20, 0.18),
    inset 0 0 0 1px rgba(201, 168, 76, 0.5);
}

.story-slider__button:hover::before,
.story-slider__button:focus-visible::before {
  border-color: rgba(201, 168, 76, 0.55);
}

.story-slider__button--prev {
  left: 1rem;
}

.story-slider__button--next {
  left: 4.1rem;
}

.story-note {
  position: relative;
  z-index: 2;
  order: -1;
  display: grid;
  align-content: center;
  gap: 1.2rem;
  padding: 2.4rem 2.2rem;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(30, 26, 20, 0.14);
  margin-bottom: -2rem;
}

.story-note::before,
.story-note::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  pointer-events: none;
}

.story-note::after {
  inset: 26px;
}

.story-note__step {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-note h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--text);
}

.story-note > p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(30, 26, 20, 0.82);
}

.story-note__quote {
  position: relative;
  margin: 0;
  padding: 0.2rem 0 0 clamp(2.15rem, 5vw, 2.65rem);
  border: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.68;
  color: rgba(30, 26, 20, 0.9);
}

.story-note__quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5.8vw, 3.4rem);
  font-style: normal;
  font-weight: 400;
  line-height: 0.72;
  color: rgba(201, 168, 76, 0.38);
  pointer-events: none;
}

.story-note__quote p {
  margin: 0;
}

.story-note__quote footer {
  margin-top: 0.9rem;
  font-family: "Be Vietnam Pro", sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.story-note__quote cite {
  font-style: normal;
}

.short-story,
.footer {
  position: relative;
  z-index: 1;
}

/* Wedding-gallery entrance animations */
.wedding-gallery__eyebrow,
.wedding-gallery__heading,
.gallery-item {
  opacity: 0;
}

.wedding-gallery.is-visible .wedding-gallery__eyebrow {
  animation: fadeDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}

.wedding-gallery.is-visible .wedding-gallery__heading {
  animation: fadeDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.wedding-gallery.is-visible .gallery-item:nth-child(1)  { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.20s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(2)  { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(3)  { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(4)  { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.40s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(5)  { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(6)  { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(7)  { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(8)  { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.60s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(9)  { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.64s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(10) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.68s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(11) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.72s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(12) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.76s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(13) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.80s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(14) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.84s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(15) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.88s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(16) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.92s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(17) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.96s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(18) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.00s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(19) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.04s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(20) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.08s forwards; }
.wedding-gallery.is-visible .gallery-item:nth-child(21) { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.08s forwards; }

/* ── Wedding Gallery ── */
.wedding-gallery {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
  background: #06080f;
  overflow: hidden;
}

/* Star field layers */
.gallery-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Small/medium tiling stars — oversized so edge never shows during translation */
.gallery-stars::before {
  content: '';
  position: absolute;
  inset: -30%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0.5px, transparent 0.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0.5px, transparent 0.5px),
    radial-gradient(circle, rgba(220, 230, 255, 0.45) 0.5px, transparent 0.5px);
  background-size: 130px 130px, 190px 190px, 260px 260px;
  background-position: 18px 24px, 75px 95px, 200px 60px;
  will-change: transform;
  animation: stars-drift-sm 180s linear infinite;
}

/* Larger brighter stars */
.gallery-stars::after {
  content: '';
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 1px, transparent 1px),
    radial-gradient(circle, rgba(200, 220, 255, 0.7) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 240, 200, 0.6) 1px, transparent 1px);
  background-size: 340px 340px, 520px 520px, 470px 470px;
  background-position: 50px 90px, 210px 320px, 380px 140px;
  will-change: transform;
  animation: stars-drift-lg 240s linear infinite reverse;
}

/* Nebula colour glow — opacity-only animation runs on compositor */
.gallery-nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 25% 35%, rgba(110, 70, 200, 0.14), transparent),
    radial-gradient(ellipse 55% 55% at 75% 65%, rgba(50, 90, 210, 0.11), transparent),
    radial-gradient(ellipse 90% 35% at 55% 85%, rgba(200, 70, 110, 0.09), transparent),
    radial-gradient(ellipse 60% 40% at 80% 15%, rgba(80, 160, 220, 0.08), transparent);
  animation: nebula-pulse 20s ease-in-out infinite alternate;
}

/* translate() runs entirely on GPU compositor — no repaint */
@keyframes stars-drift-sm {
  from { transform: translate(0, 0); }
  to   { transform: translate(260px, 260px); }
}

@keyframes stars-drift-lg {
  from { transform: translate(0, 0); }
  to   { transform: translate(340px, 0); }
}

@keyframes nebula-pulse {
  from { opacity: 0.2; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-stars::before,
  .gallery-stars::after,
  .gallery-nebula {
    animation: none;
  }
}

/* Keep content above the star field */
.wedding-gallery__container {
  position: relative;
  z-index: 1;
}

.wedding-gallery__eyebrow {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 248, 242, 0.5);
}

.wedding-gallery__heading {
  margin: 0 0 2.8rem;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--bg);
}

.wedding-gallery__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 320px;
  grid-auto-flow: dense;
  gap: 6px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.gallery-item--featured {
  grid-row: span 2;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:focus-visible {
  outline: 2px solid rgba(250, 248, 242, 0.78);
  outline-offset: 4px;
}

@keyframes gallery-placeholder {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

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

@media (max-width: 540px) {
  .hero h1 span {
    display: block;
  }

  .std-card {
    flex-direction: column;
  }

  .invitation .container {
    width: 100%;
  }

  .std-card__strip {
    padding: 1rem 1.25rem;
    width: 100px;
    gap: 0.5rem;
  }

  .std-card__seal {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .std-card__save-text {
    gap: 0.1rem;
    font-size: 1.5rem;
  }

  .std-card__names-wrap {
    gap: 0.45rem;
  }

  .std-card__names span {
    display: block;
  }

  .std-card__botanic {
    width: 60px;
  }

  .std-card__body {
    padding: 0 1.4rem 1.5rem;
  }

  .std-card__date-block {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .std-card__date-block span {
    font-size: 3.5rem;
  }

  .invitation__grid--two {
    grid-template-columns: 1fr;
  }

  .timeline {
    margin-bottom: 6rem;
  }

  .timeline__container {
    width: 100%;
    padding: 2rem 1.25rem 2.2rem;
  }

  .timeline__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    margin-bottom: 1.3rem;
  }

  .timeline__heading {
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    margin-bottom: 2.2rem;
  }

  .timeline__schedule {
    gap: 1.75rem;
  }

  .timeline__schedule::before {
    left: 100px;
  }

  .timeline__item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .timeline__time {
    font-size: 1.35rem;
  }

  .timeline__event {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem;
    padding-left: 1rem;
  }

  .timeline__icon {
    width: 75px;
  }

  .timeline__marker {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 5px rgba(233, 228, 222, 0.92);
  }

  .timeline__marker::after {
    inset: 4px;
  }

  .timeline__label {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .our-love-story {
    padding: 4rem 0 4.5rem;
  }

  .our-love-story__heading {
    margin-bottom: 2.5rem;
  }

  .our-love-story__timeline {
    gap: 6rem;
  }


  .story-moment__content,
  .story-moment:nth-child(even) .story-moment__content {
    width: auto;
    grid-template-columns: 1fr;
  }

  .story-moment:nth-child(even) .story-slider {
    order: 0;
  }

  .story-slider__button--prev {
    left: 1rem;
  }

  .story-slider__button--next {
    left: 3.9rem;
  }

  .story-note {
    padding: 2rem 1.5rem;
    margin-bottom: -1.5rem;
  }

  .story-note::after {
    display: none;
  }

  .story-slider__button::before {
    display: none;
  }

  .story-slider__button:hover,
  .story-slider__button:focus-visible {
    box-shadow:
      0 16px 40px rgba(30, 26, 20, 0.14),
      inset 0 0 0 1px rgba(201, 168, 76, 0.5);
  }
}

@media (max-width: 480px) {
  .invitation__grid {
    grid-template-columns: 1fr;
  }

  .story-note h3 {
    font-size: 1.5rem;
  }

  .story-note > p {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .story-note__quote {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .story-note__quote footer {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .wedding-gallery {
    padding: 4rem 0 4.5rem;
  }

  .wedding-gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  /* .gallery-item--featured {
    grid-column: span 2;
    grid-row: span 1;
  } */
}

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 16, 8, 0.58) 0%,
    rgba(30, 22, 10, 0.46) 55%,
    rgba(15, 12, 5, 0.65) 100%
  );
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  animation: kenBurns 7s ease-in-out forwards;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.menu {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.menu-links {
  display: flex;
  gap: 1.5rem;
}

.menu-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.menu-links a:hover {
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem 5rem;
  color: #fff;
}

.hero-content h1 {
  font-family: "Great Vibes", cursive;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.2rem;
}

.flourish {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 420px);
  margin: 0.6rem auto;
}

.flourish-line {
  flex: 1;
  height: 1px;
  background: rgba(220, 210, 180, 0.5);
}

.flourish-diamond {
  color: #c9a84c;
  font-size: 0.75rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.hero-subtext {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  line-height: 1.6;
}

.hero-status {
  margin: 0.5rem 0 1.8rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3.8vw, 2.2rem);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}

.hero-status__meta,
.hero-status__dot {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 0.52em;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-status__day {
  font-size: 1em;
  line-height: 1;
}

.hero-status__dot {
  letter-spacing: 0;
}

/* Scroll-down indicator */
.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2.2rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  opacity: 0;
  transition: color 0.25s;
}

.scroll-down:hover {
  color: rgba(255, 255, 255, 0.95);
}

.scroll-down__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-down__mouse {
  width: 22px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-down__wheel {
  width: 3px;
  height: 7px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  60%  { opacity: 0; transform: translateY(10px); }
  61%  { opacity: 0; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero.hero-revealed .scroll-down {
  animation: fadeUp 0.7s 1.1s ease both;
}

/* Hero entrance animations */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scaleX(0.55); }
  to   { opacity: 1; transform: scaleX(1); }
}

.hero-eyebrow,
.hero-content h1,
.flourish,
.hero-status {
  opacity: 0;
}

.hero.hero-revealed .hero-eyebrow {
  animation: fadeDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.hero.hero-revealed .hero-content h1 {
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.hero.hero-revealed .flourish {
  animation: fadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero.hero-revealed .hero-status {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}



.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-dark);
}

/* Short-story entrance animations */
.short-story__content h2,
.short-story__content p,
.short-story__cta,
.short-story__visual {
  opacity: 0;
}

.short-story.is-visible .short-story__content h2 {
  animation: fadeDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards;
}

.short-story.is-visible .short-story__content p {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.short-story.is-visible .short-story__cta {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.short-story.is-visible .short-story__visual {
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.short-story {
  position: relative;
  padding-block: 3rem;
  background: var(--bg);
  background-image: url("assets/paper.webp");
  background-size: cover;
  background-position: center;
  transform: skewY(-3deg);
  transform-origin: top left;
  margin-bottom: 300px;
}

.short-story__teal,
.short-story__botanical,
.short-story__grid {
  transform: skewY(3deg);
}

.short-story__teal {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 140, 130, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.short-story__botanical {
  transform: rotate(45deg);
  position: absolute;
  right: -360px;
  top: 60px;
  width: 640px;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.short-story__botanical svg {
  width: 100%;
  height: auto;
}

.short-story__grid {
  display: flex;
  gap: 8rem;
  padding: 0 80px;
  align-items: center;
  justify-content: space-between;
}

.short-story__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.short-story__content h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.short-story__content p {
  color: #5a5040;
  font-weight: 400;
  line-height: 1.8;
  margin: 0;
  max-width: 44ch;
}

.btn-story {
  position: relative;
  align-self: flex-start;
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  overflow: visible;
}

.btn-story:after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 102%;
  height: 108%;
  background: var(--accent);
  opacity: 0.4;
  transition: top 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              left 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
}

.btn-story:hover:after {
  top: 8px;
  left: 8px;
  opacity: 0.65;
}

.short-story__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.short-story__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame {
  position: relative;
  z-index: 2;
  border: 24px solid #fff;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  max-width: 500px;
  width: 100%;
  margin-block: -6rem;
}

.photo-frame img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

blockquote {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
  font-style: italic;
}



.form-feedback {
  margin: 0;
  min-height: 1.2em;
  font-weight: 500;
  color: var(--accent-dark);
}

.footer {
  padding: 3.5rem 0 2.5rem;
  background: #f5eed6;
  text-align: center;
  position: relative;
}

.footer .container {
  max-width: 700px;
}

.footer p {
  line-height: 1.6;
}

.footer p + p {
  margin-top: 0.45rem;
}

.footer__lucky-money {
  margin-bottom: 2.5rem;
}

.footer__lucky-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  color: var(--accent-dark);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
}

.footer__lucky-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0.6rem auto 1.25rem;
  border-radius: 2px;
}

.footer__lucky-subtitle {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: #8a7550;
  margin: 0 0 1rem;
}

.footer__qr-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer__qr-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.25s ease;
}

.footer__qr-person:hover {
  transform: translateY(-4px);
}

.footer__qr-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  color: var(--accent-dark);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.05em;
}

.footer__qr-wrap {
  display: inline-block;
  padding: 0.55rem;
  background: #fffdf5;
  border: 2px solid var(--accent);
}

.footer__qr {
  display: block;
  width: clamp(130px, 30vw, 180px);
  height: auto;
  border-radius: 6px;
}

.footer__thank-you {
  position: relative;
  margin-top: 0.5rem;
  padding-top: 2rem;
}

.footer__thank-you::before {
  content: "— ♡ —";
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.footer__thank-you-text {
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: #7a6640;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

.signature {
  margin: 1.75rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.45;
  white-space: nowrap;
  color: var(--accent-dark);
  opacity: 0.85;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(201, 168, 76, 0.32));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 18px rgba(201, 168, 76, 0.4));
  }
}

@keyframes revealHint {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .short-story__grid {
    padding: 0 2.5rem;
    gap: 4rem;
  }

  .wedding-gallery__grid {
    grid-auto-rows: 220px;
  }
}

@media (max-width: 768px) {
  body {
    margin-right: 0;
  }

  .invitation {
    padding-top: 300px;
  }

  .signature {
    white-space: normal;
  }
}

@media (max-width: 700px) {

  .letter-seal-screen__paper {
    padding: 2.75rem 0 2rem;
  }

  .letter-seal-screen__eyebrow,
  .letter-seal-screen__invite-label {
    letter-spacing: 0.2em;
  }

  .letter-seal-screen__guest-name {
    max-width: 100%;
  }

  .paper-fold {
    height: clamp(130px, 34vw, 180px);
  }
  .letter-seal-screen__seal-button {
    margin-top: calc(clamp(130px, 34vw, 180px) * -1);
  }

  .menu {
    flex-direction: column;
    gap: 0.8rem;
  }

  .menu-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .short-story__grid {
    flex-direction: column;
    gap: 4.5rem;
    padding: 0 1.5rem;
  }

  .short-story__visual {
    order: -1;
  }

  .photo-frame {
    max-width: 280px;
  }

  .photo-frame img {
    height: 320px;
  }

  .btn-story {
    align-self: center;
  }

  .short-story__content {
    align-items: center;
    text-align: center;
  }

  .short-story__content p {
    max-width: unset;
  }

  .short-story__botanical {
    display: none;
  }
}

/* ── RSVP ────────────────────────────────────────────────────── */
.rsvp {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--bg);
  position: relative;
}

.rsvp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/paper.webp") center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.rsvp__container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.rsvp__eyebrow {
  margin: 0;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent-dark);
}

.rsvp__heading {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}

.rsvp__desc {
  margin: 0;
  max-width: 480px;
  font-size: 0.95rem;
  color: rgba(30, 26, 20, 0.75);
  line-height: 1.7;
}

.rsvp__desc strong {
  color: var(--text);
}

.rsvp__card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rsvp__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.rsvp__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(30, 26, 20, 0.5);
}

.rsvp__input,
.rsvp__textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: none;
  outline: none;
}

.rsvp__input:focus,
.rsvp__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.rsvp__input,
.rsvp__textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.rsvp__input:focus,
.rsvp__textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.rsvp__input::placeholder,
.rsvp__textarea::placeholder {
  color: rgba(30, 26, 20, 0.35);
}

.rsvp__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.rsvp__btn {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.rsvp__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rsvp__btn--accept {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rsvp__btn--accept:hover:not(:disabled) {
  opacity: 0.75;
}

.rsvp__btn--decline {
  color: rgba(30, 26, 20, 0.5);
}

.rsvp__btn--decline:hover:not(:disabled) {
  color: var(--text);
}

.rsvp__feedback {
  width: 100%;
  max-width: 520px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  animation: rsvp-fade-in 0.4s ease both;
}

@keyframes rsvp-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rsvp__feedback-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.rsvp__feedback-text {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  text-align: center;
}

/* ── CD Music Player ─────────────────────────────────────────── */
@keyframes cd-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes cd-appear {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cd-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 90px;
  height: 90px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 1000;
  border-radius: 50%;
  animation: cd-appear 0.5s ease both;
}

/* Hub ring */
.cd-player::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(100, 80, 40, 0.3);
  border-radius: 50%;
  background: rgba(139, 136, 128, 0.8);
  z-index: 2;
  pointer-events: none;
}

/* Center hole */
.cd-player::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4a4040, #1a1515);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.9);
  z-index: 3;
  pointer-events: none;
}

.cd-disc {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
  animation: cd-spin 6s linear infinite;
  transition: filter 0.3s ease;
}

.cd-player.is-muted .cd-disc {
  animation-play-state: paused;
  filter: grayscale(0.6) brightness(0.8);
}

.cd-player:hover .cd-disc {
  filter: brightness(1.1);
}

.cd-player.is-muted:hover .cd-disc {
  filter: grayscale(0.3) brightness(0.9);
}

/* ── Lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 4, 0.92);
  cursor: zoom-out;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.1rem;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 4rem;
  font-size: 2rem;
  line-height: 1;
  border-radius: 4px;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.lightbox__prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(2px); }

.gallery-item {
  cursor: pointer;
}
