:root {
  --ivory: #fffaf4;
  --cream: #f5e7d0;
  --paper: #fffdf9;
  --green: #633719;
  --green-soft: #8c5a31;
  --sage: #d6bd94;
  --gold: #b98535;
  --gold-soft: #efd7a5;
  --ink: #402719;
  --muted: #806957;
  --shadow: 0 26px 80px rgba(86, 48, 20, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --sans: "Inter", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(99, 55, 25, 0.08), transparent 14%, transparent 86%, rgba(99, 55, 25, 0.08)),
    var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
}

body.no-scroll {
  overflow: hidden;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.magical-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    repeating-linear-gradient(112deg, rgba(199, 154, 54, 0.07) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 241, 223, 0.7));
}

.magical-sky span {
  position: absolute;
  width: 46vw;
  height: 92vh;
  border: 1px solid rgba(199, 154, 54, 0.13);
  border-radius: 50%;
  opacity: 0.7;
  animation: gardenSweep 18s ease-in-out infinite alternate;
}

.magical-sky span:nth-child(1) {
  left: -26vw;
  top: -18vh;
}

.magical-sky span:nth-child(2) {
  right: -28vw;
  top: 10vh;
  animation-delay: -5s;
}

.magical-sky span:nth-child(3) {
  left: 14vw;
  bottom: -58vh;
  width: 70vw;
  animation-delay: -9s;
}

.envelope-intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.86), transparent 34%),
    radial-gradient(circle at 20% 82%, rgba(234, 210, 154, 0.3), transparent 34%),
    linear-gradient(135deg, #fffdf7 0%, #f8f1df 48%, #ecdfc1 100%);
  transition: background 1.1s ease, opacity 0.8s ease, visibility 0.8s ease;
}

.envelope-intro::before,
.envelope-intro::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: min(43vw, 320px);
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 18px 34px rgba(15, 75, 53, 0.12));
  transition: opacity 0.9s ease, transform 1.15s ease;
}

.envelope-intro::before {
  left: 0;
  background: url("https://trendcrafthq.com/wedding/sage/assets/decorations/floral-border-clean-left.webp") left center / auto 98% no-repeat;
}

.envelope-intro::after {
  right: 0;
  background: url("https://trendcrafthq.com/wedding/sage/assets/decorations/floral-border-clean-right.webp") right center / auto 98% no-repeat;
}

.envelope-intro.is-opening {
  background: rgba(255, 250, 240, 0.22);
}

.envelope-intro.is-opening::before {
  opacity: 0.42;
  transform: translateX(-18%) scale(1.06);
}

.envelope-intro.is-opening::after {
  opacity: 0.42;
  transform: translateX(18%) scale(1.06);
}

.envelope-intro.is-dismissed {
  opacity: 0;
  visibility: hidden;
}

.intro-garden {
  position: absolute;
  inset: -6rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.94), transparent 34%),
    radial-gradient(circle at 20% 20%, rgba(214, 189, 148, 0.28), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(199, 154, 54, 0.22), transparent 28%),
    repeating-linear-gradient(144deg, transparent 0 34px, rgba(99, 55, 25, 0.08) 35px 37px, transparent 38px 78px);
  animation: gardenFloat 16s ease-in-out infinite alternate;
  transition: opacity 1s ease, transform 1.2s ease;
}

.envelope-intro.is-opening .intro-garden {
  opacity: 0.26;
  transform: scale(1.05);
}

.envelope-button {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  min-height: 620px;
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.65s ease 1.35s, transform 0.65s ease 1.35s;
}

.envelope-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 10px;
}

.rose-frame {
  position: absolute;
  left: 50%;
  width: min(88vw, 520px);
  height: 130px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    url("https://trendcrafthq.com/wedding/sage/assets/decorations/floral-spray-clean-left.webp") left center / auto 100% no-repeat,
    url("https://trendcrafthq.com/wedding/sage/assets/decorations/floral-spray-clean-right.webp") right center / auto 100% no-repeat,
    linear-gradient(90deg, transparent 0 5%, rgba(15, 75, 53, 0.22) 5% 8%, transparent 9% 91%, rgba(15, 75, 53, 0.22) 92% 95%, transparent 95%);
  filter: drop-shadow(0 18px 22px rgba(15, 75, 53, 0.12));
}

