/* ============================================================
   Amir & Youstina — Wedding · 10.10.2026
   Pure CSS. No frameworks.
   ============================================================ */

:root {
  /* deep wine canvas */
  --bg: #3a0a18;
  --bg-deep: #22040d;
  --bg-mid: #521126;

  /* luxury contrast */
  --gold: #d9b45b;
  --gold-bright: #f2dca4;
  --champagne: #f7e7c6;
  --cream: #f7ede2;
  --rose: #e8b9aa;

  /* legacy aliases so every existing rule stays in sync */
  --ivory: #f7ede2;
  --wine: #f2dca4;   /* headings are now champagne-gold */
  --ink: #f7ede2;
  --blush: #f3e2dc;

  --panel: rgba(255, 255, 255, 0.055);
  --line: rgba(217, 180, 91, 0.32);
  --line-strong: rgba(242, 220, 164, 0.6);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-sans: "Jost", system-ui, -apple-system, sans-serif;
  --shadow-soft: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(120, 26, 56, 0.85), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(96, 20, 44, 0.9), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- helpers ---------- */
.script { font-family: var(--font-script); font-weight: 400; }
.display { font-family: var(--font-display); }

.kicker {
  font-size: clamp(0.52rem, 1.9vw, 0.62rem);
  text-transform: uppercase;
  letter-spacing: clamp(0.22em, 1.4vw, 0.5em);
  color: var(--rose);
  overflow-wrap: break-word;
}

.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 3vw, 1rem);
  padding: 0.75rem 0;
  flex-wrap: nowrap;
}
.ornament span.line { height: 1px; width: min(5rem, 18vw); background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ornament span.mark { color: var(--gold); font-size: 1.05rem; }

.section {
  position: relative;
  padding: clamp(3.25rem, 9vw, 5rem) clamp(1rem, 4vw, 1.75rem);
}
.wrap { margin: 0 auto; max-width: 62rem; }
.wrap-sm { margin: 0 auto; max-width: 42rem; }

.section-title { text-align: center; }
.section-title h2 {
  font-family: var(--font-script);
  color: var(--wine);
  font-size: clamp(2.25rem, 6vw, 3.2rem);
  font-weight: 400;
  margin-top: 0.75rem;
  line-height: 1.1;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 2rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.paper {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(217, 180, 91, 0.1), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(232, 185, 170, 0.09), transparent 50%);
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.95rem clamp(1.25rem, 5vw, 2.4rem);
  font-size: clamp(0.53rem, 2vw, 0.6rem);
  text-transform: uppercase;
  letter-spacing: clamp(0.18em, 1.1vw, 0.35em);
  max-width: 100%;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-solid {
  background: linear-gradient(135deg, #d9b45b, #f2dca4 45%, #c79c43);
  color: #3a0a18;
  font-weight: 500;
  box-shadow: 0 16px 34px -20px rgba(217, 180, 91, 0.8);
}
.btn-solid:hover {
  background: linear-gradient(135deg, #f2dca4, #fff3d4 45%, #dcb75f);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -18px rgba(242, 220, 164, 0.9);
}
.btn-ghost { border-color: var(--gold); color: var(--gold-bright); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { background: var(--gold-bright); color: #3a0a18; border-color: var(--gold-bright); }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- cover / opening gate ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #521126, #22040d 72%);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.7, 0, 0.3, 1),
              filter 1.1s ease;
}
#intro.gone {
  opacity: 0;
  transform: translateY(-104%) scale(1.04);
  filter: blur(6px);
  pointer-events: none;
}

.cover-card {
  position: relative;
  z-index: 2;
  width: min(30rem, 100%);
  text-align: center;
  padding: clamp(2.25rem, 8vw, 3.5rem) clamp(1.25rem, 6vw, 2.75rem);
  border-radius: 999px 999px 1rem 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(217, 180, 91, 0.12), rgba(34, 4, 13, 0.55));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95),
              inset 0 1px 0 rgba(242, 220, 164, 0.25);
  backdrop-filter: blur(6px);
  animation: coverIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes coverIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* inner gold hairline frame */
.cover-frame {
  position: absolute;
  inset: 0.6rem;
  border-radius: 999px 999px 0.75rem 0.75rem;
  border: 1px solid rgba(242, 220, 164, 0.28);
  pointer-events: none;
}

#intro .mono {
  font-family: var(--font-script);
  color: var(--gold-bright);
  font-size: clamp(2.3rem, 10vw, 3.6rem);
  line-height: 1.15;
  margin-top: 1.1rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
#intro .gold-line { width: min(11rem, 60%); margin: 1.1rem auto 0; }
#intro .cover-date {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.2vw, 1.3rem);
  letter-spacing: clamp(0.2em, 1.2vw, 0.38em);
  color: var(--champagne);
}

/* wax-style monogram seal */
.cover-seal {
  width: clamp(3.4rem, 14vw, 4.2rem);
  height: clamp(3.4rem, 14vw, 4.2rem);
  margin: clamp(1.4rem, 5vw, 2rem) auto clamp(1.6rem, 5vw, 2.1rem);
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(217, 180, 91, 0.35), rgba(90, 18, 40, 0.9));
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.9),
              inset 0 1px 0 rgba(242, 220, 164, 0.4);
  position: relative;
}
.cover-seal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--gold);
  animation: musicRing 3s ease-out infinite;
}
.cover-seal span {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 3.4vw, 1rem);
  letter-spacing: 0.08em;
  color: var(--champagne);
}
.cover-seal i { font-style: normal; color: var(--gold-bright); }

