:root {
  --ink: #5f554b;
  --muted: #9b9083;
  --plum: #c2a06a;
  --rose: #c2a06a;
  --pink: #efe4cf;
  --lilac: #e8e5d6;
  --cream: #fbfaf2;
  --warm: #fffdf8;
  --blush: #f2e8df;
  --mist: #f6f3ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(232, 229, 214, 0.38), transparent 26%),
    linear-gradient(145deg, #fbfaf2 0%, #f2eadf 48%, #fffdf8 100%);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  overflow-x: hidden;
}

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

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

.site {
  opacity: 0;
  transition: opacity 1s ease;
}

body.opened .site {
  opacity: 1;
}

.opening,
.serene-opening,
.intro-opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding: 1.2rem;
  background: linear-gradient(180deg, #f8f4ee, #f6f0e8);
  transition: opacity 1.05s cubic-bezier(0.65, 0, 0.15, 1), visibility 1.05s cubic-bezier(0.65, 0, 0.15, 1), transform 1.05s cubic-bezier(0.65, 0, 0.15, 1);
}

.opening.hide,
body.opened .opening {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
}

.opening-photo-blur,
.opening-overlay {
  position: absolute;
  inset: 0;
}

.opening-photo-blur {
  z-index: 0;
  background:
    radial-gradient(circle at 12% 34%, rgba(255, 255, 255, 0.7) 0 24px, transparent 25px),
    radial-gradient(circle at 26% 68%, rgba(255, 255, 255, 0.6) 0 28px, transparent 29px),
    linear-gradient(180deg, rgba(255, 250, 244, 0.9), rgba(246, 240, 232, 0.96));
}

.opening-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.62), rgba(255, 253, 249, 0.76)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.46));
}

.open-card.serene-card.refined-opening-card,
.refined-opening-card {
  position: relative;
  z-index: 4;
  display: flex;
  width: min(100% - 32px, 620px);
  min-height: 680px;
  max-height: calc(100vh - 48px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(221, 205, 172, 0.42);
  border-radius: 36px;
  background: #fffaf4 url("images/opening-design-exact.png") center / cover no-repeat;
  box-shadow: 0 26px 80px rgba(119, 101, 76, 0.09);
  text-align: center;
  animation: openFloat 5s ease-in-out infinite;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.refined-opening-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transition: background 0.35s ease, opacity 0.35s ease;
}

.open-card.serene-card.refined-opening-card:hover,
.refined-opening-card:hover {
  animation-play-state: paused;
  transform: translateY(-8px);
  filter: saturate(1.03) brightness(1.02);
  box-shadow:
    0 34px 96px rgba(119, 101, 76, 0.16),
    0 0 46px rgba(217, 192, 138, 0.34);
}

.refined-opening-card:hover::after {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 246, 220, 0.2), transparent 42%),
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.28) 42%, transparent 64%),
    rgba(255, 255, 255, 0.04);
}

.opening-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 10px 18px;
}

.opening-intro {
  margin: 20px 0 1.2rem;
  color: #c2a06a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  text-align: center;
  text-transform: uppercase;
}

.serene-names,
.refined-opening-names {
  display: grid;
  gap: 0.2rem;
  margin: 1rem 0 0;
  color: #c2a06a;
  font-family: "Great Vibes", cursive;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 2px 18px rgba(194, 160, 106, 0.1);
}

.serene-names span,
.refined-opening-names span {
  display: block;
  font-size: clamp(4.8rem, 13vw, 6.6rem);
  font-weight: 400;
}

.serene-names em,
.refined-opening-names em {
  color: #c2a06a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-style: normal;
  line-height: 1;
}

.open-message {
  max-width: 430px;
  margin: 2rem auto 0;
  color: #c2a06a;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
}

.open-date {
  margin: 3rem 0 0;
  color: #c2a06a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.primary-btn,
.serene-btn {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  margin-top: 2.3rem;
  border: 1px solid rgba(219, 193, 137, 0.55);
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  overflow: hidden;
  background: linear-gradient(135deg, #d9c08a, #c6a66f, #b8945c);
  box-shadow: 0 14px 28px rgba(184, 148, 92, 0.2);
  color: #fffdf7;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn::after,
.serene-btn::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -50%;
  width: 40%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transition: left 0.55s ease;
}

.primary-btn:hover,
.serene-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #e0c997, #c8a86f, #b28d54);
  box-shadow: 0 20px 42px rgba(184, 148, 92, 0.28);
}

.primary-btn:hover::after,
.serene-btn:hover::after {
  left: 120%;
}

.music-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: none !important;
  visibility: hidden !important;
}

