/* ================================
   VARIABLES
================================ */

:root {
  --ivory: #f4eee5;
  --ivory-light: #faf7f2;
  --cream: #ebe0d1;
  --champagne: #d6c1a5;

  --blackberry: #211820;
  --blackberry-light: #31232d;
  --wine: #6b2138;
  --wine-dark: #491323;

  --graphite: #242326;
  --text: #282326;
  --muted: #786f6b;

  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;

  --container: 1240px;

  --shadow:
    0 30px 80px rgba(33, 24, 32, 0.14);

  --transition:
    0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* ================================
   RESET
================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  background: var(--ivory);
  color: var(--text);

  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

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

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

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

[hidden] {
  display: none !important;
}


/* ================================
   GLOBAL
================================ */

.container {
  width: min(
    var(--container),
    calc(100% - 80px)
  );

  margin-inline: auto;
}

.section {
  padding:
    clamp(100px, 12vw, 180px)
    0;
}

.overline {
  margin-bottom: 24px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.26em;
  line-height: 1.4;

  text-transform: uppercase;
}

.overline.dark {
  color: var(--wine);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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


/* ================================
   HEADER
================================ */

.header {
  position: fixed;
  z-index: 1000;

  top: 0;
  left: 0;

  width: 100%;
  height: 88px;

  display: flex;
  align-items: center;

  padding:
    0
    clamp(24px, 4vw, 64px);

  color: var(--white);

  transition:
    background var(--transition),
    height var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.header.scrolled {
  height: 72px;

  background:
    rgba(244, 238, 229, 0.93);

  color: var(--blackberry);

  box-shadow:
    0 10px 40px rgba(33, 24, 32, 0.06);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo {
  position: relative;
  z-index: 1002;

  display: flex;
  align-items: center;

  gap: 8px;

  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.logo i {
  color: var(--champagne);
  font-weight: 400;
}

.navigation {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: clamp(25px, 3vw, 48px);
}

.navigation a {
  position: relative;

  font-size: 10px;
  font-weight: 500;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.navigation a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: currentColor;

  transition: width var(--transition);
}

.navigation a:hover::after {
  width: 100%;
}

.menu-button {
  position: relative;
  z-index: 1002;

  display: none;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 0;
  background: transparent;
  color: inherit;

  cursor: pointer;
}

.menu-button span {
  position: absolute;

  left: 10px;

  width: 24px;
  height: 1px;

  background: currentColor;

  transition:
    transform var(--transition),
    top var(--transition);
}

.menu-button span:first-child {
  top: 17px;
}

.menu-button span:last-child {
  top: 26px;
}

.menu-button[aria-expanded="true"] span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}


/* ================================
   HERO
================================ */

.hero {
  position: relative;

  min-height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  color: white;

  background: var(--blackberry);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image img {
  object-position: center 45%;

  animation:
    heroZoom 15s ease-out both;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1.01);
  }
}

.hero-shade {
  background:
    linear-gradient(
      180deg,
      rgba(16, 11, 15, 0.42) 0%,
      rgba(16, 11, 15, 0.18) 40%,
      rgba(16, 11, 15, 0.72) 100%
    ),
    linear-gradient(
      90deg,
      rgba(18, 11, 16, 0.2),
      transparent 40%,
      rgba(18, 11, 16, 0.2)
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  width: min(
    1150px,
    calc(100% - 40px)
  );

  padding:
    130px
    0
    90px;

  text-align: center;
}

.hero-title {
  display: flex;
  justify-content: center;
  align-items: center;

  gap:
    clamp(15px, 3vw, 50px);

  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(70px, 12.5vw, 180px);

  font-weight: 400;

  letter-spacing: -0.055em;
  line-height: 0.84;

  text-shadow:
    0 15px 50px rgba(0, 0, 0, 0.28);
}

.hero-title i {
  color: var(--champagne);

  font-size: 0.45em;
  font-weight: 400;
}

.hero-date {
  margin:
    32px
    0
    0;

  font-size: 11px;

  letter-spacing: 0.26em;

  text-transform: uppercase;
}

.hero-button {
  display: inline-flex;
  align-items: center;

  gap: 16px;

  margin-top:
    clamp(45px, 7vh, 90px);

  padding:
    11px
    0;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.5);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.2em;

  text-transform: uppercase;

  transition:
    gap var(--transition),
    border-color var(--transition);
}

.hero-button:hover {
  gap: 24px;

  border-color: white;
}

.hero-button span {
  font-size: 16px;
}

.hero-year {
  position: absolute;
  z-index: 3;

  bottom: 28px;

  color:
    rgba(255, 255, 255, 0.46);

  font-family: var(--serif);
  font-size: 22px;
}

.hero-year-left {
  left: 36px;
}

.hero-year-right {
  right: 36px;
}


/* ================================
   INVITATION
================================ */

.invitation {
  position: relative;

  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(107, 33, 56, 0.06),
      transparent 35%
    ),
    var(--ivory-light);
}

.invitation-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(350px, 0.72fr);

  align-items: center;

  gap:
    clamp(60px, 9vw, 140px);
}

.invitation-text h2 {
  max-width: 700px;

  margin-bottom: 0;

  font-family: var(--serif);

  font-size:
    clamp(50px, 6vw, 86px);

  font-weight: 400;

  letter-spacing: -0.04em;
  line-height: 0.98;
}

.description {
  max-width: 600px;

  margin-top: 36px;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.9;
}

.signature {
  margin-top: 50px;

  font-family: var(--serif);

  font-size:
    clamp(34px, 4vw, 50px);

  font-style: italic;
}

.signature span {
  color: var(--wine);
}

.portrait-photo {
  position: relative;

  margin: 0;

  aspect-ratio: 0.76;

  box-shadow: var(--shadow);

  overflow: hidden;
}

.portrait-photo img {
  transition:
    transform 1.2s ease;
}

.portrait-photo:hover img {
  transform: scale(1.025);
}

.photo-frame {
  position: absolute;

  inset: 14px;

  border:
    1px solid rgba(255, 255, 255, 0.62);

  pointer-events: none;
}

.portrait-photo figcaption {
  position: absolute;

  left: 28px;
  bottom: 25px;

  color: white;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.18em;

  text-transform: uppercase;

  text-shadow:
    0 2px 15px rgba(0, 0, 0, 0.5);
}


/* ================================
   DATE
================================ */

.date-section {
  position: relative;

  min-height: 560px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    var(--blackberry);

  color: white;
}

.date-content {
  position: relative;
  z-index: 2;

  text-align: center;
}

.big-date {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 26px;
}

.big-date > span {
  font-family: var(--serif);

  font-size:
    clamp(130px, 18vw, 260px);

  font-weight: 400;

  letter-spacing: -0.08em;
  line-height: 0.7;
}

.big-date div {
  padding-left: 26px;

  border-left:
    1px solid rgba(255, 255, 255, 0.25);

  text-align: left;
}

.big-date p {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(30px, 4vw, 48px);

  line-height: 1.05;
}

.date-caption {
  margin:
    45px
    0
    0;

  color:
    rgba(255, 255, 255, 0.65);

  font-size: 10px;

  letter-spacing: 0.22em;

  text-transform: uppercase;
}

.date-decoration {
  position: absolute;

  left: -30px;
  top: 50%;

  transform: translateY(-50%);

  color:
    rgba(255, 255, 255, 0.025);

  font-family: var(--serif);

  font-size:
    min(40vw, 600px);

  line-height: 0.5;

  pointer-events: none;
}

.date-decoration.right {
  left: auto;
  right: -60px;
}


/* ================================
   COUNTDOWN
================================ */

.countdown-section {
  padding:
    clamp(100px, 12vw, 170px)
    0;

  background: var(--cream);
}

.countdown-heading {
  text-align: center;
}

.countdown-heading .overline {
  color: var(--wine);
}

.countdown-heading h2 {
  margin-bottom: 0;

  font-family: var(--serif);

  font-size:
    clamp(48px, 6vw, 78px);

  font-weight: 400;

  letter-spacing: -0.035em;
}

.countdown {
  max-width: 980px;

  margin:
    clamp(60px, 8vw, 100px)
    auto
    0;

  display: flex;
  align-items: center;
  justify-content: center;

  gap:
    clamp(20px, 4vw, 55px);
}

.countdown-item {
  min-width: 130px;

  text-align: center;
}

.countdown-item strong {
  display: block;

  font-family: var(--serif);

  font-size:
    clamp(70px, 9vw, 125px);

  font-weight: 400;

  letter-spacing: -0.06em;
  line-height: 0.8;
}

.countdown-item span {
  display: block;

  margin-top: 22px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.22em;

  text-transform: uppercase;
}

.countdown-divider {
  width: 1px;
  height: 85px;

  background:
    rgba(33, 24, 32, 0.18);
}


/* ================================
   FULL PHOTO
================================ */

.full-photo {
  position: relative;

  height:
    min(82vh, 900px);

  min-height: 600px;

  overflow: hidden;

  color: white;
}

.full-photo img {
  object-position: center 45%;
}

.full-photo-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(20, 12, 17, 0.12),
      rgba(20, 12, 17, 0.56)
    );
}

