/* The Sacred Garden — Package 2 Template Invitation (production layout) */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Great+Vibes&family=Tangerine:wght@400;700&display=swap");

:root {
  --paper: #f9f1e0;
  --paper-soft: #fbf5e9;
  --ink: #877264;
  --ink-deep: #3a2f27;
  --gold: #a77f2f;
  --gold-soft: #d6bf8e;
  --wine: #7a1f2e;
  --shadow: 0 24px 70px rgba(77, 52, 22, 0.13);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --script: "Great Vibes", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;
  --seal-script: "Tangerine", "Great Vibes", "Snell Roundhand", cursive;
  --form-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 250, 238, 0.88), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 30;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: #fff;
  border: 1px solid var(--gold);
}

.script {
  color: var(--gold);
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
}

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: var(--paper);
  transition: opacity 650ms ease, visibility 650ms ease;
}

.opening-screen.is-open {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.opening-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100vw, calc((100vh - 2.5rem) * 0.5626));
  height: min(100vh, calc(100vw / 0.5626));
  opacity: 0;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
  transition: opacity 500ms ease;
}

.opening-screen.is-playing .opening-video {
  opacity: 1;
}

.envelope-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(34.25rem, 78vw);
  max-height: calc(100vh - 2.5rem);
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--gold);
  transition: opacity 420ms ease, transform 420ms ease;
}

.opening-screen.is-playing .envelope-button {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.opening-frame-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: fill;
}

.opening-frame-stage {
  position: relative;
  display: block;
  width: min(100%, calc((100vh - 2.5rem) * 2192 / 3896));
  aspect-ratio: 2192 / 3896;
  container-type: inline-size;
  container-name: sg-env;
}

.sg-wax-monogram {
  position: absolute;
  left: 35.401%;
  top: 43.07%;
  z-index: 3;
  width: 28.65%;
  height: 16.119%;
  pointer-events: none;
  container-type: inline-size;
  container-name: sg-wax;
}

.sg-wax-cover {
  position: absolute;
  left: 18%;
  top: 18%;
  width: 64%;
  height: 64%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 236, 196, 0.38), transparent 46%),
    radial-gradient(circle at 50% 54%, #c4a468 0%, #b3894a 58%, #c8ab70 100%);
  box-shadow:
    inset 0 0 0.35em rgba(120, 82, 28, 0.16),
    inset 0 0.15em 0.35em rgba(255, 236, 200, 0.18);
}

.sg-wax-letters {
  position: absolute;
  left: 18%;
  top: 18%;
  width: 64%;
  height: 64%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Tangerine caps sit high in the em-box; nudge into the disc. */
  transform: translate(-2%, 12%);
}

.sg-wax-i {
  position: relative;
  color: #7b212f;
  font-family: var(--seal-script);
  font-size: 30cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow:
    0 0.04em 0 rgba(255, 224, 176, 0.28),
    0 0.06em 0.08em rgba(80, 18, 28, 0.18);
}

.sg-wax-monogram.is-wide .sg-wax-i {
  font-size: 26cqw;
}

.sg-wax-i1 {
  transform: rotate(-8deg);
}

.sg-wax-i2 {
  margin-left: -0.14em;
  transform: rotate(6deg);
}

.sg-wax-monogram.is-single .sg-wax-i {
  font-size: 36cqw;
}

.sg-wax-monogram.is-single .sg-wax-i1 {
  margin-left: 0;
  transform: none;
}

.envelope {
  position: relative;
  display: block;
  aspect-ratio: 548 / 982;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(133, 111, 73, 0.18) 50%, transparent 50.7%) left top / 50% 100% no-repeat,
    linear-gradient(225deg, transparent 49.6%, rgba(133, 111, 73, 0.18) 50%, transparent 50.7%) right top / 50% 100% no-repeat,
    linear-gradient(25deg, transparent 49%, rgba(133, 111, 73, 0.1) 50%, transparent 51%) left bottom / 50% 50% no-repeat,
    linear-gradient(-25deg, transparent 49%, rgba(133, 111, 73, 0.1) 50%, transparent 51%) right bottom / 50% 50% no-repeat,
    linear-gradient(180deg, #f5ead6 0%, #ead7b9 100%);
  box-shadow: 0 1.8rem 5.5rem rgba(93, 62, 24, 0.12);
}

.envelope::before,
.envelope::after {
  content: "";
  position: absolute;
  top: 19%;
  width: 30%;
  height: 48%;
  opacity: 0.42;
  background: radial-gradient(ellipse at center, rgba(167, 127, 47, 0.15), transparent 62%);
}

.envelope::before {
  left: 12%;
}

.envelope::after {
  right: 12%;
}

.envelope-flap {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, transparent 49.8%, rgba(100, 79, 44, 0.28) 50%, transparent 50.6%);
  clip-path: polygon(0 0, 100% 0, 50% 49%);
}

.envelope-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(132deg, transparent 49.7%, rgba(125, 101, 62, 0.16) 50%, transparent 50.45%),
    linear-gradient(228deg, transparent 49.7%, rgba(125, 101, 62, 0.16) 50%, transparent 50.45%);
}

.wax-mark {
  position: absolute;
  top: 40.8%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 15.2vw, 4.5rem);
  height: clamp(3.25rem, 15.2vw, 4.5rem);
  border: 0.2rem double rgba(252, 222, 167, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 223, 178, 0.32), transparent 22%),
    linear-gradient(145deg, #9e283b, #5b101c 74%);
  color: #f0d89b;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 5vw, 1.75rem);
  line-height: 1;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0.15rem 0.4rem rgba(255, 255, 255, 0.18),
    inset 0 -0.4rem 0.65rem rgba(51, 7, 13, 0.32),
    0 0.65rem 1rem rgba(79, 29, 23, 0.24);
}

.opening-open-action {
  position: absolute;
  left: 50%;
  bottom: 8.2%;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
}

.opening-open-action .open-arrow {
  width: clamp(1.25rem, 5vw, 1.7rem);
  height: clamp(1.25rem, 5vw, 1.7rem);
  margin: 0;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.wax-mark::before,
.wax-mark::after {
  content: "";
  position: absolute;
  inset: -0.28rem;
  border-radius: 44% 56% 49% 51% / 55% 43% 57% 45%;
  border: 0.12rem solid rgba(97, 19, 31, 0.35);
}

.wax-mark::after {
  inset: -0.5rem;
  transform: rotate(27deg);
}

.open-arrow {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  margin: -6.4rem auto 0.5rem;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transform: rotate(45deg);
}

.open-arrow.small {
  width: 1.6rem;
  height: 1.6rem;
  margin: 0.25rem auto 0;
}

.open-label,
.open-copy {
  display: block;
  font-size: clamp(2.7rem, 8vw, 3.5rem);
  text-align: center;
}

.site-shell {
  width: min(100%, 94rem);
  margin: 0 auto;
}

.section-reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 850ms ease, transform 850ms ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero {
  position: relative;
  display: grid;
  place-items: start center;
  min-height: auto;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
  overflow: visible;
  z-index: 3;
}

.hero-card {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100vh;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--paper);
}