.cover-open {
  min-width: min(14rem, 80%);
  font-size: clamp(0.58rem, 2.2vw, 0.68rem);
  padding-block: 1.05rem;
  animation: openGlow 2.8s ease-in-out infinite;
}
@keyframes openGlow {
  0%, 100% { box-shadow: 0 16px 34px -20px rgba(217, 180, 91, 0.8); }
  50%      { box-shadow: 0 22px 46px -18px rgba(242, 220, 164, 1); }
}

.cover-note {
  margin-top: 1.1rem;
  font-size: clamp(0.48rem, 2vw, 0.56rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 237, 226, 0.5);
}

/* lock scrolling until opened */
body.is-locked { overflow: hidden; }

/* short landscape phones */
@media (max-height: 560px) and (orientation: landscape) {
  .cover-card { border-radius: 1rem; padding: 1.5rem; }
  .cover-frame { border-radius: 0.75rem; }
  .cover-seal { display: none; }
  #intro .gold-line { margin-top: 0.7rem; }
  .cover-open { padding-block: 0.8rem; }
}

/* ---------- petals ---------- */
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petal {
  position: absolute;
  top: 0;
  border-radius: 60% 0 60% 0;
  animation: floatPetal linear infinite;
}
@keyframes floatPetal {
  0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  100% { transform: translate3d(var(--drift, 40px), 112vh, 0) rotate(540deg); opacity: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;      /* fallback */
  min-height: 100svh;     /* avoids mobile URL-bar jump */
  display: grid;
  place-items: center;
  padding: 0 1.25rem;
  overflow: hidden;
  text-align: center;
}
.hero .arch,
.hero .arch-inner {
  position: absolute;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  pointer-events: none;
}
.hero .arch { inset: 1rem; border: 1px solid var(--line); }
.hero .arch-inner { inset: 1.9rem; border: 1px solid rgba(201, 139, 126, 0.25); }

.hero-inner { position: relative; z-index: 2; padding: 6rem 0; width: 100%; max-width: 48rem; }

.names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.names h1 {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--wine);
  font-size: clamp(2.8rem, 11vw, 6rem);
  line-height: 1;
}
.names .amp {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.heart-rule { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.heart-rule .line { height: 1px; width: 6rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.heart-rule .heart { color: var(--gold); }

.hero .invite { font-family: var(--font-display); font-style: italic; color: rgba(247,237,226,0.82); margin-top: 2rem; font-size: clamp(1.05rem, 3.2vw, 1.5rem); }
.hero .date { font-family: var(--font-display); color: var(--wine); margin-top: 1.5rem; font-size: clamp(1.9rem, 7vw, 3rem); letter-spacing: 0.28em; }
.hero .when { margin-top: 1rem; font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--rose); }
.hero .cta { margin-top: 3rem; }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(201, 139, 126, 0.8);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- verse ---------- */
.verse {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(247,237,226,0.78);
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.8;
  max-width: 34rem;
  margin: 1rem auto 0;
}
.verse small {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------- gallery : the "love equation" (3 large photos) ---------- */
.gallery { margin-top: 3rem; }

/* top row : photo  +  photo */
.gallery-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}

/* operators (+ and =) */
.operator {
  display: grid;
  place-items: center;
  justify-self: center;
}
.operator span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(217,180,91,0.18), rgba(255,255,255,0.05));
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  padding-bottom: 0.2rem;
  box-shadow: 0 16px 34px -24px rgba(10, 2, 6, 0.85);
  backdrop-filter: blur(4px);
  animation: opPulse 3.4s ease-in-out infinite;
}
@keyframes opPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 34px -24px rgba(10, 2, 6, 0.85); }
  50%      { transform: scale(1.08); box-shadow: 0 20px 40px -22px rgba(201, 139, 126, 0.95); }
}
.operator-equals { margin: 1.6rem auto; }

