@font-face {
  font-family: Garden Serif;
  src: url("assets/garden-serif.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: Garden Serif;
  src: url("assets/garden-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Garden Sans;
  src: url("assets/garden-sans.woff") format("woff");
  font-display: swap;
}

:root {
  --burgundy: #672335;
  --espresso: #2c201b;
  --ink: #3a2e24;
  --ink-muted: #625248;
  --ivory: #fbf7ee;
  --paper: #f6f1e7;
  --linen: #eee4d7;
  --brass: #ae8a57;
  --brass-light: #e6c899;
  --line: rgba(99, 59, 43, .23);
  --display: "Garden Serif", "Times New Roman", serif;
  --sans: "Garden Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fade: cubic-bezier(.32, .7, .28, 1);
  --header-height: 70px;
  --seal-to-card: 3100ms;
  --flip-time: 780ms;
  --dissolve-time: 640ms;
  --cover-image: url("assets/garden-dusk.webp");
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body.gate-active { overflow: hidden; }
img { display: block; width: 100%; }
figure, blockquote, dl, dd { margin: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
p { margin: 0; line-height: 1.65; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(2.6rem, 6vw, 5.3rem); letter-spacing: -.064em; }
h3 { font-size: clamp(2.2rem, 4.55vw, 4.1rem); letter-spacing: -.052em; }
em { font-weight: 400; }
:focus-visible { outline: 2px solid #a76527; outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-150%);
  color: var(--ivory);
  background: var(--burgundy);
}
.skip-link:focus { transform: translateY(0); }
.eyebrow {
  font-size: .78rem;
  letter-spacing: .15em;
  line-height: 1.45;
  text-transform: uppercase;
  font-weight: 700;
}

.gate {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  color: var(--ivory);
  background: var(--espresso);
}
.gate-backdrop, .gate-light { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.gate-backdrop {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(38, 19, 21, .17) 12%, rgba(20, 11, 11, .81) 100%),
    linear-gradient(0deg, rgba(26, 12, 14, .54), transparent 55%),
    var(--cover-image) center 55% / cover no-repeat;
}
.gate-light {
  z-index: -1;
  background: radial-gradient(ellipse at 50% 46%, rgba(239, 196, 154, .18), transparent 53%);
  animation: garden-light 9s ease-in-out infinite alternate;
}
@keyframes garden-light {
  from { opacity: .54; }
  to { opacity: 1; }
}
.gate-brand {
  position: absolute;
  inset: max(29px, env(safe-area-inset-top)) auto auto 6vw;
  color: #efdfbc;
  font: 700 .98rem/1 var(--display);
  letter-spacing: .4em;
  text-decoration: none;
}
.gate-layout {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto minmax(0, 1fr);
  justify-items: center;
  gap: clamp(12px, 2.4svh, 22px);
  width: min(87vw, 700px);
  height: 100svh;
  padding-block: clamp(48px, 8svh, 74px);
}
.gate-intro {
  align-self: end;
  text-align: center;
  transition: opacity .42s ease, transform .42s var(--ease);
}
.gate:not([data-phase="sealed"]) .gate-intro { opacity: 0; transform: translateY(-8px); }
.gate-intro .location-line { color: var(--brass-light); }
.gate-intro h1 {
  margin: .19em 0 .13em;
  font-size: clamp(2.85rem, 5.1vw, 4.65rem);
  letter-spacing: -.065em;
  line-height: .94;
  text-wrap: balance;
}
.gate-intro h1 em { margin-inline: .09em; color: var(--brass-light); font-size: .73em; }
.gate-stationery { width: min(100%, 466px, 70svh); text-align: center; }
.packet {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.44;
  perspective: 1060px;
}
.gate[data-phase="sealed"] .packet { animation: packet-float 4.8s ease-in-out infinite; }
.gate[data-phase="sealed"] .packet:hover { animation-play-state: paused; }
@keyframes packet-float {
  0%, 100% { transform: translateY(0) rotate(-.55deg); }
  50% { transform: translateY(-8px) rotate(.55deg); }
}
.envelope-back, .envelope-pocket, .envelope-flap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.envelope-back {
  border: 1px solid #975d61;
  border-radius: 5px;
  background:
    repeating-linear-gradient(102deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 4px),
    linear-gradient(133deg, #975260, #672335 43%, #3b1521);
  box-shadow: 0 30px 55px -10px rgba(0, 0, 0, .59), 0 8px 14px rgba(0, 0, 0, .24);
}
.envelope-back::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(47deg, transparent 0 18px, rgba(229, 194, 130, .16) 18px 19px, transparent 19px 32px),
    linear-gradient(147deg, #501a2b, #32131c);
  clip-path: polygon(0 0, 100% 0, 50% 60%);
}
.envelope-flap {
  z-index: 6;
  bottom: auto;
  height: 61%;
  transform-origin: top center;
  transform-style: preserve-3d;
}
.flap-face {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  backface-visibility: hidden;
}
.flap-face-front {
  border-radius: 5px 5px 0 0;
  background:
    repeating-linear-gradient(96deg, transparent 0 3px, rgba(236, 238, 209, .019) 3px 4px),
    linear-gradient(149deg, #a25664, #762c3e 52%, #4c1826);
}
.flap-face-front::after {
  content: "";
  position: absolute;
  inset: 0 9px 8px;
  background: linear-gradient(138deg, rgba(212, 178, 118, .54), rgba(212, 178, 118, .1));
  clip-path: polygon(0 0, 50% 98%, 100% 0, 100% .6%, 50% 100%, 0 .65%);
}
.flap-face-back {
  transform: rotateX(180deg);
  background:
    repeating-linear-gradient(45deg, transparent 0 15px, rgba(229, 194, 130, .18) 15px 16px, transparent 16px 31px),
    linear-gradient(143deg, #411321, #77424a);
}
.envelope-pocket {
  z-index: 4;
  border-radius: 5px;
  clip-path: polygon(0 0, 50% 61%, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(40deg, transparent 49.75%, #a16a6e 50%, transparent 50.25%) left bottom / 50% 73% no-repeat,
    linear-gradient(-40deg, transparent 49.75%, #a16a6e 50%, transparent 50.25%) right bottom / 50% 73% no-repeat,
    repeating-linear-gradient(102deg, transparent 0 2px, rgba(255, 255, 255, .017) 2px 3px),
    linear-gradient(35deg, #4b1727, #85384c 65%, #6b2637);
  box-shadow: inset 0 0 0 1px rgba(231, 169, 158, .29);
}
.wax-seal {
  position: absolute;
  z-index: 7;
  top: 60.5%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(56px, 16%, 86px);
  aspect-ratio: 1;
  padding: 0;
  transform: translate(-50%, -50%) rotate(-8deg);
  border: 1px solid #dcbf8e;
  border-radius: 47% 52% 47% 51% / 51% 47% 51% 46%;
  color: #654027;
  background: radial-gradient(circle at 35% 24%, #fff9e7, #f2dfb9 57%, #b38655 100%);
  box-shadow: 0 5px 12px rgba(30, 12, 15, .52), inset 0 0 0 4px rgba(254, 220, 159, .27);
  font: italic clamp(1.2rem, 2.65vw, 1.85rem)/1 var(--display);
  letter-spacing: -.105em;
  transition: filter .24s ease;
}
.wax-seal:hover { filter: brightness(1.13); }
.wax-seal::before, .wax-seal::after { content: ""; position: absolute; pointer-events: none; }
.wax-seal::before { inset: 16%; border: 1px solid rgba(97, 57, 25, .49); border-radius: 50%; }
.wax-seal::after {
  inset: 0;
  border: 1px solid rgba(239, 214, 161, .61);
  border-radius: 50%;
  animation: seal-pulse 2.65s ease-out infinite;
}
@keyframes seal-pulse {
  from { transform: scale(1); opacity: .85; }
  70%, to { transform: scale(1.56); opacity: 0; }
}
.seal-fragments { position: absolute; z-index: 8; top: 60.5%; left: 50%; }
.seal-fragments i {
  position: absolute;
  width: 9px;
  height: 8px;
  opacity: 0;
  border-radius: 40% 28% 38% 20%;
  background: #d7aa6a;
}
.seal-fragments i:nth-child(1) { --dx: -50px; --dy: -26px; --turn: 87deg; }
.seal-fragments i:nth-child(2) { --dx: 39px; --dy: -35px; --turn: -71deg; }
.seal-fragments i:nth-child(3) { --dx: 29px; --dy: 47px; --turn: 112deg; }
.seal-fragments i:nth-child(4) { --dx: -37px; --dy: 57px; --turn: -59deg; }
.gate-hint {
  min-height: 1.65em;
  margin-top: 25px;
  color: #f0e1c5;
  font-size: .97rem;
  letter-spacing: .055em;
}
.gate-skip {
  position: absolute;
  right: 6vw;
  bottom: max(28px, env(safe-area-inset-bottom));
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #a99170;
  color: #ebdfc8;
  background: transparent;
  font-size: .88rem;
}
.gate-skip:hover { border-color: #f0d3a5; color: white; }
.card-rail {
  position: absolute;
  z-index: 3;
  inset: 9% 8% 8%;
  pointer-events: none;
  opacity: 0;
}
.invitation-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  perspective: 960px;
}
.card-turn {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform var(--flip-time) cubic-bezier(.55, .05, .21, 1);
}
.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.1vw, 15px);
  padding: 16px;
  border: 1px solid rgba(139, 102, 57, .44);
  border-radius: 4px;
  backface-visibility: hidden;
  box-shadow: 0 13px 28px rgba(27, 13, 15, .36);
}
.card-front { background: linear-gradient(136deg, #fffaf0, #f3e7cd); }
.card-front .eyebrow { max-width: 25ch; color: #6c5233; font-size: clamp(.56rem, 1vw, .73rem); }
.card-rule {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(153, 109, 56, .44);
  border-radius: 2px;
  pointer-events: none;
}
.card-couple {
  font: 400 clamp(1.62rem, 3.7vw, 3.4rem)/.88 var(--display);
  letter-spacing: -.065em;
}
.card-place { font-size: clamp(.66rem, 1.3vw, .91rem); }
.card-action { margin-top: 5px; color: #735632; font-size: .78rem; text-decoration: underline; text-underline-offset: 4px; }
.card-back {
  transform: rotateY(-180deg);
  color: #e4c489;
  background: radial-gradient(ellipse at 30% 20%, #863c4f, var(--burgundy) 64%, #421623);
}
.card-back .card-rule { border-color: rgba(228, 196, 137, .62); }
.large-monogram { font: italic 400 clamp(3.2rem, 6vw, 6rem)/1 var(--display); letter-spacing: -.079em; }
.gate:not([data-phase="sealed"]) .wax-seal { animation: seal-break 420ms ease-out both; pointer-events: none; }
.gate:not([data-phase="sealed"]) .seal-fragments i { animation: scatter 540ms ease-out both; }
.gate:not([data-phase="sealed"]) .envelope-flap {
  animation: flap-lift 630ms var(--fade) 440ms both, shell-fade 610ms ease 1970ms both;
}
.gate:not([data-phase="sealed"]) .envelope-back,
.gate:not([data-phase="sealed"]) .envelope-pocket { animation: shell-fade 610ms ease 1970ms both; }
.gate:not([data-phase="sealed"]) .card-rail { animation: card-rise var(--seal-to-card) linear both; }
.gate[data-phase="ready"] .invitation-card { pointer-events: auto; }
.gate[data-phase="entering"] { pointer-events: none; animation: gate-away var(--dissolve-time) var(--fade) var(--flip-time) both; }
.gate[data-phase="entering"] .card-turn { transform: rotateY(-180deg); }

@keyframes seal-break {
  from { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  36% { opacity: .87; transform: translate(-50%, -50%) rotate(9deg) scale(.94); }
  to { opacity: 0; transform: translate(-50%, -50%) rotate(-30deg) scale(.43); }
}
@keyframes scatter {
  0%, 12% { opacity: 0; transform: translate(0, 0) rotate(0); }
  26% { opacity: .92; }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--turn)); }
}
@keyframes flap-lift {
  0% { transform: rotateX(0); z-index: 6; }
  45% { z-index: 6; }
  46% { z-index: 2; }
  to { transform: rotateX(177deg); z-index: 2; }
}
@keyframes shell-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes card-rise {
  0%, 22% { opacity: 0; transform: translateY(20%) scale(.97); z-index: 3; }
  25% { opacity: 1; transform: translateY(18%) scale(.97); animation-timing-function: var(--fade); }
  63% { opacity: 1; transform: translateY(-53%) scale(1); z-index: 3; animation-timing-function: var(--ease); }
  72% { opacity: 1; transform: translateY(-55%) scale(1.025); z-index: 5; animation-timing-function: var(--fade); }
  97%, to { opacity: 1; transform: translateY(-2%) scale(1.09); z-index: 5; }
}
@keyframes gate-away { from { opacity: 1; } to { opacity: 0; } }

.petals { position: fixed; z-index: 23; inset: 0; overflow: hidden; pointer-events: none; }
.gate-active .petals { z-index: 52; }
.petal {
  position: absolute;
  top: -6dvh;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * .72);
  border-radius: 68% 36% 61% 41% / 54% 57% 44% 47%;
  background: radial-gradient(ellipse at 26% 23%, rgba(255, 244, 218, .66), transparent 62%), var(--color);
  opacity: 0;
  will-change: transform;
  animation: petal-fall var(--duration) linear var(--delay) infinite;
}
.petal:nth-child(3n) { border-radius: 73% 37% 76% 27% / 72% 41% 64% 35%; }
@keyframes petal-fall {
  0% { transform: translate3d(0, 0, 0) rotate(-18deg) rotateY(4deg); opacity: 0; }
  13%, 77% { opacity: var(--petal-opacity); }
  34% { transform: translate3d(calc(var(--drift) * .63), 38dvh, 0) rotate(92deg) rotateY(47deg); }
  68% { transform: translate3d(calc(var(--drift) * -.38), 76dvh, 0) rotate(193deg) rotateY(108deg); }
  100% { transform: translate3d(var(--drift), 112dvh, 0) rotate(319deg) rotateY(203deg); opacity: 0; }
}

.site-header {
  position: sticky;
  z-index: 26;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 clamp(22px, 6vw, 91px);
  border-bottom: 1px solid rgba(92, 57, 43, .17);
  background: rgba(247, 242, 230, .96);
  backdrop-filter: blur(12px);
}
.header-monogram {
  flex: none;
  padding: 12px 0;
  color: var(--burgundy);
  font: italic 400 2rem/.9 var(--display);
  letter-spacing: -.09em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.55vw, 41px); }
.site-nav a, .menu-button {
  color: #364e40;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .nav-rsvp {
  padding: 10px 18px;
  border: 1px solid #8f6161;
  border-radius: 1px;
}
.site-nav .nav-rsvp:hover { background: #eee1d8; text-decoration: none; }
.menu-button { display: none; }

.hero {
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 57% 58%, #efe2d6 0, transparent 65%),
    var(--ivory);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 6vw, 104px);
  align-items: center;
  width: min(87vw, 1260px);
  min-height: calc(100svh - var(--header-height));
  margin: auto;
  padding: clamp(45px, 6vw, 88px) 0 clamp(37px, 5vw, 78px);
}
.hero-copy { padding-bottom: 1.2rem; }
.hero-eyebrow { color: #785a38; }
.hero h1 {
  margin: .25em 0 .22em;
  font-size: clamp(5rem, 10.1vw, 10.9rem);
  line-height: .8;
  letter-spacing: -.085em;
}
.hero-name { display: block; }
.hero-second { white-space: nowrap; }
.hero-second em { margin-right: -.14em; color: #92693e; font-size: .6em; }
.hero-date { color: var(--ink-muted); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(27px, 6vw, 67px);
  color: var(--burgundy);
  font-size: .9rem;
  text-decoration: none;
}
.hero-scroll span { width: 33px; height: 1px; background: #b39463; transition: width .3s var(--ease); }
.hero-scroll:hover span { width: 46px; }
.hero-portrait { position: relative; margin: 0 clamp(0px, 3vw, 49px) 0 0; }
.portrait-window {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(390px, 65svh, 710px);
  border-radius: 0 21vw 0 0;
  background: var(--linen);
}
.portrait-window img { height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-portrait::before {
  position: absolute;
  inset: -11px -11px 16px 11px;
  border: 1px solid rgba(174, 138, 87, .64);
  border-radius: 0 21vw 0 0;
  content: "";
  pointer-events: none;
}
.hero-portrait figcaption {
  position: relative;
  margin-top: 11px;
  color: var(--ink-muted);
  font-size: .83rem;
  text-align: right;
}
.hero.is-entered .hero-portrait { animation: hero-portrait 1.35s var(--ease) both; }
.hero.is-entered .hero-eyebrow { animation: entrance .8s var(--ease) 110ms both; }
.hero.is-entered .hero-name:first-child { animation: entrance .92s var(--ease) 285ms both; }
.hero.is-entered .hero-name:nth-child(2) { animation: entrance .95s var(--ease) 390ms both; }
.hero.is-entered .hero-date, .hero.is-entered .hero-scroll { animation: entrance 1.05s var(--ease) 535ms both; }
@keyframes hero-portrait {
  from { opacity: 0; transform: translateY(17px) scale(.975); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes entrance {
  from { opacity: 0; transform: translateY(26px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.paper {
  background:
    repeating-linear-gradient(97deg, transparent 0 3px, rgba(120, 113, 80, .017) 3px 4px),
    var(--paper);
}
.section-heading { max-width: 730px; margin: 0 auto; padding: 0 24px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 14px; color: #665736; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading > p:not(.eyebrow) { max-width: 48ch; margin-inline: auto; color: var(--ink-muted); }
.motion-ready [data-reveal]:not([data-photo-scene]) {
  transition: opacity .85s var(--ease), transform .95s var(--ease), filter .85s var(--ease);
}
.motion-ready [data-reveal]:not([data-photo-scene], .is-visible, :focus-within) {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
}
[data-parallax] { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.12); }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-photo-reveal] {
    clip-path: inset(0);
    transition: clip-path 1.25s var(--fade);
  }
  .motion-ready [data-photo-scene]:not(.is-visible) [data-photo-reveal] {
    clip-path: inset(100% 0 0);
  }
  .motion-ready .story-art figcaption { transition: opacity .72s var(--ease) .22s; }
  .motion-ready .story-art:not(.is-visible) figcaption { opacity: 0; }
}

.story { padding: clamp(74px, 10vw, 146px) 0 clamp(83px, 11vw, 158px); }
.story-list {
  display: grid;
  gap: clamp(64px, 11vw, 165px);
  width: min(86vw, 1120px);
  margin: clamp(51px, 7.4vw, 110px) auto 0;
}
.story-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(34px, 8vw, 128px);
}
.story-chapter:nth-child(even) { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); }
.story-chapter:nth-child(even) .story-art { order: 1; }
.story-art {
  position: relative;
  width: 100%;
  padding: 11px 11px 0;
  transform-origin: center;
  border: 1px solid #e7dcc6;
  background: #fffaf0;
  box-shadow: 0 20px 46px -27px rgba(35, 43, 35, .46);
}
.story-photo { height: clamp(249px, 33vw, 445px); overflow: hidden; background: #e4d8ca; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 41%; }
.story-art figcaption { padding: 9px 10px 10px; color: #665736; font: italic 1.04rem/1.4 var(--display); text-align: center; }
.story-copy { max-width: 40ch; }
.chapter-label { margin-bottom: 14px; color: #765b35; }
.chapter-text { margin-top: 17px; color: var(--ink-muted); }

.date-section {
  overflow: hidden;
  padding: clamp(72px, 10vw, 145px) 24px clamp(74px, 10vw, 144px);
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 48% 44%, #512c2d, transparent 57%),
    repeating-linear-gradient(52deg, transparent 0 32px, rgba(223, 200, 157, .026) 32px 33px, transparent 33px 65px),
    var(--espresso);
}
.date-inner { display: grid; justify-items: center; gap: 21px; }
.date-section .section-heading { padding: 0; }
.date-section .eyebrow { color: #e4c392; }
.date-section .section-heading > p:not(.eyebrow) { min-height: 1.65em; color: #efe0d2; }
.scratch-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 570px);
  min-height: 190px;
  margin-top: 12px;
  border: 1px solid #d9ba88;
  border-radius: 5px;
  box-shadow: 0 19px 42px rgba(21, 10, 11, .35);
}
.date-print {
  display: grid;
  min-height: 188px;
  padding: 20px 16px;
  place-content: center;
  gap: 7px;
  text-align: center;
  color: var(--ink);
  border-radius: 4px;
  background: radial-gradient(ellipse at 15% 10%, #fffaf1, transparent 75%), #efe5cf;
}
.date-print::after { position: absolute; inset: 9px; border: 1px solid #d4c3a3; border-radius: 2px; content: ""; pointer-events: none; }
.date-print time { font: italic 400 clamp(2.15rem, 5.4vw, 4.22rem)/1.02 var(--display); letter-spacing: -.063em; }
.date-print .eyebrow { color: #6f5633; }
.date-print > p:last-child { font-size: .9rem; }
#scratch-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  touch-action: none;
  cursor: crosshair;
  transition: opacity .55s ease-in-out;
}
.scratch-label {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  color: var(--ivory);
  pointer-events: none;
  transition: opacity .26s;
}
.scratch-label .eyebrow { color: var(--brass-light); }
.etch-mark { font: italic 2.45rem/.9 var(--display); letter-spacing: -.11em; }
.scratch-card.is-scratching .scratch-label,
.scratch-card.is-revealed .scratch-label,
.scratch-card.is-revealed canvas { opacity: 0; }
.scratch-card.is-revealed canvas { pointer-events: none; }
.scratch-sparkles { position: absolute; inset: 0; pointer-events: none; }
.scratch-sparkles i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 4px;
  border-radius: 80% 14% 70% 20%;
  opacity: 0;
  background: #eed3a3;
  animation: scratch-spark 970ms var(--fade) var(--spark-delay) both;
}
@keyframes scratch-spark {
  21% { opacity: .83; }
  to { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) rotate(200deg); }
}
.quiet-button {
  min-height: 44px;
  padding: 6px 2px;
  border: 0;
  color: var(--brass-light);
  background: transparent;
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.quiet-button:hover { color: var(--ivory); }
.countdown-wrap { display: grid; width: min(100%, 655px); grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .78s var(--ease), opacity .77s ease; }
.countdown-wrap.is-counting { grid-template-rows: 1fr; opacity: 1; }
.countdown-interior { overflow: hidden; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0 2px;
}
.countdown > div { text-align: center; border-right: 1px solid rgba(232, 203, 158, .32); }
.countdown > div:last-child { border: 0; }
.countdown span { display: block; font: 400 clamp(2rem, 5.5vw, 4.6rem)/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.countdown small { display: block; margin-top: 8px; color: #e6cb9e; font: 700 .72rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.date-arrived { padding: 16px 12px 0; text-align: center; }

.celebrations { padding: clamp(77px, 10vw, 144px) 0 clamp(32px, 5vw, 73px); }
.event-list {
  display: grid;
  gap: clamp(15px, 3.3vw, 47px);
  width: min(91vw, 1320px);
  margin: clamp(45px, 7vw, 101px) auto 0;
}
.event {
  --event-bg: #edddad;
  --event-ink: #38331f;
  --event-line: rgba(66, 54, 26, .25);
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(0, .89fr);
  min-height: clamp(390px, 45vw, 610px);
  overflow: hidden;
  color: var(--event-ink);
  background: var(--event-bg);
}
.event:nth-child(even) { grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); }
.event:nth-child(even) .event-image { order: 1; }
.event[data-theme="sangeet"] { --event-bg: #412a3a; --event-ink: #f4ebdd; --event-line: rgba(244, 235, 221, .27); }
.event[data-theme="wedding"] { --event-bg: #ead8cf; --event-ink: #482f2b; --event-line: rgba(72, 47, 43, .22); }
.event[data-theme="reception"] { --event-bg: #33251f; --event-ink: #f8edde; --event-line: rgba(244, 235, 221, .25); }
.event-image { position: relative; min-height: 100%; overflow: hidden; background: #c7ad9d; }
.event-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 44%; }
.event-copy {
  display: grid;
  align-items: center;
  padding: clamp(33px, 5.4vw, 78px) clamp(26px, 5.5vw, 81px);
  background:
    repeating-linear-gradient(104deg, transparent 0 3px, rgba(99, 75, 41, .025) 3px 4px),
    var(--event-bg);
}
.event-content .eyebrow { margin-bottom: 10px; }
.event-description { margin: 15px 0 21px; }
.event-content dl { margin-bottom: 20px; }
.event-content dl > div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--event-line);
  font-size: .97rem;
}
.event-content dt { font-weight: 700; }
.event-map { display: inline-block; padding: 5px 0; font-size: .9rem; font-weight: 700; text-underline-offset: 5px; }
.event-map:hover { text-decoration-thickness: 2px; }

.venue { position: relative; padding-bottom: clamp(68px, 10vw, 143px); background: #ece2d3; }
.venue-image { height: clamp(324px, 52vw, 710px); overflow: hidden; background: #c8b29f; }
.venue-image img { height: 100%; object-fit: cover; object-position: 50% 51%; }
.venue-wrap { position: relative; width: min(87vw, 1230px); margin: clamp(-165px, -12vw, -76px) auto 0; }
.venue-card {
  width: min(100%, 525px);
  margin-left: auto;
  padding: clamp(25px, 4.3vw, 62px) clamp(25px, 5vw, 72px);
  border: 1px solid #c4ba9e;
  background: var(--ivory);
  box-shadow: 0 15px 35px -19px #282d1e57;
}
.venue-card .eyebrow { margin-bottom: 14px; color: #68512f; }
.venue-card h2 { font-size: clamp(2.65rem, 5vw, 4.25rem); }
.venue-card > p:not(.eyebrow) { margin: 15px 0 22px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: 11px 20px;
  border: 1px solid var(--burgundy);
  border-radius: 1px;
  color: var(--ivory);
  background: var(--burgundy);
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.button:hover { background: #853b4d; }
.button-outline { color: var(--burgundy); background: transparent; }
.button-outline:hover { color: var(--ivory); }
.rsvp-section { padding: clamp(72px, 12vw, 172px) 0; background: #ede0d6; }
.rsvp-section .button { margin-top: 23px; }
.rsvp-section .rsvp-deadline { margin-top: 13px; font-size: .89rem; }
.faq { padding: clamp(69px, 10vw, 141px) 0; }
.faq-list { width: min(730px, 86vw); margin: clamp(24px, 4.5vw, 63px) auto 0; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 59px;
  padding: 12px 3px;
  color: var(--burgundy);
  font: 400 clamp(1.17rem, 2.5vw, 1.55rem)/1.25 var(--display);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font: 400 1.35rem/1 var(--sans); color: #7a6140; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] p { animation: faq-answer .34s var(--ease) both; }
.faq-list details p { max-width: 65ch; padding: 0 30px 17px 3px; color: var(--ink-muted); }
@keyframes faq-answer { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.closing {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(380px, 51vw, 720px);
  padding: 64px 24px;
  overflow: hidden;
  color: var(--ivory);
  background: var(--espresso);
  text-align: center;
}
.closing-photo, .closing-photo img, .closing-photo::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing-photo { z-index: -1; overflow: hidden; }
.closing-photo img { object-fit: cover; object-position: 50% 43%; }
.closing-photo::after { content: ""; background: linear-gradient(0deg, rgba(30, 14, 17, .78), rgba(35, 17, 18, .4)); }
.closing-copy { max-width: 650px; text-shadow: 0 1px 10px #2b1619; }
.closing-copy blockquote { margin-bottom: 18px; font: italic 400 clamp(2.5rem, 6.1vw, 5.4rem)/1.05 var(--display); letter-spacing: -.049em; }
.closing-copy .eyebrow { color: #fae3bc; }
.footer {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: clamp(62px, 8vw, 107px) 24px clamp(31px, 5vw, 55px);
  color: var(--ivory);
  background: var(--espresso);
  text-align: center;
}
.footer .large-monogram { color: var(--brass-light); }
.footer-names { font: 400 clamp(2rem, 4.2vw, 3.5rem)/1.04 var(--display); letter-spacing: -.06em; }
.footer-place { color: #e6d5c5; }
.footer .quiet-button { margin-top: 13px; }
.footer-credit { margin-top: 29px; color: #d0ceb7; font-size: .81rem; }
.footer-credit span { margin-inline: 4px; color: var(--brass-light); }

.rsvp-dialog {
  max-width: min(94vw, 510px);
  width: 100%;
  max-height: min(90vh, 690px);
  padding: 0;
  border: 1px solid #a59c7c;
  color: var(--ink);
  background: var(--ivory);
}
.rsvp-dialog::backdrop { background: rgba(30, 15, 18, .72); backdrop-filter: blur(5px); }
.rsvp-dialog[open] { animation: dialog-arrive .36s var(--ease) both; }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.dialog-body { position: relative; padding: clamp(23px, 6vw, 40px); }
.dialog-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--burgundy);
  background: transparent;
  font-size: 1.6rem;
}
.dialog-body h2 { margin-right: 30px; font-size: clamp(2.2rem, 6vw, 3.4rem); }
.dialog-note { margin: 7px 0 16px; color: var(--ink-muted); }
#rsvp-form { display: grid; gap: 8px; }
#rsvp-form > label, #rsvp-form legend { font-weight: 700; }
#rsvp-form input:not([type="checkbox"]), #rsvp-form select {
  min-height: 43px;
  margin-bottom: 7px;
  padding: 7px 10px;
  border: 1px solid #aa8b7b;
  border-radius: 0;
  color: var(--ink);
  background: #fffbf2;
}
#rsvp-form fieldset { min-width: 0; margin: 0 0 9px; padding: 10px 11px 7px; border: 1px solid #ba9e8b; }
.event-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; }
.event-options label { display: flex; align-items: center; gap: 7px; min-height: 34px; font-size: .97rem; cursor: pointer; }
.event-options input { width: 17px; height: 17px; flex: none; accent-color: var(--burgundy); }
.rsvp-result { margin-top: 12px; color: var(--burgundy); }
#rsvp-whatsapp { margin-top: 13px; }
.no-script {
  position: fixed;
  z-index: 55;
  right: 14px;
  bottom: 16px;
  left: 14px;
  padding: 14px;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
}

@media (max-width: 800px) {
  :root { --header-height: 61px; }
  .gate-brand { inset: max(24px, env(safe-area-inset-top)) auto auto 7vw; font-size: .85rem; }
  .gate-skip { right: 7vw; bottom: max(19px, env(safe-area-inset-bottom)); }
  .gate-intro h1 { font-size: clamp(2.45rem, 8.8vw, 4.2rem); }
  .gate-hint { margin-top: 19px; }
  .wax-seal { font-size: clamp(1.19rem, 4vw, 1.65rem); }
  .card-couple { font-size: clamp(1.8rem, 7vw, 3rem); }
  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .menu-lines { width: 16px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 5px 6vw 14px;
    border-bottom: 1px solid var(--line);
    background: #f9f4e8;
    box-shadow: 0 12px 28px #29171924;
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px 0; font-size: .99rem; }
  .site-nav .nav-rsvp { padding: 12px 0; border: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 37px; width: min(85vw, 540px); padding: 51px 0 50px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(4.2rem, 14.3vw, 7.3rem); }
  .hero-scroll { margin-top: 20px; }
  .hero-portrait { margin-right: 10px; }
  .portrait-window { height: min(105vw, 515px); }
  .portrait-window, .hero-portrait::before { border-top-right-radius: 33vw; }
  .story-chapter, .story-chapter:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .story-chapter:nth-child(even) .story-art { order: 0; }
  .story-photo { height: clamp(235px, 64vw, 435px); }
  .story-copy { width: 100%; }
  .event, .event:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .event:nth-child(even) .event-image { order: 0; }
  .event-image { min-height: clamp(248px, 63vw, 486px); }
  .event-list { gap: 22px; }
}
@media (max-width: 400px) {
  .gate-intro h1 { font-size: clamp(2.3rem, 9.65vw, 3.3rem); }
  .gate-hint { margin-top: 14px; }
  .hero h1 { font-size: clamp(3.7rem, 15vw, 4.45rem); }
  .date-section { padding-inline: 17px; }
  .countdown small { font-size: .66rem; }
  .countdown span { font-size: 1.85rem; }
}
@media (max-height: 620px) {
  .gate-stationery { width: min(100%, 420px, 64svh); }
  .gate-intro h1 { font-size: clamp(2.3rem, 7svh, 3.55rem); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .petals, .scratch-sparkles { display: none; }
  .motion-ready [data-reveal]:not([data-photo-scene], .is-visible, :focus-within) { opacity: 1; transform: none; filter: none; }
  [data-parallax] { transform: none; }
}
