
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

html,
body{
  height: auto;
  min-height: 100%;
}

html{
  overflow-x: hidden;
  scroll-behavior: auto;
}

body{
  background: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
  overflow-y: auto;
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stack-container{
  position: relative;
  padding-bottom: 0;
  overflow: visible;
}

body::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: env(safe-area-inset-top, 0px);
  background: transparent;
  pointer-events:none;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

/* =========================
   NOISE overlay
========================= */
.noise-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
}

/* =========================
   TYPO
========================= */
h1,h2,h3{
  font-family: 'Syne', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .86;
}

.huge-text{
  font-size: clamp(3.2rem, 14.2vw, 10.5rem);
  letter-spacing: 5px;
  white-space: nowrap;
}

@media (max-width: 860px){
  .huge-text{
    white-space: normal;
    word-break: break-word;
    font-size: clamp(40px, 10vw, 86px);
    line-height: .86;
  }
}

.text-outline{
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-main);
}

.text-filled{ color: var(--text-main); }

@media (max-width:860px){
  .text-outline{ -webkit-text-stroke: 1px var(--text-main); }
}

.ampersand{
  font-family: 'Syne', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 3rem;
  margin: 10px 0;
  color: var(--text-main);
}

@media (max-width:860px){
  .ampersand{
    font-size: 2rem;
    margin: 6px 0;
  }
}

.section-title{
  font-size: clamp(1.9rem, 4.7vw, 3.8rem);
  margin-bottom: 1rem;
}

.heroMeta{
  margin-top: 2.2rem;
  font-size: 1.05rem;
  opacity: .72;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width:860px){
  .heroMeta{
    margin-top: 18px;
    font-size: .92rem;
    letter-spacing: .10em;
  }
}

/* =========================
   PROGRESS LINE (right side)
========================= */
.veilProgress{
  position: fixed;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 99px;
  background: rgba(0,0,0,.10);
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
  opacity: .7;
}

.veilProgressBar{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height: 0%;
  background: color-mix(in srgb, var(--accent) 80%, rgba(0,0,0,.15));
  border-radius: 99px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateZ(0);
}

@media (max-width: 420px){
  .veilProgress{
    right: 10px;
    opacity: .55;
  }
}

/* =========================
   SECTIONS LAYOUT (NO STICKY)
========================= */
.stack-container{
  position: relative;
  padding-bottom: 0;
  overflow: clip;
}

.card{
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3.2rem 5%;
  overflow: visible;
}

.card:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,0));
  opacity: .65;
  pointer-events:none;
}

.card:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: 1px;
  background: rgba(0,0,0,.06);
  pointer-events:none;
}

.card-1{
  background: var(--card-1);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.card-2{ background: var(--card-2); }
.card-3{ background: var(--card-3); }
.card-4{ background: var(--card-4); }
.card-5{
  background: var(--card-5);
  color: var(--text-inv);
  text-align:center;
}

.card-1{ min-height: 100vh; }

@media (max-width:860px){
  .card-1{ min-height: 100svh; }
}

.cardScroll{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  overflow: visible;
  height: auto;
  position: relative;
  z-index: 2;
  padding-bottom: 18px;
}

/* =========================
   REVEAL ANIMATION
========================= */
.veilReveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .9s ease;
  will-change: opacity, transform, filter;
}

.veilReveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.card .cardScroll{ transform: translateZ(0); }

/* =========================
   BADGES
========================= */
.date-badge{
  border: 1px solid color-mix(in srgb, var(--text-main) 80%, transparent);
  padding: 10px 25px;
  border-radius: 999px;
  font-size: .9rem;
  text-transform: uppercase;
  margin-bottom: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  background: rgba(255,255,255,.12);
}

@media (max-width:860px){
  .date-badge{ margin-bottom: 22px; }
}

.live-dot{
  width:8px;
  height:8px;
  background: var(--accent);
  border-radius:50%;
  animation: pulse 2s infinite;
}

@keyframes pulse{
  0%{opacity:1}
  50%{opacity:.3}
  100%{opacity:1}
}