/* large rectangular photos */
.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--line-strong);
  padding: 0.55rem;
  background: linear-gradient(145deg, rgba(217,180,91,0.22), rgba(255,255,255,0.04));
  box-shadow: 0 34px 60px -40px rgba(10, 2, 6, 0.9);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
.gallery figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 70px -38px rgba(10, 2, 6, 0.85);
}
.gallery figure img {
  width: 100%;
  aspect-ratio: 2 / 3;      /* portrait */
  height: auto;
  object-fit: cover;
  border-radius: 0.25rem;
  transition: transform 0.9s ease;
}
.gallery figure:hover img { transform: scale(1.07); }

/* result photo : portrait, centered */
.gallery-result {
  display: block;
  max-width: 26rem;
  margin: 0 auto;
}
.gallery-result img { aspect-ratio: 2 / 3; }
.gallery-result figcaption {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--champagne);
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 2;
}
.gallery-result::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: 0.25rem;
  background: linear-gradient(to top, rgba(10, 2, 6, 0.85), transparent 45%);
  z-index: 1;
}

/* hover "view" label */
.gallery figure::after {
  content: "view";
  position: absolute;
  inset: 0.5rem;
  display: grid;
  align-items: end;
  justify-items: center;
  padding-bottom: 1.1rem;
  border-radius: 0.25rem;
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(10, 2, 6, 0.85), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 3;
}
.gallery figure:hover::after { opacity: 1; }
.gallery-result:hover figcaption { opacity: 0; transition: opacity 0.4s ease; }

/* stack on small screens */
@media (max-width: 720px) {
  .gallery-row { grid-template-columns: 1fr; gap: 1rem; }
  .operator { margin: 0.35rem auto; }
  .operator span { width: 3rem; height: 3rem; font-size: 1.6rem; }
  .operator-equals { margin: 1rem auto; }
}

/* lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 2, 6, 0.9);
  backdrop-filter: blur(8px);
}
#lightbox.open { display: grid; }
#lightbox img {
  max-height: 84vh;
  max-width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: contain;
}
#lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  line-height: 1;
}
#lightbox button:hover { color: #fff; }
.lb-close { top: 1.2rem; right: 1.4rem; font-size: 2.2rem; }
.lb-prev { left: 1rem; font-size: 3rem; }
.lb-next { right: 1rem; font-size: 3rem; }

/* ---------- reception ---------- */
.two-col { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }

