:root {
  --bg1: #fbf7f2;
  --bg2: #f6eee5;
  --bg3: #faf1eb;
  --bg4: #efe3d6;
  --card: #fffefb;
  --cb: #e0cebb;
  --t1: #2c1408;
  --t2: #6b3828;
  --t3: #9e6a58;
  --gold: #8b6518;
  --goldb: #c9a247;
  --gold2: #e8c870;
  --rose: #9e5040;
  --roseb: #b87060;
  --blush: #c8907a;
  --gs: rgba(139, 101, 24, 0.12);
  --dsbg: #ede0d5;
  --dst1: #2c1408;
  --dst2: #6b3828;
  --dst3: #8b5840;
  --dsgold: #7a5514;
  --dsgoldb: #b8901e;
  --ftbg: #3d1b0f;
  --ftt1: #f5ede6;
  --ftt2: rgba(245, 220, 200, 0.65);
  --fttg: rgba(200, 162, 90, 0.5);
}
html[data-theme="dark"] {
  --bg1: #1a1210;
  --bg2: #201716;
  --bg3: #261a18;
  --bg4: #1e1412;
  --card: #2d1e1b;
  --cb: #4a3430;
  --t1: #f5ede6;
  --t2: #d4b8ae;
  --t3: #b09088;
  --gold: #e8d070;
  --goldb: #e8d070;
  --gold2: #f2e494;
  --rose: #f0a898;
  --roseb: #f4b8a8;
  --blush: #6a4840;
  --gs: rgba(232, 208, 112, 0.16);
  --dsbg: #130a08;
  --dst1: #f5ede6;
  --dst2: #c8a490;
  --dst3: #907060;
  --dsgold: #e8d070;
  --dsgoldb: #f2e494;
  --ftbg: #0e0806;
  --ftt1: rgba(245, 237, 230, 0.88);
  --ftt2: rgba(200, 168, 152, 0.55);
  --fttg: rgba(232, 208, 112, 0.4);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Cormorant Garamond", serif;
  background: var(--bg1);
  color: var(--t1);
  overflow-x: hidden;
  transition:
    background 0.35s,
    color 0.35s;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 0.4s,
    padding 0.3s,
    box-shadow 0.3s;
}
nav.sc {
  padding: 12px 48px;
  box-shadow: 0 1px 0 rgba(61, 27, 15, 0.1);
  backdrop-filter: blur(14px);
}
html[data-theme="light"] nav.sc {
  background: rgba(251, 247, 242, 0.96);
}
html[data-theme="dark"] nav.sc {
  background: rgba(26, 18, 16, 0.95);
}
.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.08em;
  transition: color 0.4s;
}
nav.sc .nav-logo {
  color: var(--t1);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s;
}
nav.sc .nav-links a {
  color: var(--t2);
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--gold2);
}
nav.sc .nav-links a:hover {
  color: var(--gold);
}
.nav-r {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tbtn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  flex-shrink: 0;
}
nav.sc .tbtn {
  border-color: var(--blush);
  color: var(--t2);
}
.tbtn:hover {
  background: var(--gs);
}
.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ham span {
  display: block;
  width: 20px;
  height: 1px;
  background: #fff;
  transition: background 0.4s;
}
nav.sc .ham span {
  background: var(--t1);
}
.mobmenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  backdrop-filter: blur(14px);
  flex-direction: column;
  padding: 18px 48px 26px;
  gap: 16px;
  border-top: 1px solid var(--cb);
}
html[data-theme="light"] .mobmenu {
  background: rgba(251, 247, 242, 0.97);
}
html[data-theme="dark"] .mobmenu {
  background: rgba(26, 18, 16, 0.97);
}
.mobmenu a {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--t2);
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hbg {
  background-image: url("images/horizontalBG.webp");
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 80% 32%;
  filter: grayscale(1) contrast(1.12) brightness(0.84);
  will-change: transform;
}
.hov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 10, 6, 0.52) 0%,
    rgba(20, 10, 6, 0.1) 38%,
    rgba(20, 10, 6, 0.2) 60%,
    rgba(20, 10, 6, 0.75) 100%
  );
}
.hc {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.heyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.56em;
  text-transform: uppercase;
  color: #e8c870;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: fuv 0.9s ease 0.3s forwards;
}
.hnames {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(56px, 10vw, 108px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  animation: fuv 1.1s ease 0.5s forwards;
}
.hnames .hand {
  font-size: 0.56em;
  color: #e8c870;
  display: block;
  margin: 10px 0;
  letter-spacing: 0.14em;
}
.hdv {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 20px;
  opacity: 0;
  animation: fuv 0.9s ease 0.78s forwards;
}
.hdv .hl {
  width: 70px;
  height: 1px;
  background: rgba(232, 200, 112, 0.5);
}
.hdv .hd {
  width: 6px;
  height: 6px;
  background: #e8c870;
  transform: rotate(45deg);
}
.hdate {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 40px;
  opacity: 0;
  animation: fuv 0.9s ease 0.9s forwards;
}
.countdown {
  display: flex;
  gap: 18px;
  justify-content: center;
  opacity: 0;
  animation: fuv 0.9s ease 1.06s forwards;
}
.cdu {
  text-align: center;
  min-width: 56px;
}
.cdn {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  display: block;
}
.cdl {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 7.5px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: #e8c870;
  display: block;
  margin-top: 5px;
}
.cdsp {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 32px;
  color: rgba(232, 200, 112, 0.4);
  align-self: flex-start;
  padding-top: 4px;
}
.hscroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0;
  animation: fuv 0.9s ease 1.4s forwards;
}
.hscroll span {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 7.5px;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.sln {
  width: 1px;
  height: 36px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  animation: spulse 2.2s ease-in-out infinite;
}

/* INVITE */
#invite {
  padding: 100px 48px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
#invite::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--gs);
  pointer-events: none;
}
.inv-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--cb);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(61, 27, 15, 0.13);
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition:
    opacity 0.95s ease,
    transform 0.95s ease;
}
html[data-theme="dark"] .inv-card {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.inv-card.vis {
  opacity: 1;
  transform: none;
}
.inv-photo-col {
  position: relative;
  min-height: 520px;
}
.inv-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(0.88);
}
.inv-photo-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, var(--card));
}
.inv-body {
  padding: 52px 44px 52px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.inv-inner {
  border: 1px solid var(--gs);
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.inv-tag {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 8px;
  letter-spacing: 0.56em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.inv-together {
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  color: var(--t2);
  margin-bottom: 24px;
}
.inv-guest {
  font-family: "Great Vibes", cursive;
  font-size: clamp(44px, 5.5vw, 66px);
  color: var(--goldb);
  line-height: 1.1;
  display: block;
  margin-bottom: 24px;
}
.inv-dvd {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}
.inv-dvd .il {
  flex: 1;
  max-width: 38px;
  height: 1px;
  background: var(--blush);
}
.inv-dvd .id {
  width: 5px;
  height: 5px;
  background: var(--goldb);
  transform: rotate(45deg);
}
.inv-couple {
  font-weight: 400;
  font-size: 25px;
  color: var(--t1);
  letter-spacing: 0.04em;
  font-style: italic;
  margin-bottom: 18px;
}
.inv-couple span {
  color: var(--goldb);
}
.inv-details {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--t2);
  line-height: 2.4;
}
.inv-closing {
  margin-top: 24px;
  font-style: italic;
  font-size: 14px;
  color: var(--t3);
}

/* RSVP */
/* Floating Button */
.floating-rsvp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  overflow: hidden;

  background: linear-gradient(135deg, var(--gold), var(--goldb), var(--gold2));
  color: white;

  /* box-shadow:
    0 0 15px rgba(212, 175, 55, 0.6),
    0 0 40px rgba(212, 175, 55, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.3); */

  z-index: 9999;

  transition: all 0.3s ease;
}

/* Shine sweep */
.floating-rsvp::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  50% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

.floating-rsvp:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 25px rgba(255, 215, 0, 0.9),
    0 0 60px rgba(255, 215, 0, 0.6);
}

