/* Nazmiya & Farhan — mobile-first invitation
   Palette: Deep Burgundy · Champagne Gold · Ivory */
:root {
  --burgundy: #5E1121;
  --burgundy-deep: #3D0A14;
  --wine: #7A1A2E;
  --gold: #B8924F;
  --gold-deep: #94723A;
  --champagne: #D9BE8C;
  --champagne-light: #EEDDB6;
  --ivory: #FBF6EC;
  --ivory-2: #F3E9D6;
  --ink: #4A0D1A;

  --f-script: "Pinyon Script", cursive;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-caps: "Cinzel", "Cormorant Garamond", serif;
  --f-ar: "Amiri", serif;

  --gold-grad: linear-gradient(100deg, #9A7438 0%, #E8D4A4 42%, #C49B55 62%, #F1E2BD 80%, #A07A3C 100%);
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --app-w: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--burgundy-deep);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100svh; }
img, video, svg { display: block; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; }

/* ---------- Video stage: keeps the 9:16 video "covering" while
   letting overlays be positioned relative to the video itself ---------- */
.stage {
  position: absolute;
  left: 50%; top: 50%;
  width: max(100%, calc(100svh * 9 / 16));
  aspect-ratio: 9 / 16;
  transform: translate(-50%, -50%);
}
.stage video { width: 100%; height: 100%; object-fit: cover; }

/* ================= VIDEO INTRO ================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  background: #784141 url("assets/intro-poster.jpg") center / cover;
  cursor: pointer;
  outline: none;
}
/* iOS Safari tints its status bar and toolbar from fixed elements touching the
   screen edges; these strips carry the envelope's own edge colours */