.rose-frame-top {
  top: 2rem;
}

.rose-frame-bottom {
  bottom: 1.2rem;
  transform: translateX(-50%) rotate(180deg);
}

.envelope {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(82vw, 430px);
  height: 292px;
  transform: translate(-50%, -50%);
  perspective: 1200px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 26px 44px rgba(44, 63, 39, 0.23));
}

.envelope::before,
.envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
}

.envelope::before {
  z-index: 3;
  clip-path: polygon(0 42%, 50% 78%, 100% 42%, 100% 100%, 0 100%);
  background:
    linear-gradient(140deg, transparent 49%, rgba(199, 154, 54, 0.35) 50%, transparent 51%),
    linear-gradient(220deg, transparent 49%, rgba(199, 154, 54, 0.28) 50%, transparent 51%),
    linear-gradient(180deg, rgba(255, 249, 233, 0.96), #ead9ad);
  border: 2px solid rgba(199, 154, 54, 0.55);
}

.envelope::after {
  z-index: 1;
  background: linear-gradient(180deg, #fff7df, #e9d4a2);
}

.envelope-back {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(199, 154, 54, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(140deg, transparent 49%, rgba(199, 154, 54, 0.35) 50%, transparent 51%),
    linear-gradient(220deg, transparent 49%, rgba(199, 154, 54, 0.28) 50%, transparent 51%),
    linear-gradient(180deg, #fff8e6, #efe0bd);
}

.envelope-flap {
  position: absolute;
  inset: 0;
  z-index: 4;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  background: linear-gradient(180deg, #f5e8c5, #fff9e9);
  border-radius: 8px 8px 0 0;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.envelope-card {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 188px;
  padding: 2rem 1rem;
  border: 1px solid rgba(199, 154, 54, 0.55);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 246, 232, 0.96));
  opacity: 0;
  transform: translateY(154px);
  will-change: opacity, transform;
  transition:
    opacity 0.42s ease 0.36s,
    transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s,
    z-index 0s linear 0.42s;
}

.card-kicker,
.eyebrow {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(0.78rem, 2.8vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-names {
  color: var(--green);
  font-family: var(--script);
  font-size: clamp(3.2rem, 13vw, 5.8rem);
  line-height: 0.9;
}

.wax-seal {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff7d9;
  background: radial-gradient(circle at 35% 28%, #f1cf78, var(--gold) 48%, #9f6d17);
  box-shadow: 0 0 0 10px rgba(199, 154, 54, 0.18), 0 0 28px rgba(199, 154, 54, 0.55);
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.8s ease, opacity 0.7s ease;
  animation: sealPulse 1.9s ease-in-out infinite;
}

.intro-title,
.intro-copy {
  position: absolute;
  left: 50%;
  display: block;
  width: min(88vw, 560px);
  transform: translateX(-50%);
  text-align: center;
}

.intro-title {
  top: calc(50% + 192px);
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 9vw, 4rem);
  font-weight: 600;
}

.intro-copy {
  top: calc(50% + 258px);
  color: #5f6c5b;
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  line-height: 1.55;
}

.envelope-intro.is-opening .envelope-flap {
  transform: rotateX(-178deg);
}

.envelope-intro.is-opening .envelope-card {
  z-index: 5;
  opacity: 1;
  transform: translateY(-118px);
}

.envelope-intro.is-opening .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.8) rotate(16deg);
}

.envelope-intro.is-opening .envelope-button {
  opacity: 0.08;
  transform: scale(0.96);
  pointer-events: none;
}

.petal-particle,
.seal-particle {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.petal-particle {
  width: 14px;
  height: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 -4px 8px rgba(232, 211, 185, 0.42);
  animation: petalBurst 1.8s ease-out forwards;
}

.seal-particle {
  width: 7px;
  height: 7px;
  background: var(--gold);
  animation: sealBurst 1s ease-out forwards;
}

.transition-bloom {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.86), rgba(255, 250, 240, 0.52) 42%, rgba(15, 75, 53, 0.18) 72%, rgba(15, 75, 53, 0.36)),
    repeating-linear-gradient(82deg, transparent 0 24px, rgba(199, 154, 54, 0.15) 25px 27px, transparent 28px 72px);
  backdrop-filter: blur(12px) saturate(1.18);
}

.transition-bloom.is-active {
  visibility: visible;
  opacity: 1;
  animation: bloomFade 2s ease forwards;
}

.transition-ring {
  width: min(78vw, 520px);
  aspect-ratio: 1;
  border: 2px solid rgba(199, 154, 54, 0.68);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 18px rgba(255, 255, 255, 0.45),
    0 0 0 12px rgba(15, 75, 53, 0.05);
  animation: ringExpand 2s ease forwards;
}

.transition-script {
  position: absolute;
  color: var(--green);
  font-family: var(--script);
  font-size: clamp(4rem, 18vw, 10rem);
  animation: scriptLift 1.8s ease forwards;
}

.floating-nav {
  position: fixed;
  left: 50%;
  top: max(1rem, env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  gap: 0.25rem;
  width: min(calc(100% - 1.5rem), 460px);
  padding: 0.3rem;
  border: 1px solid rgba(199, 154, 54, 0.34);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 12px 36px rgba(15, 75, 53, 0.12);
  backdrop-filter: blur(16px);
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

body.invitation-open .floating-nav {
  transform: translate(-50%, 0);
  opacity: 1;
}

.floating-nav a {
  flex: 1;
  padding: 0.68rem 0.4rem;
  border-radius: 999px;
  color: var(--green);
  text-align: center;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
}

.floating-nav a:hover,
.floating-nav a:focus-visible {
  color: #fff;
  background: var(--green);
}

.music-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 22;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(234, 210, 154, 0.86);
  border-radius: 50%;
  color: #fffaf0;
  background: radial-gradient(circle at 35% 24%, #f1cf78, var(--gold) 46%, var(--green) 100%);
  box-shadow: 0 14px 36px rgba(15, 75, 53, 0.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  visibility: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.music-toggle span {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

body.invitation-open .music-toggle {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.music-toggle.is-paused {
  color: var(--green);
  background: rgba(255, 253, 247, 0.9);
}

.site-shell {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transform-origin: top center;
  filter: blur(18px) brightness(1.08) saturate(1.08);
  pointer-events: none;
  transition: opacity 0.9s ease, filter 1.15s ease, transform 1.15s ease, visibility 0.9s ease;
}

body.site-previewing .site-shell {
  display: block;
  opacity: 1;
  visibility: visible;
}

body.invitation-open .site-shell {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  filter: none;
  pointer-events: auto;
}

section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem);
  isolation: isolate;
}

.section-magic {
  overflow: hidden;
}

.section-magic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.86) 0 12%, transparent 34%),
    radial-gradient(circle at 84% 28%, rgba(234, 210, 154, 0.26) 0 10%, transparent 32%),
    radial-gradient(circle at 48% 86%, rgba(214, 189, 148, 0.25) 0 12%, transparent 36%),
    linear-gradient(90deg, rgba(99, 55, 25, 0.07), transparent 15%, transparent 85%, rgba(99, 55, 25, 0.07)),
    var(--ivory);
  background-size: 120% 120%, 130% 130%, 125% 125%, 100% 100%, auto;
  animation: sectionGleam 24s ease-in-out infinite alternate;
}

.section-magic::after {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: -1;
  border: 1px solid rgba(199, 154, 54, 0.18);
  background:
    url("https://trendcrafthq.com/wedding/sage/assets/decorations/floral-corner-clean-left.webp") left bottom / min(28vw, 230px) auto no-repeat,
    url("https://trendcrafthq.com/wedding/sage/assets/decorations/floral-corner-clean-right.webp") right top / min(28vw, 230px) auto no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.hero-section {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-top: clamp(5.5rem, 12vw, 8rem);
  color: #fffdf7;
  background: var(--green);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(15, 75, 53, 0.92), rgba(15, 75, 53, 0.4) 52%, rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(15, 75, 53, 0.25));
}

.hero-section::after {
  border-color: rgba(234, 210, 154, 0.42);
}

.hero-image-wrap {
  position: relative;
  width: min(82vw, 450px);
  margin-inline: auto;
  border: 1px solid rgba(234, 210, 154, 0.9);
  border-radius: 50% 50% 4px 4px / 20% 20% 4px 4px;
  padding: clamp(0.45rem, 2vw, 0.8rem);
  background: rgba(255, 253, 247, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  max-width: 690px;
  margin: 2rem auto 0;
  text-align: center;
}

.hero-copy .eyebrow,
.light .eyebrow {
  color: var(--gold-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  min-height: 1.1em;
  margin-bottom: 0.1em;
  font-family: var(--script);
  font-size: clamp(4rem, 16vw, 8.6rem);
  font-weight: 400;
  line-height: 0.88;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-subtitle {
  margin-bottom: 1rem;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 560px;
  margin-inline: auto;
  color: rgba(255, 253, 247, 0.9);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.8vw, 1.6rem);
  line-height: 1.45;
}

.typing-cursor {
  display: inline-block;
  width: 0.055em;
  height: 0.72em;
  margin-left: 0.04em;
  background: currentColor;
  animation: cursorBlink 0.8s steps(1) infinite;
  vertical-align: 0.02em;
}

.hero-arch {
  position: absolute;
  inset: auto 0 1.5rem;
  height: 110px;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 0.92) 0 16px, transparent 17px),
    radial-gradient(circle at 82% 50%, rgba(255, 255, 255, 0.92) 0 16px, transparent 17px),
    linear-gradient(90deg, transparent, rgba(234, 210, 154, 0.28), transparent);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0.45rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 5.1rem);
  font-weight: 600;
  line-height: 0.98;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.6vw, 1.35rem);
  line-height: 1.45;
}

.light h2,
.light p {
  color: #fffaf0;
}

.premium-panel {
  position: relative;
  width: min(1120px, 100%);
  margin-inline: auto;
  border: 1px solid rgba(199, 154, 54, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 241, 223, 0.96)),
    var(--paper);
  box-shadow: var(--shadow);
}

.premium-panel::before,
.premium-panel::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  border-color: var(--gold);
  pointer-events: none;
}