.rsvp-text {
  font-family: "Cormorant Garamond", cursive;
  font-weight: 100;
  letter-spacing: 2px;
  font-size: 15px;
  text-transform: uppercase;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* just to separate layers */
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 90%;
  margin: 5% auto;
  background: #fff;
}

.rsvp-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(105, 3, 3);
  color: wheat;
  padding: 10px 10px;
  border-radius: 20%;
  cursor: pointer;
}

/* COMMON */
.sec {
  padding: 108px 48px;
}
.si {
  max-width: 1060px;
  margin: 0 auto;
}
#venue .si {
  margin: 0 auto;
}
.slbl {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.58em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.sh {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.06;
  color: var(--t1);
  margin-bottom: 38px;
}
.sh em {
  font-style: italic;
  color: var(--rose);
}
html[data-theme="dark"] .sh em {
  color: var(--roseb);
}

/* STORY */
#story {
  background: var(--bg1);
}
.story-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-pf {
  position: relative;
}
.story-fr {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}
.story-fr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: sepia(0.1) contrast(1.05);
}
.story-acc {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: 1px solid var(--blush);
  border-radius: 2px;
  z-index: 0;
}
.story-t {
  padding-left: 12px;
}
.story-t p {
  font-size: 18px;
  line-height: 1.92;
  color: var(--t2);
  margin-bottom: 20px;
}
.story-t p.lead {
  font-style: italic;
  font-size: 22px;
  color: var(--rose);
  line-height: 1.65;
}
html[data-theme="dark"] .story-t p.lead {
  color: var(--roseb);
}
.story-sig {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.story-sig .sl {
  height: 1px;
  width: 34px;
  background: var(--blush);
}
.story-sig span {
  font-style: italic;
  font-size: 14px;
  color: var(--t3);
}

/* VERSE */
#verse {
  background: var(--bg3);
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vdeco {
  position: absolute;
  top: -40px;
  left: 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 380px;
  line-height: 1;
  color: var(--gs);
  pointer-events: none;
  user-select: none;
  font-weight: 300;
}
.vin {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.vtag {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.56em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  display: block;
}
.vctx {
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.9;
  color: var(--t3);
  margin-bottom: 36px;
}
.vstem {
  width: 1px;
  height: 48px;
  margin: 0 auto 36px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--goldb),
    transparent
  );
}
.vmain {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(27px, 4.2vw, 46px);
  line-height: 1.5;
  color: var(--t1);
  letter-spacing: 0.01em;
}
.vmain .vh {
  color: var(--rose);
}
html[data-theme="dark"] .vmain .vh {
  color: var(--roseb);
}
.vref {
  margin-top: 36px;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 9.5px;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--gold);
}

