:root {
  --ivory: #fff9f0;
  --paper: #f7eee9;
  --blush: #f2d7df;
  --rose: #d8a0ad;
  --plum: #513849;
  --plum-soft: #755765;
  --champagne: #b28b49;
  --emerald: #9d7ca6;
  --ink-muted: #846f77;
  --line: rgba(81, 56, 73, 0.18);
  --line-light: rgba(255, 249, 240, 0.25);
  --shadow: rgba(81, 56, 73, 0.14);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", Arial, sans-serif;
  --page-pad: clamp(1.25rem, 4vw, 5rem);
  --content-width: 1220px;
  --radius-sm: 0.35rem;
  --radius-md: 1.15rem;
  --radius-lg: 2.2rem;
  color: var(--plum);
  background: var(--ivory);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; overscroll-behavior-x: none; scroll-behavior: smooth; }

body {
  overscroll-behavior-x: none;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--plum);
}

body::before {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }

main { min-width: 0; overflow-x: hidden; overflow-x: clip; }

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

button, a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; font: inherit; }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
}

::selection {
  background: var(--rose);
  color: var(--plum);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--plum);
  color: var(--ivory);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--champagne);
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--page-pad);
  border-bottom: 1px solid transparent;
  transition: padding 240ms ease, background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-color: var(--line);
  background: rgba(255, 249, 240, 0.91);
  box-shadow: 0 0.6rem 2rem rgba(81, 56, 73, 0.05);
  backdrop-filter: blur(16px);
}

.wordmark,
.header-actions,
.site-nav,
.hero-actions,
.hero-meta,
.event-card-top,
.detail-panel-heading,
.color-notes,
.footer-top,
.footer-wordmark { display: flex; align-items: center; }

.wordmark { gap: 0.7rem; min-width: 0; }
.uridots-logo { display: block; width: clamp(7rem, 12vw, 9.2rem); height: auto; }

.wordmark-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--plum);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.footer-wordmark { flex-direction: column; align-items: flex-start; }

.wordmark-copy strong { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; }

.wordmark-copy small,
.footer-wordmark small { color: var(--ink-muted); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; }

.site-nav { gap: clamp(1rem, 2.8vw, 2.8rem); margin-left: auto; margin-right: clamp(1.5rem, 4vw, 4.2rem); }

.site-nav a {
  position: relative;
  color: var(--plum-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--champagne);
  content: "";
  transition: transform 200ms ease;
}

