:root {
  --paper: #faf7f2;
  --paper-deep: #f2eade;
  --sand: #e8d8c3;
  --rose: #b89583;
  --ink: #2b2927;
  --ink-soft: #6f6862;
  --white: #fffdf9;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --shadow-soft: 0 24px 60px rgba(55, 42, 34, 0.14);
  --content: min(100% - 40px, 1120px);
  --section-space: clamp(96px, 18vw, 190px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

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

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

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.section {
  position: relative;
  padding-block: var(--section-space);
}

.kicker,
.eyebrow {
  margin-bottom: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-heading {
  width: var(--content);
  margin: 0 auto 76px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(3.55rem, 16vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
}

.section-heading h2 em {
  color: var(--rose);
  font-weight: 400;
}

.section-heading--center {
  max-width: 780px;
  text-align: center;
}

.section-heading--center > p:last-child {
  max-width: 510px;
  margin: 28px auto 0;
  color: var(--ink-soft);
}

.opening {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  background: var(--paper);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.js .opening {
  display: grid;
}

.opening::after {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(43, 41, 39, 0.14);
  border-radius: 180px 180px 36px 36px;
  content: "";
}

.opening__seal {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 1px solid var(--rose);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 2rem;
}

.opening__seal span {
  margin-inline: 2px;
  color: var(--rose);
  font-style: italic;
}

.opening p {
  margin: 20px 0 0;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.opening.is-open {
  visibility: hidden;
  opacity: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #e9ded2;
  color: var(--ink);
}

.hero__photo,
.hero__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero__photo img {
  object-position: calc(50% + var(--hero-x, 0%)) calc(54% + var(--hero-y, 0%) + var(--hero-scroll, 0%));
  filter: saturate(0.9) sepia(0.025) contrast(0.97) brightness(0.98);
  animation: hero-breathe 18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__veil {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(250, 247, 242, 0.32) 0%, rgba(250, 247, 242, 0.04) 45%, rgba(43, 41, 39, 0.13) 100%),
    radial-gradient(circle at 50% 27%, rgba(255, 253, 249, 0.7), transparent 42%);
}

.hero__orbit-set {
  position: absolute;
  z-index: 0;
  top: 66%;
  left: 50%;
  width: min(132vw, 780px);
  aspect-ratio: 1.8;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-9deg);
  filter: drop-shadow(0 0 16px rgba(255, 248, 228, 0.75));
}

.hero__orbit-set span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 253, 247, 0.58);
  border-radius: 50%;
  animation: orbit-turn 16s linear infinite;
}

.hero__orbit-set span:nth-child(2) {
  inset: 13% -4%;
  border-color: rgba(184, 149, 131, 0.42);
  animation-direction: reverse;
  animation-duration: 21s;
}

.hero__orbit-set span:nth-child(3) {
  inset: 29% 8%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.4);
  animation-duration: 27s;
}

.hero__light-trace {
  position: absolute;
  z-index: 1;
  top: -35%;
  left: -45%;
  width: 42%;
  height: 175%;
  pointer-events: none;
  opacity: 0.38;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  filter: blur(18px);
  transform: rotate(18deg);
  animation: hero-light-pass 8s 1.8s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  text-align: center;
  transform: translateY(-8vh);
  animation: hero-copy-in 1.35s 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .eyebrow {
  margin-bottom: clamp(34px, 8vh, 76px);
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.66);
}

.hero h1 {
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(4rem, 18vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.7;
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.72);
}

.hero h1 span {
  display: block;
}

.hero h1 i {
  display: block;
  margin: 0.22em 0 0.15em;
  color: #946d59;
  font-size: 0.54em;
  font-weight: 400;
}

.hero__date {
  margin-bottom: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: inherit;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  z-index: 3;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 26px;
  overflow: hidden;
  background: rgba(43, 41, 39, 0.28);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  background: var(--ink);
  content: "";
  animation: scroll-line 2.2s ease-in-out infinite;
}

.story {
  overflow: hidden;
}

.story::before {
  position: absolute;
  z-index: 0;
  top: 210px;
  left: 18px;
  width: 1px;
  height: calc(100% - 380px);
  background: linear-gradient(var(--sand), transparent);
  content: "";
}

.story-chapter {
  position: relative;
  width: var(--content);
  max-width: 720px;
  margin: 0 auto 150px;
}

.chapter-copy {
  position: relative;
  z-index: 3;
  margin-bottom: 42px;
  text-align: center;
}

.chapter-copy h3 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(3.8rem, 17vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.photo-stack {
  position: relative;
  max-width: 620px;
  min-height: 570px;
  margin-inline: auto;
}

.album-photo,
.portrait-arch {
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow-soft);
}

.album-photo {
  position: absolute;
  z-index: 2;
  width: 61%;
  margin: 0;
  padding: 9px 9px 46px;
  background: #fffaf2;
  border-radius: 18px 18px 30px 18px;
}

.album-photo picture {
  display: block;
  height: 365px;
  overflow: hidden;
  border-radius: 12px 12px 20px 12px;
}

.album-photo img,
.portrait-arch img {
  filter: saturate(0.82) sepia(0.05) contrast(0.97);
}

.album-photo figcaption {
  position: absolute;
  right: 15px;
  bottom: 13px;
  left: 15px;
  margin: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-style: italic;
  text-align: center;
}

.js .story-chapter .album-photo,
.js .story-chapter .portrait-arch {
  opacity: 0;
  clip-path: inset(0 0 100% 0 round 24px);
  transition: opacity 0.9s ease, clip-path 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .story-chapter.is-visible .album-photo,
.js .story-chapter.is-visible .portrait-arch {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 24px);
}

.js .story-chapter.is-visible .album-photo {
  transition-delay: 0.15s;
}

.js .story-chapter.is-visible .portrait-arch {
  transition-delay: 0.55s;
}

.album-photo--child {
  top: 0;
  left: -8px;
  transform: rotate(-3deg);
}

.album-photo--child img {
  object-position: 50% 48%;
}

.portrait-arch {
  position: absolute;
  top: 162px;
  right: -24px;
  width: 58%;
  height: 405px;
  border-radius: 180px 180px 26px 26px;
}

.portrait-arch--groom img {
  object-position: 54% center;
}

.album-photo--bride-child {
  top: 32px;
  right: -12px;
  transform: rotate(2.5deg);
}

.album-photo--bride-child picture {
  height: 345px;
}

.album-photo--bride-child img {
  object-position: 50% 46%;
}

.portrait-arch--bride {
  top: 138px;
  right: auto;
  left: -20px;
  width: 55%;
  height: 430px;
  border-radius: 34px 190px 190px 34px;
}

.portrait-arch--bride img {
  object-position: 48% center;
}

.meeting {
  position: relative;
  width: var(--content);
  max-width: 860px;
  margin: 30px auto 0;
  padding-top: 74px;
  text-align: center;
}

.meeting::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 48px;
  background: var(--rose);
  content: "";
}

.meeting__year {
  margin-bottom: 16px;
  color: var(--rose);
  font-family: var(--display);
  font-size: 6.6rem;
  line-height: 0.8;
}

.meeting__lead,
.meeting__closing {
  font-family: var(--display);
  font-size: clamp(2.1rem, 10vw, 4.8rem);
  line-height: 0.94;
}

.meeting__lead {
  margin-bottom: 26px;
}

.meeting__closing {
  margin-bottom: 0;
  color: var(--rose);
  font-style: italic;
}

.today {
  position: relative;
  width: var(--content);
  max-width: 900px;
  margin: 120px auto 0;
  padding: clamp(40px, 8vw, 72px) clamp(14px, 4vw, 46px) clamp(44px, 8vw, 68px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 220px 220px 42px 42px;
  background:
    radial-gradient(circle at 50% 28%, rgba(184, 149, 131, 0.22), transparent 42%),
    #24211f;
  color: var(--white);
  text-align: center;
}

.today__halo {
  position: absolute;
  z-index: 0;
  top: 42%;
  left: 50%;
  width: min(86%, 690px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 216, 195, 0.2);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 70px rgba(184, 149, 131, 0.14), inset 0 0 60px rgba(255, 255, 255, 0.035);
  transform: translate(-50%, -50%);
  animation: today-halo 7s ease-in-out infinite;
}

.today__photos {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  max-width: 760px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 4vw, 34px);
  align-items: center;
  margin-inline: auto;
  padding: 24px 0 34px;
}

.today__frame {
  position: relative;
  min-width: 0;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #171513;
  box-shadow:
    0 0 0 6px rgba(184, 149, 131, 0.1),
    0 26px 54px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(232, 216, 195, 0.08);
}

.today__frame--left {
  border-radius: 180px 28px 38px 20px;
  transform: translateY(18px);
}

.today__frame--right {
  border-radius: 28px 180px 20px 38px;
  transform: translateY(-18px);
}

.today__frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.today__frame img {
  filter: contrast(1.04) brightness(0.9);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.today__frame--left img {
  object-position: 50% 42%;
}

.today__frame--right img {
  object-position: 50% 50%;
}

.today__frame::after {
  position: absolute;
  inset: -45%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.24) 49%, transparent 56%);
  content: "";
  transform: translateX(-52%);
  animation: frame-light 8s ease-in-out infinite;
}