/* TIMELINE */
#timeline {
  background: var(--bg2);
}
.tlhd {
  text-align: center;
  margin-bottom: 80px;
}
.tll {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.tll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--blush) 8%,
    var(--blush) 92%,
    transparent
  );
}
.tli {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  margin-bottom: 64px;
}
.tli:last-child {
  margin-bottom: 0;
}
.tlt {
  text-align: right;
  padding-right: 28px;
}
.tlt .tv {
  font-weight: 500;
  font-size: 32px;
  color: var(--rose);
  display: block;
  line-height: 1;
}
html[data-theme="dark"] .tlt .tv {
  color: var(--roseb);
}
.tlt .tp {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 8px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--t3);
  display: block;
  margin-top: 5px;
}
.tld {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.tldi {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--goldb);
  box-shadow: 0 0 0 7px var(--bg2);
}
.tlifo {
  padding-left: 28px;
}
.tlifo .en {
  font-weight: 400;
  font-size: 22px;
  color: var(--t1);
  display: block;
  margin-bottom: 3px;
}
.tlifo .ev {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--t3);
}
.tli.rev .tlt {
  order: 3;
  text-align: left;
  padding-left: 28px;
  padding-right: 0;
}
.tli.rev .tlifo {
  order: 1;
  text-align: right;
  padding-right: 28px;
  padding-left: 0;
}
.tli.rev .tld {
  order: 2;
}
.tmt {
  display: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 8.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

/* VENUE — auto-fit 1-4 cols, max 2 rows on tablet */
#venue {
  background: var(--bg1);
}
.vhd {
  text-align: center;
  margin-bottom: 56px;
}
.vgrid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.vcard {
  border: 1px solid var(--cb);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.vcard:hover {
  box-shadow: 0 8px 36px rgba(61, 27, 15, 0.1);
  transform: translateY(-3px);
}
html[data-theme="dark"] .vcard:hover {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
}
.vmap {
  width: 100%;
  height: 190px;
  background: var(--bg2);
}
.vmap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.vbd {
  padding: 20px 22px;
}
.vtype {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 8px;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 7px;
}
.vnm {
  font-weight: 400;
  font-size: 21px;
  color: var(--t1);
  margin-bottom: 2px;
  line-height: 1.2;
}
.vnam {
  font-style: italic;
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 5px;
}
.vadr {
  font-size: 14px;
  color: var(--t2);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.65;
}
.vlnk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 8.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rose);
  border-bottom: 1px solid var(--gs);
  padding-bottom: 2px;
  transition: color 0.3s;
}
.vlnk:hover {
  color: var(--t1);
}
html[data-theme="dark"] .vlnk:hover {
  color: var(--t2);
}
.vlnk svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* GALLERY */
#gallery {
  background: var(--bg2);
}
.ghd {
  text-align: center;
  margin-bottom: 48px;
}
.gg-wrap {
  position: relative;
}
.gg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 270px;
  gap: 10px;
}
.gi {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: 2px;
  background: var(--bg3);
}
.gi:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gi img,
.gph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s ease;
}
.gi:hover img,
.gi:hover .gph {
  transform: scale(1.07);
}
.gov {
  position: absolute;
  inset: 0;
  background: rgba(61, 27, 15, 0);
  transition: background 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gi:hover .gov {
  background: rgba(61, 27, 15, 0.22);
}
html[data-theme="dark"] .gi:hover .gov {
  background: rgba(0, 0, 0, 0.38);
}
.govic {
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.3s,
    transform 0.3s;
  color: #fff;
  font-style: italic;
  font-size: 20px;
}
.gi:hover .govic {
  opacity: 1;
  transform: scale(1);
}
.gph {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gphlbl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 8px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--t3);
  text-align: center;
  line-height: 2.2;
  pointer-events: none;
}
.ph1 {
  background: linear-gradient(135deg, #f8ede2, #edd0ba);
}
.ph2 {
  background: linear-gradient(135deg, #f2ddd0, #deaf98);
}
.ph3 {
  background: linear-gradient(160deg, #efd6c8, #c89a88);
}
.ph4 {
  background: linear-gradient(135deg, #f9ede4, #e8c8af);
}
.ph5 {
  background: linear-gradient(135deg, #f5e2d4, #e2b49c);
}
.ph6 {
  background: linear-gradient(135deg, #f4e4d8, #e0b898);
}
.ph7 {
  background: linear-gradient(135deg, #f0ddd0, #dba890);
}
.ph8 {
  background: linear-gradient(135deg, #eed8c8, #d9a488);
}
.ph9 {
  background: linear-gradient(135deg, #f2e0d2, #dcb094);
}
html[data-theme="dark"] .ph1 {
  background: #2a1c18;
}
html[data-theme="dark"] .ph2 {
  background: #2e1f1b;
}
html[data-theme="dark"] .ph3 {
  background: #301e1a;
}
html[data-theme="dark"] .ph4 {
  background: #2c1c18;
}
html[data-theme="dark"] .ph5 {
  background: #281a16;
}
html[data-theme="dark"] .ph6 {
  background: #261816;
}
html[data-theme="dark"] .ph7 {
  background: #2a1814;
}
html[data-theme="dark"] .ph8 {
  background: #281612;
}
html[data-theme="dark"] .ph9 {
  background: #261410;
}
/* Gallery nav arrows — desktop hidden, mobile visible */
.gal-arr {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--cb);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: var(--t2);
  box-shadow: 0 2px 16px rgba(61, 27, 15, 0.18);
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
  user-select: none;
}
html[data-theme="dark"] .gal-arr {
  background: rgba(45, 30, 27, 0.9);
  color: var(--t2);
}
.gal-arr:hover {
  transform: translateY(-50%) scale(1.1);
}
.gal-prev {
  left: 10px;
}
.gal-next {
  right: 10px;
}
.swipehint {
  display: none;
  text-align: center;
  margin-top: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 8.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--t3);
}
.gnote {
  text-align: center;
  margin-top: 26px;
  font-style: italic;
  font-size: 16px;
  color: var(--t3);
}

/* MEMORIES */
#memories {
  background: var(--dsbg);
  padding: 108px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}
#memories::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gs), transparent 70%);
  pointer-events: none;
}
.memin {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.memic {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--gs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  background: var(--gs);
}
.memic svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--dsgoldb);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.memlbl {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.54em;
  text-transform: uppercase;
  color: var(--dsgold);
  margin-bottom: 13px;
  display: block;
}
.memh {
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 4.5vw, 48px);
  color: var(--dst1);
  line-height: 1.12;
  margin-bottom: 18px;
}
.memp {
  font-size: 18px;
  line-height: 1.92;
  color: var(--dst2);
  margin-bottom: 42px;
}
.memsteps {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 46px;
}
.memstep {
  text-align: center;
}
.memsn {
  font-weight: 300;
  font-size: 38px;
  color: var(--dsgoldb);
  opacity: 0.4;
  display: block;
  line-height: 1;
}
.memst {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dst3);
  margin-top: 7px;
  display: block;
}
.tgbtn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 36px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid var(--dsgoldb);
  color: var(--dst1);
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  transition:
    background 0.3s,
    transform 0.2s;
}
.tgbtn:hover {
  background: var(--gs);
  transform: translateY(-1px);
}
.tgbtn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--dsgoldb);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.memnote {
  margin-top: 18px;
  font-style: italic;
  font-size: 14px;
  color: var(--dst3);
}

/* FOOTER */
footer {
  background: var(--ftbg);
  padding: 78px 48px 46px;
  text-align: center;
  transition: background 0.35s;
}
.ftn {
  font-weight: 300;
  font-style: italic;
  font-size: 44px;
  color: var(--ftt1);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.ftamp {
  color: var(--fttg);
}
.ftdv {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: center;
  margin: 18px 0;
}
.ftdvl {
  width: 54px;
  height: 1px;
  background: var(--fttg);
}
.ftdvd {
  width: 5px;
  height: 5px;
  background: var(--fttg);
  transform: rotate(45deg);
}
.ftdt {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 9.5px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ftt2);
  margin-bottom: 36px;
}
.ftv {
  font-style: italic;
  font-size: 15px;
  color: var(--fttg);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.9;
}
.ftcp {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ftt2);
  opacity: 0.35;
}