.intro-edge { position: fixed; left: 0; right: 0; height: 2px; z-index: 2; pointer-events: none; }
.intro-edge.top { top: 0; background: #784141; }
.intro-edge.bottom { bottom: 0; background: #411D19; }
.tap-hint {
  position: absolute;
  left: 50%; top: 61.6%;
  transform: translate(-50%, 0);
  padding: .45em 1.3em .4em;
  border-radius: 999px;
  background: rgba(61, 10, 20, .55);
  border: 1px solid rgba(217, 190, 140, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-family: var(--f-caps);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--champagne-light);
  white-space: nowrap;
  animation: breathe 2.4s ease-in-out infinite;
  transition: opacity .5s ease;
}
@keyframes breathe { 50% { opacity: .55; } }

.intro.playing { cursor: default; }
.intro.playing .tap-hint { opacity: 0; animation: none; }
/* After the video ends: a soft dissolve into the invitation */
.intro.leaving { animation: introOut 1.4s cubic-bezier(.4, 0, .2, 1) forwards; }
.intro.leaving .stage { animation: introDrift 1.4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
@keyframes introDrift { to { transform: translate(-50%, -50%) scale(1.08); filter: blur(6px); } }

/* ================= APP COLUMN ================= */
.app {
  position: relative;
  width: var(--app-w);
  margin: 0 auto;
  background: var(--ivory) var(--paper);
  overflow: hidden;
}
.sparkles {
  position: fixed;
  top: 0; left: 50%;
  width: var(--app-w); height: 100vh;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #E9E2CF url("assets/curtain-poster.jpg") center / cover;
}
.hero-text {
  position: absolute;
  left: 50%; top: 43%;
  width: 56%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--burgundy-deep);
}
.hero-kicker, .hn { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.hero.play .hero-kicker, .hero.play .hn {
  animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero.play .hero-kicker { animation-delay: 2.6s; }
.hero.play .hn-1 { animation-delay: 3.0s; }
.hero.play .hn-amp { animation-delay: 3.5s; }
.hero.play .hn-2 { animation-delay: 3.8s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* Sits over the chandelier's lower crystals, so it gets a solid colour and an ivory halo to stay legible */
.hero-kicker {
  font-family: var(--f-caps);
  font-size: clamp(12px, 3.6vw, 15px);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .5em;
  text-shadow: 0 0 10px rgba(251, 246, 236, 1), 0 0 4px rgba(251, 246, 236, 1), 0 0 18px rgba(251, 246, 236, .9);
}
.hero-names { line-height: .9; text-shadow: 0 0 18px rgba(251, 246, 236, .9), 0 0 4px rgba(251, 246, 236, .7); }
/* Script swashes overflow the tight line box; the padding keeps them inside the
   element so the blur filter in the rise animation doesn't crop their tops and tails */
.hn { display: block; padding: .22em 0; margin: -.22em 0; font-family: var(--f-script); font-size: clamp(44px, 13.4vw, 60px); color: var(--burgundy); }
.hn-amp { font-size: clamp(40px, 12vw, 54px); line-height: .8; color: #8A6430; margin: -.3em 0 -.26em; text-shadow: 0 0 12px rgba(251, 246, 236, .95); }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 18%;
  background: linear-gradient(to bottom, rgba(251, 246, 236, 0), var(--ivory));
  pointer-events: none;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px;
  width: 24px; height: 38px;
  margin-left: -12px;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  opacity: 0;
  transition: opacity 1s ease 5.6s;
}
.hero.play .scroll-cue { opacity: .9; }
.scroll-cue span {
  position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ================= SECTIONS (shared) ================= */
.section { position: relative; padding: 64px 20px; text-align: center; }
.script-title {
  font-family: var(--f-script);
  font-size: clamp(38px, 11vw, 48px);
  line-height: 1.15;
  color: var(--burgundy);
}
.script-title.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 .15em;
}
.divider { width: 170px; height: 20px; margin: 14px auto 22px; color: var(--gold); }
.divider.light { color: var(--champagne); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--ivory);
  font-family: var(--f-caps);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .3s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; color: var(--champagne); }
.btn-ghost { background: transparent; color: var(--burgundy); }
.btn-wide { width: 100%; max-width: 340px; }
.btn-gold { background: var(--gold-grad); border-color: transparent; color: var(--burgundy-deep); font-weight: 600; }

/* ================= INVITATION ARCH CARD ================= */
.invite { padding: 24px 14px 56px; }
.arch {
  --edge: 1.765%;     /* 6/340  — outer line */
  --edge-in: 3.82%;   /* 13/340 — inner line */
  position: relative;
  container-type: inline-size;
  margin: 0 auto;
  max-width: 440px;
  filter: drop-shadow(0 10px 24px rgba(94, 17, 33, .14));
}
.arch-top { width: 100%; height: auto; aspect-ratio: 340 / 150; }
.arch-fill { fill: #FFFBF3; }
.arch-line { fill: none; stroke: var(--gold); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.arch-line.thin { stroke-width: .8; }
.arch-finial { position: absolute; left: 50%; top: -14px; width: 28px; height: 28px; margin-left: -14px; color: var(--gold); background: var(--ivory); border-radius: 50%; padding: 2px; }
.arch-body {
  position: relative;
  padding: 0 calc(var(--edge-in) + 18px) 40px;
  /* lift content up into the arch */
  margin-top: -22cqw;
  z-index: 0;
}
.arch-body::before, .arch-body::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  pointer-events: none;
}
.arch-body::before {
  top: 22cqw; /* start below the lifted overlap so the arch curve stays visible */
  left: var(--edge); right: var(--edge);
  border: 1.6px solid var(--gold);
  border-top: 0;
  background: #FFFBF3;
  z-index: -1;
}
.arch-body::after {
  top: 22cqw;
  left: var(--edge-in); right: var(--edge-in); bottom: 7px;
  border: .8px solid var(--gold);
  border-top: 0;
}
.arch-body > * { position: relative; }

.bismillah {
  /* U+FDFD is one very wide ligature (~11.4em), so size it to the card width */
  font-family: var(--f-ar);
  font-size: min(6vw, 30px);
  line-height: 2.2;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bismillah-en {
  margin-top: 4px;
  font-style: italic;
  font-size: 15px;
  color: var(--gold-deep);
}
.parents {
  font-family: var(--f-caps);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .1em;
  color: var(--burgundy);
}
.amp-sm { font-family: var(--f-script); font-size: 22px; color: var(--gold); letter-spacing: 0; text-transform: none; }
.blessing {
  margin: 20px auto 6px;
  max-width: 290px;
  font-family: var(--f-caps);
  font-size: 11.5px;
  line-height: 1.95;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
}
.couple { margin: 20px 0 4px; }
.script-name {
  font-family: var(--f-script);
  font-size: clamp(38px, 11.4vw, 50px);
  line-height: 1.15;
  color: var(--burgundy);
}
.degree { font-style: italic; font-size: 16px; color: var(--gold-deep); }
.lineage {
  margin-top: 6px;
  font-family: var(--f-caps);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink);
}
.couple-amp {
  margin: 8px 0 2px;
  font-family: var(--f-script);
  font-size: 44px;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.date-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 4px auto 0;
  max-width: 280px;
}
.db-side {
  padding: 6px 0;
  border-top: 1px solid var(--champagne);
  border-bottom: 1px solid var(--champagne);
  font-family: var(--f-caps);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.db-day {
  font-family: var(--f-caps);
  font-size: 52px;
  line-height: 1;
  color: var(--burgundy);
}
.hijri { margin-top: 10px; font-style: italic; font-size: 16px; color: var(--gold-deep); }
.event-tag {
  margin: 26px auto 0;
  padding: 18px 12px 16px;
  max-width: 270px;
  border-radius: 999px 999px 18px 18px;
  background: var(--burgundy) var(--paper);
  color: var(--ivory);
  box-shadow: inset 0 0 0 4px var(--burgundy), inset 0 0 0 5px var(--champagne);
}
.event-name {
  font-family: var(--f-caps);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.event-time { margin-top: 2px; font-style: italic; font-size: 17px; color: var(--champagne-light); }
.event-place { margin-top: 2px; font-family: var(--f-caps); font-size: 11px; letter-spacing: .16em; color: var(--ivory); }
.regards { color: var(--ink); font-size: 18px; line-height: 1.55; }
.regards-title { font-family: var(--f-script); font-size: 32px; line-height: 1.3; color: var(--burgundy); margin-bottom: 4px; }

/* ================= SHARED TITLES ================= */
.serif-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(34px, 9.6vw, 42px);
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--burgundy);
}
.serif-title.light { color: var(--ivory); }
.serif-title .amp { color: var(--gold); }
.sub-caps {
  margin: 12px auto 0;
  max-width: 300px;
  font-family: var(--f-caps);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.sub-caps.light { color: var(--champagne); }
.body-text { max-width: 330px; margin: 0 auto; font-size: 19px; line-height: 1.6; color: #4F2A30; }
.body-text.light { color: rgba(251, 246, 236, .86); }

/* ================= INVITE CARD: botanical corners ================= */
.sprig { position: absolute; width: 32cqw; aspect-ratio: 1; pointer-events: none; z-index: 2; }
.sprig-tr { top: 8cqw; right: -6cqw; }
.sprig-bl { bottom: -4cqw; left: -6cqw; transform: rotate(180deg); }

/* ================= SCRATCH TO REVEAL ================= */
.scratch-sec { padding-top: 40px; }
.scratch-sec .script-title { font-size: clamp(42px, 12vw, 52px); }
.heart-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px auto 26px; color: var(--wine); }
.heart-rule span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.heart-rule span:last-child { transform: scaleX(-1); }
.heart-rule svg { width: 12px; height: 11px; }
.scratch {
  position: relative;
  width: min(94vw, 390px);
  aspect-ratio: 100 / 90;
  -webkit-user-select: none;
  user-select: none;
  margin: 0 auto;
}
.scratch-heart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sh-fill { fill: #FFFBF3; }
.sh-line { fill: none; stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.sh-line.thin { stroke-width: .7; }
.heart-count, .heart-count-done {
  position: absolute;
  left: 0; right: 0; top: 27%;
  text-align: center;
  color: var(--burgundy);
}
.hc-kicker { font-family: var(--f-caps); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.hc-days { font-family: var(--f-caps); font-size: clamp(54px, 17vw, 68px); line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hc-days-lbl { font-family: var(--f-script); font-size: 26px; line-height: 1.1; color: var(--gold-deep); }
.hc-hms { margin-top: 6px; font-family: var(--f-caps); font-size: 20px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hc-hms i { font-style: normal; color: var(--gold); margin: 0 5px; }
.hc-hms-lbl { display: flex; justify-content: center; gap: 22px; font-family: var(--f-caps); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.heart-count-done { top: 32%; font-family: var(--f-script); font-size: 40px; line-height: 1.1; }
.scratch-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity 1s ease, transform 1s ease;
  filter: drop-shadow(0 10px 18px rgba(61, 10, 20, .3));
}
.scratch.revealed .scratch-canvas { opacity: 0; transform: scale(1.06); pointer-events: none; }
.scratch.revealed .scratch-heart { animation: heartbeat 1.2s ease 1 .3s; }
@keyframes heartbeat { 30% { transform: scale(1.04); } 60% { transform: scale(.99); } }
.scratch-hint { margin-top: 18px; font-style: italic; font-size: 17px; color: var(--gold-deep); transition: opacity .6s ease; }

/* ================= JOURNEY ================= */
.journey-sec { padding-top: 40px; }
.ayah-card {
  position: relative;
  margin: 34px auto 0;
  max-width: 360px;
  padding: 34px 20px 24px;
  border-top: 1px solid var(--champagne);
  border-bottom: 1px solid var(--champagne);
}
.ayah-star { position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; margin-left: -15px; padding: 2px; color: var(--gold); background: var(--ivory); }
.ayah { font-family: var(--f-ar); font-size: 25px; line-height: 2; color: var(--burgundy); }
.ayah-en { margin-top: 12px; font-style: italic; font-size: 18px; line-height: 1.5; color: var(--gold-deep); }
.ayah-ref { margin-top: 10px; font-family: var(--f-caps); font-size: 11px; letter-spacing: .2em; color: var(--burgundy); }

/* ================= CELEBRATION OF LOVE (slider) ================= */
.celebrate-sec {
  padding-left: 0; padding-right: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 146, 79, .2), transparent 60%),
    var(--burgundy) var(--paper);
  border-top: 1px solid var(--champagne);
  border-bottom: 1px solid var(--champagne);
}
.celebrate-sec > .serif-title, .celebrate-sec > .sub-caps { padding: 0 20px; }
.slides {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 28px;
  padding: 4px 28px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 20px 24px;
  border-radius: 18px;
  background: #FFFBF3 var(--paper);
  box-shadow: inset 0 0 0 6px #FFFBF3, inset 0 0 0 7px rgba(184, 146, 79, .55), 0 14px 30px rgba(0, 0, 0, .25);
  color: var(--ink);
}
.slide-date { display: inline-flex; align-items: center; gap: 10px; }
.sd-num { font-family: var(--f-caps); font-size: 46px; line-height: 1; color: var(--burgundy); }
.sd-text { display: flex; flex-direction: column; align-items: flex-start; padding-left: 10px; border-left: 1px solid var(--champagne); font-style: italic; font-size: 16px; color: var(--gold-deep); }
.sd-text b { font-family: var(--f-caps); font-style: normal; font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--burgundy); }
.slide-title { margin-top: 12px; font-family: var(--f-script); font-size: clamp(36px, 10.5vw, 44px); line-height: 1.1; color: var(--burgundy); }
.slide .divider { margin: 8px auto 16px; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 290px; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  min-height: 64px;
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  height: 100%;
  border-left: 1px solid var(--champagne);
}
.tl-time { text-align: right; font-family: var(--f-caps); font-size: 18px; color: var(--burgundy-deep); }
.tl-node { position: relative; z-index: 1; display: grid; place-items: center; }
.tl-node svg { width: 26px; height: 26px; padding: 2px; color: var(--gold); background: #FFFBF3; border-radius: 50%; }
.tl-what { text-align: left; font-size: 18px; line-height: 1.2; color: var(--ink); }
.slide-venue { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; text-align: left; }
.slide-venue svg { flex: none; width: 20px; height: 20px; color: var(--gold); }
.slide-venue p { font-family: var(--f-caps); font-size: 13px; letter-spacing: .08em; line-height: 1.4; color: var(--burgundy); }
.slide-venue span { font-family: var(--f-serif); font-style: italic; font-size: 15px; letter-spacing: 0; color: var(--gold-deep); }
.dress-code { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(184, 146, 79, .3); text-align: center; }
.dc-swatches { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.dc-swatches i { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 1px #FFFBF3, 0 0 0 2px rgba(184, 146, 79, .55); }
.dc-pink i:nth-child(1) { background: #F7D3DC; }
.dc-pink i:nth-child(2) { background: #EE9DB4; }
.dc-pink i:nth-child(3) { background: #D9628A; }
.dc-maroon i:nth-child(1) { background: #5E1121; }
.dc-maroon i:nth-child(2) { background: #A34A5A; }
.dc-maroon i:nth-child(3) { background: #EBC4BC; }
.dc-label { font-family: var(--f-caps); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }
.dc-value { margin-top: 2px; font-style: italic; font-size: 19px; line-height: 1.3; color: var(--burgundy); }
.slide-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.slide-actions .btn { padding: 0 8px; font-size: 10.5px; letter-spacing: .1em; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.sn-btn {
  width: 40px; height: 40px;
  border: 1px solid rgba(217, 190, 140, .6);
  border-radius: 50%;
  background: transparent;
  color: var(--champagne-light);
  font-size: 24px; line-height: 1;
  cursor: pointer;
}
.sn-btn:disabled { opacity: .3; cursor: default; }
.dots { display: flex; gap: 10px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(217, 190, 140, .4); cursor: pointer; transition: width .3s ease, background .3s ease; }
.dots button.on { width: 26px; background: var(--champagne); }
.swipe-hint { margin-top: 10px; font-style: italic; font-size: 15px; color: rgba(238, 221, 182, .7); }

/* ================= WHERE OUR FOREVER BEGINS ================= */
.venue-img {
  margin: 10px -20px 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 80% at 50% 50%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 80% at 50% 50%, #000 52%, transparent 100%);
}
.venue-img img { width: 100%; height: auto; }
.venue-card {
  position: relative;
  margin: -8px auto 0;
  max-width: 400px;
  padding: 26px 14px 16px;
  border: 1px solid rgba(217, 190, 140, .7);
  border-radius: 18px;
  background: #FFFDF8;
  box-shadow: 0 14px 34px rgba(94, 17, 33, .1);
}
.pin-circle { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--ivory-2); }
.pin-circle svg { width: 24px; height: 24px; color: var(--gold); }
.venue-name { font-family: var(--f-serif); font-size: 24px; color: var(--burgundy); }
.venue-city { font-size: 17px; color: #6B4A4F; }
.map {
  margin: 16px 0 14px;
  aspect-ratio: 1 / .9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ivory-2);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.venue-card .btn-wide { max-width: none; }

/* ================= WITH LOVE & GRATITUDE ================= */
.thanks-sec {
  padding-bottom: 96px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(184, 146, 79, .18), transparent 60%),
    #5A1420 var(--paper);
  color: var(--ivory);
}
.thanks-sec .body-text { margin-top: 18px; }
.thanks-line { display: block; white-space: nowrap; font-size: clamp(13px, 4.2vw, 18px); }
.thanks-sign { margin-top: 34px; font-style: italic; font-size: 21px; color: var(--champagne); }
.medallion {
  position: relative;
  width: 128px; height: 128px;
  margin: 18px auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7A1A2E, #3D0A14 75%);
  box-shadow: 0 0 0 7px rgba(0, 0, 0, .12), 0 0 0 8px rgba(217, 190, 140, .25), 0 12px 28px rgba(0, 0, 0, .35);
}
.md-ring {
  position: absolute; inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--gold-grad) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.md-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(217, 190, 140, .55); }
/* Letters share one grid cell so they sit on one baseline, then each is offset
   by --x. The right padding holds the swashes inside the gradient's clip box. */
.md-mono {
  position: absolute; inset: 0;
  display: grid;
  align-content: start;
  align-items: baseline;
  justify-items: start;
  padding-top: 36.5px;
  font-family: var(--f-script);
  font-size: 30px;
  line-height: 1;
}
.md-mono span {
  grid-area: 1 / 1;
  margin-left: calc(var(--x) - .2em);
  padding: .3em 1.1em .2em .2em;
  white-space: nowrap;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.md-n { --x: 24.1px; }
.md-f { --x: 71.25px; }
.md-mono .md-and { --x: 55.8px; font-family: var(--f-serif); font-style: italic; font-size: 20px; }
.md-date {
  position: absolute; left: 0; right: 0; top: 77px;
  text-align: center;
  text-indent: .2em;
  font-family: var(--f-caps);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .2em;
  color: var(--champagne);
}
.thanks-names { font-family: var(--f-script); font-size: clamp(40px, 12vw, 50px); line-height: 1.3; color: var(--ivory); }
.thanks-names .amp { font-size: .62em; margin: 0 .08em; color: var(--champagne); }

/* ================= MUSIC BUTTON ================= */
.music-btn {
  position: fixed;
  right: max(16px, calc(50vw - var(--app-w) / 2 + 16px));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  width: 48px; height: 48px;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 6px 18px rgba(61, 10, 20, .35);
  cursor: pointer;
}
.bars { display: flex; justify-content: center; align-items: flex-end; gap: 3px; height: 16px; }
.bars i { width: 3px; height: 100%; background: var(--champagne); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.4s; }
.bars i:nth-child(3) { animation-delay: -.7s; }
.music-btn.paused .bars i { animation: none; height: 30%; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* ================= SCROLL REVEAL ================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ================= LARGER SCREENS: keep the phone layout, centred ================= */
@media (min-width: 560px) {
  :root { --app-w: 480px; }
  body {
    background:
      radial-gradient(ellipse at center, rgba(184, 146, 79, .12), transparent 70%),
      var(--burgundy-deep) var(--paper);
  }
  .app { box-shadow: 0 0 0 1px rgba(217, 190, 140, .35), 0 0 80px rgba(0, 0, 0, .5); }
  .intro { left: 50%; right: auto; width: var(--app-w); transform: translateX(-50%); }
  .hero-text { width: 52%; }
  .hn { font-size: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span, .thanks-heart { animation: none; }
}

/* Script fonts draw "&" as an unreadable flourish — use the italic serif ampersand instead */
.amp { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.couple-amp.amp { font-size: 40px; }
.hn-amp.amp { font-size: clamp(34px, 10vw, 46px); }
.amp-sm.amp { font-size: 20px; }