.today__frame--right::after {
  animation-delay: 1.3s;
}

.js .today .today__frame {
  opacity: 0;
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .today .today__frame--left {
  transform: translate3d(-24px, 40px, 0);
}

.js .today .today__frame--right {
  transform: translate3d(24px, -40px, 0);
}

.js .today.is-visible .today__frame {
  opacity: 1;
}

.js .today.is-visible .today__frame--left {
  transform: translateY(18px);
}

.js .today.is-visible .today__frame--right {
  transform: translateY(-18px);
}

.today__content {
  position: relative;
  z-index: 2;
  margin-top: 30px;
}

.today__content span {
  color: #e0c5b1;
  font-family: var(--display);
  font-size: 4.6rem;
}

.today__content p {
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 7.5vw, 2.5rem);
  line-height: 1.15;
}

.invitation {
  background: var(--sand);
}

.invitation__inner {
  width: var(--content);
  max-width: 680px;
  margin: auto;
  text-align: center;
}

.invitation__mark {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 48px;
  place-items: center;
  border: 1px solid rgba(43, 41, 39, 0.38);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.3rem;
}

.invitation h2 {
  margin-bottom: 40px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 15vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.86;
}

.invitation__inner > p:not(.invitation__mark) {
  max-width: 520px;
  margin-right: auto;
  margin-left: auto;
}