.premium-panel::before {
  left: 0.8rem;
  top: 0.8rem;
  border-left: 2px solid;
  border-top: 2px solid;
}

.premium-panel::after {
  right: 0.8rem;
  bottom: 0.8rem;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.details-panel {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.details-section .section-heading {
  margin-bottom: clamp(1.1rem, 3vw, 2rem);
}

.panel-roses {
  position: absolute;
  right: -28px;
  top: -32px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, #fff 0 17px, #eee0c0 18px 26px, transparent 27px),
    radial-gradient(circle at 58% 58%, #fff 0 14px, #eee0c0 15px 23px, transparent 24px),
    radial-gradient(circle at 25% 70%, #fff 0 11px, #eee0c0 12px 18px, transparent 19px);
  opacity: 0.92;
}

.mini-portrait {
  margin: 0;
  border: 1px solid rgba(199, 154, 54, 0.6);
  padding: 0.55rem;
  background: #fff;
}

.mini-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.details-list {
  display: grid;
  gap: clamp(0.5rem, 1.8vw, 0.85rem);
  margin: 0;
}

.details-list div {
  padding: clamp(0.5rem, 1.8vw, 0.75rem) 0 clamp(0.5rem, 1.8vw, 0.75rem) 0.85rem;
  border-left: 1px solid rgba(199, 154, 54, 0.6);
}

.details-list dt {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.05;
  text-transform: uppercase;
}

.details-list dd {
  margin: 0.12rem 0 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.12;
}

.countdown-wreath {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.45rem, 1.6vw, 0.9rem);
  width: min(780px, 100%);
  margin-inline: auto;
}

.countdown-wreath div {
  display: grid;
  place-items: center;
  align-content: center;
  row-gap: 0.12rem;
  aspect-ratio: 1;
  border: 1px solid rgba(199, 154, 54, 0.62);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 241, 223, 0.92));
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.55), var(--shadow);
}