.site-nav a:hover { color: var(--plum); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-nav .nav-rsvp {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--plum);
  border-radius: 99px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav .nav-rsvp::after { display: none; }
.site-nav .nav-rsvp:hover { background: var(--plum); color: var(--ivory); transform: translateY(-1px); }

.header-actions { gap: 1.1rem; }

.sound-toggle,
.menu-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.3rem 0;
  color: var(--plum-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sound-icon { display: inline-grid; width: 1.2rem; height: 1.2rem; place-items: center; }
.sound-icon svg { width: 100%; height: 100%; }
.sound-wave { opacity: 0; transition: opacity 180ms ease; }
.sound-wave-one { opacity: 0.6; }
.sound-toggle.is-playing .sound-wave { opacity: 1; }

.menu-toggle { display: none; width: 2rem; padding: 0.4rem 0; }
.menu-toggle span { display: block; width: 100%; height: 1px; margin: 0.3rem 0; background: var(--plum); transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle.is-open span:first-child { transform: translateY(0.2rem) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-0.2rem) rotate(-45deg); }

.hero {
  position: relative;
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(7.5rem, 12vw, 10rem) var(--page-pad) clamp(4rem, 8vw, 7rem);
}

.hero-content { position: relative; z-index: 2; max-width: 36rem; }

.hero-eyebrow { margin-bottom: 2.3rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-rule { display: inline-block; width: 2.5rem; height: 1px; background: var(--champagne); }

.hero-event-label {
  margin: 0 0 0.3rem;
  color: var(--plum-soft);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  font-style: italic;
  font-weight: 500;
}

.hero h1,
.story-section h2,
.section-heading h2,
.detail-panel h2,
.countdown-content h2,
.gallery-heading h2,
.rsvp-content h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.83;
  text-wrap: balance;
}

.hero h1 { max-width: 7ch; font-size: clamp(5.5rem, 13vw, 11.5rem); }
.hero h1 em,
h2 em { color: var(--rose); font-style: italic; }

.hero-surname {
  margin: 0.9rem 0 0;
  color: var(--plum-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero-copy { max-width: 31rem; margin: 2.1rem 0 0; color: var(--ink-muted); font-size: 0.92rem; line-height: 1.85; }

.hero-actions { flex-wrap: wrap; gap: 1.35rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.1rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button span { font-size: 1rem; font-weight: 400; line-height: 0; }
.ui-icon { display: inline-block; flex: 0 0 auto; width: 1rem; height: 1rem; vertical-align: middle; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(-1px) scale(0.98); }
.button-dark { background: var(--plum); color: var(--ivory); box-shadow: 0 0.9rem 1.8rem rgba(81, 56, 73, 0.12); }
.button-dark:hover { background: var(--plum-soft); }
.button-light { border-color: var(--champagne); background: var(--ivory); color: var(--plum); }
.button-light:hover { border-color: var(--ivory); background: transparent; color: var(--ivory); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--champagne);
  color: var(--plum-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: gap 180ms ease, color 180ms ease;
}

.text-link:hover { gap: 0.85rem; color: var(--plum); }

.hero-meta { flex-wrap: wrap; gap: 0; margin-top: 5rem; color: var(--ink-muted); font-size: 0.61rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-meta span + span::before { margin: 0 0.65rem; color: var(--champagne); content: "·"; }

.hero-visual { position: relative; min-height: min(43rem, 74vh); }

.hero-portrait {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(74%, 33rem);
  margin: 0;
  transform: translate(-50%, calc(-50% - var(--hero-shift, 0rem))) scale(var(--hero-scale, 1));
  transform-origin: center center;
  transition: transform 80ms linear;
}

.hero-portrait::before,
.hero-portrait::after {
  position: absolute;
  z-index: -1;
  border: 1px solid var(--champagne);
  content: "";
}

.hero-portrait::before { inset: 1.2rem -1.1rem -1.15rem 1.2rem; border-radius: 48% 48% 0.3rem 0.3rem; opacity: 0.72; }
.hero-portrait::after { inset: -0.7rem 1.4rem 1.15rem -1.1rem; border-color: var(--rose); border-radius: 48% 48% 0.3rem 0.3rem; opacity: 0.52; }

.hero-portrait-inner { aspect-ratio: 4 / 5.35; overflow: hidden; border-radius: 50% 50% 0.45rem 0.45rem; background: var(--paper); box-shadow: 0 2rem 4.5rem var(--shadow); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(0.9) sepia(0.07); transform: scale(1.03); }
.hero-portrait figcaption { display: flex; justify-content: space-between; padding-top: 0.9rem; color: var(--ink-muted); font-size: 0.57rem; letter-spacing: 0.14em; text-transform: uppercase; }

.hero-stamp { position: absolute; z-index: 2; right: 3%; bottom: 18%; display: grid; width: 8.25rem; height: 8.25rem; place-content: center; transform: rotate(10deg); border: 1px solid var(--champagne); border-radius: 50%; background: rgba(255, 249, 240, 0.76); text-align: center; box-shadow: 0 0.8rem 2rem rgba(81, 56, 73, 0.05); }
.hero-stamp span { display: block; font-family: var(--display); font-size: 3rem; line-height: 0.8; }
.hero-stamp small { margin-top: 0.6rem; color: var(--plum-soft); font-size: 0.48rem; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }

.hero-scroll-note { position: absolute; right: 0; bottom: 5%; display: flex; align-items: center; gap: 0.55rem; color: var(--ink-muted); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-note-line { width: 1px; height: 2.5rem; background: var(--champagne); }

.hero-orbit { position: absolute; border: 1px solid var(--rose); border-radius: 50%; pointer-events: none; }
.hero-orbit-one { top: 12%; right: -9%; width: 32rem; height: 32rem; opacity: 0.22; }
.hero-orbit-two { right: 5%; bottom: 4%; width: 12rem; height: 12rem; border-color: var(--champagne); opacity: 0.42; }

.page-frame { position: fixed; z-index: 2; inset: clamp(0.75rem, 2vw, 1.5rem); border: 1px solid rgba(178, 139, 73, 0.32); pointer-events: none; }
.floral-ornament { position: absolute; z-index: 0; width: clamp(14rem, 25vw, 22rem); pointer-events: none; animation: floral-sway 8s ease-in-out infinite alternate; }
.floral-ornament img { display: block; width: 100%; height: auto; }
.floral-ornament-hero { --floral-rotate: 2deg; top: 1.8rem; right: -3.4rem; opacity: 0.72; }
.floral-ornament-story { --floral-rotate: -28deg; right: -3.6rem; bottom: -5.3rem; width: clamp(12rem, 20vw, 18rem); opacity: 0.28; }
@keyframes floral-sway { from { transform: translate3d(0, 0, 0) rotate(var(--floral-rotate, 0deg)); } to { transform: translate3d(0, 0.65rem, 0) rotate(calc(var(--floral-rotate, 0deg) + 1deg)); } }

.section { position: relative; max-width: var(--content-width); margin: 0 auto; padding: clamp(6rem, 12vw, 12rem) var(--page-pad); }

.section-rail { position: absolute; top: clamp(6.5rem, 12vw, 12.5rem); left: var(--page-pad); display: flex; align-items: center; gap: 0.75rem; color: var(--ink-muted); transform: rotate(-90deg) translateX(-100%); transform-origin: top left; }
.section-index { color: var(--champagne); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; }
.section-label { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }

.story-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.82fr); gap: clamp(3rem, 11vw, 12rem); max-width: 58rem; margin: 0 auto; }
.story-heading { padding-top: 1rem; }
.story-heading h2 { max-width: 8ch; margin-top: 1.5rem; font-size: clamp(4rem, 8.3vw, 8.1rem); }
.story-copy { max-width: 31rem; padding-top: 5rem; }
.story-copy p { margin: 0; color: var(--ink-muted); font-size: 0.9rem; line-height: 1.9; }
.story-copy .story-lead { margin-bottom: 1.45rem; color: var(--plum-soft); font-family: var(--display); font-size: clamp(1.55rem, 2.6vw, 2.35rem); line-height: 1.04; }
.family-list { display: grid; gap: 1.4rem; margin-top: 3.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.family-group { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1rem; }
.family-label { color: var(--ink-muted); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.13em; line-height: 1.5; text-transform: uppercase; }
.family-group p { color: var(--plum); font-family: var(--display); font-size: 1.2rem; line-height: 1.1; }

.interlude { position: relative; min-height: min(70vh, 45rem); overflow: hidden; background: var(--plum); }
.interlude-image { position: absolute; inset: -9% 0; }
.interlude-image::after { position: absolute; inset: 0; background: rgba(81, 56, 73, 0.52); content: ""; }
.interlude-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; filter: saturate(0.75) sepia(0.1); transform: translateY(var(--image-shift, 0%)) scale(1.08); }
.interlude-copy { position: relative; z-index: 1; display: grid; min-height: min(70vh, 45rem); place-content: center; padding: 2rem; color: var(--ivory); text-align: center; }
.interlude-mark { display: block; margin-bottom: 1rem; color: var(--champagne); font-size: 1.1rem; }
.interlude-copy p { margin: 0; font-family: var(--display); font-size: clamp(4rem, 9vw, 9rem); letter-spacing: -0.06em; line-height: 0.78; }
.interlude-copy em { color: var(--rose); }

.agenda-section { padding-top: clamp(7rem, 13vw, 13rem); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: 59rem; margin: 0 auto 4.5rem; }
.section-heading > :first-child { align-self: flex-start; }
.section-heading h2 { font-size: clamp(4rem, 8vw, 8rem); }
.date-lockup { display: grid; min-width: 5.8rem; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; column-gap: 0.35rem; color: var(--plum-soft); }
.date-lockup span:first-child { grid-row: 1 / span 2; font-family: var(--display); font-size: 4.3rem; letter-spacing: -0.08em; line-height: 0.75; }
.date-lockup span:nth-child(2), .date-lockup span:nth-child(3) { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 59rem; margin: 0 auto; }
.event-card { position: relative; min-height: 35rem; padding: clamp(1.8rem, 4vw, 3.4rem); overflow: hidden; border-radius: var(--radius-lg); }
.event-card-ceremony { background: var(--rose); }
.event-card-reception { background: var(--plum); color: var(--ivory); }
.event-card::before { position: absolute; right: -7rem; bottom: -10rem; width: 19rem; height: 19rem; border: 1px solid currentColor; border-radius: 50%; opacity: 0.18; content: ""; }
.event-card-top { justify-content: space-between; color: inherit; }
.event-number, .event-type { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.event-number { color: var(--champagne); }
.event-icon { width: 3rem; margin: 4.2rem 0 2rem; color: currentColor; }
.event-icon svg { width: 100%; height: auto; }
.event-time { margin: 0; font-family: var(--display); font-size: clamp(3.5rem, 5vw, 5.5rem); letter-spacing: -0.06em; line-height: 0.78; }
.event-time small { font-family: var(--body); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.15em; }
.event-card h3 { margin: 2rem 0 0.45rem; font-family: var(--display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; line-height: 0.9; }
.event-place { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; }
.event-address { max-width: 27rem; margin: 1rem 0 1.8rem; color: var(--ink-muted); font-size: 0.72rem; line-height: 1.7; }
.event-card-reception .event-address { color: rgba(255, 249, 240, 0.64); }
.event-link { display: inline-flex; align-items: center; gap: 0.65rem; padding-bottom: 0.35rem; border-bottom: 1px solid currentColor; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; transition: gap 180ms ease, color 180ms ease; }
.event-link:hover { gap: 0.95rem; color: var(--champagne); }

.details-section { padding-top: clamp(5rem, 9vw, 9rem); }
.details-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.25rem; max-width: 59rem; margin: 0 auto; }
.detail-panel { min-height: 37rem; padding: clamp(1.8rem, 4vw, 3.6rem); border-radius: var(--radius-lg); }
.dress-panel { display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); }
.gift-panel { background: var(--blush); }
.detail-panel-heading { gap: 0.7rem; }
.detail-symbol { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border: 1px solid var(--champagne); border-radius: 50%; color: var(--champagne); font-size: 0.8rem; }
.detail-panel h2 { margin-top: 4rem; font-size: clamp(3.8rem, 6vw, 6.4rem); }
.detail-panel > p:not(.dress-code) { max-width: 28rem; margin: 2rem 0 0; color: var(--plum-soft); font-size: 0.82rem; line-height: 1.8; }
.dress-code { margin: 1.5rem 0 0; color: var(--emerald); font-family: var(--display); font-size: clamp(2.8rem, 5vw, 4.8rem); font-style: italic; line-height: 0.8; }
.color-notes { flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-top: 2.2rem; color: var(--ink-muted); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.color-notes span { display: inline-flex; align-items: center; gap: 0.45rem; }
.swatch { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; }
.swatch-emerald { background: var(--emerald); }
.swatch-rose { background: var(--rose); }
.gift-options { display: grid; gap: 1rem; margin-top: 3rem; }
.gift-options > div { display: grid; grid-template-columns: 2rem 1fr; column-gap: 0.7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.gift-options span { color: var(--champagne); font-size: 0.6rem; font-weight: 700; }
.gift-options strong { font-family: var(--display); font-size: 1.55rem; font-weight: 500; line-height: 0.9; }
.gift-options small { grid-column: 2; margin-top: 0.35rem; color: var(--ink-muted); font-size: 0.66rem; line-height: 1.6; }

.countdown-section { display: grid; min-height: 44rem; place-items: center; overflow: hidden; background: var(--plum); color: var(--ivory); }
.countdown-backdrop { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); color: rgba(216, 160, 173, 0.11); font-family: var(--display); font-size: min(68vw, 48rem); line-height: 0.7; pointer-events: none; }
.countdown-content { position: relative; z-index: 1; width: min(100%, 51rem); text-align: center; }
.countdown-content .eyebrow { justify-content: center; color: rgba(255, 249, 240, 0.6); }
.eyebrow-light::before, .eyebrow-light::after { width: 2.5rem; height: 1px; background: var(--champagne); content: ""; }
.countdown-content h2 { margin-top: 1.5rem; font-size: clamp(4rem, 8vw, 8rem); }
.countdown-content h2 em { color: var(--rose); }
.countdown-status { margin: 2.3rem auto 0; color: rgba(255, 249, 240, 0.62); font-size: 0.78rem; line-height: 1.6; }
.countdown-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; max-width: 42rem; margin: 4rem auto 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.countdown-grid > div { padding: 1.2rem 0.5rem 1.1rem; }
.countdown-grid > div + div { border-left: 1px solid var(--line-light); }
.countdown-grid strong { display: block; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 500; line-height: 0.9; }
.countdown-grid span { display: block; margin-top: 0.65rem; color: var(--champagne); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.countdown-section.is-past .countdown-grid strong { color: var(--rose); }

.gallery-section { padding-top: clamp(7rem, 12vw, 12rem); }
.gallery-heading { display: block; max-width: 59rem; margin-bottom: 4rem; }
.gallery-heading h2 { margin-top: 1.5rem; font-size: clamp(4rem, 8vw, 8rem); }
.gallery-heading > p:last-child { max-width: 24rem; margin: 2rem 0 0 auto; color: var(--ink-muted); font-size: 0.8rem; line-height: 1.8; }
.gallery-grid { display: grid; max-width: 59rem; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 5.2rem; gap: 0.8rem; margin: 0 auto; }
.gallery-item { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; }
.gallery-item::after { position: absolute; inset: 0; background: rgba(81, 56, 73, 0.2); content: ""; opacity: 0; transition: opacity 220ms ease; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88) sepia(0.04); transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 220ms ease; }
.gallery-item:hover img { filter: saturate(1) sepia(0); transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item-index { position: absolute; z-index: 1; top: 0.7rem; right: 0.75rem; color: var(--ivory); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; opacity: 0; transition: opacity 220ms ease; }
.gallery-item:hover .gallery-item-index { opacity: 1; }
.gallery-item-tall { grid-column: 1 / span 4; grid-row: 1 / span 6; }
.gallery-item-wide { grid-column: 5 / span 8; grid-row: 1 / span 4; }
.gallery-item-square { grid-column: 5 / span 4; grid-row: 5 / span 4; }
.gallery-item-small { grid-column: 9 / span 4; grid-row: 5 / span 3; }
.gallery-item-medium { grid-column: 1 / span 5; grid-row: 7 / span 4; }
.gallery-item-landscape { grid-column: 6 / span 7; grid-row: 9 / span 4; }

.rsvp-section { position: relative; display: grid; min-height: 42rem; place-items: center; overflow: hidden; padding: 6rem var(--page-pad); background: var(--plum); color: var(--ivory); }
.rsvp-content { position: relative; z-index: 1; width: min(100%, 45rem); text-align: center; }
.rsvp-content .eyebrow { justify-content: center; color: rgba(255, 249, 240, 0.6); }
.rsvp-content h2 { margin-top: 1.7rem; font-size: clamp(4.4rem, 9vw, 9rem); }
.rsvp-content h2 em { color: var(--rose); }
.rsvp-content > p:not(.eyebrow) { max-width: 27rem; margin: 2rem auto 2.5rem; color: rgba(255, 249, 240, 0.68); font-size: 0.82rem; line-height: 1.8; }
.rsvp-orbit { position: absolute; top: 50%; left: 50%; width: min(68vw, 46rem); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid rgba(178, 139, 73, 0.44); border-radius: 50%; }
.rsvp-orbit::before, .rsvp-orbit::after { position: absolute; inset: 8%; border: 1px solid rgba(216, 160, 173, 0.2); border-radius: 50%; content: ""; }
.rsvp-orbit::after { inset: 19%; }
.rsvp-mark { position: absolute; right: 7%; bottom: 7%; display: grid; gap: 0.4rem; color: var(--champagne); text-align: center; }
.rsvp-mark span { font-family: var(--display); font-size: 3.2rem; line-height: 0.8; }
.rsvp-mark small { color: rgba(255, 249, 240, 0.52); font-size: 0.52rem; letter-spacing: 0.15em; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 2rem; padding: 2.4rem var(--page-pad); background: var(--ivory); }
.footer-wordmark { gap: 0.2rem; }
.footer-wordmark .uridots-logo { width: min(9.2rem, 32vw); }
.site-footer p { margin: 0; color: var(--ink-muted); font-size: 0.65rem; line-height: 1.5; }
.footer-top { justify-content: flex-end; gap: 0.7rem; color: var(--plum-soft); font-size: 0.61rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-top .ui-icon { color: var(--champagne); }

.back-to-top { position: fixed; z-index: 30; right: 1.25rem; bottom: 1.25rem; display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid var(--plum); border-radius: 50%; background: var(--ivory); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(0.8rem); transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease; }
.back-to-top .ui-icon { width: 1.1rem; height: 1.1rem; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--plum); color: var(--ivory); }

.reveal { opacity: 0; filter: blur(4px); transform: translate3d(0, 2rem, 0); transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1), transform 760ms cubic-bezier(0.22, 1, 0.36, 1), filter 760ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal[data-reveal="left"] { transform: translate3d(-2.5rem, 0, 0); }
.reveal[data-reveal="right"] { transform: translate3d(2.5rem, 0, 0); }
.reveal[data-reveal="scale"] { transform: scale(0.95); }
.reveal.is-visible { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }

.lightbox { width: min(100vw, 100%); height: min(100vh, 100%); max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(81, 56, 73, 0.96); color: var(--ivory); }
.lightbox::backdrop { background: rgba(81, 56, 73, 0.96); }
.lightbox-shell { position: relative; display: grid; width: 100%; height: 100%; grid-template-columns: 4rem minmax(0, 1fr) 4rem; align-items: center; gap: 1rem; padding: clamp(2rem, 5vw, 4rem); }
.lightbox-close, .lightbox-nav { display: grid; place-items: center; border: 1px solid rgba(255, 249, 240, 0.35); border-radius: 50%; background: transparent; color: var(--ivory); cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.lightbox-close { position: absolute; z-index: 1; top: 1.25rem; right: 1.25rem; width: 2.6rem; height: 2.6rem; font-size: 1.6rem; font-weight: 300; line-height: 1; }
.lightbox-nav { width: 3rem; height: 3rem; font-size: 1.2rem; }
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--champagne); background: rgba(255, 249, 240, 0.13); transform: scale(1.06); }
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }
.lightbox-figure { position: relative; display: grid; height: 100%; min-width: 0; grid-column: 2; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; margin: 0; }
.lightbox-figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-figure figcaption { display: flex; justify-content: space-between; gap: 1rem; color: rgba(255, 249, 240, 0.65); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 0.88fr) minmax(290px, 1.12fr); gap: 3rem; }
  .hero-portrait { width: min(82%, 30rem); }
  .hero-stamp { right: -2%; }
  .section-rail { left: 1.3rem; }
  .story-grid, .section-heading, .events-grid, .details-grid, .gallery-heading { max-width: 52rem; }
  .gallery-item-tall { grid-column: 1 / span 5; }
  .gallery-item-wide { grid-column: 6 / span 7; }
  .gallery-item-square { grid-column: 6 / span 4; }
  .gallery-item-small { grid-column: 10 / span 3; }
  .gallery-item-medium { grid-column: 1 / span 6; }
  .gallery-item-landscape { grid-column: 7 / span 6; }
}

@media (max-width: 760px) {
  .site-header { padding-top: 1rem; padding-bottom: 1rem; }
  .site-header.is-scrolled { padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: grid; gap: 0; margin: 0; padding: 0.7rem var(--page-pad) 1.1rem; border-bottom: 1px solid var(--line); background: rgba(255, 249, 240, 0.97); box-shadow: 0 1rem 2rem rgba(81, 56, 73, 0.06); opacity: 0; pointer-events: none; transform: translateY(-0.5rem); transition: opacity 180ms ease, transform 180ms ease; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { padding: 0.7rem 0; }
  .site-nav a::after { display: none; }
  .site-nav .nav-rsvp { width: fit-content; margin-top: 0.35rem; }
  .menu-toggle { display: block; }
  .hero { display: flex; width: 100%; min-height: auto; flex-direction: column; align-items: stretch; gap: 3.5rem; overflow: hidden; padding-top: 7.5rem; }
  .hero-visual { order: 1; width: 100%; min-width: 0; min-height: 30rem; overflow: hidden; }
  .hero-content { order: 2; min-width: 0; max-width: 31rem; }
  .hero-portrait { width: min(78%, 22rem); }
  .hero-stamp { right: 3%; bottom: 12%; width: 6.7rem; height: 6.7rem; }
  .hero-stamp span { font-size: 2.45rem; }
  .hero-scroll-note { right: 0; bottom: 4%; }
  .hero h1 { max-width: 100%; font-size: clamp(4.4rem, 19vw, 7rem); overflow-wrap: break-word; }
  .hero-meta { margin-top: 3rem; }
  .hero-orbit-one { top: 8%; right: -45%; width: 28rem; height: 28rem; }
  .page-frame { inset: 0.55rem; }
  .floral-ornament-hero { top: 3.8rem; right: -4.6rem; width: 13rem; opacity: 0.52; }
  .floral-ornament-story { right: auto; bottom: -3rem; left: -4.4rem; width: 11rem; opacity: 0.24; }
  .hero-orbit-two { right: 4%; bottom: 0; }
  .section { padding-top: 6.5rem; padding-bottom: 6.5rem; }
  .section-rail { position: relative; top: auto; left: auto; margin-bottom: 2.4rem; transform: none; }
  .story-grid, .details-grid { display: block; }
  .story-heading h2, .section-heading h2 { max-width: 8.5ch; }
  .story-copy { padding-top: 3rem; }
  .family-group { grid-template-columns: 1fr; gap: 0.55rem; }
  .family-group p { margin-top: 0; }
  .interlude, .interlude-copy { min-height: 28rem; }
  .interlude-copy p { font-size: clamp(4rem, 17vw, 6rem); }
  .section-heading { display: block; margin-bottom: 3rem; }
  .date-lockup { margin-top: 2.3rem; }
  .events-grid { display: block; }
  .event-card + .event-card { margin-top: 1.25rem; }
  .event-card { min-height: 31rem; }
  .event-icon { margin-top: 3rem; }
  .details-section { padding-top: 1rem; }
  .detail-panel + .detail-panel { margin-top: 1.25rem; }
  .detail-panel { min-height: 30rem; }
  .detail-panel h2 { margin-top: 3rem; }
  .countdown-section { min-height: 36rem; }
  .countdown-grid { margin-top: 3rem; }
  .countdown-grid > div { padding-left: 0.1rem; padding-right: 0.1rem; }
  .countdown-grid strong { font-size: clamp(2rem, 10vw, 3.2rem); }
  .countdown-grid span { font-size: 0.47rem; letter-spacing: 0.08em; }
  .gallery-heading > p:last-child { margin-left: 0; }
  .gallery-grid { grid-auto-rows: 4rem; gap: 0.5rem; }
  .gallery-item-tall { grid-column: 1 / span 7; grid-row: 1 / span 6; }
  .gallery-item-wide { grid-column: 8 / span 5; grid-row: 1 / span 4; }
  .gallery-item-square { grid-column: 8 / span 5; grid-row: 5 / span 4; }
  .gallery-item-small { grid-column: 1 / span 5; grid-row: 7 / span 4; }
  .gallery-item-medium { grid-column: 6 / span 7; grid-row: 9 / span 4; }
  .gallery-item-landscape { grid-column: 1 / span 12; grid-row: 13 / span 4; }
  .rsvp-section { min-height: 36rem; }
  .rsvp-orbit { width: 100vw; }
  .rsvp-mark { right: 1.3rem; bottom: 1.5rem; }
  .site-footer { grid-template-columns: 1fr auto; min-width: 0; }
  .site-footer p { display: none; }
  .lightbox-shell { grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem; gap: 0.5rem; padding: 3.5rem 0.8rem 2rem; }
  .lightbox-nav { width: 2.3rem; height: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .hero-portrait { transform: translate(-50%, -50%) scale(1) !important; }
  .interlude-image img { transform: scale(1.08) !important; }
  .reveal { opacity: 1 !important; filter: none !important; transform: none !important; }
  .floral-ornament { animation: none !important; }
}