.music-button:hover,
.music-button.playing {
  display: none !important;
  visibility: hidden !important;
}

.floaters {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.floater {
  position: absolute;
  color: var(--pink);
  font-size: 2rem;
  opacity: 0.3;
  animation: float 4s ease-in-out infinite;
}

.heart {
  top: 5rem;
  left: 2.5rem;
}

.sparkle {
  top: 10rem;
  right: 5rem;
  color: var(--lilac);
  animation-delay: 0.6s;
}

.flower {
  bottom: 10rem;
  left: 5rem;
  animation-delay: 1.2s;
}

.crown {
  right: 2.5rem;
  bottom: 15rem;
  color: var(--lilac);
  animation-delay: 1.8s;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(253, 236, 244, 0.1), rgba(255, 248, 239, 0.16));
}

.hero-header {
  position: absolute;
  top: 1.5rem;
  left: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 0 1rem;
  pointer-events: none;
}

.nav {
  position: absolute;
  top: 2.75rem;
  right: 1rem;
  display: grid;
  gap: 0.75rem;
  min-width: 9rem;
  padding: 1rem;
  border: 1px solid rgba(188, 169, 130, 0.25);
  border-radius: 1rem;
  background: rgba(255, 252, 247, 0.86);
  box-shadow: 0 15px 35px rgba(118, 101, 80, 0.13);
  color: var(--plum);
  font-family: "Tenor Sans", sans-serif;
  font-size: 0.78rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav a:hover {
  color: var(--rose);
}

.nav-toggle {
  display: block;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: white;
  font-family: "Tenor Sans", sans-serif;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.25rem;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s ease;
}

.nav-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.chevron-main {
  stroke: #614a74;
  stroke-width: 3;
}

.hero-header.open .nav-toggle {
  transform: rotate(180deg);
}

.hero-header.open .nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4.75rem 1rem 8rem;
  color: white;
  text-align: center;
}

.hero-title-group,
.hero-date-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title-group {
  gap: 1.5rem;
}

.eyebrow {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(90, 148, 158, 0.3);
  border-radius: 999px;
  background: rgba(90, 148, 158, 0.16);
  font-family: "Tenor Sans", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

h1,
h2 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
}

.hero h1 {
  margin-top: 0;
  font-size: 3rem;
  line-height: 0.95;
  text-shadow: 0 8px 24px rgba(45, 32, 48, 0.3);
}

.hero-date {
  width: 100%;
  margin: 0 0 1.5rem;
  color: white;
  font-family: "Tenor Sans", sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 4px 14px rgba(45, 32, 48, 0.25);
}

.swipe {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  color: white;
  font-family: "Tenor Sans", sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  animation: bounce 1.8s infinite;
}

.swipe b {
  font-size: 2rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 6rem;
  }

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

  .swipe {
    font-size: 1rem;
  }
}

.section-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.center {
  text-align: center;
}

section:not(.hero) {
  padding: 5rem 0;
}

.couple {
  padding-bottom: 1rem;
}

.section-gradient {
  background: linear-gradient(135deg, var(--warm), var(--blush), var(--mist));
}

h2 {
  color: var(--ink);
  font-size: 3rem;
  line-height: 1;
}

.subline,
.section-heading p,
.note p,
.rsvp-copy p,
.closing p {
  color: var(--muted);
  font-family: "Tenor Sans", sans-serif;
  line-height: 1.8;
}

.subline {
  color: var(--muted);
  font-size: 1.05rem;
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.count-card,
.person-card,
.rsvp-form {
  border: 1px solid rgba(188, 169, 130, 0.25);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(118, 101, 80, 0.09);
}

.count-card {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

.count-card strong {
  color: var(--plum);
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(3rem, 6vw, 4rem);
}

.count-card span,
.role {
  color: var(--rose);
  font-family: "Tenor Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-card .role {
  color: #9f7d45;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 4rem;
}

.rule {
  width: 8rem;
  height: 0.25rem;
  margin: 1.1rem auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--lilac));
}

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

.person-card {
  border-radius: 1.5rem;
  padding: 3rem 2rem;
}

.person-card h3 {
  margin: 0;
  color: var(--plum);
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
}

.person-card p:not(.role) {
  color: var(--muted);
  font-family: "Tenor Sans", sans-serif;
}

.image-divider {
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

.image-divider img {
  width: min(100%, 1024px);
  max-height: 400px;
  object-fit: contain;
}

.image-divider.lights {
  padding: 0 0 2.5rem;
  background: transparent;
}

.image-divider.lights img {
  filter: grayscale(1) brightness(0.1);
  opacity: 0.8;
  transition: filter 1.2s ease, opacity 1.2s ease, transform 1.2s ease;
}

.image-divider.lights.color-visible img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.01);
}