.countdown-wreath strong {
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 10vw, 4.8rem);
  line-height: 0.9;
}

.countdown-wreath span {
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.full-bleed {
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
  overflow: hidden;
}

.video-story {
  min-height: clamp(520px, 80vw, 760px);
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
}

.video-story video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 75, 53, 0.72), rgba(15, 75, 53, 0.2), rgba(15, 75, 53, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(15, 75, 53, 0.28));
}

.video-story-copy,
.photo-story-copy,
.final-copy {
  width: min(940px, calc(100% - 2rem));
  margin-inline: auto;
  text-align: center;
}

.video-story-copy p,
.photo-story-copy p {
  margin-bottom: 0.6rem;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.video-story-copy h2 {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(3.4rem, 13vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.story-path {
  position: relative;
  display: grid;
  gap: 2rem;
  width: min(1100px, 100%);
  margin-inline: auto;
}

.story-path::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
}

.story-path article {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.8rem 1rem;
  align-items: start;
}

.story-path img {
  grid-row: span 3;
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
}

.story-path span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.story-path h3 {
  margin-bottom: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5vw, 2.2rem);
}

.story-path p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
}

.story-brief {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  width: min(880px, 100%);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2rem);
  align-items: center;
}

.story-brief img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--gold);
  padding: 0.35rem;
  background: var(--paper);
}