.full-photo-text {
  position: absolute;

  z-index: 2;

  left: 50%;
  bottom:
    clamp(60px, 10vw, 120px);

  width:
    min(900px, calc(100% - 40px));

  transform: translateX(-50%);

  text-align: center;
}

.full-photo-text.reveal {
  transform:
    translate(-50%, 30px);
}

.full-photo-text.reveal.is-visible {
  transform:
    translate(-50%, 0);
}

.full-photo-text p {
  margin-bottom: 2px;

  font-family: var(--serif);

  font-size:
    clamp(28px, 4vw, 52px);

  font-style: italic;
}

.full-photo-text h2 {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(62px, 10vw, 135px);

  font-weight: 400;

  letter-spacing: -0.055em;
  line-height: 0.8;
}


/* ================================
   PROGRAM
================================ */

.program {
  background: var(--ivory-light);
}

.section-heading {
  max-width: 700px;
}

.section-heading h2 {
  margin-bottom: 0;

  font-family: var(--serif);

  font-size:
    clamp(56px, 7vw, 95px);

  font-weight: 400;

  letter-spacing: -0.04em;
  line-height: 0.95;
}

.section-heading > p:last-child {
  max-width: 540px;

  margin:
    30px
    0
    0;

  color: var(--muted);

  font-size: 15px;
}