/* LIGHTBOX */
.lbx {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 6, 4, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lbx.open {
  display: flex;
}
.lbx img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 2px;
}
.lbxcl {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}
.lbxcl:hover {
  color: #fff;
}

/* MUSIC WIDGET */
.music-widget {
  position: fixed;
  bottom: 128px;
  right: 28px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.vol-panel {
  background: var(--card);
  border: 1px solid var(--cb);
  border-radius: 10px;
  padding: 14px 16px;
  width: 158px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  box-shadow: 0 4px 22px rgba(61, 27, 15, 0.13);
}
html[data-theme="dark"] .vol-panel {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.32);
}
.music-widget:hover .vol-panel,
.vol-panel.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.vol-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 7.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--t3);
  display: block;
  margin-bottom: 10px;
}
.vol-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.vol-range {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--cb);
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}
.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--goldb);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(61, 27, 15, 0.18);
}
.vol-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--goldb);
  cursor: pointer;
  border: 2px solid #fff;
}
.vol-pct {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 9px;
  color: var(--t3);
  min-width: 28px;
  text-align: right;
}
.vol-song {
  margin-top: 10px;
  font-style: italic;
  font-size: 11px;
  color: var(--t3);
  text-align: center;
  line-height: 1.4;
  border-top: 1px solid var(--cb);
  padding-top: 9px;
}
.play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--goldb);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 22px rgba(201, 162, 71, 0.4);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
}
html[data-theme="dark"] .play-btn {
  color: #1a1210;
}
.play-btn::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 71, 0.32);
  animation: pulse-ring 2.8s ease-in-out infinite;
}
.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(201, 162, 71, 0.55);
}
.play-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  pointer-events: none;
}
.play-btn.playing::before {
  border-color: rgba(201, 162, 71, 0.5);
  animation-duration: 1.6s;
}

