/* =========================================
   OBSIDIAN / GLOBAL
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: 16px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.055), transparent 34rem),
    var(--color-obsidian);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 15%, rgba(255, 255, 255, 0.025), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.008) 0, rgba(255, 255, 255, 0.008) 1px, transparent 1px, transparent 3px);
  content: "";
  pointer-events: none;
}

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

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

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

button {
  min-height: 44px;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 4px;
}

.main-suite {
  position: relative;
  isolation: isolate;
}

.site-view[hidden],
[hidden],
.hidden {
  display: none !important;
}

#moments,
#countdown,
#story,
#rsvp,
#gifting,
#details,
#faq {
  scroll-margin-top: 96px;
}

/* =========================================
   SMOKED GLASS TOP DOCK
========================================= */
.floating-nav {
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 50%;
  width: min(94vw, 1040px);
  padding: 0 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 3px;
  background: rgba(10, 10, 12, 0.85);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3.2vw, 42px);
  min-height: 54px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 52px;
  color: rgba(243, 239, 230, 0.72);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.65);
  content: "";
  transition: transform 300ms var(--ease-cinematic);
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--color-gold-light);
}

.nav-links a:hover::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
}

/* =========================================
   CINEMATIC HERO
========================================= */
.hero-section {
  position: relative;
  display: grid;
  min-height: min(780px, 100vh);
  min-height: min(780px, 100svh);
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(213, 180, 100, 0.105), transparent 31%),
    linear-gradient(180deg, #08080a, #121216 72%, #0a0a0c);
}

.hero-media-wrapper,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media-wrapper {
  z-index: -2;
  overflow: hidden;
  background: #0a0a0c;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(0.55) brightness(0.48);
  transform: scale(1.025);
  transition: transform 9s ease, filter 1.2s ease;
}

.hero-slide.is-active .hero-image {
  transform: scale(1.08);
}

.hero-slide.is-placeholder .hero-image {
  opacity: 0;
}

.hero-overlay {
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(14, 13, 12, 0.04) 0%, rgba(10, 10, 12, 0.2) 30%, rgba(10, 10, 12, 0.74) 78%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.48), transparent 24%, transparent 60%, #0a0a0c 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100% - 36px, 1060px);
  min-height: 500px;
  place-items: center;
  padding: 118px 0 112px;
  text-align: center;
}

.hero-copy {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms ease, transform 1000ms var(--ease-cinematic);
  pointer-events: none;
}

.hero-copy.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow,
.eyebrow,
.hero-meta {
  color: var(--color-gold-light);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.8;
  text-transform: uppercase;
}

.hero-title {
  max-width: 1000px;
  margin: 16px auto 14px;
  color: #f8f5ef;
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.89;
  text-wrap: balance;
  text-shadow: 0 5px 48px rgba(0, 0, 0, 0.7);
}