.timeline {
  max-width: 900px;

  margin:
    clamp(70px, 9vw, 120px)
    0
    0
    auto;

  position: relative;
}

.timeline::before {
  content: "";

  position: absolute;

  top: 20px;
  bottom: 20px;
  left: 142px;

  width: 1px;

  background:
    rgba(33, 24, 32, 0.16);
}

.timeline-item {
  position: relative;

  display: grid;

  grid-template-columns:
    110px
    65px
    1fr;

  min-height: 190px;
}

.timeline-item time {
  padding-top: 6px;

  font-family: var(--serif);

  font-size: 34px;
}

.timeline-dot {
  position: relative;
}

.timeline-dot::before {
  content: "";

  position: absolute;

  z-index: 2;

  top: 16px;
  left: 27px;

  width: 12px;
  height: 12px;

  border: 3px solid var(--ivory-light);
  border-radius: 50%;

  background: var(--wine);

  box-shadow:
    0 0 0 1px var(--wine);
}

.timeline-text {
  padding-bottom: 60px;
}

.timeline-number {
  margin-bottom: 12px;

  color: var(--wine);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.2em;
}

.timeline-text h3 {
  margin-bottom: 12px;

  font-family: var(--serif);

  font-size:
    clamp(33px, 4vw, 46px);

  font-weight: 400;

  line-height: 1;
}

.timeline-text > p:last-child {
  max-width: 520px;

  margin-bottom: 0;

  color: var(--muted);

  font-size: 14px;
}


/* ================================
   MOOD
================================ */

.mood {
  display: grid;

  grid-template-columns:
    1fr
    0.78fr;

  grid-template-rows:
    auto
    auto;

  background: var(--blackberry);

  color: white;
}

.mood-image {
  min-height: 640px;
  overflow: hidden;
}

.mood-image img {
  transition:
    transform 1.3s ease;
}

.mood-image:hover img {
  transform: scale(1.025);
}

.mood-image-one {
  grid-row: 1 / span 2;
}

.mood-content {
  min-height: 630px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    clamp(60px, 8vw, 120px);
}

.mood-content h2 {
  margin-bottom: 0;

  font-family: var(--serif);

  font-size:
    clamp(50px, 6vw, 84px);

  font-weight: 400;

  letter-spacing: -0.04em;
  line-height: 0.95;
}

.mood-content > p:last-child {
  max-width: 500px;

  margin:
    35px
    0
    0;

  color:
    rgba(255, 255, 255, 0.62);

  font-size: 14px;
}

.mood-image-two {
  min-height: 470px;
}


