:root {
  --orange: #f26a21;
  --orange-soft: #ff9a4b;
  --forest: #173f35;
  --forest-light: #235447;
  --sage: #8fa88c;
  --sand: #d8c2a8;
  --blue: #334a6f;
  --cream: #f6f0e8;
  --paper: #fffdf8;
  --ink: #1b201e;
  --muted: #6b706d;
  --line: rgba(27, 32, 30, 0.14);
  --shadow: 0 24px 70px rgba(22, 33, 28, 0.12);
  --radius: 32px;
  --serif: "Italiana", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--orange); color: white; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 100;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

.section { position: relative; padding: 128px 0; }
.section__inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  line-height: .92;
  font-weight: 400;
  letter-spacing: -.035em;
}
.display em { color: var(--orange); font-style: normal; }
.body-copy { max-width: 620px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #515754; }

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: white;
  background: #17231f;
}
.hero__media {
  position: absolute;
  inset: -5%;
  background-image: url('https://images.squarespace-cdn.com/content/v1/56216fc2e4b059c47b425496/1758655709256-1H0W7FVFBDTR4KUFL8MF/_DSC6914.jpg');
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.08);
  filter: saturate(.92) contrast(.96);
  will-change: transform;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,17,14,.48) 0%, rgba(7,17,14,.06) 42%, rgba(7,17,14,.66) 100%),
    linear-gradient(90deg, rgba(7,17,14,.28), transparent 48%);
}
.topbar {
  position: absolute;
  z-index: 4;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 48px));
  margin: auto;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.24);
}
.monogram { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .08em; }
.topbar__links { display: flex; align-items: center; gap: 24px; font-size: .82rem; }
.topbar__links a { opacity: .86; transition: opacity .25s ease; }
.topbar__links a:hover { opacity: 1; }
.topbar__admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 500;
  color: white !important;
  opacity: 1 !important;
  backdrop-filter: blur(4px);
  transition: all .25s ease;
}
.topbar__admin-badge:hover {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  transform: translateY(-1px);
}

.hero__content {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100vw - 1180px)/2));
  bottom: clamp(110px, 15vh, 180px);
  will-change: transform;
}
.hero__title {
  margin: 0;
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9.2rem);
  line-height: .82;
  font-weight: 400;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero__title span { color: var(--orange-soft); }
.hero__date { margin: 20px 0 0; font-size: clamp(1.3rem, 2.4vw, 2.2rem); letter-spacing: .22em; }
.hero__copy { margin: 26px 0 0; font-size: clamp(1rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.84); }
.scroll-cue {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1180px)/2));
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.scroll-cue i { width: 42px; height: 1px; background: rgba(255,255,255,.75); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: white; transform: translateX(-100%); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 50%,100% { transform: translateX(100%); } }

/* INTRO / SAVE THE DATE */
.section--intro { background: var(--paper); overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.intro-grid__copy .body-copy { margin-top: 36px; }
.date-object {
  justify-self: end;
  width: min(440px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  position: relative;
  box-shadow: inset 0 0 0 22px rgba(242,106,33,.025);
}
.date-object strong { display: block; font-family: var(--serif); font-size: clamp(7rem, 14vw, 12rem); line-height: .72; font-weight: 400; color: var(--orange); }
.date-object__month, .date-object__year { letter-spacing: .32em; font-size: .75rem; }
.date-object__month { margin-bottom: 30px; }
.date-object__year { margin-top: 30px; }
.orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .2; }
.orb--orange { width: 460px; height: 460px; right: -250px; top: 12%; background: var(--orange-soft); }
.countdown { margin-top: 100px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown div { padding: 28px 20px; border-right: 1px solid var(--line); text-align: center; }
.countdown div:last-child { border-right: none; }
.countdown strong { display: block; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 400; line-height: 1; }
.countdown span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }

/* CINEMATIC APPLE-STYLE SCROLL */
.cinematic { height: 190vh; position: relative; background: #12241e; }
.cinematic__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cinematic__image {
  position: absolute;
  inset: 8%;
  border-radius: 44px;
  background-image: url('https://junebugweddings.com/wedding-blog/wp-content/uploads/2019/12/tropical-prospect-house-wedding-perfectly-nails-austin-cool-jeff-brummett-visuals-32.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(.92);
  will-change: transform, inset, border-radius;
}
.cinematic__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(7,19,15,.78)); }
.cinematic__copy { position: absolute; left: 50%; bottom: 11vh; transform: translateX(-50%); color: white; width: min(100% - 48px, 1180px); text-align: center; }
.cinematic__copy h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3.8rem, 8vw, 8rem); line-height: .88; letter-spacing: -.04em; }
.cinematic__copy em { color: var(--orange-soft); font-style: normal; }