.image-divider.deco {
  padding: 1.5rem 0;
}

.note {
  background: linear-gradient(135deg, var(--warm), white, var(--blush));
}

.note-text {
  max-width: 770px;
  margin: 0 auto;
  padding: 0 0.75rem;
  font-size: 1.25rem;
  font-style: italic;
}

.memories-share {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  width: min(100%, 520px);
  margin: 3rem auto 0;
}

.memories-share h3 {
  margin: 0;
  color: var(--rose);
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.memories-share img {
  width: min(100%, 260px);
  aspect-ratio: 1;
  border: 1px solid rgba(188, 169, 130, 0.28);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 18px 44px rgba(118, 101, 80, 0.1);
  object-fit: cover;
  padding: 0.75rem;
}

.memories-share p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-family: "Tenor Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-transform: uppercase;
}

.detail-arch {
  position: relative;
  display: flex;
  min-height: 850px;
  width: min(100%, 1180px);
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
  padding: 4rem 2.5rem 2.5rem;
  border: 6px solid rgba(174, 143, 96, 0.3);
  border-radius: 500px 500px 1.5rem 1.5rem;
  box-shadow: 0 22px 45px rgba(118, 101, 80, 0.14);
  color: #5f554b;
  font-family: "Tenor Sans", sans-serif;
  text-align: center;
}

.detail-arch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 253, 248, 0.68);
  pointer-events: none;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  mix-blend-mode: normal;
}

.detail-title,
.vows-photo,
.detail-facts,
.detail-arch iframe {
  position: relative;
  z-index: 2;
}

.detail-title {
  margin-top: 1rem;
}

.detail-title h3 {
  margin: 0 0 1rem;
  color: #c2a06a;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-title span {
  display: block;
  width: 120px;
  height: 1px;
  margin: 0 auto 2rem;
  background: #c2a06a;
}

.vows-photo {
  width: 14rem;
  height: 16.8rem;
  margin-bottom: 1rem;
}

.photo-back {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(188, 169, 130, 0.25);
  border-radius: 999px 999px 0.5rem 0.5rem;
  background: rgba(188, 169, 130, 0.1);
  transform: rotate(-4deg);
}

.photo-front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 4px solid white;
  border-radius: 999px 999px 0.5rem 0.5rem;
  background: white;
  box-shadow: 0 13px 25px rgba(118, 101, 80, 0.16);
}

.photo-front img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
}

.photo-front p {
  margin: 0;
  padding: 0.65rem 0;
  color: #c2a06a;
  font-family: "Great Vibes", cursive;
  font-size: 1.15rem;
}

.detail-facts {
  margin: 0 auto;
  color: #5f554b;
}

.detail-facts p {
  margin: 0;
}

.detail-facts .mini {
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: #7a6c5d;
  opacity: 1;
  text-transform: uppercase;
}

.date-line {
  margin-top: 0.35rem !important;
  color: #c2a06a;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.time-line {
  display: inline-block;
  margin: 1.5rem 0 1.2rem !important;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(210, 196, 170, 0.4);
  border-bottom: 1px solid rgba(210, 196, 170, 0.4);
  color: #5f554b;
  letter-spacing: 0.08em;
}

.pin {
  font-size: 1.4rem;
}

.venue {
  margin-top: 0.65rem !important;
  color: #c2a06a;
  font-size: 1.1rem;
  font-weight: 500;
}

.address {
  max-width: 220px;
  margin: 0.35rem auto 0 !important;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #6f6255;
  opacity: 1;
}

.detail-arch iframe {
  width: min(100%, 980px);
  margin-top: 3rem;
  border: 1px solid rgba(188, 169, 130, 0.2);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(118, 101, 80, 0.12);
}

.dress-code {
  background: linear-gradient(135deg, var(--warm), var(--mist), var(--blush));
}

.dress-code-card {
  display: grid;
  gap: 2rem;
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid rgba(188, 169, 130, 0.28);
  border-radius: 1.5rem;
  padding: 2.25rem;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 18px 44px rgba(118, 101, 80, 0.09);
}

.dress-code-copy {
  display: grid;
  gap: 0.9rem;
}