/* =========================
   DETAILS
========================= */
.info-row{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.info-label{
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: .62;
  padding-top: 6px;
}

.info-content{
  font-family: 'Syne';
  font-size: clamp(1.2rem, 2.1vw, 1.9rem);
  font-weight: 700;
  line-height: 1.18;
  white-space: pre-line;
}

@media (max-width:860px){
  .info-row{
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
}

/* =========================
   SHARED BLOCKS SKIN (VEIL)
========================= */
#location .iviLocHead{ display:none !important; }
#dresscode :is(.iviDressHead, .iviDressTitle, h2, .title, .h2){ display:none !important; }
#rsvp :is(h2, .title, .h2, .rose-line-svg){ display:none !important; }

/* Dresscode dots */
#dresscode .iviDressSwatches{
  display:flex !important;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:10px;
}

#dresscode .iviDressDot{
  width:40px !important;
  height:40px !important;
  border-radius:999px !important;
  background: var(--c, #fff) !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.10) !important;
}

#dresscode .iviDressSwatches .iviDressDot:nth-child(1){ --c: var(--dc1); }
#dresscode .iviDressSwatches .iviDressDot:nth-child(2){ --c: var(--dc2); }
#dresscode .iviDressSwatches .iviDressDot:nth-child(3){ --c: var(--dc3); }
#dresscode .iviDressSwatches .iviDressDot:nth-child(4){ --c: var(--dc4); }
#dresscode .iviDressSwatches .iviDressDot:nth-child(5){ --c: var(--dc5); }

/* =========================
   LOCATION skin
========================= */
#location{ margin:0 !important; }

#location .iviLocGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (max-width:900px){
  #location .iviLocGrid{ grid-template-columns: 1fr; }
}

#location .iviLocCard{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.30);
  box-shadow: 0 14px 46px rgba(0,0,0,.09);
  overflow:hidden;
}

#location .iviLocPhoto img{
  height: 240px;
  width: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1.02);
  transition: .55s;
}

@media (hover:hover){
  #location .iviLocCard:hover .iviLocPhoto img{
    filter: grayscale(0%);
    transform: scale(1.05);
  }
}

@media (max-width:860px){
  #location .iviLocPhoto img{ height: 210px; }
}

#location .iviLocBody{ padding: 14px 14px 16px; }

#location .iviLocBadge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  margin-bottom: 10px;
}

#location .iviLocName{
  font-family:'Syne';
  font-weight:800;
  letter-spacing:-.01em;
  font-size: 1.2rem;
}

#location .iviLocAddr{
  opacity:.72;
  line-height:1.55;
  margin-top:6px;
}

#location .iviLocNote{
  opacity:.70;
  line-height:1.55;
  margin-top:10px;
}

#location .iviLocActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

@media (max-width:860px){
  #location .iviLocActions{ gap:8px; }
}

#location .iviBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px !important;
  letter-spacing:.18em !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  min-height: 44px !important;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.26);
  color: rgba(0,0,0,.82);
  transition: transform .16s ease, box-shadow .16s ease, background .2s ease, border-color .2s ease;
}

@media (hover:hover){
  #location .iviBtn:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 44px rgba(0,0,0,.14);
    border-color: rgba(0,0,0,.16);
  }
}

#location .iviBtnPrimary{
  background: var(--accent) !important;
  color: var(--accentInk) !important;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent) !important;
}

@media (max-width:860px){
  #location .iviBtn{ width:100%; }
}

/* =========================
   STORY (VEIL)
========================= */
.veilStory{ padding-top: 8px; }

.veilStoryTop{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.veilStoryYear{
  font-family:'Syne',sans-serif;
  font-weight:900;
  letter-spacing:-.02em;
  opacity:.26;
  font-size: clamp(20px, 3.2vw, 34px);
  white-space: nowrap;
  line-height: 1;
}

.veilStoryGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items:start;
}