/* ================================
   DETAILS
================================ */

.details {
  background:
    var(--ivory);
}

.details-heading {
  margin-bottom:
    clamp(60px, 8vw, 100px);
}

.details-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  border-top:
    1px solid rgba(33, 24, 32, 0.16);

  border-bottom:
    1px solid rgba(33, 24, 32, 0.16);
}

.detail-card {
  position: relative;

  min-height: 500px;

  padding:
    55px
    clamp(28px, 4vw, 55px);

  border-right:
    1px solid rgba(33, 24, 32, 0.16);
}

.detail-card:last-child {
  border-right: 0;
}

.detail-card.featured {
  background: var(--wine);

  color: white;
}

.detail-index {
  display: block;

  margin-bottom: 90px;

  color:
    rgba(33, 24, 32, 0.4);

  font-family: var(--serif);
  font-size: 20px;
}

.detail-card.featured .detail-index {
  color:
    rgba(255, 255, 255, 0.5);
}

.detail-card.featured .overline {
  color: var(--champagne);
}

.detail-card h3 {
  margin-bottom: 22px;

  font-family: var(--serif);

  font-size:
    clamp(34px, 3.5vw, 50px);

  font-weight: 400;

  line-height: 1;
}

.detail-card > p:not(.overline) {
  color: var(--muted);

  font-size: 14px;
}

.detail-card.featured > p:not(.overline) {
  color:
    rgba(255, 255, 255, 0.68);
}

.detail-card a {
  display: inline-block;

  margin-top: 34px;

  padding-bottom: 5px;

  border-bottom:
    1px solid rgba(33, 24, 32, 0.35);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.color-palette {
  display: flex;

  margin-top: 40px;
}

.color-palette span {
  width: 45px;
  height: 45px;

  border-radius: 50%;

  margin-left: -5px;

  background: var(--color);

  border:
    1px solid rgba(255, 255, 255, 0.45);
}


/* ================================
   QUOTE
================================ */

.quote-section {
  position: relative;

  padding:
    clamp(110px, 14vw, 210px)
    30px;

  overflow: hidden;

  background: var(--cream);
}

.quote-section::before,
.quote-section::after {
  content: "";

  position: absolute;

  width: 330px;
  height: 330px;

  border:
    1px solid rgba(107, 33, 56, 0.12);

  border-radius: 50%;
}

.quote-section::before {
  left: -180px;
  top: -160px;
}

.quote-section::after {
  right: -180px;
  bottom: -160px;
}

.quote-inner {
  position: relative;
  z-index: 2;

  max-width: 900px;

  margin: auto;

  text-align: center;
}

.quote-inner > p {
  margin-bottom: 0;

  color: var(--wine);

  font-family: var(--serif);

  font-size: 90px;
  line-height: 0.6;
}

.quote-inner blockquote {
  margin:
    20px
    0
    35px;

  font-family: var(--serif);

  font-size:
    clamp(42px, 6vw, 76px);

  font-weight: 400;

  letter-spacing: -0.035em;
  line-height: 1.03;
}

.quote-inner span {
  color: var(--muted);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.22em;

  text-transform: uppercase;
}


/* ================================
   RSVP
================================ */

.rsvp {
  padding:
    clamp(100px, 12vw, 180px)
    0;

  background: var(--blackberry);

  color: white;
}

.rsvp-grid {
  display: grid;

  grid-template-columns:
    minmax(300px, 0.8fr)
    minmax(480px, 1fr);

  gap:
    clamp(60px, 10vw, 150px);

  align-items: start;
}

.rsvp-intro {
  position: sticky;

  top: 130px;
}

.rsvp-intro h2 {
  margin-bottom: 0;

  font-family: var(--serif);

  font-size:
    clamp(70px, 8vw, 115px);

  font-weight: 400;

  letter-spacing: -0.05em;
  line-height: 0.8;
}

.rsvp-intro > p:not(.overline) {
  max-width: 430px;

  margin:
    45px
    0
    0;

  color:
    rgba(255, 255, 255, 0.64);

  font-size: 14px;
}

.rsvp-intro strong {
  color: white;
  font-weight: 500;
}

.rsvp-line {
  width: 75px;
  height: 1px;

  margin:
    45px
    0
    30px;

  background:
    rgba(255, 255, 255, 0.25);
}

.rsvp-intro small {
  color:
    rgba(255, 255, 255, 0.4);

  font-size: 10px;

  letter-spacing: 0.08em;
}

.rsvp-form-wrapper {
  position: relative;

  padding:
    clamp(35px, 5vw, 65px);

  background: var(--ivory-light);

  color: var(--text);
}

.form-group {
  margin-bottom: 38px;
}

.form-group label,
.form-group legend {
  display: block;

  margin-bottom: 13px;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;

  padding:
    16px
    0;

  border: 0;

  border-bottom:
    1px solid rgba(33, 24, 32, 0.25);

  border-radius: 0;

  outline: none;

  background: transparent;

  color: var(--text);

  font-family: var(--serif);

  font-size: 25px;

  transition:
    border-color var(--transition);
}

.form-group textarea {
  min-height: 120px;

  resize: vertical;
}

.form-group select {
  cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color:
    rgba(40, 35, 38, 0.34);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--wine);
}