.hero-meta {
  margin: 0;
  color: rgba(243, 239, 230, 0.8);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.hero-pagination {
  position: absolute;
  z-index: 3;
  bottom: 43px;
  left: 50%;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-indicator {
  width: 22px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-indicator::after {
  display: block;
  height: 1px;
  background: rgba(243, 239, 230, 0.42);
  content: "";
  transition: background 200ms ease;
}

.hero-indicator.is-active::after,
.hero-indicator:hover::after {
  background: var(--color-gold);
}

.hero-arrows {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 5vw, 68px);
  bottom: 32px;
  display: flex;
  gap: 8px;
}

.hero-arrow,
.moments-arrow {
  display: grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.64);
  color: var(--color-gold-light);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.hero-arrow:hover,
.moments-arrow:hover {
  transform: translateY(-2px);
  background: var(--color-gold);
  color: var(--color-obsidian);
}

/* =========================================
   COUNTDOWN TICKER
========================================= */
.countdown-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(212, 175, 55, 0.55);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(90deg, #0a0a0c, #171611 50%, #0a0a0c);
}

.countdown-container {
  display: flex;
  width: min(100% - 36px, 1100px);
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 18px 0;
}

.countdown-label {
  max-width: 180px;
  color: var(--color-gold-light);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.countdown-units {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.7vw, 36px);
}

.countdown-box {
  display: grid;
  min-width: 52px;
  justify-items: center;
  gap: 1px;
}

.countdown-box .num {
  color: #f4eedf;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-box .unit {
  color: var(--color-text-muted);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-units .sep {
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.btn-calendar {
  flex: 0 0 auto;
  padding: 9px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--color-gold-light);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 200ms ease, border-color 200ms ease;
}

.btn-calendar:hover {
  border-color: #f0d997;
  color: #fff4d1;
}

/* =========================================
   VIP OBSIDIAN CREDENTIAL
========================================= */
.formal-invite-section {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 108px 22px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.075), transparent 52%),
    linear-gradient(180deg, #0a0a0c, #101013 55%, #0a0a0c);
}

.invite-card-outer {
  position: relative;
  width: min(100%, 760px);
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(10, 10, 12, 0.48);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), var(--shadow-gold);
}

.invite-card-inner {
  position: relative;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 68px clamp(28px, 7vw, 84px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.07), transparent 48%),
    rgba(18, 18, 22, 0.92);
  color: #f3efe6;
  text-align: center;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}

.invite-card-inner::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  content: "";
  pointer-events: none;
}

.invite-card-inner > * {
  position: relative;
  z-index: 1;
}

.invite-card-inner .corner-flourish {
  width: 46px;
  height: 46px;
  opacity: 0.18;
  filter: sepia(1) saturate(1.5);
  pointer-events: none;
}

.corner-flourish--top-left {
  position: absolute;
  top: 20px;
  left: 20px;
}

.corner-flourish--top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  transform: rotate(90deg);
}

.corner-flourish--bottom-right {
  position: absolute;
  right: 20px;
  bottom: 20px;
  transform: rotate(180deg);
}

.corner-flourish--bottom-left {
  position: absolute;
  bottom: 20px;
  left: 20px;
  transform: rotate(270deg);
}

.credential-watermark {
  position: absolute;
  inset: auto 0 4%;
  color: rgba(212, 175, 55, 0.045);
  font-family: var(--font-serif);
  font-size: clamp(8rem, 24vw, 15rem);
  line-height: 0.8;
  pointer-events: none;
}

.wedding-crest-mark {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin-bottom: 27px;
  border: 1px solid rgba(212, 175, 55, 0.68);
  border-radius: 50%;
  color: var(--color-gold-light);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.06), 0 0 30px rgba(212, 175, 55, 0.2);
}

.wedding-crest-mark::before,
.wedding-crest-mark::after {
  position: absolute;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 50%;
  content: "";
}

.wedding-crest-mark::before {
  inset: 5px;
}

.wedding-crest-mark::after {
  inset: -7px;
  border-color: rgba(212, 175, 55, 0.14);
}

.wedding-crest-image {
  position: absolute;
  z-index: 2;
  width: 57%;
  height: 57%;
  object-fit: contain;
  filter: sepia(1) saturate(1.6) brightness(1.2);
}

.crest-letters {
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.invite-pre,
.invite-request,
.invite-location,
.invite-reception-note,
.invite-recipient {
  max-width: 520px;
  margin: 0;
  color: rgba(243, 239, 230, 0.73);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  line-height: 1.8;
  text-transform: uppercase;
}

.invite-pre {
  color: var(--color-gold-light);
}

.invite-names {
  margin: 11px 0 17px;
  color: #fffaf0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 300;
  letter-spacing: 0.015em;
  line-height: 0.98;
}

.invite-request {
  margin-bottom: 20px;
}

.invite-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 3px 0 15px;
  color: var(--color-gold-light);
  text-transform: uppercase;
}