@media (max-width:860px){
  .veilStoryGrid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.veilStoryText p{
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.8;
  opacity: .86;
  white-space: pre-line;
  max-width: 760px;
}

.veilStoryDivider{
  height:1px;
  background: rgba(0,0,0,.10);
  margin: 14px 0 12px;
}

.veilStoryQuote{
  font-family:'Syne',sans-serif;
  font-weight:900;
  letter-spacing:-.01em;
  line-height:1.18;
  font-size: clamp(16px, 2.1vw, 20px);
  opacity:.78;
}

.veilStoryFacts{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}

.veilFact{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.22);
  box-shadow: 0 14px 44px rgba(0,0,0,.08);
  font-size: 11px;
  letter-spacing:.18em;
  text-transform: uppercase;
  font-weight: 900;
  opacity: .82;
}

@media (max-width:860px){
  .veilFact{
    width:100%;
    justify-content:flex-start;
  }
}

.veilDot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.veilStoryAside{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.18);
  box-shadow: 0 16px 54px rgba(0,0,0,.10);
  min-height: 320px;
}

@media (max-width:860px){
  .veilStoryAside{ min-height: 240px; }
}

.veilStoryAside img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1.02);
  transition: .6s;
}

@media (hover:hover){
  .veilStoryAside:hover img{
    filter: grayscale(0%);
    transform: scale(1.05);
  }
}

.veilStoryOverlay{
  position:absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color: rgba(255,255,255,.92);
}

.veilStoryOverlay .t{
  font-family:'Syne',sans-serif;
  font-weight:900;
  letter-spacing:.14em;
  text-transform: uppercase;
  font-size: 11px;
  opacity:.90;
}

.veilStoryOverlay .s{
  margin-top: 6px;
  font-size: 13px;
  opacity: .86;
  line-height: 1.35;
}

/* =========================
   GALLERY (CLEAN)
========================= */
.cardScroll.veilGal{ position: relative; }

.veilGalStage{
  position: relative;
  height: 520px;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
}

.veilGalStage .gallery-marquee{
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  z-index: 2;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.veilGalFade{
  position:absolute;
  top:0;
  bottom:0;
  width: 60px;
  opacity: .70;
  pointer-events:none;
  z-index: 3;
}

.veilGalFade--l{
  left:0;
  background: linear-gradient(to right, var(--card-4), rgba(0,0,0,0));
}

.veilGalFade--r{
  right:0;
  background: linear-gradient(to left, var(--card-4), rgba(0,0,0,0));
}

.veilGalStage .gallery-track{
  display:flex;
  gap: 20px;
  width: max-content;
  animation: veilScroll 34s linear infinite;
  will-change: transform;
}

@keyframes veilScroll{
  0%{ transform: translateX(0) }
  100%{ transform: translateX(-50%) }
}

@media (hover:hover) and (pointer:fine){
  .veilGalStage:hover .gallery-track{ animation-play-state: paused; }
}

.gallery-item{
  flex: 0 0 auto;
  display:block;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.22);
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
}

.gallery-img{
  width: 320px;
  height: 480px;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1.02);
  transition: .55s;
}

@media (hover:hover) and (pointer:fine){
  .gallery-item:hover .gallery-img{
    filter: grayscale(0%);
    transform: scale(1.06);
  }
}

.gallery-single{ justify-content:center; }

.gallery-single .gallery-track{
  animation: none !important;
  justify-content: center;
}

.gallery-single .gallery-img{
  width: min(560px, 86vw);
  height: min(70vh, 720px);
}

/* =========================
   RSVP (RESTORED)
========================= */
.card-5 .section-title{ color: var(--text-inv); }

.rsvpLead{
  opacity:.55;
  margin-bottom:1.4rem;
}

#rsvp .rsvpGrid{
  display:flex;
  justify-content:center;
  width:100%;
}

#rsvp .rsvpFormCard{
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 22px 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 66px rgba(0,0,0,.36);
}

#rsvp .formRow{ margin: 0 0 16px; }