.attendance-options {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 8px;

  margin-top: 16px;
}

.radio-card {
  position: relative;

  min-height: 110px;

  display: flex !important;
  flex-direction: column;
  justify-content: space-between;

  margin: 0 !important;

  padding: 18px;

  border:
    1px solid rgba(33, 24, 32, 0.17);

  cursor: pointer;

  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.radio-card input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.radio-card > span:last-child {
  font-family: var(--serif);

  font-size: 19px;

  letter-spacing: 0;

  text-transform: none;
}

.radio-circle {
  position: relative;

  width: 17px;
  height: 17px;

  border:
    1px solid rgba(33, 24, 32, 0.4);

  border-radius: 50%;

  transition:
    border-color var(--transition);
}

.radio-circle::after {
  content: "";

  position: absolute;

  inset: 4px;

  border-radius: 50%;

  background: transparent;

  transition:
    background var(--transition);
}

.radio-card:has(input:checked) {
  border-color: var(--wine);

  background:
    rgba(107, 33, 56, 0.055);
}

.radio-card input:checked + .radio-circle {
  border-color: var(--wine);
}

.radio-card input:checked + .radio-circle::after {
  background: var(--wine);
}

.field-error {
  display: block;

  min-height: 18px;

  margin-top: 7px;

  color: var(--wine);

  font-size: 11px;
}

.has-error
input[type="text"] {
  border-color: var(--wine);
}

.submit-button {
  position: relative;

  width: 100%;
  min-height: 66px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 14px;

  padding:
    18px
    28px;

  border:
    1px solid var(--blackberry);

  background: var(--blackberry);

  color: white;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.18em;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background var(--transition),
    color var(--transition);
}

.submit-button:hover {
  background: transparent;

  color: var(--blackberry);
}

.button-arrow {
  font-size: 17px;

  transition:
    transform var(--transition);
}

.submit-button:hover .button-arrow {
  transform: translateX(5px);
}

.button-loader {
  display: none;

  width: 17px;
  height: 17px;

  border:
    1px solid rgba(255, 255, 255, 0.35);

  border-top-color: white;

  border-radius: 50%;

  animation:
    loader 0.75s linear infinite;
}

.submit-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.submit-button.loading .button-loader {
  display: block;
}

.submit-button.loading .button-arrow {
  display: none;
}

@keyframes loader {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  min-height: 24px;

  margin:
    16px
    0
    0;

  color: var(--wine);

  font-size: 12px;
  text-align: center;
}

.honeypot {
  position: absolute !important;

  left: -99999px !important;
  top: -99999px !important;

  width: 1px !important;
  height: 1px !important;

  opacity: 0 !important;

  overflow: hidden !important;

  pointer-events: none !important;
}

.success-message {
  padding:
    70px
    30px;

  text-align: center;
}

.success-icon {
  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin:
    0
    auto
    35px;

  border:
    1px solid var(--wine);

  border-radius: 50%;

  color: var(--wine);

  font-family: var(--serif);
  font-size: 30px;
}

.success-message h3 {
  margin:
    10px
    0
    20px;

  font-family: var(--serif);

  font-size: 65px;
  font-weight: 400;
}

.success-message > p:last-child {
  color: var(--muted);
}


/* ================================
   FOOTER
================================ */

.footer {
  padding:
    80px
    30px;

  background: #171217;

  color:
    rgba(255, 255, 255, 0.65);

  text-align: center;
}

.footer-logo {
  margin-bottom: 20px;

  color: white;

  font-family: var(--serif);

  font-size:
    clamp(38px, 5vw, 65px);

  font-style: italic;
}

.footer-logo i {
  color: var(--champagne);
}

.footer p {
  margin:
    0
    0
    12px;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.25em;

  text-transform: uppercase;
}

.footer span {
  font-size: 11px;
}


/* ================================
   RESPONSIVE — TABLET
================================ */

@media (max-width: 1024px) {

  .container {
    width:
      min(
        100% - 50px,
        var(--container)
      );
  }

  .invitation-grid {
    gap: 50px;

    grid-template-columns:
      minmax(0, 1fr)
      minmax(300px, 0.75fr);
  }

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

  .detail-card {
    min-height: auto;

    padding:
      55px
      30px;

    border-right: 0;

    border-bottom:
      1px solid rgba(33, 24, 32, 0.16);
  }

  .detail-card:last-child {
    border-bottom: 0;
  }

  .detail-index {
    margin-bottom: 50px;
  }

  .rsvp-grid {
    grid-template-columns:
      0.7fr
      1fr;

    gap: 50px;
  }

  .attendance-options {
    grid-template-columns:
      1fr;
  }

  .radio-card {
    min-height: 75px;

    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    gap: 15px;
  }
}


/* ================================
   RESPONSIVE — MOBILE
================================ */

@media (max-width: 760px) {

  .container {
    width:
      calc(100% - 36px);
  }

  .section {
    padding:
      95px
      0;
  }


  /* Header */

  .header {
    height: 72px;

    padding:
      0
      18px;
  }

  .menu-button {
    display: block;

    margin-left: auto;
  }

  .navigation {
    position: fixed;

    z-index: 1001;

    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 32px;

    margin: 0;

    background: var(--blackberry);

    color: white;

    opacity: 0;
    visibility: hidden;

    transform:
      translateY(-15px);

    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .navigation.open {
    opacity: 1;
    visibility: visible;

    transform:
      translateY(0);
  }

  .navigation a {
    font-family: var(--serif);

    font-size: 32px;
    font-weight: 400;

    letter-spacing: 0;

    text-transform: none;
  }

  .header:has(.navigation.open) {
    color: white;
  }


  /* Hero */

  .hero {
    min-height:
      100svh;
  }

  .hero-content {
    padding:
      110px
      0
      65px;
  }

  .hero-title {
    flex-direction: column;

    gap: 0;

    font-size:
      clamp(75px, 26vw, 125px);

    line-height: 0.7;
  }

  .hero-title i {
    margin:
      14px
      0;

    font-size: 0.4em;
  }

  .hero-date {
    margin-top: 40px;
  }

  .hero-button {
    margin-top: 50px;
  }

  .hero-year {
    bottom: 20px;

    font-size: 18px;
  }

  .hero-year-left {
    left: 18px;
  }

  .hero-year-right {
    right: 18px;
  }


  /* Invitation */

  .invitation-grid {
    grid-template-columns:
      1fr;

    gap: 60px;
  }

  .invitation-text h2 {
    font-size:
      clamp(50px, 14vw, 68px);
  }

  .portrait-photo {
    width: 92%;

    margin-left: auto;
  }


  /* Date */

  .date-section {
    min-height: 490px;
  }

  .big-date {
    gap: 14px;
  }

  .big-date > span {
    font-size:
      clamp(115px, 36vw, 170px);
  }

  .big-date div {
    padding-left: 14px;
  }

  .big-date p {
    font-size: 30px;
  }


  /* Countdown */

  .countdown {
    display: grid;

    grid-template-columns:
      1fr
      1fr;

    gap: 45px 20px;
  }

  .countdown-divider {
    display: none;
  }

  .countdown-item {
    min-width: 0;
  }

  .countdown-item strong {
    font-size:
      clamp(65px, 19vw, 90px);
  }


  /* Full image */

  .full-photo {
    height: 670px;
    min-height: 0;
  }

  .full-photo img {
    object-position: 55% center;
  }


  /* Program */

  .section-heading h2 {
    font-size:
      clamp(55px, 16vw, 78px);
  }

  .timeline {
    margin-top: 70px;
  }

  .timeline::before {
    left: 79px;
  }

  .timeline-item {
    grid-template-columns:
      62px
      35px
      1fr;

    min-height: 190px;
  }

  .timeline-item time {
    font-size: 22px;
  }

  .timeline-dot::before {
    top: 13px;
    left: 12px;
  }

  .timeline-text {
    padding-left: 10px;
  }


  /* Mood */

  .mood {
    grid-template-columns:
      1fr;

    grid-template-rows:
      auto;
  }

  .mood-image-one,
  .mood-image-two {
    min-height: 530px;

    grid-row: auto;
  }

  .mood-content {
    min-height: auto;

    padding:
      90px
      22px;
  }

  .mood-content h2 {
    font-size:
      clamp(52px, 14vw, 70px);
  }


  /* Details */

  .detail-card {
    padding:
      50px
      20px;
  }


  /* RSVP */

  .rsvp-grid {
    grid-template-columns:
      1fr;

    gap: 65px;
  }

  .rsvp-intro {
    position: static;
  }

  .rsvp-intro h2 {
    font-size:
      clamp(78px, 23vw, 110px);
  }

  .rsvp-form-wrapper {
    margin:
      0
      -8px;

    padding:
      35px
      22px;
  }

  .form-group input[type="text"],
  .form-group textarea,
  .form-group select {
    font-size: 21px;
  }

}


/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 430px) {

  .hero-title {
    font-size:
      clamp(68px, 24vw, 100px);
  }

  .hero-date {
    font-size: 9px;

    letter-spacing: 0.17em;
  }

  .big-date > span {
    font-size: 110px;
  }

  .big-date p {
    font-size: 25px;
  }

  .full-photo {
    height: 600px;
  }

  .timeline-item {
    grid-template-columns:
      56px
      30px
      1fr;
  }

  .timeline::before {
    left: 69px;
  }

  .timeline-dot::before {
    left: 9px;
  }

  .rsvp-form-wrapper {
    margin:
      0
      -5px;
  }

}


/* ================================
   ACCESSIBILITY / REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }

}

/* =================================
   PHOTO ART DIRECTION
================================= */

.hero-image img {
  filter:
    brightness(0.72)
    contrast(1.06)
    saturate(0.78);
}

.hero-shade {
  background:
    linear-gradient(
      180deg,
      rgba(24, 13, 20, 0.40) 0%,
      rgba(37, 17, 27, 0.18) 42%,
      rgba(22, 13, 19, 0.78) 100%
    ),
    linear-gradient(
      90deg,
      rgba(48, 18, 31, 0.30),
      transparent 50%,
      rgba(25, 15, 23, 0.28)
    );
}


/* Торт — оставляем тёплым и сливочным */

.portrait-photo img {
  filter:
    saturate(0.82)
    contrast(0.98)
    brightness(1.02);
}


/* Атмосферное большое фото */

.full-photo img {
  filter:
    saturate(0.78)
    contrast(1.04)
    brightness(0.82);
}

.full-photo-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(35, 16, 27, 0.06),
      rgba(35, 16, 27, 0.57)
    );
}