.dress-code-copy p {
  margin: 0;
  color: var(--muted);
  font-family: "Tenor Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}

.dress-code-copy strong {
  color: var(--rose);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dress-palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.dress-palette span {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border: 3px solid rgba(255, 253, 248, 0.96);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: 0 10px 24px rgba(118, 101, 80, 0.13);
}

.pill,
.calendar,
.closing-actions a,
.rsvp-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--plum));
  color: white;
  font-family: "Tenor Sans", sans-serif;
  box-shadow: 0 16px 35px rgba(174, 143, 96, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pill,
.calendar {
  padding: 0.9rem 1.4rem;
}

.pill:hover,
.calendar:hover,
.closing-actions a:hover,
.rsvp-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(174, 143, 96, 0.28);
}

.timeline {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

.timeline-stage {
  position: relative;
  min-height: 1500px;
  max-width: 1024px;
  margin: 0 auto;
  overflow-x: hidden;
  padding: 3rem 1rem;
}

.timeline-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.timeline-progress-path {
  animation: timelineDashFlow 1.8s linear infinite;
  stroke: #c2a06a;
}

.timeline-arrow-head {
  color: #c2a06a;
  filter: drop-shadow(0 6px 12px rgba(174, 143, 96, 0.32));
}

.timeline-arrow-head path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.timeline-items {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.timeline-item {
  position: relative;
  display: flex;
  width: 100%;
  height: 0;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  pointer-events: auto;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 2px solid rgba(188, 169, 130, 0.5);
  border-radius: 999px;
  background: white;
  color: var(--plum);
  box-shadow: 0 6px 16px rgba(118, 101, 80, 0.14);
  transform: translateX(-50%);
}

.timeline-marker svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.timeline-card {
  position: absolute;
  width: calc(50% - 1.5rem);
  max-width: 380px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(188, 169, 130, 0.25);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(118, 101, 80, 0.11);
  text-align: left;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 36px rgba(118, 101, 80, 0.16);
}

.timeline-item.right .timeline-card {
  left: 50%;
  margin-left: 2.5rem;
}

.timeline-item.left .timeline-card {
  right: 50%;
  margin-right: 2.5rem;
  text-align: right;
}

.timeline-card time {
  color: var(--rose);
  font-family: "Tenor Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.timeline-card h4 {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
}

.rsvp {
  padding: 3rem 0;
  background: linear-gradient(135deg, white, var(--warm), var(--blush));
}

.rsvp-copy {
  max-width: 770px;
  margin: 0 auto 5rem;
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: min(100%, 1120px);
  margin: 0 auto;
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.rsvp-form label:first-child,
.rsvp-form label:nth-child(4),
.rsvp-form button,
.rsvp-form .calendar,
.form-status {
  grid-column: 1 / -1;
}

.rsvp-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--plum);
  font-family: "Tenor Sans", sans-serif;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(188, 169, 130, 0.45);
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 252, 247, 0.88);
  color: var(--ink);
  outline: none;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(188, 169, 130, 0.12);
}

.rsvp-form button {
  border: 0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--rose);
  cursor: pointer;
}

.rsvp-form button:hover {
  background: var(--plum);
}

.calendar {
  border: 1px solid rgba(188, 169, 130, 0.25);
  border-radius: 0.75rem;
  background: white;
  color: var(--plum);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--rose);
  font-family: "Tenor Sans", sans-serif;
  text-align: center;
}

.closing {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--cream), var(--blush), var(--lilac));
  color: var(--ink);
}

.closing h2,
.closing p {
  color: var(--ink);
}

.closing h2 {
  font-size: clamp(4rem, 7vw, 6rem);
}

.closing p {
  max-width: 900px;
  margin: 1.5rem auto 0;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  opacity: 0.9;
  color: var(--muted);
}

.closing-icons {
  margin-bottom: 2rem;
  color: var(--rose);
  font-size: 2rem;
  letter-spacing: 0.6rem;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.closing-actions a {
  min-width: 13rem;
  padding: 1rem 1.6rem;
  background: var(--rose);
  color: var(--warm);
}

.closing-actions a + a {
  border: 2px solid rgba(188, 169, 130, 0.4);
  background: rgba(255, 253, 247, 0.58);
  color: var(--plum);
  backdrop-filter: blur(8px);
}

.footer {
  padding: 4rem 1rem 2rem;
  background: linear-gradient(135deg, var(--warm), var(--blush), var(--cream));
  color: var(--ink);
}

.footer-grid {
  display: grid;
  width: min(1120px, 100%);
  grid-template-columns: 1.3fr 0.75fr 1fr 1fr;
  gap: 3rem;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rose);
  font-size: 2rem;
}

.brand span {
  color: var(--plum);
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
}