.time-card { padding: clamp(1.25rem, 5vw, 2rem); text-align: center; }
.time-card .time { font-family: var(--font-display); color: var(--wine); font-size: clamp(1.45rem, 5.4vw, 2.3rem); margin-top: 1rem; }
.time-card .full-date { font-family: var(--font-display); font-size: clamp(1.1rem, 4vw, 1.45rem); color: rgba(247,237,226,0.82); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.35rem, 1.6vw, 0.6rem); margin-top: 1rem; }
.cd-box {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: clamp(0.9rem, 3.5vw, 1.5rem);
  padding: clamp(0.75rem, 3vw, 1.1rem) 0.2rem;
  box-shadow: 0 18px 40px -30px rgba(10, 2, 6, 0.85);
}
.cd-box b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--wine);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-box span {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(0.42rem, 1.7vw, 0.5rem);
  letter-spacing: clamp(0.12em, 0.7vw, 0.25em);
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------- calendar ---------- */
.cal { padding: clamp(1rem, 4vw, 1.5rem); }
.cal h3 { font-family: var(--font-display); font-weight: 400; color: var(--wine); text-align: center; font-size: clamp(1.15rem, 4.4vw, 1.5rem); letter-spacing: 0.14em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; margin-top: 1.25rem; text-align: center; }
.cal-grid .dow { font-size: clamp(0.45rem, 1.9vw, 0.55rem); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(201,139,126,0.85); padding-bottom: 0.5rem; }
.cal-grid .day {
  font-family: var(--font-display);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(247,237,226,0.7);
  font-size: clamp(0.75rem, 3vw, 0.95rem);
}
.cal-grid .day.is-wedding {
  position: relative;
  background: linear-gradient(135deg, #d9b45b, #f2dca4);
  color: #3a0a18;
  font-weight: 600;
  box-shadow: 0 10px 20px -10px rgba(10, 2, 6, 0.85);
}
.cal-grid .day.is-wedding::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--gold);
  animation: pulseRing 2.6s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { opacity: 0; }
}
.cal .save { margin-top: 1.25rem; text-align: center; font-size: 0.6rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--rose); }