.hero-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.96) brightness(1.03);
}

.hero-bottom-flowers {
  position: absolute;
  bottom: -20px;
  left: 50%;
  z-index: 1;
  width: calc(104% + 80px);
  height: auto;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  inset: 18.5% 12% auto;
  text-align: center;
  text-shadow: 0 0.08rem 0.5rem rgba(249, 241, 224, 0.62);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(0.82rem, 1.5vw, 1.38rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.couple-title {
  margin: clamp(0.75rem, 1.4vw, 1rem) 0 0;
  font-size: clamp(4.7rem, 9vw, 7.4rem);
  line-height: 0.78;
}

.couple-title span {
  display: block;
}

.couple-title span:nth-child(2) {
  font-size: 0.55em;
  line-height: 0.78;
}

.date-line {
  position: absolute;
  right: 28%;
  bottom: calc(7% + 70px);
  left: 28%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  text-shadow: 0 0.08rem 0.45rem rgba(249, 241, 224, 0.72);
}

.date-line span {
  width: 3.625rem;
  height: 1px;
  background: var(--gold);
}

.paper-panel,
.countdown,
.celebration-panel,
.events,
.location,
.notes,
.rsvp,
.closing {
  width: min(64rem, calc(100% - 2rem));
  margin: 0 auto;
}

.paper-panel {
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.78), rgba(246, 231, 204, 0.78)),
    var(--paper-soft);
  border: 1px solid rgba(167, 127, 47, 0.16);
  box-shadow: var(--shadow);
  text-align: center;
}

.paper-panel h2,
.countdown h2,
.celebration-panel h2,
.celebration-panel h3,
.event-list h2,
.location h2,
.rsvp h2,
.closing h2 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  text-align: center;
}

.divider {
  width: 8rem;
  height: auto;
  margin: 0 auto;
}

.paper-panel p {
  max-width: 31.5rem;
  margin: 0.25rem auto 0;
  color: #7d6656;
  font-size: clamp(1.35rem, 3.3vw, 2rem);
  line-height: 1.18;
}

.countdown {
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
}

.celebration-panel {
  position: relative;
  aspect-ratio: 1024 / 637;
  overflow: hidden;
  color: #7d6656;
  text-align: center;
}

.celebration-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.celebration-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0;
}

.celebration-panel h2 {
  position: absolute;
  top: 108px;
  right: 0;
  left: 0;
  width: 542px;
  margin: 0 auto;
  font-size: 48px;
  line-height: 1.15;
}

.celebration-message {
  position: absolute;
  top: 186px;
  right: 0;
  left: 0;
  max-width: 503px;
  margin: 0 auto;
  color: #7d6656;
  font-size: 32px;
  line-height: normal;
}

.countdown-box {
  position: absolute;
  top: 253px;
  left: 50%;
  width: 810px;
  height: 257px;
  min-height: 0;
  padding: 17px 100px 0;
  border: 1px solid rgba(167, 127, 47, 0.42);
  border-radius: 12px;
  transform: translateX(-50%);
}

.countdown-box h3 {
  margin: 0;
  font-size: 48px;
  line-height: 90px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 610px;
  margin: 0 auto;
}

.countdown-grid div {
  display: grid;
  grid-template-rows: 82px 36px;
  gap: 0;
  padding: 0;
  position: relative;
}

.countdown-grid strong {
  color: #7d6656;
  font-size: 68px;
  font-weight: 400;
  line-height: 82px;
}

.countdown-grid div:not(:last-child)::after {
  content: ":";
  color: #7d6656;
  font-size: 68px;
  font-weight: 400;
  line-height: 82px;
  position: absolute;
  right: -0.12em;
  top: 0;
}

.countdown-grid span {
  color: #7d6656;
  font-size: 30px;
  line-height: 36px;
}

.celebration-panel .order-teaser {
  position: absolute;
  right: 0;
  top: 590px;
  bottom: auto;
  left: 0;
  width: max-content;
  max-width: 90%;
  margin: 0 auto;
  padding: 0 18px;
  font-size: 48px;
  line-height: 1;
  background: #f8ebda;
}

.events {
  position: relative;
  container-type: inline-size;
  --event-flower-progress: 0;
  --event-dot-top: 7.52cqw;
  --event-dot-travel: 33.98cqw;
  aspect-ratio: 1024 / 510;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
}

.events::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(249, 241, 224, 0.08);
  pointer-events: none;
}

.events-bg-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.events-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.events-dot-flower {
  position: absolute;
  top: calc(var(--event-dot-top) + (var(--event-dot-travel) * var(--event-flower-progress)));
  left: 43.55cqw;
  z-index: 2;
  width: clamp(26px, 4.2cqw, 48px);
  height: clamp(25px, 4.01cqw, 46px);
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-18deg);
  transition: top 120ms linear;
}

.event-timeline-panel {
  position: absolute;
  top: 27.5px;
  left: 283px;
  z-index: 1;
  width: 175px;
  height: 455px;
  object-fit: fill;
  pointer-events: none;
}

.event-list {
  position: absolute;
  top: 38px;
  left: 458px;
  z-index: 2;
  width: 238px;
}

.event-list ol {
  display: grid;
  gap: 12px;
  width: 238px;
  margin: 0;
  padding: 0;
  color: #7d6656;
  font-size: 32px;
  line-height: 36.7px;
  list-style: none;
  text-align: center;
}

.event-list li {
  display: grid;
  gap: 0.1rem;
}

.event-list time {
  color: var(--gold);
}

.event-list time,
.event-list span {
  white-space: nowrap;
}

.hero {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  margin-left: calc(50% - 50vw);
  padding: 0;
  overflow: visible;
  z-index: 3;
}

.hero-card {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  background: #f9f1e0;
  container-type: inline-size;
  isolation: isolate;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.96) brightness(1.02);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(249, 241, 224, 0.24);
  pointer-events: none;
}

.hero-frame-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: 34% 36% 1fr;
  justify-items: center;
  color: var(--gold);
  text-align: center;
  text-shadow: 0 0.08rem 0.45rem rgba(249, 241, 224, 0.72);
  pointer-events: none;
}

.hero-date-block {
  align-self: end;
  display: flex;
  width: min(78%, 22rem);
  flex-direction: column;
  align-items: center;
  gap: clamp(0.3rem, 1.56cqw, 1rem);
  padding-bottom: 0.35rem;
}