.day-text,
.month-year {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.date-num {
  padding: 0 15px;
  border-right: 1px solid rgba(212, 175, 55, 0.55);
  border-left: 1px solid rgba(212, 175, 55, 0.55);
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
}

.invite-location {
  color: #f3efe6;
}

.invite-reception-note {
  margin-top: 7px;
  color: var(--color-text-muted);
  font-size: 0.57rem;
}

.invite-recipient {
  margin: 0 0 18px;
  color: var(--color-gold-light);
  font-size: 0.58rem;
}

/* =========================================
   CHAPTER PLATES / OUR STORY
========================================= */
.story-section,
.moments-gallery,
.guestbook-section,
.details-section,
.faq-section {
  padding: clamp(76px, 10vw, 132px) max(20px, calc((100vw - 1160px) / 2));
}

.story-section {
  background: linear-gradient(180deg, #0c0c0f, #111114 52%, #0a0a0c);
}

.section-header {
  max-width: 740px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-header .eyebrow,
.moments-heading .eyebrow,
.details-intro .eyebrow {
  display: block;
  margin-bottom: 9px;
}

.section-header h2,
.moments-heading h2,
.details-intro h1 {
  margin: 0;
  color: #f5f0e6;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}

.section-header > p {
  margin: 15px 0 0;
  color: var(--color-text-muted);
}

.ornament-divider {
  display: flex;
  width: min(240px, 70%);
  align-items: center;
  gap: 14px;
  margin: 26px auto 0;
  color: var(--color-gold);
}

.ornament-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65));
}

.ornament-divider span:last-child {
  transform: rotate(180deg);
}

.ornament-divider i {
  font-size: 0.7rem;
  font-style: normal;
}

.story-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  counter-reset: chapter;
}

.timeline-step {
  min-width: 0;
  counter-increment: chapter;
}

.timeline-dot {
  display: none;
}

.timeline-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 290px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 28px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.025), transparent 46%),
    linear-gradient(180deg, rgba(18, 18, 22, 0.97), rgba(12, 12, 15, 0.97));
  color: var(--color-text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color 260ms ease, transform 400ms var(--ease-cinematic), box-shadow 300ms ease;
}

.timeline-card::before {
  display: block;
  width: 100%;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.48);
  color: var(--color-gold-light);
  content: "CHAPTER 0" counter(chapter);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.timeline-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  border-right: 1px solid rgba(212, 175, 55, 0.35);
  content: "";
  opacity: 0.6;
  transition: width 300ms ease, height 300ms ease, opacity 300ms ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.58);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38), 0 0 26px rgba(212, 175, 55, 0.07);
}

.timeline-card:hover::after {
  width: 70px;
  height: 70px;
  opacity: 1;
}

.timeline-date {
  color: var(--color-gold-light);
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.timeline-card-title {
  margin-top: 8px;
  color: #f7f2e8;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.15;
}

.timeline-card-copy {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

.timeline-card-hint {
  margin-top: auto;
  padding-top: 22px;
  color: rgba(212, 175, 55, 0.75);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================================
   CINEMA FILMSTRIP GALLERY
========================================= */
.moments-gallery {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(212, 175, 55, 0.045), transparent 48%),
    #09090b;
}

.moments-heading {
  max-width: 1160px;
  margin: 0 auto 27px;
}

.moments-heading h2 {
  max-width: 740px;
}

.moments-controls {
  display: flex;
  max-width: 1160px;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 auto 20px;
}

.moments-carousel {
  max-width: 1160px;
  margin: 0 auto;
  overflow: visible;
}

.moments-track {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
  overflow-x: auto;
  padding: 2px 2px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(212, 175, 55, 0.55) rgba(255, 255, 255, 0.07);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.moments-track::-webkit-scrollbar {
  height: 3px;
}

.moments-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.07);
}

.moments-track::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.6);
}