/* ---------- venue (two cards side by side) ---------- */
.venue-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .venue-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.venue-card {
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.venue-card .pad { flex: 1 1 auto; padding: clamp(1.25rem, 5vw, 2rem); }
.venue-card .kicker { margin-bottom: 1rem; }
.venue-card .pad { padding: 2rem; }
.venue-card .emoji { font-size: 2.2rem; }
.venue-card .vname { font-family: var(--font-display); color: var(--wine); font-size: clamp(1.35rem, 4.8vw, 1.9rem); overflow-wrap: break-word; margin-top: 0.75rem; }
.venue-card .vhall { margin-top: 0.5rem; font-size: clamp(0.55rem, 2vw, 0.62rem); letter-spacing: clamp(0.2em, 1vw, 0.35em); text-transform: uppercase; color: var(--rose); }
.venue-card .vaddr { margin-top: 0.75rem; font-size: 0.9rem; color: rgba(247,237,226,0.7); }
.venue-card iframe { width: 100%; height: clamp(11rem, 30vw, 16rem); border: 0; filter: sepia(0.35) saturate(0.8) brightness(0.82) contrast(1.05); border-top: 1px solid var(--line); }

/* ---------- rsvp ---------- */
.rsvp-card { padding: clamp(1.25rem, 5vw, 2rem); }
@media (min-width: 640px) { .rsvp-card { padding: 2.5rem; } }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: 0.58rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--rose); }
.field input, .field select, .field textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-bright); }
.field input, .field textarea { color: var(--champagne); }
.field select { color: var(--champagne); }
.field select option { background: #3a0a18; color: var(--champagne); }
.field input::placeholder, .field textarea::placeholder { color: rgba(247,237,226,0.35); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.choice button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.85rem 0.5rem;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,237,226,0.75);
  cursor: pointer;
  transition: all 0.3s ease;
}
.choice button:hover { border-color: var(--gold-bright); color: var(--champagne); }
.choice button.active { background: linear-gradient(135deg, #d9b45b, #f2dca4); border-color: var(--gold-bright); color: #3a0a18; font-weight: 500; }

.rsvp-submit { width: 100%; border: 0; }
.hidden { display: none !important; }

.thanks { text-align: center; padding: 1.5rem 0; }
.thanks .bouquet { font-size: 2.2rem; }
.thanks h3 { font-family: var(--font-script); font-weight: 400; color: var(--wine); font-size: clamp(1.7rem, 6.5vw, 2.3rem); overflow-wrap: anywhere; margin-top: 0.75rem; }
.thanks p { margin-top: 0.75rem; font-size: 0.9rem; color: rgba(247,237,226,0.7); }
.thanks button {
  margin-top: 1.5rem;
  background: none;
  border: 0;
  color: var(--rose);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 8px;
  cursor: pointer;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.25rem;
  text-align: center;
}
footer .fnames { font-family: var(--font-script); color: var(--wine); font-size: clamp(1.8rem, 7vw, 2.3rem); }
footer .fdate { margin-top: 0.75rem; font-size: clamp(0.5rem, 2vw, 0.6rem); letter-spacing: clamp(0.25em, 1.4vw, 0.5em); text-transform: uppercase; color: var(--rose); }
footer .fnote { margin-top: 1.25rem; font-size: 0.8rem; color: rgba(247,237,226,0.45); }

/* ============================================================
   RESPONSIVE / DEVICE ADAPTATIONS
   ============================================================ */

/* --- large tablets & down : venue stacks handled at 860px --- */
@media (max-width: 1024px) {
  .wrap { max-width: 54rem; }
}

/* --- tablets --- */
@media (max-width: 860px) {
  .hero .arch { inset: 0.75rem; }
  .hero .arch-inner { inset: 1.4rem; }
  .venue-card iframe { height: 13rem; }
}

/* --- phones --- */
@media (max-width: 620px) {
  /* fixed backgrounds stutter on mobile */
  body { background-attachment: scroll; }

  .hero-inner { padding: 5rem 0 4.5rem; }
  .hero .arch { inset: 0.5rem; border-radius: 45% 45% 0 0 / 18% 18% 0 0; }
  .hero .arch-inner { inset: 1rem; border-radius: 45% 45% 0 0 / 18% 18% 0 0; }

  /* keep the names on one readable stack */
  .names { gap: 0.5rem; margin-top: 1.75rem; }
  .heart-rule .line { width: 4rem; }

  .hero .date { letter-spacing: 0.18em; }
  .hero .when { letter-spacing: 0.28em; }

  /* countdown: 2 x 2 so digits stay large */
  .countdown { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

  /* lightbox controls out of the way of the image */
  #lightbox { padding: 3.5rem 0.75rem 4.5rem; }
  #lightbox img { max-height: 74vh; }
  .lb-close { top: 0.75rem; right: 0.9rem; font-size: 2rem; }
  .lb-prev, .lb-next {
    top: auto;
    bottom: 1rem;
    font-size: 2.4rem;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
  }
  .lb-prev { left: 25%; }
  .lb-next { right: 25%; }

  /* venue */
  .venue-card iframe { height: 12rem; }
}

/* --- small phones --- */
@media (max-width: 400px) {
  .names h1 { font-size: 2.5rem; }
  .names .amp { font-size: 1.6rem; }
  .choice { grid-template-columns: 1fr; }
  .cal-grid { gap: 0.15rem; }
  .cal-grid .day { font-size: 0.72rem; }
  .ornament span.line { width: 3rem; }
}

/* --- short landscape phones : hero must not clip --- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: 4.5rem; }
  .hero-inner { padding: 1.5rem 0; }
  .scroll-hint { display: none; }
}

/* --- touch devices : no hover, so reveal captions/labels --- */
@media (hover: none) {
  .gallery figure::after { opacity: 0.85; }
  .gallery figure:hover { transform: none; }
  .gallery figure:hover img { transform: none; }
  .btn-solid:hover { transform: none; }
}

/* --- wide desktops --- */
@media (min-width: 1400px) {
  .wrap { max-width: 72rem; }
  .gallery-result { max-width: 30rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MUSIC BUTTON
   ============================================================ */
.music-btn {
  position: fixed;
  right: clamp(0.85rem, 3vw, 1.5rem);
  bottom: clamp(0.85rem, 3vw, 1.5rem);
  z-index: 55;
  width: clamp(3rem, 12vw, 3.6rem);
  height: clamp(3rem, 12vw, 3.6rem);
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(217, 180, 91, 0.28), rgba(34, 4, 13, 0.85));
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.9),
              inset 0 1px 0 rgba(242, 220, 164, 0.35);
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease, border-color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.music-btn:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--gold-bright);
  box-shadow: 0 22px 44px -16px rgba(217, 180, 91, 0.55),
              inset 0 1px 0 rgba(242, 220, 164, 0.5);
}
.music-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* halo pulse while playing */
.music-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--gold);
  opacity: 0;
}
.music-btn.is-playing::after { animation: musicRing 2.4s ease-out infinite; }
@keyframes musicRing {
  0%   { transform: scale(0.95); opacity: 0.65; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

/* equalizer bars */
.music-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 1.05rem;
}
.music-icon .bar {
  width: 2px;
  height: 35%;
  border-radius: 2px;
  background: var(--gold-bright);
  transform-origin: bottom;
  transition: height 0.3s ease;
}
.music-btn.is-playing .bar { animation: eq 1s ease-in-out infinite; }
.music-btn.is-playing .bar:nth-child(1) { animation-delay: 0s;    }
.music-btn.is-playing .bar:nth-child(2) { animation-delay: 0.18s; }
.music-btn.is-playing .bar:nth-child(3) { animation-delay: 0.36s; }
.music-btn.is-playing .bar:nth-child(4) { animation-delay: 0.54s; }
@keyframes eq {
  0%, 100% { height: 28%; }
  50%      { height: 100%; }
}

/* slash when muted / paused */
.music-slash {
  position: absolute;
  width: 62%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold-bright);
  transform: rotate(-45deg) scaleX(1);
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 0 0 1.5px rgba(34, 4, 13, 0.85);
}
.music-btn.is-playing .music-slash { transform: rotate(-45deg) scaleX(0); opacity: 0; }