.hero-wedding-day {
  margin: 0;
  font-size: clamp(1.55rem, 6.2vw, 2.35rem);
  line-height: 1;
  white-space: nowrap;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 0.6cqw, 0.4rem);
  margin: 0;
  font-size: clamp(1.55rem, 4.1cqw, 2.625rem);
  line-height: 1;
}

.hero-date span {
  position: relative;
  width: clamp(2.4rem, 5.66cqw, 3.625rem);
  height: 1px;
  background: currentColor;
}

.hero-date span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  background: currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.hero-date span:first-child::after {
  right: -0.2rem;
}

.hero-date span:last-child::after {
  left: -0.2rem;
}

.hero-couple {
  align-self: center;
  width: min(52.9cqw, 33.875rem);
  font-feature-settings: "ss02" 1;
  font-size: clamp(4.7rem, 9.28cqw, 5.9375rem);
  line-height: 0.95;
}

.hero-couple span {
  display: block;
}

.hero-couple span:nth-child(2) {
  font-size: 0.53em;
}

.hero-scroll-action {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  margin-bottom: clamp(3.25rem, 10vw, 4.5rem);
  color: #a16f1f;
}

.hero-scroll-action p {
  margin: 0;
  font-size: clamp(1.05rem, 2.8cqw, 1.45rem);
  line-height: 1;
}

.hero-scroll-action img {
  width: clamp(1.6rem, 4cqw, 2.25rem);
  height: auto;
  margin-top: clamp(0.15rem, 0.5cqw, 0.35rem);
  animation: heroArrowDown 1.45s ease-in-out infinite;
}

.hero-flower {
  position: absolute;
  z-index: 5;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero-flower-left {
  left: -4%;
  bottom: -32%;
  width: 41.5%;
}

.hero-flower-right {
  right: -3.22%;
  bottom: -32%;
  width: 41.5%;
}

@keyframes heroArrowDown {
  0%,
  100% {
    transform: translateY(0) rotate(180deg);
  }

  50% {
    transform: translateY(7px) rotate(180deg);
  }
}

@media (max-width: 767px) {
  .hero-frame-content {
    grid-template-rows: 32% 36% 1fr;
  }

  .hero-date-block {
    width: min(86vw, 22rem);
  }

  .hero-wedding-day {
    font-size: clamp(1.45rem, 7.2vw, 2.15rem);
    white-space: nowrap;
  }

  .hero-date {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .hero-couple {
    width: min(80vw, 25rem);
    font-size: clamp(4.2rem, 18vw, 6rem);
    margin-top: 0.5rem;
  }

  .hero-scroll-action {
    margin-bottom: clamp(3.5rem, 12vw, 5rem);
  }

  .hero-scroll-action p {
    font-size: clamp(1rem, 4.2vw, 1.35rem);
  }

  .hero-scroll-action img {
    width: clamp(1.5rem, 5.5vw, 2rem);
    animation-name: heroArrowDownMobile;
  }

  .hero-flower-left {
    left: -20%;
    bottom: -26%;
    width: 72%;
  }

  .hero-flower-right {
    right: -19%;
    bottom: -26%;
    width: 72%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-frame-content {
    grid-template-rows: 28% 34% 1fr;
  }

  .hero-date-block {
    width: min(48vw, 22rem);
  }

  .hero-flower-left,
  .hero-flower-right {
    width: 50%;
  }
}

@keyframes heroArrowDownMobile {
  0%,
  100% {
    transform: translateY(0) rotate(180deg);
  }

  50% {
    transform: translateY(5px) rotate(180deg);
  }
}

.location {
  position: relative;
  padding: clamp(2rem, 7vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.location-copy {
  position: relative;
  z-index: 2;
}

.venue {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 500;
}

address {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.18;
}

.venue-art {
  width: min(54rem, 100%);
  height: clamp(15rem, 48vw, 28rem);
  margin: -1rem auto 0;
  object-fit: cover;
  object-position: top center;
  mix-blend-mode: multiply;
}

.map-card {
  position: relative;
  width: min(47rem, 86%);
  height: clamp(8rem, 22vw, 14.75rem);
  margin: -3rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(167, 127, 47, 0.35);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.4rem rgba(76, 52, 31, 0.14);
}

.location-map-link,
.map-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.location-map-link {
  cursor: pointer;
}

.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 220ms ease, transform 220ms ease;
}

.location-map-link:hover img,
.location-map-link:focus-visible img {
  filter: brightness(1.06);
  transform: scale(1.015);
}

.map-button {
  position: absolute;
  right: 50%;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gold);
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 500;
  transform: translateX(50%);
}

.notes {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1024 / 512;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.notes-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.notes-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.note-vine {
  position: absolute;
  z-index: 1;
  top: 2.63671875cqw;
  left: 44.04296875cqw;
  width: 14.6484375cqw;
  height: 44.43359375cqw;
  opacity: 1;
  object-fit: contain;
  transform: none;
}

.notes article {
  position: absolute;
  z-index: 1;
}

.notes article:first-of-type {
  top: 12.060546875cqw;
  left: 24.51171875cqw;
  width: 18.06640625cqw;
}

.notes article:last-of-type {
  top: 12.3046875cqw;
  left: 60.15625cqw;
  width: 15.234375cqw;
}

.notes article > img:first-child {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9.765625cqw;
  height: 9.765625cqw;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: translateX(-50%);
}

.notes h2 {
  position: absolute;
  top: 9.765625cqw;
  left: 50%;
  margin: 0;
  color: var(--gold);
  font-size: 5.078125cqw;
  line-height: 5.17578125cqw;
  white-space: nowrap;
  transform: translateX(-50%);
}

.notes article:first-of-type h2 {
  width: 17.48046875cqw;
}

.notes article:last-of-type h2 {
  width: 15.234375cqw;
}

.notes .divider {
  position: absolute;
  top: 14.94140625cqw;
  left: 50%;
  width: 8.49609375cqw;
  height: 2.63671875cqw;
  object-fit: contain;
  margin: 0;
  transform: translateX(-50%);
}

.notes p {
  position: absolute;
  top: 17.96875cqw;
  left: 50%;
  margin: 0;
  color: #7d6656;
  font-size: 2.1484375cqw;
  font-weight: 500;
  line-height: 2.5390625cqw;
  transform: translateX(-50%);
}

.notes article:first-of-type p {
  width: 26.953125cqw;
}

.notes article:last-of-type p {
  top: 19.7265625cqw;
  width: 15.234375cqw;
}

.rsvp {
  position: relative;
  container-type: inline-size;
  --arrow-lift: 5px;
  aspect-ratio: 1211 / 1063;
  width: min(100%, 1211px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: url("/assets/templates/sacred-garden/images/rsvp-frame-102.png") center / 100% 100% no-repeat;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.floral {
  position: absolute;
  height: auto;
  pointer-events: none;
}

.rsvp .floral-right,
.rsvp .floral-left {
  display: none;
}

.rsvp-content {
  position: absolute;
  top: 17.01073493cqw;
  left: 21.38728324cqw;
  z-index: 2;
  width: 57.22543353cqw;
  height: 53.83980182cqw;
  max-width: none;
}

.rsvp h2 {
  position: absolute;
  top: 0;
  left: 8.8023088%;
  width: 82.3953824%;
  margin: 0;
  color: var(--gold);
  font-size: 4.62427746cqw;
  font-weight: 400;
  line-height: 5.78034682cqw;
  white-space: nowrap;
}

.rsvp p {
  max-width: none;
  margin: 0;
}

.rsvp-content > p:not(.open-copy) {
  position: absolute;
  top: 7.59702725cqw;
  left: 0;
  width: 100%;
  color: #7d6656;
  font-size: 2.97357556cqw;
  font-style: italic;
  font-weight: 300;
  line-height: 3.38563171cqw;
}

.rsvp-action {
  position: absolute;
  top: 15.6895128cqw;
  left: 22.29437229%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 31.70933113cqw;
}

.seal-button {
  display: block;
  width: 31.70933113cqw;
  height: 23.78199835cqw;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease;
}

.seal-button:hover,
.seal-button:focus-visible {
  transform: translateY(-0.2rem) scale(1.03);
  filter: drop-shadow(0 1rem 1.2rem rgba(87, 24, 31, 0.18));
}

.seal-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rsvp .open-action {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: max-content;
  transform: translateX(-50%);
}

.rsvp .arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin: 0;
}

.rsvp .open-arrow.small {
  width: 6.60611065cqw;
  height: 6.60611065cqw;
  margin: 0;
  border-top-width: 0.24772915cqw;
  border-left-width: 0.24772915cqw;
  animation: rsvp-arrow-float 1.35s ease-in-out infinite;
  will-change: transform;
}

.rsvp .open-copy {
  margin: 0;
  color: var(--gold);
  font-size: 4.62427746cqw;
  font-weight: 400;
  line-height: 5.78034682cqw;
  white-space: nowrap;
}

@keyframes rsvp-arrow-float {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(calc(-1 * var(--arrow-lift, 5px))) rotate(45deg);
  }
}

.closing {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1141 / 576;
  overflow: hidden;
  padding: 0;
  background: transparent;
  text-align: center;
}

.closing-frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  animation: closing-flower-float 5.5s ease-in-out infinite;
  transform-origin: 50% 82%;
  will-change: transform;
}

@keyframes closing-flower-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -8px, 0) rotate(0.35deg);
  }
}