.story-brief h3 {
  margin: 0.4rem 0 0.75rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.08;
}

.story-brief p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2.5vw, 1.28rem);
  line-height: 1.65;
}

.photo-story {
  min-height: clamp(520px, 78vw, 780px);
  display: grid;
  place-items: center;
  color: #fff;
}

.photo-story img,
.final-section img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-story::before,
.final-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 75, 53, 0.55), rgba(15, 75, 53, 0.08), rgba(15, 75, 53, 0.55)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 75, 53, 0.4));
}

.photo-story-copy p {
  color: #fff8dc;
  font-family: var(--script);
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.schedule-line {
  position: relative;
  display: grid;
  gap: 1.1rem;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.schedule-line::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--gold);
}

.schedule-line li {
  position: relative;
  padding: 0.6rem 0 0.6rem 4.2rem;
}

.schedule-line li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 8px rgba(234, 210, 154, 0.18);
}

.schedule-line span {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.schedule-line strong {
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
}

.editorial-gallery {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(1120px, 100%);
  margin-inline: auto;
}

.gallery-feature {
  position: relative;
  z-index: 2;
  margin: 0;
  border: 1px solid rgba(199, 154, 54, 0.72);
  padding: 0.55rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.gallery-feature img {
  width: 100%;
  height: clamp(330px, 70vw, 620px);
  object-fit: cover;
}

.gallery-stack {
  display: none;
}

.gallery-control,
.lightbox-close,
.lightbox-arrow {
  border: 1px solid rgba(234, 210, 154, 0.65);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(15, 75, 53, 0.9);
  cursor: pointer;
}

.gallery-control {
  position: absolute;
  top: clamp(160px, 34vw, 320px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 2.3rem;
  line-height: 1;
}

.gallery-control.prev {
  left: 0.6rem;
}

.gallery-control.next {
  right: 0.6rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.gallery-thumbs button,
.masonry-gallery button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbs button {
  border: 1px solid rgba(199, 154, 54, 0.34);
  padding: 0.18rem;
  background: #fff;
  opacity: 0.72;
}

.gallery-thumbs button.is-active {
  border-color: #b98535;
  box-shadow: 0 0 0 2px rgba(185, 133, 53, 0.22);
  opacity: 1;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.masonry-gallery {
  width: min(1180px, 100%);
  margin-inline: auto;
  column-count: 2;
  column-gap: 0.8rem;
}

.masonry-gallery button {
  break-inside: avoid;
  margin: 0 0 0.8rem;
  border: 1px solid rgba(199, 154, 54, 0.42);
  padding: 0.28rem;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 14px 34px rgba(15, 75, 53, 0.1);
}

.masonry-gallery img {
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.masonry-gallery button:nth-child(2n) img {
  aspect-ratio: 3 / 4;
}

.masonry-gallery button:nth-child(3n) img {
  aspect-ratio: 4 / 5;
}

.masonry-gallery button:nth-child(5n) img {
  aspect-ratio: 1;
}

.family-section {
  color: var(--paper);
  background: var(--green);
}

.family-section::before {
  background:
    linear-gradient(90deg, rgba(63, 32, 14, 0.92), rgba(99, 55, 25, 0.96)),
    repeating-linear-gradient(128deg, transparent 0 52px, rgba(234, 210, 154, 0.09) 53px 55px, transparent 56px 112px);
}

.family-scroll {
  display: block;
  padding: clamp(1.8rem, 6vw, 4rem) clamp(1.2rem, 6vw, 4.5rem);
  overflow: hidden;
  text-align: center;
}

.family-scroll > div {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(1.1rem, 3vw, 1.55rem) 0;
}

.family-scroll > div + div::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(280px, 62vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 154, 54, 0.86), transparent);
  transform: translateX(-50%);
}

.family-scroll h3 {
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.family-scroll p {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 3.4vw, 1.38rem);
  line-height: 1.55;
}

.family-watermark {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: min(48vw, 360px);
  opacity: 0.12;
  pointer-events: none;
}

.family-scroll > div:nth-of-type(-n + 5) {
  display: none;
}

.family-scroll > div:last-child {
  max-width: 980px;
}

.entourage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.entourage-grid article {
  padding: 1rem;
  border: 1px solid rgba(185, 133, 53, 0.38);
  background: rgba(255, 253, 249, 0.68);
}

.entourage-grid h4 {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.entourage-grid p {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.16rem);
}

.entourage-grid__wide {
  grid-column: 1 / -1;
}

.venue-layout,
.rsvp-panel {
  display: grid;
  gap: clamp(1.2rem, 4vw, 2.2rem);
  width: min(1120px, 100%);
  margin-inline: auto;
}

.venue-layout figure,
.rsvp-panel figure {
  margin: 0;
  border: 1px solid rgba(199, 154, 54, 0.58);
  padding: 0.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.venue-layout figure img,
.rsvp-panel figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.map-frame {
  position: relative;
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(199, 154, 54, 0.48);
  padding: clamp(0.55rem, 2vw, 0.9rem);
  background: linear-gradient(180deg, #fffdf7, #f8f1df);
  box-shadow: var(--shadow);
}

.map-frame iframe,
.iframe-wrap iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  background: #efe7d2;
}

.gold-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(234, 210, 154, 0.8);
  border-radius: 999px;
  color: var(--paper);
  background: linear-gradient(180deg, var(--green-soft), var(--green));
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.outfit-panel {
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.palette-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.palette-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(199, 154, 54, 0.35);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  font-weight: 600;
}

.palette-row span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(34, 54, 45, 0.18);
  border-radius: 50%;
  background: var(--swatch);
}

.outfit-columns {
  display: grid;
  gap: 1.8rem;
}

.outfit-columns h3 {
  margin-bottom: 1rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  text-align: center;
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.outfit-grid figure {
  margin: 0;
  border: 1px solid rgba(199, 154, 54, 0.34);
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.62);
}

.outfit-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.outfit-grid figcaption {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.avoid-note {
  margin: 1.6rem auto 0;
  max-width: 760px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.45;
  text-align: center;
}

.rsvp-section {
  background:
    linear-gradient(rgba(255, 250, 240, 0.78), rgba(255, 250, 240, 0.94)),
    url("https://trendcrafthq.com/wedding/sage/assets/backgrounds/inspiration-reference.webp") center / cover fixed;
}

.rsvp-panel {
  padding: clamp(1rem, 4vw, 2rem);
}

.iframe-wrap {
  overflow: hidden;
  border: 1px solid rgba(199, 154, 54, 0.36);
  background: #efe7d2;
}

.iframe-wrap iframe {
  min-height: 620px;
}

.final-section {
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--paper);
}

.final-copy p {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  line-height: 1.25;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.final-copy strong {
  color: var(--gold-soft);
  font-family: var(--script);
  font-size: clamp(3.3rem, 13vw, 7.5rem);
  font-weight: 400;
  line-height: 0.9;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 28, 19, 0.82);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 84svh;
  border: 1px solid rgba(234, 210, 154, 0.8);
  padding: 0.45rem;
  background: var(--paper);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  width: 46px;
  height: 46px;
  font-size: 2rem;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  transform: translateY(-50%);
}

.lightbox-arrow.prev {
  left: 1rem;
}

.lightbox-arrow.next {
  right: 1rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade"] {
  transform: translateY(18px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gardenSweep {
  from {
    transform: translate3d(0, 0, 0) rotate(-10deg);
  }
  to {
    transform: translate3d(7vw, 3vh, 0) rotate(9deg);
  }
}

@keyframes gardenFloat {
  from {
    transform: translate3d(-1.5rem, -1rem, 0) scale(1);
  }
  to {
    transform: translate3d(1.5rem, 1rem, 0) scale(1.03);
  }
}

@keyframes sealPulse {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(199, 154, 54, 0.16), 0 0 24px rgba(199, 154, 54, 0.52);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(199, 154, 54, 0.24), 0 0 46px rgba(199, 154, 54, 0.76);
  }
}

@keyframes petalBurst {
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
  }
}

@keyframes sealBurst {
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.4);
  }
}

@keyframes bloomFade {
  0% {
    opacity: 0;
  }
  18%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ringExpand {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(-16deg);
  }
  58% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(1.7) rotate(14deg);
  }
}

@keyframes scriptLift {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  46% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-22px);
  }
}

@keyframes sectionGleam {
  from {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0, 0 0;
  }
  to {
    background-position: 12% 8%, 88% 12%, 44% 88%, 0 0, 0 0;
  }
}

@keyframes cursorBlink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}



/* RSVP FORM */

.rsvp-form {
  display: grid;
  gap: 1.35rem;
  width: 100%;
  margin-top: 1.5rem;
  font-family: var(--sans);
}

.rsvp-field {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-field > label,
.rsvp-field legend {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.rsvp-field > label span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
}

.rsvp-field input[type="text"],
.rsvp-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--sage);
  border-radius: 4px;
  outline: none;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}

.rsvp-field input:focus,
.rsvp-field textarea:focus {
  border-color: var(--gold);
}

.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.rsvp-field textarea {
  min-height: 110px;
  resize: vertical;
}

.rsvp-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--sage);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.25s ease,
              background 0.25s ease;
}

.rsvp-option:has(input:checked) {
  border-color: var(--gold);
  background: var(--cream);
}

.rsvp-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}

.rsvp-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--paper);
  background: var(--green);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease,
              transform 0.25s ease;
}

.rsvp-submit:hover {
  background: var(--green-soft);
}

.rsvp-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.rsvp-status {
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  text-align: center;
}