.moment-slide {
  position: relative;
  display: grid;
  width: clamp(270px, 42vw, 520px);
  min-width: clamp(270px, 42vw, 520px);
  aspect-ratio: 1.55 / 1;
  flex: 0 0 auto;
  align-items: end;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: center;
  border: 8px solid #050506;
  outline: 1px solid rgba(212, 175, 55, 0.3);
  outline-offset: -1px;
  background: #141417;
  color: #f3efe6;
  cursor: pointer;
  text-align: left;
}

.moment-slide::before,
.moment-slide::after {
  position: absolute;
  z-index: 3;
  width: 25px;
  height: 25px;
  border-color: rgba(212, 175, 55, 0.9);
  border-style: solid;
  content: "";
  pointer-events: none;
}

.moment-slide::before {
  top: 6px;
  left: 6px;
  border-width: 1px 0 0 1px;
}

.moment-slide::after {
  right: 6px;
  bottom: 6px;
  border-width: 0 1px 1px 0;
}

.moment-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.83);
  transition: transform 700ms var(--ease-cinematic), filter 400ms ease;
}

.moment-slide:hover img {
  transform: scale(1.045);
  filter: saturate(0.92) brightness(0.95);
}

.moment-slide:disabled {
  cursor: default;
}

.moment-slide.is-placeholder img {
  display: none;
}

.moment-slide.is-placeholder {
  cursor: default;
}

.gallery-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 30px;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.moment-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 44px 18px 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #f5f0e6;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.moment-caption::before {
  display: block;
  margin-bottom: 4px;
  color: var(--color-gold-light);
  content: "FRAME " counter(film, decimal-leading-zero);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
}

.moments-track {
  counter-reset: film;
}

.moment-slide {
  counter-increment: film;
}

/* =========================================
   RSVP / ACCESS DESK
========================================= */
.rsvp-section {
  position: relative;
  padding: clamp(78px, 10vw, 136px) 20px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.055), transparent 48%),
    linear-gradient(180deg, #101013, #09090b);
}

.rsvp-container {
  width: min(100%, 760px);
  margin: 0 auto;
}

.rsvp-container .section-header {
  margin-bottom: 38px;
}