.music-toggle {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.4rem);
  bottom: clamp(0.9rem, 3vw, 1.4rem);
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(167, 127, 47, 0.45);
  border-radius: 999px;
  background: rgba(250, 247, 239, 0.88);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.025rem;
  box-shadow: 0 0.8rem 2rem rgba(76, 52, 31, 0.14);
  backdrop-filter: blur(8px);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  background: rgba(255, 252, 244, 0.96);
  box-shadow: 0 1rem 2.25rem rgba(76, 52, 31, 0.18);
  transform: translateY(-1px);
}

.music-toggle-icon {
  position: relative;
  width: 0.8rem;
  height: 1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 0.35rem 0.35rem;
}

.music-toggle-icon::before {
  content: "";
  position: absolute;
  top: 0.12rem;
  right: -0.12rem;
  width: 0.58rem;
  height: 0.25rem;
  border-top: 2px solid currentColor;
  transform: skewY(-14deg);
}

.music-toggle.is-playing .music-toggle-icon {
  width: 0.9rem;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

.music-toggle.is-playing .music-toggle-icon::before,
.music-toggle.is-playing .music-toggle-icon::after {
  content: "";
  position: absolute;
  top: 0.1rem;
  width: 0.25rem;
  height: 0.8rem;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  transform: none;
}

.music-toggle.is-playing .music-toggle-icon::before {
  left: 0.12rem;
}

.music-toggle.is-playing .music-toggle-icon::after {
  right: 0.12rem;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, 0.82);
}

.rsvp-form {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(90vh, 58rem);
  overflow: auto;
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border-radius: 1rem;
  background: #faf7f3;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.rsvp-form h2 {
  margin: 0;
  color: #2a1f1a;
  font-family: var(--form-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.0375rem;
  line-height: 1.35;
  text-align: center;
}

.rsvp-form > p {
  margin: 0.25rem 0 1.4rem;
  color: #8a7a6a;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 300;
  text-align: center;
}

.close-button {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: #8a7a6a;
  font-size: 1.5rem;
}

.rsvp-form form {
  display: grid;
  gap: 1.4rem;
}

.rsvp-form label,
.rsvp-form legend {
  display: grid;
  gap: 0.55rem;
  color: var(--ink-deep);
  font-family: var(--sans);
  font-size: 0.875rem;
}

.rsvp-form small {
  color: #9a8a7a;
  font-size: 0.75rem;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"] {
  width: 100%;
  height: 2.875rem;
  padding: 0 1rem;
  border: 1px solid #d9cfc4;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--ink-deep);
}

.rsvp-form input:focus {
  outline: 2px solid rgba(167, 127, 47, 0.36);
  outline-offset: 2px;
}

.rsvp-form fieldset {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-form fieldset label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 300;
}

.rsvp-form input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--wine);
}

