@font-face {
  font-family: "Cantarell";
  src: url("assets/fonts/Cantarell-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Cantarell";
  src: url("assets/fonts/Cantarell-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Cantarell";
  src: url("assets/fonts/Cantarell-Oblique.ttf") format("truetype");
  font-weight: 400;
  font-style: oblique;
}

@font-face {
  font-family: "Cantarell";
  src: url("assets/fonts/Cantarell-BoldOblique.ttf") format("truetype");
  font-weight: 700;
  font-style: oblique;
}

@font-face {
  font-family: "Corporate A Pro";
  src: url("assets/fonts/CorporateAPro-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Corporate A Pro";
  src: url("assets/fonts/CorporateAPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Corporate A Pro";
  src: url("assets/fonts/CorporateAPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Hello Santuy";
  src: url("assets/fonts/HelloSantuy.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Priestacy";
  src: url("assets/fonts/Priestacy.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Adventures Unlimited";
  src: url("assets/fonts/AdventuresUnlimited-ScriptRg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #1e1b19;
  /* Cod Gray */
  --bg-soft: #6d4f3e;
  /* Tobacco Brown */
  --ink: #c0b3a5;
  /* Malta */
  --muted: #b79f87;
  --line: rgba(192, 179, 165, 0.28);
  --card: rgba(30, 27, 25, 0.82);
  --card-border: rgba(166, 137, 112, 0.48);
  --accent: #d2b79d;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Cantarell", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.opener-locked {
  overflow: hidden;
}

body.opener-locked header,
body.opener-locked main,
body.opener-locked footer {
  visibility: hidden;
}

.video-opener {
  position: fixed;
  inset: 0;
  z-index: 140;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.video-opener video,
.video-opener-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: contrast(1.02) saturate(1.02);
  transform: scale(1.01);
  transform-origin: center;
  transition: filter 0.8s ease, transform 0.8s ease;
}

.video-opener-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  text-align: center;
  padding: 20px 20px 42px;
  background:
    linear-gradient(180deg, rgba(41, 28, 17, 0.22) 0%, rgba(41, 28, 17, 0.46) 100%);
}

.video-opener-instruction {
  margin: 0;
  color: #c0b3a5;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  text-shadow: 0 2px 9px rgba(21, 13, 8, 0.55);
}

.video-opener.is-playing .video-opener-overlay {
  opacity: 0.12;
  transition: opacity 1.4s ease;
}

.video-opener.is-playing video {
  animation: openerDreamZoom 9s ease-out forwards;
}

.video-opener.is-transitioning video,
.video-opener.is-transitioning .video-opener-image {
  transform: scale(1.26);
  filter: contrast(1.06) saturate(1.06) brightness(0.92) blur(4.5px);
  transition: transform 1.5s ease, filter 1.5s ease;
}

.video-opener.is-transitioning .video-opener-overlay {
  opacity: 0;
  background: rgba(32, 20, 12, 0.55);
  transition: opacity 1.6s ease, background-color 1.6s ease;
}

.video-opener.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes openerDreamZoom {
  0% {
    transform: scale(1.02);
    filter: contrast(1.03) saturate(1.03);
  }

  60% {
    transform: scale(1.12);
    filter: contrast(1.04) saturate(1.04) blur(1.3px);
  }

  100% {
    transform: scale(1.2);
    filter: contrast(1.05) saturate(1.05) brightness(0.94) blur(2.8px);
  }
}

h1,
h2,
h3 {
  font-family: "Corporate A Pro", sans-serif;
  letter-spacing: 0.01em;
}

.hero-kicker,
.section-label {
  font-family: "Corporate A Pro", sans-serif;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: start center;
  overflow: hidden;
  padding: 28px 16px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(230px, 40vh, 500px);
  background: linear-gradient(180deg,
      rgba(30, 27, 25, 0) 0%,
      rgba(30, 27, 25, 0.5) 36%,
      rgba(30, 27, 25, 0.86) 68%,
      var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(calc(var(--hero-scale, 1) * 1.08));
  transform-origin: center;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 42%;
  filter: sepia(0.16) saturate(1) brightness(1.1) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: var(--hero-overlay-opacity, 1);
  background:
    linear-gradient(180deg, rgba(252, 249, 244, 0.7) 0%, rgba(252, 249, 244, 0.32) 20%, rgba(252, 249, 244, 0) 48%),
    linear-gradient(180deg, rgba(30, 27, 25, 0) 62%, rgba(30, 27, 25, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  text-align: left;
  margin-right: auto;
  margin-top: 0;
  padding-top: clamp(10px, 3vh, 32px);
  padding-left: clamp(10px, 4vw, 36px);
  transform: translateY(var(--hero-content-shift, 0px));
  opacity: var(--hero-content-opacity, 1);
}

.hero-kicker {
  margin: 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.88rem;
  font-family: "Cantarell", sans-serif;
  color: var(--ink);
  text-shadow: 0 2px 10px rgba(26, 16, 9, 0.65);
}

.hero h1 {
  margin: 0 0 10px;
  max-width: 760px;
  width: fit-content;
  line-height: 0.98;
  font-size: clamp(2.1rem, 5.7vw, 3.95rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #2a241f;
  text-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hero h1 .hero-name.amp {
  color: #2a241f;
  font-family: "Allura", "Hello Santuy", "Corporate A Pro", serif;
  font-size: 0.8em;
  font-weight: 300;
  align-self: center;
  padding: 0;
  line-height: 1;
  letter-spacing: 0.005em;
  transform: translate(-12px, 2px) scaleX(0.68) scaleY(0.94);
}

.hero h1 .hero-chip {
  background: transparent;
  color: #2a241f;
}

.hero h1 .hero-name {
  font-family: "Hello Santuy", "Corporate A Pro", serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-kerning: normal;
  padding: 0;
}

.hero h1 .hero-apostrophe {
  display: inline-block;
  font-family: "Adventures Unlimited", "Hello Santuy", "Corporate A Pro", serif;
  font-size: 0.84em;
  line-height: 1;
  margin-left: -0.02em;
  margin-right: -0.03em;
  transform: translateY(-1px);
}

.hero h1 .no-break {
  white-space: nowrap;
}

.hero-subtitle {
  margin: 2px 0 0;
  margin-left: 7ch;
  color: #322a23;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-shadow: none;
  font-family: "Cantarell", sans-serif;
  font-weight: 500;
  display: inline-block;
  text-align: left;
  padding: 0;
  background: transparent;
}

.hero-link {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: inline-block;
  margin-top: 0;
  padding: 0;
  border: none;
  color: var(--ink);
  text-decoration: none;
  font-size: 2.1rem;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(26, 16, 9, 0.62);
  transform: translateX(-50%);
  transition: transform 0.25s ease, background-color 0.25s ease;
  z-index: 3;
}

.hero-link:hover {
  transform: translate(-50%, 2px);
  background: transparent;
}

.hero-scroll {
  animation: hero-nudge 1.7s ease-in-out infinite;
}

@keyframes hero-nudge {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 4px);
  }
}

.section {
  padding: 50px 16px;
}

.container {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.container.narrow {
  width: min(740px, 100%);
}

.section-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 400;
  font-family: "Cantarell", sans-serif;
}

h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3.3vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: 0;
  word-spacing: -0.04em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
}

.details {
  background: var(--bg);
  --detail-date-size: 0.74rem;
  --detail-date-weight: 400;
  --detail-date-letter-spacing: 0.08em;
  --detail-title-size: 1.48rem;
  --detail-title-weight: 500;
  --detail-time-size: 0.78rem;
  --detail-time-weight: 400;
  --detail-time-letter-spacing: 0.08em;
  --detail-location-size: 1rem;
  --detail-location-weight: 400;
  --detail-location-letter-spacing: 0.01em;
}

.details .container {
  width: min(var(--max), 100%);
}

.details .section-label {
  margin-bottom: 12px;
  text-align: left;
}

.details h2 {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.34rem, 2.05vw, 1.95rem);
  line-height: 1.1;
  text-align: left;
  white-space: normal;
}

.details-grid {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.detail-card {
  background: var(--card);
  border: 1px solid rgba(166, 137, 112, 0.52);
  border-radius: 16px;
  padding: 18px 18px 17px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  backdrop-filter: blur(1px);
  box-shadow: inset 0 1px 0 rgba(210, 183, 157, 0.05);
}

.detail-card:not(.detail-card-day) {
  min-height: 128px;
}

.details-grid .detail-card.reveal {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-grid .detail-card.reveal:nth-child(even) {
  transform: translateX(44px);
}

.details-grid .detail-card.reveal.show {
  opacity: 1;
  transform: translateX(0);
}

.detail-card-day {
  grid-column: auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.detail-card-day::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(210, 183, 157, 0.04) 0%, rgba(210, 183, 157, 0) 26%);
}

.detail-date {
  margin: 0 0 4px;
  padding: 4px 10px 3px;
  border: 1px solid rgba(166, 137, 112, 0.45);
  border-radius: 999px;
  background: rgba(52, 40, 32, 0.45);
  color: var(--accent);
  text-transform: none;
  letter-spacing: var(--detail-location-letter-spacing);
  font-size: var(--detail-time-size);
  font-weight: var(--detail-time-weight);
  font-family: "Cantarell", sans-serif;
  line-height: 1.15;
}

.detail-card h3 {
  margin: 0;
  font-size: var(--detail-title-size);
  font-weight: var(--detail-title-weight);
  text-transform: none;
  letter-spacing: 0;
  word-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
}

.detail-meta {
  margin-top: 8px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(166, 137, 112, 0.34);
  display: grid;
  gap: 4px;
}

.detail-card:not(.detail-card-day) .detail-meta {
  margin-top: auto;
}

.detail-event {
  width: 100%;
  position: relative;
}

.detail-event+.detail-event {
  margin-top: 20px;
  padding-top: 20px;
  border-top: none;
  position: relative;
}

.detail-card-day .detail-event+.detail-event::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(166, 137, 112, 0) 0%,
      rgba(166, 137, 112, 0.34) 18%,
      rgba(166, 137, 112, 0.34) 82%,
      rgba(166, 137, 112, 0) 100%);
}

.detail-card-day .detail-event+.detail-event::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(166, 137, 112, 0.66);
  box-shadow: 0 0 0 2px rgba(30, 27, 25, 0.9);
}

.detail-card-day .detail-meta {
  border-top-color: rgba(166, 137, 112, 0.3);
}

.detail-card-day .detail-event {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.detail-card-day.reveal.show .detail-event {
  opacity: 1;
  transform: translateY(0);
}

.detail-card-day.reveal.show .detail-event:nth-of-type(2) {
  transition-delay: 0.14s;
}

.detail-time {
  margin: 0;
  font-size: var(--detail-time-size);
  font-weight: var(--detail-time-weight);
  text-transform: uppercase;
  letter-spacing: var(--detail-time-letter-spacing);
  font-family: "Cantarell", sans-serif;
  color: var(--muted);
  line-height: 1.2;
}

.detail-location {
  margin: 0;
  font-size: var(--detail-location-size);
  font-weight: var(--detail-location-weight);
  line-height: 1.28;
  text-transform: none;
  letter-spacing: var(--detail-location-letter-spacing);
  color: var(--ink);
}

.gallery {
  background: var(--bg);
}

.gallery-copy {
  margin-bottom: 24px;
}

.gallery-roll {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.gallery-scroll {
  --gallery-card-width: min(68%, 560px);
  --gallery-card-height: clamp(260px, 44vw, 470px);
  --gallery-side-scale: 0.48;
  --gallery-transition-duration: 1150ms;
  --gallery-transition-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gallery-side-width: calc(var(--gallery-card-width) * var(--gallery-side-scale));
  --gallery-gap: clamp(38px, 5vw, 90px);
  --gallery-side-offset: calc(((var(--gallery-card-width) + var(--gallery-side-width)) * 0.5) + var(--gallery-gap));
  --gallery-left-shift: calc(-1 * var(--gallery-side-offset));
  --gallery-right-shift: var(--gallery-side-offset);
  --entry-progress: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  height: var(--gallery-card-height);
  border-radius: 16px;
  padding: 0;
  perspective: 1400px;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-scroll.is-dragging,
.gallery-scroll.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.gallery-card {
  --card-shift: 0px;
  --card-scale: 1;
  --card-tilt: 0deg;
  --card-opacity: 0;
  margin: 0;
  display: block;
  width: var(--gallery-card-width);
  height: var(--gallery-card-height);
  position: absolute;
  left: 50%;
  top: 0;
  border-radius: 18px;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
  transition:
    opacity var(--gallery-transition-duration) var(--gallery-transition-ease),
    transform var(--gallery-transition-duration) var(--gallery-transition-ease);
  opacity: calc(var(--card-opacity) * (0.2 + (0.8 * var(--entry-progress))));
  transform: translateX(calc(-50% + var(--card-shift))) scale(calc(var(--card-scale) * (0.84 + (0.16 * var(--entry-progress))))) rotateY(calc(var(--card-tilt) * var(--entry-progress)));
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}

.gallery-card[data-position="center"] {
  --card-shift: 0px;
  --card-scale: 1;
  --card-tilt: 0deg;
  --card-opacity: 1;
  z-index: 3;
}

.gallery-card[data-position="left"] {
  --card-shift: var(--gallery-left-shift);
  --card-scale: var(--gallery-side-scale);
  --card-tilt: 0deg;
  --card-opacity: 1;
  opacity: 0.9;
  z-index: 2;
}

.gallery-card[data-position="right"] {
  --card-shift: var(--gallery-right-shift);
  --card-scale: var(--gallery-side-scale);
  --card-tilt: 0deg;
  --card-opacity: 1;
  opacity: 0.9;
  z-index: 2;
}

.gallery-card[data-position="hidden-left"] {
  --card-shift: calc(-1 * var(--gallery-side-offset) * 2.2);
  --card-scale: 0.48;
  --card-tilt: 26deg;
  --card-opacity: 0;
  z-index: 1;
}

.gallery-card[data-position="hidden-right"] {
  --card-shift: calc(var(--gallery-side-offset) * 2.2);
  --card-scale: 0.48;
  --card-tilt: -26deg;
  --card-opacity: 0;
  z-index: 1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  -webkit-user-drag: none;
  filter: grayscale(1) saturate(0.72) contrast(1.02) brightness(0.9);
  transition: filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-card[data-position="center"] img,
.gallery-card[data-position="left"] img,
.gallery-card[data-position="right"] img {
  box-shadow: 0 10px 28px rgba(12, 10, 9, 0.22);
}

.gallery-card[data-position="center"] img {
  filter: grayscale(0) saturate(1.02) contrast(1.04) brightness(1);
}

.gallery-card[data-position="left"] img,
.gallery-card[data-position="right"] img {
  filter: grayscale(1) saturate(0.7) contrast(1.02) brightness(0.88);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(166, 137, 112, 0.48);
  background: rgba(20, 17, 15, 0.82);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}

.gallery-arrow:hover {
  background: rgba(30, 27, 25, 0.92);
}

.gallery-arrow-prev {
  left: 10px;
}

.gallery-arrow-next {
  right: 10px;
}

.rsvp {
  background: var(--bg);
}

.rsvp-policy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 64ch;
}

.rsvp-form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.invitees-block {
  border: 1px solid rgba(166, 137, 112, 0.46);
  background: rgba(30, 27, 25, 0.74);
  border-radius: 12px;
  padding: 12px;
}

.invitees-title {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.invitees-note {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.guest-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 12px;
}

.guest-stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(166, 137, 112, 0.54);
  background: rgba(30, 27, 25, 0.9);
  color: var(--ink);
  font-family: "Cantarell", sans-serif;
  font-size: 1.14rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.guest-stepper-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.guest-stepper-value {
  min-width: 24px;
  text-align: center;
  font-family: "Corporate A Pro", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--ink);
}

.invitees-fields {
  display: grid;
  gap: 10px;
}

.invitee-card {
  border: 1px solid rgba(166, 137, 112, 0.34);
  border-radius: 12px;
  background: rgba(30, 27, 25, 0.7);
  padding: 11px 10px;
}

.invitee-card-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Corporate A Pro", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}

.rsvp-form label {
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
  color: var(--ink);
}

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

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(166, 137, 112, 0.4);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: rgba(30, 27, 25, 0.88);
}

.rsvp-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.rsvp-form textarea {
  resize: none;
  overflow: hidden;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: 1px solid rgba(210, 183, 157, 0.82);
  border-color: rgba(210, 183, 157, 0.82);
}

.rsvp-form button {
  margin-top: 4px;
  border: 1px solid rgba(210, 183, 157, 0.72);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(109, 79, 62, 0.6);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.rsvp-form button:hover {
  background: rgba(109, 79, 62, 0.78);
  transform: translateY(-1px);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
}

.closing {
  position: relative;
  padding: 0;
  min-height: clamp(273px, 43vw, 637px);
  display: grid;
  align-items: end;
  background-image: url("assets/closing-hearts-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 40% top;
}

.closing .container {
  width: 100%;
  max-width: none;
}

.closing-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  border-top: none;
  padding: 0 16px 130px;
  margin-top: 0;
}

.closing-wrap p {
  margin: 0;
  color: #2a241f;
  font-family: "Corporate A Pro", sans-serif;
  font-size: calc(clamp(1.05rem, 2.4vw, 1.5rem) + 0.0417rem);
  line-height: 1.2;
  font-weight: 400;
  text-shadow: none;
}

@media (min-width: 901px) {
  .closing {
    min-height: 0;
    aspect-ratio: 2.44 / 1;
    background-position: center center;
  }

  .closing-wrap {
    padding-left: clamp(28px, 4vw, 72px);
    padding-right: clamp(28px, 4vw, 72px);
    padding-bottom: clamp(400px, 26vw, 540px);
  }

  .closing-wrap p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.9rem, 2.45vw, 3.15rem);
    line-height: 1.12;
    text-align: center;
  }

  .closing-wrap .closing-line {
    display: inline-block;
    white-space: nowrap;
  }
}

.footer {
  background: var(--bg);
  border-top: 1px solid rgba(109, 79, 62, 0.88);
  text-align: center;
  padding: 26px 16px 34px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.footer p {
  margin: 0;
  font-family: "Corporate A Pro", sans-serif;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.footer-love {
  font: inherit;
}

.footer-family {
  display: inline-block;
  margin-top: 4px;
  font-family: "Corporate A Pro", sans-serif;
  font-size: 0.74em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.42;
}


.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1099px) {
  .details-grid {
    margin-top: 20px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-card-day {
    grid-column: auto;
  }

  .details h2 {
    max-width: 100%;
    font-size: clamp(1.45rem, 6.2vw, 1.86rem);
    line-height: 1.14;
  }

  .details {
    --detail-title-size: 1.36rem;
    --detail-location-size: 0.95rem;
  }

  .detail-card {
    min-height: 0;
    padding: 16px 15px 14px;
  }
}

@media (min-width: 1100px) {
  .hero-content {
    width: min(640px, 44vw);
    margin-left: auto;
    margin-right: 0;
    padding-top: clamp(180px, 23vh, 300px);
    padding-left: 0;
    padding-right: clamp(8px, 2vw, 28px);
    text-align: right;
  }

  .hero h1 {
    margin-left: auto;
    align-items: flex-end;
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0.5ch;
    text-align: right;
  }

  .closing-wrap {
    padding-bottom: clamp(430px, 28vw, 580px);
  }

  .closing-wrap p {
    font-size: clamp(2.15rem, 2.7vw, 3.35rem);
  }
}

@media (max-width: 900px) {
  .video-opener-instruction {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: 100dvh;
    min-height: 100svh;
    place-items: start center;
    padding: 22px 16px 32px;
  }

  .hero-media img {
    object-position: 32% 34%;
    filter: sepia(0.1) saturate(1.04) brightness(1.24) contrast(1.03);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(252, 249, 244, 0.78) 0%, rgba(252, 249, 244, 0.36) 22%, rgba(252, 249, 244, 0) 50%),
      linear-gradient(180deg, rgba(30, 27, 25, 0) 65%, rgba(30, 27, 25, 0.2) 100%);
  }

  .hero-content {
    text-align: left;
    margin-right: 0;
    margin-top: 0;
    padding-top: clamp(8px, 2.8vh, 24px);
    padding-left: clamp(8px, 3vw, 14px);
    width: min(700px, 100%);
  }
  .gallery-scroll {
    --gallery-card-width: min(74%, 520px);
    --gallery-card-height: clamp(240px, 75vw, 420px);
    --gallery-side-scale: 0.58;
    --gallery-transition-duration: 860ms;
    --gallery-side-width: calc(var(--gallery-card-width) * var(--gallery-side-scale));
    --gallery-gap: clamp(24px, 6vw, 52px);
    --gallery-side-offset: calc(((var(--gallery-card-width) + var(--gallery-side-width)) * 0.5) + var(--gallery-gap));
  }

  .gallery-card {
    width: var(--gallery-card-width);
    height: var(--gallery-card-height);
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .gallery-arrow-prev {
    left: 6px;
  }

  .gallery-arrow-next {
    right: 6px;
  }

  .section {
    padding: 40px 16px;
  }

}
