@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #251a18;
  --ink-soft: #66524d;
  --night: #1d1212;
  --wine: #572821;
  --wine-light: #7d4035;
  --ivory: #fbf7ef;
  --paper: #f3eadc;
  --gold: #c89b4d;
  --gold-light: #f1d89f;
  --line: rgba(54, 36, 30, 0.14);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --shadow-soft: 0 24px 70px rgba(45, 25, 20, 0.12);
  --shadow-deep: 0 32px 100px rgba(17, 7, 5, 0.28);
}

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--night);
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

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

button,
select {
  cursor: pointer;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: white;
  background: var(--night);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 16px rgba(241, 216, 159, 0.65);
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.65rem clamp(1.5rem, 5vw, 5.5rem);
  color: #fffaf0;
  animation: header-enter 900ms 250ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.7rem);
}

.site-header nav a {
  position: relative;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.site-header nav a:hover {
  color: #fffaf0;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  color: #fffaf0;
  text-decoration: none;
}

.wordmark__letter {
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1;
}

.wordmark__divider {
  width: 1px;
  height: 1.85rem;
  margin: 0 0.65rem;
  background: rgba(241, 216, 159, 0.45);
}

.wordmark__year {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.nav-cta {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(241, 216, 159, 0.5);
  border-radius: 999px;
  color: #fffaf0 !important;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.04);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

.nav-cta:hover {
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(47rem, 100svh);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fffaf0;
  background: var(--night);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 1rem;
  border: 1px solid rgba(241, 216, 159, 0.2);
  pointer-events: none;
}

.hero__media {
  position: absolute;
  z-index: -3;
  inset: 0 0 0 42%;
  overflow: hidden;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(29, 18, 18, 0.92) 10%, rgba(29, 18, 18, 0.28) 44%, rgba(29, 18, 18, 0.08) 100%),
    linear-gradient(0deg, rgba(23, 13, 12, 0.65), transparent 42%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(0.78) contrast(1.05) brightness(0.92);
  animation: hero-image-enter 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__aurora {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: aurora-drift 11s ease-in-out infinite alternate;
}

.hero__aurora--one {
  top: -18rem;
  left: 18%;
  width: 38rem;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(157, 73, 53, 0.2), transparent 67%);
}

.hero__aurora--two {
  bottom: -24rem;
  left: -12rem;
  width: 48rem;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(200, 155, 77, 0.15), transparent 68%);
  animation-delay: -4s;
}

.hero__content {
  position: relative;
  z-index: 5;
  width: min(52rem, 57%);
  padding: 7.5rem 0 11rem clamp(2.5rem, 7vw, 7.5rem);
}

.hero__kicker {
  margin-bottom: clamp(1rem, 2.4vh, 1.8rem);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__title-group {
  display: flex;
  align-items: flex-end;
  gap: clamp(1rem, 2vw, 2rem);
  width: max-content;
  max-width: 100%;
}

.hero__age {
  display: block;
  flex: 0 0 auto;
  padding: 0.04em 0.035em 0.08em 0;
  color: transparent;
  background: linear-gradient(145deg, #fff0c4 4%, #c5923f 45%, #f0d497 74%, #a66d29 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: var(--display);
  font-size: clamp(9rem, 17vw, 17rem);
  font-weight: 500;
  line-height: 0.7;
  letter-spacing: -0.075em;
  font-variant-numeric: lining-nums;
  filter: drop-shadow(0 14px 34px rgba(9, 4, 3, 0.25));
}

.hero__name {
  padding-bottom: 0.7rem;
}

.hero__name > span {
  display: block;
  margin-bottom: 0.1rem;
  color: rgba(255, 250, 240, 0.64);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__name h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.7rem, 7.4vw, 7rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.045em;
}

.hero__name p {
  margin: 0.75rem 0 0;
  color: var(--gold-light);
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__invitation {
  max-width: 36rem;
  margin: clamp(1.4rem, 3vh, 2.3rem) 0 0;
  color: rgba(255, 250, 240, 0.74);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -50%;
  left: -35%;
  width: 24%;
  height: 200%;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(18deg) translateX(-220%);
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::before {
  transform: rotate(18deg) translateX(720%);
}

.button--gold {
  color: #2c1b17;
  background: linear-gradient(135deg, #f4dda9, #c79543);
  box-shadow: 0 14px 36px rgba(199, 149, 67, 0.2);
}

.button--gold:hover {
  box-shadow: 0 18px 46px rgba(199, 149, 67, 0.32);
}

.button--glass {
  color: #fffaf0;
  border-color: rgba(255, 250, 240, 0.22);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}

.button--dark,
.button--ink {
  color: #fffaf0;
  background: var(--night);
  box-shadow: 0 14px 36px rgba(29, 18, 18, 0.18);
}

.button--outline {
  color: var(--ink);
  border-color: rgba(54, 36, 30, 0.28);
  background: transparent;
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.hero__facts {
  position: absolute;
  z-index: 6;
  bottom: 2.5rem;
  left: clamp(2.5rem, 7vw, 7.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(8rem, auto));
  gap: clamp(1.6rem, 4vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(241, 216, 159, 0.22);
}

.hero__facts div {
  display: grid;
  gap: 0.15rem;
}

.hero__facts span {
  color: rgba(255, 250, 240, 0.46);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__facts strong {
  color: rgba(255, 250, 240, 0.88);
  font-size: 0.78rem;
  font-weight: 650;
}

.hero__scroll {
  position: absolute;
  z-index: 6;
  right: clamp(2rem, 4vw, 4rem);
  bottom: 2.6rem;
  display: grid;
  width: 2.8rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.25);
  border-radius: 50%;
}

.hero__scroll span {
  width: 1px;
  height: 0.9rem;
  background: var(--gold-light);
  animation: scroll-pulse 1.7s ease-in-out infinite;
}

.section {
  padding: clamp(5.5rem, 10vw, 9.5rem) clamp(1.35rem, 6vw, 6.5rem);
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--wine-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.opening {
  position: relative;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(23rem, 0.85fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
  background:
    radial-gradient(circle at 86% 20%, rgba(200, 155, 77, 0.11), transparent 28rem),
    var(--ivory);
}

@supports (overflow-x: clip) {
  .opening {
    overflow-x: clip;
  }
}

.opening::after {
  content: "M";
  position: absolute;
  right: -0.1em;
  bottom: -0.23em;
  color: rgba(87, 40, 33, 0.035);
  font-family: var(--display);
  font-size: min(44vw, 38rem);
  line-height: 0.8;
  pointer-events: none;
}

.opening__statement,
.opening__side {
  position: relative;
  z-index: 1;
}

.opening h2,
.section-intro h2,
.portrait-section__heading h2,
.rsvp__intro h2,
.gifts__content h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.7vw, 6.9rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.opening h2 em {
  color: var(--wine);
  font-weight: 400;
}

.opening__side > p {
  max-width: 35rem;
  margin-bottom: 2.2rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.countdown {
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.countdown__label {
  margin-bottom: 1rem;
  color: var(--wine-light);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.countdown__grid div {
  min-width: 0;
}

.countdown__grid strong {
  display: block;
  width: fit-content;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 450;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  transform-origin: center bottom;
}

.countdown__grid strong.is-ticking {
  animation: digit-tick 380ms ease;
}

.countdown__grid span {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown__status {
  min-height: 1.25rem;
  margin: 0.8rem 0 0;
  color: var(--wine);
  font-weight: 700;
}

.details {
  color: #fffaf0;
  background:
    radial-gradient(circle at 14% 0%, rgba(125, 64, 53, 0.24), transparent 30rem),
    var(--night);
}

.details .eyebrow,
.portrait-section .eyebrow {
  color: var(--gold-light);
}

.section-intro {
  display: grid;
  grid-template-columns: 0.5fr 1fr 0.6fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.8rem, 6vw, 5rem);
}

.section-intro .eyebrow {
  align-self: start;
}

.section-intro h2 {
  font-size: clamp(3.2rem, 5.6vw, 5.8rem);
}

.section-intro > p:last-child {
  margin-bottom: 0.6rem;
  color: rgba(255, 250, 240, 0.55);
  font-size: 0.9rem;
}

.event-panel {
  display: grid;
  grid-template-columns: 1.05fr repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(241, 216, 159, 0.18);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-deep);
}

.event-panel > article {
  min-width: 0;
  min-height: 26rem;
  padding: clamp(1.5rem, 2.7vw, 2.5rem);
}

.event-panel__date {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--night);
  background: linear-gradient(145deg, #f4dfa9, #c79543);
}

.event-panel__month {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.event-panel__date strong {
  align-self: center;
  padding-right: 0.06em;
  font-family: var(--display);
  font-size: clamp(8rem, 12vw, 12rem);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.06em;
}

.event-panel__date > div {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(29, 18, 18, 0.24);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
}

.event-panel__info {
  display: grid;
  grid-template-rows: auto 1fr;
  border-left: 1px solid rgba(241, 216, 159, 0.13);
  background: rgba(255, 255, 255, 0.02);
  transition: background 280ms ease, transform 280ms ease;
}

.event-panel__info:hover {
  background: rgba(255, 255, 255, 0.055);
}

.event-panel__index {
  justify-self: end;
  color: rgba(241, 216, 159, 0.36);
  font-size: 0.68rem;
  font-weight: 700;
}

.event-panel__info > div {
  align-self: end;
}

.event-panel__label {
  margin-bottom: 0.55rem;
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-panel__info h3 {
  margin-bottom: 0.8rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}

.event-panel__info p:not(.event-panel__label) {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.54);
  font-size: 0.85rem;
}

.text-link {
  position: relative;
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--gold-light);
  font-size: 0.77rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 220ms ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.portrait-section {
  color: #fffaf0;
  background: var(--wine);
}

.portrait-section__heading {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 2rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.portrait-section__heading h2 {
  max-width: 58rem;
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.portrait-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #311c18;
  box-shadow: 0 24px 80px rgba(35, 14, 12, 0.24);
}

.portrait-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.08);
  pointer-events: none;
}

.portrait-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease;
}

.portrait-grid figure:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.portrait-grid figure[data-parallax] img {
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.05);
}

.portrait-grid__primary {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  aspect-ratio: 0.87;
  border-radius: 0.9rem;
}

.portrait-grid__primary img {
  object-position: 50% 24%;
}

.portrait-grid__secondary {
  grid-column: 8 / 13;
  aspect-ratio: 1.18;
  border-radius: 0.9rem;
}

.portrait-grid__secondary img {
  object-position: 50% 21%;
}

.portrait-grid blockquote {
  position: relative;
  grid-column: 8 / 13;
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  padding: clamp(1.6rem, 3vw, 2.7rem);
  border: 1px solid rgba(241, 216, 159, 0.22);
  border-radius: 0.9rem;
  background: rgba(29, 18, 18, 0.17);
}

.quote-mark {
  position: absolute;
  top: 0.1rem;
  right: 1rem;
  color: rgba(241, 216, 159, 0.13);
  font-family: var(--display);
  font-size: 8rem;
  line-height: 1;
}

.portrait-grid blockquote p {
  position: relative;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  line-height: 1.08;
}

.portrait-grid cite {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rsvp {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(30rem, 1.16fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
  background:
    radial-gradient(circle at 12% 16%, rgba(200, 155, 77, 0.1), transparent 28rem),
    var(--paper);
}

.rsvp__intro {
  position: sticky;
  top: 3rem;
}

.rsvp__intro h2 {
  font-size: clamp(3.6rem, 6vw, 6.2rem);
}

.rsvp__intro > p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 1.8rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.rsvp__privacy {
  display: flex;
  max-width: 32rem;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.rsvp__privacy span {
  display: grid;
  flex: 0 0 auto;
  width: 1.55rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--wine);
  font-size: 0.72rem;
}

.rsvp__privacy p {
  margin: 0;
  font-size: 0.82rem;
}

.rsvp-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  border: 1px solid rgba(54, 36, 30, 0.12);
  border-radius: 1.1rem;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--full,
.consent,
.button--submit,
.form-status,
.rsvp-form > .field__error {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(54, 36, 30, 0.18);
  border-radius: 0.65rem;
  outline: none;
  color: var(--ink);
  background: #fffefa;
  transition: border 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input::placeholder {
  color: #9b8b85;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 155, 77, 0.13);
}

.field__hint {
  color: #846f68;
  font-size: 0.75rem;
}

.field__error {
  min-height: 1.05rem;
  color: #a12e2e;
  font-size: 0.76rem;
  font-weight: 650;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.consent input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--wine);
}

.button--submit {
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
}

.button--submit i,
.mobile-rsvp i {
  font-style: normal;
  transition: transform 180ms ease;
}

.button--submit:hover i,
.mobile-rsvp:hover i {
  transform: translate(2px, -2px);
}

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

.form-status {
  min-height: 1.3rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.form-status.is-success { color: #356d3e; }
.form-status.is-warning { color: #8b5b16; }
.form-status.is-error { color: #a12e2e; }

.gifts {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
  color: #fffaf0;
  background:
    radial-gradient(circle at 17% 45%, rgba(200, 155, 77, 0.14), transparent 26rem),
    var(--night);
}

.gifts__number {
  padding: 0.05em 0.06em 0.08em 0;
  color: transparent;
  background: linear-gradient(145deg, #fff0c4, #c5923f 48%, #f0d497);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: var(--display);
  font-size: clamp(12rem, 27vw, 26rem);
  font-weight: 500;
  line-height: 0.7;
  letter-spacing: -0.08em;
}

.gifts__content {
  max-width: 47rem;
}

.gifts .eyebrow {
  color: var(--gold-light);
}

.gifts__content h2 {
  font-size: clamp(3.3rem, 6vw, 6rem);
}

.gifts__content > p:not(.eyebrow) {
  max-width: 34rem;
  margin: 1.8rem 0 2rem;
  color: rgba(255, 250, 240, 0.58);
}

.gifts .button--outline {
  color: #fffaf0;
  border-color: rgba(241, 216, 159, 0.3);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem clamp(1.35rem, 6vw, 6.5rem);
  color: rgba(255, 250, 240, 0.55);
  background: #120b0b;
  font-size: 0.74rem;
}

footer > div {
  display: grid;
  gap: 0.1rem;
}

footer strong {
  color: #fffaf0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
}

footer span {
  letter-spacing: 0.04em;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > a {
  justify-self: end;
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
}

.mobile-rsvp {
  display: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 850ms cubic-bezier(0.2, 0.72, 0.2, 1),
    transform 850ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.js [data-reveal][data-delay="1"] { transition-delay: 120ms; }
.js [data-reveal][data-delay="2"] { transition-delay: 240ms; }

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

.hero-animate {
  animation: hero-copy-enter 900ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero-delay-1 { animation-delay: 360ms; }
.hero-delay-2 { animation-delay: 480ms; }
.hero-delay-3 { animation-delay: 610ms; }
.hero-delay-4 { animation-delay: 740ms; }
.hero-delay-5 { animation-delay: 870ms; }

@keyframes header-enter {
  from { opacity: 0; transform: translateY(-1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image-enter {
  from { opacity: 0.35; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hero-copy-enter {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aurora-drift {
  from { transform: translate3d(-1rem, -0.5rem, 0) scale(0.96); }
  to { transform: translate3d(2rem, 1rem, 0) scale(1.06); }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.25; transform: translateY(-0.18rem); }
  50% { opacity: 1; transform: translateY(0.18rem); }
}

@keyframes digit-tick {
  0% { opacity: 0.35; transform: translateY(-0.25rem); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .hero__content {
    width: min(45rem, 64%);
    padding-left: 4rem;
  }

  .hero__facts {
    left: 4rem;
  }

  .event-panel {
    grid-template-columns: 1fr 1fr;
  }

  .event-panel__date {
    grid-row: span 2;
  }

  .event-panel > article {
    min-height: 18rem;
  }

  .event-panel__info {
    border-bottom: 1px solid rgba(241, 216, 159, 0.13);
  }

  .event-panel__info:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 1.25rem 1.4rem;
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: 52rem;
    align-items: flex-end;
  }

  .hero::before {
    inset: 0.55rem;
  }

  .hero__media {
    inset: 0;
  }

  .hero__media::after {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(29, 18, 18, 0.94) 22%, rgba(29, 18, 18, 0.52) 58%, rgba(29, 18, 18, 0.16) 100%),
      linear-gradient(90deg, rgba(29, 18, 18, 0.4), transparent);
  }

  .hero__media img {
    object-position: 50% 31%;
  }

  .hero__content {
    width: 100%;
    padding: 9rem 1.45rem 10.5rem;
  }

  .hero__kicker {
    margin-bottom: 1rem;
    font-size: 0.62rem;
  }

  .hero__title-group {
    gap: 0.85rem;
  }

  .hero__age {
    font-size: clamp(7.5rem, 29vw, 11rem);
  }

  .hero__name {
    padding-bottom: 0.35rem;
  }

  .hero__name h1 {
    font-size: clamp(3.3rem, 15vw, 5.7rem);
  }

  .hero__name p {
    margin-top: 0.6rem;
    font-size: 0.7rem;
  }

  .hero__invitation {
    max-width: 31rem;
    font-size: 1.2rem;
  }

  .hero__facts {
    right: 1.45rem;
    bottom: 2rem;
    left: 1.45rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .hero__facts strong {
    font-size: 0.7rem;
  }

  .hero__scroll {
    display: none;
  }

  .opening,
  .rsvp,
  .gifts {
    grid-template-columns: 1fr;
  }

  .opening {
    gap: 3rem;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .section-intro > p:last-child {
    max-width: 30rem;
    margin-top: 1.2rem;
  }

  .portrait-section__heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .portrait-grid__primary {
    grid-column: 1 / 8;
  }

  .portrait-grid__secondary,
  .portrait-grid blockquote {
    grid-column: 8 / 13;
  }

  .rsvp__intro {
    position: static;
  }

  .gifts {
    gap: 3rem;
  }

  .gifts__number {
    width: fit-content;
    font-size: clamp(11rem, 42vw, 18rem);
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 4.7rem;
  }

  .nav-cta {
    min-height: 2.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.68rem !important;
  }

  .hero {
    min-height: max(47rem, 100svh);
  }

  .hero__content {
    padding: 8.5rem 1.3rem 10.7rem;
  }

  .hero__title-group {
    width: 100%;
    gap: 0.55rem;
  }

  .hero__age {
    font-size: clamp(7rem, 31vw, 9.2rem);
    letter-spacing: -0.08em;
  }

  .hero__name h1 {
    font-size: clamp(2.95rem, 14vw, 4.3rem);
  }

  .hero__name p {
    max-width: 9rem;
    font-size: 0.6rem;
    line-height: 1.35;
  }

  .hero__invitation {
    margin-top: 1.2rem;
    font-size: 1.08rem;
  }

  .hero__actions {
    gap: 0.55rem;
    margin-top: 1.3rem;
  }

  .hero__actions .button {
    min-height: 3rem;
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
  }

  .hero__facts {
    right: 1.3rem;
    bottom: 1.55rem;
    left: 1.3rem;
    gap: 0.45rem;
    padding-top: 0.85rem;
  }

  .hero__facts div:last-child {
    text-align: right;
  }

  .hero__facts span {
    font-size: 0.52rem;
  }

  .hero__facts strong {
    font-size: 0.59rem;
    line-height: 1.3;
  }

  .section {
    padding: 5.2rem 1.3rem;
  }

  .opening h2,
  .section-intro h2,
  .portrait-section__heading h2,
  .rsvp__intro h2,
  .gifts__content h2 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .opening__side > p {
    font-size: 0.94rem;
  }

  .countdown__grid {
    gap: 0.3rem;
  }

  .countdown__grid strong {
    font-size: 2.55rem;
  }

  .event-panel {
    grid-template-columns: 1fr;
    border-radius: 0.8rem;
  }

  .event-panel > article {
    min-height: auto;
    padding: 1.5rem;
  }

  .event-panel__date {
    grid-row: auto;
    min-height: 13.5rem !important;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    align-items: end;
    column-gap: 1rem;
  }

  .event-panel__month {
    grid-column: 1 / -1;
  }

  .event-panel__date strong {
    grid-column: 1;
    align-self: center;
    font-size: 7.4rem;
  }

  .event-panel__date > div {
    grid-column: 2;
    align-self: center;
    justify-content: center;
    min-height: 4.8rem;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0 0 1rem;
    border-top: 0;
    border-left: 1px solid rgba(29, 18, 18, 0.24);
    transform: translateY(0.75rem);
  }

  .event-panel__info,
  .event-panel__info:last-child {
    grid-column: 1;
    min-height: 13rem;
    border-left: 0;
    border-bottom: 1px solid rgba(241, 216, 159, 0.13);
  }

  .event-panel__info:last-child {
    border-bottom: 0;
  }

  .portrait-grid {
    grid-template-columns: 1fr;
  }

  .portrait-grid__primary,
  .portrait-grid__secondary,
  .portrait-grid blockquote {
    grid-column: 1;
    grid-row: auto;
  }

  .portrait-grid__primary {
    aspect-ratio: 0.82;
  }

  .portrait-grid__secondary {
    aspect-ratio: 1.18;
  }

  .portrait-grid blockquote {
    min-height: 15rem;
  }

  .rsvp {
    gap: 2.6rem;
  }

  .rsvp-form {
    padding: 1.15rem;
    border-radius: 0.8rem;
  }

  .field input,
  .field select {
    min-height: 3.55rem;
    font-size: 0.9rem;
  }

  .gifts__number {
    font-size: min(53vw, 13rem);
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1.3rem;
  }

  footer > a {
    justify-self: start;
  }

  .mobile-rsvp {
    position: fixed;
    z-index: 90;
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
    display: flex;
    min-height: 3.35rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(241, 216, 159, 0.2);
    border-radius: 999px;
    color: #fffaf0;
    background: rgba(29, 18, 18, 0.94);
    box-shadow: 0 18px 50px rgba(18, 8, 7, 0.3);
    backdrop-filter: blur(14px);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .mobile-rsvp.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 360px) {
  .hero__age {
    font-size: 6.4rem;
  }

  .hero__name h1 {
    font-size: 2.75rem;
  }

  .hero__actions .button--glass {
    display: none;
  }

  .hero__facts strong {
    font-size: 0.54rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero__actions,
  .hero__scroll,
  .mobile-rsvp,
  .scroll-progress,
  .rsvp,
  .gifts,
  footer {
    display: none !important;
  }
}