.rsvp-form button[type="submit"] {
  min-height: 3.25rem;
  margin-top: 0.65rem;
  border: 0;
  border-radius: 0.875rem;
  background: linear-gradient(172deg, #7a1f2e 0%, #5c1520 100%);
  color: #f5f0eb;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.105rem;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .site-shell {
    width: 100%;
  }

  .opening-screen {
    place-items: center;
    padding: 0;
  }

  .opening-video {
    width: 100vw;
    height: 100svh;
    object-fit: cover;
  }

  .hero {
    min-height: auto;
    padding: 0;
  }

  .hero-card {
    width: 100vw;
    height: 100svh;
    min-height: 100vh;
    aspect-ratio: auto;
  }

  .hero-copy {
    inset-inline: 7%;
    top: 18%;
  }

  .eyebrow {
    font-size: clamp(0.76rem, 3vw, 0.95rem);
  }

  .couple-title {
    font-size: clamp(4.1rem, 17vw, 5.8rem);
  }

  .date-line {
    right: 13%;
    bottom: calc(8% + 70px);
    left: 13%;
  }

  .paper-panel,
  .countdown,
  .celebration-panel,
  .events,
  .location,
  .notes,
  .rsvp,
  .closing {
    width: min(100% - 1.5rem, 40rem);
  }

  .celebration-panel {
    container-type: inline-size;
    aspect-ratio: 1024 / 637;
    min-height: 0;
  }

  .celebration-bg {
    object-position: center;
  }

  .celebration-content {
    padding: 0;
  }

  .celebration-panel h2 {
    top: 6.5cqw;
    width: max-content;
    max-width: 90%;
    font-size: 4.8cqw;
    line-height: 1;
  }

  .celebration-message {
    top: 12.2cqw;
    width: 72cqw;
    max-width: none;
    font-size: 3.45cqw;
    line-height: 1.12;
  }

  .countdown-box {
    top: 27.78cqw;
    width: 62.5cqw;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .countdown-box h3 {
    font-size: 5.56cqw;
    line-height: 6.94cqw;
    white-space: nowrap;
  }

  .countdown-grid {
    max-width: 62.5cqw;
    margin-top: 0;
  }

  .countdown-grid div {
    grid-template-rows: 5.56cqw 2.78cqw;
  }

  .countdown-grid strong {
    font-size: 5.56cqw;
    line-height: 5.56cqw;
  }

  .countdown-grid span {
    font-size: 2.78cqw;
    line-height: 2.78cqw;
  }

  .countdown-grid div:not(:last-child)::after {
    font-size: 5.56cqw;
    line-height: 5.56cqw;
    right: -0.18em;
  }

  .celebration-panel .order-teaser {
    top: 55.6cqw;
    width: max-content;
    max-width: 90%;
    font-size: 4.8cqw;
    line-height: 1;
  }

  .events {
    display: block;
    aspect-ratio: 1024 / 510;
    padding: 0;
    text-align: center;
  }

  .events::after {
    background: rgba(249, 241, 224, 0.08);
  }

  .events-bg-video {
    object-position: center;
  }

  .event-timeline-panel {
    display: block;
    top: 3.1358885cqw;
    left: 29.96515679cqw;
    width: 16.72473868cqw;
    height: 43.55400697cqw;
  }

  .event-list {
    position: absolute;
    top: 4.18118467cqw;
    left: 50.52264808cqw;
    width: 19.51219512cqw;
  }

  .event-list ol {
    width: 19.51219512cqw;
    gap: 2.78745645cqw;
    margin: 0 auto;
    font-size: 2.78745645cqw;
    line-height: 3.1358885cqw;
  }

  .event-list li {
    gap: 0;
  }

  .location {
    width: min(100% - 1.5rem, 287px);
    height: 360px;
    padding: 0;
    overflow: hidden;
  }

  .location-copy {
    position: absolute;
    top: 44px;
    left: 1px;
    width: 284px;
  }

  .location h2 {
    width: 447px;
    margin: 0 0 0 -81.5px;
    font-size: 28px;
    line-height: 28px;
  }

  .location .divider {
    width: 87px;
    height: 27.1875px;
    margin: 0 0 0 98.5px;
    object-fit: contain;
  }

  .venue {
    margin-top: 0;
    font-size: 22px;
    line-height: 22px;
  }

  address {
    margin-top: 12px;
    font-size: 16px;
    line-height: 19px;
  }

  .venue-art {
    position: absolute;
    top: 133px;
    left: 0;
    width: 287px;
    height: 204px;
    margin: 0;
    object-fit: cover;
    object-position: top center;
  }

  .notes {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .note-vine {
    top: 8cqw;
    left: 47cqw;
    width: 11cqw;
    height: 36cqw;
  }

  .rsvp {
    min-height: 0;
    --flower-left-overlap: 24px;
    --flower-bottom-overlap: 8px;
  }

  .rsvp .open-action {
    bottom: 10%;
    gap: 6px;
  }

  .rsvp .arrow-wrap {
    height: 30px;
    margin: 0;
  }

  .rsvp .open-arrow.small {
    width: clamp(18px, 5.2vw, 28px);
    height: clamp(18px, 5.2vw, 28px);
    border-top-width: 1.5px;
    border-left-width: 1.5px;
  }

  .rsvp .open-copy {
    font-size: clamp(26px, 6.5vw, 36px);
    line-height: 1;
  }

  .rsvp .floral-left {
    width: 21cqw;
  }

  .map-card {
    position: absolute;
    top: 259px;
    left: 38px;
    width: 210px;
    height: 66px;
    margin: 0;
  }

  .map-button {
    display: none;
  }

  .envelope-button {
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100svh;
    max-height: none;
    overflow: hidden;
  }

  .opening-frame-stage {
    width: max(100vw, calc(100svh * 2192 / 3896));
    max-height: none;
  }

  .open-arrow {
    margin-top: -4.8rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .site-shell {
    width: 100%;
  }

  .opening-video {
    width: min(82vw, calc((100vh - 3rem) * 0.5626));
    height: min(calc(100vh - 3rem), calc(82vw / 0.5626));
  }

  .hero-card,
  .paper-panel,
  .countdown,
  .celebration-panel,
  .events,
  .location,
  .notes,
  .rsvp,
  .closing {
    width: min(100% - 3rem, 64rem);
  }

  .hero-card {
    width: 100vw;
    height: 100svh;
    min-height: 100vh;
    aspect-ratio: auto;
  }

  .celebration-panel {
    container-type: inline-size;
    aspect-ratio: 1024 / 637;
    min-height: 0;
  }

  .countdown-box {
    top: 23.73cqw;
    width: 71.69cqw;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .celebration-panel h2 {
    top: 6.5cqw;
    width: max-content;
    max-width: 90%;
    font-size: 4.8cqw;
    line-height: 1;
  }

  .celebration-message {
    top: 12.2cqw;
    width: 72cqw;
    max-width: none;
    font-size: 3.45cqw;
    line-height: 1.12;
  }

  .countdown-box h3 {
    font-size: 6.44cqw;
    line-height: 9.1cqw;
    white-space: nowrap;
  }

  .countdown-grid {
    max-width: 71.69cqw;
    margin-top: 1.4cqw;
  }

  .countdown-grid div {
    grid-template-rows: 8.14cqw 3.73cqw;
  }

  .countdown-grid strong {
    font-size: 8.14cqw;
    line-height: 8.14cqw;
  }

  .countdown-grid span {
    font-size: 3.73cqw;
    line-height: 3.73cqw;
  }

  .countdown-grid div:not(:last-child)::after {
    font-size: 8.14cqw;
    line-height: 8.14cqw;
    right: -0.18em;
  }

  .celebration-panel .order-teaser {
    top: 55.6cqw;
    width: max-content;
    max-width: 90%;
    font-size: 4.8cqw;
    line-height: 1;
  }

  .hero-copy {
    top: 18%;
  }

  .events {
    aspect-ratio: 1024 / 510;
    padding: 0;
  }

  .event-list {
    top: 5.21008403cqw;
    left: 35.6302521cqw;
    width: 40cqw;
  }

  .event-timeline-panel {
    top: 3.36134454cqw;
    left: 25.71428571cqw;
    width: 16.47058824cqw;
    height: 42.85714286cqw;
  }

  .event-list ol {
    width: 40cqw;
    gap: 2.01680672cqw;
    font-size: 2.68907563cqw;
    line-height: 3.1092437cqw;
  }

  .event-list li {
    gap: 0;
  }

  .location {
    width: min(100% - 3rem, 595px);
    height: 481px;
    padding: 0;
    overflow: hidden;
  }

  .location-copy {
    position: absolute;
    top: 17px;
    left: 155px;
    width: 284px;
  }

  .location h2 {
    width: 447px;
    margin: 0 0 0 -81.5px;
    font-size: 28px;
    line-height: 28px;
  }

  .location .divider {
    width: 87px;
    height: 27.1875px;
    margin: 0 0 0 98.5px;
    object-fit: contain;
  }

  .venue {
    margin-top: 0;
    font-size: 22px;
    line-height: 22px;
  }

  address {
    margin-top: 12px;
    font-size: 16px;
    line-height: 19px;
  }

  .venue-art {
    position: absolute;
    top: 64px;
    left: 4px;
    width: 587px;
    height: 417px;
    margin: 0;
    object-fit: cover;
    object-position: top center;
  }

  .map-card {
    position: absolute;
    top: 328px;
    left: 78px;
    width: 439px;
    height: 136px;
    margin: 0;
  }

  .map-button {
    display: none;
  }

  .notes {
    width: min(100% - 3rem, 595px);
    height: auto;
    aspect-ratio: 1024 / 512;
  }

  .note-vine {
    top: 5.21008403cqw;
    left: 45.88235294cqw;
    width: 12.94117647cqw;
    height: 39.32773109cqw;
  }

  .notes article:first-of-type {
    top: 7.22689076cqw;
    left: 16.47058824cqw;
    width: 31.09243697cqw;
  }

  .notes article:last-of-type {
    top: 11.34453782cqw;
    left: 57.14285714cqw;
    width: 26.21848739cqw;
  }

  .notes article > img:first-child {
    width: 12.60504202cqw;
    height: 12.60504202cqw;
  }

  .notes h2 {
    top: 12.60504202cqw;
    font-size: 4.70588235cqw;
    line-height: 4.70588235cqw;
  }

  .notes article:first-of-type h2 {
    width: 16.63865546cqw;
  }

  .notes article:last-of-type h2 {
    width: 26.21848739cqw;
  }

  .notes .divider {
    top: 17.31092437cqw;
    width: 14.62184874cqw;
    height: 4.53781513cqw;
  }

  .notes p {
    top: 22.5210084cqw;
    font-size: 2.5210084cqw;
    line-height: 3.19327731cqw;
  }

  .notes article:first-of-type p {
    width: 25.04201681cqw;
  }

  .notes article:last-of-type p {
    top: 23.86554622cqw;
    width: 26.21848739cqw;
    white-space: nowrap;
  }

  .rsvp {
    --flower-left-overlap: 40px;
    --flower-bottom-overlap: 14px;
  }

  .rsvp .open-action {
    bottom: 10%;
    gap: 10px;
  }

  .rsvp .arrow-wrap {
    height: 32px;
    margin: 0;
  }

  .rsvp .open-arrow.small {
    width: clamp(28px, 4.6vw, 48px);
    height: clamp(28px, 4.6vw, 48px);
    border-top-width: clamp(1.5px, 0.18vw, 2.4px);
    border-left-width: clamp(1.5px, 0.18vw, 2.4px);
  }

  .rsvp .floral-left {
    width: 24cqw;
  }
}

@media (min-width: 1025px) {
  .site-shell {
    padding-bottom: 4rem;
  }

  .hero {
    padding-top: 0;
  }

  .events {
    aspect-ratio: 1024 / 510;
  }

  .event-list {
    top: 3.7109375cqw;
    left: 44.7265625cqw;
    width: 23.2421875cqw;
  }

  .event-timeline-panel {
    top: 2.685546875cqw;
    left: 27.63671875cqw;
    width: 17.08984375cqw;
    height: 44.43359375cqw;
  }

  .event-list ol {
    width: 23.2421875cqw;
    gap: 1.171875cqw;
    font-size: 3.125cqw;
    line-height: 3.583984375cqw;
  }

  .event-list li {
    gap: 0.15625cqw;
  }

  .location {
    height: 952px;
    padding: 0;
    overflow: hidden;
  }

  .location-copy {
    position: absolute;
    top: 60px;
    left: 165px;
    width: 693px;
  }

  .location h2 {
    width: 447px;
    margin: 0 auto;
    font-size: 70px;
    line-height: 70px;
  }

  .location .divider {
    width: 224px;
    height: 70px;
    margin: 0 auto;
    object-fit: contain;
  }

  .venue {
    margin-top: 0;
    font-size: 50px;
    line-height: 50px;
  }

  address {
    margin-top: 12px;
    font-size: 36px;
    line-height: 43px;
  }

  .venue-art {
    position: absolute;
    top: 165px;
    left: 0;
    width: 100%;
    height: 728px;
    margin: 0;
    object-fit: cover;
    object-position: top center;
  }

  .map-card {
    position: absolute;
    top: 618px;
    left: 136px;
    width: 751px;
    height: 246px;
    margin: 0;
  }

  .map-button {
    display: none;
  }
}

.location {
  position: relative;
  container-type: inline-size;
  width: min(64rem, calc(100% - 2rem));
  aspect-ratio: 1024 / 820;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #f8efdd;
  text-align: center;
  isolation: isolate;
}

.location::before {
  content: "";
  position: absolute;
  top: -131.59%;
  left: -44.05%;
  z-index: 0;
  width: 200.43%;
  height: 247.69%;
  background: url("/assets/templates/sacred-garden/images/location-frame-77-154-bg.png") center / cover no-repeat;
  pointer-events: none;
}

.location-copy {
  position: absolute;
  top: 6.1cqw;
  left: 50%;
  z-index: 2;
  width: min(66cqw, 42rem);
  transform: translateX(-50%);
}

.location h2 {
  width: auto;
  margin: 0;
  color: var(--gold);
  font-size: clamp(2rem, 4.55cqw, 2.9rem);
  line-height: 1;
}

.location .divider {
  width: clamp(6.7rem, 17.2cqw, 11rem);
  height: auto;
  margin: 0.15cqw auto 0;
  object-fit: contain;
}

.venue {
  margin: 4.7cqw 0 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3.55cqw, 2.25rem);
  line-height: 1.05;
}

.location address {
  margin: 1.2cqw 0 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.55cqw, 1.65rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.08;
}

.venue-art {
  position: absolute;
  top: 40.2%;
  left: 50%;
  z-index: 1;
  width: 58%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
  mix-blend-mode: normal;
}

.map-card {
  position: absolute;
  right: auto;
  bottom: 7.5%;
  left: 50%;
  z-index: 3;
  display: block;
  width: clamp(13rem, 36.1cqw, 23.125rem);
  aspect-ratio: 370 / 246;
  height: auto;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transform: translateX(-50%);
}

.location-map-link {
  width: clamp(13rem, 36.1cqw, 23.125rem);
  height: auto;
}

.location-map-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  border-radius: 0.75rem;
  object-fit: cover;
  object-position: center 47%;
  transition: filter 220ms ease, transform 220ms ease;
}

.map-ornament {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 78%;
  height: auto;
  opacity: 0.68;
  pointer-events: none;
  transform: translateX(-50%);
}

.map-ornament-top {
  top: -17%;
}

.map-ornament-bottom {
  bottom: -17%;
}

.location-map-link:hover .location-map-image,
.location-map-link:focus-visible .location-map-image {
  filter: brightness(1.06);
  transform: scale(1.006);
}

.location-map-link:hover .map-ornament,
.location-map-link:focus-visible .map-ornament {
  filter: none;
  transform: translateX(-50%);
}

.location-map-link:hover .map-button img,
.location-map-link:focus-visible .map-button img {
  filter: none;
  transform: none;
}

.map-button {
  position: absolute;
  right: auto;
  bottom: 8%;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.2rem, 0.55cqw, 0.36rem);
  width: auto;
  min-height: clamp(1.95rem, 4.3cqw, 2.75rem);
  padding: 0.35rem clamp(0.55rem, 1.25cqw, 0.8rem);
  border: 1px solid var(--gold);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gold);
  font-family: var(--sans);
  font-size: clamp(0.88rem, 2.15cqw, 1.38rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.map-button img {
  width: clamp(1rem, 2.35cqw, 1.5rem);
  height: clamp(1rem, 2.35cqw, 1.5rem);
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .location {
    width: min(100% - 1rem, 28rem);
    aspect-ratio: 1024 / 860;
  }

  .location-copy {
    top: 7cqw;
    width: 86cqw;
  }

  .venue {
    margin-top: 5cqw;
  }

  .location address {
    line-height: 1.12;
  }

  .venue-art {
    top: 43%;
    width: 70%;
  }

  .map-card,
  .location-map-link {
    width: min(60cqw, 16rem);
  }

  .map-button {
    border-radius: 0.65rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .location {
    width: min(100% - 3rem, 48rem);
    aspect-ratio: 1024 / 840;
  }

  .venue-art {
    top: 41.5%;
    width: 61%;
  }

  .map-card,
  .location-map-link {
    width: min(35cqw, 21rem);
  }
}

.location-section {
  width: 100%;
  min-height: auto;
  padding: 64px 24px 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 249, 237, 0.84), transparent 32rem),
    #f8efdd;
}

.location-container {
  width: min(100%, 900px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.location-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 72px;
}

.location-heading h2 {
  margin: 0;
  color: #b38327;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
}

.location-heading img {
  display: block;
  width: clamp(130px, 18vw, 190px);
  height: auto;
  margin-top: 10px;
}

.location-details {
  margin: 0 0 28px;
  color: #8b786d;
}

.location-details p {
  margin: 0 0 18px;
  color: #8b786d;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.location-details address {
  max-width: 680px;
  margin: 0 auto;
  color: #8b786d;
  font-size: clamp(20px, 2.2vw, 31px);
  font-style: italic;
  line-height: 1.3;
}

.mosque-illustration {
  display: block;
  width: min(100%, 620px);
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.map-wrapper {
  position: relative;
  display: block;
  width: min(100%, 360px);
  max-width: 100%;
  aspect-ratio: 1.55 / 1;
  margin-top: 28px;
  overflow: hidden;
  border: 1.5px solid #b38327;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  transition: filter 220ms ease, transform 220ms ease;
}

.map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-wrapper:hover,
.map-wrapper:focus-within {
  filter: brightness(1.06);
  transform: scale(1.005);
}

.open-maps-button {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  max-width: calc(100% - 24px);
  padding: 10px 18px;
  border: 1px solid #b38327;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #b38327;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.open-maps-button img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  max-width: 100%;
}

@media (max-width: 767px) {
  .location-section {
    padding: 48px 20px 36px;
  }

  .location-heading {
    margin-bottom: 48px;
  }

  .location-details p {
    font-size: clamp(24px, 7vw, 32px);
  }

  .location-details address {
    max-width: 90%;
    font-size: clamp(17px, 5vw, 23px);
  }

  .mosque-illustration {
    width: min(100%, 500px);
  }

  .map-wrapper {
    width: min(88vw, 340px);
  }
}

@media (max-width: 480px) {
  .location-section {
    padding: 40px 16px 32px;
  }

  .location-heading h2 {
    font-size: 40px;
  }

  .location-details p {
    font-size: 25px;
  }

  .location-details address {
    font-size: 18px;
    line-height: 1.4;
  }

  .mosque-illustration {
    width: 100%;
  }

  .map-wrapper {
    width: 92vw;
    max-width: 320px;
  }

  .open-maps-button {
    padding: 9px 14px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
  }
}


.wf-sacred-garden .rsvp-thanks {
  margin: 1rem 0 0;
  color: var(--wine);
  font-family: var(--form-serif);
  font-size: 1.25rem;
}
.wf-sacred-garden .rsvp-error {
  margin: 0.75rem 0 0;
  color: #9b1c1c;
}

/*
 * Full-bleed invitation:
 * Fill the viewport edge-to-edge. A max-width phone column left a cream
 * strip beside the hero video (reads as a right “line”). Avoid 100vw —
 * with a vertical scrollbar it is wider than the layout and causes the same line.
 */
html:has(body.wf-sacred-garden) {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--paper);
  background-color: var(--paper);
}

html:has(body.wf-sacred-garden),
body.wf-sacred-garden {
  --wf-sg-max: 430px;
  background: var(--paper) !important;
  background-color: var(--paper) !important;
}

body.wf-sacred-garden {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body.wf-sacred-garden .site-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  overflow-x: clip;
  overflow-y: visible;
  padding-inline: 0;
}

/* Hero + joyful hearts share one stacking context so side florals can bridge both */
body.wf-sacred-garden .sg-top-stack {
  position: relative;
  z-index: 3;
  overflow: visible;
  width: 100%;
}

body.wf-sacred-garden .sg-top-stack .hero {
  position: relative;
  overflow: visible;
  z-index: 2;
  margin: 0;
  padding: 0;
}

body.wf-sacred-garden .hero,
body.wf-sacred-garden .hero-card {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  left: auto !important;
}

body.wf-sacred-garden .hero-card {
  overflow: hidden;
  z-index: 0;
  margin: 0;
}

body.wf-sacred-garden .sg-top-stack .celebration-panel {
  position: relative;
  z-index: 1;
  margin-top: -1px; /* kill subpixel seam / white hairline */
}

/*
 * Side florals: blooms live in the BOTTOM of tall PNGs (transparent bg).
 * Sit by Scroll Down and only lightly continue into Joyful Hearts.
 */
body.wf-sacred-garden .hero-flower {
  position: absolute;
  z-index: 6;
  top: auto;
  width: 46%;
  height: auto;
  margin: 0;
  pointer-events: none;
  user-select: none;
  bottom: -4%;
  mix-blend-mode: normal;
  opacity: 1;
}

body.wf-sacred-garden .hero-flower-left {
  left: -8%;
  right: auto;
}

body.wf-sacred-garden .hero-flower-right {
  right: -7%;
  left: auto;
}

body.wf-sacred-garden .opening-screen {
  padding-inline: 0;
}

body.wf-sacred-garden .opening-video {
  width: min(100vw, var(--wf-sg-max), calc((100vh - 2.5rem) * 0.5626));
  height: min(100vh, calc(var(--wf-sg-max) / 0.5626));
}

body.wf-sacred-garden .envelope-button {
  width: min(100vw, var(--wf-sg-max), 34.25rem);
}

body.wf-sacred-garden .rsvp,
body.wf-sacred-garden .location-section,
body.wf-sacred-garden .location-container,
body.wf-sacred-garden .notes,
body.wf-sacred-garden .events,
body.wf-sacred-garden .celebration-panel,
body.wf-sacred-garden .closing {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

body.wf-sacred-garden .closing-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.wf-sacred-garden .rsvp {
  background-size: cover;
  background-position: center;
}

body.wf-sacred-garden .celebration-panel,
body.wf-sacred-garden .events,
body.wf-sacred-garden .notes,
body.wf-sacred-garden .rsvp,
body.wf-sacred-garden .location-section,
body.wf-sacred-garden .closing {
  container-type: inline-size;
}

/* Celebration — always use phone-scale positions (not desktop fixed px) */
body.wf-sacred-garden .celebration-panel {
  aspect-ratio: 1024 / 637;
  min-height: 0;
  background: var(--paper);
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* Full-bleed panel art — flush under hero (no paper gap) */
body.wf-sacred-garden .celebration-panel > picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

body.wf-sacred-garden .celebration-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.wf-sacred-garden .celebration-panel h2 {
  top: 6.5cqw;
  right: 0;
  left: 0;
  width: max-content;
  max-width: 90%;
  margin-inline: auto;
  padding: 0 2.2cqw;
  font-size: 4.8cqw;
  line-height: 1;
  background: #f8ebda;
}

/* Invitation line — gap between the title and the rose cluster / frame */
body.wf-sacred-garden .celebration-message {
  top: 12.2cqw;
  right: 0;
  left: 0;
  width: 72cqw;
  max-width: none;
  margin: 0 auto;
  font-size: 3.45cqw;
  line-height: 1.12;
}

body.wf-sacred-garden .countdown-box {
  top: 32.4cqw;
  left: 50%;
  width: 66cqw;
  height: auto;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(-50%);
}

body.wf-sacred-garden .countdown-box h3 {
  font-size: 5.56cqw;
  line-height: 6.94cqw;
  white-space: nowrap;
}

body.wf-sacred-garden .countdown-grid {
  max-width: 66cqw;
  margin: 0 auto;
  margin-top: 0;
}

body.wf-sacred-garden .countdown-grid div {
  grid-template-rows: 5.56cqw 2.78cqw;
}

body.wf-sacred-garden .countdown-grid strong,
body.wf-sacred-garden .countdown-grid div:not(:last-child)::after {
  font-size: 5.56cqw;
  line-height: 5.56cqw;
}

body.wf-sacred-garden .countdown-grid span {
  font-size: 2.78cqw;
  line-height: 2.78cqw;
}

body.wf-sacred-garden .countdown-grid div:not(:last-child)::after {
  right: -0.18em;
}

body.wf-sacred-garden .celebration-panel .order-teaser {
  top: 55.6cqw;
  right: 0;
  left: 0;
  width: max-content;
  max-width: 90%;
  margin-inline: auto;
  padding: 0 2.2cqw 0.4cqw;
  font-size: 4.8cqw;
  line-height: 1;
  background: #f8ebda;
}

/* Events — designed frame art intact; gentle zoom so icons/type read a bit larger */
body.wf-sacred-garden .events {
  aspect-ratio: 1024 / 510;
  padding: 0;
  text-align: center;
  overflow: hidden;
  background: var(--paper);
}

body.wf-sacred-garden .events-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.1);
  transform-origin: 50% 48%;
  pointer-events: none;
}

body.wf-sacred-garden .events-dot-flower {
  z-index: 2;
  width: clamp(28px, 4.6cqw, 52px);
  height: auto;
  left: 43.55cqw;
  transform: translate(-50%, -50%) rotate(-18deg) scale(1.08);
}

body.wf-sacred-garden .event-list.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: transparent;
}


/* Brighter hero video wash */
body.wf-sacred-garden .hero-video {
  filter: saturate(1.05) contrast(1.02) brightness(1.22);
}
body.wf-sacred-garden .hero-card::after {
  background:
    radial-gradient(ellipse 85% 70% at 50% 42%, rgba(255, 252, 244, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.12) 0%, rgba(249, 241, 224, 0.08) 45%, rgba(249, 241, 224, 0.22) 100%);
}

/* Hero phone composition — ignore desktop viewport media for this column */
body.wf-sacred-garden .hero-frame-content {
  grid-template-rows: 38% 34% 1fr;
}
body.wf-sacred-garden .hero-date-block {
  width: min(86%, 22rem);
}
body.wf-sacred-garden .hero-wedding-day {
  font-size: clamp(1.45rem, 7.2vw, 2.15rem);
  white-space: nowrap;
}
body.wf-sacred-garden .hero-couple {
  align-self: start;
  margin-top: clamp(1.25rem, 4.5vw, 2rem);
}
body.wf-sacred-garden .hero-scroll-action {
  margin-bottom: clamp(5.5rem, 16vw, 7.5rem);
}

body.wf-sacred-garden .music-toggle {
  right: 0.75rem;
}

body.wf-sacred-garden .modal .rsvp-form {
  width: min(100%, calc(var(--wf-sg-max) - 1.5rem));
}

@media (min-width: 431px) {
  body.wf-sacred-garden .opening-video,
  body.wf-sacred-garden .envelope-button {
    width: var(--wf-sg-max);
  }

  body.wf-sacred-garden .opening-video {
    height: min(100vh, calc(var(--wf-sg-max) / 0.5626));
  }

  body.wf-sacred-garden .opening-frame-stage {
    width: min(100%, calc((100vh - 2.5rem) * 2192 / 3896), var(--wf-sg-max));
  }
}