/* CONFETTI */
#confetti-c {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* REVEAL */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}
.rv.vis {
  opacity: 1;
  transform: none;
}
.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.2s;
}
.d3 {
  transition-delay: 0.3s;
}
.d4 {
  transition-delay: 0.4s;
}

@keyframes fuv {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.08;
  }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  nav {
    padding: 18px 28px;
  }
  nav.sc {
    padding: 11px 28px;
  }
  .nav-links {
    display: none;
  }
  .ham {
    display: flex;
  }
  .sec,
  #invite,
  #memories,
  #verse {
    padding: 84px 28px;
  }
  .inv-card {
    grid-template-columns: 1fr;
  }
  .inv-photo-col {
    display: none;
  }
  .inv-body {
    padding: 40px 28px;
  }
  .rsvpwrap {
    padding: 28px 28px;
  }
  .story-g {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .story-acc {
    display: none;
  }
  .story-t {
    padding-left: 0;
  }
  .tll::before {
    display: none;
  }
  .tli {
    grid-template-columns: 52px 1fr;
  }
  .tlt {
    display: none;
  }
  .tli.rev .tlt {
    display: none;
    order: unset;
  }
  .tli.rev .tlifo {
    order: 2;
    text-align: left;
    padding-right: 0;
    padding-left: 0;
  }
  .tli.rev .tld {
    order: 1;
  }
  .tlifo {
    padding-left: 0;
  }
  .tmt {
    display: block;
  }
  .memsteps {
    gap: 28px;
  }
  footer {
    padding: 60px 28px 40px;
  }
  /* Venue: never more than 2 per row on tablet */
  .vgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .floating-rsvp {
    position: fixed;
    bottom: 20px;
    left: auto;
    right: 30px;
  }
  #play-btn {
    bottom: 60px;
  }

  .hbg {
    background-image: url("images/bg.webp");
    background-position: center 20%;
  }
  .hnames {
    font-size: 52px;
  }
  .countdown {
    gap: 10px;
  }
  .cdn {
    font-size: 32px;
  }
  .vgrid {
    grid-template-columns: 1fr 1fr;
  }
  .vmap {
    height: 150px;
  }
  .vnm {
    font-size: 18px;
  }
  .vadr {
    font-size: 13px;
  }
  /* Gallery: horizontal scroll carousel */
  .gg {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 14px;
    scrollbar-width: none;
    grid-auto-rows: unset;
  }
  .gg::-webkit-scrollbar {
    display: none;
  }
  .gi {
    flex: 0 0 82vw;
    height: 300px;
    scroll-snap-align: start;
  }
  .gi:first-child {
    grid-column: unset;
    grid-row: unset;
    flex: 0 0 82vw;
  }
  .gal-arr {
    display: flex;
  }
  .swipehint {
    display: block;
  }
  .memsteps {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  #invite {
    padding: 20px 12px;
  }
  .inv-inner {
    padding: 28px 18px;
  }
  .inv-details {
    font-size: 10px;
  }
  .inv-body {
    padding: 16px;
  }
  .play-btn {
    width: 52px;
    height: 52px;
  }
  .music-widget {
    bottom: 20px;
    right: 20px;
  }
}
@media (max-width: 400px) {
  .vgrid {
    grid-template-columns: 1fr;
  }
}