.invitation__signature {
  margin-top: 38px;
  margin-bottom: 0;
  color: var(--rose);
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-style: italic;
  line-height: 1;
}

.date-section {
  overflow: hidden;
}

.date-section::before {
  position: absolute;
  top: -90px;
  right: -140px;
  width: 310px;
  height: 310px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  content: "";
}

.date-card {
  width: var(--content);
  max-width: 820px;
  margin: auto;
  text-align: center;
}

.date-lockup {
  display: grid;
  justify-items: center;
  margin: 50px auto 18px;
  font-family: var(--display);
  line-height: 0.73;
}

.date-lockup__day {
  font-size: clamp(9rem, 44vw, 18rem);
  letter-spacing: -0.07em;
}

.date-lockup__month {
  position: relative;
  z-index: 1;
  margin-top: -0.05em;
  color: var(--rose);
  font-size: clamp(3.6rem, 18vw, 7.5rem);
  font-style: italic;
}

.date-lockup__year {
  margin-top: 0.25em;
  font-size: 2rem;
  letter-spacing: 0.28em;
}

.date-place {
  margin-bottom: 58px;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.countdown {
  padding-top: 30px;
  border-top: 1px solid var(--sand);
}

.countdown__label {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.countdown__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.countdown__values > div + div {
  border-left: 1px solid var(--sand);
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-family: var(--display);
  font-size: clamp(3rem, 14vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.countdown span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown.is-complete .countdown__values {
  display: none;
}

.countdown.is-complete .countdown__label {
  color: var(--rose);
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.schedule {
  background: var(--paper-deep);
}

.day-line {
  position: relative;
  width: var(--content);
  max-width: 750px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.day-line::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 15px;
  width: 1px;
  background: var(--rose);
  content: "";
}

.day-line__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  min-height: 150px;
  padding: 0 0 55px 55px;
}

.day-line__item::before {
  position: absolute;
  top: 10px;
  left: 9px;
  width: 13px;
  height: 13px;
  border: 4px solid var(--paper-deep);
  border-radius: 50%;
  outline: 1px solid var(--rose);
  background: var(--rose);
  content: "";
}

.day-line__item time {
  color: var(--rose);
  font-family: var(--display);
  font-size: clamp(2rem, 10vw, 2.6rem);
  line-height: 1;
}

.day-line__item h3 {
  margin-bottom: 9px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
}

.day-line__item p,
.day-line__item address {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: normal;
}

.day-line__item p + address {
  margin-top: 5px;
}

.venue {
  padding-inline: 20px;
}

.venue__shell {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: auto;
  padding: 76px 30px 62px;
  overflow: hidden;
  border-radius: 220px 220px 38px 38px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.venue__shell::before,
.venue__shell::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.venue__shell::before {
  top: -170px;
  left: -120px;
  width: 380px;
  height: 380px;
}

.venue__shell::after {
  right: -55px;
  bottom: -115px;
  width: 220px;
  height: 220px;
}

.venue__number {
  position: absolute;
  top: 34%;
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.04);
  font-family: var(--display);
  font-size: 17rem;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.venue h2 {
  position: relative;
  margin: 60px 0 30px;
  font-family: var(--display);
  font-size: clamp(4.2rem, 20vw, 8rem);
  font-weight: 400;
  line-height: 0.76;
}

.venue h2 em {
  color: #d9bda9;
  font-weight: 400;
}

.venue__entrance-note {
  position: relative;
  max-width: 360px;
  margin: -12px auto 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.5;
}

.venue address {
  position: relative;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.button--dark {
  border-color: rgba(255, 255, 255, 0.45);
}

.button--dark:hover {
  background: var(--white);
  color: var(--ink);
}

.note-section {
  display: grid;
  width: var(--content);
  max-width: 940px;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  margin: auto;
  border-top: 1px solid var(--sand);
}

.note-section + .note-section {
  margin-top: calc(var(--section-space) * -0.9);
}

.note-section__index {
  padding-top: 6px;
  color: var(--rose);
  font-family: var(--display);
  font-size: 1.25rem;
}

.note-section__content h2 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(4.1rem, 17vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.note-section__content > p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.rsvp {
  margin-top: 20px;
  background: var(--sand);
}

.rsvp .section-heading h2 {
  font-size: clamp(3.25rem, 14vw, 6.2rem);
}

.rsvp__paper {
  position: relative;
  width: var(--content);
  max-width: 780px;
  min-height: 520px;
  margin: auto;
  padding: clamp(32px, 8vw, 74px) clamp(22px, 8vw, 78px);
  border-radius: 180px 180px 34px 34px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(62, 48, 39, 0.11);
}

.rsvp-form {
  display: grid;
  gap: 42px;
}

.form-field label,
.form-group legend {
  display: block;
  margin-bottom: 13px;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
}

.legend-note {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.56em;
  font-weight: 400;
  white-space: nowrap;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(43, 41, 39, 0.3);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #908781;
  opacity: 1;
}

.form-field small,
.form-hint,
.privacy-note {
  display: block;
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  pointer-events: none;
  content: "";
  transform: translateY(-70%) rotate(45deg);
}

.select-wrap select {
  padding-right: 30px;
  appearance: none;
}

.form-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-hint {
  margin-top: -4px;
  margin-bottom: 14px;
}

.choice-grid {
  display: grid;
  gap: 4px;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border: 1px solid rgba(43, 41, 39, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.choice:hover {
  border-color: var(--rose);
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.35;
}

.choice span::before {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 0 4px var(--paper);
  transition: background-color 0.2s ease;
}

.choice--check span::before {
  border-radius: 6px;
}

.choice input:checked + span::before {
  background: var(--rose);
}

.choice:has(input:checked) {
  border-color: var(--rose);
  background: rgba(184, 149, 131, 0.1);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  min-height: 0;
  margin: -18px 0 0;
  color: #8d3e3e;
  font-size: 0.85rem;
  text-align: center;
}

.form-error:empty {
  display: none;
}

.button--submit {
  width: 100%;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.button--submit:hover {
  background: #443d38;
}

.button--submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.privacy-note {
  margin-top: -27px;
  text-align: center;
}

.rsvp-success {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 40px;
  border-radius: inherit;
  text-align: center;
}

.rsvp-success[hidden] {
  display: none;
}

.rsvp-success__check {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 32px;
  place-items: center;
  border: 1px solid var(--rose);
  border-radius: 50%;
  color: var(--rose);
  font-size: 1.4rem;
}

.rsvp-success h3 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 4.6rem;
  font-weight: 400;
  line-height: 0.85;
}

.rsvp-success p {
  margin-bottom: 8px;
}

.rsvp-success strong {
  color: var(--rose);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
}

.rsvp__paper.is-complete .rsvp-form {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.rsvp__paper.is-complete .rsvp-success {
  animation: success-in 0.75s 0.24s both;
}

.finale {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 64px 20px max(42px, env(safe-area-inset-bottom));
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #554b44;
  color: var(--white);
  text-align: center;
}

.finale__photo,
.finale__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.finale__photo img {
  object-position: calc(50% + var(--finale-x, 0%)) calc(50% + var(--finale-y, 0%) + var(--finale-scroll, 0%));
  filter: saturate(0.76) sepia(0.04) brightness(0.72) contrast(1.04);
  animation: finale-drift 19s ease-in-out infinite alternate;
}

.finale__veil {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 15, 13, 0.15), rgba(18, 15, 13, 0.55)),
    radial-gradient(circle at 50% 42%, transparent 0 18%, rgba(18, 15, 13, 0.34) 58%, rgba(18, 15, 13, 0.62) 100%);
}

.finale__portal-light {
  position: absolute;
  z-index: 0;
  top: 46%;
  left: 50%;
  width: min(78vw, 530px);
  aspect-ratio: 0.68;
  border: 1px solid rgba(255, 237, 214, 0.36);
  border-radius: 50% 50% 16px 16px;
  pointer-events: none;
  box-shadow:
    0 0 22px rgba(255, 227, 196, 0.22),
    inset 0 0 24px rgba(255, 245, 229, 0.08);
  transform: translate(-50%, -50%);
  animation: portal-pulse 5.5s ease-in-out infinite;
}

.finale__portal-light::after {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: inherit;
  content: "";
}

.finale__shimmer {
  position: absolute;
  z-index: 1;
  inset: -20%;
  pointer-events: none;
  opacity: 0.32;
  background: conic-gradient(from 210deg at 50% 50%, transparent 0 38%, rgba(255, 244, 225, 0.46) 43%, transparent 49% 100%);
  mix-blend-mode: screen;
  animation: finale-shimmer 13s linear infinite;
}

.finale__content {
  position: relative;
  z-index: 2;
  padding: 42px 18px;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.58);
}

.finale__content > p {
  margin-bottom: 38px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.finale h2 {
  max-width: 820px;
  margin-bottom: 32px;
  font-family: var(--display);
  font-size: clamp(4rem, 18vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.76;
}

.finale h2 i {
  display: block;
  margin-block: 0.22em;
  color: #e0c5b1;
  font-size: 0.55em;
  font-weight: 400;
}

.finale time {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes hero-breathe {
  from { transform: scale(1.12); }
  to { transform: scale(1.045); }
}

@keyframes orbit-turn {
  from { transform: rotate(0deg) rotateX(62deg); }
  to { transform: rotate(360deg) rotateX(62deg); }
}

@keyframes hero-light-pass {
  0%, 55% { transform: translateX(0) rotate(18deg); opacity: 0; }
  68% { opacity: 0.42; }
  84%, 100% { transform: translateX(370%) rotate(18deg); opacity: 0; }
}

@keyframes hero-copy-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(calc(-8vh + 22px)); }
  to { opacity: 1; filter: blur(0); transform: translateY(-8vh); }
}

@keyframes finale-drift {
  from { transform: scale(1.07) translate3d(-0.5%, -0.4%, 0); }
  to { transform: scale(1.13) translate3d(0.7%, 0.8%, 0); }
}

@keyframes portal-pulse {
  0%, 100% { opacity: 0.46; transform: translate(-50%, -50%) scale(0.97); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.025); }
}

@keyframes finale-shimmer {
  to { transform: rotate(360deg); }
}

@keyframes today-halo {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.035); }
}

@keyframes frame-light {
  0%, 58% { opacity: 0; transform: translateX(-52%); }
  70% { opacity: 0.7; }
  88%, 100% { opacity: 0; transform: translateX(52%); }
}

@keyframes scroll-line {
  0% { transform: translateY(-110%); }
  55%, 100% { transform: translateY(110%); }
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 430px) {
  :root {
    --content: min(100% - 56px, 1120px);
  }

  .album-photo picture {
    height: 420px;
  }

  .photo-stack {
    min-height: 635px;
  }

  .portrait-arch {
    height: 455px;
  }
}

@media (min-width: 768px) {
  :root {
    --content: min(100% - 96px, 1120px);
  }

  .hero {
    padding-inline: 48px;
  }

  .hero h1 i,
  .finale h2 i {
    display: inline;
    margin-inline: 0.12em;
  }

  .story::before {
    left: calc(50% - 520px);
  }

  .story-chapter {
    margin-bottom: 190px;
  }

  .photo-stack {
    min-height: 660px;
  }

  .album-photo {
    width: 55%;
  }

  .album-photo picture,
  .album-photo--bride-child picture {
    height: 430px;
  }

  .portrait-arch {
    width: 54%;
    height: 500px;
  }

  .day-line__item {
    grid-template-columns: 180px 1fr;
    gap: 30px;
    min-height: 170px;
    padding-left: 74px;
  }

  .venue {
    padding-inline: 48px;
  }

  .venue__shell {
    padding: 118px 50px 90px;
  }

  .note-section {
    grid-template-columns: 100px 1fr;
    gap: 50px;
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .choice--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .hero__photo,
  .finale__photo {
    inset: 32px;
    overflow: hidden;
    border-radius: 320px 320px 38px 38px;
  }

  .hero__veil,
  .finale__veil {
    inset: 32px;
    border-radius: 320px 320px 38px 38px;
  }
}

@media (max-width: 389px) {
  :root {
    --content: min(100% - 32px, 1120px);
  }

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

  .album-photo picture {
    height: 330px;
  }

  .photo-stack {
    min-height: 520px;
  }

  .portrait-arch {
    height: 360px;
  }

  .choice {
    padding-inline: 12px;
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