/* INVITATION CARD */
.invitation-section { background: linear-gradient(180deg, var(--cream), #eee4d7); }
.section-heading { margin-bottom: 64px; }
.invitation-card {
  position: relative;
  background: var(--paper);
  border-radius: 36px;
  padding: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 490px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.invitation-card__accent { position: absolute; width: 330px; height: 330px; border-radius: 50%; right: -120px; top: -140px; background: var(--orange); opacity: .96; }
.invitation-card__accent::after { content: ""; position: absolute; width: 155px; height: 360px; background: var(--forest); border-radius: 100% 0 100% 0; transform: rotate(38deg); right: 190px; top: 75px; }
.invitation-card__topline { position: relative; z-index: 2; display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.invitation-card__body { align-self: center; padding: 48px 0; position: relative; z-index: 2; }
.invitation-card__body > p:first-child { color: var(--muted); }
.invitation-card h3 { margin: 8px 0 18px; max-width: 780px; font-family: var(--serif); font-size: clamp(4rem, 9vw, 8rem); font-weight: 400; line-height: .9; letter-spacing: -.04em; }
.invitation-card__seats { font-size: 1.1rem; }
.invitation-card__seats span:first-child { color: var(--orange); font-size: 1.7rem; font-weight: 600; }
.invitation-card__footer { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.invitation-card__footer p { max-width: 560px; color: var(--muted); margin: 0; }

/* BUTTONS */
.button { border: 0; border-radius: 999px; padding: 16px 28px; font-weight: 600; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button:hover { transform: translateY(-2px); }
.button--dark { background: var(--forest); color: white; }
.button--dark:hover { box-shadow: 0 12px 28px rgba(23,63,53,.24); }
.button--orange { background: var(--orange); color: white; }
.button--orange:hover { box-shadow: 0 12px 28px rgba(242,106,33,.28); }
.button--large { padding: 18px 36px; font-size: 1.05rem; }
.button--full { width: 100%; }

/* LOCATIONS & SCHEDULE */
.section--locations { background: var(--forest); color: white; }
.section--locations .display em { color: var(--orange-soft); }
.locations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.location-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  padding: 36px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.location-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.35);
}
.location-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage);
  margin-bottom: 12px;
}
.location-card__time {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--orange-soft);
  line-height: 1;
  margin-bottom: 8px;
}
.location-card h3 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.1;
}
.location-card__address {
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}
.location-card__desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.5;
}
.location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}
.map-btn {
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}
.map-btn--gmaps {
  background: white;
  color: var(--forest);
}
.map-btn--gmaps:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.map-btn--waze {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
}
.map-btn--waze:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* GIFTS SECTION */
.section--gifts {
  background: var(--paper);
  text-align: center;
  padding: 130px 0;
}
.gifts-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gifts-copy {
  margin: 28px auto 40px;
  text-align: center;
  max-width: 680px;
}

/* DRESS CODE INTERACTIVE SECTION */
.section--dresscode {
  background: var(--paper);
  padding: 120px 0;
}
.dress-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  margin-top: 48px;
  align-items: stretch;
}
.dress-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.dress-card--interactive {
  background: linear-gradient(145deg, #ffffff 0%, var(--cream) 100%);
  text-align: center;
  align-items: center;
  justify-content: center;
}
.dress-figuras {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  margin: 16px 0 24px;
  padding: 28px 36px;
  background: var(--paper);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.03);
  width: 100%;
}
.silueta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.silueta-svg {
  width: 95px;
  height: 205px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}