/* Mood */

.mood-image img {
  filter:
    saturate(0.72)
    contrast(1.03);
}


/* Небольшой винный оттенок поверх фото */

.mood-image {
  position: relative;
}

.mood-image::after {
  content: "";
  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    rgba(71, 24, 42, 0.06);

  mix-blend-mode: multiply;
}

/* ================================
   PHOTO COLOR CORRECTION
================================ */

/* HERO — оставляем фотографию цветной */
.hero-image img {
    object-position: center 42%;

    filter:
        brightness(0.78)
        contrast(1.04)
        saturate(1.08);

    animation: heroZoom 15s ease-out both;
}

.hero-shade {
    background:
        linear-gradient(
            180deg,
            rgba(24, 13, 20, 0.28) 0%,
            rgba(24, 13, 20, 0.08) 38%,
            rgba(24, 13, 20, 0.67) 100%
        ),
        linear-gradient(
            90deg,
            rgba(30, 16, 24, 0.20),
            transparent 50%,
            rgba(30, 16, 24, 0.18)
        );
}


/* MOOD — глубокий wine, но без грязного фильтра */
.mood-image img {
    filter:
        contrast(1.02)
        saturate(0.92);

    transition: transform 1.3s ease;
}


/* Первая фотография — свечи и бордовые цветы */
.mood-image-one img {
    object-position: center center;
}


/* Вторая — акцент именно на торт и ягоды */
.mood-image-two img {
    object-position: center 48%;
}


/* Очень лёгкий общий винный тон */
.mood-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(60, 20, 36, 0.025);

    pointer-events: none;
}