#rsvp .rsvpHint{
  margin: 0 auto 16px;
  opacity:.62;
  line-height:1.65;
  max-width:560px;
}

#rsvp .label{
  display:block;
  text-align:left;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .78;
  margin: 0 0 8px;
  color: rgba(255,255,255,.82);
}

#rsvp .row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#rsvp .field{
  width:100%;
  min-height:48px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.16);
  color: var(--text-inv);
  font-family:'Inter',sans-serif;
  font-size: 16px;
  line-height: 1.2;
  outline:none;
  text-align:left;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

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

#rsvp .chips{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 10px;
  margin-top: 8px;
}

#rsvp .chip{
  min-width:110px;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(0,0,0,.26);
  cursor:pointer;
  user-select:none;
}

#rsvp .chip[data-active="true"]{
  background: var(--accent) !important;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent) !important;
  color: var(--accentInk) !important;
  box-shadow:
    0 16px 54px rgba(0,0,0,.32),
    0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

#rsvp .consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin: 14px 0 10px;
  opacity:.90;
}

#rsvp .consent input{
  margin-top:3px;
  width:18px;
  height:18px;
  accent-color: var(--accent);
}

#rsvp .consent span{
  text-align:left;
  font-size:.92rem;
  line-height:1.45;
  opacity:.78;
}

#rsvp .btn.btn-full{
  width: 100%;
  border-radius: 999px !important;
  padding: 18px 26px !important;
  letter-spacing: .18em !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  border: none !important;
  background: var(--text-inv) !important;
  color: var(--card-5) !important;
  cursor: pointer;
  box-shadow: 0 18px 56px rgba(0,0,0,.30);
  transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease;
}

@media (hover:hover){
  #rsvp .btn.btn-full:hover{
    background: var(--accent) !important;
    color: var(--accentInk) !important;
    transform: translateY(-1px);
  }
}

.veilEndCap{
  height: 140px;
  background: var(--card-5);
}

.veilFooter{
  margin-top:2.4rem;
  opacity:.35;
  padding-bottom:1rem;
  font-size:.8rem;
}

/* =========================
   MOBILE tweaks
========================= */
@media (max-width: 860px){
  body::before{ display:none; }
  .noise-overlay{ opacity:.028; }

  .card{
    padding: 22px 18px 22px;
  }

  .veilGalStage{
    height: auto;
    overflow: visible;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0,0,0,.08);
  }

  .veilGalStage .gallery-marquee{
    position: relative;
    top: auto;
    transform: none;
    -webkit-mask-image: none;
            mask-image: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    padding: 10px 2px 6px;
  }

  .veilGalFade{ display:none; }

  .veilGalStage .gallery-track{
    animation: none !important;
    gap: 14px;
    width: max-content;
    padding-right: 12px;
  }

  .gallery-item{ scroll-snap-align: start; }

  .gallery-img{
    width: 240px;
    height: 340px;
    transform: scale(1.01);
  }

  #rsvp .row2{ grid-template-columns: 1fr; }

  #rsvp .rsvpFormCard{
    padding: 18px 14px 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
  }

  #rsvp .chip{ min-width: calc(50% - 5px); }

  .veilEndCap{ height: 120px; }
}

@media (max-width: 420px){
  .gallery-img{
    width: 220px;
    height: 320px;
  }

  #rsvp .chip{ min-width: 100%; }
}

/* =========================
   VEIL DRESSCODE (NEW renderer, up to 12)
========================= */
#details .veilDc{ display:block; }

#details .veilDcK{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .62;
}

#details .veilDcT{
  margin-top: 10px;
  font-family: 'Syne', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.15;
  font-size: clamp(16px, 2.0vw, 22px);
  opacity: .92;
}

#details .veilDcText{
  margin-top: 10px;
  opacity: .82;
  line-height: 1.75;
  white-space: pre-line;
  max-width: 760px;
}

#details .veilDcPal{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:center;
}

#details .veilDcSw{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--sw);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
}