.rsvp-deadline {
  margin: 16px 0 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.rsvp-box {
  position: relative;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(212, 175, 55, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 38%),
    rgba(18, 18, 22, 0.93);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 0 32px rgba(212, 175, 55, 0.045);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
}

.rsvp-box + .rsvp-box {
  margin-top: 18px;
}

.form-group {
  min-width: 0;
  margin: 0 0 22px;
}

.input-label {
  display: block;
  margin: 0 0 8px;
  color: #d8d1c3;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rsvp-box input:not([type="radio"]):not([type="checkbox"]),
.rsvp-box select,
.rsvp-box textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(243, 239, 230, 0.17);
  border-radius: 0;
  background: rgba(5, 5, 7, 0.68);
  color: #f3efe6;
  color-scheme: dark;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.rsvp-box textarea {
  min-height: 110px;
  resize: vertical;
}

.rsvp-box input::placeholder,
.rsvp-box textarea::placeholder {
  color: #78746c;
}

.rsvp-box input:focus,
.rsvp-box select:focus,
.rsvp-box textarea:focus {
  outline: 1px solid #d4af37;
  outline-offset: 0;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 0 22px rgba(212, 175, 55, 0.1);
  background: rgba(5, 5, 7, 0.9);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.radio-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.radio-pill {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-pill span {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid rgba(243, 239, 230, 0.2);
  color: #c8c2b6;
  font-size: 0.68rem;
  letter-spacing: 0.045em;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.radio-pill input:checked + span {
  border-color: rgba(212, 175, 55, 0.78);
  background: rgba(212, 175, 55, 0.09);
  color: var(--color-gold-light);
}

.radio-pill input:focus-visible + span {
  outline: 1px solid var(--color-gold);
  outline-offset: 3px;
}

.dietary-details {
  margin-top: 16px;
}

.guest-badge {
  margin-bottom: 25px;
  padding: 14px 17px;
  border-left: 2px solid var(--color-gold);
  background: rgba(212, 175, 55, 0.07);
  color: var(--color-gold-light);
  font-size: 0.78rem;
}

.guest-badge p {
  margin: 0;
}

.search-input-group {
  display: flex;
  gap: 10px;
}

.search-input-group input {
  flex: 1;
}

.btn-primary,
.gcash-button,
.details-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid rgba(238, 207, 137, 0.8);
  border-radius: 0;
  background: linear-gradient(135deg, #e5c385, #c29b38);
  color: #0a0a0c;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-primary:hover,
.gcash-button:hover,
.details-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 9px 26px rgba(212, 175, 55, 0.19);
}

.btn-primary:disabled {
  cursor: wait;
  filter: grayscale(0.4);
  opacity: 0.75;
}

.btn-full {
  width: 100%;
  margin-top: 5px;
}

.btn-spinner {
  font-size: inherit;
}

.error-msg {
  margin: 12px 0 0;
  color: #f2a2a2;
  font-size: 0.78rem;
}

/* =========================================
   REGISTRY / GUESTBOOK / FOOTER
========================================= */
.gifting-section {
  display: grid;
  min-height: 390px;
  place-items: center;
  padding: 72px 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.13);
  background: #0d0d10;
  text-align: center;
}

.gift-note {
  width: min(100%, 680px);
}

.gift-note h2 {
  margin: 10px 0;
  color: #f5f0e6;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 300;
  line-height: 1;
}

.gift-note p,
.guestbook-section .section-header > p {
  color: var(--color-text-muted);
}

.gcash-button {
  gap: 11px;
  margin-top: 13px;
}

.payment-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.guestbook-section {
  background: #0a0a0c;
}

.guestbook-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
}

.guestbook-note {
  padding: 23px;
  border: 1px solid rgba(212, 175, 55, 0.17);
  background: rgba(18, 18, 22, 0.8);
}

.guestbook-note p {
  margin: 0 0 13px;
  color: #d7d1c5;
}

.guestbook-note span {
  color: var(--color-gold-light);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.details-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 48px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  background: #111114;
  text-align: center;
}

.details-cta-wrap p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.site-footer {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 20px;
  background: #08080a;
  text-align: center;
}

.footer-monogram {
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1;
}

.footer-title {
  margin: 4px 0 0;
  color: #f3efe6;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.footer-date {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.59rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.studio-credit {
  margin: 26px 0 0;
  color: rgba(169, 164, 154, 0.72);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.studio-credit span {
  color: var(--color-gold-light);
}

/* =========================================
   EVENT DETAILS / ATTIRE / FAQ
========================================= */
.details-intro {
  display: grid;
  min-height: 460px;
  align-content: center;
  justify-items: center;
  padding: 120px 22px 70px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.08), transparent 48%),
    #0b0b0d;
  text-align: center;
}

.details-intro h1 {
  margin: 0;
}

.details-date {
  color: var(--color-gold-light);
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.details-section {
  background: #101013;
}

.wedding-day-timeline {
  display: grid;
  gap: 12px;
  max-width: 950px;
  margin: 0 auto 56px;
  padding: 0;
  list-style: none;
}

.wedding-day-stop {
  display: grid;
  grid-template-columns: minmax(82px, 130px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.wedding-day-time {
  align-self: center;
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-align: right;
}

.wedding-day-card {
  min-width: 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(18, 18, 22, 0.82);
}

.wedding-day-card-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 21px;
  border: 0;
  background: transparent;
  color: #f3efe6;
  cursor: pointer;
  text-align: left;
}

.wedding-day-copy {
  display: grid;
  gap: 3px;
}

.wedding-day-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
}

.wedding-day-place,
.wedding-day-description,
.wedding-day-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.76rem;
}

.wedding-day-photo {
  display: none;
}

.wedding-day-photo.has-image {
  display: block;
}

.venues-subheading {
  margin: 0 0 22px;
  color: var(--color-gold-light);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.event-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  max-width: 1060px;
  margin: 0 auto;
}

.venue-card {
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(18, 18, 22, 0.82);
}

.venue-card h3,
.venue-title {
  color: #f5f0e6;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.venue-card p {
  color: var(--color-text-muted);
  font-size: 0.79rem;
}

.venue-card a {
  color: var(--color-gold-light);
}

.attire-section {
  padding: clamp(70px, 9vw, 110px) 20px;
  background: #0a0a0c;
}

.attire-content {
  width: min(100%, 900px);
  margin: 0 auto;
}

.attire-content > .eyebrow,
.attire-content > h2,
.attire-content > p,
.swatches-wrap {
  text-align: center;
}

.attire-content > h2 {
  margin: 8px 0 0;
  color: #f5f0e6;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1;
}

.attire-content > p {
  max-width: 700px;
  margin: 20px auto 28px;
  color: var(--color-text-muted);
}

.attire-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 18px;
}

.attire-tab {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: transparent;
  color: #b9b3a8;
  font-size: 0.59rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.attire-tab.is-active {
  border-color: rgba(212, 175, 55, 0.76);
  color: var(--color-gold-light);
}

.attire-guidance {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 1.2fr;
  align-items: center;
  gap: 25px;
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(18, 18, 22, 0.83);
}

.attire-example-image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.attire-example-copy > span {
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.attire-example-copy p {
  color: var(--color-text-muted);
}

.swatches-wrap {
  margin-top: 34px;
}

.swatch-label {
  color: var(--color-gold-light);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.palette-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.swatch-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.58rem;
}

.swatch-color {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(243, 239, 230, 0.2);
  border-radius: 50%;
}

.faq-section {
  background: #101013;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(18, 18, 22, 0.8);
}

.faq-item summary {
  position: relative;
  padding: 18px 50px 18px 20px;
  color: #eee8dc;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--color-gold);
  content: "+";
  font-family: var(--font-sans);
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 19px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* =========================================
   MODALS / LIGHTBOX / PLAYER
========================================= */
.story-modal,
.wedding-stop-dialog {
  width: min(92vw, 860px);
  max-width: none;
  max-height: min(88vh, 900px);
  padding: clamp(25px, 5vw, 54px);
  overflow: auto;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(14, 14, 17, 0.98);
  color: var(--color-text-main);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.story-modal::backdrop,
.wedding-stop-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  display: grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #101013;
  color: var(--color-gold-light);
  font-size: 1.45rem;
  cursor: pointer;
}

.story-modal-copy h2,
.wedding-stop-dialog-copy h2 {
  margin: 6px 0 12px;
  color: #f5f0e6;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
}

.story-modal-copy p,
.wedding-stop-dialog-copy p {
  color: #c2bcae;
}

.story-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  margin-top: 25px;
}

.story-modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: 88vh;
  padding: 42px clamp(22px, 5vw, 40px);
  overflow-y: auto;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: #121216;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.modal-title {
  color: #f5f0e6;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
}

.modal-desc {
  color: var(--color-text-muted);
}

.gcash-app-link,
.btn-copy {
  color: var(--color-gold-light);
}

.qr-container {
  display: grid;
  min-height: 160px;
  place-items: center;
  margin: 18px 0;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: #09090b;
}

.qr-img {
  width: min(100%, 240px);
}

.qr-placeholder {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.bank-details-box {
  margin-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.bank-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.09);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-align: left;
}

.bank-row strong {
  color: #eee8dc;
  text-align: right;
}

.copy-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-copy {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rsvp-confirmation-card {
  position: relative;
}

.rsvp-confirmation-kicker {
  color: var(--color-gold-light);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rsvp-confirmation-crest {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin: 20px auto;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.lightbox-modal {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 65px 80px;
  background: rgba(0, 0, 0, 0.96);
}

.lightbox-modal.is-active {
  display: flex;
}

.lightbox-figure {
  max-width: min(100%, 1200px);
  max-height: 100%;
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 145px);
  margin: auto;
  object-fit: contain;
  transition: transform 200ms ease;
}

.lightbox-figure figcaption {
  padding-top: 12px;
  color: var(--color-gold-light);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.lightbox-close,
.lightbox-nav,
.lightbox-zoom-button {
  position: absolute;
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(18, 18, 22, 0.85);
  color: var(--color-gold-light);
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  font-size: 1.4rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-previous {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-zoom-controls {
  position: absolute;
  right: 50%;
  bottom: 18px;
  display: flex;
  gap: 6px;
  transform: translateX(50%);
}

.lightbox-zoom-button {
  position: static;
  width: 42px;
  min-height: 38px;
}

.audio-btn {
  position: fixed;
  z-index: 1050;
  right: 19px;
  bottom: 19px;
  display: grid;
  width: 46px;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.88);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.audio-toggle-img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: invert(77%) sepia(42%) saturate(555%) hue-rotate(2deg) brightness(95%);
}

/* =========================================
   RESPONSIVE / REDUCED MOTION
========================================= */
@media (max-width: 760px) {
  .floating-nav {
    top: 8px;
    width: calc(100% - 16px);
    padding: 0 9px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 22px;
    min-height: 48px;
  }

  .nav-links a {
    min-height: 47px;
    font-size: 0.56rem;
    letter-spacing: 0.15em;
  }

  .hero-section {
    min-height: 720px;
    min-height: 100svh;
  }

  .hero-content {
    min-height: 430px;
    padding: 110px 0 105px;
  }

  .hero-title {
    font-size: clamp(3.3rem, 15vw, 6rem);
  }

  .hero-arrows {
    right: 17px;
    bottom: 24px;
  }

  .hero-pagination {
    bottom: 35px;
  }

  .countdown-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    padding: 22px 0;
    text-align: center;
  }

  .countdown-label {
    width: 100%;
    max-width: none;
  }

  .countdown-units {
    gap: clamp(7px, 3vw, 20px);
  }

  .countdown-box {
    min-width: 43px;
  }

  .countdown-box .num {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .btn-calendar {
    margin-left: 5px;
  }

  .formal-invite-section {
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .invite-card-inner {
    min-height: 440px;
    padding: 58px 24px;
  }

  .story-section,
  .moments-gallery,
  .guestbook-section,
  .details-section,
  .faq-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .story-timeline {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  }

  .moment-slide {
    width: min(78vw, 450px);
    min-width: min(78vw, 450px);
    aspect-ratio: 1.28 / 1;
  }

  .search-input-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero-meta {
    max-width: 280px;
    margin-right: auto;
    margin-left: auto;
  }

  .countdown-units {
    width: 100%;
    justify-content: center;
    gap: 7px;
  }

  .countdown-box {
    min-width: 39px;
  }

  .countdown-box .unit {
    font-size: 0.47rem;
  }

  .btn-calendar {
    margin: 3px 0 0;
  }

  .invite-card-outer {
    padding: 6px;
  }

  .invite-card-inner {
    min-height: 420px;
    padding: 52px 20px;
  }

  .invite-card-inner .corner-flourish {
    width: 32px;
    height: 32px;
  }

  .wedding-crest-mark {
    width: 66px;
    height: 66px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rsvp-box {
    padding: 23px 18px;
  }

  .radio-pill-group {
    flex-direction: column;
  }

  .radio-pill,
  .radio-pill span {
    width: 100%;
  }

  .wedding-day-stop {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .wedding-day-time {
    padding-left: 4px;
    text-align: left;
  }

  .wedding-day-card-trigger {
    padding: 15px;
  }

  .attire-guidance {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .attire-example-image img {
    max-height: 230px;
  }

  .lightbox-modal {
    padding: 60px 52px;
  }

  .lightbox-previous {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

@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;
  }
}