.footer h3 {
  color: var(--plum);
  font-family: "Tenor Sans", sans-serif;
  font-weight: 400;
}

.footer p,
.footer a {
  display: block;
  color: var(--muted);
  font-family: "Tenor Sans", sans-serif;
  line-height: 1.7;
}

.footer a:hover,
.copyright a {
  color: var(--rose);
  text-decoration: underline;
}

.copyright {
  width: min(1120px, 100%);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(188, 169, 130, 0.25);
  text-align: center;
}

.copyright p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sealPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes openFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

@keyframes timelineDashFlow {
  to {
    stroke-dashoffset: -32;
  }
}

@keyframes timelineMobileArrow {
  0% {
    top: 1.5rem;
    opacity: 0;
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 2.2rem);
    opacity: 0;
  }
}

@media (max-width: 800px) {
  .hero-header {
    top: 1.5rem;
    left: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    transform: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 2rem;
    right: 1rem;
    display: grid;
    gap: 0.75rem;
    min-width: 9rem;
    padding: 1rem;
    border: 1px solid rgba(188, 169, 130, 0.25);
    border-radius: 1rem;
    background: rgba(255, 252, 247, 0.86);
    box-shadow: 0 15px 35px rgba(118, 101, 80, 0.13);
    font-size: 0.78rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .hero-header.open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-content {
    justify-content: space-between;
    padding: 4.75rem 1rem 8rem;
    transform: none;
  }

  .hero h1 {
    margin-top: 1.5rem;
  }

  .hero-date {
    margin: 0;
  }

  .count-grid,
  .couple-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .couple-grid {
    gap: 1.5rem;
  }

  .detail-arch {
    min-height: 760px;
    padding: 3.5rem 1.25rem 1.5rem;
    border-radius: 260px 260px 1.25rem 1.25rem;
  }

  .vows-photo {
    width: 12rem;
    height: 14.4rem;
  }

  .timeline-stage {
    min-height: auto;
    padding: 2rem 0 1rem;
  }

  .timeline-curve {
    display: none;
  }

  .timeline-items {
    position: relative;
    display: grid;
    gap: 1.5rem;
  }

  .timeline-items::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 1.38rem;
    width: 4px;
    border-radius: 999px;
    background: repeating-linear-gradient(to bottom, var(--rose) 0 1px, transparent 1px 12px);
  }

  .timeline-items::after {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 0.95rem;
    width: 0.85rem;
    height: 0.85rem;
    border-right: 4px solid #c2a06a;
    border-bottom: 4px solid #c2a06a;
    filter: drop-shadow(0 5px 10px rgba(174, 143, 96, 0.34));
    transform: rotate(45deg);
    animation: timelineMobileArrow 4.5s ease-in-out infinite;
  }

  .timeline-item {
    height: auto;
    justify-content: flex-start;
    margin: 0;
    padding-left: 4rem;
  }

  .timeline-marker {
    left: 1.5rem;
  }

  .timeline-card,
  .timeline-item.right .timeline-card,
  .timeline-item.left .timeline-card {
    position: relative;
    right: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .rsvp-copy {
    text-align: center;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .opening,
  .serene-opening,
  .intro-opening {
    padding: 1rem;
  }

  .open-card.serene-card.refined-opening-card,
  .refined-opening-card {
    width: min(100% - 28px, 370px);
    min-height: 560px;
    max-height: calc(100vh - 34px);
    border-radius: 28px 58px 28px 28px;
  }

  .opening-card-content {
    padding: 22px 6px 14px;
  }

  .opening-intro {
    margin-top: 14px;
    font-size: 0.9rem;
    letter-spacing: 0.28em;
  }

  .serene-names span,
  .refined-opening-names span {
    font-size: clamp(3.55rem, 14vw, 5.15rem);
  }

  .open-message {
    max-width: 290px;
    margin-top: 1.55rem;
    font-size: 0.88rem;
  }

  .open-date {
    margin-top: 2.2rem;
    font-size: 1.25rem;
  }

  .primary-btn,
  .serene-btn {
    margin-top: 1.8rem;
  }
}

@media (max-width: 520px) {
  section:not(.hero) {
    padding: 4rem 0;
  }

  .eyebrow {
    font-size: 0.875rem;
    padding: 1rem;
  }

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

  .hero h1 {
    font-size: 3rem;
  }

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

  .count-card {
    min-height: 8rem;
    padding: 1rem;
  }

  .person-card,
  .rsvp-form,
  .dress-code-card {
    padding: 1.5rem;
  }

  .detail-title {
    margin-top: 3rem;
  }

  .date-line {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }
}