@media (max-width: 860px){
  #details .veilDcPal{ gap: 10px; }
  #details .veilDcSw{
    width: 34px;
    height: 34px;
  }
}

/* Fancybox: kill white flash */
.fancybox__slide{ background: transparent; }

/* =========================
   PERFORMANCE / SCROLL-JANK GUARDS
========================= */
@media (max-width: 860px){
  .date-badge,
  #rsvp .rsvpFormCard,
  .veilFact,
  #location .iviLocCard,
  .gallery-item{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .gallery-item,
  .veilStoryAside,
  #location .iviLocCard,
  #rsvp .rsvpFormCard{
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .card,
  .cardScroll,
  .stack-container{
    will-change: auto;
  }
}

/* =========================
   VEIL RSVP FIX
   shared rsvp.php uses #rsvpInner when $hideTitle = true
========================= */

#rsvpInner :is(h2, .title, .h2, .rose-line-svg),
#rsvp :is(h2, .title, .h2, .rose-line-svg){
  display: none !important;
}

#rsvpInner .rsvpGrid,
#rsvp .rsvpGrid{
  display: flex;
  justify-content: center;
  width: 100%;
}

#rsvpInner .rsvpFormCard,
#rsvp .rsvpFormCard{
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 22px 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 66px rgba(0,0,0,.36);
}

#rsvpInner .formRow,
#rsvp .formRow{
  margin: 0 0 16px;
}

#rsvpInner .rsvpHint,
#rsvp .rsvpHint{
  margin: 0 auto 16px;
  opacity: .62;
  line-height: 1.65;
  max-width: 560px;
}

#rsvpInner .label,
#rsvp .label{
  display: block;
  text-align: left;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .78;
  margin: 0 0 8px;
  color: rgba(255,255,255,.82);
}

#rsvpInner .row2,
#rsvp .row2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#rsvpInner .field,
#rsvp .field{
  width: 100%;
  min-height: 48px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.16);
  color: var(--text-inv);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  outline: none;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

#rsvpInner textarea.field,
#rsvp textarea.field{
  min-height: 110px;
  resize: vertical;
}

#rsvpInner .chips,
#rsvp .chips{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

#rsvpInner .chip,
#rsvp .chip{
  min-width: 110px;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(0,0,0,.26);
  cursor: pointer;
  user-select: none;
}

#rsvpInner .chip[data-active="true"],
#rsvp .chip[data-active="true"]{
  background: var(--accent) !important;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent) !important;
  color: var(--accentInk) !important;
  box-shadow:
    0 16px 54px rgba(0,0,0,.32),
    0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

#rsvpInner .consent,
#rsvp .consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 10px;
  opacity: .90;
}

#rsvpInner .consent input,
#rsvp .consent input{
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

#rsvpInner .consent span,
#rsvp .consent span{
  text-align: left;
  font-size: .92rem;
  line-height: 1.45;
  opacity: .78;
}

#rsvpInner .btn.btn-full,
#rsvp .btn.btn-full{
  width: 100%;
  border-radius: 999px !important;
  padding: 18px 26px !important;
  letter-spacing: .18em !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  border: none !important;
  background: var(--text-inv) !important;
  color: var(--card-5) !important;
  cursor: pointer;
  box-shadow: 0 18px 56px rgba(0,0,0,.30);
  transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease;
}

@media (hover:hover){
  #rsvpInner .btn.btn-full:hover,
  #rsvp .btn.btn-full:hover{
    background: var(--accent) !important;
    color: var(--accentInk) !important;
    transform: translateY(-1px);
  }
}

@media (max-width: 860px){
  #rsvpInner .row2,
  #rsvp .row2{
    grid-template-columns: 1fr;
  }

  #rsvpInner .rsvpFormCard,
  #rsvp .rsvpFormCard{
    padding: 18px 14px 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
  }

  #rsvpInner .chip,
  #rsvp .chip{
    min-width: calc(50% - 5px);
  }
}

@media (max-width: 420px){
  #rsvpInner .chip,
  #rsvp .chip{
    min-width: 100%;
  }
}