.silueta-wrapper:hover .silueta-svg {
  transform: translateY(-4px) scale(1.03);
}
.silueta--mujer .silueta-fill {
  fill: var(--active-woman-color, #F26A21);
  transition: fill 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.silueta--hombre .silueta-fill {
  fill: var(--active-man-color, #173F35);
  transition: fill 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.silueta-label {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: 0.04em;
}
.dress-interactive-info {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dress-tag {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--orange);
  background: rgba(242,106,33,0.1);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.color-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.indicator-chip {
  font-size: 0.84rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 14px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.indicator-chip strong {
  color: var(--orange);
}

.paleta-section {
  margin-top: 22px;
}

.paleta-group {
  margin-bottom: 14px;
}

.paleta-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.color-indicator {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  min-height: 24px;
}

/* DETAILS & PALETTE */
.reglas-box {
  background: var(--paper);
  border-radius: 22px;
  padding: 24px 28px;
  border: 1px solid var(--line);
}
.regla-item h4 {
  font-family: var(--serif);
  font-size: 1.65rem;
  margin: 0 0 6px;
  font-weight: 400;
  color: var(--forest);
}
.regla-item h4 span {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--orange);
}
.regla-item .nota {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.warning-text {
  color: #c62828;
  font-weight: 600;
}
.regla-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.paleta-container {
  margin: 26px 0 20px;
}
.paleta-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.paleta-title small {
  font-weight: 400;
  color: var(--muted);
}
.paleta-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.p-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--swatch);
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.p-swatch:hover {
  transform: scale(1.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.p-swatch.active {
  transform: scale(1.22);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,106,33,0.3), 0 8px 20px rgba(0,0,0,0.2);
}

.aviso-tenis {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: 18px;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: #e65100;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

/* GALLERY */
.gallery { display: grid; grid-template-columns: .8fr 1.35fr .8fr; gap: 14px; background: #12231e; padding: 14px; min-height: 80vh; }
.gallery__item { margin: 0; min-height: 72vh; overflow: hidden; border-radius: 22px; }
.gallery__img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.gallery__item:hover .gallery__img { transform: scale(1.035); }
.gallery__img--bouquet { background-image: url('https://www.arabiaweddings.com/sites/default/files/styles/max980/public/listing/2026/02/22/bird_of_paradise_bouquet.jpg?itok=GEmtKeZ9'); }
.gallery__img--couple { background-image: url('https://images.squarespace-cdn.com/content/v1/56216fc2e4b059c47b425496/1758655709256-1H0W7FVFBDTR4KUFL8MF/_DSC6914.jpg'); background-position: center 40%; }
.gallery__img--florals { background-image: url('https://junebugweddings.com/wedding-blog/wp-content/uploads/2019/12/tropical-prospect-house-wedding-perfectly-nails-austin-cool-jeff-brummett-visuals-32.jpg'); }

/* RSVP SECTION */
.rsvp-section { background: var(--paper); text-align: center; padding: 150px 0; }
.rsvp-cta { display: flex; flex-direction: column; align-items: center; }
.rsvp-cta .body-copy { margin: 26px auto 34px; }
.rsvp-status { min-height: 24px; margin: 18px 0 0; color: var(--forest); font-weight: 600; }

/* FOOTER */
.footer { position: relative; overflow: hidden; background: var(--forest); color: white; padding: 120px 24px 46px; text-align: center; }
.footer__date { margin: 0; font-family: var(--serif); font-size: clamp(4rem, 12vw, 10rem); line-height: .9; }
.footer > p:nth-of-type(2) { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--orange-soft); }
.footer small { display: block; margin-top: 80px; color: rgba(255,255,255,.46); }
.footer__flower { position: absolute; width: 260px; height: 80px; right: -40px; top: 45px; background: var(--orange); border-radius: 100% 0 100% 0; transform: rotate(-25deg); opacity: .8; }

/* MODALS */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,18,15,.67); backdrop-filter: blur(12px); }
.modal__panel { position: relative; width: min(650px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; background: var(--paper); border-radius: 30px; padding: 34px; box-shadow: 0 30px 100px rgba(0,0,0,.25); transform: translateY(24px) scale(.98); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__close { position: absolute; right: 20px; top: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eee8de; font-size: 1.5rem; line-height: 1; }
.modal__header { padding-right: 50px; margin-bottom: 28px; }
.modal__header.text-center { text-align: center; padding-right: 0; }
.modal__header h2 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: .95; font-weight: 400; }
.modal__header > p:last-child { color: var(--muted); }

/* GIFT MODAL SPECIFICS */
.gift-modal__panel { width: min(840px, 100%); }
.gift-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.gift-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.gift-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242,106,33,0.4);
}
.gift-card__icon { font-size: 2.2rem; margin-bottom: 12px; }
.gift-card h3 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 8px; font-weight: 400; color: var(--forest); }
.gift-card p { font-size: 0.88rem; color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
.gift-card__code {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 16px;
  word-break: break-all;
}
.gift-card__code strong { font-family: monospace; font-size: 1rem; color: var(--orange); }
.gift-action-btn {
  margin-top: auto;
  padding: 11px 18px;
  border-radius: 99px;
  background: var(--forest);
  color: white;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  border: 0;
  transition: all 0.25s ease;
}
.gift-action-btn:hover {
  background: var(--orange);
  transform: translateY(-1px);
}
.gift-action-btn--secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.gift-action-btn--secondary:hover {
  background: var(--forest);
  color: white;
}

/* GUEST LIST & RSVP FORM */
.guest-list { display: grid; gap: 12px; margin-bottom: 24px; }
.guest-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; transition: border-color .25s ease, background .25s ease; }
.guest-row:has(input:checked) { border-color: rgba(242,106,33,.5); background: rgba(242,106,33,.05); }
.guest-row__identity { display: flex; align-items: center; gap: 14px; }
.guest-row__number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); font-family: var(--serif); font-size: 1.15rem; }
.guest-row__identity strong { display: block; }
.guest-row__identity small { color: var(--muted); }
.switch { position: relative; width: 50px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d9d8d3; transition: background .25s ease; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: transform .25s ease; }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { transform: translateX(22px); }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field > span { font-size: .84rem; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field textarea, .field input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: white; color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea:focus, .field input:focus { border-color: rgba(242,106,33,.65); box-shadow: 0 0 0 4px rgba(242,106,33,.09); }
.modal__summary { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.modal__summary strong { font-family: var(--serif); font-size: 2rem; color: var(--orange); }

/* TOAST POPUP */
.toast-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--forest);
  color: white;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 300;
}
.toast-popup.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* MEDIA QUERIES */
@media (max-width: 900px) {
  .section { padding: 96px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 52px; }
  .locations-grid, .gift-options-grid, .dress-grid { grid-template-columns: 1fr; }
  .date-object { justify-self: start; }
  .lookbook { grid-template-columns: 1fr; }
  .lookbook__media { min-height: 68vh; position: relative; }
  .lookbook__content { padding: 90px 24px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item { min-height: 54vh; }
  .gallery__item--b { grid-row: span 2; min-height: calc(108vh + 14px); }
  .invitation-card__footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 640px) {
  .section__inner { width: min(100% - 30px, 1180px); }
  .topbar { width: calc(100% - 30px); padding-top: 20px; }
  .topbar__links a:not(:last-child) { display: none; }
  .hero__content { left: 15px; right: 15px; bottom: 126px; }
  .hero__title { font-size: clamp(3.65rem, 17vw, 6.4rem); }
  .hero__date { letter-spacing: .12em; }
  .scroll-cue { left: 15px; right: auto; bottom: 34px; }
  .countdown { grid-template-columns: 1fr 1fr; }
  .countdown div:nth-child(2) { border-right: none; }
  .countdown div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cinematic__image { inset: 4%; border-radius: 28px; }
  .cinematic__copy { width: calc(100% - 30px); bottom: 9vh; }
  .invitation-card { padding: 22px; border-radius: 26px; }
  .invitation-card__accent { width: 220px; height: 220px; right: -110px; top: -100px; }
  .invitation-card h3 { font-size: clamp(3.5rem, 17vw, 6rem); }
  .invitation-card__topline { max-width: 75%; flex-direction: column; gap: 6px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item--b { min-height: 60vh; grid-row: auto; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { border-radius: 26px 26px 0 0; max-height: 92vh; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