/* little hint bubble shown when autoplay is blocked */
.music-hint {
  position: fixed;
  right: calc(clamp(0.85rem, 3vw, 1.5rem) + clamp(3.4rem, 13vw, 4.1rem));
  bottom: clamp(1.45rem, 4.6vw, 2.1rem);
  z-index: 55;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(34, 4, 13, 0.9);
  color: var(--champagne);
  font-size: clamp(0.5rem, 2vw, 0.58rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.music-hint.show { opacity: 1; transform: none; }
@media (max-width: 420px) { .music-hint { display: none; } }

/* ============================================================
   AUTO-SCROLL CONTROL
   ============================================================ */
.autoscroll-btn {
  position: fixed;
  right: clamp(0.85rem, 3vw, 1.5rem);
  bottom: calc(clamp(0.85rem, 3vw, 1.5rem) + clamp(3.5rem, 13vw, 4.2rem));
  z-index: 55;
  width: clamp(3rem, 12vw, 3.6rem);
  height: clamp(3rem, 12vw, 3.6rem);
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(217, 180, 91, 0.28), rgba(34, 4, 13, 0.85));
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.9),
              inset 0 1px 0 rgba(242, 220, 164, 0.35);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}
.autoscroll-btn:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--gold-bright);
  box-shadow: 0 22px 44px -16px rgba(217, 180, 91, 0.55),
              inset 0 1px 0 rgba(242, 220, 164, 0.5);
}
.autoscroll-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* chevrons drift downward while auto-scrolling */
.as-icon {
  display: grid;
  gap: 1px;
  line-height: 0.62;
  font-size: clamp(0.72rem, 2.9vw, 0.85rem);
}
.as-icon i { font-style: normal; opacity: 0.45; }
.autoscroll-btn.is-on .as-icon i { animation: asDrift 1.5s ease-in-out infinite; }
.autoscroll-btn.is-on .as-icon i:nth-child(1) { animation-delay: 0s; }
.autoscroll-btn.is-on .as-icon i:nth-child(2) { animation-delay: 0.2s; }
.autoscroll-btn.is-on .as-icon i:nth-child(3) { animation-delay: 0.4s; }
@keyframes asDrift {
  0%, 100% { opacity: 0.25; transform: translateY(-1px); }
  50%      { opacity: 1;    transform: translateY(1px); }
}

/* pause bars shown while running */
.autoscroll-btn .as-pause {
  display: none;
  gap: 3px;
}
.autoscroll-btn .as-pause span {
  display: block;
  width: 3px;
  height: clamp(0.7rem, 2.8vw, 0.85rem);
  border-radius: 2px;
  background: var(--gold-bright);
}
.autoscroll-btn.is-on .as-pause { display: flex; }
.autoscroll-btn.is-on .as-icon { display: none; }

/* thin gold progress bar across the top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 58;
  background: linear-gradient(90deg, #d9b45b, #f2dca4);
  box-shadow: 0 0 12px rgba(242, 220, 164, 0.7);
  transition: width 0.12s linear, opacity 0.4s ease;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .autoscroll-btn { display: none; }
}
